diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 6061aeec..6404cef2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -17,9 +17,6 @@ Steps to reproduce the behavior. A clear and concise description of what you expected to happen. **Required data** - - XMRig version - - Either the exact link to a release you downloaded from https://github.com/xmrig/xmrig/releases - - Or the exact command lines that you used to build XMRig - Miner log as text or screenshot - Config file or command line (without wallets) - OS: [e.g. Windows] diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e477dd..e0d97b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,167 +1,12 @@ -# v6.24.0 -- [#3671](https://github.com/xmrig/xmrig/pull/3671) Fixed detection of L2 cache size for some complex NUMA topologies. -- [#3674](https://github.com/xmrig/xmrig/pull/3674) Fixed ARMv7 build. -- [#3677](https://github.com/xmrig/xmrig/pull/3677) Fixed auto-config for AMD CPUs with less than 2 MB L3 cache per thread. -- [#3678](https://github.com/xmrig/xmrig/pull/3678) Improved IPv6 support: the new default settings use IPv6 equally with IPv4. - -# v6.23.0 -- [#3668](https://github.com/xmrig/xmrig/issues/3668) Added support for Windows ARM64. -- [#3665](https://github.com/xmrig/xmrig/pull/3665) Tweaked auto-config for AMD CPUs with < 2 MB L3 cache per thread. - -# v6.22.3 -- [#3605](https://github.com/xmrig/xmrig/pull/3605) CUDA backend: added missing RandomX dataset update. -- [#3646](https://github.com/xmrig/xmrig/pull/3646) Optimized auto-config for AMD CPUs with less than 2 MB L3 cache per thread. -- [#3652](https://github.com/xmrig/xmrig/pull/3652) Fixed possible crash when submitting RandomX benchmark. -- [#3662](https://github.com/xmrig/xmrig/pull/3662) Fixed OpenCL kernel compilation error on some platforms. - -# v6.22.2 -- [#3569](https://github.com/xmrig/xmrig/pull/3569) Fixed corrupted API output in some rare conditions. -- [#3571](https://github.com/xmrig/xmrig/pull/3571) Fixed number of threads on the new Intel Core Ultra CPUs. - -# v6.22.1 -- [#3531](https://github.com/xmrig/xmrig/pull/3531) Always reset nonce on RandomX dataset change. -- [#3534](https://github.com/xmrig/xmrig/pull/3534) Fixed threads auto-config on Zen5. -- [#3535](https://github.com/xmrig/xmrig/pull/3535) RandomX: tweaks for Zen5. -- [#3539](https://github.com/xmrig/xmrig/pull/3539) Added Zen5 to `randomx_boost.sh`. -- [#3540](https://github.com/xmrig/xmrig/pull/3540) Detect AMD engineering samples in `randomx_boost.sh`. - -# v6.22.0 -- [#2411](https://github.com/xmrig/xmrig/pull/2411) Added support for [Yada](https://yadacoin.io/) (`rx/yada` algorithm). -- [#3492](https://github.com/xmrig/xmrig/pull/3492) Fixed `--background` option on Unix systems. -- [#3518](https://github.com/xmrig/xmrig/pull/3518) Possible fix for corrupted API output in rare cases. -- [#3522](https://github.com/xmrig/xmrig/pull/3522) Removed `rx/keva` algorithm. -- [#3525](https://github.com/xmrig/xmrig/pull/3525) Added Zen5 detection. -- [#3528](https://github.com/xmrig/xmrig/pull/3528) Added `rx/yada` OpenCL support. - -# v6.21.3 -- [#3462](https://github.com/xmrig/xmrig/pull/3462) RandomX: correct memcpy size for JIT initialization. - -# v6.21.2 -- The dependencies of all prebuilt releases have been updated. Support for old Ubuntu releases has been dropped. -- [#2800](https://github.com/xmrig/xmrig/issues/2800) Fixed donation with GhostRider algorithm for builds without KawPow algorithm. -- [#3436](https://github.com/xmrig/xmrig/pull/3436) Fixed, the file log writer was not thread-safe. -- [#3450](https://github.com/xmrig/xmrig/pull/3450) Fixed RandomX crash when compiled with fortify_source. - -# v6.21.1 -- [#3391](https://github.com/xmrig/xmrig/pull/3391) Added support for townforge (monero fork using randomx). -- [#3399](https://github.com/xmrig/xmrig/pull/3399) Fixed Zephyr mining (OpenCL). -- [#3420](https://github.com/xmrig/xmrig/pull/3420) Fixed segfault in HTTP API rebind. - -# v6.21.0 -- [#3302](https://github.com/xmrig/xmrig/pull/3302) [#3312](https://github.com/xmrig/xmrig/pull/3312) Enabled keepalive for Windows (>= Vista). -- [#3320](https://github.com/xmrig/xmrig/pull/3320) Added "built for OS/architecture/bits" to "ABOUT". -- [#3339](https://github.com/xmrig/xmrig/pull/3339) Added SNI option for TLS connections. -- [#3342](https://github.com/xmrig/xmrig/pull/3342) Update `cn_main_loop.asm`. -- [#3346](https://github.com/xmrig/xmrig/pull/3346) ARM64 JIT: don't use `x18` register. -- [#3348](https://github.com/xmrig/xmrig/pull/3348) Update to latest `sse2neon.h`. -- [#3356](https://github.com/xmrig/xmrig/pull/3356) Updated pricing record size for **Zephyr** solo mining. -- [#3358](https://github.com/xmrig/xmrig/pull/3358) **Zephyr** solo mining: handle multiple outputs. - -# v6.20.0 -- Added new ARM CPU names. -- [#2394](https://github.com/xmrig/xmrig/pull/2394) Added new CMake options `ARM_V8` and `ARM_V7`. -- [#2830](https://github.com/xmrig/xmrig/pull/2830) Added API rebind polling. -- [#2927](https://github.com/xmrig/xmrig/pull/2927) Fixed compatibility with hwloc 1.11.x. -- [#3060](https://github.com/xmrig/xmrig/pull/3060) Added x86 to `README.md`. -- [#3236](https://github.com/xmrig/xmrig/pull/3236) Fixed: receive CUDA loader error on Linux too. -- [#3290](https://github.com/xmrig/xmrig/pull/3290) Added [Zephyr](https://www.zephyrprotocol.com/) coin support for solo mining. - -# v6.19.3 -- [#3245](https://github.com/xmrig/xmrig/issues/3245) Improved algorithm negotiation for donation rounds by sending extra information about current mining job. -- [#3254](https://github.com/xmrig/xmrig/pull/3254) Tweaked auto-tuning for Intel CPUs. -- [#3271](https://github.com/xmrig/xmrig/pull/3271) RandomX: optimized program generation. -- [#3273](https://github.com/xmrig/xmrig/pull/3273) RandomX: fixed undefined behavior. -- [#3275](https://github.com/xmrig/xmrig/pull/3275) RandomX: fixed `jccErratum` list. -- [#3280](https://github.com/xmrig/xmrig/pull/3280) Updated example scripts. - -# v6.19.2 -- [#3230](https://github.com/xmrig/xmrig/pull/3230) Fixed parsing of `TX_EXTRA_MERGE_MINING_TAG`. -- [#3232](https://github.com/xmrig/xmrig/pull/3232) Added new `X-Hash-Difficulty` HTTP header. -- [#3240](https://github.com/xmrig/xmrig/pull/3240) Improved .cmd files when run by shortcuts on another drive. -- [#3241](https://github.com/xmrig/xmrig/pull/3241) Added view tag calculation (fixes Wownero solo mining issue). - -# v6.19.1 -- Resolved deprecated methods warnings with OpenSSL 3.0. -- [#3213](https://github.com/xmrig/xmrig/pull/3213) Fixed build with 32-bit clang 15. -- [#3218](https://github.com/xmrig/xmrig/pull/3218) Fixed: `--randomx-wrmsr=-1` worked only on Intel. -- [#3228](https://github.com/xmrig/xmrig/pull/3228) Fixed build with gcc 13. - -# v6.19.0 -- [#3144](https://github.com/xmrig/xmrig/pull/3144) Update to latest `sse2neon.h`. -- [#3161](https://github.com/xmrig/xmrig/pull/3161) MSVC build: enabled parallel compilation. -- [#3163](https://github.com/xmrig/xmrig/pull/3163) Improved Zen 3 MSR mod. -- [#3176](https://github.com/xmrig/xmrig/pull/3176) Update cmake required version to 3.1. -- [#3182](https://github.com/xmrig/xmrig/pull/3182) DragonflyBSD compilation fixes. -- [#3196](https://github.com/xmrig/xmrig/pull/3196) Show IP address for failed connections. -- [#3185](https://github.com/xmrig/xmrig/issues/3185) Fixed macOS DMI reader. -- [#3198](https://github.com/xmrig/xmrig/pull/3198) Fixed broken RandomX light mode mining. -- [#3202](https://github.com/xmrig/xmrig/pull/3202) Solo mining: added job timeout (default is 15 seconds). - -# v6.18.1 -- [#3129](https://github.com/xmrig/xmrig/pull/3129) Fix: protectRX flushed CPU cache only on MacOS/iOS. -- [#3126](https://github.com/xmrig/xmrig/pull/3126) Don't reset when pool sends the same job blob. -- [#3120](https://github.com/xmrig/xmrig/pull/3120) RandomX: optimized `CFROUND` elimination. -- [#3109](https://github.com/xmrig/xmrig/pull/3109) RandomX: added Blake2 AVX2 version. -- [#3082](https://github.com/xmrig/xmrig/pull/3082) Fixed GCC 12 warnings. -- [#3075](https://github.com/xmrig/xmrig/pull/3075) Recognize `armv7ve` as valid ARMv7 target. -- [#3132](https://github.com/xmrig/xmrig/pull/3132) RandomX: added MSR mod for Zen 4. -- [#3134](https://github.com/xmrig/xmrig/pull/3134) Added Zen4 to `randomx_boost.sh`. - -# v6.18.0 -- [#3067](https://github.com/xmrig/xmrig/pull/3067) Monero v15 network upgrade support and more house keeping. - - Removed deprecated AstroBWTv1 and v2. - - Fixed debug GhostRider build. - - Monero v15 network upgrade support. - - Fixed ZMQ debug log. - - Improved daemon ZMQ mining stability. -- [#3054](https://github.com/xmrig/xmrig/pull/3054) Fixes for 32-bit ARM. -- [#3042](https://github.com/xmrig/xmrig/pull/3042) Fixed being unable to resume from `pause-on-battery`. -- [#3031](https://github.com/xmrig/xmrig/pull/3031) Fixed `--cpu-priority` not working sometimes. -- [#3020](https://github.com/xmrig/xmrig/pull/3020) Removed old AstroBWT algorithm. - -# v6.17.0 -- [#2954](https://github.com/xmrig/xmrig/pull/2954) **Dero HE fork support (`astrobwt/v2` algorithm).** - - [#2961](https://github.com/xmrig/xmrig/pull/2961) Dero HE (`astrobwt/v2`) CUDA config generator. - - [#2969](https://github.com/xmrig/xmrig/pull/2969) Dero HE (`astrobwt/v2`) OpenCL support. -- Fixed displayed DMI memory information for empty slots. -- [#2932](https://github.com/xmrig/xmrig/pull/2932) Fixed GhostRider with hwloc disabled. - -# v6.16.4 -- [#2904](https://github.com/xmrig/xmrig/pull/2904) Fixed unaligned memory accesses. -- [#2908](https://github.com/xmrig/xmrig/pull/2908) Added MSVC/2022 to `version.h`. -- [#2910](https://github.com/xmrig/xmrig/issues/2910) Fixed donation for GhostRider/RTM. - -# v6.16.3 -- [#2778](https://github.com/xmrig/xmrig/pull/2778) Fixed `READY threads X/X` display after algorithm switching. -- [#2782](https://github.com/xmrig/xmrig/pull/2782) Updated GhostRider documentation. -- [#2815](https://github.com/xmrig/xmrig/pull/2815) Fixed `cn-heavy` in 32-bit builds. -- [#2827](https://github.com/xmrig/xmrig/pull/2827) GhostRider: set correct priority for helper threads. -- [#2837](https://github.com/xmrig/xmrig/pull/2837) RandomX: don't restart mining threads when the seed changes. -- [#2848](https://github.com/xmrig/xmrig/pull/2848) GhostRider: added support for `client.reconnect` method. -- [#2856](https://github.com/xmrig/xmrig/pull/2856) Fix for short responses from some Raptoreum pools. -- [#2873](https://github.com/xmrig/xmrig/pull/2873) Fixed GhostRider benchmark on single-core systems. -- [#2882](https://github.com/xmrig/xmrig/pull/2882) Fixed ARMv7 compilation. -- [#2893](https://github.com/xmrig/xmrig/pull/2893) KawPow OpenCL: use separate UV loop for building programs. - -# v6.16.2 -- [#2751](https://github.com/xmrig/xmrig/pull/2751) Fixed crash on CPUs supporting VAES and running GCC-compiled xmrig. -- [#2761](https://github.com/xmrig/xmrig/pull/2761) Fixed broken auto-tuning in GCC Windows build. -- [#2771](https://github.com/xmrig/xmrig/issues/2771) Fixed environment variables support for GhostRider and KawPow. -- [#2769](https://github.com/xmrig/xmrig/pull/2769) Performance fixes: - - Fixed several performance bottlenecks introduced in v6.16.1. - - Fixed overall GCC-compiled build performance, it's the same speed as MSVC build now. - - **Linux builds are up to 10% faster now compared to v6.16.0 GCC build.** - - **Windows builds are up to 5% faster now compared to v6.16.0 MSVC build.** - # v6.16.1 - [#2729](https://github.com/xmrig/xmrig/pull/2729) GhostRider fixes: - - Added average hashrate display. - - Fixed the number of threads shown at startup. - - Fixed `--threads` or `-t` command line option (but `--cpu-max-threads-hint` is recommended to use). + - Added average hashrate display + - Fixed the number of threads shown at startup + - Fixed `--threads` or `-t` command line option (but `--cpu-max-threads-hint` is recommended to use) - [#2738](https://github.com/xmrig/xmrig/pull/2738) GhostRider fixes: - - Fixed "difficulty is not a number" error when diff is high on some pools. - - Fixed GhostRider compilation when `WITH_KAWPOW=OFF`. -- [#2740](https://github.com/xmrig/xmrig/pull/2740) Added VAES support for Cryptonight variants **+4% speedup on Zen3**. + - Fixed "difficulty is not a number" error when diff is high on some pools + - Fixed GhostRider compilation when WITH_KAWPOW=OFF +- [#2740](https://github.com/xmrig/xmrig/pull/2740) Added VAES support for Cryptonight variants **+4% speedup on Zen3** - VAES instructions are available on Intel Ice Lake/AMD Zen3 and newer CPUs. - +4% speedup on Ryzen 5 5600X. diff --git a/CMakeLists.txt b/CMakeLists.txt index 31392322..bb35bfee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 2.8.12) project(xmrig) option(WITH_HWLOC "Enable hwloc support" ON) @@ -8,6 +8,7 @@ option(WITH_CN_PICO "Enable CryptoNight-Pico algorithm" ON) option(WITH_CN_FEMTO "Enable CryptoNight-UPX2 algorithm" ON) option(WITH_RANDOMX "Enable RandomX algorithms family" ON) option(WITH_ARGON2 "Enable Argon2 algorithms family" ON) +option(WITH_ASTROBWT "Enable AstroBWT algorithms family" ON) option(WITH_KAWPOW "Enable KawPow algorithms family" ON) option(WITH_GHOSTRIDER "Enable GhostRider algorithm" ON) option(WITH_HTTP "Enable HTTP protocol support (client/server)" ON) @@ -27,15 +28,13 @@ option(WITH_STRICT_CACHE "Enable strict checks for OpenCL cache" ON) option(WITH_INTERLEAVE_DEBUG_LOG "Enable debug log for threads interleave" OFF) option(WITH_PROFILING "Enable profiling for developers" OFF) option(WITH_SSE4_1 "Enable SSE 4.1 for Blake2" ON) -option(WITH_AVX2 "Enable AVX2 for Blake2" ON) option(WITH_VAES "Enable VAES instructions for Cryptonight" ON) option(WITH_BENCHMARK "Enable builtin RandomX benchmark and stress test" ON) option(WITH_SECURE_JIT "Enable secure access to JIT memory" OFF) option(WITH_DMI "Enable DMI/SMBIOS reader" ON) option(BUILD_STATIC "Build static binary" OFF) -option(ARM_V8 "Force ARMv8 (64 bit) architecture, use with caution if automatic detection fails, but you sure it may work" OFF) -option(ARM_V7 "Force ARMv7 (32 bit) architecture, use with caution if automatic detection fails, but you sure it may work" OFF) +option(ARM_TARGET "Force use specific ARM target 8 or 7" 0) option(HWLOC_DEBUG "Enable hwloc debug helpers and log" OFF) @@ -162,7 +161,7 @@ if (XMRIG_OS_WIN) src/crypto/common/VirtualMemory_win.cpp ) - set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv dbghelp) + set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv) elseif (XMRIG_OS_APPLE) list(APPEND SOURCES_OS src/App_unix.cpp @@ -200,6 +199,7 @@ find_package(UV REQUIRED) include(cmake/flags.cmake) include(cmake/randomx.cmake) include(cmake/argon2.cmake) +include(cmake/astrobwt.cmake) include(cmake/kawpow.cmake) include(cmake/ghostrider.cmake) include(cmake/OpenSSL.cmake) @@ -240,10 +240,7 @@ add_executable(${CMAKE_PROJECT_NAME} ${HEADERS} ${SOURCES} ${SOURCES_OS} ${HEADE target_link_libraries(${CMAKE_PROJECT_NAME} ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRARIES} ${UV_LIBRARIES} ${EXTRA_LIBS} ${CPUID_LIB} ${ARGON2_LIBRARY} ${ETHASH_LIBRARY} ${GHOSTRIDER_LIBRARY}) if (WIN32) - if (NOT ARM_TARGET) - add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/bin/WinRing0/WinRing0x64.sys" $) - endif() - + add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/bin/WinRing0/WinRing0x64.sys" $) add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/scripts/benchmark_1M.cmd" $) add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/scripts/benchmark_10M.cmd" $) add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/scripts/pool_mine_example.cmd" $) @@ -252,5 +249,5 @@ if (WIN32) endif() if (CMAKE_CXX_COMPILER_ID MATCHES Clang AND CMAKE_BUILD_TYPE STREQUAL Release AND NOT CMAKE_GENERATOR STREQUAL Xcode) - add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_STRIP} "$") + add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_STRIP} ${CMAKE_PROJECT_NAME}) endif() diff --git a/README.md b/README.md index b4d40751..dddb3960 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ [![GitHub stars](https://img.shields.io/github/stars/xmrig/xmrig.svg)](https://github.com/xmrig/xmrig/stargazers) [![GitHub forks](https://img.shields.io/github/forks/xmrig/xmrig.svg)](https://github.com/xmrig/xmrig/network) -XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight and [GhostRider](https://github.com/xmrig/xmrig/tree/master/src/crypto/ghostrider#readme) unified CPU/GPU miner and [RandomX benchmark](https://xmrig.com/benchmark). Official binaries are available for Windows, Linux, macOS and FreeBSD. +XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight and AstroBWT unified CPU/GPU miner and [RandomX benchmark](https://xmrig.com/benchmark). Official binaries are available for Windows, Linux, macOS and FreeBSD. ## Mining backends -- **CPU** (x86/x64/ARMv7/ARMv8) +- **CPU** (x64/ARMv8) - **OpenCL** for AMD GPUs. - **CUDA** for NVIDIA GPUs via external [CUDA plugin](https://github.com/xmrig/xmrig-cuda). diff --git a/cmake/astrobwt.cmake b/cmake/astrobwt.cmake new file mode 100644 index 00000000..f0ebf530 --- /dev/null +++ b/cmake/astrobwt.cmake @@ -0,0 +1,51 @@ +if (WITH_ASTROBWT) + add_definitions(/DXMRIG_ALGO_ASTROBWT) + + list(APPEND HEADERS_CRYPTO + src/crypto/astrobwt/AstroBWT.h + ) + + list(APPEND SOURCES_CRYPTO + src/crypto/astrobwt/AstroBWT.cpp + ) + + if (XMRIG_ARM) + list(APPEND HEADERS_CRYPTO + src/crypto/astrobwt/salsa20_ref/ecrypt-config.h + src/crypto/astrobwt/salsa20_ref/ecrypt-machine.h + src/crypto/astrobwt/salsa20_ref/ecrypt-portable.h + src/crypto/astrobwt/salsa20_ref/ecrypt-sync.h + ) + + list(APPEND SOURCES_CRYPTO + src/crypto/astrobwt/salsa20_ref/salsa20.c + ) + else() + if (CMAKE_SIZEOF_VOID_P EQUAL 8) + add_definitions(/DASTROBWT_AVX2) + list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c) + + if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang) + set_source_files_properties(src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c PROPERTIES COMPILE_FLAGS -mavx2) + endif() + + if (CMAKE_C_COMPILER_ID MATCHES MSVC) + enable_language(ASM_MASM) + list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/sha3_256_avx2.asm) + else() + enable_language(ASM) + list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/sha3_256_avx2.S) + endif() + endif() + + list(APPEND HEADERS_CRYPTO + src/crypto/astrobwt/Salsa20.hpp + ) + + list(APPEND SOURCES_CRYPTO + src/crypto/astrobwt/Salsa20.cpp + ) + endif() +else() + remove_definitions(/DXMRIG_ALGO_ASTROBWT) +endif() diff --git a/cmake/cpu.cmake b/cmake/cpu.cmake index 12dbe9b1..4a661b23 100644 --- a/cmake/cpu.cmake +++ b/cmake/cpu.cmake @@ -25,22 +25,13 @@ if (XMRIG_64_BIT AND CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$") add_definitions(-DRAPIDJSON_SSE2) else() set(WITH_SSE4_1 OFF) - set(WITH_AVX2 OFF) set(WITH_VAES OFF) endif() -add_definitions(-DRAPIDJSON_WRITE_DEFAULT_FLAGS=6) # rapidjson::kWriteNanAndInfFlag | rapidjson::kWriteNanAndInfNullFlag - -if (ARM_V8) - set(ARM_TARGET 8) -elseif (ARM_V7) - set(ARM_TARGET 7) -endif() - if (NOT ARM_TARGET) - if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|ARM64|armv8-a)$") + if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|armv8-a)$") set(ARM_TARGET 8) - elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7|armv7f|armv7s|armv7k|armv7-a|armv7l|armv7ve)$") + elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7|armv7f|armv7s|armv7k|armv7-a|armv7l)$") set(ARM_TARGET 7) endif() endif() @@ -51,7 +42,7 @@ if (ARM_TARGET AND ARM_TARGET GREATER 6) message(STATUS "Use ARM_TARGET=${ARM_TARGET} (${CMAKE_SYSTEM_PROCESSOR})") - if (ARM_TARGET EQUAL 8 AND (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)) + if (ARM_TARGET EQUAL 8) CHECK_CXX_COMPILER_FLAG(-march=armv8-a+crypto XMRIG_ARM_CRYPTO) if (XMRIG_ARM_CRYPTO) @@ -66,7 +57,3 @@ endif() if (WITH_SSE4_1) add_definitions(-DXMRIG_FEATURE_SSE4_1) endif() - -if (WITH_AVX2) - add_definitions(-DXMRIG_FEATURE_AVX2) -endif() diff --git a/cmake/flags.cmake b/cmake/flags.cmake index 9abf212a..ff5943a1 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -10,7 +10,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "") endif() if (CMAKE_BUILD_TYPE STREQUAL "Release") - add_definitions(-DNDEBUG) + add_definitions(/DNDEBUG) endif() include(CheckSymbolExists) @@ -26,13 +26,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ARM8_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARM8_CXX_FLAGS} -flax-vector-conversions") elseif (ARM_TARGET EQUAL 7) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a -mfpu=neon -flax-vector-conversions") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a -mfpu=neon -flax-vector-conversions") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon -flax-vector-conversions") else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes") - add_definitions(-DHAVE_ROTR) + add_definitions(/DHAVE_ROTR) endif() if (WIN32) @@ -49,24 +49,36 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") endif() - add_definitions(-D_GNU_SOURCE -DHAVE_BUILTIN_CLEAR_CACHE) + add_definitions(/D_GNU_SOURCE) + + if (${CMAKE_VERSION} VERSION_LESS "3.1.0") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + endif() + + #set(CMAKE_C_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -gdwarf-2") + + add_definitions(/DHAVE_BUILTIN_CLEAR_CACHE) elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC) - set(CMAKE_C_FLAGS_RELEASE "/MP /MT /O2 /Oi /DNDEBUG /GL") - set(CMAKE_CXX_FLAGS_RELEASE "/MP /MT /O2 /Oi /DNDEBUG /GL") + set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Oi /DNDEBUG /GL") + set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Oi /DNDEBUG /GL") - set(CMAKE_C_FLAGS_RELWITHDEBINFO "/MP /Ob1 /Zi /DRELWITHDEBINFO") - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MP /Ob1 /Zi /DRELWITHDEBINFO") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ob1 /Zi /DRELWITHDEBINFO") + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Ob1 /Zi /DRELWITHDEBINFO") - add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -DNOMINMAX -DHAVE_ROTR) + add_definitions(/D_CRT_SECURE_NO_WARNINGS) + add_definitions(/D_CRT_NONSTDC_NO_WARNINGS) + add_definitions(/DNOMINMAX) + add_definitions(/DHAVE_ROTR) elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -funroll-loops -fmerge-all-constants") + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast -funroll-loops -fmerge-all-constants") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fexceptions -fno-rtti") - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops -fmerge-all-constants") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fexceptions -fno-rtti -Wno-missing-braces") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -funroll-loops -fmerge-all-constants") if (ARM_TARGET EQUAL 8) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ARM8_CXX_FLAGS}") @@ -80,18 +92,19 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang) check_symbol_exists("_rotr" "x86intrin.h" HAVE_ROTR) if (HAVE_ROTR) - add_definitions(-DHAVE_ROTR) + add_definitions(/DHAVE_ROTR) endif() endif() - if ((WIN32 AND ARM_TARGET) OR BUILD_STATIC) + if (BUILD_STATIC) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") endif() + endif() if (NOT WIN32) check_symbol_exists("__builtin___clear_cache" "stdlib.h" HAVE_BUILTIN_CLEAR_CACHE) if (HAVE_BUILTIN_CLEAR_CACHE) - add_definitions(-DHAVE_BUILTIN_CLEAR_CACHE) + add_definitions(/DHAVE_BUILTIN_CLEAR_CACHE) endif() endif() diff --git a/cmake/os.cmake b/cmake/os.cmake index 8f70e9f4..02a787df 100644 --- a/cmake/os.cmake +++ b/cmake/os.cmake @@ -15,11 +15,12 @@ else() set(XMRIG_OS_ANDROID ON) elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") set(XMRIG_OS_LINUX ON) - elseif(CMAKE_SYSTEM_NAME STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL DragonFly) + elseif(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) set(XMRIG_OS_FREEBSD ON) endif() endif() + if (XMRIG_OS_WIN) add_definitions(-DWIN32 -DXMRIG_OS_WIN) elseif(XMRIG_OS_APPLE) diff --git a/cmake/randomx.cmake b/cmake/randomx.cmake index a50e078f..7038774c 100644 --- a/cmake/randomx.cmake +++ b/cmake/randomx.cmake @@ -1,18 +1,4 @@ if (WITH_RANDOMX) - include(CheckSymbolExists) - - if (WIN32) - check_symbol_exists(_aligned_malloc "stdlib.h" HAVE_ALIGNED_MALLOC) - if (HAVE_ALIGNED_MALLOC) - add_compile_definitions(HAVE_ALIGNED_MALLOC) - endif() - else() - check_symbol_exists(posix_memalign "stdlib.h" HAVE_POSIX_MEMALIGN) - if (HAVE_POSIX_MEMALIGN) - add_compile_definitions(HAVE_POSIX_MEMALIGN) - endif() - endif() - add_definitions(/DXMRIG_ALGO_RANDOMX) set(WITH_ARGON2 ON) @@ -90,15 +76,7 @@ if (WITH_RANDOMX) list(APPEND SOURCES_CRYPTO src/crypto/randomx/blake2/blake2b_sse41.c) if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang) - set_source_files_properties(src/crypto/randomx/blake2/blake2b_sse41.c PROPERTIES COMPILE_FLAGS "-Ofast -msse4.1") - endif() - endif() - - if (WITH_AVX2) - list(APPEND SOURCES_CRYPTO src/crypto/randomx/blake2/avx2/blake2b_avx2.c) - - if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang) - set_source_files_properties(src/crypto/randomx/blake2/avx2/blake2b_avx2.c PROPERTIES COMPILE_FLAGS "-Ofast -mavx2") + set_source_files_properties(src/crypto/randomx/blake2/blake2b_sse41.c PROPERTIES COMPILE_FLAGS -msse4.1) endif() endif() diff --git a/doc/ALGORITHMS.md b/doc/ALGORITHMS.md index de3828a0..509f6ef5 100644 --- a/doc/ALGORITHMS.md +++ b/doc/ALGORITHMS.md @@ -13,6 +13,7 @@ Option `coin` useful for pools without [algorithm negotiation](https://xmrig.com | Name | Memory | Version | Description | Notes | |------|--------|---------|-------------|-------| | `kawpow` | - | 6.0.0+ | KawPow (Ravencoin) | GPU only | +| `rx/keva` | 1 MB | 5.9.0+ | RandomKEVA (RandomX variant for Keva). | | | `astrobwt` | 20 MB | 5.8.0+ | AstroBWT (Dero). | | | `cn-pico/tlo` | 256 KB | 5.5.0+ | CryptoNight-Pico (Talleo). | | | `rx/sfx` | 2 MB | 5.4.0+ | RandomSFX (RandomX variant for Safex). | | diff --git a/doc/CHANGELOG_OLD.md b/doc/CHANGELOG_OLD.md index a799cb38..70059190 100644 --- a/doc/CHANGELOG_OLD.md +++ b/doc/CHANGELOG_OLD.md @@ -256,7 +256,7 @@ # v2.8.0 - **[#753](https://github.com/xmrig/xmrig/issues/753) Added new algorithm [CryptoNight variant 2](https://github.com/xmrig/xmrig/issues/753) for Monero fork, thanks [@SChernykh](https://github.com/SChernykh).** - - Added global and per thread option `"asm"` and command line equivalent. + - Added global and per thread option `"asm"` and and command line equivalent. - **[#758](https://github.com/xmrig/xmrig/issues/758) Added SSL/TLS support for secure connections to pools.** - Added per pool options `"tls"` and `"tls-fingerprint"` and command line equivalents. - [#767](https://github.com/xmrig/xmrig/issues/767) Added config autosave feature, same with GPU miners. diff --git a/scripts/benchmark_10M.cmd b/scripts/benchmark_10M.cmd index 833f065c..dbbcc78c 100644 --- a/scripts/benchmark_10M.cmd +++ b/scripts/benchmark_10M.cmd @@ -1,4 +1,4 @@ @echo off -cd /d "%~dp0" +cd %~dp0 xmrig.exe --bench=10M --submit pause diff --git a/scripts/benchmark_1M.cmd b/scripts/benchmark_1M.cmd index b106a1bc..5d2166d0 100644 --- a/scripts/benchmark_1M.cmd +++ b/scripts/benchmark_1M.cmd @@ -1,4 +1,4 @@ @echo off -cd /d "%~dp0" +cd %~dp0 xmrig.exe --bench=1M --submit pause diff --git a/scripts/build.hwloc.sh b/scripts/build.hwloc.sh index f4a2c41a..022f67fe 100755 --- a/scripts/build.hwloc.sh +++ b/scripts/build.hwloc.sh @@ -1,10 +1,6 @@ -#!/bin/sh -e +#!/bin/bash -e -HWLOC_VERSION_MAJOR="2" -HWLOC_VERSION_MINOR="12" -HWLOC_VERSION_PATCH="1" - -HWLOC_VERSION="${HWLOC_VERSION_MAJOR}.${HWLOC_VERSION_MINOR}.${HWLOC_VERSION_PATCH}" +HWLOC_VERSION="2.5.0" mkdir -p deps mkdir -p deps/include @@ -12,7 +8,7 @@ mkdir -p deps/lib mkdir -p build && cd build -wget https://download.open-mpi.org/release/hwloc/v${HWLOC_VERSION_MAJOR}.${HWLOC_VERSION_MINOR}/hwloc-${HWLOC_VERSION}.tar.gz -O hwloc-${HWLOC_VERSION}.tar.gz +wget https://download.open-mpi.org/release/hwloc/v2.5/hwloc-${HWLOC_VERSION}.tar.gz -O hwloc-${HWLOC_VERSION}.tar.gz tar -xzf hwloc-${HWLOC_VERSION}.tar.gz cd hwloc-${HWLOC_VERSION} @@ -20,4 +16,4 @@ cd hwloc-${HWLOC_VERSION} make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu) cp -fr include ../../deps cp hwloc/.libs/libhwloc.a ../../deps/lib -cd .. +cd .. \ No newline at end of file diff --git a/scripts/build.hwloc1.sh b/scripts/build.hwloc1.sh index 82572743..f1afc285 100755 --- a/scripts/build.hwloc1.sh +++ b/scripts/build.hwloc1.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e HWLOC_VERSION="1.11.13" diff --git a/scripts/build.libressl.sh b/scripts/build.libressl.sh index 6dde9faa..e7495233 100755 --- a/scripts/build.libressl.sh +++ b/scripts/build.libressl.sh @@ -1,6 +1,6 @@ -#!/bin/sh -e +#!/bin/bash -e -LIBRESSL_VERSION="3.5.2" +LIBRESSL_VERSION="3.0.2" mkdir -p deps mkdir -p deps/include @@ -17,4 +17,4 @@ make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu) cp -fr include ../../deps cp crypto/.libs/libcrypto.a ../../deps/lib cp ssl/.libs/libssl.a ../../deps/lib -cd .. +cd .. \ No newline at end of file diff --git a/scripts/build.openssl.sh b/scripts/build.openssl.sh index 62d2dba0..580557d6 100755 --- a/scripts/build.openssl.sh +++ b/scripts/build.openssl.sh @@ -1,6 +1,6 @@ -#!/bin/sh -e +#!/bin/bash -e -OPENSSL_VERSION="1.1.1u" +OPENSSL_VERSION="1.1.1l" mkdir -p deps mkdir -p deps/include @@ -8,7 +8,7 @@ mkdir -p deps/lib mkdir -p build && cd build -wget https://openssl.org/source/old/1.1.1/openssl-${OPENSSL_VERSION}.tar.gz -O openssl-${OPENSSL_VERSION}.tar.gz +wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz -O openssl-${OPENSSL_VERSION}.tar.gz tar -xzf openssl-${OPENSSL_VERSION}.tar.gz cd openssl-${OPENSSL_VERSION} diff --git a/scripts/build.openssl3.sh b/scripts/build.openssl3.sh deleted file mode 100755 index 4dd00382..00000000 --- a/scripts/build.openssl3.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -e - -OPENSSL_VERSION="3.0.16" - -mkdir -p deps -mkdir -p deps/include -mkdir -p deps/lib - -mkdir -p build && cd build - -wget https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/openssl-${OPENSSL_VERSION}.tar.gz -O openssl-${OPENSSL_VERSION}.tar.gz -tar -xzf openssl-${OPENSSL_VERSION}.tar.gz - -cd openssl-${OPENSSL_VERSION} -./config -no-shared -no-asm -no-zlib -no-comp -no-dgram -no-filenames -no-cms -make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu) -cp -fr include ../../deps -cp libcrypto.a ../../deps/lib -cp libssl.a ../../deps/lib -cd .. diff --git a/scripts/build.uv.sh b/scripts/build.uv.sh index 47587cec..6179b2d2 100755 --- a/scripts/build.uv.sh +++ b/scripts/build.uv.sh @@ -1,6 +1,6 @@ -#!/bin/sh -e +#!/bin/bash -e -UV_VERSION="1.51.0" +UV_VERSION="1.42.0" mkdir -p deps mkdir -p deps/include @@ -8,13 +8,13 @@ mkdir -p deps/lib mkdir -p build && cd build -wget https://dist.libuv.org/dist/v${UV_VERSION}/libuv-v${UV_VERSION}.tar.gz -O v${UV_VERSION}.tar.gz +wget https://github.com/libuv/libuv/archive/v${UV_VERSION}.tar.gz -O v${UV_VERSION}.tar.gz tar -xzf v${UV_VERSION}.tar.gz -cd libuv-v${UV_VERSION} +cd libuv-${UV_VERSION} sh autogen.sh ./configure --disable-shared make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu) cp -fr include ../../deps cp .libs/libuv.a ../../deps/lib -cd .. +cd .. \ No newline at end of file diff --git a/scripts/build_deps.sh b/scripts/build_deps.sh index d244665f..e3efbf23 100755 --- a/scripts/build_deps.sh +++ b/scripts/build_deps.sh @@ -1,5 +1,5 @@ -#!/bin/sh -e +#!/bin/bash -e ./build.uv.sh ./build.hwloc.sh -./build.openssl3.sh \ No newline at end of file +./build.openssl.sh \ No newline at end of file diff --git a/scripts/enable_1gb_pages.sh b/scripts/enable_1gb_pages.sh index a1fb4c61..16d889f1 100755 --- a/scripts/enable_1gb_pages.sh +++ b/scripts/enable_1gb_pages.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # https://xmrig.com/docs/miner/hugepages#onegb-huge-pages diff --git a/scripts/generate_cl.js b/scripts/generate_cl.js index 287eefc7..c3fffbf9 100644 --- a/scripts/generate_cl.js +++ b/scripts/generate_cl.js @@ -6,6 +6,7 @@ const fs = require('fs'); const path = require('path'); const { text2h, text2h_bundle, addIncludes } = require('./js/opencl'); const { opencl_minify } = require('./js/opencl_minify'); +const cwd = process.cwd(); function cn() @@ -49,6 +50,7 @@ function rx() 'randomx_constants_monero.h', 'randomx_constants_wow.h', 'randomx_constants_arqma.h', + 'randomx_constants_keva.h', 'randomx_constants_graft.h', 'aes.cl', 'blake2b.cl', @@ -65,6 +67,15 @@ function rx() } +function astrobwt() +{ + const astrobwt = opencl_minify(addIncludes('astrobwt.cl', [ 'BWT.cl', 'salsa20.cl', 'sha3.cl' ])); + + // fs.writeFileSync('astrobwt_gen.cl', astrobwt); + fs.writeFileSync('astrobwt_cl.h', text2h(astrobwt, 'xmrig', 'astrobwt_cl')); +} + + function kawpow() { const kawpow = opencl_minify(addIncludes('kawpow.cl', [ 'defs.h' ])); @@ -75,24 +86,23 @@ function kawpow() fs.writeFileSync('kawpow_dag_cl.h', text2h(kawpow_dag, 'xmrig', 'kawpow_dag_cl')); } -for (let i = 0; i < 2; i++) { - if (fs.existsSync('src/backend/opencl/cl/OclSource.h')) { - break; - } - process.chdir('..'); -} +process.chdir(path.resolve('src/backend/opencl/cl/cn')); -process.chdir(path.resolve('src/backend/opencl/cl')); - -const cwd = process.cwd(); - -process.chdir(path.resolve(cwd, 'cn')); cn(); cn_r(); -process.chdir(path.resolve(cwd, 'rx')); +process.chdir(cwd); +process.chdir(path.resolve('src/backend/opencl/cl/rx')); + rx(); -process.chdir(path.resolve(cwd, 'kawpow')); +process.chdir(cwd); +process.chdir(path.resolve('src/backend/opencl/cl/astrobwt')); + +astrobwt(); + +process.chdir(cwd); +process.chdir(path.resolve('src/backend/opencl/cl/kawpow')); + kawpow(); diff --git a/scripts/pool_mine_example.cmd b/scripts/pool_mine_example.cmd index 38f93e2e..6e35c913 100644 --- a/scripts/pool_mine_example.cmd +++ b/scripts/pool_mine_example.cmd @@ -15,6 +15,6 @@ :: Choose pools outside of top 5 to help Monero network be more decentralized! :: Smaller pools also often have smaller fees/payout limits. -cd /d "%~dp0" -xmrig.exe -o xmrpool.eu:3333 -u 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD -p x +cd %~dp0 +xmrig.exe -o pool.hashvault.pro:3333 -u 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD -p x pause diff --git a/scripts/randomx_boost.sh b/scripts/randomx_boost.sh index 8580229a..3b60959d 100755 --- a/scripts/randomx_boost.sh +++ b/scripts/randomx_boost.sh @@ -8,34 +8,16 @@ else modprobe msr allow_writes=on fi -if grep -E 'AMD Ryzen|AMD EPYC|AuthenticAMD' /proc/cpuinfo > /dev/null; +if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null; then - if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null; + if grep "cpu family[[:space:]]:[[:space:]]25" /proc/cpuinfo > /dev/null; then - if grep "model[[:space:]]\{1,\}:[[:space:]]97" /proc/cpuinfo > /dev/null; - then - echo "Detected Zen4 CPU" - wrmsr -a 0xc0011020 0x4400000000000 - wrmsr -a 0xc0011021 0x4000000000040 - wrmsr -a 0xc0011022 0x8680000401570000 - wrmsr -a 0xc001102b 0x2040cc10 - echo "MSR register values for Zen4 applied" - else - echo "Detected Zen3 CPU" - wrmsr -a 0xc0011020 0x4480000000000 - wrmsr -a 0xc0011021 0x1c000200000040 - wrmsr -a 0xc0011022 0xc000000401570000 - wrmsr -a 0xc001102b 0x2000cc10 - echo "MSR register values for Zen3 applied" - fi - elif grep "cpu family[[:space:]]\{1,\}:[[:space:]]26" /proc/cpuinfo > /dev/null; - then - echo "Detected Zen5 CPU" - wrmsr -a 0xc0011020 0x4400000000000 - wrmsr -a 0xc0011021 0x4000000000040 - wrmsr -a 0xc0011022 0x8680000401570000 - wrmsr -a 0xc001102b 0x2040cc10 - echo "MSR register values for Zen5 applied" + echo "Detected Zen3 CPU" + wrmsr -a 0xc0011020 0x4480000000000 + wrmsr -a 0xc0011021 0x1c000200000040 + wrmsr -a 0xc0011022 0xc000000401500000 + wrmsr -a 0xc001102b 0x2000cc14 + echo "MSR register values for Zen3 applied" else echo "Detected Zen1/Zen2 CPU" wrmsr -a 0xc0011020 0 diff --git a/scripts/rtm_ghostrider_example.cmd b/scripts/rtm_ghostrider_example.cmd index 85e0a7fb..f4c4342e 100644 --- a/scripts/rtm_ghostrider_example.cmd +++ b/scripts/rtm_ghostrider_example.cmd @@ -15,9 +15,6 @@ :: Choose pools outside of top 5 to help Raptoreum network be more decentralized! :: Smaller pools also often have smaller fees/payout limits. -cd /d "%~dp0" -:: Use this command line to connect to non-SSL port +cd %~dp0 xmrig.exe -a gr -o raptoreumemporium.com:3008 -u WALLET_ADDRESS -p x -:: Or use this command line to connect to an SSL port -:: xmrig.exe -a gr -o rtm.suprnova.cc:4273 --tls -u WALLET_ADDRESS -p x pause diff --git a/scripts/solo_mine_example.cmd b/scripts/solo_mine_example.cmd index ab912293..c925b36d 100644 --- a/scripts/solo_mine_example.cmd +++ b/scripts/solo_mine_example.cmd @@ -11,6 +11,6 @@ :: Mining solo is the best way to help Monero network be more decentralized! :: But you will only get a payout when you find a block which can take more than a year for a single low-end PC. -cd /d "%~dp0" -xmrig.exe -o YOUR_NODE_IP:18081 -a rx/0 -u 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD --daemon +cd %~dp0 +xmrig.exe -o node.xmr.to:18081 -a rx/0 -u 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD --daemon pause diff --git a/src/3rdparty/argon2/CMakeLists.txt b/src/3rdparty/argon2/CMakeLists.txt index a9751fd9..e02197be 100644 --- a/src/3rdparty/argon2/CMakeLists.txt +++ b/src/3rdparty/argon2/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 2.8.12) project(argon2 C) set(CMAKE_C_STANDARD 99) diff --git a/src/3rdparty/epee/README.md b/src/3rdparty/epee/README.md index 2f06fe06..57e0efb1 100644 --- a/src/3rdparty/epee/README.md +++ b/src/3rdparty/epee/README.md @@ -1 +1 @@ -epee - is a small library of helpers, wrappers, tools and so on, used to make my life easier. +epee - is a small library of helpers, wrappers, tools and and so on, used to make my life easier. diff --git a/src/3rdparty/hwloc/CMakeLists.txt b/src/3rdparty/hwloc/CMakeLists.txt index 80f97920..3f159afd 100644 --- a/src/3rdparty/hwloc/CMakeLists.txt +++ b/src/3rdparty/hwloc/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required (VERSION 2.8.12) project (hwloc C) include_directories(include) diff --git a/src/3rdparty/hwloc/NEWS b/src/3rdparty/hwloc/NEWS index cf12c5e4..0bf74d44 100644 --- a/src/3rdparty/hwloc/NEWS +++ b/src/3rdparty/hwloc/NEWS @@ -1,5 +1,5 @@ Copyright © 2009 CNRS -Copyright © 2009-2025 Inria. All rights reserved. +Copyright © 2009-2021 Inria. All rights reserved. Copyright © 2009-2013 Université Bordeaux Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. Copyright © 2020 Hewlett Packard Enterprise. All rights reserved. @@ -17,348 +17,6 @@ bug fixes (and other actions) for each version of hwloc since version 0.9. -Version 2.12.1 --------------- -* Add hwloc-calc's --default-nodes option to hwloc-bind and hwloc-info. -* Improve the --best-memattr "default" fallback, try to use "default" - memory nodes, and add verbose messages and warnings if some - performance info are incomplete or missing. - Thanks to Antoine Morvan for the report. -* Fix CPU and memory binding on different locations, - thanks to Antoine Morvan for the report. -* Add HWLOC_LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY and enable it by - default in hwloc-calc --local-memory for finding local NUMA nodes - that do not exactly match input locations. - Thanks to Antoine Morvan for the report. -* Fix a possible crash in the x86 backend when Qemu is configured to - expose multicore/thread CPUs that are actually single-core/thread. - Thanks to Georg Pfuetzenreuter. - - -Version 2.12.0 --------------- -* Add hwloc_topology_get_default_nodeset() for the set of default - NUMA nodes. - - hwloc-calc now has --default-nodes option. -* Rework oneAPI LevelZero support to use zesInit() and avoid the need - to set ZES_ENABLE_SYSMAN=1 in the environment. - - zesDriverGetDeviceByUuidExp() is now required in the L0 runtime. - - ZES/Sysman variants were added in hwloc/levelzero.h to specifically - handle ZES/Sysman device handles. -* Fix the locality of AMD GPU partitions, thanks to Edgar Leon for - reporting and debugging the issue. -* Better detect Cray Slingshot NICs, thanks to Edgar Leon. -* Add support for Die objects and Module groups on Windows. -* Only filter-out Dies that are identical to their Packages - when it applies to all Dies. -* Improve hwloc-calc to handle CPU-less NUMA nodes or platforms with - heterogeneous memory without requiring --nodeset-output. -* hwloc-calc now accepts counting/listing cpukinds and memory tiers - with -N and -I cpukind/memorytier. -* The systemd-dbus-api output of hwloc-calc has changed, and - --nodeset-output-format was added, to support NUMA node outputs. - Thanks to Pierre Neyron. -* Update NVLink bandwidth and CUDA capabilities up to NVIDIA Blackwell. -* Fix some NUMA syscalls on Linux for platforms with old libc headers. -* Some minor fixes in distances. - - -Version 2.11.2 --------------- -* Add missing CPU info attrs on aarch64 on Linux. -* Use ACPI CPPC on Linux to get better information about cpukinds, - at least on AMD CPUs. -* Fix crash when manipulating cpukinds after topology - duplication, thanks to Hadrien Grasland for the report. -* Fix missing input target checks in memattr functions, - thanks to Hadrien Grasland for the report. -* Fix a memory leak when ignoring NUMA distances on FreeBSD. -* Fix build failure on old Linux distributions without accessat(). -* Fix non-Windows importing of XML topologies and CPUID dumps exported - on Windows. -* hwloc-calc --cpuset-output-format systemd-dbus-api now allows - to generate AllowedCPUs information for systemd slices. - See the hwloc-calc manpage for examples. Thanks to Pierre Neyron. -* Some fixes in manpage EXAMPLES and split them into subsections. - - -Version 2.11.1 --------------- -* Fix bash completions, thanks Tavis Rudd. - - -Version 2.11.0 --------------- -* API - + Add HWLOC_MEMBIND_WEIGHTED_INTERLEAVE memory binding policy on - Linux 6.9+. Thanks to Honggyu Kim for the patch. - - weighted_interleave_membind is added to membind support bits. - - The "weighted" policy is added to the hwloc-bind tool. - + Add hwloc_obj_set_subtype(). Thanks to Hadrien Grasland for the report. -* GPU support - + Don't hide the GPU NUMA node on NVIDIA Grace Hopper. - + Get Intel GPU OpenCL device locality. - + Add bandwidths between subdevices in the LevelZero XeLinkBandwidth - matrix. - + Fix PCI Gen4+ link speed of NVIDIA GPU obtained from NVML, - thanks to Akram Sbaih for the report. -* Windows support - + Fix Windows support when UNICODE is enabled, several hwloc features - were missing, thanks to Martin for the report. - + Fix the enabling of CUDA in Windows CMake build, - Thanks to Moritz Kreutzer for the patch. - + Fix CUDA/OpenCL test source path in Windows CMake. -* Tools - + Option --best-memattr may now return multiple nodes. Additional - configuration flags may be given to tweak its behavior. - + hwloc-info has a new --get-attr option to get a single attribute. - + hwloc-info now supports "levels", "support" and "topology" - special keywords for backward compatibility for hwloc 3.0. - + The --taskset command-line option is superseded by the new - --cpuset-output-format which also allows to export as list. - + hwloc-calc may now import bitmasks described as a list of bits - with the new "--cpuset-input-format list". -* Misc - + The MemoryTiersNr info attribute in the root object now says how many - memory tiers were built. Thanks to Antoine Morvan for the report. - + Fix the management of infinite cpusets in the bitmap printf/sscanf - API as well as in command-line tools. - + Add section "Compiling software on top of hwloc's C API" in the - documentation with examples for GNU Make and CMake, - thanks to Florent Pruvost for the help. - - -Version 2.10.0 --------------- -* Heterogeneous Memory core improvements - + Better heuristics to identify the subtype of memory such as HBM, - DRAM, NVM, CXL-DRAM, etc. - + Build memory tiers, i.e. sets of NUMA nodes with the same subtype - and similar performance. - - NUMA node tier ranks are exposed in the new MemoryTier info - attribute (starts from 0 for highest bandwidth tier).. - + See the new Heterogeneous Memory section in the documentation. -* API - + Add hwloc_topology_free_group_object() to discard a Group created - by hwloc_topology_alloc_group_object(). -* Linux backend - + Fix cpukinds on NVIDIA Grace to report identical cores even if they - actually have very small frequency differences. - Thanks to John C. Linford for the report. - + Add CXLDevice attributes to CXL DAX objects and NUMA nodes to show - which PCI device implements which window. - + Ignore buggy memory-side caches and memory attributes when fake NUMA - emulation is enabled on the Linux kernel command-line. - + Add more info attributes in MemoryModule Misc objects, - thanks to Zubiao Xiong for the patch. - + Get CPUModel and CPUFamily info attributes on LoongArch platforms. -* x86 backend - + Add support for new AMD CPUID leaf 0x80000026 for better detection - of Core Complex and Die on Zen4 processors. - + Improve Zhaoxin CPU topology detection. -* Tools - + Input locations and many command-line options (e.g. hwloc-calc -I -N -H, - lstopo --only) now accept filters such as "NUMA[HBM]" so that only - objects are that type and subtype are considered. - - NUMA[tier=1] is also accepted for selecting NUMA nodes depending - on their MemoryTier info attribute. - + Add --object-output to hwloc-calc to report the type as a prefix to - object indexes, e.g. Core:2 instead of 2 in the output of -I. - + hwloc-info --ancestor and --descendants now accepts kinds of objects - instead of single types. - - The new --first option only shows the first matching object. - + Add --children-of-pid to hwloc-ps to show a hierarchy of processes. - Thanks to Antoine Morvan for the suggestion. - + Add --misc-from to lstopo to add Misc objects described in a file. - - To be combined with the new hwloc-ps --lstopo-misc for a customizable - lstopo --top replacement. -* Misc - + lstopo may now configure the layout of memory object placed above, - for instance with --children-order memory:above:vert. - + Fix XML import from memory or stdin when using libxml2 2.12. - + Fix installation failures when configuring with --target, - thanks to Clement Foyer for the patch. - + Fix support for 128bit pointer architectures. - + Remove Netloc. - - -Version 2.9.3 -------------- -* Handle Linux glibc allocation errors in binding routines (CVE-2022-47022). -* Fix hwloc-calc when searching objects on heterogeneous memory platforms, - thanks to Antoine Morvan for the report. -* Fix hwloc_get_next_child() when there are some memory-side caches. -* Don't crash if the topology is empty because Linux cgroups are wrong. -* Improve some hwloc-bind warnings in case of command-line parsing errors. -* Many documentation improvements all over the place, including: - + hwloc_topology_restrict() and hwloc_topology_insert_group() may reorder - children, causing the logical indexes of objects to change. - - -Version 2.9.2 -------------- -* Don't forget L3i when defining filters for multiple levels of caches - with hwloc_topology_set_cache/icache_types_filter(). -* Fix object total_memory after hwloc_topology_insert_group_object(). -* Fix the (non-yet) exporting in synthetic description for complex memory - hierarchies with memory-side caches, etc. -* Fix some default size attributes when building synthetic topologies. -* Fix size units in hwloc-annotate. -* Improve bitmap reallocation error management in many functions. -* Documentation improvements: - + Better document return values of functions. - + Add "Error reporting" section (in hwloc.h and in the doxygen doc). - + Add FAQ entry "What may I disable to make hwloc faster?" - + Improve FAQ entries "Why is lstopo slow?" and - "I only need ..., why should I use hwloc?" - + Clarify how to deal with cpukinds in hwloc-calc and hwloc-bind - manpages. - - -Version 2.9.1 -------------- -* Don't forget to apply object type filters to "perflevel" caches detected - on recent Mac OS X releases, thanks to Michel Lesoinne for the report. -* Fix a failed assertion in hwloc_topology_restrict() when some NUMA nodes - are removed because of HWLOC_RESTRICT_FLAG_REMOVE_CPULESS but no PUs are. - Thanks to Mark Grondona for reporting the issue. -* Mark HPE Cray Slingshot NICs with subtype "Slingshot". - - -Version 2.9.0 -------------- -* Backends - + Expose the memory size of CXL memory devices (Type 3) on Linux. - + The LevelZero backend now reports the "XeLinkBandwidth" distance - matrix between L0 devices (and subdevices) when available. - + Add support for CUDA compute capability up to 9.0. -* Tools - + lstopo now switches to console mode when its output is redirected. - Graphical window mode may be forced back with --of window. - + hwloc-calc now accepts "numa" in -H, and I/O subtypes such as "gpu" - in -I and -N. - - -Version 2.8.0 -------------- -* API - + Add HWLOC_TOPOLOGY_FLAG_NO_DISTANCES, _NO_MEMATTRS and _NO_CPUKINDS - to reduce the overhead when unneeded. - + Add separate Read/Write Bandwidth/Latency memory attributes and - implement them on Linux. -* Backends - + NUMA nodes may now have a subtype such as DRAM, HBM, SPM, or NVM - on heterogeneous memory platforms on Linux. - - Add DAXType and DAXParent attributes on Linux to tell where a - DAX device or its corresponding NUMA node come from (SPM for - Specific-Purpose or NVM for Non-Volatile Memory). - + Detect heterogeneous caches in hybrid CPUs on MacOS X, - thanks to Paul Bone for the help. - + Max frequencies are not ignored in Linux cpukinds anymore (they were - ignored in hwloc 2.7.0), but they may be slightly adjusted to avoid - reporting hybrid CPUs because Intel Turbo Boost Max 3.0. - - See the documentation of environment variable HWLOC_CPUKINDS_MAXFREQ. - + Hardwire the PCI locality of HPE Cray EX235a nodes. -* Tools - + lstopo and other tools may now load Linux and x86 cpuid topology files - from a tarball. - + lstopo may now replace the P# and L# index prefixes with custom strings - thanks to --os-index-prefix and --logical-index-prefix options. -* Misc - + Add --disable-readme to avoid regenerating the top-level hwloc README - file from the documentation. - - -Version 2.7.2 -------------- -* Fix a crash when LevelZero devices have multiple subdevices, - e.g. on PonteVecchio GPUs, thanks to Jonathan Peyton. -* Fix a leak when importing cpukinds from XML, - thanks to Hui Zhou. - - -Version 2.7.1 -------------- -* Workaround crashes when virtual machines report incoherent x86 CPUID - information about numbers of cores and threads. - Thanks to Peter Bense for the report. -* Use setenv() instead of putenv() when trying to force enable oneAPI L0 - support, to avoid issues with applications that touch the environment, - thanks to Josh Hursey for the patch. -* Add some warnings at the end of configure when GPU libraries are - missing on the system or their path is missing in the environment. - - -Version 2.7.0 -------------- -* Backends - + Add support for NUMA nodes and caches with more than 64 PUs across - multiple processor groups on Windows 11 and Windows Server 2022. - + Group objects are not created for Windows processor groups anymore, - except if HWLOC_WINDOWS_PROCESSOR_GROUP_OBJS=1 in the environment. - + Expose "Cluster" group objects on Linux kernel 5.16+ for CPUs - that share some internal cache or bus. This can be equivalent - to the L2 Cache level on some platforms (e.g. x86) or a specific - level between L2 and L3 on others (e.g. ARM Kungpeng 920). - Thanks to Jonathan Cameron for the help. - - HWLOC_DONT_MERGE_CLUSTER_GROUPS=1 may be set in the environment - to prevent these groups from being merged with identical caches, etc. - + Improve the oneAPI LevelZero backend: - - Expose subdevices such as "ze0.1" inside root OS devices ("ze0") - when the hardware contains multiple subdevices. - - Add many new attributes to describe device type, and the - numbers of slices, subslices, execution units and threads. - - Expose the memory information as LevelZeroHBM/DDR/MemorySize infos. - + Ignore the max frequencies of cores in Linux cpukinds when the - base frequencies are available (to avoid exposing hybrid CPUs - when Intel Turbo Boost Max 3.0 gives slightly different max - frequencies to CPU cores). - - May be reverted by setting HWLOC_CPUKINDS_MAXFREQ=1 in the environment. -* Tools - + Add --grey and --palette options to switch lstopo to greyscale or - white-background-only graphics, or to tune individual colors. -* Build - + Windows CMake builds now support non-MSVC compilers, detect several - features at build time, can build/run tests, etc. - Thanks to Michael Hirsch and Alexander Neumann . - - -Version 2.6.0 -------------- -* Backends - + Expose two cpukinds for energy-efficient cores (icestorm) and - high-performance cores (firestorm) on Apple M1 on Mac OS X. - + Use sysfs CPU "capacity" to rank hybrid cores by efficiency - on Linux when available (mostly on recent ARM platforms for now). - + Improve HWLOC_MEMBIND_BIND (without the STRICT flag) on Linux kernel - >= 5.15: If more than one node is given, the kernel may now use all - of them instead of only the first one before falling back to others. - + Expose cache os_index when available on Linux, it may be needed - when using resctrl to configure cache partitioning, memory bandwidth - monitoring, etc. - + Add a "XGMIHops" distances matrix in the RSMI backend for AMD GPU - interconnected through XGMI links. - + Expose AMD GPU memory information (VRAM and GTT) in the RSMI backend. - + Add OS devices such as "bxi0" for Atos/Bull BXI HCAs on Linux. -* Tools - + lstopo has a better placement algorithm with respect to I/O - objects, see --children-order in the manpage for details. - + hwloc-annotate may now change object subtypes and cache or memory - sizes. -* Build - + Allow to specify the ROCm installation for building the RSMI backend: - - Use a custom installation path if specified with --with-rocm=. - - Use /opt/rocm- if specified with --with-rocm-version= - or the ROCM_VERSION environment variable. - - Try /opt/rocm if it exists. - - See "How do I enable ROCm SMI and select which version to use?" - in the FAQ for details. - + Add a CMakeLists for Windows under contrib/windows-cmake/ . -* Documentation - + Add FAQ entry "How do I create a custom heterogeneous and - asymmetric topology?" - - Version 2.5.0 ------------- * API diff --git a/src/3rdparty/hwloc/README b/src/3rdparty/hwloc/README index 91fe2066..932d6d09 100644 --- a/src/3rdparty/hwloc/README +++ b/src/3rdparty/hwloc/README @@ -1,8 +1,4 @@ -This is a truncated and poorly-formatted version of the documentation main page. -See https://www.open-mpi.org/projects/hwloc/doc/ for more. - - -hwloc Overview +Introduction The Hardware Locality (hwloc) software project aims at easing the process of discovering hardware resources in parallel architectures. It offers @@ -12,450 +8,66 @@ high-performance computing (HPC) applications, but is also applicable to any project seeking to exploit code and/or data locality on modern computing platforms. -hwloc provides command line tools and a C API to obtain the hierarchical map of -key computing elements within a node, such as: NUMA memory nodes, shared -caches, processor packages, dies and cores, processing units (logical -processors or "threads") and even I/O devices. hwloc also gathers various -attributes such as cache and memory information, and is portable across a -variety of different operating systems and platforms. +hwloc is actually made of two subprojects distributed together: -hwloc primarily aims at helping high-performance computing (HPC) applications, -but is also applicable to any project seeking to exploit code and/or data -locality on modern computing platforms. + * The original hwloc project for describing the internals of computing nodes. + It is described in details starting at section Hardware Locality (hwloc) + Introduction. + * The network-oriented companion called netloc (Network Locality), described + in details starting with section Network Locality (netloc). -hwloc supports the following operating systems: +See also the Related pages tab above for links to other sections. - * Linux (with knowledge of cgroups and cpusets, memory targets/initiators, - etc.) on all supported hardware, including Intel Xeon Phi, ScaleMP vSMP, - and NumaScale NumaConnect. - * Solaris (with support for processor sets and logical domains) - * AIX - * Darwin / OS X - * FreeBSD and its variants (such as kFreeBSD/GNU) - * NetBSD - * HP-UX - * Microsoft Windows - * IBM BlueGene/Q Compute Node Kernel (CNK) +Netloc may be disabled, but the original hwloc cannot. Both hwloc and netloc +APIs are documented after these sections. -Since it uses standard Operating System information, hwloc's support is mostly -independant from the processor type (x86, powerpc, ...) and just relies on the -Operating System support. The main exception is BSD operating systems (NetBSD, -FreeBSD, etc.) because they do not provide support topology information, hence -hwloc uses an x86-only CPUID-based backend (which can be used for other OSes -too, see the Components and plugins section). +Installation -To check whether hwloc works on a particular machine, just try to build it and -run lstopo or lstopo-no-graphics. If some things do not look right (e.g. bogus -or missing cache information), see Questions and Bugs. +hwloc (https://www.open-mpi.org/projects/hwloc/) is available under the BSD +license. It is hosted as a sub-project of the overall Open MPI project (https:/ +/www.open-mpi.org/). Note that hwloc does not require any functionality from +Open MPI -- it is a wholly separate (and much smaller!) project and code base. +It just happens to be hosted as part of the overall Open MPI project. -hwloc only reports the number of processors on unsupported operating systems; -no topology information is available. +Basic Installation -For development and debugging purposes, hwloc also offers the ability to work -on "fake" topologies: +Installation is the fairly common GNU-based process: - * Symmetrical tree of resources generated from a list of level arities, see - Synthetic topologies. - * Remote machine simulation through the gathering of topology as XML files, - see Importing and exporting topologies from/to XML files. +shell$ ./configure --prefix=... +shell$ make +shell$ make install -hwloc can display the topology in a human-readable format, either in graphical -mode (X11), or by exporting in one of several different formats, including: -plain text, LaTeX tikzpicture, PDF, PNG, and FIG (see Command-line Examples -below). Note that some of the export formats require additional support -libraries. +hwloc- and netloc-specific configure options and requirements are documented in +sections hwloc Installation and Netloc Installation respectively. -hwloc offers a programming interface for manipulating topologies and objects. -It also brings a powerful CPU bitmap API that is used to describe topology -objects location on physical/logical processors. See the Programming Interface -below. It may also be used to binding applications onto certain cores or memory -nodes. Several utility programs are also provided to ease command-line -manipulation of topology objects, binding of processes, and so on. +Also note that if you install supplemental libraries in non-standard locations, +hwloc's configure script may not be able to find them without some help. You +may need to specify additional CPPFLAGS, LDFLAGS, or PKG_CONFIG_PATH values on +the configure command line. -Bindings for several other languages are available from the project website. +For example, if libpciaccess was installed into /opt/pciaccess, hwloc's +configure script may not find it be default. Try adding PKG_CONFIG_PATH to the +./configure command line, like this: -Command-line Examples +./configure PKG_CONFIG_PATH=/opt/pciaccess/lib/pkgconfig ... -On a 4-package 2-core machine with hyper-threading, the lstopo tool may show -the following graphical output: +Running the "lstopo" tool is a good way to check as a graphical output whether +hwloc properly detected the architecture of your node. Netloc command-line +tools can be used to display the network topology interconnecting your nodes. -[dudley] +Installing from a Git clone -Here's the equivalent output in textual form: +Additionally, the code can be directly cloned from Git: -Machine - NUMANode L#0 (P#0) - Package L#0 + L3 L#0 (4096KB) - L2 L#0 (1024KB) + L1 L#0 (16KB) + Core L#0 - PU L#0 (P#0) - PU L#1 (P#8) - L2 L#1 (1024KB) + L1 L#1 (16KB) + Core L#1 - PU L#2 (P#4) - PU L#3 (P#12) - Package L#1 + L3 L#1 (4096KB) - L2 L#2 (1024KB) + L1 L#2 (16KB) + Core L#2 - PU L#4 (P#1) - PU L#5 (P#9) - L2 L#3 (1024KB) + L1 L#3 (16KB) + Core L#3 - PU L#6 (P#5) - PU L#7 (P#13) - Package L#2 + L3 L#2 (4096KB) - L2 L#4 (1024KB) + L1 L#4 (16KB) + Core L#4 - PU L#8 (P#2) - PU L#9 (P#10) - L2 L#5 (1024KB) + L1 L#5 (16KB) + Core L#5 - PU L#10 (P#6) - PU L#11 (P#14) - Package L#3 + L3 L#3 (4096KB) - L2 L#6 (1024KB) + L1 L#6 (16KB) + Core L#6 - PU L#12 (P#3) - PU L#13 (P#11) - L2 L#7 (1024KB) + L1 L#7 (16KB) + Core L#7 - PU L#14 (P#7) - PU L#15 (P#15) +shell$ git clone https://github.com/open-mpi/hwloc.git +shell$ cd hwloc +shell$ ./autogen.sh -Note that there is also an equivalent output in XML that is meant for exporting -/importing topologies but it is hardly readable to human-beings (see Importing -and exporting topologies from/to XML files for details). +Note that GNU Autoconf >=2.63, Automake >=1.11 and Libtool >=2.2.6 are required +when building from a Git clone. -On a 4-package 2-core Opteron NUMA machine (with two core cores disallowed by -the administrator), the lstopo tool may show the following graphical output -(with --disallowed for displaying disallowed objects): - -[hagrid] - -Here's the equivalent output in textual form: - -Machine (32GB total) - Package L#0 - NUMANode L#0 (P#0 8190MB) - L2 L#0 (1024KB) + L1 L#0 (64KB) + Core L#0 + PU L#0 (P#0) - L2 L#1 (1024KB) + L1 L#1 (64KB) + Core L#1 + PU L#1 (P#1) - Package L#1 - NUMANode L#1 (P#1 8192MB) - L2 L#2 (1024KB) + L1 L#2 (64KB) + Core L#2 + PU L#2 (P#2) - L2 L#3 (1024KB) + L1 L#3 (64KB) + Core L#3 + PU L#3 (P#3) - Package L#2 - NUMANode L#2 (P#2 8192MB) - L2 L#4 (1024KB) + L1 L#4 (64KB) + Core L#4 + PU L#4 (P#4) - L2 L#5 (1024KB) + L1 L#5 (64KB) + Core L#5 + PU L#5 (P#5) - Package L#3 - NUMANode L#3 (P#3 8192MB) - L2 L#6 (1024KB) + L1 L#6 (64KB) + Core L#6 + PU L#6 (P#6) - L2 L#7 (1024KB) + L1 L#7 (64KB) + Core L#7 + PU L#7 (P#7) - -On a 2-package quad-core Xeon (pre-Nehalem, with 2 dual-core dies into each -package): - -[emmett] - -Here's the same output in textual form: - -Machine (total 16GB) - NUMANode L#0 (P#0 16GB) - Package L#0 - L2 L#0 (4096KB) - L1 L#0 (32KB) + Core L#0 + PU L#0 (P#0) - L1 L#1 (32KB) + Core L#1 + PU L#1 (P#4) - L2 L#1 (4096KB) - L1 L#2 (32KB) + Core L#2 + PU L#2 (P#2) - L1 L#3 (32KB) + Core L#3 + PU L#3 (P#6) - Package L#1 - L2 L#2 (4096KB) - L1 L#4 (32KB) + Core L#4 + PU L#4 (P#1) - L1 L#5 (32KB) + Core L#5 + PU L#5 (P#5) - L2 L#3 (4096KB) - L1 L#6 (32KB) + Core L#6 + PU L#6 (P#3) - L1 L#7 (32KB) + Core L#7 + PU L#7 (P#7) - -Programming Interface - -The basic interface is available in hwloc.h. Some higher-level functions are -available in hwloc/helper.h to reduce the need to manually manipulate objects -and follow links between them. Documentation for all these is provided later in -this document. Developers may also want to look at hwloc/inlines.h which -contains the actual inline code of some hwloc.h routines, and at this document, -which provides good higher-level topology traversal examples. - -To precisely define the vocabulary used by hwloc, a Terms and Definitions -section is available and should probably be read first. - -Each hwloc object contains a cpuset describing the list of processing units -that it contains. These bitmaps may be used for CPU binding and Memory binding. -hwloc offers an extensive bitmap manipulation interface in hwloc/bitmap.h. - -Moreover, hwloc also comes with additional helpers for interoperability with -several commonly used environments. See the Interoperability With Other -Software section for details. - -The complete API documentation is available in a full set of HTML pages, man -pages, and self-contained PDF files (formatted for both both US letter and A4 -formats) in the source tarball in doc/doxygen-doc/. - -NOTE: If you are building the documentation from a Git clone, you will need to -have Doxygen and pdflatex installed -- the documentation will be built during -the normal "make" process. The documentation is installed during "make install" -to $prefix/share/doc/hwloc/ and your systems default man page tree (under -$prefix, of course). - -Portability - -Operating System have varying support for CPU and memory binding, e.g. while -some Operating Systems provide interfaces for all kinds of CPU and memory -bindings, some others provide only interfaces for a limited number of kinds of -CPU and memory binding, and some do not provide any binding interface at all. -Hwloc's binding functions would then simply return the ENOSYS error (Function -not implemented), meaning that the underlying Operating System does not provide -any interface for them. CPU binding and Memory binding provide more information -on which hwloc binding functions should be preferred because interfaces for -them are usually available on the supported Operating Systems. - -Similarly, the ability of reporting topology information varies from one -platform to another. As shown in Command-line Examples, hwloc can obtain -information on a wide variety of hardware topologies. However, some platforms -and/or operating system versions will only report a subset of this information. -For example, on an PPC64-based system with 8 cores (each with 2 hardware -threads) running a default 2.6.18-based kernel from RHEL 5.4, hwloc is only -able to glean information about NUMA nodes and processor units (PUs). No -information about caches, packages, or cores is available. - -Here's the graphical output from lstopo on this platform when Simultaneous -Multi-Threading (SMT) is enabled: - -[ppc64-with] - -And here's the graphical output from lstopo on this platform when SMT is -disabled: - -[ppc64-with] - -Notice that hwloc only sees half the PUs when SMT is disabled. PU L#6, for -example, seems to change location from NUMA node #0 to #1. In reality, no PUs -"moved" -- they were simply re-numbered when hwloc only saw half as many (see -also Logical index in Indexes and Sets). Hence, PU L#6 in the SMT-disabled -picture probably corresponds to PU L#12 in the SMT-enabled picture. - -This same "PUs have disappeared" effect can be seen on other platforms -- even -platforms / OSs that provide much more information than the above PPC64 system. -This is an unfortunate side-effect of how operating systems report information -to hwloc. - -Note that upgrading the Linux kernel on the same PPC64 system mentioned above -to 2.6.34, hwloc is able to discover all the topology information. The -following picture shows the entire topology layout when SMT is enabled: - -[ppc64-full] - -Developers using the hwloc API or XML output for portable applications should -therefore be extremely careful to not make any assumptions about the structure -of data that is returned. For example, per the above reported PPC topology, it -is not safe to assume that PUs will always be descendants of cores. - -Additionally, future hardware may insert new topology elements that are not -available in this version of hwloc. Long-lived applications that are meant to -span multiple different hardware platforms should also be careful about making -structure assumptions. For example, a new element may someday exist between a -core and a PU. - -API Example - -The following small C example (available in the source tree as ``doc/examples/ -hwloc-hello.c'') prints the topology of the machine and performs some thread -and memory binding. More examples are available in the doc/examples/ directory -of the source tree. - -/* Example hwloc API program. -* -* See other examples under doc/examples/ in the source tree -* for more details. -* -* Copyright (c) 2009-2016 Inria. All rights reserved. -* Copyright (c) 2009-2011 Universit?eacute; Bordeaux -* Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved. -* See COPYING in top-level directory. -* -* hwloc-hello.c -*/ -#include "hwloc.h" -#include -#include -#include -static void print_children(hwloc_topology_t topology, hwloc_obj_t obj, -int depth) -{ -char type[32], attr[1024]; -unsigned i; -hwloc_obj_type_snprintf(type, sizeof(type), obj, 0); -printf("%*s%s", 2*depth, "", type); -if (obj->os_index != (unsigned) -1) -printf("#%u", obj->os_index); -hwloc_obj_attr_snprintf(attr, sizeof(attr), obj, " ", 0); -if (*attr) -printf("(%s)", attr); -printf("\n"); -for (i = 0; i < obj->arity; i++) { -print_children(topology, obj->children[i], depth + 1); -} -} -int main(void) -{ -int depth; -unsigned i, n; -unsigned long size; -int levels; -char string[128]; -int topodepth; -void *m; -hwloc_topology_t topology; -hwloc_cpuset_t cpuset; -hwloc_obj_t obj; -/* Allocate and initialize topology object. */ -hwloc_topology_init(&topology); -/* ... Optionally, put detection configuration here to ignore -some objects types, define a synthetic topology, etc.... -The default is to detect all the objects of the machine that -the caller is allowed to access. See Configure Topology -Detection. */ -/* Perform the topology detection. */ -hwloc_topology_load(topology); -/* Optionally, get some additional topology information -in case we need the topology depth later. */ -topodepth = hwloc_topology_get_depth(topology); -/***************************************************************** -* First example: -* Walk the topology with an array style, from level 0 (always -* the system level) to the lowest level (always the proc level). -*****************************************************************/ -for (depth = 0; depth < topodepth; depth++) { -printf("*** Objects at level %d\n", depth); -for (i = 0; i < hwloc_get_nbobjs_by_depth(topology, depth); -i++) { -hwloc_obj_type_snprintf(string, sizeof(string), -hwloc_get_obj_by_depth(topology, depth, i), 0); -printf("Index %u: %s\n", i, string); -} -} -/***************************************************************** -* Second example: -* Walk the topology with a tree style. -*****************************************************************/ -printf("*** Printing overall tree\n"); -print_children(topology, hwloc_get_root_obj(topology), 0); -/***************************************************************** -* Third example: -* Print the number of packages. -*****************************************************************/ -depth = hwloc_get_type_depth(topology, HWLOC_OBJ_PACKAGE); -if (depth == HWLOC_TYPE_DEPTH_UNKNOWN) { -printf("*** The number of packages is unknown\n"); -} else { -printf("*** %u package(s)\n", -hwloc_get_nbobjs_by_depth(topology, depth)); -} -/***************************************************************** -* Fourth example: -* Compute the amount of cache that the first logical processor -* has above it. -*****************************************************************/ -levels = 0; -size = 0; -for (obj = hwloc_get_obj_by_type(topology, HWLOC_OBJ_PU, 0); -obj; -obj = obj->parent) -if (hwloc_obj_type_is_cache(obj->type)) { -levels++; -size += obj->attr->cache.size; -} -printf("*** Logical processor 0 has %d caches totaling %luKB\n", -levels, size / 1024); -/***************************************************************** -* Fifth example: -* Bind to only one thread of the last core of the machine. -* -* First find out where cores are, or else smaller sets of CPUs if -* the OS doesn't have the notion of a "core". -*****************************************************************/ -depth = hwloc_get_type_or_below_depth(topology, HWLOC_OBJ_CORE); -/* Get last core. */ -obj = hwloc_get_obj_by_depth(topology, depth, -hwloc_get_nbobjs_by_depth(topology, depth) - 1); -if (obj) { -/* Get a copy of its cpuset that we may modify. */ -cpuset = hwloc_bitmap_dup(obj->cpuset); -/* Get only one logical processor (in case the core is -SMT/hyper-threaded). */ -hwloc_bitmap_singlify(cpuset); -/* And try to bind ourself there. */ -if (hwloc_set_cpubind(topology, cpuset, 0)) { -char *str; -int error = errno; -hwloc_bitmap_asprintf(&str, obj->cpuset); -printf("Couldn't bind to cpuset %s: %s\n", str, strerror(error)); -free(str); -} -/* Free our cpuset copy */ -hwloc_bitmap_free(cpuset); -} -/***************************************************************** -* Sixth example: -* Allocate some memory on the last NUMA node, bind some existing -* memory to the last NUMA node. -*****************************************************************/ -/* Get last node. There's always at least one. */ -n = hwloc_get_nbobjs_by_type(topology, HWLOC_OBJ_NUMANODE); -obj = hwloc_get_obj_by_type(topology, HWLOC_OBJ_NUMANODE, n - 1); -size = 1024*1024; -m = hwloc_alloc_membind(topology, size, obj->nodeset, -HWLOC_MEMBIND_BIND, HWLOC_MEMBIND_BYNODESET); -hwloc_free(topology, m, size); -m = malloc(size); -hwloc_set_area_membind(topology, m, size, obj->nodeset, -HWLOC_MEMBIND_BIND, HWLOC_MEMBIND_BYNODESET); -free(m); -/* Destroy topology object. */ -hwloc_topology_destroy(topology); -return 0; -} - -hwloc provides a pkg-config executable to obtain relevant compiler and linker -flags. See Compiling software on top of hwloc's C API for details on building -program on top of hwloc's API using GNU Make or CMake. - -On a machine 2 processor packages -- each package of which has two processing -cores -- the output from running hwloc-hello could be something like the -following: - -shell$ ./hwloc-hello -*** Objects at level 0 -Index 0: Machine -*** Objects at level 1 -Index 0: Package#0 -Index 1: Package#1 -*** Objects at level 2 -Index 0: Core#0 -Index 1: Core#1 -Index 2: Core#3 -Index 3: Core#2 -*** Objects at level 3 -Index 0: PU#0 -Index 1: PU#1 -Index 2: PU#2 -Index 3: PU#3 -*** Printing overall tree -Machine - Package#0 - Core#0 - PU#0 - Core#1 - PU#1 - Package#1 - Core#3 - PU#2 - Core#2 - PU#3 -*** 2 package(s) -*** Logical processor 0 has 0 caches totaling 0KB -shell$ +Nightly development snapshots are available on the web site, they can be +configured and built without any need for Git or GNU Autotools. Questions and Bugs @@ -466,22 +78,8 @@ debug and report issues. Questions may be sent to the users or developers mailing lists (https:// www.open-mpi.org/community/lists/hwloc.php). -There is also a #hwloc IRC channel on Libera Chat (irc.libera.chat). - -History / Credits - -hwloc is the evolution and merger of the libtopology project and the Portable -Linux Processor Affinity (PLPA) (https://www.open-mpi.org/projects/plpa/) -project. Because of functional and ideological overlap, these two code bases -and ideas were merged and released under the name "hwloc" as an Open MPI -sub-project. - -libtopology was initially developed by the Inria Runtime Team-Project. PLPA was -initially developed by the Open MPI development team as a sub-project. Both are -now deprecated in favor of hwloc, which is distributed as an Open MPI -sub-project. +There is also a #hwloc IRC channel on Freenode (irc.freenode.net). -See https://www.open-mpi.org/projects/hwloc/doc/ for more hwloc documentation, -actual links to related pages, images, etc. +See https://www.open-mpi.org/projects/hwloc/doc/ for more hwloc documentation. diff --git a/src/3rdparty/hwloc/VERSION b/src/3rdparty/hwloc/VERSION index 7f6675cb..a74f0a53 100644 --- a/src/3rdparty/hwloc/VERSION +++ b/src/3rdparty/hwloc/VERSION @@ -8,8 +8,8 @@ # Please update HWLOC_VERSION* in contrib/windows/hwloc_config.h too. major=2 -minor=12 -release=1 +minor=5 +release=0 # greek is used for alpha or beta release tags. If it is non-empty, # it will be appended to the version number. It does not have to be @@ -22,7 +22,7 @@ greek= # The date when this release was created -date="May 12, 2025" +date="Jun 14, 2021" # If snapshot=1, then use the value from snapshot_version as the # entire hwloc version (i.e., ignore major, minor, release, and @@ -41,6 +41,7 @@ snapshot_version=${major}.${minor}.${release}${greek}-git # 2. Version numbers are described in the Libtool current:revision:age # format. -libhwloc_so_version=25:0:10 +libhwloc_so_version=20:0:5 +libnetloc_so_version=0:0:0 # Please also update the lines in contrib/windows/libhwloc.vcxproj diff --git a/src/3rdparty/hwloc/include/hwloc.h b/src/3rdparty/hwloc/include/hwloc.h index bcae3257..88fac968 100644 --- a/src/3rdparty/hwloc/include/hwloc.h +++ b/src/3rdparty/hwloc/include/hwloc.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2025 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2012 Université Bordeaux * Copyright © 2009-2020 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -29,7 +29,7 @@ * THAT IS IN THE PDF/HTML THAT IS ***NOT*** IN hwloc.h! * * There are entire paragraph-length descriptions, discussions, and - * pretty pictures to explain subtle corner cases, provide concrete + * pretty prictures to explain subtle corner cases, provide concrete * examples, etc. * * Please, go read the documentation. :-) @@ -77,25 +77,6 @@ extern "C" { #endif -/** \defgroup hwlocality_api_error_reporting Error reporting in the API - * @{ - * Most functions in the hwloc API return an integer value. - * Unless documentated differently, they return 0 on success - * and -1 on error. - * Functions that return a pointer type return \c NULL on error. - * - * \p errno will be set to a meaningful value whenever possible. - * This includes the usual \c EINVAL when invalid function parameters are passed - * or \c ENOMEM when an internal allocation fails. - * Some specific \c errno value are also used, for instance for binding - * errors as documented in \ref hwlocality_cpubinding. - * - * Some modules describe return values of their functions - * in their introduction, for instance in \ref hwlocality_bitmap. - * @} - */ - - /** \defgroup hwlocality_api_version API version * @{ */ @@ -112,13 +93,11 @@ extern "C" { * Two stable releases of the same series usually have the same ::HWLOC_API_VERSION * even if their HWLOC_VERSION are different. */ -#define HWLOC_API_VERSION 0x00020c00 +#define HWLOC_API_VERSION 0x00020500 /** \brief Indicate at runtime which hwloc API version was used at build time. * * Should be ::HWLOC_API_VERSION if running on the same version. - * - * \return the build-time version number. */ HWLOC_DECLSPEC unsigned hwloc_get_api_version(void); @@ -263,11 +242,6 @@ typedef enum { * This is the smallest object representing Memory resources, * it cannot have any child except Misc objects. * However it may have Memory-side cache parents. - * - * NUMA nodes may correspond to different kinds of memory - * (DRAM, HBM, CXL-DRAM, etc.). When hwloc is able to guess - * that kind, it is specified in the subtype field of the object. - * See also \ref attributes_normal in the main documentation. * * There is always at least one such object in the topology * even if the machine is not NUMA. @@ -343,13 +317,6 @@ typedef enum { HWLOC_OBJ_DIE, /**< \brief Die within a physical package. * A subpart of the physical package, that contains multiple cores. - * - * Some operating systems (e.g. Linux) may expose a single die per package - * even if the hardware does not support dies at all. To avoid showing - * such non-existing dies, hwloc will filter them out if all of them are - * identical to packages. - * This is functionally equivalent to ::HWLOC_TYPE_FILTER_KEEP_STRUCTURE - * being enforced for Dies versus Packages. */ HWLOC_OBJ_TYPE_MAX /**< \private Sentinel value */ @@ -379,8 +346,7 @@ typedef enum hwloc_obj_osdev_type_e { * For instance the "eth0" interface on Linux. */ HWLOC_OBJ_OSDEV_OPENFABRICS, /**< \brief Operating system openfabrics device. * For instance the "mlx4_0" InfiniBand HCA, - * "hfi1_0" Omni-Path interface, - * or "bxi0" Atos/Bull BXI HCA on Linux. */ + * or "hfi1_0" Omni-Path interface on Linux. */ HWLOC_OBJ_OSDEV_DMA, /**< \brief Operating system dma engine device. * For instance the "dma0chan0" DMA channel on Linux. */ HWLOC_OBJ_OSDEV_COPROC /**< \brief Operating system co-processor device. @@ -391,17 +357,14 @@ typedef enum hwloc_obj_osdev_type_e { /** \brief Compare the depth of two object types * * Types shouldn't be compared as they are, since newer ones may be added in - * the future. - * - * \return A negative integer if \p type1 objects usually include \p type2 objects. - * \return A positive integer if \p type1 objects are usually included in \p type2 objects. - * \return 0 if \p type1 and \p type2 objects are the same. - * \return ::HWLOC_TYPE_UNORDERED if objects cannot be compared - * (because neither is usually contained in the other). - * - * \note Object types containing CPUs can always be compared - * (usually, a machine contains packages, which contain caches, - * which contain cores, which contain PUs). + * the future. This function returns less than, equal to, or greater than zero + * respectively if \p type1 objects usually include \p type2 objects, are the + * same as \p type2 objects, or are included in \p type2 objects. If the types + * can not be compared (because neither is usually contained in the other), + * ::HWLOC_TYPE_UNORDERED is returned. Object types containing CPUs can always + * be compared (usually, a system contains machines which contain nodes which + * contain packages which contain caches, which contain cores, which contain + * processors). * * \note ::HWLOC_OBJ_PU will always be the deepest, * while ::HWLOC_OBJ_MACHINE is always the highest. @@ -553,7 +516,7 @@ struct hwloc_obj { * objects). * * If the ::HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED configuration flag is set, - * some of these CPUs may be online but not allowed for binding, + * some of these CPUs may not be allowed for binding, * see hwloc_topology_get_allowed_cpuset(). * * \note All objects have non-NULL CPU and node sets except Misc and I/O objects. @@ -585,7 +548,7 @@ struct hwloc_obj { * nodes more precisely. * * If the ::HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED configuration flag is set, - * some of these nodes may be online but not allowed for allocation, + * some of these nodes may not be allowed for allocation, * see hwloc_topology_get_allowed_nodeset(). * * If there are no NUMA nodes in the machine, all the memory is close to this @@ -611,7 +574,7 @@ struct hwloc_obj { * \note Its value must not be changed, hwloc_bitmap_dup() must be used instead. */ - struct hwloc_info_s *infos; /**< \brief Array of info attributes (name and value strings). */ + struct hwloc_info_s *infos; /**< \brief Array of stringified info type=name. */ unsigned infos_count; /**< \brief Size of infos array. */ /* misc */ @@ -668,48 +631,33 @@ union hwloc_obj_attr_u { /** \brief PCI Device specific Object Attributes */ struct hwloc_pcidev_attr_s { #ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN - unsigned short domain; /**< \brief Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). - * Only 16bits PCI domains are supported by default. */ + unsigned short domain; /* Only 16bits PCI domains are supported by default */ #else - unsigned int domain; /**< \brief Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). - * 32bits PCI domain support break the library ABI, hence it's disabled by default. */ + unsigned int domain; /* 32bits PCI domain support break the library ABI, hence it's disabled by default */ #endif - unsigned char bus; /**< \brief Bus number (yy in the PCI BDF notation xxxx:yy:zz.t). */ - unsigned char dev; /**< \brief Device number (zz in the PCI BDF notation xxxx:yy:zz.t). */ - unsigned char func; /**< \brief Function number (t in the PCI BDF notation xxxx:yy:zz.t). */ - unsigned short class_id; /**< \brief The class number (first two bytes, without the prog_if). */ - unsigned short vendor_id; /**< \brief Vendor ID (xxxx in [xxxx:yyyy]). */ - unsigned short device_id; /**< \brief Device ID (yyyy in [xxxx:yyyy]). */ - unsigned short subvendor_id; /**< \brief Sub-Vendor ID. */ - unsigned short subdevice_id; /**< \brief Sub-Device ID. */ - unsigned char revision; /**< \brief Revision number. */ - float linkspeed; /**< \brief Link speed in GB/s. - * This datarate is the currently configured speed of the entire PCI link - * (sum of the bandwidth of all PCI lanes in that link). - * It may change during execution since some devices are able to - * slow their PCI links down when idle. - */ + unsigned char bus, dev, func; + unsigned short class_id; + unsigned short vendor_id, device_id, subvendor_id, subdevice_id; + unsigned char revision; + float linkspeed; /* in GB/s */ } pcidev; - /** \brief Bridge specific Object Attributes */ + /** \brief Bridge specific Object Attribues */ struct hwloc_bridge_attr_s { union { - struct hwloc_pcidev_attr_s pci; /**< \brief PCI attribute of the upstream part as a PCI device. */ + struct hwloc_pcidev_attr_s pci; } upstream; - hwloc_obj_bridge_type_t upstream_type; /**< \brief Upstream Bridge type. */ + hwloc_obj_bridge_type_t upstream_type; union { struct { #ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN - unsigned short domain; /**< \brief Domain number the downstream PCI buses. - * Only 16bits PCI domains are supported by default. */ + unsigned short domain; /* Only 16bits PCI domains are supported by default */ #else - unsigned int domain; /**< \brief Domain number the downstream PCI buses. - * 32bits PCI domain support break the library ABI, hence it's disabled by default */ + unsigned int domain; /* 32bits PCI domain support break the library ABI, hence it's disabled by default */ #endif - unsigned char secondary_bus; /**< \brief First PCI bus number below the bridge. */ - unsigned char subordinate_bus; /**< \brief Highest PCI bus number below the bridge. */ + unsigned char secondary_bus, subordinate_bus; } pci; } downstream; - hwloc_obj_bridge_type_t downstream_type; /**< \brief Downstream Bridge type. */ + hwloc_obj_bridge_type_t downstream_type; unsigned depth; } bridge; /** \brief OS Device specific Object Attributes */ @@ -718,7 +666,7 @@ union hwloc_obj_attr_u { } osdev; }; -/** \brief Object info attribute (name and value strings) +/** \brief Object info * * \sa hwlocality_info_attr */ @@ -785,8 +733,6 @@ HWLOC_DECLSPEC void hwloc_topology_destroy (hwloc_topology_t topology); * * This is useful for keeping a backup while modifying a topology. * - * \return 0 on success, -1 on error. - * * \note Object userdata is not duplicated since hwloc does not know what it point to. * The objects of both old and new topologies will point to the same userdata. */ @@ -841,8 +787,6 @@ HWLOC_DECLSPEC void hwloc_topology_check(hwloc_topology_t topology); * * This is the depth of ::HWLOC_OBJ_PU objects plus one. * - * \return the depth of the object tree. - * * \note NUMA nodes, I/O and Misc objects are ignored when computing * the depth of the tree (they are placed on special levels). */ @@ -850,26 +794,23 @@ HWLOC_DECLSPEC int hwloc_topology_get_depth(hwloc_topology_t __hwloc_restrict to /** \brief Returns the depth of objects of type \p type. * - * \return The depth of objects of type \p type. + * If no object of this type is present on the underlying architecture, or if + * the OS doesn't provide this kind of information, the function returns + * ::HWLOC_TYPE_DEPTH_UNKNOWN. * - * \return A negative virtual depth if a NUMA node, I/O or Misc object type is given. - * These objects are stored in special levels that are not CPU-related. + * If type is absent but a similar type is acceptable, see also + * hwloc_get_type_or_below_depth() and hwloc_get_type_or_above_depth(). + * + * If ::HWLOC_OBJ_GROUP is given, the function may return ::HWLOC_TYPE_DEPTH_MULTIPLE + * if multiple levels of Groups exist. + * + * If a NUMA node, I/O or Misc object type is given, the function returns a virtual + * value because these objects are stored in special levels that are not CPU-related. * This virtual depth may be passed to other hwloc functions such as * hwloc_get_obj_by_depth() but it should not be considered as an actual * depth by the application. In particular, it should not be compared with * any other object depth or with the entire topology depth. - * - * \return ::HWLOC_TYPE_DEPTH_UNKNOWN - * if no object of this type is present on the underlying architecture, - * or if the OS doesn't provide this kind of information. - * - * \return ::HWLOC_TYPE_DEPTH_MULTIPLE if type ::HWLOC_OBJ_GROUP is given - * and multiple levels of Groups exist. - * - * \note If the type is absent but a similar type is acceptable, see also - * hwloc_get_type_or_below_depth() and hwloc_get_type_or_above_depth(). - * - * \sa hwloc_get_memory_parents_depth() for managing the depth of memory objects. + * \sa hwloc_get_memory_parents_depth(). * * \sa hwloc_type_sscanf_as_depth() for returning the depth of objects * whose type is given as a string. @@ -945,23 +886,18 @@ hwloc_get_type_or_above_depth (hwloc_topology_t topology, hwloc_obj_type_t type) * \p depth should between 0 and hwloc_topology_get_depth()-1, * or a virtual depth such as ::HWLOC_TYPE_DEPTH_NUMANODE. * - * \return The type of objects at depth \p depth. * \return (hwloc_obj_type_t)-1 if depth \p depth does not exist. */ HWLOC_DECLSPEC hwloc_obj_type_t hwloc_get_depth_type (hwloc_topology_t topology, int depth) __hwloc_attribute_pure; /** \brief Returns the width of level at depth \p depth. - * - * \return The number of objects at topology depth \p depth. - * \return 0 if there are no objects at depth \p depth. */ HWLOC_DECLSPEC unsigned hwloc_get_nbobjs_by_depth (hwloc_topology_t topology, int depth) __hwloc_attribute_pure; /** \brief Returns the width of level type \p type * - * \return The number of objects of type \p type. - * \return -1 if there are multiple levels with objects of that type, e.g. ::HWLOC_OBJ_GROUP. - * \return 0 if there are no objects at depth \p depth. + * If no object for that type exists, 0 is returned. + * If there are several levels with objects of that type, -1 is returned. */ static __hwloc_inline int hwloc_get_nbobjs_by_type (hwloc_topology_t topology, hwloc_obj_type_t type) __hwloc_attribute_pure; @@ -969,45 +905,34 @@ hwloc_get_nbobjs_by_type (hwloc_topology_t topology, hwloc_obj_type_t type) __hw /** \brief Returns the top-object of the topology-tree. * * Its type is ::HWLOC_OBJ_MACHINE. - * - * This function cannot return \c NULL. */ static __hwloc_inline hwloc_obj_t hwloc_get_root_obj (hwloc_topology_t topology) __hwloc_attribute_pure; -/** \brief Returns the topology object at logical index \p idx from depth \p depth - * - * \return The object if it exists. - * \return \c NULL if there is no object with this index and depth. - */ +/** \brief Returns the topology object at logical index \p idx from depth \p depth */ HWLOC_DECLSPEC hwloc_obj_t hwloc_get_obj_by_depth (hwloc_topology_t topology, int depth, unsigned idx) __hwloc_attribute_pure; /** \brief Returns the topology object at logical index \p idx with type \p type * - * \return The object if it exists. - * \return \c NULL if there is no object with this index and type. - * \return \c NULL if there are multiple levels with objects of that type (e.g. ::HWLOC_OBJ_GROUP), - * the caller may fallback to hwloc_get_obj_by_depth(). + * If no object for that type exists, \c NULL is returned. + * If there are several levels with objects of that type (::HWLOC_OBJ_GROUP), + * \c NULL is returned and the caller may fallback to hwloc_get_obj_by_depth(). */ static __hwloc_inline hwloc_obj_t hwloc_get_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, unsigned idx) __hwloc_attribute_pure; /** \brief Returns the next object at depth \p depth. * - * \return The first object at depth \p depth if \p prev is \c NULL. - * \return The object after \p prev at depth \p depth if \p prev is not \c NULL. - * \return \c NULL if there is no such object. + * If \p prev is \c NULL, return the first object at depth \p depth. */ static __hwloc_inline hwloc_obj_t hwloc_get_next_obj_by_depth (hwloc_topology_t topology, int depth, hwloc_obj_t prev); /** \brief Returns the next object of type \p type. * - * \return The first object of type \p type if \p prev is \c NULL. - * \return The object after \p prev of type \p type if \p prev is not \c NULL. - * \return \c NULL if there is no such object. - * \return \c NULL if there are multiple levels with objects of that type (e.g. ::HWLOC_OBJ_GROUP), - * the caller may fallback to hwloc_get_obj_by_depth(). + * If \p prev is \c NULL, return the first object at type \p type. If + * there are multiple or no depth for given type, return \c NULL and + * let the caller fallback to hwloc_get_next_obj_by_depth(). */ static __hwloc_inline hwloc_obj_t hwloc_get_next_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, @@ -1028,8 +953,6 @@ hwloc_get_next_obj_by_type (hwloc_topology_t topology, hwloc_obj_type_t type, * * hwloc_obj_type_snprintf() may return a more precise output for a specific * object, but it requires the caller to provide the output buffer. - * - * \return A constant string containing the object type name or \c "Unknown". */ HWLOC_DECLSPEC const char * hwloc_obj_type_string (hwloc_obj_type_t type) __hwloc_attribute_const; @@ -1047,8 +970,8 @@ HWLOC_DECLSPEC const char * hwloc_obj_type_string (hwloc_obj_type_t type) __hwlo * * If \p size is 0, \p string may safely be \c NULL. * - * \return the number of characters that were actually written if not truncating, - * or that would have been written (not including the ending \c \0). + * \return the number of character that were actually written if not truncating, + * or that would have been written (not including the ending \\0). */ HWLOC_DECLSPEC int hwloc_obj_type_snprintf(char * __hwloc_restrict string, size_t size, hwloc_obj_t obj, @@ -1062,8 +985,8 @@ HWLOC_DECLSPEC int hwloc_obj_type_snprintf(char * __hwloc_restrict string, size_ * * If \p size is 0, \p string may safely be \c NULL. * - * \return the number of characters that were actually written if not truncating, - * or that would have been written (not including the ending \c \0). + * \return the number of character that were actually written if not truncating, + * or that would have been written (not including the ending \\0). */ HWLOC_DECLSPEC int hwloc_obj_attr_snprintf(char * __hwloc_restrict string, size_t size, hwloc_obj_t obj, const char * __hwloc_restrict separator, @@ -1125,26 +1048,23 @@ HWLOC_DECLSPEC int hwloc_type_sscanf_as_depth(const char *string, -/** \defgroup hwlocality_info_attr Consulting and Adding Info Attributes +/** \defgroup hwlocality_info_attr Consulting and Adding Key-Value Info Attributes * * @{ */ -/** \brief Search the given name in object infos and return the corresponding value. +/** \brief Search the given key name in object infos and return the corresponding value. * - * If multiple info attributes match the given name, only the first one is returned. + * If multiple keys match the given name, only the first one is returned. * - * \return A pointer to the value string if it exists. - * \return \c NULL if no such info attribute exists. - * - * \note The string should not be freed by the caller, it belongs to the hwloc library. + * \return \c NULL if no such key exists. */ static __hwloc_inline const char * hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name) __hwloc_attribute_pure; -/** \brief Add the given name and value pair to the given object info attributes. +/** \brief Add the given info name and value pair to the given object. * - * The info pair is appended to the existing info array even if another pair + * The info is appended to the existing info array even if another key * with the same name already exists. * * The input strings are copied before being added in the object infos. @@ -1152,30 +1072,14 @@ hwloc_obj_get_info_by_name(hwloc_obj_t obj, const char *name) __hwloc_attribute_ * \return \c 0 on success, \c -1 on error. * * \note This function may be used to enforce object colors in the lstopo - * graphical output by adding "lstopoStyle" as a name and "Background=#rrggbb" + * graphical output by using "lstopoStyle" as a name and "Background=#rrggbb" * as a value. See CUSTOM COLORS in the lstopo(1) manpage for details. * - * \note If \p name or \p value contain some non-printable characters, they will + * \note If \p value contains some non-printable characters, they will * be dropped when exporting to XML, see hwloc_topology_export_xml() in hwloc/export.h. */ HWLOC_DECLSPEC int hwloc_obj_add_info(hwloc_obj_t obj, const char *name, const char *value); -/** \brief Set (or replace) the subtype of an object. - * - * The given \p subtype is copied internally, the caller is responsible - * for freeing the original \p subtype if needed. - * - * If another subtype already exists in \p object, it is replaced. - * The given \p subtype may be \c NULL to remove the existing subtype. - * - * \note This function is mostly meant to initialize the subtype of user-added - * objects such as groups with hwloc_topology_alloc_group_object(). - * - * \return \c 0 on success. - * \return \c -1 with \p errno set to \c ENOMEM on failure to allocate memory. - */ -HWLOC_DECLSPEC int hwloc_obj_set_subtype(hwloc_topology_t topology, hwloc_obj_t obj, const char *subtype); - /** @} */ @@ -1184,7 +1088,7 @@ HWLOC_DECLSPEC int hwloc_obj_set_subtype(hwloc_topology_t topology, hwloc_obj_t * * Some operating systems only support binding threads or processes to a single PU. * Others allow binding to larger sets such as entire Cores or Packages or - * even random sets of individual PUs. In such operating system, the scheduler + * even random sets of invididual PUs. In such operating system, the scheduler * is free to run the task on one of these PU, then migrate it to another PU, etc. * It is often useful to call hwloc_bitmap_singlify() on the target CPU set before * passing it to the binding function to avoid these expensive migrations. @@ -1262,7 +1166,7 @@ typedef enum { * CPUs are idle, operating systems may execute the thread/process * on those other CPUs instead of the designated CPUs, to let them * progress anyway. Strict binding means that the thread/process - * will _never_ execute on other CPUs than the designated CPUs, even + * will _never_ execute on other cpus than the designated CPUs, even * when those are busy with other tasks and other CPUs are idle. * * \note Depending on the operating system, strict binding may not @@ -1288,7 +1192,7 @@ typedef enum { * a problem for the application, but if it is, setting this flag * will make hwloc avoid using OS functions that would also bind * memory. This will however reduce the support of CPU bindings, - * i.e. potentially return -1 with errno set to \c ENOSYS in some + * i.e. potentially return -1 with errno set to ENOSYS in some * cases. * * This flag is only meaningful when used with functions that set @@ -1299,27 +1203,21 @@ typedef enum { HWLOC_CPUBIND_NOMEMBIND = (1<<3) } hwloc_cpubind_flags_t; -/** \brief Bind current process or thread on CPUs given in physical bitmap \p set. +/** \brief Bind current process or thread on cpus given in physical bitmap \p set. * - * \return 0 on success. - * \return -1 with errno set to \c ENOSYS if the action is not supported. - * \return -1 with errno set to \c EXDEV if the binding cannot be enforced. + * \return -1 with errno set to ENOSYS if the action is not supported + * \return -1 with errno set to EXDEV if the binding cannot be enforced */ HWLOC_DECLSPEC int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags); /** \brief Get current process or thread binding. * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the list of PUs which the process or - * thread (according to \e flags) was last bound to. - * - * \return 0 on success, -1 on error. + * Writes into \p set the physical cpuset which the process or thread (according to \e + * flags) was last bound to. */ HWLOC_DECLSPEC int hwloc_get_cpubind(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); -/** \brief Bind a process \p pid on CPUs given in physical bitmap \p set. - * - * \return 0 on success, -1 on error. +/** \brief Bind a process \p pid on cpus given in physical bitmap \p set. * * \note \p hwloc_pid_t is \p pid_t on Unix platforms, * and \p HANDLE on native Windows platforms. @@ -1333,12 +1231,6 @@ HWLOC_DECLSPEC int hwloc_get_cpubind(hwloc_topology_t topology, hwloc_cpuset_t s HWLOC_DECLSPEC int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags); /** \brief Get the current physical binding of process \p pid. - * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the list of PUs which the process - * was last bound to. - * - * \return 0 on success, -1 on error. * * \note \p hwloc_pid_t is \p pid_t on Unix platforms, * and \p HANDLE on native Windows platforms. @@ -1352,9 +1244,7 @@ HWLOC_DECLSPEC int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t HWLOC_DECLSPEC int hwloc_get_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags); #ifdef hwloc_thread_t -/** \brief Bind a thread \p thread on CPUs given in physical bitmap \p set. - * - * \return 0 on success, -1 on error. +/** \brief Bind a thread \p thread on cpus given in physical bitmap \p set. * * \note \p hwloc_thread_t is \p pthread_t on Unix platforms, * and \p HANDLE on native Windows platforms. @@ -1366,12 +1256,6 @@ HWLOC_DECLSPEC int hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thr #ifdef hwloc_thread_t /** \brief Get the current physical binding of thread \p tid. - * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the list of PUs which the thread - * was last bound to. - * - * \return 0 on success, -1 on error. * * \note \p hwloc_thread_t is \p pthread_t on Unix platforms, * and \p HANDLE on native Windows platforms. @@ -1382,10 +1266,6 @@ HWLOC_DECLSPEC int hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thr #endif /** \brief Get the last physical CPU where the current process or thread ran. - * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the list of PUs which the process or - * thread (according to \e flags) last ran on. * * The operating system may move some tasks from one processor * to another at any time according to their binding, @@ -1397,24 +1277,16 @@ HWLOC_DECLSPEC int hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thr * on which all threads are running), or only the current thread. If the * process is single-threaded, flags can be set to zero to let hwloc use * whichever method is available on the underlying OS. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_get_last_cpu_location(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); /** \brief Get the last physical CPU where a process ran. - * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the list of PUs which the process - * last ran on. * * The operating system may move some tasks from one processor * to another at any time according to their binding, * so this function may return something that is already * outdated. * - * \return 0 on success, -1 on error. - * * \note \p hwloc_pid_t is \p pid_t on Unix platforms, * and \p HANDLE on native Windows platforms. * @@ -1453,7 +1325,7 @@ HWLOC_DECLSPEC int hwloc_get_proc_last_cpu_location(hwloc_topology_t topology, h * (e.g., some systems only allow binding memory on a per-thread * basis, whereas other systems only allow binding memory for all * threads in a process). - * \p errno will be set to \c EXDEV when the requested set can not be enforced + * \p errno will be set to EXDEV when the requested set can not be enforced * (e.g., some systems only allow binding memory to a single NUMA node). * * If ::HWLOC_MEMBIND_STRICT was not passed, the function may fail as well, @@ -1527,12 +1399,6 @@ typedef enum { HWLOC_MEMBIND_FIRSTTOUCH = 1, /** \brief Allocate memory on the specified nodes. - * - * The actual behavior may slightly vary between operating systems, - * especially when (some of) the requested nodes are full. - * On Linux, by default, the MPOL_PREFERRED_MANY (or MPOL_PREFERRED) policy - * is used. However, if the hwloc strict flag is also given, the Linux - * MPOL_BIND policy is rather used. * \hideinitializer */ HWLOC_MEMBIND_BIND = 2, @@ -1545,16 +1411,6 @@ typedef enum { * \hideinitializer */ HWLOC_MEMBIND_INTERLEAVE = 3, - /** \brief Allocate memory on the given nodes in an interleaved - * / weighted manner. The precise layout of the memory across - * multiple NUMA nodes is OS/system specific. Weighted interleaving - * can be useful when threads distributed across the specified NUMA - * nodes with different bandwidth capabilities will all be accessing - * the whole memory range concurrently, since the interleave will then - * balance the memory references. - * \hideinitializer */ - HWLOC_MEMBIND_WEIGHTED_INTERLEAVE = 5, - /** \brief For each page bound with this policy, by next time * it is touched (and next time only), it is moved from its current * location to the local NUMA node of the thread where the memory @@ -1618,7 +1474,7 @@ typedef enum { * could potentially affect CPU bindings. Note, however, that using * NOCPUBIND may reduce hwloc's overall memory binding * support. Specifically: some of hwloc's memory binding functions - * may fail with errno set to \c ENOSYS when used with NOCPUBIND. + * may fail with errno set to ENOSYS when used with NOCPUBIND. * \hideinitializer */ HWLOC_MEMBIND_NOCPUBIND = (1<<4), @@ -1647,18 +1503,14 @@ typedef enum { * If ::HWLOC_MEMBIND_BYNODESET is specified, set is considered a nodeset. * Otherwise it's a cpuset. * - * \return 0 on success. - * \return -1 with errno set to \c ENOSYS if the action is not supported. - * \return -1 with errno set to \c EXDEV if the binding cannot be enforced. + * \return -1 with errno set to ENOSYS if the action is not supported + * \return -1 with errno set to EXDEV if the binding cannot be enforced */ HWLOC_DECLSPEC int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags); /** \brief Query the default memory binding policy and physical locality of the * current process or thread. * - * The bitmap \p set (previously allocated by the caller) - * is filled with the process or thread memory binding. - * * This function has two output parameters: \p set and \p policy. * The values returned in these parameters depend on both the \p flags * passed in and the current memory binding policies and nodesets in @@ -1678,7 +1530,7 @@ HWLOC_DECLSPEC int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitm * ::HWLOC_MEMBIND_STRICT is only meaningful when ::HWLOC_MEMBIND_PROCESS * is also specified. In this case, hwloc will check the default * memory policies and nodesets for all threads in the process. If - * they are not identical, -1 is returned and errno is set to \c EXDEV. + * they are not identical, -1 is returned and errno is set to EXDEV. * If they are identical, the values are returned in \p set and \p * policy. * @@ -1698,9 +1550,7 @@ HWLOC_DECLSPEC int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitm * Otherwise it's a cpuset. * * If any other flags are specified, -1 is returned and errno is set - * to \c EINVAL. - * - * \return 0 on success, -1 on error. + * to EINVAL. */ HWLOC_DECLSPEC int hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags); @@ -1710,9 +1560,8 @@ HWLOC_DECLSPEC int hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t s * If ::HWLOC_MEMBIND_BYNODESET is specified, set is considered a nodeset. * Otherwise it's a cpuset. * - * \return 0 on success. - * \return -1 with errno set to \c ENOSYS if the action is not supported. - * \return -1 with errno set to \c EXDEV if the binding cannot be enforced. + * \return -1 with errno set to ENOSYS if the action is not supported + * \return -1 with errno set to EXDEV if the binding cannot be enforced * * \note \p hwloc_pid_t is \p pid_t on Unix platforms, * and \p HANDLE on native Windows platforms. @@ -1722,9 +1571,6 @@ HWLOC_DECLSPEC int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t /** \brief Query the default memory binding policy and physical locality of the * specified process. * - * The bitmap \p set (previously allocated by the caller) - * is filled with the process memory binding. - * * This function has two output parameters: \p set and \p policy. * The values returned in these parameters depend on both the \p flags * passed in and the current memory binding policies and nodesets in @@ -1744,7 +1590,7 @@ HWLOC_DECLSPEC int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t * If ::HWLOC_MEMBIND_STRICT is specified, hwloc will check the default * memory policies and nodesets for all threads in the specified * process. If they are not identical, -1 is returned and errno is - * set to \c EXDEV. If they are identical, the values are returned in \p + * set to EXDEV. If they are identical, the values are returned in \p * set and \p policy. * * Otherwise, \p set is set to the logical OR of all threads' @@ -1756,9 +1602,7 @@ HWLOC_DECLSPEC int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t * Otherwise it's a cpuset. * * If any other flags are specified, -1 is returned and errno is set - * to \c EINVAL. - * - * \return 0 on success, -1 on error. + * to EINVAL. * * \note \p hwloc_pid_t is \p pid_t on Unix platforms, * and \p HANDLE on native Windows platforms. @@ -1771,18 +1615,15 @@ HWLOC_DECLSPEC int hwloc_get_proc_membind(hwloc_topology_t topology, hwloc_pid_t * If ::HWLOC_MEMBIND_BYNODESET is specified, set is considered a nodeset. * Otherwise it's a cpuset. * - * \return 0 on success or if \p len is 0. - * \return -1 with errno set to \c ENOSYS if the action is not supported. - * \return -1 with errno set to \c EXDEV if the binding cannot be enforced. + * \return 0 if \p len is 0. + * \return -1 with errno set to ENOSYS if the action is not supported + * \return -1 with errno set to EXDEV if the binding cannot be enforced */ HWLOC_DECLSPEC int hwloc_set_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags); /** \brief Query the CPUs near the physical NUMA node(s) and binding policy of * the memory identified by (\p addr, \p len ). * - * The bitmap \p set (previously allocated by the caller) - * is filled with the memory area binding. - * * This function has two output parameters: \p set and \p policy. * The values returned in these parameters depend on both the \p flags * passed in and the memory binding policies and nodesets of the pages @@ -1790,7 +1631,7 @@ HWLOC_DECLSPEC int hwloc_set_area_membind(hwloc_topology_t topology, const void * * If ::HWLOC_MEMBIND_STRICT is specified, the target pages are first * checked to see if they all have the same memory binding policy and - * nodeset. If they do not, -1 is returned and errno is set to \c EXDEV. + * nodeset. If they do not, -1 is returned and errno is set to EXDEV. * If they are identical across all pages, the set and policy are * returned in \p set and \p policy, respectively. * @@ -1803,17 +1644,15 @@ HWLOC_DECLSPEC int hwloc_set_area_membind(hwloc_topology_t topology, const void * Otherwise it's a cpuset. * * If any other flags are specified, -1 is returned and errno is set - * to \c EINVAL. + * to EINVAL. * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if \p len is 0. + * If \p len is 0, -1 is returned and errno is set to EINVAL. */ HWLOC_DECLSPEC int hwloc_get_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags); /** \brief Get the NUMA nodes where memory identified by (\p addr, \p len ) is physically allocated. * - * The bitmap \p set (previously allocated by the caller) - * is filled according to the NUMA nodes where the memory area pages + * Fills \p set according to the NUMA nodes where the memory area pages * are physically allocated. If no page is actually allocated yet, * \p set may be empty. * @@ -1829,8 +1668,6 @@ HWLOC_DECLSPEC int hwloc_get_area_membind(hwloc_topology_t topology, const void * considered a nodeset. Otherwise it's a cpuset. * * If \p len is 0, \p set is emptied. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_get_area_memlocation(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, int flags); @@ -1839,20 +1676,17 @@ HWLOC_DECLSPEC int hwloc_get_area_memlocation(hwloc_topology_t topology, const v * This is equivalent to malloc(), except that it tries to allocate * page-aligned memory from the OS. * - * \return a pointer to the allocated area, or \c NULL on error. - * * \note The allocated memory should be freed with hwloc_free(). */ HWLOC_DECLSPEC void *hwloc_alloc(hwloc_topology_t topology, size_t len); /** \brief Allocate some memory on NUMA memory nodes specified by \p set * - * \return a pointer to the allocated area. - * \return NULL with errno set to \c ENOSYS if the action is not supported - * and ::HWLOC_MEMBIND_STRICT is given. - * \return NULL with errno set to \c EXDEV if the binding cannot be enforced - * and ::HWLOC_MEMBIND_STRICT is given. - * \return NULL with errno set to \c ENOMEM if the memory allocation failed + * \return NULL with errno set to ENOSYS if the action is not supported + * and ::HWLOC_MEMBIND_STRICT is given + * \return NULL with errno set to EXDEV if the binding cannot be enforced + * and ::HWLOC_MEMBIND_STRICT is given + * \return NULL with errno set to ENOMEM if the memory allocation failed * even before trying to bind. * * If ::HWLOC_MEMBIND_BYNODESET is specified, set is considered a nodeset. @@ -1864,25 +1698,18 @@ HWLOC_DECLSPEC void *hwloc_alloc_membind(hwloc_topology_t topology, size_t len, /** \brief Allocate some memory on NUMA memory nodes specified by \p set * - * First, try to allocate properly with hwloc_alloc_membind(). - * On failure, the current process or thread memory binding policy - * is changed with hwloc_set_membind() before allocating memory. - * Thus this function works in more cases, at the expense of changing - * the current state (possibly affecting future allocations that - * would not specify any policy). + * This is similar to hwloc_alloc_membind_nodeset() except that it is allowed to change + * the current memory binding policy, thus providing more binding support, at + * the expense of changing the current state. * * If ::HWLOC_MEMBIND_BYNODESET is specified, set is considered a nodeset. * Otherwise it's a cpuset. - * - * \return a pointer to the allocated area, or \c NULL on error. */ static __hwloc_inline void * hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc; /** \brief Free memory that was previously allocated by hwloc_alloc() * or hwloc_alloc_membind(). - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_free(hwloc_topology_t topology, void *addr, size_t len); @@ -1891,9 +1718,6 @@ HWLOC_DECLSPEC int hwloc_free(hwloc_topology_t topology, void *addr, size_t len) /** \defgroup hwlocality_setsource Changing the Source of Topology Discovery - * - * These functions must be called between hwloc_topology_init() and hwloc_topology_load(). - * Otherwise, they will return -1 with errno set to \c EBUSY. * * If none of the functions below is called, the default is to detect all the objects * of the machine that the caller is allowed to access. @@ -1922,14 +1746,8 @@ HWLOC_DECLSPEC int hwloc_free(hwloc_topology_t topology, void *addr, size_t len) * \note \p hwloc_pid_t is \p pid_t on Unix platforms, * and \p HANDLE on native Windows platforms. * - * \note -1 is returned and errno is set to \c ENOSYS on platforms that do not + * \note -1 is returned and errno is set to ENOSYS on platforms that do not * support this feature. - * - * \note The PID will not actually be used until hwloc_topology_load(). - * If the corresponding process exits in the meantime, hwloc will ignore the PID. - * If another process reuses the PID, the view of that process will be used. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_set_pid(hwloc_topology_t __hwloc_restrict topology, hwloc_pid_t pid); @@ -1947,16 +1765,13 @@ HWLOC_DECLSPEC int hwloc_topology_set_pid(hwloc_topology_t __hwloc_restrict topo * * If \p description was properly parsed and describes a valid topology * configuration, this function returns 0. - * Otherwise -1 is returned and errno is set to \c EINVAL. + * Otherwise -1 is returned and errno is set to EINVAL. * * Note that this function does not actually load topology * information; it just tells hwloc where to load it from. You'll * still need to invoke hwloc_topology_load() to actually load the * topology information. * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if the description was invalid. - * * \note For convenience, this backend provides empty binding hooks which just * return success. * @@ -1978,8 +1793,7 @@ HWLOC_DECLSPEC int hwloc_topology_set_synthetic(hwloc_topology_t __hwloc_restric * still need to invoke hwloc_topology_load() to actually load the * topology information. * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL on failure to read the XML file. + * \return -1 with errno set to EINVAL on failure to read the XML file. * * \note See also hwloc_topology_set_userdata_import_callback() * for importing application-specific object userdata. @@ -1992,28 +1806,22 @@ HWLOC_DECLSPEC int hwloc_topology_set_synthetic(hwloc_topology_t __hwloc_restric * \note On success, the XML component replaces the previously enabled * component (if any), but the topology is not actually modified until * hwloc_topology_load(). - * - * \note If an invalid XML input file is given, the error may be reported - * either here or later by hwloc_topology_load() depending on the XML library - * used by hwloc. */ HWLOC_DECLSPEC int hwloc_topology_set_xml(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict xmlpath); /** \brief Enable XML based topology using a memory buffer (instead of * a file, as with hwloc_topology_set_xml()). * - * Gather topology information from the XML memory buffer given at - * \p buffer and of length \p size (including an ending \c \0). - * This buffer may have been filled earlier with - * hwloc_topology_export_xmlbuffer() in hwloc/export.h. + * Gather topology information from the XML memory buffer given at \p + * buffer and of length \p size. This buffer may have been filled + * earlier with hwloc_topology_export_xmlbuffer() in hwloc/export.h. * * Note that this function does not actually load topology * information; it just tells hwloc where to load it from. You'll * still need to invoke hwloc_topology_load() to actually load the * topology information. * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL on failure to read the XML buffer. + * \return -1 with errno set to EINVAL on failure to read the XML buffer. * * \note See also hwloc_topology_set_userdata_import_callback() * for importing application-specific object userdata. @@ -2026,10 +1834,6 @@ HWLOC_DECLSPEC int hwloc_topology_set_xml(hwloc_topology_t __hwloc_restrict topo * \note On success, the XML component replaces the previously enabled * component (if any), but the topology is not actually modified until * hwloc_topology_load(). - * - * \note If an invalid XML input file is given, the error may be reported - * either here or later by hwloc_topology_load() depending on the XML library - * used by hwloc. */ HWLOC_DECLSPEC int hwloc_topology_set_xmlbuffer(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict buffer, int size); @@ -2055,9 +1859,6 @@ enum hwloc_topology_components_flag_e { * This may be used to avoid expensive parts of the discovery process. * For instance, CUDA-specific discovery may be expensive and unneeded * while generic I/O discovery could still be useful. - * - * \return 0 on success. - * \return -1 on error, for instance if flags are invalid. */ HWLOC_DECLSPEC int hwloc_topology_set_components(hwloc_topology_t __hwloc_restrict topology, unsigned long flags, const char * __hwloc_restrict name); @@ -2082,9 +1883,8 @@ HWLOC_DECLSPEC int hwloc_topology_set_components(hwloc_topology_t __hwloc_restri enum hwloc_topology_flags_e { /** \brief Detect the whole system, ignore reservations, include disallowed objects. * - * Gather all online resources, even if some were disabled by the administrator. + * Gather all resources, even if some were disabled by the administrator. * For instance, ignore Linux Cgroup/Cpusets and gather all processors and memory nodes. - * However offline PUs and NUMA nodes are still ignored. * * When this flag is not set, PUs and NUMA nodes that are disallowed are not added to the topology. * Parent objects (package, core, cache, etc.) are added only if some of their children are allowed. @@ -2228,42 +2028,17 @@ enum hwloc_topology_flags_e { * not change to due thread binding changes on Windows * (see ::HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING). */ - HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING = (1UL<<6), - - /** \brief Ignore distances. - * - * Ignore distance information from the operating systems (and from XML) - * and hence do not use distances for grouping. - */ - HWLOC_TOPOLOGY_FLAG_NO_DISTANCES = (1UL<<7), - - /** \brief Ignore memory attributes and tiers. - * - * Ignore memory attribues from the operating systems (and from XML) - * Hence also do not try to build memory tiers. - */ - HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS = (1UL<<8), - - /** \brief Ignore CPU Kinds. - * - * Ignore CPU kind information from the operating systems (and from XML). - */ - HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS = (1UL<<9) + HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING = (1UL<<6) }; /** \brief Set OR'ed flags to non-yet-loaded topology. * * Set a OR'ed set of ::hwloc_topology_flags_e onto a topology that was not yet loaded. * - * If this function is called multiple times, the last invocation will erase + * If this function is called multiple times, the last invokation will erase * and replace the set of flags that was previously set. * - * By default, no flags are set (\c 0). - * - * The flags set in a topology may be retrieved with hwloc_topology_get_flags(). - * - * \return 0 on success. - * \return -1 on error, for instance if flags are invalid. + * The flags set in a topology may be retrieved with hwloc_topology_get_flags() */ HWLOC_DECLSPEC int hwloc_topology_set_flags (hwloc_topology_t topology, unsigned long flags); @@ -2271,12 +2046,7 @@ HWLOC_DECLSPEC int hwloc_topology_set_flags (hwloc_topology_t topology, unsigned * * Get the OR'ed set of ::hwloc_topology_flags_e of a topology. * - * If hwloc_topology_set_flags() was not called earlier, - * no flags are set (\c 0 is returned). - * * \return the flags previously set with hwloc_topology_set_flags(). - * - * \note This function may also be called after hwloc_topology_load(). */ HWLOC_DECLSPEC unsigned long hwloc_topology_get_flags (hwloc_topology_t topology); @@ -2286,8 +2056,6 @@ HWLOC_DECLSPEC unsigned long hwloc_topology_get_flags (hwloc_topology_t topology * running this program. * \return 0 instead (for instance if using another file-system root, * a XML topology file, or a synthetic topology). - * - * \note This function may also be called after hwloc_topology_load(). */ HWLOC_DECLSPEC int hwloc_topology_is_thissystem(hwloc_topology_t __hwloc_restrict topology) __hwloc_attribute_pure; @@ -2373,8 +2141,6 @@ struct hwloc_topology_membind_support { unsigned char migrate_membind; /** Getting the last NUMA nodes where a memory area was allocated is supported */ unsigned char get_area_memlocation; - /** Weighted interleave policy is supported. */ - unsigned char weighted_interleave_membind; }; /** \brief Flags describing miscellaneous features. @@ -2417,22 +2183,14 @@ struct hwloc_topology_support { * to report the supported features of the original remote machine * instead. If it was successfully imported, \p imported_support * will be set in the struct hwloc_topology_misc_support array. - * - * \return A pointer to a support structure. - * - * \note The function cannot return \c NULL. - * \note The returned pointer should not be freed, it belongs to the hwloc library. - * - * \note This function may be called before or after hwloc_topology_load() - * but the support structure only contains valid information after. */ HWLOC_DECLSPEC const struct hwloc_topology_support *hwloc_topology_get_support(hwloc_topology_t __hwloc_restrict topology); /** \brief Type filtering flags. * * By default, most objects are kept (::HWLOC_TYPE_FILTER_KEEP_ALL). - * Instruction caches, memory-side caches, I/O and Misc objects are ignored by default (::HWLOC_TYPE_FILTER_KEEP_NONE). - * Group levels are ignored unless they bring structure (::HWLOC_TYPE_FILTER_KEEP_STRUCTURE). + * Instruction caches, I/O and Misc objects are ignored by default (::HWLOC_TYPE_FILTER_KEEP_NONE). + * Die and Group levels are ignored unless they bring structure (::HWLOC_TYPE_FILTER_KEEP_STRUCTURE). * * Note that group objects are also ignored individually (without the entire level) * when they do not bring structure. @@ -2484,44 +2242,32 @@ enum hwloc_type_filter_e { }; /** \brief Set the filtering for the given object type. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_set_type_filter(hwloc_topology_t topology, hwloc_obj_type_t type, enum hwloc_type_filter_e filter); /** \brief Get the current filtering for the given object type. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_get_type_filter(hwloc_topology_t topology, hwloc_obj_type_t type, enum hwloc_type_filter_e *filter); /** \brief Set the filtering for all object types. * * If some types do not support this filtering, they are silently ignored. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_set_all_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter); /** \brief Set the filtering for all CPU cache object types. * * Memory-side caches are not involved since they are not CPU caches. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_set_cache_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter); /** \brief Set the filtering for all CPU instruction cache object types. * * Memory-side caches are not involved since they are not CPU caches. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_set_icache_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter); /** \brief Set the filtering for all I/O object types. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_set_io_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter); @@ -2541,9 +2287,6 @@ HWLOC_DECLSPEC void hwloc_topology_set_userdata(hwloc_topology_t topology, const * * Retrieve the application-given private data pointer that was * previously set with hwloc_topology_set_userdata(). - * - * \return A pointer to the private-data if any. - * \return \c NULL if no private-data was previoulsy set. */ HWLOC_DECLSPEC void * hwloc_topology_get_userdata(hwloc_topology_t topology); @@ -2596,32 +2339,21 @@ enum hwloc_restrict_flags_e { * are not included (or partially included) in the CPU set \p set. * All objects CPU and node sets are restricted accordingly. * - * By default, \p set is a CPU set. It means that the set of PUs in - * the topology is restricted. Once some PUs got removed, their parents - * may also get removed recursively if they became child-less. - * * If ::HWLOC_RESTRICT_FLAG_BYNODESET is passed in \p flags, * \p set is considered a nodeset instead of a CPU set. - * It means that the set of NUMA nodes in the topology is restricted - * (instead of PUs). Once some NUMA nodes got removed, their parents - * may also get removed recursively if they became child-less. * * \p flags is a OR'ed set of ::hwloc_restrict_flags_e. * - * \note Restricting the topology removes some locality information, - * hence the remaining objects may get reordered (including PUs and NUMA nodes), - * and their logical indexes may change. - * * \note This call may not be reverted by restricting back to a larger * set. Once dropped during restriction, objects may not be brought * back, except by loading another topology with hwloc_topology_load(). * * \return 0 on success. * - * \return -1 with errno set to \c EINVAL if the input set is invalid. + * \return -1 with errno set to EINVAL if the input set is invalid. * The topology is not modified in this case. * - * \return -1 with errno set to \c ENOMEM on failure to allocate internal data. + * \return -1 with errno set to ENOMEM on failure to allocate internal data. * The topology is reinitialized in this case. It should be either * destroyed with hwloc_topology_destroy() or configured and loaded again. */ @@ -2661,8 +2393,6 @@ enum hwloc_allow_flags_e { * * \p flags must be set to one flag among ::hwloc_allow_flags_e. * - * \return 0 on success, -1 on error. - * * \note Removing objects from a topology should rather be performed with * hwloc_topology_restrict(). */ @@ -2680,9 +2410,6 @@ HWLOC_DECLSPEC int hwloc_topology_allow(hwloc_topology_t __hwloc_restrict topolo * * The new leaf object will not have any \p cpuset. * - * The \p subtype object attribute may be defined with hwloc_obj_set_subtype() - * after successful insertion. - * * \return the newly-created object * * \return \c NULL on error. @@ -2699,32 +2426,9 @@ HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_insert_misc_object(hwloc_topology_t to * This function returns a new Group object. * * The caller should (at least) initialize its sets before inserting - * the object in the topology, see hwloc_topology_insert_group_object(). - * Or it may decide not to insert and just free the group object - * by calling hwloc_topology_free_group_object(). - * - * \return The allocated object on success. - * \return \c NULL on error. - * - * \note If successfully inserted by hwloc_topology_insert_group_object(), - * the object will be freed when the entire topology is freed. - * If insertion failed (e.g. \c NULL or empty CPU and node-sets), - * it is freed before returning the error. - */ -HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_alloc_group_object(hwloc_topology_t topology); - -/** \brief Free a group object allocated with hwloc_topology_alloc_group_object(). - * - * This function is only useful if the group object was not given - * to hwloc_topology_insert_group_object() as planned. - * - * \note \p topology must be the same as the one previously passed - * to hwloc_topology_alloc_group_object(). - * - * \return \c 0 on success. - * \return \c -1 on error, for instance if an invalid topology is given. + * the object in the topology. See hwloc_topology_insert_group_object(). */ -HWLOC_DECLSPEC int hwloc_topology_free_group_object(hwloc_topology_t topology, hwloc_obj_t group); +HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_alloc_group_object(hwloc_topology_t topology); /** \brief Add more structure to the topology by adding an intermediate Group * @@ -2733,38 +2437,20 @@ HWLOC_DECLSPEC int hwloc_topology_free_group_object(hwloc_topology_t topology, h * the final location of the Group in the topology. * Then the object can be passed to this function for actual insertion in the topology. * - * The main use case for this function is to group a subset of - * siblings among the list of children below a single parent. - * For instance, if grouping 4 cores out of a 8-core socket, - * the logical list of cores will be reordered so that the 4 grouped - * ones are consecutive. - * Then, if needed, a new depth is added between the parent and those - * children, and the Group is inserted there. - * At the end, the 4 grouped cores are now children of the Group, - * which replaces them as a child of the original parent. - * - * In practice, the grouped objects are specified through cpusets - * and/or nodesets, for instance using hwloc_obj_add_other_obj_sets() - * iteratively. - * Hence it is possible to group objects that are not children of the - * same parent, for instance some PUs below the 4 cores in example above. - * However this general case may fail if the expected Group conflicts - * with the existing hierarchy. - * For instance if each core has two PUs, it is not possible to insert - * a Group containing a single PU of each core. - * - * To specify the objects to group, either the cpuset or nodeset field - * (or both, if compatible) must be set to a non-empty bitmap. - * The complete_cpuset or complete_nodeset may be set instead if - * inserting with respect to the complete topology + * Either the cpuset or nodeset field (or both, if compatible) must be set + * to a non-empty bitmap. The complete_cpuset or complete_nodeset may be set + * instead if inserting with respect to the complete topology * (including disallowed, offline or unknown objects). + * If grouping several objects, hwloc_obj_add_other_obj_sets() is an easy way + * to build the Group sets iteratively. * These sets cannot be larger than the current topology, or they would get * restricted silently. * The core will setup the other sets after actual insertion. * - * The \p subtype object attribute may be defined with hwloc_obj_set_subtype() - * to display something else than "Group" as the type name for this object in lstopo. - * Custom name-value info pairs may be added with hwloc_obj_add_info() after + * The \p subtype object attribute may be defined (to a dynamically + * allocated string) to display something else than "Group" as the + * type name for this object in lstopo. + * Custom name/value info pairs may be added with hwloc_obj_add_info() after * insertion. * * The group \p dont_merge attribute may be set to \c 1 to prevent @@ -2777,18 +2463,6 @@ HWLOC_DECLSPEC int hwloc_topology_free_group_object(hwloc_topology_t topology, h * as \c 0xffffffff to tell hwloc that this new Group should always * be discarded in favor of any existing Group with the same locality. * - * \note Inserting a group adds some locality information to the topology, - * hence the existing objects may get reordered (including PUs and NUMA nodes), - * and their logical indexes may change. - * - * \note If the insertion fails, the input group object is freed. - * - * \note If the group object should be discarded instead of inserted, - * it may be passed to hwloc_topology_free_group_object() instead. - * - * \note \p topology must be the same as the one previously passed - * to hwloc_topology_alloc_group_object(). - * * \return The inserted object if it was properly inserted. * * \return An existing object if the Group was merged or discarded @@ -2812,9 +2486,6 @@ HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_insert_group_object(hwloc_topology_t t * This function is convenient between hwloc_topology_alloc_group_object() * and hwloc_topology_insert_group_object(). It builds the sets of the new Group * that will be inserted as a new intermediate parent of several objects. - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM if some internal reallocation failed. */ HWLOC_DECLSPEC int hwloc_obj_add_other_obj_sets(hwloc_obj_t dst, hwloc_obj_t src); @@ -2831,9 +2502,6 @@ HWLOC_DECLSPEC int hwloc_obj_add_other_obj_sets(hwloc_obj_t dst, hwloc_obj_t src * attributes, etc. * * See also \ref threadsafety - * - * \return 0 on success. - * \return -1 on error, for instance if some internal reallocation failed. */ HWLOC_DECLSPEC int hwloc_topology_refresh(hwloc_topology_t topology); diff --git a/src/3rdparty/hwloc/include/hwloc/autogen/config.h b/src/3rdparty/hwloc/include/hwloc/autogen/config.h index deadcf11..eb70ba49 100644 --- a/src/3rdparty/hwloc/include/hwloc/autogen/config.h +++ b/src/3rdparty/hwloc/include/hwloc/autogen/config.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2025 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2012 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -11,10 +11,10 @@ #ifndef HWLOC_CONFIG_H #define HWLOC_CONFIG_H -#define HWLOC_VERSION "2.12.1" +#define HWLOC_VERSION "2.5.0" #define HWLOC_VERSION_MAJOR 2 -#define HWLOC_VERSION_MINOR 12 -#define HWLOC_VERSION_RELEASE 1 +#define HWLOC_VERSION_MINOR 5 +#define HWLOC_VERSION_RELEASE 0 #define HWLOC_VERSION_GREEK "" #define __hwloc_restrict diff --git a/src/3rdparty/hwloc/include/hwloc/bitmap.h b/src/3rdparty/hwloc/include/hwloc/bitmap.h index 8ce19057..8d9bb9c8 100644 --- a/src/3rdparty/hwloc/include/hwloc/bitmap.h +++ b/src/3rdparty/hwloc/include/hwloc/bitmap.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2024 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2012 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -50,10 +50,9 @@ extern "C" { * hwloc_bitmap_free(set); * \endcode * - * \note Most functions below return 0 on success and -1 on error. - * The usual error case would be an internal failure to realloc/extend + * \note Most functions below return an int that may be negative in case of + * error. The usual error case would be an internal failure to realloc/extend * the storage of the bitmap (\p errno would be set to \c ENOMEM). - * See also \ref hwlocality_api_error_reporting. * * \note Several examples of using the bitmap API are available under the * doc/examples/ directory in the source tree. @@ -84,13 +83,7 @@ typedef const struct hwloc_bitmap_s * hwloc_const_bitmap_t; */ HWLOC_DECLSPEC hwloc_bitmap_t hwloc_bitmap_alloc(void) __hwloc_attribute_malloc; -/** \brief Allocate a new full bitmap. - * - * \returns A valid bitmap or \c NULL. - * - * The bitmap should be freed by a corresponding call to - * hwloc_bitmap_free(). - */ +/** \brief Allocate a new full bitmap. */ HWLOC_DECLSPEC hwloc_bitmap_t hwloc_bitmap_alloc_full(void) __hwloc_attribute_malloc; /** \brief Free bitmap \p bitmap. @@ -113,134 +106,73 @@ HWLOC_DECLSPEC int hwloc_bitmap_copy(hwloc_bitmap_t dst, hwloc_const_bitmap_t sr * Bitmap/String Conversion */ -/** \brief Stringify a bitmap in the default hwloc format. - * - * Note that if the bitmap is a CPU or nodeset, it contains physical indexes. - * - * Print the bits set inside a bitmap as a comma-separated list of hexadecimal 32-bit blocks. - * A bitmap containing bits 1, 33, 34, and all from 64 to 95 is printed as "0xffffffff,0x00000006,0x00000002". +/** \brief Stringify a bitmap. * * Up to \p buflen characters may be written in buffer \p buf. * * If \p buflen is 0, \p buf may safely be \c NULL. * - * \return the number of characters that were actually written if not truncating, - * or that would have been written (not including the ending \c \0). - * \return -1 on error. + * \return the number of character that were actually written if not truncating, + * or that would have been written (not including the ending \\0). */ HWLOC_DECLSPEC int hwloc_bitmap_snprintf(char * __hwloc_restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap); -/** \brief Stringify a bitmap into a newly allocated string in the default hwloc format. +/** \brief Stringify a bitmap into a newly allocated string. * - * Note that if the bitmap is a CPU or nodeset, it contains physical indexes. - * - * Print the bits set inside a bitmap as a comma-separated list of hexadecimal 32-bit blocks. - * A bitmap containing bits 1, 33, 34, and all from 64 to 95 is printed as "0xffffffff,0x00000006,0x00000002". - * - * \return the number of characters that were written (not including the ending \c \0). - * \return -1 on error, for instance with \p errno set to \c ENOMEM on failure to allocate the output string. + * \return -1 on error. */ HWLOC_DECLSPEC int hwloc_bitmap_asprintf(char ** strp, hwloc_const_bitmap_t bitmap); -/** \brief Parse a bitmap string as the default hwloc format and stores it in bitmap \p bitmap. - * - * Note that if the bitmap is a CPU or nodeset, the input string must contain physical indexes. - * - * The input string should be a comma-separared list of hexadecimal 32-bit blocks. - * String "0xffffffff,0x6,0x2" is parsed as a bitmap containing all bits between 64 and 95, - * and bits 33, 34 and 1. - * - * \return 0 on success, -1 on error. +/** \brief Parse a bitmap string and stores it in bitmap \p bitmap. */ HWLOC_DECLSPEC int hwloc_bitmap_sscanf(hwloc_bitmap_t bitmap, const char * __hwloc_restrict string); /** \brief Stringify a bitmap in the list format. - * - * Note that if the bitmap is a CPU or nodeset, it contains physical indexes. * * Lists are comma-separated indexes or ranges. * Ranges are dash separated indexes. - * A bitmap containing bits 1, 33, 34, and all from 64 to 95 is printed as "1,33-34,64-95". - * The last range may not have an ending index if the bitmap is infinitely set. + * The last range may not have an ending indexes if the bitmap is infinitely set. * * Up to \p buflen characters may be written in buffer \p buf. * * If \p buflen is 0, \p buf may safely be \c NULL. * - * \return the number of characters that were actually written if not truncating, - * or that would have been written (not including the ending \c \0). - * \return -1 on error. + * \return the number of character that were actually written if not truncating, + * or that would have been written (not including the ending \\0). */ HWLOC_DECLSPEC int hwloc_bitmap_list_snprintf(char * __hwloc_restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap); /** \brief Stringify a bitmap into a newly allocated list string. * - * Note that if the bitmap is a CPU or nodeset, it contains physical indexes. - * - * Lists are comma-separated indexes or ranges. - * Ranges are dash separated indexes. - * A bitmap containing bits 1, 33, 34, and all from 64 to 95 is printed as "1,33-34,64-95". - * The last range may not have an ending index if the bitmap is infinitely set. - * - * \return the number of characters that were written (not including the ending \c \0). - * \return -1 on error, for instance with \p errno set to \c ENOMEM on failure to allocate the output string. + * \return -1 on error. */ HWLOC_DECLSPEC int hwloc_bitmap_list_asprintf(char ** strp, hwloc_const_bitmap_t bitmap); /** \brief Parse a list string and stores it in bitmap \p bitmap. - * - * Note that if the bitmap is a CPU or nodeset, the input string must contain physical indexes. - * - * Lists are comma-separated indexes or ranges. - * Ranges are dash separated indexes. - * String "1,33-34,64-95" is parsed as a bitmap containing bits 1, 33, 34, and all from 64 to 95. - * The last range may not have an ending index if the bitmap is infinitely set. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_bitmap_list_sscanf(hwloc_bitmap_t bitmap, const char * __hwloc_restrict string); /** \brief Stringify a bitmap in the taskset-specific format. * - * Note that if the bitmap is a CPU or nodeset, it contains physical indexes. - * - * The taskset program manipulates bitmap strings that contain a single + * The taskset command manipulates bitmap strings that contain a single * (possible very long) hexadecimal number starting with 0x. - * A bitmap containing bits 1, 33, 34, and all from 64 to 95 is printed as "0xffffffff0000000600000002". * * Up to \p buflen characters may be written in buffer \p buf. * * If \p buflen is 0, \p buf may safely be \c NULL. * - * \return the number of characters that were actually written if not truncating, - * or that would have been written (not including the ending \c \0). - * \return -1 on error. + * \return the number of character that were actually written if not truncating, + * or that would have been written (not including the ending \\0). */ HWLOC_DECLSPEC int hwloc_bitmap_taskset_snprintf(char * __hwloc_restrict buf, size_t buflen, hwloc_const_bitmap_t bitmap); /** \brief Stringify a bitmap into a newly allocated taskset-specific string. * - * Note that if the bitmap is a CPU or nodeset, it contains physical indexes. - * - * The taskset program manipulates bitmap strings that contain a single - * (possible very long) hexadecimal number starting with 0x. - * A bitmap containing bits 1, 33, 34, and all from 64 to 95 is printed as "0xffffffff0000000600000002". - * - * \return the number of characters that were written (not including the ending \c \0). - * \return -1 on error, for instance with \p errno set to \c ENOMEM on failure to allocate the output string. + * \return -1 on error. */ HWLOC_DECLSPEC int hwloc_bitmap_taskset_asprintf(char ** strp, hwloc_const_bitmap_t bitmap); /** \brief Parse a taskset-specific bitmap string and stores it in bitmap \p bitmap. - * - * Note that if the bitmap is a CPU or nodeset, the input string must contain physical indexes. - * - * The taskset program manipulates bitmap strings that contain a single - * (possible very long) hexadecimal number starting with 0x. - * String "0xffffffff0000000600000002" is parsed as a bitmap containing all bits between 64 and 95, - * and bits 33, 34 and 1. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_bitmap_taskset_sscanf(hwloc_bitmap_t bitmap, const char * __hwloc_restrict string); @@ -347,7 +279,6 @@ HWLOC_DECLSPEC int hwloc_bitmap_to_ulongs(hwloc_const_bitmap_t bitmap, unsigned * When called on the output of hwloc_topology_get_topology_cpuset(), * the returned number is large enough for all cpusets of the topology. * - * \return the number of unsigned longs required. * \return -1 if \p bitmap is infinite. */ HWLOC_DECLSPEC int hwloc_bitmap_nr_ulongs(hwloc_const_bitmap_t bitmap) __hwloc_attribute_pure; @@ -374,23 +305,21 @@ HWLOC_DECLSPEC int hwloc_bitmap_isfull(hwloc_const_bitmap_t bitmap) __hwloc_attr /** \brief Compute the first index (least significant bit) in bitmap \p bitmap * - * \return the first index set in \p bitmap. - * \return -1 if \p bitmap is empty. + * \return -1 if no index is set in \p bitmap. */ HWLOC_DECLSPEC int hwloc_bitmap_first(hwloc_const_bitmap_t bitmap) __hwloc_attribute_pure; /** \brief Compute the next index in bitmap \p bitmap which is after index \p prev * - * \return the first index set in \p bitmap if \p prev is \c -1. - * \return the next index set in \p bitmap if \p prev is not \c -1. + * If \p prev is -1, the first index is returned. + * * \return -1 if no index with higher index is set in \p bitmap. */ HWLOC_DECLSPEC int hwloc_bitmap_next(hwloc_const_bitmap_t bitmap, int prev) __hwloc_attribute_pure; /** \brief Compute the last index (most significant bit) in bitmap \p bitmap * - * \return the last index set in \p bitmap. - * \return -1 if \p bitmap is empty, or if \p bitmap is infinitely set. + * \return -1 if no index is set in \p bitmap, or if \p bitmap is infinitely set. */ HWLOC_DECLSPEC int hwloc_bitmap_last(hwloc_const_bitmap_t bitmap) __hwloc_attribute_pure; @@ -398,29 +327,28 @@ HWLOC_DECLSPEC int hwloc_bitmap_last(hwloc_const_bitmap_t bitmap) __hwloc_attrib * indexes that are in the bitmap). * * \return the number of indexes that are in the bitmap. + * * \return -1 if \p bitmap is infinitely set. */ HWLOC_DECLSPEC int hwloc_bitmap_weight(hwloc_const_bitmap_t bitmap) __hwloc_attribute_pure; /** \brief Compute the first unset index (least significant bit) in bitmap \p bitmap * - * \return the first unset index in \p bitmap. - * \return -1 if \p bitmap is full. + * \return -1 if no index is unset in \p bitmap. */ HWLOC_DECLSPEC int hwloc_bitmap_first_unset(hwloc_const_bitmap_t bitmap) __hwloc_attribute_pure; /** \brief Compute the next unset index in bitmap \p bitmap which is after index \p prev * - * \return the first index unset in \p bitmap if \p prev is \c -1. - * \return the next index unset in \p bitmap if \p prev is not \c -1. + * If \p prev is -1, the first unset index is returned. + * * \return -1 if no index with higher index is unset in \p bitmap. */ HWLOC_DECLSPEC int hwloc_bitmap_next_unset(hwloc_const_bitmap_t bitmap, int prev) __hwloc_attribute_pure; /** \brief Compute the last unset index (most significant bit) in bitmap \p bitmap * - * \return the last index unset in \p bitmap. - * \return -1 if \p bitmap is full, or if \p bitmap is not infinitely set. + * \return -1 if no index is unset in \p bitmap, or if \p bitmap is infinitely set. */ HWLOC_DECLSPEC int hwloc_bitmap_last_unset(hwloc_const_bitmap_t bitmap) __hwloc_attribute_pure; @@ -429,11 +357,11 @@ HWLOC_DECLSPEC int hwloc_bitmap_last_unset(hwloc_const_bitmap_t bitmap) __hwloc_ * The loop must start with hwloc_bitmap_foreach_begin() and end * with hwloc_bitmap_foreach_end() followed by a terminating ';'. * - * \p id is the loop variable; it should be an unsigned int. The - * first iteration will set \p id to the lowest index in the bitmap. + * \p index is the loop variable; it should be an unsigned int. The + * first iteration will set \p index to the lowest index in the bitmap. * Successive iterations will iterate through, in order, all remaining * indexes set in the bitmap. To be specific: each iteration will return a - * value for \p id such that hwloc_bitmap_isset(bitmap, id) is true. + * value for \p index such that hwloc_bitmap_isset(bitmap, index) is true. * * The assert prevents the loop from being infinite if the bitmap is infinitely set. * @@ -500,8 +428,6 @@ HWLOC_DECLSPEC int hwloc_bitmap_not (hwloc_bitmap_t res, hwloc_const_bitmap_t bi /** \brief Test whether bitmaps \p bitmap1 and \p bitmap2 intersects. * * \return 1 if bitmaps intersect, 0 otherwise. - * - * \note The empty bitmap does not intersect any other bitmap. */ HWLOC_DECLSPEC int hwloc_bitmap_intersects (hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2) __hwloc_attribute_pure; diff --git a/src/3rdparty/hwloc/include/hwloc/cpukinds.h b/src/3rdparty/hwloc/include/hwloc/cpukinds.h index 524a05af..f240baf3 100644 --- a/src/3rdparty/hwloc/include/hwloc/cpukinds.h +++ b/src/3rdparty/hwloc/include/hwloc/cpukinds.h @@ -1,5 +1,5 @@ /* - * Copyright © 2020-2021 Inria. All rights reserved. + * Copyright © 2020 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -42,23 +42,18 @@ extern "C" { * (for instance the "CoreType" and "FrequencyMaxMHz", * see \ref topoattrs_cpukinds). * - * A higher efficiency value means greater intrinsic performance + * A higher efficiency value means intrinsic greater performance * (and possibly less performance/power efficiency). - * Kinds with lower efficiency values are ranked first: + * Kinds with lower efficiency are ranked first: * Passing 0 as \p kind_index to hwloc_cpukinds_get_info() will - * return information about the CPU kind with lower performance - * but higher energy-efficiency. - * Higher \p kind_index values would rather return information - * about power-hungry high-performance cores. + * return information about the less efficient CPU kind. * - * When available, efficiency values are gathered from the operating system. - * If so, \p cpukind_efficiency is set in the struct hwloc_topology_discovery_support array. - * This is currently available on Windows 10, Mac OS X (Darwin), - * and on some Linux platforms where core "capacity" is exposed in sysfs. - * - * If the operating system does not expose core efficiencies natively, - * hwloc tries to compute efficiencies by comparing CPU kinds using - * frequencies (on ARM), or core types and frequencies (on other architectures). + * When available, efficiency values are gathered from the operating + * system (when \p cpukind_efficiency is set in the + * struct hwloc_topology_discovery_support array, only on Windows 10 for now). + * Otherwise hwloc tries to compute efficiencies + * by comparing CPU kinds using frequencies (on ARM), + * or core types and frequencies (on other architectures). * The environment variable HWLOC_CPUKINDS_RANKING may be used * to change this heuristics, see \ref envvar. * diff --git a/src/3rdparty/hwloc/include/hwloc/cuda.h b/src/3rdparty/hwloc/include/hwloc/cuda.h index e72f9728..72fb8ccb 100644 --- a/src/3rdparty/hwloc/include/hwloc/cuda.h +++ b/src/3rdparty/hwloc/include/hwloc/cuda.h @@ -1,5 +1,5 @@ /* - * Copyright © 2010-2023 Inria. All rights reserved. + * Copyright © 2010-2021 Inria. All rights reserved. * Copyright © 2010-2011 Université Bordeaux * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -42,9 +42,6 @@ extern "C" { /** \brief Return the domain, bus and device IDs of the CUDA device \p cudevice. * * Device \p cudevice must match the local machine. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_cuda_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unused, @@ -90,9 +87,6 @@ hwloc_cuda_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unused * * This function is currently only implemented in a meaningful way for * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_cuda_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, diff --git a/src/3rdparty/hwloc/include/hwloc/cudart.h b/src/3rdparty/hwloc/include/hwloc/cudart.h index ad7f49f1..676cffec 100644 --- a/src/3rdparty/hwloc/include/hwloc/cudart.h +++ b/src/3rdparty/hwloc/include/hwloc/cudart.h @@ -1,5 +1,5 @@ /* - * Copyright © 2010-2023 Inria. All rights reserved. + * Copyright © 2010-2021 Inria. All rights reserved. * Copyright © 2010-2011 Université Bordeaux * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -43,9 +43,6 @@ extern "C" { /** \brief Return the domain, bus and device IDs of the CUDA device whose index is \p idx. * * Device index \p idx must match the local machine. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_cudart_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unused, @@ -87,9 +84,6 @@ hwloc_cudart_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unus * * This function is currently only implemented in a meaningful way for * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_cudart_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, diff --git a/src/3rdparty/hwloc/include/hwloc/deprecated.h b/src/3rdparty/hwloc/include/hwloc/deprecated.h index d563b437..f2419dd4 100644 --- a/src/3rdparty/hwloc/include/hwloc/deprecated.h +++ b/src/3rdparty/hwloc/include/hwloc/deprecated.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2022 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2012 Université Bordeaux * Copyright © 2009-2010 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -55,7 +55,7 @@ hwloc_topology_insert_misc_object_by_parent(hwloc_topology_t topology, hwloc_obj * * If \p size is 0, \p string may safely be \c NULL. * - * \return the number of characters that were actually written if not truncating, + * \return the number of character that were actually written if not truncating, * or that would have been written (not including the ending \\0). */ static __hwloc_inline int diff --git a/src/3rdparty/hwloc/include/hwloc/diff.h b/src/3rdparty/hwloc/include/hwloc/diff.h index a9afa8f7..0ad0486b 100644 --- a/src/3rdparty/hwloc/include/hwloc/diff.h +++ b/src/3rdparty/hwloc/include/hwloc/diff.h @@ -1,5 +1,5 @@ /* - * Copyright © 2013-2024 Inria. All rights reserved. + * Copyright © 2013-2020 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -222,8 +222,6 @@ enum hwloc_topology_diff_apply_flags_e { HWLOC_DECLSPEC int hwloc_topology_diff_apply(hwloc_topology_t topology, hwloc_topology_diff_t diff, unsigned long flags); /** \brief Destroy a list of topology differences. - * - * \return 0. */ HWLOC_DECLSPEC int hwloc_topology_diff_destroy(hwloc_topology_diff_t diff); @@ -235,8 +233,6 @@ HWLOC_DECLSPEC int hwloc_topology_diff_destroy(hwloc_topology_diff_t diff); * This identifier is usually the name of the other XML file * that contains the reference topology. * - * \return 0 on success, -1 on error. - * * \note the pointer returned in refname should later be freed * by the caller. */ @@ -250,17 +246,10 @@ HWLOC_DECLSPEC int hwloc_topology_diff_load_xml(const char *xmlpath, hwloc_topol * This identifier is usually the name of the other XML file * that contains the reference topology. * This attribute is given back when reading the diff from XML. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_topology_diff_export_xml(hwloc_topology_diff_t diff, const char *refname, const char *xmlpath); /** \brief Load a list of topology differences from a XML buffer. - * - * Build a list of differences from the XML memory buffer given - * at \p xmlbuffer and of length \p buflen (including an ending \c \0). - * This buffer may have been filled earlier with - * hwloc_topology_diff_export_xmlbuffer(). * * If not \c NULL, \p refname will be filled with the identifier * string of the reference topology for the difference file, @@ -268,8 +257,6 @@ HWLOC_DECLSPEC int hwloc_topology_diff_export_xml(hwloc_topology_diff_t diff, co * This identifier is usually the name of the other XML file * that contains the reference topology. * - * \return 0 on success, -1 on error. - * * \note the pointer returned in refname should later be freed * by the caller. */ @@ -284,11 +271,9 @@ HWLOC_DECLSPEC int hwloc_topology_diff_load_xmlbuffer(const char *xmlbuffer, int * that contains the reference topology. * This attribute is given back when reading the diff from XML. * - * The returned buffer ends with a \c \0 that is included in the returned + * The returned buffer ends with a \0 that is included in the returned * length. * - * \return 0 on success, -1 on error. - * * \note The XML buffer should later be freed with hwloc_free_xmlbuffer(). */ HWLOC_DECLSPEC int hwloc_topology_diff_export_xmlbuffer(hwloc_topology_diff_t diff, const char *refname, char **xmlbuffer, int *buflen); diff --git a/src/3rdparty/hwloc/include/hwloc/distances.h b/src/3rdparty/hwloc/include/hwloc/distances.h index 15b2dc8a..6eac94e9 100644 --- a/src/3rdparty/hwloc/include/hwloc/distances.h +++ b/src/3rdparty/hwloc/include/hwloc/distances.h @@ -1,5 +1,5 @@ /* - * Copyright © 2010-2025 Inria. All rights reserved. + * Copyright © 2010-2021 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -28,18 +28,17 @@ extern "C" { /** \brief Matrix of distances between a set of objects. * - * The most common matrix contains latencies between NUMA nodes + * This matrix often contains latencies between NUMA nodes * (as reported in the System Locality Distance Information Table (SLIT) * in the ACPI specification), which may or may not be physically accurate. * It corresponds to the latency for accessing the memory of one node * from a core in another node. - * The corresponding kind is ::HWLOC_DISTANCES_KIND_MEANS_LATENCY | ::HWLOC_DISTANCES_KIND_FROM_USER. + * The corresponding kind is ::HWLOC_DISTANCES_KIND_FROM_OS | ::HWLOC_DISTANCES_KIND_FROM_USER. * The name of this distances structure is "NUMALatency". + * Others distance structures include and "XGMIBandwidth" and "NVLinkBandwidth". * * The matrix may also contain bandwidths between random sets of objects, * possibly provided by the user, as specified in the \p kind attribute. - * Others common distance structures include and "XGMIBandwidth", "XGMIHops", - * "XeLinkBandwidth" and "NVLinkBandwidth". * * Pointers \p objs and \p values should not be replaced, reallocated, freed, etc. * However callers are allowed to modify \p kind as well as the contents @@ -70,10 +69,11 @@ struct hwloc_distances_s { * The \p kind attribute of struct hwloc_distances_s is a OR'ed set * of kinds. * - * Each distance matrix may have only one kind among HWLOC_DISTANCES_KIND_FROM_* - * specifying where distance information comes from, - * and one kind among HWLOC_DISTANCES_KIND_MEANS_* specifying - * whether values are latencies or bandwidths. + * A kind of format HWLOC_DISTANCES_KIND_FROM_* specifies where the + * distance information comes from, if known. + * + * A kind of format HWLOC_DISTANCES_KIND_MEANS_* specifies whether + * values are latencies or bandwidths, if applicable. */ enum hwloc_distances_kind_e { /** \brief These distances were obtained from the operating system or hardware. @@ -130,8 +130,6 @@ enum hwloc_distances_kind_e { * * Each distance matrix returned in the \p distances array should be released * by the caller using hwloc_distances_release(). - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_get(hwloc_topology_t topology, @@ -141,8 +139,6 @@ hwloc_distances_get(hwloc_topology_t topology, /** \brief Retrieve distance matrices for object at a specific depth in the topology. * * Identical to hwloc_distances_get() with the additional \p depth filter. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_get_by_depth(hwloc_topology_t topology, int depth, @@ -152,8 +148,6 @@ hwloc_distances_get_by_depth(hwloc_topology_t topology, int depth, /** \brief Retrieve distance matrices for object of a specific type. * * Identical to hwloc_distances_get() with the additional \p type filter. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_get_by_type(hwloc_topology_t topology, hwloc_obj_type_t type, @@ -165,10 +159,7 @@ hwloc_distances_get_by_type(hwloc_topology_t topology, hwloc_obj_type_t type, * Usually only one distances structure may match a given name. * * The name of the most common structure is "NUMALatency". - * Others include "XGMIBandwidth", "XGMIHops", "XeLinkBandwidth", - * and "NVLinkBandwidth". - * - * \return 0 on success, -1 on error. + * Others include "XGMIBandwidth" and "NVLinkBandwidth". */ HWLOC_DECLSPEC int hwloc_distances_get_by_name(hwloc_topology_t topology, const char *name, @@ -178,12 +169,7 @@ hwloc_distances_get_by_name(hwloc_topology_t topology, const char *name, /** \brief Get a description of what a distances structure contains. * * For instance "NUMALatency" for hardware-provided NUMA distances (ACPI SLIT), - * or \c NULL if unknown. - * - * \return the constant string with the name of the distance structure. - * - * \note The returned name should not be freed by the caller, - * it belongs to the hwloc library. + * or NULL if unknown. */ HWLOC_DECLSPEC const char * hwloc_distances_get_name(hwloc_topology_t topology, struct hwloc_distances_s *distances); @@ -227,24 +213,17 @@ enum hwloc_distances_transform_e { HWLOC_DISTANCES_TRANSFORM_LINKS = 1, /** \brief Merge switches with multiple ports into a single object. - * - * This currently only applies to NVSwitches where GPUs seem connected - * to different switch ports. Switch ports must be objects with subtype - * "NVSwitch" as in the NVLinkBandwidth matrix. - * - * This transformation will replace all ports with only the first one, - * now connected to all GPUs. Other ports are removed by applying - * ::HWLOC_DISTANCES_TRANSFORM_REMOVE_NULL internally. + * This currently only applies to NVSwitches where GPUs seem connected to different + * separate switch ports in the NVLinkBandwidth matrix. This transformation will + * replace all of them with the same port connected to all GPUs. + * Other ports are removed by applying ::HWLOC_DISTANCES_TRANSFORM_REMOVE_NULL internally. * \hideinitializer */ HWLOC_DISTANCES_TRANSFORM_MERGE_SWITCH_PORTS = 2, /** \brief Apply a transitive closure to the matrix to connect objects across switches. - * - * All pairs of GPUs will be reported as directly connected instead GPUs being - * only connected to switches. - * - * Switch ports must be objects with subtype "NVSwitch" as in the NVLinkBandwidth matrix. + * This currently only applies to GPUs and NVSwitches in the NVLinkBandwidth matrix. + * All pairs of GPUs will be reported as directly connected. * \hideinitializer */ HWLOC_DISTANCES_TRANSFORM_TRANSITIVE_CLOSURE = 3 @@ -271,8 +250,6 @@ enum hwloc_distances_transform_e { * * \p flags must be \c 0 for now. * - * \return 0 on success, -1 on error for instance if flags are invalid. - * * \note Objects in distances array \p objs may be directly modified * in place without using hwloc_distances_transform(). * One may use hwloc_get_obj_with_same_locality() to easily convert @@ -293,7 +270,6 @@ HWLOC_DECLSPEC int hwloc_distances_transform(hwloc_topology_t topology, struct h /** \brief Find the index of an object in a distances structure. * - * \return the index of the object in the distances structure if any. * \return -1 if object \p obj is not involved in structure \p distances. */ static __hwloc_inline int @@ -311,7 +287,6 @@ hwloc_distances_obj_index(struct hwloc_distances_s *distances, hwloc_obj_t obj) * The distance from \p obj1 to \p obj2 is stored in the value pointed by * \p value1to2 and reciprocally. * - * \return 0 on success. * \return -1 if object \p obj1 or \p obj2 is not involved in structure \p distances. */ static __hwloc_inline int @@ -363,8 +338,6 @@ typedef void * hwloc_distances_add_handle_t; * Otherwise, it will be copied internally and may later be freed by the caller. * * \p kind specifies the kind of distance as a OR'ed set of ::hwloc_distances_kind_e. - * Only one kind of meaning and one kind of provenance may be given if appropriate - * (e.g. ::HWLOC_DISTANCES_KIND_MEANS_BANDWIDTH and ::HWLOC_DISTANCES_KIND_FROM_USER). * Kind ::HWLOC_DISTANCES_KIND_HETEROGENEOUS_TYPES will be automatically set * according to objects having different types in hwloc_distances_add_values(). * @@ -399,8 +372,8 @@ hwloc_distances_add_create(hwloc_topology_t topology, * * \p flags must be \c 0 for now. * - * \return 0 on success. - * \return -1 on error. + * \return \c 0 on success. + * \return \c -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_add_values(hwloc_topology_t topology, hwloc_distances_add_handle_t handle, @@ -411,8 +384,7 @@ HWLOC_DECLSPEC int hwloc_distances_add_values(hwloc_topology_t topology, /** \brief Flags for adding a new distances to a topology. */ enum hwloc_distances_add_flag_e { /** \brief Try to group objects based on the newly provided distance information. - * Grouping is only performed when the distances structure contains latencies, - * and when all objects are of the same type. + * This is ignored for distances between objects of different types. * \hideinitializer */ HWLOC_DISTANCES_ADD_FLAG_GROUP = (1UL<<0), @@ -437,8 +409,8 @@ enum hwloc_distances_add_flag_e { * * On error, the temporary distances structure and its content are destroyed. * - * \return 0 on success. - * \return -1 on error. + * \return \c 0 on success. + * \return \c -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_add_commit(hwloc_topology_t topology, hwloc_distances_add_handle_t handle, @@ -459,24 +431,18 @@ HWLOC_DECLSPEC int hwloc_distances_add_commit(hwloc_topology_t topology, * * If these distances were used to group objects, these additional * Group objects are not removed from the topology. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_remove(hwloc_topology_t topology); /** \brief Remove distance matrices for objects at a specific depth in the topology. * * Identical to hwloc_distances_remove() but only applies to one level of the topology. - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_remove_by_depth(hwloc_topology_t topology, int depth); /** \brief Remove distance matrices for objects of a specific type in the topology. * * Identical to hwloc_distances_remove() but only applies to one level of the topology. - * - * \return 0 on success, -1 on error. */ static __hwloc_inline int hwloc_distances_remove_by_type(hwloc_topology_t topology, hwloc_obj_type_t type) @@ -490,8 +456,6 @@ hwloc_distances_remove_by_type(hwloc_topology_t topology, hwloc_obj_type_t type) /** \brief Release and remove the given distance matrice from the topology. * * This function includes a call to hwloc_distances_release(). - * - * \return 0 on success, -1 on error. */ HWLOC_DECLSPEC int hwloc_distances_release_remove(hwloc_topology_t topology, struct hwloc_distances_s *distances); diff --git a/src/3rdparty/hwloc/include/hwloc/export.h b/src/3rdparty/hwloc/include/hwloc/export.h index 2ce5ab18..b178b77e 100644 --- a/src/3rdparty/hwloc/include/hwloc/export.h +++ b/src/3rdparty/hwloc/include/hwloc/export.h @@ -55,7 +55,7 @@ enum hwloc_topology_export_xml_flags_e { * * \p flags is a OR'ed set of ::hwloc_topology_export_xml_flags_e. * - * \return 0 on success, or -1 on error. + * \return -1 if a failure occured. * * \note See also hwloc_topology_set_userdata_export_callback() * for exporting application-specific object userdata. @@ -91,7 +91,7 @@ HWLOC_DECLSPEC int hwloc_topology_export_xml(hwloc_topology_t topology, const ch * * \p flags is a OR'ed set of ::hwloc_topology_export_xml_flags_e. * - * \return 0 on success, or -1 on error. + * \return -1 if a failure occured. * * \note See also hwloc_topology_set_userdata_export_callback() * for exporting application-specific object userdata. @@ -145,15 +145,13 @@ HWLOC_DECLSPEC void hwloc_topology_set_userdata_export_callback(hwloc_topology_t * that were given to the export callback. * * Only printable characters may be exported to XML string attributes. + * If a non-printable character is passed in \p name or \p buffer, + * the function returns -1 with errno set to EINVAL. * * If exporting binary data, the application should first encode into * printable characters only (or use hwloc_export_obj_userdata_base64()). * It should also take care of portability issues if the export may * be reimported on a different architecture. - * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if a non-printable character is - * passed in \p name or \b buffer. */ HWLOC_DECLSPEC int hwloc_export_obj_userdata(void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length); @@ -167,14 +165,8 @@ HWLOC_DECLSPEC int hwloc_export_obj_userdata(void *reserved, hwloc_topology_t to * This function may only be called from within the export() callback passed * to hwloc_topology_set_userdata_export_callback(). * - * The name must be made of printable characters for export to XML string attributes. - * * The function does not take care of portability issues if the export * may be reimported on a different architecture. - * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if a non-printable character is - * passed in \p name. */ HWLOC_DECLSPEC int hwloc_export_obj_userdata_base64(void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length); diff --git a/src/3rdparty/hwloc/include/hwloc/gl.h b/src/3rdparty/hwloc/include/hwloc/gl.h index 2ad9284f..56a402a8 100644 --- a/src/3rdparty/hwloc/include/hwloc/gl.h +++ b/src/3rdparty/hwloc/include/hwloc/gl.h @@ -1,6 +1,6 @@ /* * Copyright © 2012 Blue Brain Project, EPFL. All rights reserved. - * Copyright © 2012-2023 Inria. All rights reserved. + * Copyright © 2012-2021 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -102,8 +102,7 @@ hwloc_gl_get_display_osdev_by_name(hwloc_topology_t topology, * Retrieves the OpenGL display port (server) in \p port and device (screen) * in \p screen that correspond to the given hwloc OS device object. * - * \return 0 on success. - * \return -1 if none could be found. + * \return \c -1 if none could be found. * * The topology \p topology does not necessarily have to match the current * machine. For instance the topology may be an XML import of a remote host. diff --git a/src/3rdparty/hwloc/include/hwloc/glibc-sched.h b/src/3rdparty/hwloc/include/hwloc/glibc-sched.h index d3f16f45..3c5368be 100644 --- a/src/3rdparty/hwloc/include/hwloc/glibc-sched.h +++ b/src/3rdparty/hwloc/include/hwloc/glibc-sched.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2023 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2011 Université Bordeaux * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -52,8 +52,6 @@ extern "C" { * that takes a cpu_set_t as input parameter. * * \p schedsetsize should be sizeof(cpu_set_t) unless \p schedset was dynamically allocated with CPU_ALLOC - * - * \return 0. */ static __hwloc_inline int hwloc_cpuset_to_glibc_sched_affinity(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t hwlocset, @@ -82,9 +80,6 @@ hwloc_cpuset_to_glibc_sched_affinity(hwloc_topology_t topology __hwloc_attribute * that takes a cpu_set_t as input parameter. * * \p schedsetsize should be sizeof(cpu_set_t) unless \p schedset was dynamically allocated with CPU_ALLOC - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM if some internal reallocation failed. */ static __hwloc_inline int hwloc_cpuset_from_glibc_sched_affinity(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_cpuset_t hwlocset, @@ -100,8 +95,7 @@ hwloc_cpuset_from_glibc_sched_affinity(hwloc_topology_t topology __hwloc_attribu cpu = 0; while (count) { if (CPU_ISSET_S(cpu, schedsetsize, schedset)) { - if (hwloc_bitmap_set(hwlocset, cpu) < 0) - return -1; + hwloc_bitmap_set(hwlocset, cpu); count--; } cpu++; @@ -113,8 +107,7 @@ hwloc_cpuset_from_glibc_sched_affinity(hwloc_topology_t topology __hwloc_attribu assert(schedsetsize == sizeof(cpu_set_t)); for(cpu=0; cpucpuset, set)) + return NULL; + while (!hwloc_bitmap_isincluded(obj->cpuset, set)) { + /* while the object intersects without being included, look at its children */ + hwloc_obj_t child = obj->first_child; + while (child) { + if (hwloc_bitmap_intersects(child->cpuset, set)) + break; + child = child->next_sibling; + } + if (!child) + /* no child intersects, return their father */ + return obj; + /* found one intersecting child, look at its children */ + obj = child; + } + /* obj is included, return it */ + return obj; +} + +/** \brief Get the set of largest objects covering exactly a given cpuset \p set + * + * \return the number of objects returned in \p objs. + */ +HWLOC_DECLSPEC int hwloc_get_largest_objs_inside_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_t * __hwloc_restrict objs, int max); + +/** \brief Return the next object at depth \p depth included in CPU set \p set. + * + * If \p prev is \c NULL, return the first object at depth \p depth + * included in \p set. The next invokation should pass the previous + * return value in \p prev so as to obtain the next object in \p set. + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if objects at the given depth do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_next_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, + int depth, hwloc_obj_t prev) +{ + hwloc_obj_t next = hwloc_get_next_obj_by_depth(topology, depth, prev); + if (!next) + return NULL; + while (next && (hwloc_bitmap_iszero(next->cpuset) || !hwloc_bitmap_isincluded(next->cpuset, set))) + next = next->next_cousin; + return next; +} + +/** \brief Return the next object of type \p type included in CPU set \p set. + * + * If there are multiple or no depth for given type, return \c NULL + * and let the caller fallback to + * hwloc_get_next_obj_inside_cpuset_by_depth(). + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if objects of the given type do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_next_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_type_t type, hwloc_obj_t prev) +{ + int depth = hwloc_get_type_depth(topology, type); + if (depth == HWLOC_TYPE_DEPTH_UNKNOWN || depth == HWLOC_TYPE_DEPTH_MULTIPLE) + return NULL; + return hwloc_get_next_obj_inside_cpuset_by_depth(topology, set, depth, prev); +} + +/** \brief Return the (logically) \p idx -th object at depth \p depth included in CPU set \p set. + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if objects at the given depth do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, + int depth, unsigned idx) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, + int depth, unsigned idx) +{ + hwloc_obj_t obj = hwloc_get_obj_by_depth (topology, depth, 0); + unsigned count = 0; + if (!obj) + return NULL; + while (obj) { + if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) { + if (count == idx) + return obj; + count++; + } + obj = obj->next_cousin; + } + return NULL; +} + +/** \brief Return the \p idx -th object of type \p type included in CPU set \p set. + * + * If there are multiple or no depth for given type, return \c NULL + * and let the caller fallback to + * hwloc_get_obj_inside_cpuset_by_depth(). + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if objects of the given type do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_type_t type, unsigned idx) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_type_t type, unsigned idx) +{ + int depth = hwloc_get_type_depth(topology, type); + if (depth == HWLOC_TYPE_DEPTH_UNKNOWN || depth == HWLOC_TYPE_DEPTH_MULTIPLE) + return NULL; + return hwloc_get_obj_inside_cpuset_by_depth(topology, set, depth, idx); +} + +/** \brief Return the number of objects at depth \p depth included in CPU set \p set. + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if objects at the given depth do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline unsigned +hwloc_get_nbobjs_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, + int depth) __hwloc_attribute_pure; +static __hwloc_inline unsigned +hwloc_get_nbobjs_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, + int depth) +{ + hwloc_obj_t obj = hwloc_get_obj_by_depth (topology, depth, 0); + unsigned count = 0; + if (!obj) + return 0; + while (obj) { + if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) + count++; + obj = obj->next_cousin; + } + return count; +} + +/** \brief Return the number of objects of type \p type included in CPU set \p set. + * + * If no object for that type exists inside CPU set \p set, 0 is + * returned. If there are several levels with objects of that type + * inside CPU set \p set, -1 is returned. + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if objects of the given type do + * not have CPU sets (I/O objects). + */ +static __hwloc_inline int +hwloc_get_nbobjs_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_type_t type) __hwloc_attribute_pure; +static __hwloc_inline int +hwloc_get_nbobjs_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_type_t type) +{ + int depth = hwloc_get_type_depth(topology, type); + if (depth == HWLOC_TYPE_DEPTH_UNKNOWN) + return 0; + if (depth == HWLOC_TYPE_DEPTH_MULTIPLE) + return -1; /* FIXME: agregate nbobjs from different levels? */ + return (int) hwloc_get_nbobjs_inside_cpuset_by_depth(topology, set, depth); +} + +/** \brief Return the logical index among the objects included in CPU set \p set. + * + * Consult all objects in the same level as \p obj and inside CPU set \p set + * in the logical order, and return the index of \p obj within them. + * If \p set covers the entire topology, this is the logical index of \p obj. + * Otherwise, this is similar to a logical index within the part of the topology + * defined by CPU set \p set. + * + * \note Objects with empty CPU sets are ignored + * (otherwise they would be considered included in any given set). + * + * \note This function cannot work if obj does not have CPU sets (I/O objects). + */ +static __hwloc_inline int +hwloc_get_obj_index_inside_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, + hwloc_obj_t obj) __hwloc_attribute_pure; +static __hwloc_inline int +hwloc_get_obj_index_inside_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, + hwloc_obj_t obj) +{ + int idx = 0; + if (!hwloc_bitmap_isincluded(obj->cpuset, set)) + return -1; + /* count how many objects are inside the cpuset on the way from us to the beginning of the level */ + while ((obj = obj->prev_cousin) != NULL) + if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) + idx++; + return idx; +} + +/** @} */ + + + +/** \defgroup hwlocality_helper_find_covering Finding Objects covering at least CPU set + * @{ + */ + +/** \brief Get the child covering at least CPU set \p set. + * + * \return \c NULL if no child matches or if \p set is empty. + * + * \note This function cannot work if parent does not have a CPU set (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, + hwloc_obj_t parent) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, + hwloc_obj_t parent) +{ + hwloc_obj_t child; + if (hwloc_bitmap_iszero(set)) + return NULL; + child = parent->first_child; + while (child) { + if (child->cpuset && hwloc_bitmap_isincluded(set, child->cpuset)) + return child; + child = child->next_sibling; + } + return NULL; +} + +/** \brief Get the lowest object covering at least CPU set \p set + * + * \return \c NULL if no object matches or if \p set is empty. + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) +{ + struct hwloc_obj *current = hwloc_get_root_obj(topology); + if (hwloc_bitmap_iszero(set) || !hwloc_bitmap_isincluded(set, current->cpuset)) + return NULL; + while (1) { + hwloc_obj_t child = hwloc_get_child_covering_cpuset(topology, set, current); + if (!child) + return current; + current = child; + } +} + +/** \brief Iterate through same-depth objects covering at least CPU set \p set + * + * If object \p prev is \c NULL, return the first object at depth \p + * depth covering at least part of CPU set \p set. The next + * invokation should pass the previous return value in \p prev so as + * to obtain the next object covering at least another part of \p set. + * + * \note This function cannot work if objects at the given depth do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_next_obj_covering_cpuset_by_depth(hwloc_topology_t topology, hwloc_const_cpuset_t set, + int depth, hwloc_obj_t prev) +{ + hwloc_obj_t next = hwloc_get_next_obj_by_depth(topology, depth, prev); + if (!next) + return NULL; + while (next && !hwloc_bitmap_intersects(set, next->cpuset)) + next = next->next_cousin; + return next; +} + +/** \brief Iterate through same-type objects covering at least CPU set \p set + * + * If object \p prev is \c NULL, return the first object of type \p + * type covering at least part of CPU set \p set. The next invokation + * should pass the previous return value in \p prev so as to obtain + * the next object of type \p type covering at least another part of + * \p set. + * + * If there are no or multiple depths for type \p type, \c NULL is returned. + * The caller may fallback to hwloc_get_next_obj_covering_cpuset_by_depth() + * for each depth. + * + * \note This function cannot work if objects of the given type do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_next_obj_covering_cpuset_by_type(hwloc_topology_t topology, hwloc_const_cpuset_t set, + hwloc_obj_type_t type, hwloc_obj_t prev) +{ + int depth = hwloc_get_type_depth(topology, type); + if (depth == HWLOC_TYPE_DEPTH_UNKNOWN || depth == HWLOC_TYPE_DEPTH_MULTIPLE) + return NULL; + return hwloc_get_next_obj_covering_cpuset_by_depth(topology, set, depth, prev); +} + +/** @} */ + + + +/** \defgroup hwlocality_helper_ancestors Looking at Ancestor and Child Objects + * @{ + * + * Be sure to see the figure in \ref termsanddefs that shows a + * complete topology tree, including depths, child/sibling/cousin + * relationships, and an example of an asymmetric topology where one + * package has fewer caches than its peers. + */ + +/** \brief Returns the ancestor object of \p obj at depth \p depth. + * + * \note \p depth should not be the depth of PU or NUMA objects + * since they are ancestors of no objects (except Misc or I/O). + * This function rather expects an intermediate level depth, + * such as the depth of Packages, Cores, or Caches. + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_ancestor_obj_by_depth (hwloc_topology_t topology __hwloc_attribute_unused, int depth, hwloc_obj_t obj) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_ancestor_obj_by_depth (hwloc_topology_t topology __hwloc_attribute_unused, int depth, hwloc_obj_t obj) +{ + hwloc_obj_t ancestor = obj; + if (obj->depth < depth) + return NULL; + while (ancestor && ancestor->depth > depth) + ancestor = ancestor->parent; + return ancestor; +} + +/** \brief Returns the ancestor object of \p obj with type \p type. + * + * \note \p type should not be ::HWLOC_OBJ_PU or ::HWLOC_OBJ_NUMANODE + * since these objects are ancestors of no objects (except Misc or I/O). + * This function rather expects an intermediate object type, + * such as ::HWLOC_OBJ_PACKAGE, ::HWLOC_OBJ_CORE, etc. + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_ancestor_obj_by_type (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_type_t type, hwloc_obj_t obj) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_ancestor_obj_by_type (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_type_t type, hwloc_obj_t obj) +{ + hwloc_obj_t ancestor = obj->parent; + while (ancestor && ancestor->type != type) + ancestor = ancestor->parent; + return ancestor; +} + +/** \brief Returns the common parent object to objects \p obj1 and \p obj2 */ +static __hwloc_inline hwloc_obj_t +hwloc_get_common_ancestor_obj (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj1, hwloc_obj_t obj2) __hwloc_attribute_pure; +static __hwloc_inline hwloc_obj_t +hwloc_get_common_ancestor_obj (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj1, hwloc_obj_t obj2) +{ + /* the loop isn't so easy since intermediate ancestors may have + * different depth, causing us to alternate between using obj1->parent + * and obj2->parent. Also, even if at some point we find ancestors of + * of the same depth, their ancestors may have different depth again. + */ + while (obj1 != obj2) { + while (obj1->depth > obj2->depth) + obj1 = obj1->parent; + while (obj2->depth > obj1->depth) + obj2 = obj2->parent; + if (obj1 != obj2 && obj1->depth == obj2->depth) { + obj1 = obj1->parent; + obj2 = obj2->parent; + } + } + return obj1; +} + +/** \brief Returns true if \p obj is inside the subtree beginning with ancestor object \p subtree_root. + * + * \note This function cannot work if \p obj and \p subtree_root objects do + * not have CPU sets (I/O or Misc objects). + */ +static __hwloc_inline int +hwloc_obj_is_in_subtree (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj, hwloc_obj_t subtree_root) __hwloc_attribute_pure; +static __hwloc_inline int +hwloc_obj_is_in_subtree (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj, hwloc_obj_t subtree_root) +{ + return obj->cpuset && subtree_root->cpuset && hwloc_bitmap_isincluded(obj->cpuset, subtree_root->cpuset); +} + +/** \brief Return the next child. + * + * Return the next child among the normal children list, + * then among the memory children list, then among the I/O + * children list, then among the Misc children list. + * + * If \p prev is \c NULL, return the first child. + * + * Return \c NULL when there is no next child. + */ +static __hwloc_inline hwloc_obj_t +hwloc_get_next_child (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t parent, hwloc_obj_t prev) +{ + hwloc_obj_t obj; + int state = 0; + if (prev) { + if (prev->type == HWLOC_OBJ_MISC) + state = 3; + else if (prev->type == HWLOC_OBJ_BRIDGE || prev->type == HWLOC_OBJ_PCI_DEVICE || prev->type == HWLOC_OBJ_OS_DEVICE) + state = 2; + else if (prev->type == HWLOC_OBJ_NUMANODE) + state = 1; + obj = prev->next_sibling; + } else { + obj = parent->first_child; + } + if (!obj && state == 0) { + obj = parent->memory_first_child; + state = 1; + } + if (!obj && state == 1) { + obj = parent->io_first_child; + state = 2; + } + if (!obj && state == 2) { + obj = parent->misc_first_child; + state = 3; + } + return obj; +} + +/** @} */ + + + /** \defgroup hwlocality_helper_types Kinds of object Type * @{ * @@ -35,8 +496,6 @@ extern "C" { * or I/O (i.e. hwloc_obj_type_is_io() returns 1) * or Misc (i.e. equal to ::HWLOC_OBJ_MISC). * It cannot be of more than one of these kinds. - * - * See also Object Kind in \ref termsanddefs. */ /** \brief Check whether an object type is Normal. @@ -106,511 +565,6 @@ hwloc_obj_type_is_icache(hwloc_obj_type_t type); -/** \defgroup hwlocality_helper_find_inside Finding Objects inside a CPU set - * @{ - */ - -/** \brief Get the first largest object included in the given cpuset \p set. - * - * \return the first object that is included in \p set and whose parent is not. - * \return \c NULL if no such object exists. - * - * This is convenient for iterating over all largest objects within a CPU set - * by doing a loop getting the first largest object and clearing its CPU set - * from the remaining CPU set. - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_first_largest_obj_inside_cpuset(hwloc_topology_t topology, hwloc_const_cpuset_t set) -{ - hwloc_obj_t obj = hwloc_get_root_obj(topology); - if (!hwloc_bitmap_intersects(obj->cpuset, set)) - return NULL; - while (!hwloc_bitmap_isincluded(obj->cpuset, set)) { - /* while the object intersects without being included, look at its children */ - hwloc_obj_t child = obj->first_child; - while (child) { - if (hwloc_bitmap_intersects(child->cpuset, set)) - break; - child = child->next_sibling; - } - if (!child) - /* no child intersects, return their father */ - return obj; - /* found one intersecting child, look at its children */ - obj = child; - } - /* obj is included, return it */ - return obj; -} - -/** \brief Get the set of largest objects covering exactly a given cpuset \p set - * - * \return the number of objects returned in \p objs. - * \return -1 if no set of objects may cover that cpuset. - */ -HWLOC_DECLSPEC int hwloc_get_largest_objs_inside_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_t * __hwloc_restrict objs, int max); - -/** \brief Return the next object at depth \p depth included in CPU set \p set. - * - * The next invokation should pass the previous return value in \p prev - * so as to obtain the next object in \p set. - * - * \return the first object at depth \p depth included in \p set if \p prev is \c NULL. - * \return the next object at depth \p depth included in \p set if \p prev is not \c NULL. - * \return \c NULL if there is no next object. - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if objects at the given depth do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_next_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, - int depth, hwloc_obj_t prev) -{ - hwloc_obj_t next = hwloc_get_next_obj_by_depth(topology, depth, prev); - if (!next) - return NULL; - while (next && (hwloc_bitmap_iszero(next->cpuset) || !hwloc_bitmap_isincluded(next->cpuset, set))) - next = next->next_cousin; - return next; -} - -/** \brief Return the next object of type \p type included in CPU set \p set. - * - * The next invokation should pass the previous return value in \p prev - * so as to obtain the next object in \p set. - * - * \return the first object of type \p type included in \p set if \p prev is \c NULL. - * \return the next object of type \p type included in \p set if \p prev is not \c NULL. - * \return \c NULL if there is no next object. - * \return \c NULL if there is no depth for the given type. - * \return \c NULL if there are multiple depths for the given type, - * the caller should fallback to hwloc_get_next_obj_inside_cpuset_by_depth(). - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if objects of the given type do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_next_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_type_t type, hwloc_obj_t prev) -{ - int depth = hwloc_get_type_depth(topology, type); - if (depth == HWLOC_TYPE_DEPTH_UNKNOWN || depth == HWLOC_TYPE_DEPTH_MULTIPLE) - return NULL; - return hwloc_get_next_obj_inside_cpuset_by_depth(topology, set, depth, prev); -} - -/** \brief Return the (logically) \p idx -th object at depth \p depth included in CPU set \p set. - * - * \return the object if any, \c NULL otherwise. - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if objects at the given depth do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, - int depth, unsigned idx) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, - int depth, unsigned idx) -{ - hwloc_obj_t obj = hwloc_get_obj_by_depth (topology, depth, 0); - unsigned count = 0; - if (!obj) - return NULL; - while (obj) { - if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) { - if (count == idx) - return obj; - count++; - } - obj = obj->next_cousin; - } - return NULL; -} - -/** \brief Return the \p idx -th object of type \p type included in CPU set \p set. - * - * \return the object if any. - * \return \c NULL if there is no such object. - * \return \c NULL if there is no depth for given type. - * \return \c NULL if there are multiple depths for given type, - * the caller should fallback to hwloc_get_obj_inside_cpuset_by_depth(). - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if objects of the given type do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_type_t type, unsigned idx) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_type_t type, unsigned idx) -{ - int depth = hwloc_get_type_depth(topology, type); - if (depth == HWLOC_TYPE_DEPTH_UNKNOWN || depth == HWLOC_TYPE_DEPTH_MULTIPLE) - return NULL; - return hwloc_get_obj_inside_cpuset_by_depth(topology, set, depth, idx); -} - -/** \brief Return the number of objects at depth \p depth included in CPU set \p set. - * - * \return the number of objects. - * \return 0 if the depth is invalid. - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if objects at the given depth do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline unsigned -hwloc_get_nbobjs_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, - int depth) __hwloc_attribute_pure; -static __hwloc_inline unsigned -hwloc_get_nbobjs_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, - int depth) -{ - hwloc_obj_t obj = hwloc_get_obj_by_depth (topology, depth, 0); - unsigned count = 0; - if (!obj) - return 0; - while (obj) { - if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) - count++; - obj = obj->next_cousin; - } - return count; -} - -/** \brief Return the number of objects of type \p type included in CPU set \p set. - * - * \return the number of objects. - * \return 0 if there are no objects of that type in the topology. - * \return -1 if there are multiple levels of objects of that type, - * the caller should fallback to hwloc_get_nbobjs_inside_cpuset_by_depth(). - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if objects of the given type do - * not have CPU sets (I/O objects). - */ -static __hwloc_inline int -hwloc_get_nbobjs_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_type_t type) __hwloc_attribute_pure; -static __hwloc_inline int -hwloc_get_nbobjs_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_type_t type) -{ - int depth = hwloc_get_type_depth(topology, type); - if (depth == HWLOC_TYPE_DEPTH_UNKNOWN) - return 0; - if (depth == HWLOC_TYPE_DEPTH_MULTIPLE) - return -1; /* FIXME: agregate nbobjs from different levels? */ - return (int) hwloc_get_nbobjs_inside_cpuset_by_depth(topology, set, depth); -} - -/** \brief Return the logical index among the objects included in CPU set \p set. - * - * Consult all objects in the same level as \p obj and inside CPU set \p set - * in the logical order, and return the index of \p obj within them. - * If \p set covers the entire topology, this is the logical index of \p obj. - * Otherwise, this is similar to a logical index within the part of the topology - * defined by CPU set \p set. - * - * \return the logical index among the objects included in the set if any. - * \return -1 if the object is not included in the set. - * - * \note Objects with empty CPU sets are ignored - * (otherwise they would be considered included in any given set). - * - * \note This function cannot work if obj does not have CPU sets (I/O objects). - */ -static __hwloc_inline int -hwloc_get_obj_index_inside_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, - hwloc_obj_t obj) __hwloc_attribute_pure; -static __hwloc_inline int -hwloc_get_obj_index_inside_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, - hwloc_obj_t obj) -{ - int idx = 0; - if (!hwloc_bitmap_isincluded(obj->cpuset, set)) - return -1; - /* count how many objects are inside the cpuset on the way from us to the beginning of the level */ - while ((obj = obj->prev_cousin) != NULL) - if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) - idx++; - return idx; -} - -/** @} */ - - - -/** \defgroup hwlocality_helper_find_covering Finding Objects covering at least CPU set - * @{ - */ - -/** \brief Get the child covering at least CPU set \p set. - * - * \return the child that covers the set entirely. - * \return \c NULL if no child matches or if \p set is empty. - * - * \note This function cannot work if parent does not have a CPU set (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, - hwloc_obj_t parent) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, - hwloc_obj_t parent) -{ - hwloc_obj_t child; - if (hwloc_bitmap_iszero(set)) - return NULL; - child = parent->first_child; - while (child) { - if (child->cpuset && hwloc_bitmap_isincluded(set, child->cpuset)) - return child; - child = child->next_sibling; - } - return NULL; -} - -/** \brief Get the lowest object covering at least CPU set \p set - * - * \return the lowest object covering the set entirely. - * \return \c NULL if no object matches or if \p set is empty. - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) -{ - struct hwloc_obj *current = hwloc_get_root_obj(topology); - if (hwloc_bitmap_iszero(set) || !hwloc_bitmap_isincluded(set, current->cpuset)) - return NULL; - while (1) { - hwloc_obj_t child = hwloc_get_child_covering_cpuset(topology, set, current); - if (!child) - return current; - current = child; - } -} - -/** \brief Iterate through same-depth objects covering at least CPU set \p set - * - * The next invokation should pass the previous return value in \p prev so as - * to obtain the next object covering at least another part of \p set. - * - * \return the first object at depth \p depth covering at least part of CPU set \p set - * if object \p prev is \c NULL. - * \return the next one if \p prev is not \c NULL. - * \return \c NULL if there is no next object. - * - * \note This function cannot work if objects at the given depth do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_next_obj_covering_cpuset_by_depth(hwloc_topology_t topology, hwloc_const_cpuset_t set, - int depth, hwloc_obj_t prev) -{ - hwloc_obj_t next = hwloc_get_next_obj_by_depth(topology, depth, prev); - if (!next) - return NULL; - while (next && !hwloc_bitmap_intersects(set, next->cpuset)) - next = next->next_cousin; - return next; -} - -/** \brief Iterate through same-type objects covering at least CPU set \p set - * - * The next invokation should pass the previous return value in \p prev so as to obtain - * the next object of type \p type covering at least another part of \p set. - * - * \return the first object of type \p type covering at least part of CPU set \p set - * if object \p prev is \c NULL. - * \return the next one if \p prev is not \c NULL. - * \return \c NULL if there is no next object. - * \return \c NULL if there is no depth for the given type. - * \return \c NULL if there are multiple depths for the given type, - * the caller should fallback to hwloc_get_next_obj_covering_cpuset_by_depth(). - * - * \note This function cannot work if objects of the given type do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_next_obj_covering_cpuset_by_type(hwloc_topology_t topology, hwloc_const_cpuset_t set, - hwloc_obj_type_t type, hwloc_obj_t prev) -{ - int depth = hwloc_get_type_depth(topology, type); - if (depth == HWLOC_TYPE_DEPTH_UNKNOWN || depth == HWLOC_TYPE_DEPTH_MULTIPLE) - return NULL; - return hwloc_get_next_obj_covering_cpuset_by_depth(topology, set, depth, prev); -} - -/** @} */ - - - -/** \defgroup hwlocality_helper_ancestors Looking at Ancestor and Child Objects - * @{ - * - * Be sure to see the figure in \ref termsanddefs that shows a - * complete topology tree, including depths, child/sibling/cousin - * relationships, and an example of an asymmetric topology where one - * package has fewer caches than its peers. - */ - -/** \brief Returns the ancestor object of \p obj at depth \p depth. - * - * \return the ancestor if any. - * \return \c NULL if no such ancestor exists. - * - * \note \p depth should not be the depth of PU or NUMA objects - * since they are ancestors of no objects (except Misc or I/O). - * This function rather expects an intermediate level depth, - * such as the depth of Packages, Cores, or Caches. - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_ancestor_obj_by_depth (hwloc_topology_t topology __hwloc_attribute_unused, int depth, hwloc_obj_t obj) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_ancestor_obj_by_depth (hwloc_topology_t topology __hwloc_attribute_unused, int depth, hwloc_obj_t obj) -{ - hwloc_obj_t ancestor = obj; - if (obj->depth < depth) - return NULL; - while (ancestor && ancestor->depth > depth) - ancestor = ancestor->parent; - return ancestor; -} - -/** \brief Returns the ancestor object of \p obj with type \p type. - * - * \return the ancestor if any. - * \return \c NULL if no such ancestor exists. - * - * \note if multiple matching ancestors exist (e.g. multiple levels of ::HWLOC_OBJ_GROUP) - * the lowest one is returned. - * - * \note \p type should not be ::HWLOC_OBJ_PU or ::HWLOC_OBJ_NUMANODE - * since these objects are ancestors of no objects (except Misc or I/O). - * This function rather expects an intermediate object type, - * such as ::HWLOC_OBJ_PACKAGE, ::HWLOC_OBJ_CORE, etc. - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_ancestor_obj_by_type (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_type_t type, hwloc_obj_t obj) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_ancestor_obj_by_type (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_type_t type, hwloc_obj_t obj) -{ - hwloc_obj_t ancestor = obj->parent; - while (ancestor && ancestor->type != type) - ancestor = ancestor->parent; - return ancestor; -} - -/** \brief Returns the common parent object to objects \p obj1 and \p obj2. - * - * \return the common ancestor. - * - * \note This function cannot return \c NULL. - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_common_ancestor_obj (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj1, hwloc_obj_t obj2) __hwloc_attribute_pure; -static __hwloc_inline hwloc_obj_t -hwloc_get_common_ancestor_obj (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj1, hwloc_obj_t obj2) -{ - /* the loop isn't so easy since intermediate ancestors may have - * different depth, causing us to alternate between using obj1->parent - * and obj2->parent. Also, even if at some point we find ancestors of - * of the same depth, their ancestors may have different depth again. - */ - while (obj1 != obj2) { - while (obj1->depth > obj2->depth) - obj1 = obj1->parent; - while (obj2->depth > obj1->depth) - obj2 = obj2->parent; - if (obj1 != obj2 && obj1->depth == obj2->depth) { - obj1 = obj1->parent; - obj2 = obj2->parent; - } - } - return obj1; -} - -/** \brief Returns true if \p obj is inside the subtree beginning with ancestor object \p subtree_root. - * - * \return 1 is the object is in the subtree, 0 otherwise. - * - * \note This function cannot work if \p obj and \p subtree_root objects do - * not have CPU sets (I/O or Misc objects). - */ -static __hwloc_inline int -hwloc_obj_is_in_subtree (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj, hwloc_obj_t subtree_root) __hwloc_attribute_pure; -static __hwloc_inline int -hwloc_obj_is_in_subtree (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj, hwloc_obj_t subtree_root) -{ - return obj->cpuset && subtree_root->cpuset && hwloc_bitmap_isincluded(obj->cpuset, subtree_root->cpuset); -} - -/** \brief Return the next child. - * - * Return the next child among the normal children list, - * then among the memory children list, then among the I/O - * children list, then among the Misc children list. - * - * \return the first child if \p prev is \c NULL. - * \return the next child if \p prev is not \c NULL. - * \return \c NULL when there is no next child. - */ -static __hwloc_inline hwloc_obj_t -hwloc_get_next_child (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t parent, hwloc_obj_t prev) -{ - hwloc_obj_t obj; - int state = 0; - if (prev) { - if (prev->type == HWLOC_OBJ_MISC) - state = 3; - else if (hwloc_obj_type_is_io(prev->type)) - state = 2; - else if (hwloc_obj_type_is_memory(prev->type)) - state = 1; - obj = prev->next_sibling; - } else { - obj = parent->first_child; - } - if (!obj && state == 0) { - obj = parent->memory_first_child; - state = 1; - } - if (!obj && state == 1) { - obj = parent->io_first_child; - state = 2; - } - if (!obj && state == 2) { - obj = parent->misc_first_child; - state = 3; - } - return obj; -} - -/** @} */ - - - /** \defgroup hwlocality_helper_find_cache Looking at Cache Objects * @{ */ @@ -624,19 +578,17 @@ hwloc_get_next_child (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_ * corresponding type such as ::HWLOC_OBJ_L1ICACHE, except that it may * also return a Unified cache when looking for an instruction cache. * - * \return the depth of the unique matching unified cache level is returned - * if \p cachetype is ::HWLOC_OBJ_CACHE_UNIFIED. + * If no cache level matches, ::HWLOC_TYPE_DEPTH_UNKNOWN is returned. * - * \return the depth of either a matching cache level or a unified cache level - * if \p cachetype is ::HWLOC_OBJ_CACHE_DATA or ::HWLOC_OBJ_CACHE_INSTRUCTION. + * If \p cachetype is ::HWLOC_OBJ_CACHE_UNIFIED, the depth of the + * unique matching unified cache level is returned. * - * \return the depth of the matching level - * if \p cachetype is \c -1 but only one level matches. + * If \p cachetype is ::HWLOC_OBJ_CACHE_DATA or ::HWLOC_OBJ_CACHE_INSTRUCTION, + * either a matching cache, or a unified cache is returned. * - * \return ::HWLOC_TYPE_DEPTH_MULTIPLE - * if \p cachetype is \c -1 but multiple levels match. - * - * \return ::HWLOC_TYPE_DEPTH_UNKNOWN if no cache level matches. + * If \p cachetype is \c -1, it is ignored and multiple levels may + * match. The function returns either the depth of a uniquely matching + * level or ::HWLOC_TYPE_DEPTH_MULTIPLE. */ static __hwloc_inline int hwloc_get_cache_type_depth (hwloc_topology_t topology, @@ -670,7 +622,7 @@ hwloc_get_cache_type_depth (hwloc_topology_t topology, /** \brief Get the first data (or unified) cache covering a cpuset \p set * - * \return a covering cache, or \c NULL if no cache matches. + * \return \c NULL if no cache matches. */ static __hwloc_inline hwloc_obj_t hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) __hwloc_attribute_pure; @@ -688,8 +640,7 @@ hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t /** \brief Get the first data (or unified) cache shared between an object and somebody else. * - * \return a shared cache. - * \return \c NULL if no cache matches or if an invalid object is given (e.g. I/O object). + * \return \c NULL if no cache matches or if an invalid object is given. */ static __hwloc_inline hwloc_obj_t hwloc_get_shared_cache_covering_obj (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj) __hwloc_attribute_pure; @@ -733,8 +684,6 @@ hwloc_get_shared_cache_covering_obj (hwloc_topology_t topology __hwloc_attribute * If \p which is larger than the number of PUs in a core there were originally set in \p cpuset, * no PU is kept for that core. * - * \return 0. - * * \note PUs that are not below a Core object are ignored * (for instance if the topology does not contain any Core object). * None of them is removed from \p cpuset. @@ -749,8 +698,6 @@ HWLOC_DECLSPEC int hwloc_bitmap_singlify_per_core(hwloc_topology_t topology, hwl * one may iterate over the bits of the resulting CPU set with * hwloc_bitmap_foreach_begin(), and find the corresponding PUs * with this function. - * - * \return the PU object, or \c NULL if none matches. */ static __hwloc_inline hwloc_obj_t hwloc_get_pu_obj_by_os_index(hwloc_topology_t topology, unsigned os_index) __hwloc_attribute_pure; @@ -772,8 +719,6 @@ hwloc_get_pu_obj_by_os_index(hwloc_topology_t topology, unsigned os_index) * one may iterate over the bits of the resulting nodeset with * hwloc_bitmap_foreach_begin(), and find the corresponding NUMA nodes * with this function. - * - * \return the NUMA node object, or \c NULL if none matches. */ static __hwloc_inline hwloc_obj_t hwloc_get_numanode_obj_by_os_index(hwloc_topology_t topology, unsigned os_index) __hwloc_attribute_pure; @@ -811,8 +756,6 @@ HWLOC_DECLSPEC unsigned hwloc_get_closest_objs (hwloc_topology_t topology, hwloc * For instance, if type1 is PACKAGE, idx1 is 2, type2 is CORE and idx2 * is 3, return the fourth core object below the third package. * - * \return a matching object if any, \c NULL otherwise. - * * \note This function requires these objects to have a CPU set. */ static __hwloc_inline hwloc_obj_t @@ -846,8 +789,6 @@ hwloc_get_obj_below_by_type (hwloc_topology_t topology, * and idxv contains 0, 1 and 2, return the third core object below * the second package below the first NUMA node. * - * \return a matching object if any, \c NULL otherwise. - * * \note This function requires all these objects and the root object * to have a CPU set. */ @@ -944,17 +885,10 @@ enum hwloc_distrib_flags_e { * * \p flags should be 0 or a OR'ed set of ::hwloc_distrib_flags_e. * - * \return 0 on success, -1 on error. - * - * \note On hybrid CPUs (or asymmetric platforms), distribution may be suboptimal - * since the number of cores or PUs inside packages or below caches may vary - * (the top-down recursive partitioning ignores these numbers until reaching their levels). - * Hence it is recommended to distribute only inside a single homogeneous domain. - * For instance on a CPU with energy-efficient E-cores and high-performance P-cores, - * one should distribute separately N tasks on E-cores and M tasks on P-cores - * instead of trying to distribute directly M+N tasks on the entire CPUs. - * * \note This function requires the \p roots objects to have a CPU set. + * + * \note This function replaces the now deprecated hwloc_distribute() + * and hwloc_distributev() functions. */ static __hwloc_inline int hwloc_distrib(hwloc_topology_t topology, @@ -968,7 +902,7 @@ hwloc_distrib(hwloc_topology_t topology, unsigned given, givenweight; hwloc_cpuset_t *cpusetp = set; - if (!n || (flags & ~HWLOC_DISTRIB_FLAG_REVERSE)) { + if (flags & ~HWLOC_DISTRIB_FLAG_REVERSE) { errno = EINVAL; return -1; } @@ -1030,8 +964,6 @@ hwloc_distrib(hwloc_topology_t topology, * * \return the complete CPU set of processors of the system. * - * \note This function cannot return \c NULL. - * * \note The returned cpuset is not newly allocated and should thus not be * changed or freed; hwloc_bitmap_dup() must be used to obtain a local copy. * @@ -1046,8 +978,6 @@ hwloc_topology_get_complete_cpuset(hwloc_topology_t topology) __hwloc_attribute_ * provides topology information. This is equivalent to the cpuset of the * system object. * - * \note This function cannot return \c NULL. - * * \note The returned cpuset is not newly allocated and should thus not be * changed or freed; hwloc_bitmap_dup() must be used to obtain a local copy. * @@ -1060,8 +990,6 @@ hwloc_topology_get_topology_cpuset(hwloc_topology_t topology) __hwloc_attribute_ * * \return the CPU set of allowed processors of the system. * - * \note This function cannot return \c NULL. - * * \note If the topology flag ::HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED was not set, * this is identical to hwloc_topology_get_topology_cpuset(), which means * all PUs are allowed. @@ -1081,8 +1009,6 @@ hwloc_topology_get_allowed_cpuset(hwloc_topology_t topology) __hwloc_attribute_p * * \return the complete node set of memory of the system. * - * \note This function cannot return \c NULL. - * * \note The returned nodeset is not newly allocated and should thus not be * changed or freed; hwloc_bitmap_dup() must be used to obtain a local copy. * @@ -1097,8 +1023,6 @@ hwloc_topology_get_complete_nodeset(hwloc_topology_t topology) __hwloc_attribute * provides topology information. This is equivalent to the nodeset of the * system object. * - * \note This function cannot return \c NULL. - * * \note The returned nodeset is not newly allocated and should thus not be * changed or freed; hwloc_bitmap_dup() must be used to obtain a local copy. * @@ -1111,8 +1035,6 @@ hwloc_topology_get_topology_nodeset(hwloc_topology_t topology) __hwloc_attribute * * \return the node set of allowed memory of the system. * - * \note This function cannot return \c NULL. - * * \note If the topology flag ::HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED was not set, * this is identical to hwloc_topology_get_topology_nodeset(), which means * all NUMA nodes are allowed. @@ -1147,9 +1069,6 @@ hwloc_topology_get_allowed_nodeset(hwloc_topology_t topology) __hwloc_attribute_ * * Hence the entire topology CPU set is converted into the set of all nodes * that have some local CPUs. - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM on internal reallocation failure. */ static __hwloc_inline int hwloc_cpuset_to_nodeset(hwloc_topology_t topology, hwloc_const_cpuset_t _cpuset, hwloc_nodeset_t nodeset) @@ -1174,9 +1093,6 @@ hwloc_cpuset_to_nodeset(hwloc_topology_t topology, hwloc_const_cpuset_t _cpuset, * * Hence the entire topology node set is converted into the set of all CPUs * that have some local NUMA nodes. - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM on internal reallocation failure. */ static __hwloc_inline int hwloc_cpuset_from_nodeset(hwloc_topology_t topology, hwloc_cpuset_t _cpuset, hwloc_const_nodeset_t nodeset) @@ -1209,10 +1125,6 @@ hwloc_cpuset_from_nodeset(hwloc_topology_t topology, hwloc_cpuset_t _cpuset, hwl * because it has non-NULL CPU and node sets * and because its locality is the same as \p ioobj. * - * \return a non-I/O object. - * - * \note This function cannot return \c NULL. - * * \note The resulting object is usually a normal object but it could also * be a memory object (e.g. NUMA node) in future platforms if I/O objects * ever get attached to memory instead of CPUs. @@ -1231,8 +1143,6 @@ hwloc_get_non_io_ancestor_obj(hwloc_topology_t topology __hwloc_attribute_unused /** \brief Get the next PCI device in the system. * * \return the first PCI device if \p prev is \c NULL. - * \return the next PCI device if \p prev is not \c NULL. - * \return \c NULL if there is no next PCI device. */ static __hwloc_inline hwloc_obj_t hwloc_get_next_pcidev(hwloc_topology_t topology, hwloc_obj_t prev) @@ -1242,8 +1152,6 @@ hwloc_get_next_pcidev(hwloc_topology_t topology, hwloc_obj_t prev) /** \brief Find the PCI device object matching the PCI bus id * given domain, bus device and function PCI bus id. - * - * \return a matching PCI device object if any, \c NULL otherwise. */ static __hwloc_inline hwloc_obj_t hwloc_get_pcidev_by_busid(hwloc_topology_t topology, @@ -1262,8 +1170,6 @@ hwloc_get_pcidev_by_busid(hwloc_topology_t topology, /** \brief Find the PCI device object matching the PCI bus id * given as a string xxxx:yy:zz.t or yy:zz.t. - * - * \return a matching PCI device object if any, \c NULL otherwise. */ static __hwloc_inline hwloc_obj_t hwloc_get_pcidev_by_busidstring(hwloc_topology_t topology, const char *busid) @@ -1283,8 +1189,6 @@ hwloc_get_pcidev_by_busidstring(hwloc_topology_t topology, const char *busid) /** \brief Get the next OS device in the system. * * \return the first OS device if \p prev is \c NULL. - * \return the next OS device if \p prev is not \c NULL. - * \return \c NULL if there is no next OS device. */ static __hwloc_inline hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev) @@ -1295,8 +1199,6 @@ hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev) /** \brief Get the next bridge in the system. * * \return the first bridge if \p prev is \c NULL. - * \return the next bridge if \p prev is not \c NULL. - * \return \c NULL if there is no next bridge. */ static __hwloc_inline hwloc_obj_t hwloc_get_next_bridge(hwloc_topology_t topology, hwloc_obj_t prev) @@ -1305,8 +1207,6 @@ hwloc_get_next_bridge(hwloc_topology_t topology, hwloc_obj_t prev) } /* \brief Checks whether a given bridge covers a given PCI bus. - * - * \return 1 if it covers, 0 if not. */ static __hwloc_inline int hwloc_bridge_covers_pcibus(hwloc_obj_t bridge, diff --git a/src/3rdparty/hwloc/include/hwloc/intel-mic.h b/src/3rdparty/hwloc/include/hwloc/intel-mic.h new file mode 100644 index 00000000..c504cd7e --- /dev/null +++ b/src/3rdparty/hwloc/include/hwloc/intel-mic.h @@ -0,0 +1,136 @@ +/* + * Copyright © 2013-2016 Inria. All rights reserved. + * See COPYING in top-level directory. + */ + +/** \file + * \brief Macros to help interaction between hwloc and Intel Xeon Phi (MIC). + * + * Applications that use both hwloc and Intel Xeon Phi (MIC) may want to + * include this file so as to get topology information for MIC devices. + */ + +#ifndef HWLOC_INTEL_MIC_H +#define HWLOC_INTEL_MIC_H + +#include "hwloc.h" +#include "hwloc/autogen/config.h" +#include "hwloc/helper.h" + +#ifdef HWLOC_LINUX_SYS +#include "hwloc/linux.h" + +#include +#include +#endif + +#include +#include + + +#ifdef __cplusplus +extern "C" { +#endif + + +/** \defgroup hwlocality_intel_mic Interoperability with Intel Xeon Phi (MIC) + * + * This interface offers ways to retrieve topology information about + * Intel Xeon Phi (MIC) devices. + * + * @{ + */ + +/** \brief Get the CPU set of logical processors that are physically + * close to MIC device whose index is \p idx. + * + * Return the CPU set describing the locality of the MIC device whose index is \p idx. + * + * Topology \p topology and device index \p idx must match the local machine. + * I/O devices detection is not needed in the topology. + * + * The function only returns the locality of the device. + * If more information about the device is needed, OS objects should + * be used instead, see hwloc_intel_mic_get_device_osdev_by_index(). + * + * This function is currently only implemented in a meaningful way for + * Linux; other systems will simply get a full cpuset. + */ +static __hwloc_inline int +hwloc_intel_mic_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, + int idx __hwloc_attribute_unused, + hwloc_cpuset_t set) +{ +#ifdef HWLOC_LINUX_SYS + /* If we're on Linux, use the sysfs mechanism to get the local cpus */ +#define HWLOC_INTEL_MIC_DEVICE_SYSFS_PATH_MAX 128 + char path[HWLOC_INTEL_MIC_DEVICE_SYSFS_PATH_MAX]; + DIR *sysdir = NULL; + struct dirent *dirent; + unsigned pcibus, pcidev, pcifunc; + + if (!hwloc_topology_is_thissystem(topology)) { + errno = EINVAL; + return -1; + } + + sprintf(path, "/sys/class/mic/mic%d", idx); + sysdir = opendir(path); + if (!sysdir) + return -1; + + while ((dirent = readdir(sysdir)) != NULL) { + if (sscanf(dirent->d_name, "pci_%02x:%02x.%02x", &pcibus, &pcidev, &pcifunc) == 3) { + sprintf(path, "/sys/class/mic/mic%d/pci_%02x:%02x.%02x/local_cpus", idx, pcibus, pcidev, pcifunc); + if (hwloc_linux_read_path_as_cpumask(path, set) < 0 + || hwloc_bitmap_iszero(set)) + hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); + break; + } + } + + closedir(sysdir); +#else + /* Non-Linux systems simply get a full cpuset */ + hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); +#endif + return 0; +} + +/** \brief Get the hwloc OS device object corresponding to the + * MIC device for the given index. + * + * Return the OS device object describing the MIC device whose index is \p idx. + * Return NULL if there is none. + * + * The topology \p topology does not necessarily have to match the current + * machine. For instance the topology may be an XML import of a remote host. + * I/O devices detection must be enabled in the topology. + * + * \note The corresponding PCI device object can be obtained by looking + * at the OS device parent object. + */ +static __hwloc_inline hwloc_obj_t +hwloc_intel_mic_get_device_osdev_by_index(hwloc_topology_t topology, + unsigned idx) +{ + hwloc_obj_t osdev = NULL; + while ((osdev = hwloc_get_next_osdev(topology, osdev)) != NULL) { + if (HWLOC_OBJ_OSDEV_COPROC == osdev->attr->osdev.type + && osdev->name + && !strncmp("mic", osdev->name, 3) + && atoi(osdev->name + 3) == (int) idx) + return osdev; + } + return NULL; +} + +/** @} */ + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + + +#endif /* HWLOC_INTEL_MIC_H */ diff --git a/src/3rdparty/hwloc/include/hwloc/levelzero.h b/src/3rdparty/hwloc/include/hwloc/levelzero.h index c1b43845..4c356fc8 100644 --- a/src/3rdparty/hwloc/include/hwloc/levelzero.h +++ b/src/3rdparty/hwloc/include/hwloc/levelzero.h @@ -1,5 +1,5 @@ /* - * Copyright © 2021-2024 Inria. All rights reserved. + * Copyright © 2021 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -32,8 +32,7 @@ extern "C" { /** \defgroup hwlocality_levelzero Interoperability with the oneAPI Level Zero interface. * * This interface offers ways to retrieve topology information about - * devices managed by the Level Zero API, both for main Core devices (ZE API) - * and the Sysman devices (ZES API). + * devices managed by the Level Zero API. * * @{ */ @@ -45,7 +44,8 @@ extern "C" { * the Level Zero device \p device. * * Topology \p topology and device \p device must match the local machine. - * The Level Zero library must have been initialized with zeInit(). + * The Level Zero must have been initialized with Sysman enabled + * (ZES_ENABLE_SYSMAN=1 in the environment). * I/O devices detection and the Level Zero component are not needed in the * topology. * @@ -55,80 +55,17 @@ extern "C" { * * This function is currently only implemented in a meaningful way for * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. - * - * \note zeDevicePciGetPropertiesExt() must be supported, or the entire machine - * locality will be returned. */ static __hwloc_inline int hwloc_levelzero_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, ze_device_handle_t device, hwloc_cpuset_t set) { -#ifdef HWLOC_LINUX_SYS - /* If we're on Linux, use the sysfs mechanism to get the local cpus */ -#define HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX 128 - char path[HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX]; - ze_pci_ext_properties_t pci; - ze_result_t res; - - if (!hwloc_topology_is_thissystem(topology)) { - errno = EINVAL; - return -1; - } - - pci.stype = ZE_STRUCTURE_TYPE_PCI_EXT_PROPERTIES; - pci.pNext = NULL; - res = zeDevicePciGetPropertiesExt(device, &pci); - if (res != ZE_RESULT_SUCCESS) { - errno = EINVAL; - return -1; - } - - sprintf(path, "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/local_cpus", - pci.address.domain, pci.address.bus, pci.address.device, pci.address.function); - if (hwloc_linux_read_path_as_cpumask(path, set) < 0 - || hwloc_bitmap_iszero(set)) - hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); -#else - /* Non-Linux systems simply get a full cpuset */ - hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); -#endif - return 0; -} - -/** \brief Get the CPU set of logical processors that are physically - * close to the Level Zero Sysman device \p device - * - * Store in \p set the CPU-set describing the locality of - * the Level Zero device \p device. - * - * Topology \p topology and device \p device must match the local machine. - * The Level Zero library must have been initialized with Sysman enabled - * with zesInit(). - * I/O devices detection and the Level Zero component are not needed in the - * topology. - * - * The function only returns the locality of the device. - * If more information about the device is needed, OS objects should - * be used instead, see hwloc_levelzero_get_device_osdev(). - * - * This function is currently only implemented in a meaningful way for - * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. - */ -static __hwloc_inline int -hwloc_levelzero_get_sysman_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, - zes_device_handle_t device, hwloc_cpuset_t set) -{ #ifdef HWLOC_LINUX_SYS /* If we're on Linux, use the sysfs mechanism to get the local cpus */ #define HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX 128 char path[HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX]; zes_pci_properties_t pci; + zes_device_handle_t sdevice = device; ze_result_t res; if (!hwloc_topology_is_thissystem(topology)) { @@ -136,7 +73,7 @@ hwloc_levelzero_get_sysman_device_cpuset(hwloc_topology_t topology __hwloc_attri return -1; } - res = zesDevicePciGetProperties(device, &pci); + res = zesDevicePciGetProperties(sdevice, &pci); if (res != ZE_RESULT_SUCCESS) { errno = EINVAL; return -1; @@ -161,90 +98,17 @@ hwloc_levelzero_get_sysman_device_cpuset(hwloc_topology_t topology __hwloc_attri * \return \c NULL if none could be found. * * Topology \p topology and device \p dv_ind must match the local machine. - * The Level Zero library must have been initialized with zeInit(). * I/O devices detection and the Level Zero component must be enabled in the * topology. If not, the locality of the object may still be found using * hwloc_levelzero_get_device_cpuset(). * - * \note If the input ZE device is actually a subdevice, then its parent - * (root device) is actually translated, i.e. the main hwloc OS device - * is returned instead of one of its children. - * * \note The corresponding hwloc PCI device may be found by looking * at the result parent pointer (unless PCI devices are filtered out). - * - * \note zeDevicePciGetPropertiesExt() must be supported. */ static __hwloc_inline hwloc_obj_t hwloc_levelzero_get_device_osdev(hwloc_topology_t topology, ze_device_handle_t device) { - ze_pci_ext_properties_t pci; - ze_result_t res; - hwloc_obj_t osdev; - - if (!hwloc_topology_is_thissystem(topology)) { - errno = EINVAL; - return NULL; - } - - pci.stype = ZE_STRUCTURE_TYPE_PCI_EXT_PROPERTIES; - pci.pNext = NULL; - res = zeDevicePciGetPropertiesExt(device, &pci); - if (res != ZE_RESULT_SUCCESS) { - errno = EINVAL; - return NULL; - } - - osdev = NULL; - while ((osdev = hwloc_get_next_osdev(topology, osdev)) != NULL) { - hwloc_obj_t pcidev; - - if (strncmp(osdev->name, "ze", 2)) - continue; - - pcidev = osdev; - while (pcidev && pcidev->type != HWLOC_OBJ_PCI_DEVICE) - pcidev = pcidev->parent; - if (!pcidev) - continue; - - if (pcidev - && pcidev->type == HWLOC_OBJ_PCI_DEVICE - && pcidev->attr->pcidev.domain == pci.address.domain - && pcidev->attr->pcidev.bus == pci.address.bus - && pcidev->attr->pcidev.dev == pci.address.device - && pcidev->attr->pcidev.func == pci.address.function) - return osdev; - - /* FIXME: when we'll have serialnumber, try it in case PCI is filtered-out */ - } - - return NULL; -} - -/** \brief Get the hwloc OS device object corresponding to Level Zero Sysman device - * \p device. - * - * \return The hwloc OS device object that describes the given Level Zero device \p device. - * \return \c NULL if none could be found. - * - * Topology \p topology and device \p dv_ind must match the local machine. - * The Level Zero library must have been initialized with Sysman enabled - * with zesInit(). - * I/O devices detection and the Level Zero component must be enabled in the - * topology. If not, the locality of the object may still be found using - * hwloc_levelzero_get_device_cpuset(). - * - * \note If the input ZES device is actually a subdevice, then its parent - * (root device) is actually translated, i.e. the main hwloc OS device - * is returned instead of one of its children. - * - * \note The corresponding hwloc PCI device may be found by looking - * at the result parent pointer (unless PCI devices are filtered out). - */ -static __hwloc_inline hwloc_obj_t -hwloc_levelzero_get_sysman_device_osdev(hwloc_topology_t topology, zes_device_handle_t device) -{ + zes_device_handle_t sdevice = device; zes_pci_properties_t pci; ze_result_t res; hwloc_obj_t osdev; @@ -254,25 +118,20 @@ hwloc_levelzero_get_sysman_device_osdev(hwloc_topology_t topology, zes_device_ha return NULL; } - res = zesDevicePciGetProperties(device, &pci); + res = zesDevicePciGetProperties(sdevice, &pci); if (res != ZE_RESULT_SUCCESS) { + /* L0 was likely initialized without sysman, don't bother */ errno = EINVAL; return NULL; } osdev = NULL; while ((osdev = hwloc_get_next_osdev(topology, osdev)) != NULL) { - hwloc_obj_t pcidev; + hwloc_obj_t pcidev = osdev->parent; if (strncmp(osdev->name, "ze", 2)) continue; - pcidev = osdev; - while (pcidev && pcidev->type != HWLOC_OBJ_PCI_DEVICE) - pcidev = pcidev->parent; - if (!pcidev) - continue; - if (pcidev && pcidev->type == HWLOC_OBJ_PCI_DEVICE && pcidev->attr->pcidev.domain == pci.address.domain diff --git a/src/3rdparty/hwloc/include/hwloc/linux-libnuma.h b/src/3rdparty/hwloc/include/hwloc/linux-libnuma.h index adb05c09..0e2cc19f 100644 --- a/src/3rdparty/hwloc/include/hwloc/linux-libnuma.h +++ b/src/3rdparty/hwloc/include/hwloc/linux-libnuma.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2023 Inria. All rights reserved. + * Copyright © 2009-2017 Inria. All rights reserved. * Copyright © 2009-2010, 2012 Université Bordeaux * See COPYING in top-level directory. */ @@ -50,8 +50,6 @@ extern "C" { * This function may be used before calling set_mempolicy, mbind, migrate_pages * or any other function that takes an array of unsigned long and a maximal * node number as input parameter. - * - * \return 0. */ static __hwloc_inline int hwloc_cpuset_to_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, @@ -86,8 +84,6 @@ hwloc_cpuset_to_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_const_cpus * This function may be used before calling set_mempolicy, mbind, migrate_pages * or any other function that takes an array of unsigned long and a maximal * node number as input parameter. - * - * \return 0. */ static __hwloc_inline int hwloc_nodeset_to_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, @@ -123,9 +119,6 @@ hwloc_nodeset_to_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_const_nod * This function may be used after calling get_mempolicy or any other function * that takes an array of unsigned long as output parameter (and possibly * a maximal node number as input parameter). - * - * \return 0 on success. - * \return -1 on error, for instance if failing an internal reallocation. */ static __hwloc_inline int hwloc_cpuset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_cpuset_t cpuset, @@ -137,8 +130,7 @@ hwloc_cpuset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_cpuset_t while ((node = hwloc_get_next_obj_by_depth(topology, depth, node)) != NULL) if (node->os_index < maxnode && (mask[node->os_index/sizeof(*mask)/8] & (1UL << (node->os_index % (sizeof(*mask)*8))))) - if (hwloc_bitmap_or(cpuset, cpuset, node->cpuset) < 0) - return -1; + hwloc_bitmap_or(cpuset, cpuset, node->cpuset); return 0; } @@ -150,9 +142,6 @@ hwloc_cpuset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_cpuset_t * This function may be used after calling get_mempolicy or any other function * that takes an array of unsigned long as output parameter (and possibly * a maximal node number as input parameter). - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM if some internal reallocation failed. */ static __hwloc_inline int hwloc_nodeset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_nodeset_t nodeset, @@ -164,8 +153,7 @@ hwloc_nodeset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_nodeset while ((node = hwloc_get_next_obj_by_depth(topology, depth, node)) != NULL) if (node->os_index < maxnode && (mask[node->os_index/sizeof(*mask)/8] & (1UL << (node->os_index % (sizeof(*mask)*8))))) - if (hwloc_bitmap_set(nodeset, node->os_index) < 0) - return -1; + hwloc_bitmap_set(nodeset, node->os_index); return 0; } @@ -196,7 +184,7 @@ hwloc_nodeset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_nodeset * This function may be used before calling many numa_ functions * that use a struct bitmask as an input parameter. * - * \return newly allocated struct bitmask, or \c NULL on error. + * \return newly allocated struct bitmask. */ static __hwloc_inline struct bitmask * hwloc_cpuset_to_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_const_cpuset_t cpuset) __hwloc_attribute_malloc; @@ -221,7 +209,7 @@ hwloc_cpuset_to_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_const_cpu * This function may be used before calling many numa_ functions * that use a struct bitmask as an input parameter. * - * \return newly allocated struct bitmask, or \c NULL on error. + * \return newly allocated struct bitmask. */ static __hwloc_inline struct bitmask * hwloc_nodeset_to_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_const_nodeset_t nodeset) __hwloc_attribute_malloc; @@ -243,9 +231,6 @@ hwloc_nodeset_to_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_const_no * * This function may be used after calling many numa_ functions * that use a struct bitmask as an output parameter. - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM if some internal reallocation failed. */ static __hwloc_inline int hwloc_cpuset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_cpuset_t cpuset, @@ -256,8 +241,7 @@ hwloc_cpuset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_cpuset_ hwloc_bitmap_zero(cpuset); while ((node = hwloc_get_next_obj_by_depth(topology, depth, node)) != NULL) if (numa_bitmask_isbitset(bitmask, node->os_index)) - if (hwloc_bitmap_or(cpuset, cpuset, node->cpuset) < 0) - return -1; + hwloc_bitmap_or(cpuset, cpuset, node->cpuset); return 0; } @@ -265,9 +249,6 @@ hwloc_cpuset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_cpuset_ * * This function may be used after calling many numa_ functions * that use a struct bitmask as an output parameter. - * - * \return 0 on success. - * \return -1 with errno set to \c ENOMEM if some internal reallocation failed. */ static __hwloc_inline int hwloc_nodeset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_nodeset_t nodeset, @@ -278,8 +259,7 @@ hwloc_nodeset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_nodese hwloc_bitmap_zero(nodeset); while ((node = hwloc_get_next_obj_by_depth(topology, depth, node)) != NULL) if (numa_bitmask_isbitset(bitmask, node->os_index)) - if (hwloc_bitmap_set(nodeset, node->os_index) < 0) - return -1; + hwloc_bitmap_set(nodeset, node->os_index); return 0; } diff --git a/src/3rdparty/hwloc/include/hwloc/linux.h b/src/3rdparty/hwloc/include/hwloc/linux.h index 3f69be74..ecc86be3 100644 --- a/src/3rdparty/hwloc/include/hwloc/linux.h +++ b/src/3rdparty/hwloc/include/hwloc/linux.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2023 Inria. All rights reserved. + * Copyright © 2009-2016 Inria. All rights reserved. * Copyright © 2009-2011 Université Bordeaux * See COPYING in top-level directory. */ @@ -38,35 +38,22 @@ extern "C" { * The behavior is exactly the same as the Linux sched_setaffinity system call, * but uses a hwloc cpuset. * - * \return 0 on success, -1 on error. - * * \note This is equivalent to calling hwloc_set_proc_cpubind() with * HWLOC_CPUBIND_THREAD as flags. */ HWLOC_DECLSPEC int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set); /** \brief Get the current binding of thread \p tid - * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the list of PUs which the thread - * was last bound to. * * The behavior is exactly the same as the Linux sched_getaffinity system call, * but uses a hwloc cpuset. * - * \return 0 on success, -1 on error. - * * \note This is equivalent to calling hwloc_get_proc_cpubind() with * ::HWLOC_CPUBIND_THREAD as flags. */ HWLOC_DECLSPEC int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set); /** \brief Get the last physical CPU where thread \p tid ran. - * - * The CPU-set \p set (previously allocated by the caller) - * is filled with the PU which the thread last ran on. - * - * \return 0 on success, -1 on error. * * \note This is equivalent to calling hwloc_get_proc_last_cpu_location() with * ::HWLOC_CPUBIND_THREAD as flags. @@ -78,8 +65,6 @@ HWLOC_DECLSPEC int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topolo * Might be used when reading CPU set from sysfs attributes such as topology * and caches for processors, or local_cpus for devices. * - * \return 0 on success, -1 on error. - * * \note This function ignores the HWLOC_FSROOT environment variable. */ HWLOC_DECLSPEC int hwloc_linux_read_path_as_cpumask(const char *path, hwloc_bitmap_t set); diff --git a/src/3rdparty/hwloc/include/hwloc/memattrs.h b/src/3rdparty/hwloc/include/hwloc/memattrs.h index ad9278cc..2494abb0 100644 --- a/src/3rdparty/hwloc/include/hwloc/memattrs.h +++ b/src/3rdparty/hwloc/include/hwloc/memattrs.h @@ -1,5 +1,5 @@ /* - * Copyright © 2019-2025 Inria. All rights reserved. + * Copyright © 2019-2020 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -54,17 +54,6 @@ extern "C" { * Attribute values for these nodes, if any, may then be obtained with * hwloc_memattr_get_value() and manually compared with the desired criteria. * - * Memory attributes are also used internally to build Memory Tiers which provide - * an easy way to distinguish NUMA nodes of different kinds, as explained - * in \ref heteromem. - * - * Beside tiers, hwloc defines a set of "default" nodes where normal memory - * allocations should be made from (see hwloc_topology_get_default_nodeset()). - * This is also useful for dividing the machine into a set of non-overlapping - * NUMA domains, for instance for binding tasks per domain. - * - * \sa An example is available in doc/examples/memory-attributes.c in the source tree. - * * \note The API also supports specific objects as initiator, * but it is currently not used internally by hwloc. * Users may for instance use it to provide custom performance @@ -74,26 +63,21 @@ extern "C" { * @{ */ -/** \brief Predefined memory attribute IDs. - * See ::hwloc_memattr_id_t for the generic definition of IDs - * for predefined or custom attributes. - */ +/** \brief Memory node attributes. */ enum hwloc_memattr_id_e { - /** \brief - * The \"Capacity\" is returned in bytes (local_memory attribute in objects). + /** \brief "Capacity". + * The capacity is returned in bytes + * (local_memory attribute in objects). * * Best capacity nodes are nodes with higher capacity. * * No initiator is involved when looking at this attribute. * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST. - * - * Capacity values may not be modified using hwloc_memattr_set_value(). - * \hideinitializer */ HWLOC_MEMATTR_ID_CAPACITY = 0, - /** \brief - * The \"Locality\" is returned as the number of PUs in that locality + /** \brief "Locality". + * The locality is returned as the number of PUs in that locality * (e.g. the weight of its cpuset). * * Best locality nodes are nodes with smaller locality @@ -103,108 +87,34 @@ enum hwloc_memattr_id_e { * * No initiator is involved when looking at this attribute. * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST. - - * Locality values may not be modified using hwloc_memattr_set_value(). - * \hideinitializer */ HWLOC_MEMATTR_ID_LOCALITY = 1, - /** \brief - * The \"Bandwidth\" is returned in MiB/s, as seen from the given initiator location. - * + /** \brief "Bandwidth". + * The bandwidth is returned in MiB/s, as seen from the given initiator location. * Best bandwidth nodes are nodes with higher bandwidth. - * * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST * and ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR. - * - * This is the average bandwidth for read and write accesses. If the platform - * provides individual read and write bandwidths but no explicit average value, - * hwloc computes and returns the average. - * \hideinitializer */ HWLOC_MEMATTR_ID_BANDWIDTH = 2, - /** \brief - * The \"ReadBandwidth\" is returned in MiB/s, as seen from the given initiator location. - * - * Best bandwidth nodes are nodes with higher bandwidth. - * - * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST - * and ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR. - * \hideinitializer - */ - HWLOC_MEMATTR_ID_READ_BANDWIDTH = 4, - - /** \brief - * The \"WriteBandwidth\" is returned in MiB/s, as seen from the given initiator location. - * - * Best bandwidth nodes are nodes with higher bandwidth. - * - * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST - * and ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR. - * \hideinitializer - */ - HWLOC_MEMATTR_ID_WRITE_BANDWIDTH = 5, - - /** \brief - * The \"Latency\" is returned as nanoseconds, as seen from the given initiator location. - * + /** \brief "Latency". + * The latency is returned as nanoseconds, as seen from the given initiator location. * Best latency nodes are nodes with smaller latency. - * * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_LOWER_FIRST * and ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR. - * - * This is the average latency for read and write accesses. If the platform - * provides individual read and write latencies but no explicit average value, - * hwloc computes and returns the average. - * \hideinitializer */ - HWLOC_MEMATTR_ID_LATENCY = 3, + HWLOC_MEMATTR_ID_LATENCY = 3 - /** \brief - * The \"ReadLatency\" is returned as nanoseconds, as seen from the given initiator location. - * - * Best latency nodes are nodes with smaller latency. - * - * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_LOWER_FIRST - * and ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR. - * \hideinitializer - */ - HWLOC_MEMATTR_ID_READ_LATENCY = 6, - - /** \brief - * The \"WriteLatency\" is returned as nanoseconds, as seen from the given initiator location. - * - * Best latency nodes are nodes with smaller latency. - * - * The corresponding attribute flags are ::HWLOC_MEMATTR_FLAG_LOWER_FIRST - * and ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR. - * \hideinitializer - */ - HWLOC_MEMATTR_ID_WRITE_LATENCY = 7, - - /* TODO persistence? */ - - HWLOC_MEMATTR_ID_MAX /**< \private - * Sentinel value for predefined attributes. - * Dynamically registered custom attributes start here. - */ + /* TODO read vs write, persistence? */ }; /** \brief A memory attribute identifier. - * - * hwloc predefines some commonly-used attributes in ::hwloc_memattr_id_e. - * One may then dynamically register custom ones with hwloc_memattr_register(), - * they will be assigned IDs immediately after the predefined ones. - * See \ref hwlocality_memattrs_manage for more information about - * existing attribute IDs. + * May be either one of ::hwloc_memattr_id_e or a new id returned by hwloc_memattr_register(). */ typedef unsigned hwloc_memattr_id_t; /** \brief Return the identifier of the memory attribute with the given name. - * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if no such attribute exists. */ HWLOC_DECLSPEC int hwloc_memattr_get_by_name(hwloc_topology_t topology, @@ -250,16 +160,6 @@ enum hwloc_local_numanode_flag_e { */ HWLOC_LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY = (1UL<<1), - /** \breif Select NUMA nodes whose locality intersects the given cpuset. - * This includes larger and smaller localities as well as localities - * that are partially included. - * For instance, if the locality is one core of both packages, a NUMA node - * local to one package is neither larger nor smaller than this locality, - * but it intersects it. - * \hideinitializer - */ - HWLOC_LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY = (1UL<<3), - /** \brief Select all NUMA nodes in the topology. * The initiator \p initiator is ignored. * \hideinitializer @@ -284,8 +184,6 @@ enum hwloc_local_numanode_flag_e { * or the number of nodes that would have been stored if there were * enough room. * - * \return 0 on success or -1 on error. - * * \note Some of these NUMA nodes may not have any memory attribute * values and hence not be reported as actual targets in other functions. * @@ -305,57 +203,7 @@ hwloc_get_local_numanode_objs(hwloc_topology_t topology, hwloc_obj_t *nodes, unsigned long flags); -/** \brief Return the set of default NUMA nodes - * - * In machines with heterogeneous memory, some NUMA nodes are considered - * the default ones, i.e. where basic allocations should be made from. - * These are usually DRAM nodes. - * - * Other nodes may be reserved for specific use (I/O device memory, e.g. GPU memory), - * small but high performance (HBM), large but slow memory (NVM), etc. - * Buffers should usually not be allocated from there unless explicitly required. - * - * This function fills \p nodeset with the bits of NUMA nodes considered default. - * - * It is guaranteed that these nodes have non-intersecting CPU sets, - * i.e. cores may not have multiple local NUMA nodes anymore. - * Hence this may be used to iterate over the platform divided into separate - * NUMA localities, for instance for binding one task per NUMA domain. - * - * Any core that had some local NUMA node(s) in the initial topology should - * still have one in the default nodeset. Corner cases where this would be - * wrong consist in asymmetric platforms with missing DRAM nodes, or topologies - * that were already restricted to less NUMA nodes. - * - * The returned nodeset may be passed to hwloc_topology_restrict() with - * ::HWLOC_RESTRICT_FLAG_BYNODESET to remove all non-default nodes from - * the topology. The resulting topology will be easier to use when iterating - * over (now homogeneous) NUMA nodes. - * - * The heuristics for finding default nodes relies on memory tiers and subtypes - * (see \ref heteromem) as well as the assumption that hardware vendors list - * default nodes first in hardware tables. - * - * \p flags must be \c 0 for now. - * - * \return 0 on success. - * \return -1 on error. - * - * \note The returned nodeset usually contains all nodes from a single memory - * tier, likely the DRAM one. - * - * \note The returned nodeset is included in the list of available nodes - * returned by hwloc_topology_get_topology_nodeset(). It is strictly smaller - * if the machine has heterogeneous memory. - * - * \note The heuristics may return a suboptimal set of nodes if hwloc could - * not guess memory types and/or if some default nodes were removed earlier - * from the topology (e.g. with hwloc_topology_restrict()). - */ -HWLOC_DECLSPEC int -hwloc_topology_get_default_nodeset(hwloc_topology_t topology, - hwloc_nodeset_t nodeset, - unsigned long flags); + /** \brief Return an attribute value for a specific target NUMA node. * @@ -363,16 +211,8 @@ hwloc_topology_get_default_nodeset(hwloc_topology_t topology, * (it does not have the flag ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR), * location \p initiator is ignored and may be \c NULL. * - * \p target_node cannot be \c NULL. If \p attribute is ::HWLOC_MEMATTR_ID_CAPACITY, - * \p target_node must be a NUMA node. If it is ::HWLOC_MEMATTR_ID_LOCALITY, - * \p target_node must have a CPU set. - * * \p flags must be \c 0 for now. * - * \return 0 on success. - * \return -1 on error, for instance with errno set to \c EINVAL if flags - * are invalid or no such attribute exists. - * * \note The initiator \p initiator should be of type ::HWLOC_LOCATION_TYPE_CPUSET * when refering to accesses performed by CPU cores. * ::HWLOC_LOCATION_TYPE_OBJECT is currently unused internally by hwloc, @@ -404,10 +244,7 @@ hwloc_memattr_get_value(hwloc_topology_t topology, * * \p flags must be \c 0 for now. * - * \return 0 on success. - * \return -1 with errno set to \c ENOENT if there are no matching targets. - * \return -1 with errno set to \c EINVAL if flags are invalid, - * or no such attribute exists. + * If there are no matching targets, \c -1 is returned with \p errno set to \c ENOENT; * * \note The initiator \p initiator should be of type ::HWLOC_LOCATION_TYPE_CPUSET * when refering to accesses performed by CPU cores. @@ -423,6 +260,10 @@ hwloc_memattr_get_best_target(hwloc_topology_t topology, hwloc_obj_t *best_target, hwloc_uint64_t *value); /** \brief Return the best initiator for the given attribute and target NUMA node. + * + * If the attribute does not relate to a specific initiator + * (it does not have the flag ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR), + * \c -1 is returned and \p errno is set to \c EINVAL. * * If \p value is non \c NULL, the corresponding value is returned there. * @@ -436,22 +277,96 @@ hwloc_memattr_get_best_target(hwloc_topology_t topology, * The returned initiator should not be modified or freed, * it belongs to the topology. * - * \p target_node cannot be \c NULL. - * * \p flags must be \c 0 for now. * - * \return 0 on success. - * \return -1 with errno set to \c ENOENT if there are no matching initiators. - * \return -1 with errno set to \c EINVAL if the attribute does not relate to a specific initiator - * (it does not have the flag ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR). + * If there are no matching initiators, \c -1 is returned with \p errno set to \c ENOENT; */ HWLOC_DECLSPEC int hwloc_memattr_get_best_initiator(hwloc_topology_t topology, hwloc_memattr_id_t attribute, - hwloc_obj_t target_node, + hwloc_obj_t target, unsigned long flags, struct hwloc_location *best_initiator, hwloc_uint64_t *value); +/** @} */ + + +/** \defgroup hwlocality_memattrs_manage Managing memory attributes + * @{ + */ + +/** \brief Return the name of a memory attribute. + */ +HWLOC_DECLSPEC int +hwloc_memattr_get_name(hwloc_topology_t topology, + hwloc_memattr_id_t attribute, + const char **name); + +/** \brief Return the flags of the given attribute. + * + * Flags are a OR'ed set of ::hwloc_memattr_flag_e. + */ +HWLOC_DECLSPEC int +hwloc_memattr_get_flags(hwloc_topology_t topology, + hwloc_memattr_id_t attribute, + unsigned long *flags); + +/** \brief Memory attribute flags. + * Given to hwloc_memattr_register() and returned by hwloc_memattr_get_flags(). + */ +enum hwloc_memattr_flag_e { + /** \brief The best nodes for this memory attribute are those with the higher values. + * For instance Bandwidth. + */ + HWLOC_MEMATTR_FLAG_HIGHER_FIRST = (1UL<<0), + /** \brief The best nodes for this memory attribute are those with the lower values. + * For instance Latency. + */ + HWLOC_MEMATTR_FLAG_LOWER_FIRST = (1UL<<1), + /** \brief The value returned for this memory attribute depends on the given initiator. + * For instance Bandwidth and Latency, but not Capacity. + */ + HWLOC_MEMATTR_FLAG_NEED_INITIATOR = (1UL<<2) +}; + +/** \brief Register a new memory attribute. + * + * Add a specific memory attribute that is not defined in ::hwloc_memattr_id_e. + * Flags are a OR'ed set of ::hwloc_memattr_flag_e. It must contain at least + * one of ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST or ::HWLOC_MEMATTR_FLAG_LOWER_FIRST. + */ +HWLOC_DECLSPEC int +hwloc_memattr_register(hwloc_topology_t topology, + const char *name, + unsigned long flags, + hwloc_memattr_id_t *id); + +/** \brief Set an attribute value for a specific target NUMA node. + * + * If the attribute does not relate to a specific initiator + * (it does not have the flag ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR), + * location \p initiator is ignored and may be \c NULL. + * + * The initiator will be copied into the topology, + * the caller should free anything allocated to store the initiator, + * for instance the cpuset. + * + * \p flags must be \c 0 for now. + * + * \note The initiator \p initiator should be of type ::HWLOC_LOCATION_TYPE_CPUSET + * when refering to accesses performed by CPU cores. + * ::HWLOC_LOCATION_TYPE_OBJECT is currently unused internally by hwloc, + * but users may for instance use it to provide custom information about + * host memory accesses performed by GPUs. + */ +HWLOC_DECLSPEC int +hwloc_memattr_set_value(hwloc_topology_t topology, + hwloc_memattr_id_t attribute, + hwloc_obj_t target_node, + struct hwloc_location *initiator, + unsigned long flags, + hwloc_uint64_t value); + /** \brief Return the target NUMA nodes that have some values for a given attribute. * * Return targets for the given attribute in the \p targets array @@ -482,10 +397,8 @@ hwloc_memattr_get_best_initiator(hwloc_topology_t topology, * NUMA nodes with hwloc_get_local_numanode_objs() and then look at their attribute * values. * - * \return 0 on success or -1 on error. - * * \note The initiator \p initiator should be of type ::HWLOC_LOCATION_TYPE_CPUSET - * when referring to accesses performed by CPU cores. + * when refering to accesses performed by CPU cores. * ::HWLOC_LOCATION_TYPE_OBJECT is currently unused internally by hwloc, * but users may for instance use it to provide custom information about * host memory accesses performed by GPUs. @@ -495,7 +408,7 @@ hwloc_memattr_get_targets(hwloc_topology_t topology, hwloc_memattr_id_t attribute, struct hwloc_location *initiator, unsigned long flags, - unsigned *nr, hwloc_obj_t *targets, hwloc_uint64_t *values); + unsigned *nrp, hwloc_obj_t *targets, hwloc_uint64_t *values); /** \brief Return the initiators that have values for a given attribute for a specific target NUMA node. * @@ -515,16 +428,12 @@ hwloc_memattr_get_targets(hwloc_topology_t topology, * The returned initiators should not be modified or freed, * they belong to the topology. * - * \p target_node cannot be \c NULL. - * * \p flags must be \c 0 for now. * * If the attribute does not relate to a specific initiator * (it does not have the flag ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR), * no initiator is returned. * - * \return 0 on success or -1 on error. - * * \note This function is meant for tools and debugging (listing internal information) * rather than for application queries. Applications should rather select useful * NUMA nodes with hwloc_get_local_numanode_objs() and then look at their attribute @@ -536,131 +445,6 @@ hwloc_memattr_get_initiators(hwloc_topology_t topology, hwloc_obj_t target_node, unsigned long flags, unsigned *nr, struct hwloc_location *initiators, hwloc_uint64_t *values); - -/** @} */ - - -/** \defgroup hwlocality_memattrs_manage Managing memory attributes - * - * Memory attribues are identified by an ID (::hwloc_memattr_id_t) - * and a name. hwloc_memattr_get_name() and hwloc_memattr_get_by_name() - * convert between them (or return error if the attribute does not exist). - * - * The set of valid ::hwloc_memattr_id_t is a contigous set starting at \c 0. - * It first contains predefined attributes, as listed - * in ::hwloc_memattr_id_e (from \c 0 to \c HWLOC_MEMATTR_ID_MAX-1). - * Then custom attributes may be dynamically registered with - * hwloc_memattr_register(). They will get the following IDs - * (\c HWLOC_MEMATTR_ID_MAX for the first one, etc.). - * - * To iterate over all valid attributes - * (either predefined or dynamically registered custom ones), - * one may iterate over IDs starting from \c 0 until hwloc_memattr_get_name() - * or hwloc_memattr_get_flags() returns an error. - * - * The values for an existing attribute or for custom dynamically registered ones - * may be set or modified with hwloc_memattr_set_value(). - * - * @{ - */ - -/** \brief Return the name of a memory attribute. - * - * The output pointer \p name cannot be \c NULL. - * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if the attribute does not exist. - */ -HWLOC_DECLSPEC int -hwloc_memattr_get_name(hwloc_topology_t topology, - hwloc_memattr_id_t attribute, - const char **name); - -/** \brief Return the flags of the given attribute. - * - * Flags are a OR'ed set of ::hwloc_memattr_flag_e. - * - * The output pointer \p flags cannot be \c NULL. - * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if the attribute does not exist. - */ -HWLOC_DECLSPEC int -hwloc_memattr_get_flags(hwloc_topology_t topology, - hwloc_memattr_id_t attribute, - unsigned long *flags); - -/** \brief Memory attribute flags. - * Given to hwloc_memattr_register() and returned by hwloc_memattr_get_flags(). - */ -enum hwloc_memattr_flag_e { - /** \brief The best nodes for this memory attribute are those with the higher values. - * For instance Bandwidth. - */ - HWLOC_MEMATTR_FLAG_HIGHER_FIRST = (1UL<<0), - /** \brief The best nodes for this memory attribute are those with the lower values. - * For instance Latency. - */ - HWLOC_MEMATTR_FLAG_LOWER_FIRST = (1UL<<1), - /** \brief The value returned for this memory attribute depends on the given initiator. - * For instance Bandwidth and Latency, but not Capacity. - */ - HWLOC_MEMATTR_FLAG_NEED_INITIATOR = (1UL<<2) -}; - -/** \brief Register a new memory attribute. - * - * Add a new custom memory attribute. - * Flags are a OR'ed set of ::hwloc_memattr_flag_e. It must contain one of - * ::HWLOC_MEMATTR_FLAG_HIGHER_FIRST or ::HWLOC_MEMATTR_FLAG_LOWER_FIRST but not both. - * - * The new attribute \p id is immediately after the last existing attribute ID - * (which is either the ID of the last registered attribute if any, - * or the ID of the last predefined attribute in ::hwloc_memattr_id_e). - * - * \return 0 on success. - * \return -1 with errno set to \c EINVAL if an invalid set of flags is given. - * \return -1 with errno set to \c EBUSY if another attribute already uses this name. - */ -HWLOC_DECLSPEC int -hwloc_memattr_register(hwloc_topology_t topology, - const char *name, - unsigned long flags, - hwloc_memattr_id_t *id); - -/** \brief Set an attribute value for a specific target NUMA node. - * - * If the attribute does not relate to a specific initiator - * (it does not have the flag ::HWLOC_MEMATTR_FLAG_NEED_INITIATOR), - * location \p initiator is ignored and may be \c NULL. - * - * The initiator will be copied into the topology, - * the caller should free anything allocated to store the initiator, - * for instance the cpuset. - * - * \p target_node cannot be \c NULL. - * - * \p attribute cannot be ::HWLOC_MEMATTR_FLAG_ID_CAPACITY or - * ::HWLOC_MEMATTR_FLAG_ID_LOCALITY. - * - * \p flags must be \c 0 for now. - * - * \note The initiator \p initiator should be of type ::HWLOC_LOCATION_TYPE_CPUSET - * when referring to accesses performed by CPU cores. - * ::HWLOC_LOCATION_TYPE_OBJECT is currently unused internally by hwloc, - * but users may for instance use it to provide custom information about - * host memory accesses performed by GPUs. - * - * \return 0 on success or -1 on error. - */ -HWLOC_DECLSPEC int -hwloc_memattr_set_value(hwloc_topology_t topology, - hwloc_memattr_id_t attribute, - hwloc_obj_t target_node, - struct hwloc_location *initiator, - unsigned long flags, - hwloc_uint64_t value); - /** @} */ #ifdef __cplusplus diff --git a/src/3rdparty/hwloc/include/hwloc/nvml.h b/src/3rdparty/hwloc/include/hwloc/nvml.h index 558a97d0..57f36a85 100644 --- a/src/3rdparty/hwloc/include/hwloc/nvml.h +++ b/src/3rdparty/hwloc/include/hwloc/nvml.h @@ -1,5 +1,5 @@ /* - * Copyright © 2012-2023 Inria. All rights reserved. + * Copyright © 2012-2021 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -51,9 +51,6 @@ extern "C" { * * This function is currently only implemented in a meaningful way for * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_nvml_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, diff --git a/src/3rdparty/hwloc/include/hwloc/opencl.h b/src/3rdparty/hwloc/include/hwloc/opencl.h index 5e53b2aa..395b32e3 100644 --- a/src/3rdparty/hwloc/include/hwloc/opencl.h +++ b/src/3rdparty/hwloc/include/hwloc/opencl.h @@ -1,5 +1,5 @@ /* - * Copyright © 2012-2023 Inria. All rights reserved. + * Copyright © 2012-2021 Inria. All rights reserved. * Copyright © 2013, 2018 Université Bordeaux. All right reserved. * See COPYING in top-level directory. */ @@ -41,15 +41,6 @@ extern "C" { */ /* Copyright (c) 2008-2018 The Khronos Group Inc. */ -/* needs "cl_khr_pci_bus_info" device extension, but not strictly required for clGetDeviceInfo() */ -typedef struct { - cl_uint pci_domain; - cl_uint pci_bus; - cl_uint pci_device; - cl_uint pci_function; -} hwloc_cl_device_pci_bus_info_khr; -#define HWLOC_CL_DEVICE_PCI_BUS_INFO_KHR 0x410F - /* needs "cl_amd_device_attribute_query" device extension, but not strictly required for clGetDeviceInfo() */ #define HWLOC_CL_DEVICE_TOPOLOGY_AMD 0x4037 typedef union { @@ -78,28 +69,15 @@ typedef union { /** \brief Return the domain, bus and device IDs of the OpenCL device \p device. * * Device \p device must match the local machine. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_opencl_get_device_pci_busid(cl_device_id device, unsigned *domain, unsigned *bus, unsigned *dev, unsigned *func) { hwloc_cl_device_topology_amd amdtopo; - hwloc_cl_device_pci_bus_info_khr khrbusinfo; cl_uint nvbus, nvslot, nvdomain; cl_int clret; - clret = clGetDeviceInfo(device, HWLOC_CL_DEVICE_PCI_BUS_INFO_KHR, sizeof(khrbusinfo), &khrbusinfo, NULL); - if (CL_SUCCESS == clret) { - *domain = (unsigned) khrbusinfo.pci_domain; - *bus = (unsigned) khrbusinfo.pci_bus; - *dev = (unsigned) khrbusinfo.pci_device; - *func = (unsigned) khrbusinfo.pci_function; - return 0; - } - clret = clGetDeviceInfo(device, HWLOC_CL_DEVICE_TOPOLOGY_AMD, sizeof(amdtopo), &amdtopo, NULL); if (CL_SUCCESS == clret && HWLOC_CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD == amdtopo.raw.type) { @@ -148,9 +126,6 @@ hwloc_opencl_get_device_pci_busid(cl_device_id device, * This function is currently only implemented in a meaningful way for * Linux with the AMD or NVIDIA OpenCL implementation; other systems will simply * get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if the device could not be found. */ static __hwloc_inline int hwloc_opencl_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, diff --git a/src/3rdparty/hwloc/include/hwloc/openfabrics-verbs.h b/src/3rdparty/hwloc/include/hwloc/openfabrics-verbs.h index 875b12a9..7cee137e 100644 --- a/src/3rdparty/hwloc/include/hwloc/openfabrics-verbs.h +++ b/src/3rdparty/hwloc/include/hwloc/openfabrics-verbs.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2023 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2010 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -57,9 +57,6 @@ extern "C" { * * This function is currently only implemented in a meaningful way for * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_ibv_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, diff --git a/src/3rdparty/hwloc/include/hwloc/plugins.h b/src/3rdparty/hwloc/include/hwloc/plugins.h index 96f95f1f..6e4f1291 100644 --- a/src/3rdparty/hwloc/include/hwloc/plugins.h +++ b/src/3rdparty/hwloc/include/hwloc/plugins.h @@ -1,5 +1,5 @@ /* - * Copyright © 2013-2024 Inria. All rights reserved. + * Copyright © 2013-2021 Inria. All rights reserved. * Copyright © 2016 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ @@ -26,7 +26,7 @@ struct hwloc_backend; -/** \defgroup hwlocality_disc_components Components and Plugins: Discovery components and backends +/** \defgroup hwlocality_disc_components Components and Plugins: Discovery components * * \note These structures and functions may change when ::HWLOC_COMPONENT_ABI is modified. * @@ -90,6 +90,18 @@ struct hwloc_disc_component { struct hwloc_disc_component * next; }; +/** @} */ + + + + +/** \defgroup hwlocality_disc_backends Components and Plugins: Discovery backends + * + * \note These structures and functions may change when ::HWLOC_COMPONENT_ABI is modified. + * + * @{ + */ + /** \brief Discovery phase */ typedef enum hwloc_disc_phase_e { /** \brief xml or synthetic, platform-specific components such as bgq. @@ -152,7 +164,7 @@ struct hwloc_disc_status { */ unsigned excluded_phases; - /** \brief OR'ed set of ::hwloc_disc_status_flag_e */ + /** \brief OR'ed set of hwloc_disc_status_flag_e */ unsigned long flags; }; @@ -301,64 +313,6 @@ struct hwloc_component { void * data; }; -/** \brief Make sure that plugins can lookup core symbols. - * - * This is a sanity check to avoid lazy-lookup failures when libhwloc - * is loaded within a plugin, and later tries to load its own plugins. - * This may fail (and abort the program) if libhwloc symbols are in a - * private namespace. - * - * \return 0 on success. - * \return -1 if the plugin cannot be successfully loaded. The caller - * plugin init() callback should return a negative error code as well. - * - * Plugins should call this function in their init() callback to avoid - * later crashes if lazy symbol resolution is used by the upper layer that - * loaded hwloc (e.g. OpenCL implementations using dlopen with RTLD_LAZY). - * - * \note The build system must define HWLOC_INSIDE_PLUGIN if and only if - * building the caller as a plugin. - * - * \note This function should remain inline so plugins can call it even - * when they cannot find libhwloc symbols. - */ -static __hwloc_inline int -hwloc_plugin_check_namespace(const char *pluginname __hwloc_attribute_unused, const char *symbol __hwloc_attribute_unused) -{ -#ifdef HWLOC_INSIDE_PLUGIN - void *sym; -#ifdef HWLOC_HAVE_LTDL - lt_dlhandle handle = lt_dlopen(NULL); -#else - void *handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL); -#endif - if (!handle) - /* cannot check, assume things will work */ - return 0; -#ifdef HWLOC_HAVE_LTDL - sym = lt_dlsym(handle, symbol); - lt_dlclose(handle); -#else - sym = dlsym(handle, symbol); - dlclose(handle); -#endif - if (!sym) { - static int verboseenv_checked = 0; - static int verboseenv_value = 0; - if (!verboseenv_checked) { - const char *verboseenv = getenv("HWLOC_PLUGINS_VERBOSE"); - verboseenv_value = verboseenv ? atoi(verboseenv) : 0; - verboseenv_checked = 1; - } - if (verboseenv_value) - fprintf(stderr, "Plugin `%s' disabling itself because it cannot find the `%s' core symbol.\n", - pluginname, symbol); - return -1; - } -#endif /* HWLOC_INSIDE_PLUGIN */ - return 0; -} - /** @} */ @@ -384,15 +338,9 @@ hwloc_plugin_check_namespace(const char *pluginname __hwloc_attribute_unused, co * This function return 1 by default (show critical only), * 0 in lstopo (show all), * or anything set in HWLOC_HIDE_ERRORS in the environment. - * - * Use macros HWLOC_SHOW_CRITICAL_ERRORS() and HWLOC_SHOW_ALL_ERRORS() - * for clarity. */ HWLOC_DECLSPEC int hwloc_hide_errors(void); -#define HWLOC_SHOW_CRITICAL_ERRORS() (hwloc_hide_errors() < 2) -#define HWLOC_SHOW_ALL_ERRORS() (hwloc_hide_errors() == 0) - /** \brief Add an object to the topology. * * Insert new object \p obj in the topology starting under existing object \p root @@ -468,6 +416,64 @@ HWLOC_DECLSPEC int hwloc_obj_add_children_sets(hwloc_obj_t obj); */ HWLOC_DECLSPEC int hwloc_topology_reconnect(hwloc_topology_t topology, unsigned long flags __hwloc_attribute_unused); +/** \brief Make sure that plugins can lookup core symbols. + * + * This is a sanity check to avoid lazy-lookup failures when libhwloc + * is loaded within a plugin, and later tries to load its own plugins. + * This may fail (and abort the program) if libhwloc symbols are in a + * private namespace. + * + * \return 0 on success. + * \return -1 if the plugin cannot be successfully loaded. The caller + * plugin init() callback should return a negative error code as well. + * + * Plugins should call this function in their init() callback to avoid + * later crashes if lazy symbol resolution is used by the upper layer that + * loaded hwloc (e.g. OpenCL implementations using dlopen with RTLD_LAZY). + * + * \note The build system must define HWLOC_INSIDE_PLUGIN if and only if + * building the caller as a plugin. + * + * \note This function should remain inline so plugins can call it even + * when they cannot find libhwloc symbols. + */ +static __hwloc_inline int +hwloc_plugin_check_namespace(const char *pluginname __hwloc_attribute_unused, const char *symbol __hwloc_attribute_unused) +{ +#ifdef HWLOC_INSIDE_PLUGIN + void *sym; +#ifdef HWLOC_HAVE_LTDL + lt_dlhandle handle = lt_dlopen(NULL); +#else + void *handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL); +#endif + if (!handle) + /* cannot check, assume things will work */ + return 0; +#ifdef HWLOC_HAVE_LTDL + sym = lt_dlsym(handle, symbol); + lt_dlclose(handle); +#else + sym = dlsym(handle, symbol); + dlclose(handle); +#endif + if (!sym) { + static int verboseenv_checked = 0; + static int verboseenv_value = 0; + if (!verboseenv_checked) { + const char *verboseenv = getenv("HWLOC_PLUGINS_VERBOSE"); + verboseenv_value = verboseenv ? atoi(verboseenv) : 0; + verboseenv_checked = 1; + } + if (verboseenv_value) + fprintf(stderr, "Plugin `%s' disabling itself because it cannot find the `%s' core symbol.\n", + pluginname, symbol); + return -1; + } +#endif /* HWLOC_INSIDE_PLUGIN */ + return 0; +} + /** @} */ @@ -491,11 +497,9 @@ hwloc_filter_check_pcidev_subtype_important(unsigned classid) return (baseclass == 0x03 /* PCI_BASE_CLASS_DISPLAY */ || baseclass == 0x02 /* PCI_BASE_CLASS_NETWORK */ || baseclass == 0x01 /* PCI_BASE_CLASS_STORAGE */ - || baseclass == 0x00 /* Unclassified, for Atos/Bull BXI */ || baseclass == 0x0b /* PCI_BASE_CLASS_PROCESSOR */ || classid == 0x0c04 /* PCI_CLASS_SERIAL_FIBER */ || classid == 0x0c06 /* PCI_CLASS_SERIAL_INFINIBAND */ - || classid == 0x0502 /* PCI_CLASS_MEMORY_CXL */ || baseclass == 0x06 /* PCI_BASE_CLASS_BRIDGE with non-PCI downstream. the core will drop the useless ones later */ || baseclass == 0x12 /* Processing Accelerators */); } @@ -633,19 +637,6 @@ HWLOC_DECLSPEC struct hwloc_obj * hwloc_pci_find_parent_by_busid(struct hwloc_to */ HWLOC_DECLSPEC struct hwloc_obj * hwloc_pci_find_by_busid(struct hwloc_topology *topology, unsigned domain, unsigned bus, unsigned dev, unsigned func); - -/** @} */ - - - - -/** \defgroup hwlocality_components_distances Components and Plugins: distances - * - * \note These structures and functions may change when ::HWLOC_COMPONENT_ABI is modified. - * - * @{ - */ - /** \brief Handle to a new distances structure during its addition to the topology. */ typedef void * hwloc_backend_distances_add_handle_t; diff --git a/src/3rdparty/hwloc/include/hwloc/rename.h b/src/3rdparty/hwloc/include/hwloc/rename.h index 7fddc600..ae439b51 100644 --- a/src/3rdparty/hwloc/include/hwloc/rename.h +++ b/src/3rdparty/hwloc/include/hwloc/rename.h @@ -1,6 +1,6 @@ /* * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. - * Copyright © 2010-2025 Inria. All rights reserved. + * Copyright © 2010-2021 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -123,9 +123,6 @@ extern "C" { #define HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING HWLOC_NAME_CAPS(TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING) #define HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING HWLOC_NAME_CAPS(TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING) #define HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING HWLOC_NAME_CAPS(TOPOLOGY_FLAG_DONT_CHANGE_BINDING) -#define HWLOC_TOPOLOGY_FLAG_NO_DISTANCES HWLOC_NAME_CAPS(TOPOLOGY_FLAG_NO_DISTANCES) -#define HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS HWLOC_NAME_CAPS(TOPOLOGY_FLAG_NO_MEMATTRS) -#define HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS HWLOC_NAME_CAPS(TOPOLOGY_FLAG_NO_CPUKINDS) #define hwloc_topology_set_pid HWLOC_NAME(topology_set_pid) #define hwloc_topology_set_synthetic HWLOC_NAME(topology_set_synthetic) @@ -176,7 +173,6 @@ extern "C" { #define hwloc_topology_insert_misc_object HWLOC_NAME(topology_insert_misc_object) #define hwloc_topology_alloc_group_object HWLOC_NAME(topology_alloc_group_object) -#define hwloc_topology_free_group_object HWLOC_NAME(topology_free_group_object) #define hwloc_topology_insert_group_object HWLOC_NAME(topology_insert_group_object) #define hwloc_obj_add_other_obj_sets HWLOC_NAME(obj_add_other_obj_sets) #define hwloc_topology_refresh HWLOC_NAME(topology_refresh) @@ -210,7 +206,6 @@ extern "C" { #define hwloc_obj_get_info_by_name HWLOC_NAME(obj_get_info_by_name) #define hwloc_obj_add_info HWLOC_NAME(obj_add_info) -#define hwloc_obj_set_subtype HWLOC_NAME(obj_set_subtype) #define HWLOC_CPUBIND_PROCESS HWLOC_NAME_CAPS(CPUBIND_PROCESS) #define HWLOC_CPUBIND_THREAD HWLOC_NAME_CAPS(CPUBIND_THREAD) @@ -233,7 +228,6 @@ extern "C" { #define HWLOC_MEMBIND_FIRSTTOUCH HWLOC_NAME_CAPS(MEMBIND_FIRSTTOUCH) #define HWLOC_MEMBIND_BIND HWLOC_NAME_CAPS(MEMBIND_BIND) #define HWLOC_MEMBIND_INTERLEAVE HWLOC_NAME_CAPS(MEMBIND_INTERLEAVE) -#define HWLOC_MEMBIND_WEIGHTED_INTERLEAVE HWLOC_NAME_CAPS(MEMBIND_WEIGHTED_INTERLEAVE) #define HWLOC_MEMBIND_NEXTTOUCH HWLOC_NAME_CAPS(MEMBIND_NEXTTOUCH) #define HWLOC_MEMBIND_MIXED HWLOC_NAME_CAPS(MEMBIND_MIXED) @@ -387,11 +381,6 @@ extern "C" { #define HWLOC_MEMATTR_ID_LOCALITY HWLOC_NAME_CAPS(MEMATTR_ID_LOCALITY) #define HWLOC_MEMATTR_ID_BANDWIDTH HWLOC_NAME_CAPS(MEMATTR_ID_BANDWIDTH) #define HWLOC_MEMATTR_ID_LATENCY HWLOC_NAME_CAPS(MEMATTR_ID_LATENCY) -#define HWLOC_MEMATTR_ID_READ_BANDWIDTH HWLOC_NAME_CAPS(MEMATTR_ID_READ_BANDWIDTH) -#define HWLOC_MEMATTR_ID_WRITE_BANDWIDTH HWLOC_NAME_CAPS(MEMATTR_ID_WRITE_BANDWIDTH) -#define HWLOC_MEMATTR_ID_READ_LATENCY HWLOC_NAME_CAPS(MEMATTR_ID_READ_LATENCY) -#define HWLOC_MEMATTR_ID_WRITE_LATENCY HWLOC_NAME_CAPS(MEMATTR_ID_WRITE_LATENCY) -#define HWLOC_MEMATTR_ID_MAX HWLOC_NAME_CAPS(MEMATTR_ID_MAX) #define hwloc_memattr_id_t HWLOC_NAME(memattr_id_t) #define hwloc_memattr_get_by_name HWLOC_NAME(memattr_get_by_name) @@ -409,10 +398,8 @@ extern "C" { #define hwloc_local_numanode_flag_e HWLOC_NAME(local_numanode_flag_e) #define HWLOC_LOCAL_NUMANODE_FLAG_LARGER_LOCALITY HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_LARGER_LOCALITY) #define HWLOC_LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY) -#define HWLOC_LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY) #define HWLOC_LOCAL_NUMANODE_FLAG_ALL HWLOC_NAME_CAPS(LOCAL_NUMANODE_FLAG_ALL) #define hwloc_get_local_numanode_objs HWLOC_NAME(get_local_numanode_objs) -#define hwloc_topology_get_default_nodeset HWLOC_NAME(topology_get_default_nodeset) #define hwloc_memattr_get_name HWLOC_NAME(memattr_get_name) #define hwloc_memattr_get_flags HWLOC_NAME(memattr_get_flags) @@ -564,7 +551,6 @@ extern "C" { /* opencl.h */ -#define hwloc_cl_device_pci_bus_info_khr HWLOC_NAME(cl_device_pci_bus_info_khr) #define hwloc_cl_device_topology_amd HWLOC_NAME(cl_device_topology_amd) #define hwloc_opencl_get_device_pci_busid HWLOC_NAME(opencl_get_device_pci_ids) #define hwloc_opencl_get_device_cpuset HWLOC_NAME(opencl_get_device_cpuset) @@ -601,9 +587,7 @@ extern "C" { /* levelzero.h */ #define hwloc_levelzero_get_device_cpuset HWLOC_NAME(levelzero_get_device_cpuset) -#define hwloc_levelzero_get_sysman_device_cpuset HWLOC_NAME(levelzero_get_sysman_device_cpuset) #define hwloc_levelzero_get_device_osdev HWLOC_NAME(levelzero_get_device_osdev) -#define hwloc_levelzero_get_sysman_device_osdev HWLOC_NAME(levelzero_get_sysman_device_osdev) /* gl.h */ @@ -722,8 +706,6 @@ extern "C" { #define hwloc__obj_type_is_dcache HWLOC_NAME(_obj_type_is_dcache) #define hwloc__obj_type_is_icache HWLOC_NAME(_obj_type_is_icache) -#define hwloc__pci_link_speed HWLOC_NAME(_pci_link_speed) - /* private/cpuid-x86.h */ #define hwloc_have_x86_cpuid HWLOC_NAME(have_x86_cpuid) @@ -817,8 +799,6 @@ extern "C" { #define hwloc_topology_setup_defaults HWLOC_NAME(topology_setup_defaults) #define hwloc_topology_clear HWLOC_NAME(topology_clear) -#define hwloc__reconnect HWLOC_NAME(_reconnect) - #define hwloc__attach_memory_object HWLOC_NAME(insert_memory_object) #define hwloc_get_obj_by_type_and_gp_index HWLOC_NAME(get_obj_by_type_and_gp_index) @@ -882,7 +862,6 @@ extern "C" { #define hwloc_internal_memattrs_destroy HWLOC_NAME(internal_memattrs_destroy) #define hwloc_internal_memattrs_need_refresh HWLOC_NAME(internal_memattrs_need_refresh) #define hwloc_internal_memattrs_refresh HWLOC_NAME(internal_memattrs_refresh) -#define hwloc_internal_memattrs_guess_memory_tiers HWLOC_NAME(internal_memattrs_guess_memory_tiers) #define hwloc_internal_cpukind_s HWLOC_NAME(internal_cpukind_s) #define hwloc_internal_cpukinds_init HWLOC_NAME(internal_cpukinds_init) diff --git a/src/3rdparty/hwloc/include/hwloc/rsmi.h b/src/3rdparty/hwloc/include/hwloc/rsmi.h index 34db3267..55aa1272 100644 --- a/src/3rdparty/hwloc/include/hwloc/rsmi.h +++ b/src/3rdparty/hwloc/include/hwloc/rsmi.h @@ -1,5 +1,5 @@ /* - * Copyright © 2012-2023 Inria. All rights reserved. + * Copyright © 2012-2021 Inria. All rights reserved. * Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved. * Written by Advanced Micro Devices, * See COPYING in top-level directory. @@ -55,9 +55,6 @@ extern "C" { * * This function is currently only implemented in a meaningful way for * Linux; other systems will simply get a full cpuset. - * - * \return 0 on success. - * \return -1 on error, for instance if device information could not be found. */ static __hwloc_inline int hwloc_rsmi_get_device_cpuset(hwloc_topology_t topology __hwloc_attribute_unused, diff --git a/src/3rdparty/hwloc/include/hwloc/shmem.h b/src/3rdparty/hwloc/include/hwloc/shmem.h index c91e0d8e..86f57b4f 100644 --- a/src/3rdparty/hwloc/include/hwloc/shmem.h +++ b/src/3rdparty/hwloc/include/hwloc/shmem.h @@ -1,5 +1,5 @@ /* - * Copyright © 2013-2023 Inria. All rights reserved. + * Copyright © 2013-2018 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -48,8 +48,6 @@ extern "C" { * This length (in bytes) must be used in hwloc_shmem_topology_write() * and hwloc_shmem_topology_adopt() later. * - * \return the length, or -1 on error, for instance if flags are invalid. - * * \note Flags \p flags are currently unused, must be 0. */ HWLOC_DECLSPEC int hwloc_shmem_topology_get_length(hwloc_topology_t topology, @@ -76,10 +74,9 @@ HWLOC_DECLSPEC int hwloc_shmem_topology_get_length(hwloc_topology_t topology, * is not. However the caller may also allocate it manually in shared memory * to share it as well. * - * \return 0 on success. - * \return -1 with errno set to \c EBUSY if the virtual memory mapping defined + * \return -1 with errno set to EBUSY if the virtual memory mapping defined * by \p mmap_address and \p length isn't available in the process. - * \return -1 with errno set to \c EINVAL if \p fileoffset, \p mmap_address + * \return -1 with errno set to EINVAL if \p fileoffset, \p mmap_address * or \p length aren't page-aligned. */ HWLOC_DECLSPEC int hwloc_shmem_topology_write(hwloc_topology_t topology, @@ -115,16 +112,14 @@ HWLOC_DECLSPEC int hwloc_shmem_topology_write(hwloc_topology_t topology, * * \note This function takes care of calling hwloc_topology_abi_check(). * - * \return 0 on success. - * - * \return -1 with errno set to \c EBUSY if the virtual memory mapping defined + * \return -1 with errno set to EBUSY if the virtual memory mapping defined * by \p mmap_address and \p length isn't available in the process. * - * \return -1 with errno set to \c EINVAL if \p fileoffset, \p mmap_address + * \return -1 with errno set to EINVAL if \p fileoffset, \p mmap_address * or \p length aren't page-aligned, or do not match what was given to * hwloc_shmem_topology_write() earlier. * - * \return -1 with errno set to \c EINVAL if the layout of the topology structure + * \return -1 with errno set to EINVAL if the layout of the topology structure * is different between the writer process and the adopter process. */ HWLOC_DECLSPEC int hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp, diff --git a/src/3rdparty/hwloc/include/private/autogen/config.h b/src/3rdparty/hwloc/include/private/autogen/config.h index 5bf22fac..687e82bc 100644 --- a/src/3rdparty/hwloc/include/private/autogen/config.h +++ b/src/3rdparty/hwloc/include/private/autogen/config.h @@ -1,6 +1,6 @@ /* * Copyright © 2009, 2011, 2012 CNRS. All rights reserved. - * Copyright © 2009-2021 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009, 2011, 2012, 2015 Université Bordeaux. All rights reserved. * Copyright © 2009-2020 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ @@ -290,6 +290,10 @@ /* Define to '1' if sysctlbyname is present and usable */ /* #undef HAVE_SYSCTLBYNAME */ +/* Define to 1 if the system has the type + `SYSTEM_LOGICAL_PROCESSOR_INFORMATION'. */ +#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1 + /* Define to 1 if the system has the type `SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX'. */ #define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1 diff --git a/src/3rdparty/hwloc/include/private/cpuid-x86.h b/src/3rdparty/hwloc/include/private/cpuid-x86.h index 1f87fdac..2758afe0 100644 --- a/src/3rdparty/hwloc/include/private/cpuid-x86.h +++ b/src/3rdparty/hwloc/include/private/cpuid-x86.h @@ -11,22 +11,6 @@ #ifndef HWLOC_PRIVATE_CPUID_X86_H #define HWLOC_PRIVATE_CPUID_X86_H -/* A macro for annotating memory as uninitialized when building with MSAN - * (and otherwise having no effect). See below for why this is used with - * our custom assembly. - */ -#ifdef __has_feature -#define HWLOC_HAS_FEATURE(name) __has_feature(name) -#else -#define HWLOC_HAS_FEATURE(name) 0 -#endif -#if HWLOC_HAS_FEATURE(memory_sanitizer) || defined(MEMORY_SANITIZER) -#include -#define HWLOC_ANNOTATE_MEMORY_IS_INITIALIZED(ptr, len) __msan_unpoison(ptr, len) -#else -#define HWLOC_ANNOTATE_MEMORY_IS_INITIALIZED(ptr, len) -#endif - #if (defined HWLOC_X86_32_ARCH) && (!defined HWLOC_HAVE_MSVC_CPUIDEX) static __hwloc_inline int hwloc_have_x86_cpuid(void) { @@ -87,18 +71,12 @@ static __hwloc_inline void hwloc_x86_cpuid(unsigned *eax, unsigned *ebx, unsigne "movl %k2,%1\n\t" : "+a" (*eax), "=m" (*ebx), "=&r"(sav_rbx), "+c" (*ecx), "=&d" (*edx)); - /* MSAN does not recognize the effect of the above assembly on the memory operand - * (`"=m"(*ebx)`). This may get improved in MSAN at some point in the future, e.g. - * see https://github.com/llvm/llvm-project/pull/77393. */ - HWLOC_ANNOTATE_MEMORY_IS_INITIALIZED(ebx, sizeof *ebx); #elif defined(HWLOC_X86_32_ARCH) __asm__( "mov %%ebx,%1\n\t" "cpuid\n\t" "xchg %%ebx,%1\n\t" : "+a" (*eax), "=&SD" (*ebx), "+c" (*ecx), "=&d" (*edx)); - /* See above. */ - HWLOC_ANNOTATE_MEMORY_IS_INITIALIZED(ebx, sizeof *ebx); #else #error unknown architecture #endif diff --git a/src/3rdparty/hwloc/include/private/misc.h b/src/3rdparty/hwloc/include/private/misc.h index 823e8a2d..6c02d793 100644 --- a/src/3rdparty/hwloc/include/private/misc.h +++ b/src/3rdparty/hwloc/include/private/misc.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2024 Inria. All rights reserved. + * Copyright © 2009-2019 Inria. All rights reserved. * Copyright © 2009-2012 Université Bordeaux * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -186,7 +186,7 @@ hwloc_ffsl_from_ffs32(unsigned long x) /** * flsl helpers. */ -#ifdef __GNUC__ +#ifdef __GNUC_____ # if (__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4)) # define hwloc_flsl(x) ((x) ? (8*sizeof(long) - __builtin_clzl(x)) : 0) @@ -504,7 +504,7 @@ hwloc__obj_type_is_icache(hwloc_obj_type_t type) } \ } while(0) #else /* HAVE_USELOCALE */ -#if HWLOC_HAVE_ATTRIBUTE_UNUSED +#if __HWLOC_HAVE_ATTRIBUTE_UNUSED #define hwloc_localeswitch_declare int __dummy_nolocale __hwloc_attribute_unused #define hwloc_localeswitch_init() #else @@ -573,35 +573,4 @@ typedef SSIZE_T ssize_t; # endif #endif -static __inline float -hwloc__pci_link_speed(unsigned generation, unsigned lanes) -{ - float lanespeed; - /* - * These are single-direction bandwidths only. - * - * Gen1 used NRZ with 8/10 encoding. - * PCIe Gen1 = 2.5GT/s signal-rate per lane x 8/10 = 0.25GB/s data-rate per lane - * PCIe Gen2 = 5 GT/s signal-rate per lane x 8/10 = 0.5 GB/s data-rate per lane - * Gen3 switched to NRZ with 128/130 encoding. - * PCIe Gen3 = 8 GT/s signal-rate per lane x 128/130 = 1 GB/s data-rate per lane - * PCIe Gen4 = 16 GT/s signal-rate per lane x 128/130 = 2 GB/s data-rate per lane - * PCIe Gen5 = 32 GT/s signal-rate per lane x 128/130 = 4 GB/s data-rate per lane - * Gen6 switched to PAM with with 242/256 FLIT (242B payload protected by 8B CRC + 6B FEC). - * PCIe Gen6 = 64 GT/s signal-rate per lane x 242/256 = 8 GB/s data-rate per lane - * PCIe Gen7 = 128GT/s signal-rate per lane x 242/256 = 16 GB/s data-rate per lane - */ - - /* lanespeed in Gbit/s */ - if (generation <= 2) - lanespeed = 2.5f * generation * 0.8f; - else if (generation <= 5) - lanespeed = 8.0f * (1<<(generation-3)) * 128/130; - else - lanespeed = 8.0f * (1<<(generation-3)) * 242/256; /* assume Gen8 will be 256 GT/s and so on */ - - /* linkspeed in GB/s */ - return lanespeed * lanes / 8; -} - #endif /* HWLOC_PRIVATE_MISC_H */ diff --git a/src/3rdparty/hwloc/include/private/netloc.h b/src/3rdparty/hwloc/include/private/netloc.h new file mode 100644 index 00000000..c070c54c --- /dev/null +++ b/src/3rdparty/hwloc/include/private/netloc.h @@ -0,0 +1,578 @@ +/* + * Copyright © 2014 Cisco Systems, Inc. All rights reserved. + * Copyright © 2013-2014 University of Wisconsin-La Crosse. + * All rights reserved. + * Copyright © 2015-2017 Inria. All rights reserved. + * + * $COPYRIGHT$ + * + * Additional copyrights may follow + * See COPYING in top-level directory. + * + * $HEADER$ + */ + +#ifndef _NETLOC_PRIVATE_H_ +#define _NETLOC_PRIVATE_H_ + +#include +#include +#include +#include +#include + +#define NETLOCFILE_VERSION 1 + +#ifdef NETLOC_SCOTCH +#include +#include +#define NETLOC_int SCOTCH_Num +#else +#define NETLOC_int int +#endif + +/* + * "Import" a few things from hwloc + */ +#define __netloc_attribute_unused __hwloc_attribute_unused +#define __netloc_attribute_malloc __hwloc_attribute_malloc +#define __netloc_attribute_const __hwloc_attribute_const +#define __netloc_attribute_pure __hwloc_attribute_pure +#define __netloc_attribute_deprecated __hwloc_attribute_deprecated +#define __netloc_attribute_may_alias __hwloc_attribute_may_alias +#define NETLOC_DECLSPEC HWLOC_DECLSPEC + + +/********************************************************************** + * Types + **********************************************************************/ + +/** + * Definitions for Comparators + * \sa These are the return values from the following functions: + * netloc_network_compare, netloc_dt_edge_t_compare, netloc_dt_node_t_compare + */ +typedef enum { + NETLOC_CMP_SAME = 0, /**< Compared as the Same */ + NETLOC_CMP_SIMILAR = -1, /**< Compared as Similar, but not the Same */ + NETLOC_CMP_DIFF = -2 /**< Compared as Different */ +} netloc_compare_type_t; + +/** + * Enumerated type for the various types of supported networks + */ +typedef enum { + NETLOC_NETWORK_TYPE_ETHERNET = 1, /**< Ethernet network */ + NETLOC_NETWORK_TYPE_INFINIBAND = 2, /**< InfiniBand network */ + NETLOC_NETWORK_TYPE_INVALID = 3 /**< Invalid network */ +} netloc_network_type_t; + +/** + * Enumerated type for the various types of supported topologies + */ +typedef enum { + NETLOC_TOPOLOGY_TYPE_INVALID = -1, /**< Invalid */ + NETLOC_TOPOLOGY_TYPE_TREE = 1, /**< Tree */ +} netloc_topology_type_t; + +/** + * Enumerated type for the various types of nodes + */ +typedef enum { + NETLOC_NODE_TYPE_HOST = 0, /**< Host (a.k.a., network addressable endpoint - e.g., MAC Address) node */ + NETLOC_NODE_TYPE_SWITCH = 1, /**< Switch node */ + NETLOC_NODE_TYPE_INVALID = 2 /**< Invalid node */ +} netloc_node_type_t; + +typedef enum { + NETLOC_ARCH_TREE = 0, /* Fat tree */ +} netloc_arch_type_t; + + +/* Pre declarations to avoid inter dependency problems */ +/** \cond IGNORE */ +struct netloc_topology_t; +typedef struct netloc_topology_t netloc_topology_t; +struct netloc_node_t; +typedef struct netloc_node_t netloc_node_t; +struct netloc_edge_t; +typedef struct netloc_edge_t netloc_edge_t; +struct netloc_physical_link_t; +typedef struct netloc_physical_link_t netloc_physical_link_t; +struct netloc_path_t; +typedef struct netloc_path_t netloc_path_t; + +struct netloc_arch_tree_t; +typedef struct netloc_arch_tree_t netloc_arch_tree_t; +struct netloc_arch_node_t; +typedef struct netloc_arch_node_t netloc_arch_node_t; +struct netloc_arch_node_slot_t; +typedef struct netloc_arch_node_slot_t netloc_arch_node_slot_t; +struct netloc_arch_t; +typedef struct netloc_arch_t netloc_arch_t; +/** \endcond */ + +/** + * \struct netloc_topology_t + * \brief Netloc Topology Context + * + * An opaque data structure used to reference a network topology. + * + * \note Must be initialized with \ref netloc_topology_construct() + */ +struct netloc_topology_t { + /** Topology path */ + char *topopath; + /** Subnet ID */ + char *subnet_id; + + /** Node List */ + netloc_node_t *nodes; /* Hash table of nodes by physical_id */ + netloc_node_t *nodesByHostname; /* Hash table of nodes by hostname */ + + netloc_physical_link_t *physical_links; /* Hash table with physcial links */ + + /** Partition List */ + UT_array *partitions; + + /** Hwloc topology List */ + char *hwlocpath; + UT_array *topos; + hwloc_topology_t *hwloc_topos; + + /** Type of the graph */ + netloc_topology_type_t type; +}; + +/** + * \brief Netloc Node Type + * + * Represents the concept of a node (a.k.a., vertex, endpoint) within a network + * graph. This could be a server or a network switch. The \ref node_type parameter + * will distinguish the exact type of node this represents in the graph. + */ +struct netloc_node_t { + UT_hash_handle hh; /* makes this structure hashable with physical_id */ + UT_hash_handle hh2; /* makes this structure hashable with hostname */ + + /** Physical ID of the node */ + char physical_id[20]; + + /** Logical ID of the node (if any) */ + int logical_id; + + /** Type of the node */ + netloc_node_type_t type; + + /* Pointer to physical_links */ + UT_array *physical_links; + + /** Description information from discovery (if any) */ + char *description; + + /** + * Application-given private data pointer. + * Initialized to NULL, and not used by the netloc library. + */ + void * userdata; + + /** Outgoing edges from this node */ + netloc_edge_t *edges; + + UT_array *subnodes; /* the group of nodes for the virtual nodes */ + + netloc_path_t *paths; + + char *hostname; + + UT_array *partitions; /* index in the list from the topology */ + + hwloc_topology_t hwlocTopo; + int hwlocTopoIdx; +}; + +/** + * \brief Netloc Edge Type + * + * Represents the concept of a directed edge within a network graph. + * + * \note We do not point to the netloc_node_t structure directly to + * simplify the representation, and allow the information to more easily + * be entered into the data store without circular references. + * \todo JJH Is the note above still true? + */ +struct netloc_edge_t { + UT_hash_handle hh; /* makes this structure hashable */ + + netloc_node_t *dest; + + int id; + + /** Pointers to the parent node */ + netloc_node_t *node; + + /* Pointer to physical_links */ + UT_array *physical_links; + + /** total gbits of the links */ + float total_gbits; + + UT_array *partitions; /* index in the list from the topology */ + + UT_array *subnode_edges; /* for edges going to virtual nodes */ + + struct netloc_edge_t *other_way; + + /** + * Application-given private data pointer. + * Initialized to NULL, and not used by the netloc library. + */ + void * userdata; +}; + + +struct netloc_physical_link_t { + UT_hash_handle hh; /* makes this structure hashable */ + + int id; // TODO long long + netloc_node_t *src; + netloc_node_t *dest; + int ports[2]; + char *width; + char *speed; + + netloc_edge_t *edge; + + int other_way_id; + struct netloc_physical_link_t *other_way; + + UT_array *partitions; /* index in the list from the topology */ + + /** gbits of the link from speed and width */ + float gbits; + + /** Description information from discovery (if any) */ + char *description; +}; + +struct netloc_path_t { + UT_hash_handle hh; /* makes this structure hashable */ + char dest_id[20]; + UT_array *links; +}; + + +/********************************************************************** + * Architecture structures + **********************************************************************/ +struct netloc_arch_tree_t { + NETLOC_int num_levels; + NETLOC_int *degrees; + NETLOC_int *cost; +}; + +struct netloc_arch_node_t { + UT_hash_handle hh; /* makes this structure hashable */ + char *name; /* Hash key */ + netloc_node_t *node; /* Corresponding node */ + int idx_in_topo; /* idx with ghost hosts to have complete topo */ + int num_slots; /* it is not the real number of slots but the maximum slot idx */ + int *slot_idx; /* corresponding idx in slot_tree */ + int *slot_os_idx; /* corresponding os index for each leaf in tree */ + netloc_arch_tree_t *slot_tree; /* Tree built from hwloc */ + int num_current_slots; /* Number of PUs */ + NETLOC_int *current_slots; /* indices in the complete tree */ + int *slot_ranks; /* corresponding MPI rank for each leaf in tree */ +}; + +struct netloc_arch_node_slot_t { + netloc_arch_node_t *node; + int slot; +}; + +struct netloc_arch_t { + netloc_topology_t *topology; + int has_slots; /* if slots are included in the architecture */ + netloc_arch_type_t type; + union { + netloc_arch_tree_t *node_tree; + netloc_arch_tree_t *global_tree; + } arch; + netloc_arch_node_t *nodes_by_name; + netloc_arch_node_slot_t *node_slot_by_idx; /* node_slot by index in complete topo */ + NETLOC_int num_current_hosts; /* if has_slots, host is a slot, else host is a node */ + NETLOC_int *current_hosts; /* indices in the complete topology */ +}; + +/********************************************************************** + * Topology Functions + **********************************************************************/ +/** + * Allocate a topology handle. + * + * User is responsible for calling \ref netloc_detach on the topology handle. + * The network parameter information is deep copied into the topology handle, so the + * user may destruct the network handle after calling this function and/or reuse + * the network handle. + * + * \returns NETLOC_SUCCESS on success + * \returns NETLOC_ERROR upon an error. + */ +netloc_topology_t *netloc_topology_construct(char *path); + +/** + * Destruct a topology handle + * + * \param topology A valid pointer to a \ref netloc_topology_t handle created + * from a prior call to \ref netloc_topology_construct. + * + * \returns NETLOC_SUCCESS on success + * \returns NETLOC_ERROR upon an error. + */ +int netloc_topology_destruct(netloc_topology_t *topology); + +int netloc_topology_find_partition_idx(netloc_topology_t *topology, char *partition_name); + +int netloc_topology_read_hwloc(netloc_topology_t *topology, int num_nodes, + netloc_node_t **node_list); + +#define netloc_topology_iter_partitions(topology,partition) \ + for ((partition) = (char **)utarray_front(topology->partitions); \ + (partition) != NULL; \ + (partition) = (char **)utarray_next(topology->partitions, partition)) + +#define netloc_topology_iter_hwloctopos(topology,hwloctopo) \ + for ((hwloctopo) = (char **)utarray_front(topology->topos); \ + (hwloctopo) != NULL; \ + (hwloctopo) = (char **)utarray_next(topology->topos, hwloctopo)) + +#define netloc_topology_find_node(topology,node_id,node) \ + HASH_FIND_STR(topology->nodes, node_id, node) + +#define netloc_topology_iter_nodes(topology,node,_tmp) \ + HASH_ITER(hh, topology->nodes, node, _tmp) + +#define netloc_topology_num_nodes(topology) \ + HASH_COUNT(topology->nodes) + +/*************************************************/ + + +/** + * Constructor for netloc_node_t + * + * User is responsible for calling the destructor on the handle. + * + * Returns + * A newly allocated pointer to the network information. + */ +netloc_node_t *netloc_node_construct(void); + +/** + * Destructor for netloc_node_t + * + * \param node A valid node handle + * + * Returns + * NETLOC_SUCCESS on success + * NETLOC_ERROR on error + */ +int netloc_node_destruct(netloc_node_t *node); + +char *netloc_node_pretty_print(netloc_node_t* node); + +#define netloc_node_get_num_subnodes(node) \ + utarray_len((node)->subnodes) + +#define netloc_node_get_subnode(node,i) \ + (*(netloc_node_t **)utarray_eltptr((node)->subnodes, (i))) + +#define netloc_node_get_num_edges(node) \ + utarray_len((node)->edges) + +#define netloc_node_get_edge(node,i) \ + (*(netloc_edge_t **)utarray_eltptr((node)->edges, (i))) + +#define netloc_node_iter_edges(node,edge,_tmp) \ + HASH_ITER(hh, node->edges, edge, _tmp) + +#define netloc_node_iter_paths(node,path,_tmp) \ + HASH_ITER(hh, node->paths, path, _tmp) + +#define netloc_node_is_host(node) \ + (node->type == NETLOC_NODE_TYPE_HOST) + +#define netloc_node_is_switch(node) \ + (node->type == NETLOC_NODE_TYPE_SWITCH) + +#define netloc_node_iter_paths(node, path,_tmp) \ + HASH_ITER(hh, node->paths, path, _tmp) + +int netloc_node_is_in_partition(netloc_node_t *node, int partition); + +/*************************************************/ + + +/** + * Constructor for netloc_edge_t + * + * User is responsible for calling the destructor on the handle. + * + * Returns + * A newly allocated pointer to the edge information. + */ +netloc_edge_t *netloc_edge_construct(void); + +/** + * Destructor for netloc_edge_t + * + * \param edge A valid edge handle + * + * Returns + * NETLOC_SUCCESS on success + * NETLOC_ERROR on error + */ +int netloc_edge_destruct(netloc_edge_t *edge); + +char * netloc_edge_pretty_print(netloc_edge_t* edge); + +void netloc_edge_reset_uid(void); + +int netloc_edge_is_in_partition(netloc_edge_t *edge, int partition); + +#define netloc_edge_get_num_links(edge) \ + utarray_len((edge)->physical_links) + +#define netloc_edge_get_link(edge,i) \ + (*(netloc_physical_link_t **)utarray_eltptr((edge)->physical_links, (i))) + +#define netloc_edge_get_num_subedges(edge) \ + utarray_len((edge)->subnode_edges) + +#define netloc_edge_get_subedge(edge,i) \ + (*(netloc_edge_t **)utarray_eltptr((edge)->subnode_edges, (i))) + +/*************************************************/ + + +/** + * Constructor for netloc_physical_link_t + * + * User is responsible for calling the destructor on the handle. + * + * Returns + * A newly allocated pointer to the physical link information. + */ +netloc_physical_link_t * netloc_physical_link_construct(void); + +/** + * Destructor for netloc_physical_link_t + * + * Returns + * NETLOC_SUCCESS on success + * NETLOC_ERROR on error + */ +int netloc_physical_link_destruct(netloc_physical_link_t *link); + +char * netloc_link_pretty_print(netloc_physical_link_t* link); + +/*************************************************/ + + +netloc_path_t *netloc_path_construct(void); +int netloc_path_destruct(netloc_path_t *path); + + +/********************************************************************** + * Architecture functions + **********************************************************************/ + +netloc_arch_t * netloc_arch_construct(void); + +int netloc_arch_destruct(netloc_arch_t *arch); + +int netloc_arch_build(netloc_arch_t *arch, int add_slots); + +int netloc_arch_set_current_resources(netloc_arch_t *arch); + +int netloc_arch_set_global_resources(netloc_arch_t *arch); + +int netloc_arch_node_get_hwloc_info(netloc_arch_node_t *arch); + +void netloc_arch_tree_complete(netloc_arch_tree_t *tree, UT_array **down_degrees_by_level, + int num_hosts, int **parch_idx); + +NETLOC_int netloc_arch_tree_num_leaves(netloc_arch_tree_t *tree); + + +/********************************************************************** + * Access functions of various elements of the topology + **********************************************************************/ + +#define netloc_get_num_partitions(object) \ + utarray_len((object)->partitions) + +#define netloc_get_partition(object,i) \ + (*(int *)utarray_eltptr((object)->partitions, (i))) + + +#define netloc_path_iter_links(path,link) \ + for ((link) = (netloc_physical_link_t **)utarray_front(path->links); \ + (link) != NULL; \ + (link) = (netloc_physical_link_t **)utarray_next(path->links, link)) + +/********************************************************************** + * Misc functions + **********************************************************************/ + +/** + * Decode the network type + * + * \param net_type A valid member of the \ref netloc_network_type_t type + * + * \returns NULL if the type is invalid + * \returns A string for that \ref netloc_network_type_t type + */ +static inline const char * netloc_network_type_decode(netloc_network_type_t net_type) { + if( NETLOC_NETWORK_TYPE_ETHERNET == net_type ) { + return "ETH"; + } + else if( NETLOC_NETWORK_TYPE_INFINIBAND == net_type ) { + return "IB"; + } + else { + return NULL; + } +} + +/** + * Decode the node type + * + * \param node_type A valid member of the \ref netloc_node_type_t type + * + * \returns NULL if the type is invalid + * \returns A string for that \ref netloc_node_type_t type + */ +static inline const char * netloc_node_type_decode(netloc_node_type_t node_type) { + if( NETLOC_NODE_TYPE_SWITCH == node_type ) { + return "SW"; + } + else if( NETLOC_NODE_TYPE_HOST == node_type ) { + return "CA"; + } + else { + return NULL; + } +} + +ssize_t netloc_line_get(char **lineptr, size_t *n, FILE *stream); + +char *netloc_line_get_next_token(char **string, char c); + +int netloc_build_comm_mat(char *filename, int *pn, double ***pmat); + +#define STRDUP_IF_NOT_NULL(str) (NULL == str ? NULL : strdup(str)) +#define STR_EMPTY_IF_NULL(str) (NULL == str ? "" : str) + + +#endif // _NETLOC_PRIVATE_H_ diff --git a/src/3rdparty/hwloc/include/private/private.h b/src/3rdparty/hwloc/include/private/private.h index 0c262aa6..5e216632 100644 --- a/src/3rdparty/hwloc/include/private/private.h +++ b/src/3rdparty/hwloc/include/private/private.h @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2025 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2012, 2020 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * @@ -245,12 +245,6 @@ struct hwloc_topology { * temporary variables during discovery */ - /* set to 1 at the beginning of load() if the filter of any cpu cache type (L1 to L3i) is not NONE, - * may be checked by backends before querying caches - * (when they don't know the level of caches they are querying). - */ - int want_some_cpu_caches; - /* machine-wide memory. * temporarily stored there by OSes that only provide this without NUMA information, * and actually used later by the core. @@ -265,7 +259,6 @@ struct hwloc_topology { unsigned bus_first, bus_last; hwloc_bitmap_t cpuset; } * pci_forced_locality; - hwloc_uint64_t pci_locality_quirks; /* component blacklisting */ unsigned nr_blacklisted_components; @@ -302,9 +295,6 @@ extern void hwloc__reorder_children(hwloc_obj_t parent); extern void hwloc_topology_setup_defaults(struct hwloc_topology *topology); extern void hwloc_topology_clear(struct hwloc_topology *topology); -#define _HWLOC_RECONNECT_FLAG_KEEPSTRUCTURE (1UL<<0) -extern int hwloc__reconnect(struct hwloc_topology *topology, unsigned long flags); - /* insert memory object as memory child of normal parent */ extern struct hwloc_obj * hwloc__attach_memory_object(struct hwloc_topology *topology, hwloc_obj_t parent, hwloc_obj_t obj, const char *reason); @@ -429,7 +419,6 @@ extern void hwloc_internal_memattrs_need_refresh(hwloc_topology_t topology); extern void hwloc_internal_memattrs_refresh(hwloc_topology_t topology); extern int hwloc_internal_memattrs_dup(hwloc_topology_t new, hwloc_topology_t old); extern int hwloc_internal_memattr_set_value(hwloc_topology_t topology, hwloc_memattr_id_t id, hwloc_obj_type_t target_type, hwloc_uint64_t target_gp_index, unsigned target_os_index, struct hwloc_internal_location_s *initiator, hwloc_uint64_t value); -extern int hwloc_internal_memattrs_guess_memory_tiers(hwloc_topology_t topology, int force_subtype); extern void hwloc_internal_cpukinds_init(hwloc_topology_t topology); extern int hwloc_internal_cpukinds_rank(hwloc_topology_t topology); @@ -486,13 +475,11 @@ extern char * hwloc_progname(struct hwloc_topology *topology); #define HWLOC_GROUP_KIND_INTEL_DIE 104 /* no subkind */ #define HWLOC_GROUP_KIND_S390_BOOK 110 /* subkind 0 is book, subkind 1 is drawer (group of books) */ #define HWLOC_GROUP_KIND_AMD_COMPUTE_UNIT 120 /* no subkind */ -#define HWLOC_GROUP_KIND_AMD_COMPLEX 121 /* no subkind */ /* then, OS-specific groups */ #define HWLOC_GROUP_KIND_SOLARIS_PG_HW_PERF 200 /* subkind is group width */ #define HWLOC_GROUP_KIND_AIX_SDL_UNKNOWN 210 /* subkind is SDL level */ #define HWLOC_GROUP_KIND_WINDOWS_PROCESSOR_GROUP 220 /* no subkind */ #define HWLOC_GROUP_KIND_WINDOWS_RELATIONSHIP_UNKNOWN 221 /* no subkind */ -#define HWLOC_GROUP_KIND_LINUX_CLUSTER 222 /* no subkind */ /* distance groups */ #define HWLOC_GROUP_KIND_DISTANCE 900 /* subkind is round of adding these groups during distance based grouping */ /* finally, hwloc-specific groups required to insert something else, should disappear as soon as possible */ diff --git a/src/3rdparty/hwloc/include/private/windows.h b/src/3rdparty/hwloc/include/private/windows.h deleted file mode 100644 index cb3e0d62..00000000 --- a/src/3rdparty/hwloc/include/private/windows.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright © 2009 Université Bordeaux - * Copyright © 2020-2022 Inria. All rights reserved. - * - * See COPYING in top-level directory. - */ - -#ifndef HWLOC_PRIVATE_WINDOWS_H -#define HWLOC_PRIVATE_WINDOWS_H - -#ifndef _ANONYMOUS_UNION -#ifdef __GNUC__ -#define _ANONYMOUS_UNION __extension__ -#else -#define _ANONYMOUS_UNION -#endif /* __GNUC__ */ -#endif /* _ANONYMOUS_UNION */ - -#ifndef _ANONYMOUS_STRUCT -#ifdef __GNUC__ -#define _ANONYMOUS_STRUCT __extension__ -#else -#define _ANONYMOUS_STRUCT -#endif /* __GNUC__ */ -#endif /* _ANONYMOUS_STRUCT */ - -#define DUMMYUNIONNAME -#define DUMMYSTRUCTNAME - -#endif /* HWLOC_PRIVATE_WINDOWS_H */ diff --git a/src/3rdparty/hwloc/include/private/xml.h b/src/3rdparty/hwloc/include/private/xml.h index 49e80565..3af5ba1e 100644 --- a/src/3rdparty/hwloc/include/private/xml.h +++ b/src/3rdparty/hwloc/include/private/xml.h @@ -19,14 +19,13 @@ HWLOC_DECLSPEC int hwloc__xml_verbose(void); typedef struct hwloc__xml_import_state_s { struct hwloc__xml_import_state_s *parent; - /* globals shared between the entire stack of states during import */ + /* globals shared because the entire stack of states during import */ struct hwloc_xml_backend_data_s *global; /* opaque data used to store backend-specific data. * statically allocated to allow stack-allocation by the common code without knowing actual backend needs. - * libxml is 3 ptrs. nolibxml is 3 ptr + one int. */ - char data[4 * SIZEOF_VOID_P]; + char data[32]; } * hwloc__xml_import_state_t; struct hwloc__xml_imported_v1distances_s { @@ -75,9 +74,8 @@ typedef struct hwloc__xml_export_state_s { /* opaque data used to store backend-specific data. * statically allocated to allow stack-allocation by the common code without knowing actual backend needs. - * libxml is 1 ptr. nolibxml is 1 ptr + 2 size_t + 3 ints. */ - char data[6 * SIZEOF_VOID_P]; + char data[40]; } * hwloc__xml_export_state_t; HWLOC_DECLSPEC void hwloc__xml_export_topology(hwloc__xml_export_state_t parentstate, hwloc_topology_t topology, unsigned long flags); diff --git a/src/3rdparty/hwloc/src/bind.c b/src/3rdparty/hwloc/src/bind.c index 580580e7..2b5d0994 100644 --- a/src/3rdparty/hwloc/src/bind.c +++ b/src/3rdparty/hwloc/src/bind.c @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2024 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2010, 2012 Université Bordeaux * Copyright © 2011-2015 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -287,7 +287,6 @@ static __hwloc_inline int hwloc__check_membind_policy(hwloc_membind_policy_t pol || policy == HWLOC_MEMBIND_FIRSTTOUCH || policy == HWLOC_MEMBIND_BIND || policy == HWLOC_MEMBIND_INTERLEAVE - || policy == HWLOC_MEMBIND_WEIGHTED_INTERLEAVE || policy == HWLOC_MEMBIND_NEXTTOUCH) return 0; return -1; diff --git a/src/3rdparty/hwloc/src/bitmap.c b/src/3rdparty/hwloc/src/bitmap.c index b7825b46..cf071edb 100644 --- a/src/3rdparty/hwloc/src/bitmap.c +++ b/src/3rdparty/hwloc/src/bitmap.c @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2024 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2011 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -245,7 +245,6 @@ int hwloc_bitmap_copy(struct hwloc_bitmap_s * dst, const struct hwloc_bitmap_s * /* Strings always use 32bit groups */ #define HWLOC_PRIxSUBBITMAP "%08lx" #define HWLOC_BITMAP_SUBSTRING_SIZE 32 -#define HWLOC_BITMAP_SUBSTRING_FULL_VALUE 0xFFFFFFFFUL #define HWLOC_BITMAP_SUBSTRING_LENGTH (HWLOC_BITMAP_SUBSTRING_SIZE/4) #define HWLOC_BITMAP_STRING_PER_LONG (HWLOC_BITS_PER_LONG/HWLOC_BITMAP_SUBSTRING_SIZE) @@ -262,7 +261,6 @@ int hwloc_bitmap_snprintf(char * __hwloc_restrict buf, size_t buflen, const stru const unsigned long accum_mask = ~0UL; #else /* HWLOC_BITS_PER_LONG != HWLOC_BITMAP_SUBSTRING_SIZE */ const unsigned long accum_mask = ((1UL << HWLOC_BITMAP_SUBSTRING_SIZE) - 1) << (HWLOC_BITS_PER_LONG - HWLOC_BITMAP_SUBSTRING_SIZE); - int merge_with_infinite_prefix = 0; #endif /* HWLOC_BITS_PER_LONG != HWLOC_BITMAP_SUBSTRING_SIZE */ HWLOC__BITMAP_CHECK(set); @@ -281,9 +279,6 @@ int hwloc_bitmap_snprintf(char * __hwloc_restrict buf, size_t buflen, const stru res = size>0 ? (int)size - 1 : 0; tmp += res; size -= res; -#if HWLOC_BITS_PER_LONG > HWLOC_BITMAP_SUBSTRING_SIZE - merge_with_infinite_prefix = 1; -#endif } i=(int) set->ulongs_count-1; @@ -299,24 +294,16 @@ int hwloc_bitmap_snprintf(char * __hwloc_restrict buf, size_t buflen, const stru } while (i>=0 || accumed) { - unsigned long value; - /* Refill accumulator */ if (!accumed) { accum = set->ulongs[i--]; accumed = HWLOC_BITS_PER_LONG; } - value = (accum & accum_mask) >> (HWLOC_BITS_PER_LONG - HWLOC_BITMAP_SUBSTRING_SIZE); -#if HWLOC_BITS_PER_LONG > HWLOC_BITMAP_SUBSTRING_SIZE - if (merge_with_infinite_prefix && value == HWLOC_BITMAP_SUBSTRING_FULL_VALUE) { - /* first full subbitmap merged with infinite prefix */ - res = 0; - } else -#endif - if (value) { + if (accum & accum_mask) { /* print the whole subset if not empty */ - res = hwloc_snprintf(tmp, size, needcomma ? ",0x" HWLOC_PRIxSUBBITMAP : "0x" HWLOC_PRIxSUBBITMAP, value); + res = hwloc_snprintf(tmp, size, needcomma ? ",0x" HWLOC_PRIxSUBBITMAP : "0x" HWLOC_PRIxSUBBITMAP, + (accum & accum_mask) >> (HWLOC_BITS_PER_LONG - HWLOC_BITMAP_SUBSTRING_SIZE)); needcomma = 1; } else if (i == -1 && accumed == HWLOC_BITMAP_SUBSTRING_SIZE) { /* print a single 0 to mark the last subset */ @@ -336,7 +323,6 @@ int hwloc_bitmap_snprintf(char * __hwloc_restrict buf, size_t buflen, const stru #else accum <<= HWLOC_BITMAP_SUBSTRING_SIZE; accumed -= HWLOC_BITMAP_SUBSTRING_SIZE; - merge_with_infinite_prefix = 0; #endif if (res >= size) @@ -376,8 +362,7 @@ int hwloc_bitmap_sscanf(struct hwloc_bitmap_s *set, const char * __hwloc_restric { const char * current = string; unsigned long accum = 0; - int count = 0; - int ulongcount; + int count=0; int infinite = 0; /* count how many substrings there are */ @@ -398,20 +383,9 @@ int hwloc_bitmap_sscanf(struct hwloc_bitmap_s *set, const char * __hwloc_restric count--; } - ulongcount = (count + HWLOC_BITMAP_STRING_PER_LONG - 1) / HWLOC_BITMAP_STRING_PER_LONG; - if (hwloc_bitmap_reset_by_ulongs(set, ulongcount) < 0) + if (hwloc_bitmap_reset_by_ulongs(set, (count + HWLOC_BITMAP_STRING_PER_LONG - 1) / HWLOC_BITMAP_STRING_PER_LONG) < 0) return -1; - - set->infinite = 0; /* will be updated later */ - -#if HWLOC_BITS_PER_LONG != HWLOC_BITMAP_SUBSTRING_SIZE - if (infinite && (count % HWLOC_BITMAP_STRING_PER_LONG) != 0) { - /* accumulate substrings of the first ulong that are hidden in the infinite prefix */ - int i; - for(i = (count % HWLOC_BITMAP_STRING_PER_LONG); i < HWLOC_BITMAP_STRING_PER_LONG; i++) - accum |= (HWLOC_BITMAP_SUBSTRING_FULL_VALUE << (i*HWLOC_BITMAP_SUBSTRING_SIZE)); - } -#endif + set->infinite = 0; while (*current != '\0') { unsigned long val; @@ -570,9 +544,6 @@ int hwloc_bitmap_taskset_snprintf(char * __hwloc_restrict buf, size_t buflen, co ssize_t size = buflen; char *tmp = buf; int res, ret = 0; -#if HWLOC_BITS_PER_LONG == 64 - int merge_with_infinite_prefix = 0; -#endif int started = 0; int i; @@ -592,9 +563,6 @@ int hwloc_bitmap_taskset_snprintf(char * __hwloc_restrict buf, size_t buflen, co res = size>0 ? (int)size - 1 : 0; tmp += res; size -= res; -#if HWLOC_BITS_PER_LONG == 64 - merge_with_infinite_prefix = 1; -#endif } i=set->ulongs_count-1; @@ -614,11 +582,7 @@ int hwloc_bitmap_taskset_snprintf(char * __hwloc_restrict buf, size_t buflen, co if (started) { /* print the whole subset */ #if HWLOC_BITS_PER_LONG == 64 - if (merge_with_infinite_prefix && (val & 0xffffffff00000000UL) == 0xffffffff00000000UL) { - res = hwloc_snprintf(tmp, size, "%08lx", val & 0xffffffffUL); - } else { - res = hwloc_snprintf(tmp, size, "%016lx", val); - } + res = hwloc_snprintf(tmp, size, "%016lx", val); #else res = hwloc_snprintf(tmp, size, "%08lx", val); #endif @@ -635,9 +599,6 @@ int hwloc_bitmap_taskset_snprintf(char * __hwloc_restrict buf, size_t buflen, co res = size>0 ? (int)size - 1 : 0; tmp += res; size -= res; -#if HWLOC_BITS_PER_LONG == 64 - merge_with_infinite_prefix = 0; -#endif } /* if didn't display anything, display 0x0 */ @@ -718,10 +679,6 @@ int hwloc_bitmap_taskset_sscanf(struct hwloc_bitmap_s *set, const char * __hwloc goto failed; set->ulongs[count-1] = val; - if (infinite && tmpchars != HWLOC_BITS_PER_LONG/4) { - /* infinite prefix with partial substring, fill remaining bits */ - set->ulongs[count-1] |= (~0ULL)<<(4*tmpchars); - } current += tmpchars; chars -= tmpchars; diff --git a/src/3rdparty/hwloc/src/components.c b/src/3rdparty/hwloc/src/components.c index 003995a6..81e3116b 100644 --- a/src/3rdparty/hwloc/src/components.c +++ b/src/3rdparty/hwloc/src/components.c @@ -1,5 +1,5 @@ /* - * Copyright © 2009-2022 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2012 Université Bordeaux * See COPYING in top-level directory. */ @@ -94,7 +94,8 @@ static hwloc_dlhandle hwloc_dlopenext(const char *_filename) { hwloc_dlhandle handle; char *filename = NULL; - if (asprintf(&filename, "%s.so", _filename) < 0) + (void) asprintf(&filename, "%s.so", _filename); + if (!filename) return NULL; handle = dlopen(filename, RTLD_NOW|RTLD_LOCAL); free(filename); @@ -385,7 +386,7 @@ hwloc_disc_component_register(struct hwloc_disc_component *component, |HWLOC_DISC_PHASE_MISC |HWLOC_DISC_PHASE_ANNOTATE |HWLOC_DISC_PHASE_TWEAK))) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Cannot register discovery component `%s' with invalid phases 0x%x\n", component->name, component->phases); return -1; @@ -475,7 +476,7 @@ hwloc_components_init(void) /* hwloc_static_components is created by configure in static-components.h */ for(i=0; NULL != hwloc_static_components[i]; i++) { if (hwloc_static_components[i]->flags) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Ignoring static component with invalid flags %lx\n", hwloc_static_components[i]->flags); continue; @@ -504,7 +505,7 @@ hwloc_components_init(void) #ifdef HWLOC_HAVE_PLUGINS for(desc = hwloc_plugins; NULL != desc; desc = desc->next) { if (desc->component->flags) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Ignoring plugin `%s' component with invalid flags %lx\n", desc->name, desc->component->flags); continue; @@ -737,7 +738,7 @@ hwloc_disc_component_try_enable(struct hwloc_topology *topology, backend = comp->instantiate(topology, comp, topology->backend_excluded_phases | blacklisted_phases, NULL, NULL, NULL); if (!backend) { - if (hwloc_components_verbose || (envvar_forced && HWLOC_SHOW_CRITICAL_ERRORS())) + if (hwloc_components_verbose || (envvar_forced && hwloc_hide_errors() < 2)) fprintf(stderr, "hwloc: Failed to instantiate discovery component `%s'\n", comp->name); return -1; } @@ -834,7 +835,7 @@ hwloc_disc_components_enable_others(struct hwloc_topology *topology) if (comp->phases & ~blacklisted_phases) hwloc_disc_component_try_enable(topology, comp, 1 /* envvar forced */, blacklisted_phases); } else { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Cannot find discovery component `%s'\n", name); } @@ -966,7 +967,7 @@ hwloc_backend_enable(struct hwloc_backend *backend) /* check backend flags */ if (backend->flags) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Cannot enable discovery component `%s' phases 0x%x with unknown flags %lx\n", backend->component->name, backend->component->phases, backend->flags); return -1; diff --git a/src/3rdparty/hwloc/src/cpukinds.c b/src/3rdparty/hwloc/src/cpukinds.c index 321b12d4..074b7a73 100644 --- a/src/3rdparty/hwloc/src/cpukinds.c +++ b/src/3rdparty/hwloc/src/cpukinds.c @@ -1,5 +1,5 @@ /* - * Copyright © 2020-2024 Inria. All rights reserved. + * Copyright © 2020-2021 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -42,15 +42,11 @@ hwloc_internal_cpukinds_dup(hwloc_topology_t new, hwloc_topology_t old) struct hwloc_internal_cpukind_s *kinds; unsigned i; - if (!old->nr_cpukinds) - return 0; - kinds = hwloc_tma_malloc(tma, old->nr_cpukinds * sizeof(*kinds)); if (!kinds) return -1; new->cpukinds = kinds; new->nr_cpukinds = old->nr_cpukinds; - new->nr_cpukinds_allocated = old->nr_cpukinds; memcpy(kinds, old->cpukinds, old->nr_cpukinds * sizeof(*kinds)); for(i=0;inr_cpukinds; i++) { @@ -449,9 +445,7 @@ static int hwloc__cpukinds_compare_ranking_values(const void *_a, const void *_b { const struct hwloc_internal_cpukind_s *a = _a; const struct hwloc_internal_cpukind_s *b = _b; - uint64_t arv = a->ranking_value; - uint64_t brv = b->ranking_value; - return arv < brv ? -1 : arv > brv ? 1 : 0; + return a->ranking_value - b->ranking_value; } /* this function requires ranking values to be unique */ @@ -505,7 +499,7 @@ hwloc_internal_cpukinds_rank(struct hwloc_topology *topology) heuristics = HWLOC_CPUKINDS_RANKING_FORCED_EFFICIENCY; else if (!strcmp(env, "no_forced_efficiency")) heuristics = HWLOC_CPUKINDS_RANKING_NO_FORCED_EFFICIENCY; - else if (HWLOC_SHOW_CRITICAL_ERRORS()) + else if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Failed to recognize HWLOC_CPUKINDS_RANKING value %s\n", env); } diff --git a/src/3rdparty/hwloc/src/diff.c b/src/3rdparty/hwloc/src/diff.c index 361fa524..7449a858 100644 --- a/src/3rdparty/hwloc/src/diff.c +++ b/src/3rdparty/hwloc/src/diff.c @@ -1,5 +1,5 @@ /* - * Copyright © 2013-2023 Inria. All rights reserved. + * Copyright © 2013-2020 Inria. All rights reserved. * See COPYING in top-level directory. */ @@ -218,7 +218,7 @@ hwloc_diff_trees(hwloc_topology_t topo1, hwloc_obj_t obj1, struct hwloc_info_s *info1 = &obj1->infos[i], *info2 = &obj2->infos[i]; if (strcmp(info1->name, info2->name)) goto out_too_complex; - if (strcmp(info1->value, info2->value)) { + if (strcmp(obj1->infos[i].value, obj2->infos[i].value)) { err = hwloc_append_diff_obj_attr_string(obj1, HWLOC_TOPOLOGY_DIFF_OBJ_ATTR_INFO, info1->name, @@ -411,30 +411,6 @@ int hwloc_topology_diff_build(hwloc_topology_t topo1, } } - if (!err) { - /* cpukinds */ - if (topo1->nr_cpukinds != topo2->nr_cpukinds) - goto roottoocomplex; - for(i=0; inr_cpukinds; i++) { - struct hwloc_internal_cpukind_s *ic1 = &topo1->cpukinds[i]; - struct hwloc_internal_cpukind_s *ic2 = &topo2->cpukinds[i]; - unsigned j; - if (!hwloc_bitmap_isequal(ic1->cpuset, ic2->cpuset) - || ic1->efficiency != ic2->efficiency - || ic1->forced_efficiency != ic2->forced_efficiency - || ic1->ranking_value != ic2->ranking_value - || ic1->nr_infos != ic2->nr_infos) - goto roottoocomplex; - for(j=0; jnr_infos; j++) { - struct hwloc_info_s *info1 = &ic1->infos[j], *info2 = &ic2->infos[j]; - if (strcmp(info1->name, info2->name) - || strcmp(info1->value, info2->value)) { - goto roottoocomplex; - } - } - } - } - return err; roottoocomplex: diff --git a/src/3rdparty/hwloc/src/distances.c b/src/3rdparty/hwloc/src/distances.c index 28c586c7..252c253e 100644 --- a/src/3rdparty/hwloc/src/distances.c +++ b/src/3rdparty/hwloc/src/distances.c @@ -1,5 +1,5 @@ /* - * Copyright © 2010-2025 Inria. All rights reserved. + * Copyright © 2010-2021 Inria. All rights reserved. * Copyright © 2011-2012 Université Bordeaux * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -624,8 +624,8 @@ void * hwloc_distances_add_create(hwloc_topology_t topology, return NULL; } if ((kind & ~HWLOC_DISTANCES_KIND_ALL) - || hwloc_weight_long(kind & HWLOC_DISTANCES_KIND_FROM_ALL) > 1 - || hwloc_weight_long(kind & HWLOC_DISTANCES_KIND_MEANS_ALL) > 1) { + || hwloc_weight_long(kind & HWLOC_DISTANCES_KIND_FROM_ALL) != 1 + || hwloc_weight_long(kind & HWLOC_DISTANCES_KIND_MEANS_ALL) != 1) { errno = EINVAL; return NULL; } @@ -699,7 +699,7 @@ hwloc_distances_add_commit(hwloc_topology_t topology, } /* in case we added some groups, see if we need to reconnect */ - hwloc__reconnect(topology, 0); + hwloc_topology_reconnect(topology, 0); return 0; @@ -860,7 +860,7 @@ struct hwloc_distances_container_s { struct hwloc_distances_s distances; }; -#define HWLOC_DISTANCES_CONTAINER_OFFSET ((uintptr_t)(&((struct hwloc_distances_container_s*)NULL)->distances) - (uintptr_t)NULL) +#define HWLOC_DISTANCES_CONTAINER_OFFSET ((char*)&((struct hwloc_distances_container_s*)NULL)->distances - (char*)NULL) #define HWLOC_DISTANCES_CONTAINER(_d) (struct hwloc_distances_container_s *) ( ((char*)_d) - HWLOC_DISTANCES_CONTAINER_OFFSET ) static struct hwloc_internal_distances_s * @@ -1387,12 +1387,19 @@ static __hwloc_inline int is_nvswitch(hwloc_obj_t obj) } static int -hwloc__distances_transform_merge_switch_ports(struct hwloc_distances_s *distances) +hwloc__distances_transform_merge_switch_ports(hwloc_topology_t topology, + struct hwloc_distances_s *distances) { + struct hwloc_internal_distances_s *dist = hwloc__internal_distances_from_public(topology, distances); hwloc_obj_t *objs = distances->objs; hwloc_uint64_t *values = distances->values; unsigned first, i, j, nbobjs = distances->nbobjs; + if (strcmp(dist->name, "NVLinkBandwidth")) { + errno = EINVAL; + return -1; + } + /* find the first port */ first = (unsigned) -1; for(i=0; iobjs; hwloc_uint64_t *values = distances->values; unsigned nbobjs = distances->nbobjs; unsigned i, j, k; + if (strcmp(dist->name, "NVLinkBandwidth")) { + errno = EINVAL; + return -1; + } + for(i=0; i bw_sw2j ? bw_sw2j : bw_i2sw; + /* bandwidth from i to j is now min(i2sw,sw2j) */ + values[i*nbobjs+j] = bw_i2sw > bw_sw2j ? bw_sw2j : bw_i2sw; } } @@ -1462,7 +1476,7 @@ hwloc__distances_transform_transitive_closure(struct hwloc_distances_s *distance } int -hwloc_distances_transform(hwloc_topology_t topology __hwloc_attribute_unused, +hwloc_distances_transform(hwloc_topology_t topology, struct hwloc_distances_s *distances, enum hwloc_distances_transform_e transform, void *transform_attr, @@ -1481,13 +1495,13 @@ hwloc_distances_transform(hwloc_topology_t topology __hwloc_attribute_unused, case HWLOC_DISTANCES_TRANSFORM_MERGE_SWITCH_PORTS: { int err; - err = hwloc__distances_transform_merge_switch_ports(distances); + err = hwloc__distances_transform_merge_switch_ports(topology, distances); if (!err) err = hwloc__distances_transform_remove_null(distances); return err; } case HWLOC_DISTANCES_TRANSFORM_TRANSITIVE_CLOSURE: - return hwloc__distances_transform_transitive_closure(distances); + return hwloc__distances_transform_transitive_closure(topology, distances); default: errno = EINVAL; return -1; diff --git a/src/3rdparty/hwloc/src/memattrs.c b/src/3rdparty/hwloc/src/memattrs.c index f2c27565..16e9896e 100644 --- a/src/3rdparty/hwloc/src/memattrs.c +++ b/src/3rdparty/hwloc/src/memattrs.c @@ -1,12 +1,11 @@ /* - * Copyright © 2020-2025 Inria. All rights reserved. + * Copyright © 2020 Inria. All rights reserved. * See COPYING in top-level directory. */ #include "private/autogen/config.h" #include "hwloc.h" #include "private/private.h" -#include "private/debug.h" /***************************** @@ -14,26 +13,13 @@ */ static __hwloc_inline -int hwloc__memattr_get_convenience_value(hwloc_memattr_id_t id, - hwloc_obj_t node, - hwloc_uint64_t *valuep) +hwloc_uint64_t hwloc__memattr_get_convenience_value(hwloc_memattr_id_t id, + hwloc_obj_t node) { - if (id == HWLOC_MEMATTR_ID_CAPACITY) { - if (node->type != HWLOC_OBJ_NUMANODE) { - errno = EINVAL; - return -1; - } - *valuep = node->attr->numanode.local_memory; - return 0; - } - else if (id == HWLOC_MEMATTR_ID_LOCALITY) { - if (!node->cpuset) { - errno = EINVAL; - return -1; - } - *valuep = hwloc_bitmap_weight(node->cpuset); - return 0; - } + if (id == HWLOC_MEMATTR_ID_CAPACITY) + return node->attr->numanode.local_memory; + else if (id == HWLOC_MEMATTR_ID_LOCALITY) + return hwloc_bitmap_weight(node->cpuset); else assert(0); return 0; /* shut up the compiler */ @@ -63,51 +49,36 @@ hwloc__setup_memattr(struct hwloc_internal_memattr_s *imattr, void hwloc_internal_memattrs_prepare(struct hwloc_topology *topology) { - topology->memattrs = malloc(HWLOC_MEMATTR_ID_MAX * sizeof(*topology->memattrs)); +#define NR_DEFAULT_MEMATTRS 4 + topology->memattrs = malloc(NR_DEFAULT_MEMATTRS * sizeof(*topology->memattrs)); if (!topology->memattrs) return; + assert(HWLOC_MEMATTR_ID_CAPACITY < NR_DEFAULT_MEMATTRS); hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_CAPACITY], (char *) "Capacity", HWLOC_MEMATTR_FLAG_HIGHER_FIRST, HWLOC_IMATTR_FLAG_STATIC_NAME|HWLOC_IMATTR_FLAG_CONVENIENCE); + assert(HWLOC_MEMATTR_ID_LOCALITY < NR_DEFAULT_MEMATTRS); hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_LOCALITY], (char *) "Locality", HWLOC_MEMATTR_FLAG_LOWER_FIRST, HWLOC_IMATTR_FLAG_STATIC_NAME|HWLOC_IMATTR_FLAG_CONVENIENCE); + assert(HWLOC_MEMATTR_ID_BANDWIDTH < NR_DEFAULT_MEMATTRS); hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_BANDWIDTH], (char *) "Bandwidth", HWLOC_MEMATTR_FLAG_HIGHER_FIRST|HWLOC_MEMATTR_FLAG_NEED_INITIATOR, HWLOC_IMATTR_FLAG_STATIC_NAME); - hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_READ_BANDWIDTH], - (char *) "ReadBandwidth", - HWLOC_MEMATTR_FLAG_HIGHER_FIRST|HWLOC_MEMATTR_FLAG_NEED_INITIATOR, - HWLOC_IMATTR_FLAG_STATIC_NAME); - - hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_WRITE_BANDWIDTH], - (char *) "WriteBandwidth", - HWLOC_MEMATTR_FLAG_HIGHER_FIRST|HWLOC_MEMATTR_FLAG_NEED_INITIATOR, - HWLOC_IMATTR_FLAG_STATIC_NAME); - + assert(HWLOC_MEMATTR_ID_LATENCY < NR_DEFAULT_MEMATTRS); hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_LATENCY], (char *) "Latency", HWLOC_MEMATTR_FLAG_LOWER_FIRST|HWLOC_MEMATTR_FLAG_NEED_INITIATOR, HWLOC_IMATTR_FLAG_STATIC_NAME); - hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_READ_LATENCY], - (char *) "ReadLatency", - HWLOC_MEMATTR_FLAG_LOWER_FIRST|HWLOC_MEMATTR_FLAG_NEED_INITIATOR, - HWLOC_IMATTR_FLAG_STATIC_NAME); - - hwloc__setup_memattr(&topology->memattrs[HWLOC_MEMATTR_ID_WRITE_LATENCY], - (char *) "WriteLatency", - HWLOC_MEMATTR_FLAG_LOWER_FIRST|HWLOC_MEMATTR_FLAG_NEED_INITIATOR, - HWLOC_IMATTR_FLAG_STATIC_NAME); - - topology->nr_memattrs = HWLOC_MEMATTR_ID_MAX; + topology->nr_memattrs = NR_DEFAULT_MEMATTRS; } static void @@ -156,8 +127,6 @@ hwloc_internal_memattrs_dup(struct hwloc_topology *new, struct hwloc_topology *o struct hwloc_internal_memattr_s *imattrs; hwloc_memattr_id_t id; - /* old->nr_memattrs is always > 0 thanks to default memattrs */ - imattrs = hwloc_tma_malloc(tma, old->nr_memattrs * sizeof(*imattrs)); if (!imattrs) return -1; @@ -635,7 +604,7 @@ hwloc_memattr_get_targets(hwloc_topology_t topology, if (foundiflags & HWLOC_IMATTR_FLAG_CONVENIENCE) { /* convenience attributes */ - return hwloc__memattr_get_convenience_value(id, target_node, valuep); + *valuep = hwloc__memattr_get_convenience_value(id, target_node); + return 0; } /* normal attributes */ @@ -948,7 +918,7 @@ hwloc_memattr_set_value(hwloc_topology_t topology, { struct hwloc_internal_location_s iloc, *ilocp; - if (flags || !target_node) { + if (flags) { errno = EINVAL; return -1; } @@ -1019,10 +989,10 @@ hwloc_memattr_get_best_target(hwloc_topology_t topology, /* convenience attributes */ for(j=0; ; j++) { hwloc_obj_t node = hwloc_get_obj_by_type(topology, HWLOC_OBJ_NUMANODE, j); - hwloc_uint64_t value = 0; + hwloc_uint64_t value; if (!node) break; - hwloc__memattr_get_convenience_value(id, node, &value); + value = hwloc__memattr_get_convenience_value(id, node); hwloc__update_best_target(&best, &best_value, &found, node, value, imattr->flags & HWLOC_MEMATTR_FLAG_HIGHER_FIRST); @@ -1105,7 +1075,7 @@ hwloc_memattr_get_best_initiator(hwloc_topology_t topology, int found; unsigned i; - if (flags || !target_node) { + if (flags) { errno = EINVAL; return -1; } @@ -1158,8 +1128,6 @@ match_local_obj_cpuset(hwloc_obj_t node, hwloc_cpuset_t cpuset, unsigned long fl { if (flags & HWLOC_LOCAL_NUMANODE_FLAG_ALL) return 1; - if (flags & HWLOC_LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY) - return hwloc_bitmap_intersects(node->cpuset, cpuset); if ((flags & HWLOC_LOCAL_NUMANODE_FLAG_LARGER_LOCALITY) && hwloc_bitmap_isincluded(cpuset, node->cpuset)) return 1; @@ -1182,7 +1150,6 @@ hwloc_get_local_numanode_objs(hwloc_topology_t topology, if (flags & ~(HWLOC_LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY |HWLOC_LOCAL_NUMANODE_FLAG_LARGER_LOCALITY - |HWLOC_LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY | HWLOC_LOCAL_NUMANODE_FLAG_ALL)) { errno = EINVAL; return -1; @@ -1228,750 +1195,3 @@ hwloc_get_local_numanode_objs(hwloc_topology_t topology, *nrp = i; return 0; } - -static int compare_nodes_by_os_index(const void *_a, const void *_b) -{ - const hwloc_obj_t * a = _a, * b = _b; - return (*a)->os_index - (*b)->os_index; -} - -int -hwloc_topology_get_default_nodeset(hwloc_topology_t topology, - hwloc_nodeset_t nodeset, - unsigned long flags) -{ - hwloc_obj_t *nodes; - hwloc_bitmap_t remainingcpuset; - unsigned nrnodes, i; - const char *first_subtype; - - if (flags) { - errno = EINVAL; - goto out; - } - - remainingcpuset = hwloc_bitmap_dup(topology->levels[0][0]->cpuset); - if (!remainingcpuset) - goto out; - - nrnodes = topology->slevels[HWLOC_SLEVEL_NUMANODE].nbobjs; - nodes = malloc(nrnodes * sizeof(*nodes)); - if (!nodes) - goto out_with_remainingcpuset; - - memcpy(nodes, topology->slevels[HWLOC_SLEVEL_NUMANODE].objs, nrnodes * sizeof(*nodes)); - qsort(nodes, nrnodes, sizeof(*nodes), compare_nodes_by_os_index); - - hwloc_bitmap_zero(nodeset); - - /* always take the first node (FIXME: except if unexpected subtype?) */ - first_subtype = nodes[0]->subtype; - hwloc_bitmap_set(nodeset, nodes[0]->os_index); - hwloc_bitmap_andnot(remainingcpuset, remainingcpuset, nodes[0]->cpuset); - - /* use all non-intersecting nodes with same subtype */ - for(i=1; isubtype || strcmp(first_subtype, nodes[i]->subtype)) - continue; - } else if (nodes[i]->subtype) { - continue; - } - /* take non-overlapping nodes */ - if (hwloc_bitmap_isincluded(nodes[i]->cpuset, remainingcpuset) /* can be empty */) { - hwloc_bitmap_set(nodeset, nodes[i]->os_index); - hwloc_bitmap_andnot(remainingcpuset, remainingcpuset, nodes[i]->cpuset); - } - /* more needed? */ - if (hwloc_bitmap_iszero(remainingcpuset)) - goto done; - } - - /* find more nodes to cover the entire topology cpuset. - * only take what's necessary: first nodes, non-empty */ - for(i=1; icpuset, remainingcpuset) - && !hwloc_bitmap_iszero(nodes[i]->cpuset)) { - hwloc_bitmap_set(nodeset, nodes[i]->os_index); - hwloc_bitmap_andnot(remainingcpuset, remainingcpuset, nodes[i]->cpuset); - } - /* more needed? */ - if (hwloc_bitmap_iszero(remainingcpuset)) - goto done; - } - - done: - free(nodes); - hwloc_bitmap_free(remainingcpuset); - return 0; - - out_with_remainingcpuset: - hwloc_bitmap_free(remainingcpuset); - out: - return -1; -} - - -/************************************** - * Using memattrs to identify HBM/DRAM - */ - -enum hwloc_memory_tier_type_e { - /* WARNING: keep higher BW types first for compare_tiers_by_bw_and_type() when BW info is missing */ - HWLOC_MEMORY_TIER_HBM = 1UL<<0, - HWLOC_MEMORY_TIER_DRAM = 1UL<<1, - HWLOC_MEMORY_TIER_GPU = 1UL<<2, - HWLOC_MEMORY_TIER_SPM = 1UL<<3, /* Specific-Purpose Memory is usually HBM, we'll use BW to confirm or force*/ - HWLOC_MEMORY_TIER_NVM = 1UL<<4, - HWLOC_MEMORY_TIER_CXL = 1UL<<5 -}; -typedef unsigned long hwloc_memory_tier_type_t; -#define HWLOC_MEMORY_TIER_UNKNOWN 0UL - -static const char * hwloc_memory_tier_type_snprintf(hwloc_memory_tier_type_t type) -{ - switch (type) { - case HWLOC_MEMORY_TIER_DRAM: return "DRAM"; - case HWLOC_MEMORY_TIER_HBM: return "HBM"; - case HWLOC_MEMORY_TIER_GPU: return "GPUMemory"; - case HWLOC_MEMORY_TIER_SPM: return "SPM"; - case HWLOC_MEMORY_TIER_NVM: return "NVM"; - case HWLOC_MEMORY_TIER_CXL: - case HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_DRAM: return "CXL-DRAM"; - case HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_HBM: return "CXL-HBM"; - case HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_GPU: return "CXL-GPUMemory"; - case HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_SPM: return "CXL-SPM"; - case HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_NVM: return "CXL-NVM"; - default: return NULL; - } -} - -static hwloc_memory_tier_type_t hwloc_memory_tier_type_sscanf(const char *name) -{ - if (!strcasecmp(name, "DRAM")) - return HWLOC_MEMORY_TIER_DRAM; - if (!strcasecmp(name, "HBM")) - return HWLOC_MEMORY_TIER_HBM; - if (!strcasecmp(name, "GPUMemory")) - return HWLOC_MEMORY_TIER_GPU; - if (!strcasecmp(name, "SPM")) - return HWLOC_MEMORY_TIER_SPM; - if (!strcasecmp(name, "NVM")) - return HWLOC_MEMORY_TIER_NVM; - if (!strcasecmp(name, "CXL-DRAM")) - return HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_DRAM; - if (!strcasecmp(name, "CXL-HBM")) - return HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_HBM; - if (!strcasecmp(name, "CXL-GPUMemory")) - return HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_GPU; - if (!strcasecmp(name, "CXL-SPM")) - return HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_SPM; - if (!strcasecmp(name, "CXL-NVM")) - return HWLOC_MEMORY_TIER_CXL|HWLOC_MEMORY_TIER_NVM; - return 0; -} - -/* factorized tier, grouping multiple nodes */ -struct hwloc_memory_tier_s { - hwloc_nodeset_t nodeset; - uint64_t local_bw_min, local_bw_max; - uint64_t local_lat_min, local_lat_max; - hwloc_memory_tier_type_t type; -}; - -/* early tier discovery, one entry per node */ -struct hwloc_memory_node_info_s { - hwloc_obj_t node; - uint64_t local_bw; - uint64_t local_lat; - hwloc_memory_tier_type_t type; - unsigned rank; -}; - -static int compare_node_infos_by_type_and_bw(const void *_a, const void *_b) -{ - const struct hwloc_memory_node_info_s *a = _a, *b = _b; - /* sort by type of node first */ - if (a->type != b->type) - return a->type - b->type; - /* then by bandwidth */ - if (a->local_bw > b->local_bw) - return -1; - else if (a->local_bw < b->local_bw) - return 1; - return 0; -} - -static int compare_tiers_by_bw_and_type(const void *_a, const void *_b) -{ - const struct hwloc_memory_tier_s *a = _a, *b = _b; - /* sort by (average) BW first */ - if (a->local_bw_min && b->local_bw_min) { - if (a->local_bw_min + a->local_bw_max > b->local_bw_min + b->local_bw_max) - return -1; - else if (a->local_bw_min + a->local_bw_max < b->local_bw_min + b->local_bw_max) - return 1; - } - /* then by tier type */ - if (a->type != b->type) - return a->type - b->type; - return 0; -} - -static struct hwloc_memory_tier_s * -hwloc__group_memory_tiers(hwloc_topology_t topology, - unsigned *nr_tiers_p) -{ - struct hwloc_internal_memattr_s *imattr_bw, *imattr_lat; - struct hwloc_memory_node_info_s *nodeinfos; - struct hwloc_memory_tier_s *tiers; - unsigned nr_tiers; - float bw_threshold = 0.1; - float lat_threshold = 0.1; - const char *env; - unsigned i, j, n; - - n = hwloc_get_nbobjs_by_depth(topology, HWLOC_TYPE_DEPTH_NUMANODE); - assert(n); - - env = getenv("HWLOC_MEMTIERS_BANDWIDTH_THRESHOLD"); - if (env) - bw_threshold = atof(env); - - env = getenv("HWLOC_MEMTIERS_LATENCY_THRESHOLD"); - if (env) - lat_threshold = atof(env); - - imattr_bw = &topology->memattrs[HWLOC_MEMATTR_ID_BANDWIDTH]; - imattr_lat = &topology->memattrs[HWLOC_MEMATTR_ID_LATENCY]; - - if (!(imattr_bw->iflags & HWLOC_IMATTR_FLAG_CACHE_VALID)) - hwloc__imattr_refresh(topology, imattr_bw); - if (!(imattr_lat->iflags & HWLOC_IMATTR_FLAG_CACHE_VALID)) - hwloc__imattr_refresh(topology, imattr_lat); - - nodeinfos = malloc(n * sizeof(*nodeinfos)); - if (!nodeinfos) - return NULL; - - for(i=0; isubtype && !strcmp(node->subtype, "GPUMemory")) - nodeinfos[i].type = HWLOC_MEMORY_TIER_GPU; - else if (daxtype && !strcmp(daxtype, "NVM")) - nodeinfos[i].type = HWLOC_MEMORY_TIER_NVM; - else if (daxtype && !strcmp(daxtype, "SPM")) - nodeinfos[i].type = HWLOC_MEMORY_TIER_SPM; - /* add CXL flag */ - if (hwloc_obj_get_info_by_name(node, "CXLDevice") != NULL) { - /* CXL is always SPM for now. HBM and DRAM not possible here yet. - * Hence remove all but NVM first. - */ - nodeinfos[i].type &= HWLOC_MEMORY_TIER_NVM; - nodeinfos[i].type |= HWLOC_MEMORY_TIER_CXL; - } - - /* get local bandwidth */ - imtg = NULL; - for(j=0; jnr_targets; j++) - if (imattr_bw->targets[j].obj == node) { - imtg = &imattr_bw->targets[j]; - break; - } - if (imtg && !hwloc_bitmap_iszero(node->cpuset)) { - struct hwloc_internal_memattr_initiator_s *imi; - iloc.type = HWLOC_LOCATION_TYPE_CPUSET; - iloc.location.cpuset = node->cpuset; - imi = hwloc__memattr_target_get_initiator(imtg, &iloc, 0); - if (imi) - nodeinfos[i].local_bw = imi->value; - } - /* get local latency */ - imtg = NULL; - for(j=0; jnr_targets; j++) - if (imattr_lat->targets[j].obj == node) { - imtg = &imattr_lat->targets[j]; - break; - } - if (imtg && !hwloc_bitmap_iszero(node->cpuset)) { - struct hwloc_internal_memattr_initiator_s *imi; - iloc.type = HWLOC_LOCATION_TYPE_CPUSET; - iloc.location.cpuset = node->cpuset; - imi = hwloc__memattr_target_get_initiator(imtg, &iloc, 0); - if (imi) - nodeinfos[i].local_lat = imi->value; - } - } - - /* Sort nodes by tier type and bandwidth. - * - * We could also use the existing subtype but it's not clear it'd be better. - * For NVIDIA GPU, "GPUMemory" is set in the Linux backend, and used above to set tier type anyway. - * For KNL, the Linux backend sets subtypes and memattrs, sorting by memattrs already works fine. - * Existing subtypes could have been imported from XML, usually mostly OK except maybe SPM (fallback for I don't know)? - * An envvar (or HWLOC_MEMTIERS_REFRESH special value?) could be passed to ignore existing subtypes, - * but "GPUMemory" wouldn't be available anymore, we'd have to use something else like "PCIBusId", - * but that one might not always be specific to GPU-backed NUMA nodes? - */ - hwloc_debug("Sorting memory node infos...\n"); - qsort(nodeinfos, n, sizeof(*nodeinfos), compare_node_infos_by_type_and_bw); -#ifdef HWLOC_DEBUG - for(i=0; ilogical_index, nodeinfos[i].node->os_index, - nodeinfos[i].type, - (unsigned long long) nodeinfos[i].local_bw, - (unsigned long long) nodeinfos[i].local_lat); -#endif - /* now we have UNKNOWN nodes (sorted by BW only), then known ones */ - - /* iterate among them and add a rank value. - * start from rank 0 and switch to next rank when the type changes or when the BW or latendy difference is > threshold */ - hwloc_debug("Starting memory tier #0 and iterating over nodes...\n"); - nodeinfos[0].rank = 0; - for(i=1; ilogical_index, nodeinfos[i].node->os_index); - nodeinfos[i].rank++; - continue; - } - /* comparing bandwidth */ - if (nodeinfos[i].local_bw && nodeinfos[i-1].local_bw) { - float bw_ratio = (float)nodeinfos[i].local_bw/(float)nodeinfos[i-1].local_bw; - if (bw_ratio < 1.) - bw_ratio = 1./bw_ratio; - if (bw_ratio > 1.0 + bw_threshold) { - nodeinfos[i].rank++; - hwloc_debug(" Switching to memory tier #%u starting with node L#%u P#%u because of bandwidth\n", - nodeinfos[i].rank, nodeinfos[i].node->logical_index, nodeinfos[i].node->os_index); - continue; - } - } - /* comparing latency */ - if (nodeinfos[i].local_lat && nodeinfos[i-1].local_lat) { - float lat_ratio = (float)nodeinfos[i].local_lat/(float)nodeinfos[i-1].local_lat; - if (lat_ratio < 1.) - lat_ratio = 1./lat_ratio; - if (lat_ratio > 1.0 + lat_threshold) { - hwloc_debug(" Switching to memory tier #%u starting with node L#%u P#%u because of latency\n", - nodeinfos[i].rank, nodeinfos[i].node->logical_index, nodeinfos[i].node->os_index); - nodeinfos[i].rank++; - continue; - } - } - } - /* FIXME: if there are cpuset-intersecting nodes in same tier, split again? */ - hwloc_debug(" Found %u tiers total\n", nodeinfos[n-1].rank + 1); - - /* now group nodeinfos into factorized tiers */ - nr_tiers = nodeinfos[n-1].rank + 1; - tiers = calloc(nr_tiers, sizeof(*tiers)); - if (!tiers) - goto out_with_nodeinfos; - for(i=0; ios_index); - assert(tiers[rank].type == HWLOC_MEMORY_TIER_UNKNOWN - || tiers[rank].type == nodeinfos[i].type); - tiers[rank].type = nodeinfos[i].type; - /* nodeinfos are sorted in BW order, no need to compare */ - if (!tiers[rank].local_bw_min) - tiers[rank].local_bw_min = nodeinfos[i].local_bw; - tiers[rank].local_bw_max = nodeinfos[i].local_bw; - /* compare latencies to update min/max */ - if (!tiers[rank].local_lat_min || nodeinfos[i].local_lat < tiers[rank].local_lat_min) - tiers[rank].local_lat_min = nodeinfos[i].local_lat; - if (!tiers[rank].local_lat_max || nodeinfos[i].local_lat > tiers[rank].local_lat_max) - tiers[rank].local_lat_max = nodeinfos[i].local_lat; - } - - free(nodeinfos); - *nr_tiers_p = nr_tiers; - return tiers; - - out_with_tiers: - for(i=0; ilocal_bw_min || !tier2->local_bw_min) { - hwloc_debug(" Missing BW info\n"); - return -1; - } - - /* reorder tiers by BW */ - if (tier1->local_bw_min > tier2->local_bw_min) { - tmp = tier1; tier1 = tier2; tier2 = tmp; - } - /* tier1 < tier2 */ - - hwloc_debug(" tier1 BW %llu-%llu vs tier2 BW %llu-%llu\n", - (unsigned long long) tier1->local_bw_min, - (unsigned long long) tier1->local_bw_max, - (unsigned long long) tier2->local_bw_min, - (unsigned long long) tier2->local_bw_max); - if (tier2->local_bw_min <= tier1->local_bw_max * 2) { - /* tier2 BW isn't 2x tier1, we cannot guess HBM */ - hwloc_debug(" BW difference isn't >2x\n"); - return -1; - } - /* tier2 BW is >2x tier1 */ - - if ((flags & HWLOC_GUESS_MEMTIERS_FLAG_NODE0_IS_DRAM) - && hwloc_bitmap_isset(tier2->nodeset, 0)) { - /* node0 is not DRAM, and we assume that's not possible */ - hwloc_debug(" node0 shouldn't have HBM BW\n"); - return -1; - } - - /* assume tier1 == DRAM and tier2 == HBM */ - tier1->type = HWLOC_MEMORY_TIER_DRAM; - tier2->type = HWLOC_MEMORY_TIER_HBM; - hwloc_debug(" Success\n"); - return 0; -} - -static int -hwloc__guess_memory_tiers_types(hwloc_topology_t topology __hwloc_attribute_unused, - unsigned nr_tiers, - struct hwloc_memory_tier_s *tiers) -{ - unsigned long flags; - const char *env; - unsigned nr_unknown, nr_spm; - struct hwloc_memory_tier_s *unknown_tier[2], *spm_tier; - unsigned i; - - flags = 0; - env = getenv("HWLOC_MEMTIERS_GUESS"); - if (env) { - if (!strcmp(env, "none")) - return 0; - /* by default, we don't guess anything unsure */ - if (!strcmp(env, "all")) - /* enable all typical cases */ - flags = ~0UL; - if (strstr(env, "spm_is_hbm")) { - hwloc_debug("Assuming SPM-tier is HBM, ignore bandwidth\n"); - flags |= HWLOC_GUESS_MEMTIERS_FLAG_SPM_IS_HBM; - } - if (strstr(env, "node0_is_dram")) { - hwloc_debug("Assuming node0 is DRAM\n"); - flags |= HWLOC_GUESS_MEMTIERS_FLAG_NODE0_IS_DRAM; - } - } - - if (nr_tiers == 1) - /* Likely DRAM only, but could also be HBM-only in non-SPM mode. - * We cannot be sure, but it doesn't matter since there's a single tier. - */ - return 0; - - nr_unknown = nr_spm = 0; - unknown_tier[0] = unknown_tier[1] = spm_tier = NULL; - for(i=0; i DRAM or HBM? HBM won't be SPM on HBM-only CPUs - * unknown + CXL DRAM => DRAM or HBM? - */ - if (nr_unknown == 2 && !nr_spm) { - /* 2 unknown, could be DRAM + non-SPM HBM */ - hwloc_debug(" Trying to guess 2 unknown tiers using BW\n"); - hwloc__guess_dram_hbm_tiers(unknown_tier[0], unknown_tier[1], flags); - } else if (nr_unknown == 1 && nr_spm == 1) { - /* 1 unknown + 1 SPM, could be DRAM + SPM HBM */ - hwloc_debug(" Trying to guess 1 unknown + 1 SPM tiers using BW\n"); - hwloc__guess_dram_hbm_tiers(unknown_tier[0], spm_tier, flags); - } - - if (flags & HWLOC_GUESS_MEMTIERS_FLAG_SPM_IS_HBM) { - /* force mark SPM as HBM */ - for(i=0; ios_index)) { - const char *subtype = hwloc_memory_tier_type_snprintf(tiers[j].type); - if (!node->subtype || force) { /* don't overwrite the existing subtype unless forced */ - if (subtype) { /* don't set a subtype for unknown tiers */ - hwloc_debug(" marking node L#%u P#%u as %s (was %s)\n", node->logical_index, node->os_index, subtype, node->subtype); - free(node->subtype); - node->subtype = strdup(subtype); - } - } else - hwloc_debug(" node L#%u P#%u already marked as %s, not setting %s\n", - node->logical_index, node->os_index, node->subtype, subtype); - if (nr_tiers > 1) { - char tmp[20]; - snprintf(tmp, sizeof(tmp), "%u", j); - hwloc__add_info_nodup(&node->infos, &node->infos_count, "MemoryTier", tmp, 1); - } - break; /* each node is in a single tier */ - } - } - } - if (nr_tiers > 1) { - hwloc_obj_t root = hwloc_get_root_obj(topology); - char tmp[20]; - snprintf(tmp, sizeof(tmp), "%u", nr_tiers); - hwloc__add_info_nodup(&root->infos, &root->infos_count, "MemoryTiersNr", tmp, 1); - } -} - -int -hwloc_internal_memattrs_guess_memory_tiers(hwloc_topology_t topology, int force_subtype) -{ - struct hwloc_memory_tier_s *tiers; - unsigned nr_tiers; - unsigned i; - const char *env; - - env = getenv("HWLOC_MEMTIERS"); - if (env) { - if (!strcmp(env, "none")) - goto out; - tiers = hwloc__force_memory_tiers(topology, &nr_tiers, env); - if (tiers) { - assert(nr_tiers > 0); - force_subtype = 1; - goto ready; - } - } - - tiers = hwloc__group_memory_tiers(topology, &nr_tiers); - if (!tiers) - goto out; - - hwloc__guess_memory_tiers_types(topology, nr_tiers, tiers); - - /* sort tiers by BW first, then by type */ - hwloc_debug("Sorting memory tiers...\n"); - qsort(tiers, nr_tiers, sizeof(*tiers), compare_tiers_by_bw_and_type); - - ready: -#ifdef HWLOC_DEBUG - for(i=0; ipci_forced_locality = NULL; topology->first_pci_locality = topology->last_pci_locality = NULL; - -#define HWLOC_PCI_LOCALITY_QUIRK_CRAY_EX235A (1ULL<<0) -#define HWLOC_PCI_LOCALITY_QUIRK_FAKE (1ULL<<62) - topology->pci_locality_quirks = (uint64_t) -1; - /* -1 is unknown, 0 is disabled, >0 is bitmask of enabled quirks. - * bit 63 should remain unused so that -1 is unaccessible as a bitmask. - */ } void @@ -153,7 +146,7 @@ hwloc_pci_discovery_prepare(struct hwloc_topology *topology) } free(buffer); } else { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc/pci: Ignoring HWLOC_PCI_LOCALITY file `%s' too large (%lu bytes)\n", env, (unsigned long) st.st_size); } @@ -340,7 +333,7 @@ hwloc_pci_add_object(struct hwloc_obj *parent, struct hwloc_obj **parent_io_firs } case HWLOC_PCI_BUSID_EQUAL: { static int reported = 0; - if (!reported && HWLOC_SHOW_CRITICAL_ERRORS()) { + if (!reported && hwloc_hide_errors() < 2) { fprintf(stderr, "*********************************************************\n"); fprintf(stderr, "* hwloc %s received invalid PCI information.\n", HWLOC_VERSION); fprintf(stderr, "*\n"); @@ -449,90 +442,13 @@ hwloc_pcidisc_add_hostbridges(struct hwloc_topology *topology, return new; } -/* return 1 if a quirk was applied */ -static int -hwloc__pci_find_busid_parent_quirk(struct hwloc_topology *topology, - struct hwloc_pcidev_attr_s *busid, - hwloc_cpuset_t cpuset) +static struct hwloc_obj * +hwloc_pci_fixup_busid_parent(struct hwloc_topology *topology __hwloc_attribute_unused, + struct hwloc_pcidev_attr_s *busid __hwloc_attribute_unused, + struct hwloc_obj *parent __hwloc_attribute_unused) { - if (topology->pci_locality_quirks == (uint64_t)-1 /* unknown */) { - const char *dmi_board_name, *env; - - /* first invokation, detect which quirks are needed */ - topology->pci_locality_quirks = 0; /* no quirk yet */ - - dmi_board_name = hwloc_obj_get_info_by_name(hwloc_get_root_obj(topology), "DMIBoardName"); - if (dmi_board_name && !strcmp(dmi_board_name, "HPE CRAY EX235A")) { - hwloc_debug("enabling for PCI locality quirk for HPE Cray EX235A\n"); - topology->pci_locality_quirks |= HWLOC_PCI_LOCALITY_QUIRK_CRAY_EX235A; - } - - env = getenv("HWLOC_PCI_LOCALITY_QUIRK_FAKE"); - if (env && atoi(env)) { - hwloc_debug("enabling for PCI locality fake quirk (attaching everything to last PU)\n"); - topology->pci_locality_quirks |= HWLOC_PCI_LOCALITY_QUIRK_FAKE; - } - } - - if (topology->pci_locality_quirks & HWLOC_PCI_LOCALITY_QUIRK_FAKE) { - unsigned last = hwloc_bitmap_last(hwloc_topology_get_topology_cpuset(topology)); - hwloc_bitmap_set(cpuset, last); - return 1; - } - - if (topology->pci_locality_quirks & HWLOC_PCI_LOCALITY_QUIRK_CRAY_EX235A) { - /* AMD Trento has xGMI ports connected to individual CCDs (8 cores + L3) - * instead of NUMA nodes (pairs of CCDs within Trento) as is usual in AMD EPYC CPUs. - * This is not described by the ACPI tables, hence we need to manually hardwire - * the xGMI locality for the (currently single) server that currently uses that CPU. - * It's not clear if ACPI tables can/will ever be fixed (would require one initiator - * proximity domain per CCD), or if Linux can/will work around the issue. - */ - if (busid->domain == 0) { - if (busid->bus >= 0xd0 && busid->bus <= 0xd1) { - hwloc_bitmap_set_range(cpuset, 0, 7); - hwloc_bitmap_set_range(cpuset, 64, 71); - return 1; - } - if (busid->bus >= 0xd4 && busid->bus <= 0xd6) { - hwloc_bitmap_set_range(cpuset, 8, 15); - hwloc_bitmap_set_range(cpuset, 72, 79); - return 1; - } - if (busid->bus >= 0xc8 && busid->bus <= 0xc9) { - hwloc_bitmap_set_range(cpuset, 16, 23); - hwloc_bitmap_set_range(cpuset, 80, 87); - return 1; - } - if (busid->bus >= 0xcc && busid->bus <= 0xce) { - hwloc_bitmap_set_range(cpuset, 24, 31); - hwloc_bitmap_set_range(cpuset, 88, 95); - return 1; - } - if (busid->bus >= 0xd8 && busid->bus <= 0xd9) { - hwloc_bitmap_set_range(cpuset, 32, 39); - hwloc_bitmap_set_range(cpuset, 96, 103); - return 1; - } - if (busid->bus >= 0xdc && busid->bus <= 0xde) { - hwloc_bitmap_set_range(cpuset, 40, 47); - hwloc_bitmap_set_range(cpuset, 104, 111); - return 1; - } - if (busid->bus >= 0xc0 && busid->bus <= 0xc1) { - hwloc_bitmap_set_range(cpuset, 48, 55); - hwloc_bitmap_set_range(cpuset, 112, 119); - return 1; - } - if (busid->bus >= 0xc4 && busid->bus <= 0xc6) { - hwloc_bitmap_set_range(cpuset, 56, 63); - hwloc_bitmap_set_range(cpuset, 120, 127); - return 1; - } - } - } - - return 0; + /* no quirk for now */ + return parent; } static struct hwloc_obj * @@ -541,7 +457,7 @@ hwloc__pci_find_busid_parent(struct hwloc_topology *topology, struct hwloc_pcide hwloc_bitmap_t cpuset = hwloc_bitmap_alloc(); hwloc_obj_t parent; int forced = 0; - int noquirks = 0, got_quirked = 0; + int noquirks = 0; unsigned i; int err; @@ -574,7 +490,7 @@ hwloc__pci_find_busid_parent(struct hwloc_topology *topology, struct hwloc_pcide if (env) { static int reported = 0; if (!topology->pci_has_forced_locality && !reported) { - if (HWLOC_SHOW_ALL_ERRORS()) + if (!hwloc_hide_errors()) fprintf(stderr, "hwloc/pci: Environment variable %s is deprecated, please use HWLOC_PCI_LOCALITY instead.\n", env); reported = 1; } @@ -589,13 +505,7 @@ hwloc__pci_find_busid_parent(struct hwloc_topology *topology, struct hwloc_pcide } } - if (!forced && !noquirks && topology->pci_locality_quirks /* either quirks are unknown yet, or some are enabled */) { - err = hwloc__pci_find_busid_parent_quirk(topology, busid, cpuset); - if (err > 0) - got_quirked = 1; - } - - if (!forced && !got_quirked) { + if (!forced) { /* get the cpuset by asking the backend that provides the relevant hook, if any. */ struct hwloc_backend *backend = topology->get_pci_busid_cpuset_backend; if (backend) @@ -610,7 +520,11 @@ hwloc__pci_find_busid_parent(struct hwloc_topology *topology, struct hwloc_pcide hwloc_debug_bitmap(" will attach PCI bus to cpuset %s\n", cpuset); parent = hwloc_find_insert_io_parent_by_complete_cpuset(topology, cpuset); - if (!parent) { + if (parent) { + if (!noquirks) + /* We found a valid parent. Check that the OS didn't report invalid locality */ + parent = hwloc_pci_fixup_busid_parent(topology, busid, parent); + } else { /* Fallback to root */ parent = hwloc_get_root_obj(topology); } @@ -886,12 +800,26 @@ hwloc_pcidisc_find_linkspeed(const unsigned char *config, unsigned offset, float *linkspeed) { unsigned linksta, speed, width; + float lanespeed; memcpy(&linksta, &config[offset + HWLOC_PCI_EXP_LNKSTA], 4); speed = linksta & HWLOC_PCI_EXP_LNKSTA_SPEED; /* PCIe generation */ width = (linksta & HWLOC_PCI_EXP_LNKSTA_WIDTH) >> 4; /* how many lanes */ + /* PCIe Gen1 = 2.5GT/s signal-rate per lane with 8/10 encoding = 0.25GB/s data-rate per lane + * PCIe Gen2 = 5 GT/s signal-rate per lane with 8/10 encoding = 0.5 GB/s data-rate per lane + * PCIe Gen3 = 8 GT/s signal-rate per lane with 128/130 encoding = 1 GB/s data-rate per lane + * PCIe Gen4 = 16 GT/s signal-rate per lane with 128/130 encoding = 2 GB/s data-rate per lane + * PCIe Gen5 = 32 GT/s signal-rate per lane with 128/130 encoding = 4 GB/s data-rate per lane + */ - *linkspeed = hwloc__pci_link_speed(speed, width); + /* lanespeed in Gbit/s */ + if (speed <= 2) + lanespeed = 2.5f * speed * 0.8f; + else + lanespeed = 8.0f * (1<<(speed-3)) * 128/130; /* assume Gen6 will be 64 GT/s and so on */ + + /* linkspeed in GB/s */ + *linkspeed = lanespeed * width / 8; return 0; } @@ -1015,7 +943,6 @@ hwloc_pci_class_string(unsigned short class_id) switch (class_id) { case 0x0500: return "RAM"; case 0x0501: return "Flash"; - case 0x0502: return "CXLMem"; } return "Memory"; case 0x06: diff --git a/src/3rdparty/hwloc/src/shmem.c b/src/3rdparty/hwloc/src/shmem.c index de0a72ec..c73c6d92 100644 --- a/src/3rdparty/hwloc/src/shmem.c +++ b/src/3rdparty/hwloc/src/shmem.c @@ -23,7 +23,6 @@ struct hwloc_shmem_header { uint32_t header_length; /* where the actual topology starts in the file/mapping */ uint64_t mmap_address; /* virtual address to pass to mmap */ uint64_t mmap_length; /* length to pass to mmap (includes the header) */ - /* we will pad the end to a multiple of pointer size so that the topology is well aligned */ }; #define HWLOC_SHMEM_MALLOC_ALIGN 8UL @@ -86,7 +85,6 @@ hwloc_shmem_topology_write(hwloc_topology_t topology, hwloc_topology_t new; struct hwloc_tma tma; struct hwloc_shmem_header header; - uint32_t header_length = (sizeof(header) + sizeof(void*) - 1) & ~(sizeof(void*) - 1); /* pad to a multiple of pointer size */ void *mmap_res; int err; @@ -102,7 +100,7 @@ hwloc_shmem_topology_write(hwloc_topology_t topology, hwloc_internal_memattrs_refresh(topology); header.header_version = HWLOC_SHMEM_HEADER_VERSION; - header.header_length = header_length; + header.header_length = sizeof(header); header.mmap_address = (uintptr_t) mmap_address; header.mmap_length = length; @@ -129,7 +127,7 @@ hwloc_shmem_topology_write(hwloc_topology_t topology, tma.malloc = tma_shmem_malloc; tma.dontfree = 1; - tma.data = (char *)mmap_res + header_length; + tma.data = (char *)mmap_res + sizeof(header); err = hwloc__topology_dup(&new, topology, &tma); if (err < 0) return err; @@ -156,7 +154,6 @@ hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp, { hwloc_topology_t new, old; struct hwloc_shmem_header header; - uint32_t header_length = (sizeof(header) + sizeof(void*) - 1) & ~(sizeof(void*) - 1); /* pad to a multiple of pointer size */ void *mmap_res; int err; @@ -174,7 +171,7 @@ hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp, return -1; if (header.header_version != HWLOC_SHMEM_HEADER_VERSION - || header.header_length != header_length + || header.header_length != sizeof(header) || header.mmap_address != (uintptr_t) mmap_address || header.mmap_length != length) { errno = EINVAL; @@ -189,7 +186,7 @@ hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp, goto out_with_mmap; } - old = (hwloc_topology_t)((char*)mmap_address + header_length); + old = (hwloc_topology_t)((char*)mmap_address + sizeof(header)); if (hwloc_topology_abi_check(old) < 0) { errno = EINVAL; goto out_with_mmap; diff --git a/src/3rdparty/hwloc/src/topology-synthetic.c b/src/3rdparty/hwloc/src/topology-synthetic.c index 3bf5030b..5dd4baaa 100644 --- a/src/3rdparty/hwloc/src/topology-synthetic.c +++ b/src/3rdparty/hwloc/src/topology-synthetic.c @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2023 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2010 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -23,7 +23,6 @@ struct hwloc_synthetic_attr_s { unsigned depth; /* For caches/groups */ hwloc_obj_cache_type_t cachetype; /* For caches */ hwloc_uint64_t memorysize; /* For caches/memory */ - hwloc_uint64_t memorysidecachesize; /* Single level of memory-side-cache in-front of a NUMA node */ }; struct hwloc_synthetic_indexes_s { @@ -324,29 +323,17 @@ hwloc_synthetic_parse_memory_attr(const char *attr, const char **endp) hwloc_uint64_t size; size = strtoull(attr, (char **) &endptr, 0); if (!hwloc_strncasecmp(endptr, "TB", 2)) { - size *= 1000ULL*1000ULL*1000ULL*1000ULL; - endptr += 2; - } else if (!hwloc_strncasecmp(endptr, "TiB", 3)) { size <<= 40; - endptr += 3; + endptr += 2; } else if (!hwloc_strncasecmp(endptr, "GB", 2)) { - size *= 1000ULL*1000ULL*1000ULL; - endptr += 2; - } else if (!hwloc_strncasecmp(endptr, "GiB", 3)) { size <<= 30; - endptr += 3; + endptr += 2; } else if (!hwloc_strncasecmp(endptr, "MB", 2)) { - size *= 1000ULL*1000ULL; - endptr += 2; - } else if (!hwloc_strncasecmp(endptr, "MiB", 3)) { size <<= 20; - endptr += 3; - } else if (!hwloc_strncasecmp(endptr, "kB", 2)) { - size *= 1000ULL; endptr += 2; - } else if (!hwloc_strncasecmp(endptr, "kiB", 3)) { + } else if (!hwloc_strncasecmp(endptr, "kB", 2)) { size <<= 10; - endptr += 3; + endptr += 2; } *endp = endptr; return size; @@ -381,9 +368,6 @@ hwloc_synthetic_parse_attrs(const char *attrs, const char **next_posp, } else if (!iscache && !strncmp("memory=", attrs, 7)) { memorysize = hwloc_synthetic_parse_memory_attr(attrs+7, &attrs); - } else if (!strncmp("memorysidecachesize=", attrs, 20)) { - sattr->memorysidecachesize = hwloc_synthetic_parse_memory_attr(attrs+20, &attrs); - } else if (!strncmp("indexes=", attrs, 8)) { index_string = attrs+8; attrs += 8; @@ -391,9 +375,10 @@ hwloc_synthetic_parse_attrs(const char *attrs, const char **next_posp, attrs += index_string_length; } else { - size_t length = strcspn(attrs, " )"); - fprintf(stderr, "hwloc/synthetic: Ignoring unknown attribute at '%s'\n", attrs); - attrs += length; + if (verbose) + fprintf(stderr, "Unknown attribute at '%s'\n", attrs); + errno = EINVAL; + return -1; } if (' ' == *attrs) @@ -419,32 +404,6 @@ hwloc_synthetic_parse_attrs(const char *attrs, const char **next_posp, return 0; } -static void -hwloc_synthetic_set_default_attrs(struct hwloc_synthetic_attr_s *sattr, - int *type_count) -{ - hwloc_obj_type_t type = sattr->type; - - if (type == HWLOC_OBJ_GROUP) { - if (sattr->depth == (unsigned)-1) - sattr->depth = type_count[HWLOC_OBJ_GROUP]--; - - } else if (hwloc__obj_type_is_cache(type)) { - if (!sattr->memorysize) { - if (1 == sattr->depth) - /* 32KiB in L1 */ - sattr->memorysize = 32*1024; - else - /* *4 at each level, starting from 1MiB for L2, unified */ - sattr->memorysize = 256ULL*1024 << (2*sattr->depth); - } - - } else if (type == HWLOC_OBJ_NUMANODE && !sattr->memorysize) { - /* 1GiB in memory nodes. */ - sattr->memorysize = 1024*1024*1024; - } -} - /* frees level until arity = 0 */ static void hwloc_synthetic_free_levels(struct hwloc_synthetic_backend_data_s *data) @@ -494,7 +453,6 @@ hwloc_backend_synthetic_init(struct hwloc_synthetic_backend_data_s *data, data->level[0].indexes.string = NULL; data->level[0].indexes.array = NULL; data->level[0].attr.memorysize = 0; - data->level[0].attr.memorysidecachesize = 0; data->level[0].attached = NULL; type_count[HWLOC_OBJ_MACHINE] = 1; if (*description == '(') { @@ -544,7 +502,6 @@ hwloc_backend_synthetic_init(struct hwloc_synthetic_backend_data_s *data, if (attached) { attached->attr.type = type; attached->attr.memorysize = 0; - attached->attr.memorysidecachesize = 0; /* attached->attr.depth and .cachetype unused */ attached->next = NULL; pprev = &data->level[count-1].attached; @@ -632,7 +589,7 @@ hwloc_backend_synthetic_init(struct hwloc_synthetic_backend_data_s *data, } if (!item) { if (verbose) - fprintf(stderr,"Synthetic string with disallowed 0 number of objects at '%s'\n", pos); + fprintf(stderr,"Synthetic string with disallow 0 number of objects at '%s'\n", pos); errno = EINVAL; goto error; } @@ -642,7 +599,6 @@ hwloc_backend_synthetic_init(struct hwloc_synthetic_backend_data_s *data, data->level[count].indexes.string = NULL; data->level[count].indexes.array = NULL; data->level[count].attr.memorysize = 0; - data->level[count].attr.memorysidecachesize = 0; if (*next_pos == '(') { err = hwloc_synthetic_parse_attrs(next_pos+1, &next_pos, &data->level[count].attr, &data->level[count].indexes, verbose); if (err < 0) @@ -828,7 +784,6 @@ hwloc_backend_synthetic_init(struct hwloc_synthetic_backend_data_s *data, data->level[1].indexes.string = NULL; data->level[1].indexes.array = NULL; data->level[1].attr.memorysize = 0; - data->level[1].attr.memorysidecachesize = 0; data->level[1].totalwidth = data->level[0].totalwidth; /* update arity to insert a single NUMA node per parent */ data->level[1].arity = data->level[0].arity; @@ -836,14 +791,30 @@ hwloc_backend_synthetic_init(struct hwloc_synthetic_backend_data_s *data, count++; } - /* set default attributes that depend on the depth/hierarchy of levels */ for (i=0; ilevel[i]; - hwloc_synthetic_set_default_attrs(&curlevel->attr, type_count); - for(attached = curlevel->attached; attached != NULL; attached = attached->next) - hwloc_synthetic_set_default_attrs(&attached->attr, type_count); - hwloc_synthetic_process_indexes(data, &curlevel->indexes, curlevel->totalwidth, verbose); + hwloc_obj_type_t type = curlevel->attr.type; + + if (type == HWLOC_OBJ_GROUP) { + if (curlevel->attr.depth == (unsigned)-1) + curlevel->attr.depth = type_count[HWLOC_OBJ_GROUP]--; + + } else if (hwloc__obj_type_is_cache(type)) { + if (!curlevel->attr.memorysize) { + if (1 == curlevel->attr.depth) + /* 32Kb in L1 */ + curlevel->attr.memorysize = 32*1024; + else + /* *4 at each level, starting from 1MB for L2, unified */ + curlevel->attr.memorysize = 256ULL*1024 << (2*curlevel->attr.depth); + } + + } else if (type == HWLOC_OBJ_NUMANODE && !curlevel->attr.memorysize) { + /* 1GB in memory nodes. */ + curlevel->attr.memorysize = 1024*1024*1024; + } + + hwloc_synthetic_process_indexes(data, &data->level[i].indexes, data->level[i].totalwidth, verbose); } hwloc_synthetic_process_indexes(data, &data->numa_attached_indexes, data->numa_attached_nr, verbose); @@ -876,12 +847,6 @@ hwloc_synthetic_set_attr(struct hwloc_synthetic_attr_s *sattr, obj->attr->numanode.page_types[0].size = 4096; obj->attr->numanode.page_types[0].count = sattr->memorysize / 4096; break; - case HWLOC_OBJ_MEMCACHE: - obj->attr->cache.depth = 1; - obj->attr->cache.linesize = 64; - obj->attr->cache.type = HWLOC_OBJ_CACHE_UNIFIED; - obj->attr->cache.size = sattr->memorysidecachesize; - break; case HWLOC_OBJ_PACKAGE: case HWLOC_OBJ_DIE: break; @@ -949,14 +914,6 @@ hwloc_synthetic_insert_attached(struct hwloc_topology *topology, hwloc__insert_object_by_cpuset(topology, NULL, child, "synthetic:attached"); - if (attached->attr.memorysidecachesize) { - hwloc_obj_t mscachechild = hwloc_alloc_setup_object(topology, HWLOC_OBJ_MEMCACHE, HWLOC_UNKNOWN_INDEX); - mscachechild->cpuset = hwloc_bitmap_dup(set); - mscachechild->nodeset = hwloc_bitmap_dup(child->nodeset); - hwloc_synthetic_set_attr(&attached->attr, mscachechild); - hwloc__insert_object_by_cpuset(topology, NULL, mscachechild, "synthetic:attached:mscache"); - } - hwloc_synthetic_insert_attached(topology, data, attached->next, set); } @@ -1008,14 +965,6 @@ hwloc__look_synthetic(struct hwloc_topology *topology, hwloc_synthetic_set_attr(&curlevel->attr, obj); hwloc__insert_object_by_cpuset(topology, NULL, obj, "synthetic"); - - if (type == HWLOC_OBJ_NUMANODE && curlevel->attr.memorysidecachesize) { - hwloc_obj_t mscachechild = hwloc_alloc_setup_object(topology, HWLOC_OBJ_MEMCACHE, HWLOC_UNKNOWN_INDEX); - mscachechild->cpuset = hwloc_bitmap_dup(set); - mscachechild->nodeset = hwloc_bitmap_dup(obj->nodeset); - hwloc_synthetic_set_attr(&curlevel->attr, mscachechild); - hwloc__insert_object_by_cpuset(topology, NULL, mscachechild, "synthetic:mscache"); - } } hwloc_synthetic_insert_attached(topology, data, curlevel->attached, set); @@ -1256,7 +1205,6 @@ hwloc__export_synthetic_indexes(hwloc_obj_t *level, unsigned total, static int hwloc__export_synthetic_obj_attr(struct hwloc_topology * topology, - unsigned long flags, hwloc_obj_t obj, char *buffer, size_t buflen) { @@ -1264,7 +1212,6 @@ hwloc__export_synthetic_obj_attr(struct hwloc_topology * topology, const char * prefix = "("; char cachesize[64] = ""; char memsize[64] = ""; - char memorysidecachesize[64] = ""; int needindexes = 0; if (hwloc__obj_type_is_cache(obj->type) && obj->attr->cache.size) { @@ -1277,19 +1224,6 @@ hwloc__export_synthetic_obj_attr(struct hwloc_topology * topology, prefix, (unsigned long long) obj->attr->numanode.local_memory); prefix = separator; } - if (obj->type == HWLOC_OBJ_NUMANODE && !(flags & HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1)) { - hwloc_obj_t memorysidecache = obj->parent; - hwloc_uint64_t size = 0; - while (memorysidecache && memorysidecache->type == HWLOC_OBJ_MEMCACHE) { - size += memorysidecache->attr->cache.size; - memorysidecache = memorysidecache->parent; - } - if (size) { - snprintf(memorysidecachesize, sizeof(memorysidecachesize), "%smemorysidecachesize=%llu", - prefix, (unsigned long long) size); - prefix = separator; - } - } if (!obj->logical_index /* only display indexes once per level (not for non-first NUMA children, etc.) */ && (obj->type == HWLOC_OBJ_PU || obj->type == HWLOC_OBJ_NUMANODE)) { hwloc_obj_t cur = obj; @@ -1301,12 +1235,12 @@ hwloc__export_synthetic_obj_attr(struct hwloc_topology * topology, cur = cur->next_cousin; } } - if (*cachesize || *memsize || *memorysidecachesize || needindexes) { + if (*cachesize || *memsize || needindexes) { ssize_t tmplen = buflen; char *tmp = buffer; int res, ret = 0; - res = hwloc_snprintf(tmp, tmplen, "%s%s%s%s", cachesize, memsize, memorysidecachesize, needindexes ? "" : ")"); + res = hwloc_snprintf(tmp, tmplen, "%s%s%s", cachesize, memsize, needindexes ? "" : ")"); if (hwloc__export_synthetic_update_status(&ret, &tmp, &tmplen, res) < 0) return -1; @@ -1380,7 +1314,7 @@ hwloc__export_synthetic_obj(struct hwloc_topology * topology, unsigned long flag if (!(flags & HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_ATTRS)) { /* obj attributes */ - res = hwloc__export_synthetic_obj_attr(topology, flags, obj, tmp, tmplen); + res = hwloc__export_synthetic_obj_attr(topology, obj, tmp, tmplen); if (hwloc__export_synthetic_update_status(&ret, &tmp, &tmplen, res) < 0) return -1; } @@ -1405,7 +1339,7 @@ hwloc__export_synthetic_memory_children(struct hwloc_topology * topology, unsign if (flags & HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1) { /* v1: export a single NUMA child */ - if (parent->memory_arity > 1) { + if (parent->memory_arity > 1 || mchild->type != HWLOC_OBJ_NUMANODE) { /* not supported */ if (verbose) fprintf(stderr, "Cannot export to synthetic v1 if multiple memory children are attached to the same location.\n"); @@ -1416,9 +1350,6 @@ hwloc__export_synthetic_memory_children(struct hwloc_topology * topology, unsign if (needprefix) hwloc__export_synthetic_add_char(&ret, &tmp, &tmplen, ' '); - /* ignore memcaches and export the NUMA node */ - while (mchild->type != HWLOC_OBJ_NUMANODE) - mchild = mchild->memory_first_child; res = hwloc__export_synthetic_obj(topology, flags, mchild, 1, tmp, tmplen); if (hwloc__export_synthetic_update_status(&ret, &tmp, &tmplen, res) < 0) return -1; @@ -1426,25 +1357,16 @@ hwloc__export_synthetic_memory_children(struct hwloc_topology * topology, unsign } while (mchild) { - /* The core doesn't support shared memcache for now (because ACPI and Linux don't). - * So, for each mchild here, recurse only in the first children at each level. - * - * FIXME: whenever supported by the core, really recurse to export memcaches and numanode, + /* FIXME: really recurse to export memcaches and numanode, * but it requires clever parsing of [ memcache [numa] [numa] ] during import, * better attaching of things to describe the hierarchy. */ hwloc_obj_t numanode = mchild; - /* Only export the first NUMA node leaf of each memory child. - * Memcaches are ignored here, they will be summed and exported as a single attribute - * of the NUMA node in hwloc__export_synthetic_obj(). + /* only export the first NUMA node leaf of each memory child + * FIXME: This assumes mscache aren't shared between nodes, that's true in current platforms */ while (numanode && numanode->type != HWLOC_OBJ_NUMANODE) { - if (verbose && numanode->memory_arity > 1) { - static int warned = 0; - if (!warned) - fprintf(stderr, "Ignoring non-first memory children at non-first level of memory hierarchy.\n"); - warned = 1; - } + assert(numanode->arity == 1); numanode = numanode->memory_first_child; } assert(numanode); /* there's always a numanode at the bottom of the memory tree */ @@ -1577,21 +1499,17 @@ hwloc_topology_export_synthetic(struct hwloc_topology * topology, if (flags & HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_V1) { /* v1 requires all NUMA at the same level */ - hwloc_obj_t node, parent; + hwloc_obj_t node; signed pdepth; node = hwloc_get_obj_by_type(topology, HWLOC_OBJ_NUMANODE, 0); assert(node); - parent = node->parent; - while (!hwloc__obj_type_is_normal(parent->type)) - parent = parent->parent; - pdepth = parent->depth; + assert(hwloc__obj_type_is_normal(node->parent->type)); /* only depth-1 memory children for now */ + pdepth = node->parent->depth; while ((node = node->next_cousin) != NULL) { - parent = node->parent; - while (!hwloc__obj_type_is_normal(parent->type)) - parent = parent->parent; - if (parent->depth != pdepth) { + assert(hwloc__obj_type_is_normal(node->parent->type)); /* only depth-1 memory children for now */ + if (node->parent->depth != pdepth) { if (verbose) fprintf(stderr, "Cannot export to synthetic v1 if memory is attached to parents at different depths.\n"); errno = EINVAL; @@ -1604,7 +1522,7 @@ hwloc_topology_export_synthetic(struct hwloc_topology * topology, if (!(flags & HWLOC_TOPOLOGY_EXPORT_SYNTHETIC_FLAG_NO_ATTRS)) { /* obj attributes */ - res = hwloc__export_synthetic_obj_attr(topology, flags, obj, tmp, tmplen); + res = hwloc__export_synthetic_obj_attr(topology, obj, tmp, tmplen); if (res > 0) needprefix = 1; if (hwloc__export_synthetic_update_status(&ret, &tmp, &tmplen, res) < 0) diff --git a/src/3rdparty/hwloc/src/topology-windows.c b/src/3rdparty/hwloc/src/topology-windows.c index 8aa19aeb..d67c6b99 100644 --- a/src/3rdparty/hwloc/src/topology-windows.c +++ b/src/3rdparty/hwloc/src/topology-windows.c @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2025 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2012, 2020 Université Bordeaux * Copyright © 2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -13,7 +13,6 @@ #include "hwloc.h" #include "hwloc/windows.h" #include "private/private.h" -#include "private/windows.h" /* must be before windows.h */ #include "private/debug.h" #include @@ -56,9 +55,6 @@ typedef enum _LOGICAL_PROCESSOR_RELATIONSHIP { RelationCache, RelationProcessorPackage, RelationGroup, - RelationProcessorDie, - RelationNumaNodeEx, /* only used to *request* extended numa info only, but included in RelationAll, never returned on output */ - RelationProcessorModule, RelationAll = 0xffff } LOGICAL_PROCESSOR_RELATIONSHIP; #else /* HAVE_LOGICAL_PROCESSOR_RELATIONSHIP */ @@ -67,13 +63,28 @@ typedef enum _LOGICAL_PROCESSOR_RELATIONSHIP { # define RelationGroup 4 # define RelationAll 0xffff # endif /* HAVE_RELATIONPROCESSORPACKAGE */ -# ifndef HAVE_RELATIONPROCESSORDIE -# define RelationProcessorDie 5 -# define RelationNumaNodeEx 6 -# define RelationProcessorModule 7 -# endif #endif /* HAVE_LOGICAL_PROCESSOR_RELATIONSHIP */ +#ifndef HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION +typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION { + ULONG_PTR ProcessorMask; + LOGICAL_PROCESSOR_RELATIONSHIP Relationship; + _ANONYMOUS_UNION + union { + struct { + BYTE flags; + } ProcessorCore; + struct { + DWORD NodeNumber; + } NumaNode; + CACHE_DESCRIPTOR Cache; + ULONGLONG Reserved[2]; + } DUMMYUNIONNAME; +} SYSTEM_LOGICAL_PROCESSOR_INFORMATION, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION; +#endif + +/* Extended interface, for group support */ + #ifndef HAVE_GROUP_AFFINITY typedef struct _GROUP_AFFINITY { KAFFINITY Mask; @@ -82,40 +93,35 @@ typedef struct _GROUP_AFFINITY { } GROUP_AFFINITY, *PGROUP_AFFINITY; #endif -/* always use our own structure because the EfficiencyClass field didn't exist before Win10 */ +#ifndef HAVE_PROCESSOR_RELATIONSHIP typedef struct HWLOC_PROCESSOR_RELATIONSHIP { BYTE Flags; - BYTE EfficiencyClass; /* for RelationProcessorCore, higher means greater performance but less efficiency */ + BYTE EfficiencyClass; /* for RelationProcessorCore, higher means greater performance but less efficiency, only available in Win10+ */ BYTE Reserved[20]; WORD GroupCount; GROUP_AFFINITY GroupMask[ANYSIZE_ARRAY]; -} HWLOC_PROCESSOR_RELATIONSHIP; +} PROCESSOR_RELATIONSHIP, *PPROCESSOR_RELATIONSHIP; +#endif -/* always use our own structure because the GroupCount and GroupMasks fields didn't exist in some Win10 */ -typedef struct HWLOC_NUMA_NODE_RELATIONSHIP { +#ifndef HAVE_NUMA_NODE_RELATIONSHIP +typedef struct _NUMA_NODE_RELATIONSHIP { DWORD NodeNumber; - BYTE Reserved[18]; - WORD GroupCount; - _ANONYMOUS_UNION - union { - GROUP_AFFINITY GroupMask; - GROUP_AFFINITY GroupMasks[ANYSIZE_ARRAY]; - } DUMMYUNIONNAME; -} HWLOC_NUMA_NODE_RELATIONSHIP; + BYTE Reserved[20]; + GROUP_AFFINITY GroupMask; +} NUMA_NODE_RELATIONSHIP, *PNUMA_NODE_RELATIONSHIP; +#endif -typedef struct HWLOC_CACHE_RELATIONSHIP { +#ifndef HAVE_CACHE_RELATIONSHIP +typedef struct _CACHE_RELATIONSHIP { BYTE Level; BYTE Associativity; WORD LineSize; DWORD CacheSize; PROCESSOR_CACHE_TYPE Type; - BYTE Reserved[18]; - WORD GroupCount; - union { - GROUP_AFFINITY GroupMask; - GROUP_AFFINITY GroupMasks[ANYSIZE_ARRAY]; - } DUMMYUNIONNAME; -} HWLOC_CACHE_RELATIONSHIP; + BYTE Reserved[20]; + GROUP_AFFINITY GroupMask; +} CACHE_RELATIONSHIP, *PCACHE_RELATIONSHIP; +#endif #ifndef HAVE_PROCESSOR_GROUP_INFO typedef struct _PROCESSOR_GROUP_INFO { @@ -135,19 +141,20 @@ typedef struct _GROUP_RELATIONSHIP { } GROUP_RELATIONSHIP, *PGROUP_RELATIONSHIP; #endif -/* always use our own structure because we need our own HWLOC_PROCESSOR/CACHE/NUMA_NODE_RELATIONSHIP */ -typedef struct HWLOC_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { +#ifndef HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX +typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { LOGICAL_PROCESSOR_RELATIONSHIP Relationship; DWORD Size; _ANONYMOUS_UNION union { - HWLOC_PROCESSOR_RELATIONSHIP Processor; - HWLOC_NUMA_NODE_RELATIONSHIP NumaNode; - HWLOC_CACHE_RELATIONSHIP Cache; + PROCESSOR_RELATIONSHIP Processor; + NUMA_NODE_RELATIONSHIP NumaNode; + CACHE_RELATIONSHIP Cache; GROUP_RELATIONSHIP Group; /* Odd: no member to tell the cpu mask of the package... */ } DUMMYUNIONNAME; -} HWLOC_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; +} SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; +#endif #ifndef HAVE_PSAPI_WORKING_SET_EX_BLOCK typedef union _PSAPI_WORKING_SET_EX_BLOCK { @@ -193,7 +200,10 @@ static PFN_GETCURRENTPROCESSORNUMBER GetCurrentProcessorNumberProc; typedef VOID (WINAPI *PFN_GETCURRENTPROCESSORNUMBEREX)(PPROCESSOR_NUMBER); static PFN_GETCURRENTPROCESSORNUMBEREX GetCurrentProcessorNumberExProc; -typedef BOOL (WINAPI *PFN_GETLOGICALPROCESSORINFORMATIONEX)(LOGICAL_PROCESSOR_RELATIONSHIP relationship, HWLOC_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *Buffer, PDWORD ReturnLength); +typedef BOOL (WINAPI *PFN_GETLOGICALPROCESSORINFORMATION)(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer, PDWORD ReturnLength); +static PFN_GETLOGICALPROCESSORINFORMATION GetLogicalProcessorInformationProc; + +typedef BOOL (WINAPI *PFN_GETLOGICALPROCESSORINFORMATIONEX)(LOGICAL_PROCESSOR_RELATIONSHIP relationship, PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX Buffer, PDWORD ReturnLength); static PFN_GETLOGICALPROCESSORINFORMATIONEX GetLogicalProcessorInformationExProc; typedef BOOL (WINAPI *PFN_SETTHREADGROUPAFFINITY)(HANDLE hThread, const GROUP_AFFINITY *GroupAffinity, PGROUP_AFFINITY PreviousGroupAffinity); @@ -228,12 +238,14 @@ static void hwloc_win_get_function_ptrs(void) #pragma GCC diagnostic ignored "-Wcast-function-type" #endif - kernel32 = LoadLibrary(TEXT("kernel32.dll")); + kernel32 = LoadLibrary("kernel32.dll"); if (kernel32) { GetActiveProcessorGroupCountProc = (PFN_GETACTIVEPROCESSORGROUPCOUNT) GetProcAddress(kernel32, "GetActiveProcessorGroupCount"); GetActiveProcessorCountProc = (PFN_GETACTIVEPROCESSORCOUNT) GetProcAddress(kernel32, "GetActiveProcessorCount"); + GetLogicalProcessorInformationProc = + (PFN_GETLOGICALPROCESSORINFORMATION) GetProcAddress(kernel32, "GetLogicalProcessorInformation"); GetCurrentProcessorNumberProc = (PFN_GETCURRENTPROCESSORNUMBER) GetProcAddress(kernel32, "GetCurrentProcessorNumber"); GetCurrentProcessorNumberExProc = @@ -257,12 +269,12 @@ static void hwloc_win_get_function_ptrs(void) } if (!QueryWorkingSetExProc) { - HMODULE psapi = LoadLibrary(TEXT("psapi.dll")); + HMODULE psapi = LoadLibrary("psapi.dll"); if (psapi) QueryWorkingSetExProc = (PFN_QUERYWORKINGSETEX) GetProcAddress(psapi, "QueryWorkingSetEx"); } - ntdll = GetModuleHandle(TEXT("ntdll")); + ntdll = GetModuleHandle("ntdll"); RtlGetVersionProc = (PFN_RTLGETVERSION) GetProcAddress(ntdll, "RtlGetVersion"); #if HWLOC_HAVE_GCC_W_CAST_FUNCTION_TYPE @@ -358,13 +370,13 @@ static hwloc_cpuset_t * processor_group_cpusets = NULL; static void hwloc_win_get_processor_groups(void) { - HWLOC_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *procInfoTotal, *tmpprocInfoTotal, *procInfo; + PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX procInfoTotal, tmpprocInfoTotal, procInfo; DWORD length; unsigned i; hwloc_debug("querying windows processor groups\n"); - if (!GetLogicalProcessorInformationExProc) + if (!GetActiveProcessorGroupCountProc || !GetLogicalProcessorInformationExProc) goto error; nr_processor_groups = GetActiveProcessorGroupCountProc(); @@ -374,8 +386,8 @@ hwloc_win_get_processor_groups(void) hwloc_debug("found %lu windows processor groups\n", nr_processor_groups); if (nr_processor_groups > 1 && SIZEOF_VOID_P == 4) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) - fprintf(stderr, "hwloc/windows: multiple processor groups found on 32bits Windows, topology may be invalid/incomplete.\n"); + if (!hwloc_hide_errors()) + fprintf(stderr, "hwloc: multiple processor groups found on 32bits Windows, topology may be invalid/incomplete.\n"); } length = 0; @@ -403,8 +415,6 @@ hwloc_win_get_processor_groups(void) assert(procInfo->Relationship == RelationGroup); - hwloc_debug("Found %u active windows processor groups\n", - (unsigned) procInfo->Group.ActiveGroupCount); for (id = 0; id < procInfo->Group.ActiveGroupCount; id++) { KAFFINITY mask; hwloc_bitmap_t set; @@ -414,8 +424,8 @@ hwloc_win_get_processor_groups(void) goto error_with_cpusets; mask = procInfo->Group.GroupInfo[id].ActiveProcessorMask; - hwloc_debug("group %u with %u cpus mask 0x%llx\n", id, - (unsigned) procInfo->Group.GroupInfo[id].ActiveProcessorCount, (unsigned long long) mask); + hwloc_debug("group %u %d cpus mask %lx\n", id, + procInfo->Group.GroupInfo[id].ActiveProcessorCount, mask); /* KAFFINITY is ULONG_PTR */ hwloc_bitmap_set_ith_ULONG_PTR(set, id, mask); /* FIXME: what if running 32bits on a 64bits windows with 64-processor groups? @@ -995,15 +1005,9 @@ hwloc_look_windows(struct hwloc_backend *backend, struct hwloc_disc_status *dsta OSVERSIONINFOEX osvi; char versionstr[20]; char hostname[122] = ""; -#if !defined(__CYGWIN__) - DWORD hostname_size = sizeof(hostname); -#else - size_t hostname_size = sizeof(hostname); -#endif + unsigned hostname_size = sizeof(hostname); int has_efficiencyclass = 0; struct hwloc_win_efficiency_classes eclasses; - char *env = getenv("HWLOC_WINDOWS_PROCESSOR_GROUP_OBJS"); - int keep_pgroup_objs = (env && atoi(env)); assert(dstatus->phase == HWLOC_DISC_PHASE_CPU); @@ -1034,8 +1038,137 @@ hwloc_look_windows(struct hwloc_backend *backend, struct hwloc_disc_status *dsta GetSystemInfo(&SystemInfo); + if (!GetLogicalProcessorInformationExProc && GetLogicalProcessorInformationProc) { + PSYSTEM_LOGICAL_PROCESSOR_INFORMATION procInfo, tmpprocInfo; + unsigned id; + unsigned i; + struct hwloc_obj *obj; + hwloc_obj_type_t type; + + length = 0; + procInfo = NULL; + + while (1) { + if (GetLogicalProcessorInformationProc(procInfo, &length)) + break; + if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) + return -1; + tmpprocInfo = realloc(procInfo, length); + if (!tmpprocInfo) { + free(procInfo); + goto out; + } + procInfo = tmpprocInfo; + } + + assert(!length || procInfo); + + for (i = 0; i < length / sizeof(*procInfo); i++) { + + /* Ignore unknown caches */ + if (procInfo->Relationship == RelationCache + && procInfo->Cache.Type != CacheUnified + && procInfo->Cache.Type != CacheData + && procInfo->Cache.Type != CacheInstruction) + continue; + + id = HWLOC_UNKNOWN_INDEX; + switch (procInfo[i].Relationship) { + case RelationNumaNode: + type = HWLOC_OBJ_NUMANODE; + id = procInfo[i].NumaNode.NodeNumber; + gotnuma++; + if (id > max_numanode_index) + max_numanode_index = id; + break; + case RelationProcessorPackage: + type = HWLOC_OBJ_PACKAGE; + break; + case RelationCache: + type = (procInfo[i].Cache.Type == CacheInstruction ? HWLOC_OBJ_L1ICACHE : HWLOC_OBJ_L1CACHE) + procInfo[i].Cache.Level - 1; + break; + case RelationProcessorCore: + type = HWLOC_OBJ_CORE; + break; + case RelationGroup: + default: + type = HWLOC_OBJ_GROUP; + break; + } + + if (!hwloc_filter_check_keep_object_type(topology, type)) + continue; + + obj = hwloc_alloc_setup_object(topology, type, id); + obj->cpuset = hwloc_bitmap_alloc(); + hwloc_debug("%s#%u mask %llx\n", hwloc_obj_type_string(type), id, (unsigned long long) procInfo[i].ProcessorMask); + /* ProcessorMask is a ULONG_PTR */ + hwloc_bitmap_set_ith_ULONG_PTR(obj->cpuset, 0, procInfo[i].ProcessorMask); + hwloc_debug_2args_bitmap("%s#%u bitmap %s\n", hwloc_obj_type_string(type), id, obj->cpuset); + + switch (type) { + case HWLOC_OBJ_NUMANODE: + { + ULONGLONG avail; + obj->nodeset = hwloc_bitmap_alloc(); + hwloc_bitmap_set(obj->nodeset, id); + if ((GetNumaAvailableMemoryNodeExProc && GetNumaAvailableMemoryNodeExProc(id, &avail)) + || (GetNumaAvailableMemoryNodeProc && GetNumaAvailableMemoryNodeProc(id, &avail))) { + obj->attr->numanode.local_memory = avail; + gotnumamemory++; + } + obj->attr->numanode.page_types_len = 2; + obj->attr->numanode.page_types = malloc(2 * sizeof(*obj->attr->numanode.page_types)); + memset(obj->attr->numanode.page_types, 0, 2 * sizeof(*obj->attr->numanode.page_types)); + obj->attr->numanode.page_types_len = 1; + obj->attr->numanode.page_types[0].size = SystemInfo.dwPageSize; +#if HAVE_DECL__SC_LARGE_PAGESIZE + obj->attr->numanode.page_types_len++; + obj->attr->numanode.page_types[1].size = sysconf(_SC_LARGE_PAGESIZE); +#endif + break; + } + case HWLOC_OBJ_L1CACHE: + case HWLOC_OBJ_L2CACHE: + case HWLOC_OBJ_L3CACHE: + case HWLOC_OBJ_L4CACHE: + case HWLOC_OBJ_L5CACHE: + case HWLOC_OBJ_L1ICACHE: + case HWLOC_OBJ_L2ICACHE: + case HWLOC_OBJ_L3ICACHE: + obj->attr->cache.size = procInfo[i].Cache.Size; + obj->attr->cache.associativity = procInfo[i].Cache.Associativity == CACHE_FULLY_ASSOCIATIVE ? -1 : procInfo[i].Cache.Associativity ; + obj->attr->cache.linesize = procInfo[i].Cache.LineSize; + obj->attr->cache.depth = procInfo[i].Cache.Level; + switch (procInfo->Cache.Type) { + case CacheUnified: + obj->attr->cache.type = HWLOC_OBJ_CACHE_UNIFIED; + break; + case CacheData: + obj->attr->cache.type = HWLOC_OBJ_CACHE_DATA; + break; + case CacheInstruction: + obj->attr->cache.type = HWLOC_OBJ_CACHE_INSTRUCTION; + break; + default: + hwloc_free_unlinked_object(obj); + continue; + } + break; + case HWLOC_OBJ_GROUP: + obj->attr->group.kind = procInfo[i].Relationship == RelationGroup ? HWLOC_GROUP_KIND_WINDOWS_PROCESSOR_GROUP : HWLOC_GROUP_KIND_WINDOWS_RELATIONSHIP_UNKNOWN; + break; + default: + break; + } + hwloc__insert_object_by_cpuset(topology, NULL, obj, "windows:GetLogicalProcessorInformation"); + } + + free(procInfo); + } + if (GetLogicalProcessorInformationExProc) { - HWLOC_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *procInfoTotal, *tmpprocInfoTotal, *procInfo; + PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX procInfoTotal, tmpprocInfoTotal, procInfo; unsigned id; struct hwloc_obj *obj; hwloc_obj_type_t type; @@ -1063,32 +1196,19 @@ hwloc_look_windows(struct hwloc_backend *backend, struct hwloc_disc_status *dsta unsigned efficiency_class = 0; GROUP_AFFINITY *GroupMask; - if (procInfo->Relationship == RelationCache) { - if (!topology->want_some_cpu_caches) - /* TODO: check if RelationAll&~RelationCache works? */ - continue; - if (procInfo->Cache.Type != CacheUnified - && procInfo->Cache.Type != CacheData - && procInfo->Cache.Type != CacheInstruction) - /* Ignore unknown caches */ - continue; - } + /* Ignore unknown caches */ + if (procInfo->Relationship == RelationCache + && procInfo->Cache.Type != CacheUnified + && procInfo->Cache.Type != CacheData + && procInfo->Cache.Type != CacheInstruction) + continue; id = HWLOC_UNKNOWN_INDEX; switch (procInfo->Relationship) { - case RelationNumaNodeEx: /* only used on input anyway */ case RelationNumaNode: type = HWLOC_OBJ_NUMANODE; - /* Starting with Windows 11 and Server 2022, the GroupCount field is valid and >=1 - * and we may read GroupMasks[]. Older releases have GroupCount==0 and we must read GroupMask. - */ - if (procInfo->NumaNode.GroupCount) { - num = procInfo->NumaNode.GroupCount; - GroupMask = procInfo->NumaNode.GroupMasks; - } else { - num = 1; - GroupMask = &procInfo->NumaNode.GroupMask; - } + num = 1; + GroupMask = &procInfo->NumaNode.GroupMask; id = procInfo->NumaNode.NodeNumber; gotnuma++; if (id > max_numanode_index) @@ -1096,35 +1216,23 @@ hwloc_look_windows(struct hwloc_backend *backend, struct hwloc_disc_status *dsta break; case RelationProcessorPackage: type = HWLOC_OBJ_PACKAGE; - num = procInfo->Processor.GroupCount; - GroupMask = procInfo->Processor.GroupMask; + num = procInfo->Processor.GroupCount; + GroupMask = procInfo->Processor.GroupMask; break; - case RelationProcessorDie: - type = HWLOC_OBJ_DIE; - num = procInfo->Processor.GroupCount; - GroupMask = procInfo->Processor.GroupMask; - break; - case RelationProcessorModule: - type = HWLOC_OBJ_GROUP; - num = procInfo->Processor.GroupCount; - GroupMask = procInfo->Processor.GroupMask; - break; case RelationCache: type = (procInfo->Cache.Type == CacheInstruction ? HWLOC_OBJ_L1ICACHE : HWLOC_OBJ_L1CACHE) + procInfo->Cache.Level - 1; - /* GroupCount added approximately with NumaNode.GroupCount above */ - if (procInfo->Cache.GroupCount) { - num = procInfo->Cache.GroupCount; - GroupMask = procInfo->Cache.GroupMasks; - } else { - num = 1; - GroupMask = &procInfo->Cache.GroupMask; - } + num = 1; + GroupMask = &procInfo->Cache.GroupMask; break; case RelationProcessorCore: type = HWLOC_OBJ_CORE; num = procInfo->Processor.GroupCount; GroupMask = procInfo->Processor.GroupMask; - efficiency_class = procInfo->Processor.EfficiencyClass; + if (has_efficiencyclass) + /* the EfficiencyClass field didn't exist before Windows10 and recent MSVC headers, + * so just access it manually instead of trying to detect it. + */ + efficiency_class = * ((&procInfo->Processor.Flags) + 1); break; case RelationGroup: /* So strange an interface... */ @@ -1149,12 +1257,11 @@ hwloc_look_windows(struct hwloc_backend *backend, struct hwloc_disc_status *dsta groups_pu_set = hwloc_bitmap_alloc(); hwloc_bitmap_or(groups_pu_set, groups_pu_set, set); - /* Ignore processor groups unless requested and filtered-in */ - if (keep_pgroup_objs && hwloc_filter_check_keep_object_type(topology, HWLOC_OBJ_GROUP)) { + if (hwloc_filter_check_keep_object_type(topology, HWLOC_OBJ_GROUP)) { obj = hwloc_alloc_setup_object(topology, HWLOC_OBJ_GROUP, id); obj->cpuset = set; obj->attr->group.kind = HWLOC_GROUP_KIND_WINDOWS_PROCESSOR_GROUP; - hwloc__insert_object_by_cpuset(topology, NULL, obj, "windows:GetLogicalProcessorInformationEx:ProcessorGroup"); + hwloc__insert_object_by_cpuset(topology, NULL, obj, "windows:GetLogicalProcessorInformation:ProcessorGroup"); } else hwloc_bitmap_free(set); } @@ -1230,19 +1337,6 @@ hwloc_look_windows(struct hwloc_backend *backend, struct hwloc_disc_status *dsta continue; } break; - case HWLOC_OBJ_GROUP: - switch (procInfo->Relationship) { - case RelationGroup: - obj->attr->group.kind = HWLOC_GROUP_KIND_WINDOWS_PROCESSOR_GROUP; - break; - case RelationProcessorModule: - obj->attr->group.kind = HWLOC_GROUP_KIND_INTEL_MODULE; - obj->subtype = strdup("Module"); - break; - default: - obj->attr->group.kind = HWLOC_GROUP_KIND_WINDOWS_RELATIONSHIP_UNKNOWN; - } - break; default: break; } diff --git a/src/3rdparty/hwloc/src/topology-x86.c b/src/3rdparty/hwloc/src/topology-x86.c index 42248f68..94f9d453 100644 --- a/src/3rdparty/hwloc/src/topology-x86.c +++ b/src/3rdparty/hwloc/src/topology-x86.c @@ -1,11 +1,11 @@ /* - * Copyright © 2010-2025 Inria. All rights reserved. + * Copyright © 2010-2021 Inria. All rights reserved. * Copyright © 2010-2013 Université Bordeaux * Copyright © 2010-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. * * - * This backend is mostly used when the operating system does not export + * This backend is only used when the operating system does not export * the necessary hardware topology information to user-space applications. * Currently, FreeBSD and NetBSD only add PUs and then fallback to this * backend for CPU/Cache discovery. @@ -15,7 +15,6 @@ * on various architectures, without having to use this x86-specific code. * But this backend is still used after them to annotate some objects with * additional details (CPU info in Package, Inclusiveness in Caches). - * It may also be enabled manually to work-around bugs in native OS discovery. */ #include "private/autogen/config.h" @@ -39,12 +38,6 @@ struct hwloc_x86_backend_data_s { int apicid_unique; char *src_cpuiddump_path; int is_knl; - int is_hybrid; - int found_die_ids; - int found_complex_ids; - int found_unit_ids; - int found_module_ids; - int found_tile_ids; }; /************************************ @@ -87,7 +80,7 @@ cpuiddump_read(const char *dirpath, unsigned idx) cpuiddump = malloc(sizeof(*cpuiddump)); if (!cpuiddump) { - fprintf(stderr, "hwloc/x86: Failed to allocate cpuiddump for PU #%u, ignoring cpuiddump.\n", idx); + fprintf(stderr, "Failed to allocate cpuiddump for PU #%u, ignoring cpuiddump.\n", idx); goto out; } @@ -98,7 +91,7 @@ cpuiddump_read(const char *dirpath, unsigned idx) snprintf(filename, filenamelen, "%s/pu%u", dirpath, idx); file = fopen(filename, "r"); if (!file) { - fprintf(stderr, "hwloc/x86: Could not read dumped cpuid file %s, ignoring cpuiddump.\n", filename); + fprintf(stderr, "Could not read dumped cpuid file %s, ignoring cpuiddump.\n", filename); goto out_with_filename; } @@ -107,7 +100,7 @@ cpuiddump_read(const char *dirpath, unsigned idx) nr++; cpuiddump->entries = malloc(nr * sizeof(struct cpuiddump_entry)); if (!cpuiddump->entries) { - fprintf(stderr, "hwloc/x86: Failed to allocate %u cpuiddump entries for PU #%u, ignoring cpuiddump.\n", nr, idx); + fprintf(stderr, "Failed to allocate %u cpuiddump entries for PU #%u, ignoring cpuiddump.\n", nr, idx); goto out_with_file; } @@ -163,7 +156,7 @@ cpuiddump_find_by_input(unsigned *eax, unsigned *ebx, unsigned *ecx, unsigned *e return; } - fprintf(stderr, "hwloc/x86: Couldn't find %x,%x,%x,%x in dumped cpuid, returning 0s.\n", + fprintf(stderr, "Couldn't find %x,%x,%x,%x in dumped cpuid, returning 0s.\n", *eax, *ebx, *ecx, *edx); *eax = 0; *ebx = 0; @@ -217,8 +210,7 @@ struct procinfo { #define TILE 4 #define MODULE 5 #define DIE 6 -#define COMPLEX 7 -#define HWLOC_X86_PROCINFO_ID_NR 8 +#define HWLOC_X86_PROCINFO_ID_NR 7 unsigned ids[HWLOC_X86_PROCINFO_ID_NR]; unsigned *otherids; unsigned levels; @@ -322,7 +314,7 @@ static void read_amd_caches_topoext(struct procinfo *infos, struct cpuiddump *sr /* the code below doesn't want any other cache yet */ assert(!infos->numcaches); - for (cachenum = 0; cachenum<16 /* guard */; cachenum++) { + for (cachenum = 0; ; cachenum++) { eax = 0x8000001d; ecx = cachenum; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); @@ -333,7 +325,7 @@ static void read_amd_caches_topoext(struct procinfo *infos, struct cpuiddump *sr cache = infos->cache = malloc(infos->numcaches * sizeof(*infos->cache)); if (cache) { - for (cachenum = 0; cachenum<16 /* guard */; cachenum++) { + for (cachenum = 0; ; cachenum++) { unsigned long linesize, linepart, ways, sets; eax = 0x8000001d; ecx = cachenum; @@ -386,7 +378,7 @@ static void read_intel_caches(struct hwloc_x86_backend_data_s *data, struct proc unsigned cachenum; struct cacheinfo *cache; - for (cachenum = 0; cachenum<16 /* guard */; cachenum++) { + for (cachenum = 0; ; cachenum++) { eax = 0x04; ecx = cachenum; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); @@ -408,7 +400,7 @@ static void read_intel_caches(struct hwloc_x86_backend_data_s *data, struct proc infos->cache = tmpcaches; cache = &infos->cache[oldnumcaches]; - for (cachenum = 0; cachenum<16 /* guard */; cachenum++) { + for (cachenum = 0; ; cachenum++) { unsigned long linesize, linepart, ways, sets; eax = 0x04; ecx = cachenum; @@ -488,7 +480,7 @@ static void read_amd_cores_legacy(struct procinfo *infos, struct cpuiddump *src_ } /* AMD unit/node from CPUID 0x8000001e leaf (topoext) */ -static void read_amd_cores_topoext(struct hwloc_x86_backend_data_s *data, struct procinfo *infos, unsigned long flags __hwloc_attribute_unused, struct cpuiddump *src_cpuiddump) +static void read_amd_cores_topoext(struct procinfo *infos, unsigned long flags, struct cpuiddump *src_cpuiddump) { unsigned apic_id, nodes_per_proc = 0; unsigned eax, ebx, ecx, edx; @@ -497,6 +489,7 @@ static void read_amd_cores_topoext(struct hwloc_x86_backend_data_s *data, struct cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); infos->apicid = apic_id = eax; + if (flags & HWLOC_X86_DISC_FLAG_TOPOEXT_NUMANODES) { if (infos->cpufamilynumber == 0x16) { /* ecx is reserved */ infos->ids[NODE] = 0; @@ -507,16 +500,15 @@ static void read_amd_cores_topoext(struct hwloc_x86_backend_data_s *data, struct nodes_per_proc = ((ecx >> 8) & 7) + 1; } if ((infos->cpufamilynumber == 0x15 && nodes_per_proc > 2) - || ((infos->cpufamilynumber == 0x17 || infos->cpufamilynumber == 0x18) && nodes_per_proc > 4) - || (infos->cpufamilynumber == 0x19 && nodes_per_proc > 1)) { + || ((infos->cpufamilynumber == 0x17 || infos->cpufamilynumber == 0x18) && nodes_per_proc > 4)) { hwloc_debug("warning: undefined nodes_per_proc value %u, assuming it means %u\n", nodes_per_proc, nodes_per_proc); } + } if (infos->cpufamilynumber <= 0x16) { /* topoext appeared in 0x15 and compute-units were only used in 0x15 and 0x16 */ unsigned cores_per_unit; /* coreid was obtained from read_amd_cores_legacy() earlier */ infos->ids[UNIT] = ebx & 0xff; - data->found_unit_ids = 1; cores_per_unit = ((ebx >> 8) & 0xff) + 1; hwloc_debug("topoext %08x, %u nodes, node %u, %u cores in unit %u\n", apic_id, nodes_per_proc, infos->ids[NODE], cores_per_unit, infos->ids[UNIT]); /* coreid and unitid are package-wide (core 0-15 and unit 0-7 on 16-core 2-NUMAnode processor). @@ -531,29 +523,19 @@ static void read_amd_cores_topoext(struct hwloc_x86_backend_data_s *data, struct } } -/* Intel core/thread or even die/module/tile from CPUID 0x0b or 0x1f leaves (v1 and v2 extended topology enumeration) - * or AMD core/thread or even complex/ccd from CPUID 0x0b or 0x80000026 (extended CPU topology) - */ -static void read_extended_topo(struct hwloc_x86_backend_data_s *data, struct procinfo *infos, unsigned leaf, enum cpuid_type cpuid_type __hwloc_attribute_unused, struct cpuiddump *src_cpuiddump) +/* Intel core/thread or even die/module/tile from CPUID 0x0b or 0x1f leaves (v1 and v2 extended topology enumeration) */ +static void read_intel_cores_exttopoenum(struct procinfo *infos, unsigned leaf, struct cpuiddump *src_cpuiddump) { - unsigned level, apic_nextshift, apic_type, apic_id = 0, apic_shift = 0, id; + unsigned level, apic_nextshift, apic_number, apic_type, apic_id = 0, apic_shift = 0, id; unsigned threadid __hwloc_attribute_unused = 0; /* shut-up compiler */ unsigned eax, ebx, ecx = 0, edx; int apic_packageshift = 0; - for (level = 0; level<32 /* guard */; level++) { + for (level = 0; ; level++) { ecx = level; eax = leaf; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); - /* Intel specifies that the 0x0b/0x1f loop should stop when we get "invalid domain" (0 in ecx[8:15]) - * (if so, we also get 0 in eax/ebx for invalid subleaves). Zhaoxin implements this too. - * However AMD rather says that the 0x80000026/0x0b loop should stop when we get "no thread at this level" (0 in ebx[0:15]). - * - * Linux kernel <= 6.8 used "invalid domain" for both Intel and AMD (in detect_extended_topology()) - * but x86 discovery revamp in 6.9 now properly checks both Intel and AMD conditions (in topo_subleaf()). - * So let's assume we are allowed to break-out once one of the Intel+AMD conditions is met. - */ - if (!(ebx & 0xffff) || !(ecx & 0xff00)) + if (!eax && !ebx) break; apic_packageshift = eax & 0x1f; } @@ -562,68 +544,47 @@ static void read_extended_topo(struct hwloc_x86_backend_data_s *data, struct pro infos->otherids = malloc(level * sizeof(*infos->otherids)); if (infos->otherids) { infos->levels = level; - for (level = 0; level<32 /* guard */; level++) { + for (level = 0; ; level++) { ecx = level; eax = leaf; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); - if (!(ebx & 0xffff) || !(ecx & 0xff00)) - break; + if (!eax && !ebx) + break; apic_nextshift = eax & 0x1f; + apic_number = ebx & 0xffff; apic_type = (ecx & 0xff00) >> 8; apic_id = edx; id = (apic_id >> apic_shift) & ((1 << (apic_packageshift - apic_shift)) - 1); - hwloc_debug("x2APIC %08x %u: nextshift %u nextnumber %2u type %u id %2u\n", - apic_id, - level, - apic_nextshift, - ebx & 0xffff /* number of threads in next level */, - apic_type, - id); + hwloc_debug("x2APIC %08x %u: nextshift %u num %2u type %u id %2u\n", apic_id, level, apic_nextshift, apic_number, apic_type, id); infos->apicid = apic_id; infos->otherids[level] = UINT_MAX; - switch (apic_type) { - case 1: - threadid = id; - break; - case 2: - infos->ids[CORE] = id; - break; - case 3: - if (leaf == 0x80000026) { - data->found_complex_ids = 1; - infos->ids[COMPLEX] = id; - } else { - data->found_module_ids = 1; - infos->ids[MODULE] = id; - } - break; - case 4: - if (leaf == 0x80000026) { - data->found_die_ids = 1; - infos->ids[DIE] = id; - } else { - data->found_tile_ids = 1; - infos->ids[TILE] = id; - } - break; - case 5: - if (leaf == 0x80000026) { - goto unknown_type; - } else { - data->found_die_ids = 1; - infos->ids[DIE] = id; - } - break; - case 6: - /* TODO: "DieGrp" on Intel */ - /* fallthrough */ - default: - unknown_type: - hwloc_debug("x2APIC %u: unknown type %u\n", level, apic_type); - infos->otherids[level] = apic_id >> apic_shift; - break; - } - apic_shift = apic_nextshift; + switch (apic_type) { + case 1: + threadid = id; + /* apic_number is the actual number of threads per core */ + break; + case 2: + infos->ids[CORE] = id; + /* apic_number is the actual number of threads per die */ + break; + case 3: + infos->ids[MODULE] = id; + /* apic_number is the actual number of threads per tile */ + break; + case 4: + infos->ids[TILE] = id; + /* apic_number is the actual number of threads per die */ + break; + case 5: + infos->ids[DIE] = id; + /* apic_number is the actual number of threads per package */ + break; + default: + hwloc_debug("x2APIC %u: unknown type %u\n", level, apic_type); + infos->otherids[level] = apic_id >> apic_shift; + break; + } + apic_shift = apic_nextshift; } infos->apicid = apic_id; infos->ids[PKG] = apic_id >> apic_shift; @@ -652,19 +613,10 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns eax = 0x01; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); infos->apicid = ebx >> 24; - if (edx & (1 << 28)) { - unsigned ebx_16_23 = (ebx >> 16) & 0xff; - if (ebx_16_23) { - legacy_max_log_proc = 1 << hwloc_flsl(ebx_16_23 - 1); - } else { - hwloc_debug("HTT bit set in CPUID 0x01.edx, but legacy_max_proc = 0 in ebx, assuming legacy_max_log_proc = 1\n"); - legacy_max_log_proc = 1; - } - } else { - hwloc_debug("HTT bit not set in CPUID 0x01.edx, assuming legacy_max_log_proc = 1\n"); + if (edx & (1 << 28)) + legacy_max_log_proc = 1 << hwloc_flsl(((ebx >> 16) & 0xff) - 1); + else legacy_max_log_proc = 1; - } - hwloc_debug("APIC ID 0x%02x legacy_max_log_proc %u\n", infos->apicid, legacy_max_log_proc); infos->ids[PKG] = infos->apicid / legacy_max_log_proc; legacy_log_proc_id = infos->apicid % legacy_max_log_proc; @@ -727,34 +679,22 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns unsigned max_nbcores; unsigned max_nbthreads; unsigned threadid __hwloc_attribute_unused; - hwloc_debug("Trying to get core/thread IDs from 0x04...\n"); max_nbcores = ((eax >> 26) & 0x3f) + 1; - hwloc_debug("found %u cores max\n", max_nbcores); - /* some VMs (e.g. issue#525) don't report valid information, check things before dividing by 0. */ - if (!max_nbcores) { - hwloc_debug("cannot detect core/thread IDs from 0x04 without a valid max of cores\n"); - } else { - max_nbthreads = legacy_max_log_proc / max_nbcores; - hwloc_debug("found %u threads max\n", max_nbthreads); - if (!max_nbthreads) { - hwloc_debug("cannot detect core/thread IDs from 0x04 without a valid max of threads\n"); - } else { - threadid = legacy_log_proc_id % max_nbthreads; - infos->ids[CORE] = legacy_log_proc_id / max_nbthreads; - hwloc_debug("this is thread %u of core %u\n", threadid, infos->ids[CORE]); - } - } + max_nbthreads = legacy_max_log_proc / max_nbcores; + hwloc_debug("thus %u threads\n", max_nbthreads); + threadid = legacy_log_proc_id % max_nbthreads; + infos->ids[CORE] = legacy_log_proc_id / max_nbthreads; + hwloc_debug("this is thread %u of core %u\n", threadid, infos->ids[CORE]); } } if (highest_cpuid >= 0x1a && has_hybrid(features)) { - /* Get hybrid cpu information from cpuid 0x1a on Intel */ + /* Get hybrid cpu information from cpuid 0x1a */ eax = 0x1a; ecx = 0; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); infos->hybridcoretype = eax >> 24; infos->hybridnativemodel = eax & 0xffffff; - data->is_hybrid = 1; } /********************************************************************************* @@ -776,30 +716,23 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns * * Only needed when x2apic supported if NUMA nodes are needed. */ - read_amd_cores_topoext(data, infos, flags, src_cpuiddump); + read_amd_cores_topoext(infos, flags, src_cpuiddump); } - if ((cpuid_type == amd) && highest_ext_cpuid >= 0x80000026) { - /* Get socket/die/complex/core/thread information from cpuid 0x80000026 - * (AMD Extended CPU Topology) - */ - read_extended_topo(data, infos, 0x80000026, cpuid_type, src_cpuiddump); - - } else if ((cpuid_type == intel || cpuid_type == zhaoxin) && highest_cpuid >= 0x1f) { + if ((cpuid_type == intel) && highest_cpuid >= 0x1f) { /* Get package/die/module/tile/core/thread information from cpuid 0x1f * (Intel v2 Extended Topology Enumeration) */ - read_extended_topo(data, infos, 0x1f, cpuid_type, src_cpuiddump); + read_intel_cores_exttopoenum(infos, 0x1f, src_cpuiddump); } else if ((cpuid_type == intel || cpuid_type == amd || cpuid_type == zhaoxin) && highest_cpuid >= 0x0b && has_x2apic(features)) { /* Get package/core/thread information from cpuid 0x0b * (Intel v1 Extended Topology Enumeration) */ - read_extended_topo(data, infos, 0x0b, cpuid_type, src_cpuiddump); + read_intel_cores_exttopoenum(infos, 0x0b, src_cpuiddump); } - if (backend->topology->want_some_cpu_caches) { /************************************** * Get caches from CPU-specific leaves */ @@ -842,19 +775,13 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns } else if (cpuid_type == amd) { /* AMD quirks */ - if (infos->cpufamilynumber >= 0x17 && cache->level == 3) { - /* AMD family 0x19 always shares L3 between 16 APIC ids (8 HT cores). - * while Family 0x17 shares between 8 APIC ids (4 HT cores). - * But many models have less APIC ids enabled and reported in nbthreads_sharing. - * It means we must round-up nbthreads_sharing to the nearest power of 2 - * before computing cacheid. + if (infos->cpufamilynumber == 0x17 + && cache->level == 3 && cache->nbthreads_sharing == 6) { + /* AMD family 0x17 always shares L3 between 8 APIC ids, + * even when only 6 APIC ids are enabled and reported in nbthreads_sharing + * (on 24-core CPUs). */ - unsigned nbapics_sharing = cache->nbthreads_sharing; - if (nbapics_sharing & (nbapics_sharing-1)) - /* not a power of two, round-up */ - nbapics_sharing = 1U<<(1+hwloc_ffsl(nbapics_sharing)); - - cache->cacheid = infos->apicid / nbapics_sharing; + cache->cacheid = infos->apicid / 8; } else if (infos->cpufamilynumber== 0x10 && infos->cpumodelnumber == 0x9 && cache->level == 3 @@ -880,7 +807,7 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns } else if (infos->cpufamilynumber == 0x15 && (infos->cpumodelnumber == 0x1 /* Bulldozer */ || infos->cpumodelnumber == 0x2 /* Piledriver */) && cache->level == 3 && cache->nbthreads_sharing == 6) { - /* AMD Bulldozer and Piledriver 12-core processors have same APIC ids as Magny-Cours above, + /* AMD Bulldozer and Piledriver 12-core processors have same APIC ids as Magny-Cours below, * but we can't merge the checks because the original nbthreads_sharing must be exactly 6 here. */ cache->cacheid = (infos->apicid % legacy_max_log_proc) / cache->nbthreads_sharing /* cacheid within the package */ @@ -897,7 +824,6 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns } } } - } if (hwloc_bitmap_isset(data->apicid_set, infos->apicid)) data->apicid_unique = 0; @@ -1099,34 +1025,21 @@ static void summarize(struct hwloc_backend *backend, struct procinfo *infos, uns if (hwloc_filter_check_keep_object_type(topology, HWLOC_OBJ_GROUP)) { if (fulldiscovery) { - if (data->found_unit_ids) { - /* Look for AMD Complex inside packages */ - hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); - hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, - COMPLEX, "Complex", - HWLOC_GROUP_KIND_AMD_COMPLEX, 0); - } - if (data->found_unit_ids) { - /* Look for AMD Compute units inside packages */ - hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); - hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, - UNIT, "Compute Unit", - HWLOC_GROUP_KIND_AMD_COMPUTE_UNIT, 0); - } - if (data->found_module_ids) { - /* Look for Intel Modules inside packages */ - hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); - hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, - MODULE, "Module", - HWLOC_GROUP_KIND_INTEL_MODULE, 0); - } - if (data->found_tile_ids) { - /* Look for Intel Tiles inside packages */ - hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); - hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, - TILE, "Tile", - HWLOC_GROUP_KIND_INTEL_TILE, 0); - } + /* Look for AMD Compute units inside packages */ + hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); + hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, + UNIT, "Compute Unit", + HWLOC_GROUP_KIND_AMD_COMPUTE_UNIT, 0); + /* Look for Intel Modules inside packages */ + hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); + hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, + MODULE, "Module", + HWLOC_GROUP_KIND_INTEL_MODULE, 0); + /* Look for Intel Tiles inside packages */ + hwloc_bitmap_copy(remaining_cpuset, complete_cpuset); + hwloc_x86_add_groups(topology, infos, nbprocs, remaining_cpuset, + TILE, "Tile", + HWLOC_GROUP_KIND_INTEL_TILE, 0); /* Look for unknown objects */ if (infos[one].otherids) { @@ -1160,8 +1073,7 @@ static void summarize(struct hwloc_backend *backend, struct procinfo *infos, uns } } - if (data->found_die_ids - && hwloc_filter_check_keep_object_type(topology, HWLOC_OBJ_DIE)) { + if (hwloc_filter_check_keep_object_type(topology, HWLOC_OBJ_DIE)) { /* Look for Intel Dies inside packages */ if (fulldiscovery) { hwloc_bitmap_t die_cpuset; @@ -1319,18 +1231,6 @@ static void summarize(struct hwloc_backend *backend, struct procinfo *infos, uns } } cache = hwloc_alloc_setup_object(topology, otype, HWLOC_UNKNOWN_INDEX); - /* We don't specify the os_index of caches because we want to be - * 100% sure they are identical to what the Linux kernel reports - * (so that things like resctrl work). - * However, vendor/model-specific quirks in the x86 code above - * make this difficult. - * - * Caveat: if the x86 backend is used on Linux to avoid kernel bugs, - * IDs won't be available to resctrl users. But resctrl heavily - * relies on the kernel x86 discovery being non-buggy anyway. - * - * TODO: make this optional? or only disable it on Linux? - */ cache->attr->cache.depth = level; cache->attr->cache.size = infos[i].cache[l].size; cache->attr->cache.linesize = infos[i].cache[l].linesize; @@ -1416,45 +1316,40 @@ look_procs(struct hwloc_backend *backend, struct procinfo *infos, unsigned long if (data->apicid_unique) { summarize(backend, infos, flags); - if (data->is_hybrid - && !(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS)) { + if (has_hybrid(features)) { /* use hybrid info for cpukinds */ - if (cpuid_type == intel) { - /* Hybrid Intel */ - hwloc_bitmap_t atomset = hwloc_bitmap_alloc(); - hwloc_bitmap_t coreset = hwloc_bitmap_alloc(); - for(i=0; iapicid_unique, do nothing and return success, so that the caller does nothing either */ + return 0; } @@ -1531,15 +1426,7 @@ int hwloc_look_x86(struct hwloc_backend *backend, unsigned long flags) unsigned i; unsigned highest_cpuid; unsigned highest_ext_cpuid; - /* This stores cpuid features with the same indexing as Linux: - * [0] = 0x1 edx - * [1] = 0x80000001 edx - * [4] = 0x1 ecx - * [6] = 0x80000001 ecx - * [9] = 0x7/0 ebx - * [16] = 0x7/0 ecx - * [18] = 0x7/0 edx - */ + /* This stores cpuid features with the same indexing as Linux */ unsigned features[19] = { 0 }; struct procinfo *infos = NULL; enum cpuid_type cpuid_type = unknown; @@ -1659,7 +1546,6 @@ int hwloc_look_x86(struct hwloc_backend *backend, unsigned long flags) ecx = 0; cpuid_or_from_dump(&eax, &ebx, &ecx, &edx, src_cpuiddump); features[9] = ebx; - features[16] = ecx; features[18] = edx; } @@ -1748,7 +1634,7 @@ hwloc_x86_discover(struct hwloc_backend *backend, struct hwloc_disc_status *dsta if (topology->levels[0][0]->cpuset) { /* somebody else discovered things, reconnect levels so that we can look at them */ - hwloc__reconnect(topology, 0); + hwloc_topology_reconnect(topology, 0); if (topology->nb_levels == 2 && topology->level_nbobjects[1] == data->nbprocs) { /* only PUs were discovered, as much as we would, complete the topology with everything else */ alreadypus = 1; @@ -1802,7 +1688,7 @@ hwloc_x86_check_cpuiddump_input(const char *src_cpuiddump_path, hwloc_bitmap_t s char line [32]; dir = opendir(src_cpuiddump_path); - if (!dir) + if (!dir) return -1; path = malloc(strlen(src_cpuiddump_path) + strlen("/hwloc-cpuid-info") + 1); @@ -1811,17 +1697,17 @@ hwloc_x86_check_cpuiddump_input(const char *src_cpuiddump_path, hwloc_bitmap_t s sprintf(path, "%s/hwloc-cpuid-info", src_cpuiddump_path); file = fopen(path, "r"); if (!file) { - fprintf(stderr, "hwloc/x86: Couldn't open dumped cpuid summary %s\n", path); + fprintf(stderr, "Couldn't open dumped cpuid summary %s\n", path); goto out_with_path; } if (!fgets(line, sizeof(line), file)) { - fprintf(stderr, "hwloc/x86: Found read dumped cpuid summary in %s\n", path); + fprintf(stderr, "Found read dumped cpuid summary in %s\n", path); fclose(file); goto out_with_path; } fclose(file); - if (strncmp(line, "Architecture: x86", 17)) { - fprintf(stderr, "hwloc/x86: Found non-x86 dumped cpuid summary in %s: %s\n", path, line); + if (strcmp(line, "Architecture: x86\n")) { + fprintf(stderr, "Found non-x86 dumped cpuid summary in %s: %s\n", path, line); goto out_with_path; } free(path); @@ -1833,19 +1719,19 @@ hwloc_x86_check_cpuiddump_input(const char *src_cpuiddump_path, hwloc_bitmap_t s if (!*end) hwloc_bitmap_set(set, idx); else - fprintf(stderr, "hwloc/x86: Ignoring invalid dirent `%s' in dumped cpuid directory `%s'\n", + fprintf(stderr, "Ignoring invalid dirent `%s' in dumped cpuid directory `%s'\n", dirent->d_name, src_cpuiddump_path); } } closedir(dir); if (hwloc_bitmap_iszero(set)) { - fprintf(stderr, "hwloc/x86: Did not find any valid pu%%u entry in dumped cpuid directory `%s'\n", + fprintf(stderr, "Did not find any valid pu%%u entry in dumped cpuid directory `%s'\n", src_cpuiddump_path); return -1; } else if (hwloc_bitmap_last(set) != hwloc_bitmap_weight(set) - 1) { /* The x86 backends enforces contigous set of PUs starting at 0 so far */ - fprintf(stderr, "hwloc/x86: Found non-contigous pu%%u range in dumped cpuid directory `%s'\n", + fprintf(stderr, "Found non-contigous pu%%u range in dumped cpuid directory `%s'\n", src_cpuiddump_path); return -1; } @@ -1897,15 +1783,9 @@ hwloc_x86_component_instantiate(struct hwloc_topology *topology, /* default values */ data->is_knl = 0; - data->is_hybrid = 0; data->apicid_set = hwloc_bitmap_alloc(); data->apicid_unique = 1; data->src_cpuiddump_path = NULL; - data->found_die_ids = 0; - data->found_complex_ids = 0; - data->found_unit_ids = 0; - data->found_module_ids = 0; - data->found_tile_ids = 0; src_cpuiddump_path = getenv("HWLOC_CPUID_PATH"); if (src_cpuiddump_path) { @@ -1916,7 +1796,7 @@ hwloc_x86_component_instantiate(struct hwloc_topology *topology, assert(!hwloc_bitmap_iszero(set)); /* enforced by hwloc_x86_check_cpuiddump_input() */ data->nbprocs = hwloc_bitmap_weight(set); } else { - fprintf(stderr, "hwloc/x86: Ignoring dumped cpuid directory.\n"); + fprintf(stderr, "Ignoring dumped cpuid directory.\n"); } hwloc_bitmap_free(set); } diff --git a/src/3rdparty/hwloc/src/topology-xml-nolibxml.c b/src/3rdparty/hwloc/src/topology-xml-nolibxml.c index e59738a9..c0691962 100644 --- a/src/3rdparty/hwloc/src/topology-xml-nolibxml.c +++ b/src/3rdparty/hwloc/src/topology-xml-nolibxml.c @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2024 Inria. All rights reserved. + * Copyright © 2009-2020 Inria. All rights reserved. * Copyright © 2009-2011 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -41,7 +41,7 @@ typedef struct hwloc__nolibxml_import_state_data_s { static char * hwloc__nolibxml_import_ignore_spaces(char *buffer) { - return buffer + strspn(buffer, " \t\n\r"); + return buffer + strspn(buffer, " \t\n"); } static int @@ -411,12 +411,12 @@ hwloc_nolibxml_backend_init(struct hwloc_xml_backend_data_s *bdata, bdata->data = nbdata; if (xmlbuffer) { - nbdata->buffer = malloc(xmlbuflen); + nbdata->buffer = malloc(xmlbuflen+1); if (!nbdata->buffer) goto out_with_nbdata; - nbdata->buflen = xmlbuflen; + nbdata->buflen = xmlbuflen+1; memcpy(nbdata->buffer, xmlbuffer, xmlbuflen); - nbdata->buffer[xmlbuflen-1] = '\0'; /* make sure it's there as requested in the API */ + nbdata->buffer[xmlbuflen] = '\0'; } else { int err = hwloc_nolibxml_read_file(xmlpath, &nbdata->buffer, &nbdata->buflen); @@ -453,9 +453,8 @@ hwloc_nolibxml_import_diff(struct hwloc__xml_import_state_s *state, buffer = malloc(xmlbuflen); if (!buffer) goto out; - buflen = xmlbuflen; memcpy(buffer, xmlbuffer, xmlbuflen); - buffer[xmlbuflen-1] = '\0'; /* make sure it's there as requested in the API */ + buflen = xmlbuflen; } else { ret = hwloc_nolibxml_read_file(xmlpath, &buffer, &buflen); diff --git a/src/3rdparty/hwloc/src/topology-xml.c b/src/3rdparty/hwloc/src/topology-xml.c index 67f56025..87e91010 100644 --- a/src/3rdparty/hwloc/src/topology-xml.c +++ b/src/3rdparty/hwloc/src/topology-xml.c @@ -1,6 +1,6 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2025 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2011, 2020 Université Bordeaux * Copyright © 2009-2018 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. @@ -123,17 +123,6 @@ hwloc__xml_import_object_attr(struct hwloc_topology *topology, fprintf(stderr, "%s: unexpected zero gp_index, topology may be invalid\n", state->global->msgprefix); if (obj->gp_index >= topology->next_gp_index) topology->next_gp_index = obj->gp_index + 1; - } else if (!strcmp(name, "id")) { /* forward compat */ - if (!strncmp(value, "obj", 3)) { - obj->gp_index = strtoull(value+3, NULL, 10); - if (!obj->gp_index && hwloc__xml_verbose()) - fprintf(stderr, "%s: unexpected zero id, topology may be invalid\n", state->global->msgprefix); - if (obj->gp_index >= topology->next_gp_index) - topology->next_gp_index = obj->gp_index + 1; - } else { - if (hwloc__xml_verbose()) - fprintf(stderr, "%s: unexpected id `%s' not-starting with `obj', ignoring\n", state->global->msgprefix, value); - } } else if (!strcmp(name, "cpuset")) { if (!obj->cpuset) obj->cpuset = hwloc_bitmap_alloc(); @@ -254,7 +243,7 @@ hwloc__xml_import_object_attr(struct hwloc_topology *topology, else if (!strcmp(name, "dont_merge")) { unsigned long lvalue = strtoul(value, NULL, 10); if (obj->type == HWLOC_OBJ_GROUP) - obj->attr->group.dont_merge = (unsigned char) lvalue; + obj->attr->group.dont_merge = lvalue; else if (hwloc__xml_verbose()) fprintf(stderr, "%s: ignoring dont_merge attribute for non-group object type\n", state->global->msgprefix); @@ -274,7 +263,7 @@ hwloc__xml_import_object_attr(struct hwloc_topology *topology, #ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN } else if (domain > 0xffff) { static int warned = 0; - if (!warned && HWLOC_SHOW_ALL_ERRORS()) + if (!warned && hwloc_hide_errors() < 2) fprintf(stderr, "hwloc/xml: Ignoring PCI device with non-16bit domain.\nPass --enable-32bits-pci-domain to configure to support such devices\n(warning: it would break the library ABI, don't enable unless really needed).\n"); warned = 1; *ignore = 1; @@ -374,7 +363,7 @@ hwloc__xml_import_object_attr(struct hwloc_topology *topology, #ifndef HWLOC_HAVE_32BITS_PCI_DOMAIN } else if (domain > 0xffff) { static int warned = 0; - if (!warned && HWLOC_SHOW_ALL_ERRORS()) + if (!warned && hwloc_hide_errors() < 2) fprintf(stderr, "hwloc/xml: Ignoring bridge to PCI with non-16bit domain.\nPass --enable-32bits-pci-domain to configure to support such devices\n(warning: it would break the library ABI, don't enable unless really needed).\n"); warned = 1; *ignore = 1; @@ -415,20 +404,6 @@ hwloc__xml_import_object_attr(struct hwloc_topology *topology, } } - else if (!strcmp(name, "numanode_type")) { - switch (obj->type) { - case HWLOC_OBJ_NUMANODE: { - /* ignored for now, here for possible forward compat */ - break; - } - default: - if (hwloc__xml_verbose()) - fprintf(stderr, "%s: ignoring numanode_type attribute for non-NUMA object\n", - state->global->msgprefix); - break; - } - } - else if (data->version_major < 2) { /************************ * deprecated from 1.x @@ -576,13 +551,7 @@ hwloc__xml_import_pagetype(hwloc_topology_t topology __hwloc_attribute_unused, s char *attrname, *attrvalue; if (state->global->next_attr(state, &attrname, &attrvalue) < 0) break; - if (!strcmp(attrname, "info")) { - char *infoname, *infovalue; - int ret = hwloc___xml_import_info(&infoname, &infovalue, state); - if (ret < 0) - return -1; - /* ignored */ - } else if (!strcmp(attrname, "size")) + if (!strcmp(attrname, "size")) size = strtoull(attrvalue, NULL, 10); else if (!strcmp(attrname, "count")) count = strtoull(attrvalue, NULL, 10); @@ -886,23 +855,14 @@ hwloc__xml_import_object(hwloc_topology_t topology, /* deal with possible future type */ obj->type = HWLOC_OBJ_GROUP; obj->attr->group.kind = HWLOC_GROUP_KIND_INTEL_MODULE; - } else if (!strcasecmp(attrvalue, "Cluster")) { - /* deal with possible future type */ - obj->type = HWLOC_OBJ_GROUP; - obj->attr->group.kind = HWLOC_GROUP_KIND_LINUX_CLUSTER; - } -#if 0 - /* reenable if there's ever a future type that should be ignored without being an error */ - else if (!strcasecmp(attrvalue, "MemCache")) { + } else if (!strcasecmp(attrvalue, "MemCache")) { /* ignore possible future type */ obj->type = _HWLOC_OBJ_FUTURE; ignored = 1; if (hwloc__xml_verbose()) fprintf(stderr, "%s: %s object not-supported, will be ignored\n", state->global->msgprefix, attrvalue); - } -#endif - else { + } else { if (hwloc__xml_verbose()) fprintf(stderr, "%s: unrecognized object type string %s\n", state->global->msgprefix, attrvalue); @@ -977,22 +937,22 @@ hwloc__xml_import_object(hwloc_topology_t topology, if (hwloc__obj_type_is_normal(obj->type)) { if (!hwloc__obj_type_is_normal(parent->type)) { if (hwloc__xml_verbose()) - fprintf(stderr, "%s: normal object %s cannot be child of non-normal parent %s\n", - state->global->msgprefix, hwloc_obj_type_string(obj->type), hwloc_obj_type_string(parent->type)); + fprintf(stderr, "normal object %s cannot be child of non-normal parent %s\n", + hwloc_obj_type_string(obj->type), hwloc_obj_type_string(parent->type)); goto error_with_object; } } else if (hwloc__obj_type_is_memory(obj->type)) { if (hwloc__obj_type_is_io(parent->type) || HWLOC_OBJ_MISC == parent->type) { if (hwloc__xml_verbose()) - fprintf(stderr, "%s: Memory object %s cannot be child of non-normal-or-memory parent %s\n", - state->global->msgprefix, hwloc_obj_type_string(obj->type), hwloc_obj_type_string(parent->type)); + fprintf(stderr, "Memory object %s cannot be child of non-normal-or-memory parent %s\n", + hwloc_obj_type_string(obj->type), hwloc_obj_type_string(parent->type)); goto error_with_object; } } else if (hwloc__obj_type_is_io(obj->type)) { if (hwloc__obj_type_is_memory(parent->type) || HWLOC_OBJ_MISC == parent->type) { if (hwloc__xml_verbose()) - fprintf(stderr, "%s: I/O object %s cannot be child of non-normal-or-I/O parent %s\n", - state->global->msgprefix, hwloc_obj_type_string(obj->type), hwloc_obj_type_string(parent->type)); + fprintf(stderr, "I/O object %s cannot be child of non-normal-or-I/O parent %s\n", + hwloc_obj_type_string(obj->type), hwloc_obj_type_string(parent->type)); goto error_with_object; } } @@ -1189,48 +1149,6 @@ hwloc__xml_import_object(hwloc_topology_t topology, data->last_numanode = obj; } - /* 3.0 forward compatibility */ - if (data->version_major >= 3 && obj->type == HWLOC_OBJ_OS_DEVICE) { - /* osdev.type changed into bitmak in 3.0 */ - if (obj->attr->osdev.type & 3 /* STORAGE|MEMORY for BLOCK */) { - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_BLOCK; - } else if (obj->attr->osdev.type & 8 /* COPROC for COPROC and rsmi/nvml GPUs */) { - if (obj->subtype && (!strcmp(obj->subtype, "RSMI") || !strcmp(obj->subtype, "NVML"))) - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_GPU; - else - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_COPROC; - } else if (obj->attr->osdev.type & 4 /* GPU for non-COPROC GPUs */) { - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_GPU; - } else if (obj->attr->osdev.type & 32 /* OFED */) { - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_OPENFABRICS; - } else if (obj->attr->osdev.type & 16 /* NET for NET and BXI v2-fake-OFED */) { - if (obj->subtype && !strcmp(obj->subtype, "BXI")) - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_OPENFABRICS; - else - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_NETWORK; - } else if (obj->attr->osdev.type & 64 /* DMA */) { - obj->attr->osdev.type = HWLOC_OBJ_OSDEV_DMA; - } else { /* none or unknown */ - obj->attr->osdev.type = (hwloc_obj_osdev_type_t) -1; - } - /* Backend info only in root */ - if (obj->subtype && !hwloc_obj_get_info_by_name(obj, "Backend")) { - if (!strcmp(obj->subtype, "CUDA")) { - hwloc_obj_add_info(obj, "Backend", "CUDA"); - } else if (!strcmp(obj->subtype, "NVML")) { - hwloc_obj_add_info(obj, "Backend", "NVML"); - } else if (!strcmp(obj->subtype, "OpenCL")) { - hwloc_obj_add_info(obj, "Backend", "OpenCL"); - } else if (!strcmp(obj->subtype, "RSMI")) { - hwloc_obj_add_info(obj, "Backend", "RSMI"); - } else if (!strcmp(obj->subtype, "LevelZero")) { - hwloc_obj_add_info(obj, "Backend", "LevelZero"); - } else if (!strcmp(obj->subtype, "Display")) { - hwloc_obj_add_info(obj, "Backend", "GL"); - } - } - } - if (!hwloc_filter_check_keep_object(topology, obj)) { /* Ignore this object instead of inserting it. * @@ -1317,7 +1235,7 @@ hwloc__xml_import_object(hwloc_topology_t topology, /* next should be before cur */ if (!childrengotignored) { static int reported = 0; - if (!reported && HWLOC_SHOW_CRITICAL_ERRORS()) { + if (!reported && hwloc_hide_errors() < 2) { hwloc__xml_import_report_outoforder(topology, next, cur); reported = 1; } @@ -1367,7 +1285,7 @@ hwloc__xml_v2import_support(hwloc_topology_t topology, HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_support) == 4*sizeof(void*)); HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_discovery_support) == 6); HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_cpubind_support) == 11); - HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_membind_support) == 16); + HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_membind_support) == 15); HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_misc_support) == 1); #endif @@ -1401,7 +1319,6 @@ hwloc__xml_v2import_support(hwloc_topology_t topology, else DO(membind,firsttouch_membind); else DO(membind,bind_membind); else DO(membind,interleave_membind); - else DO(membind,weighted_interleave_membind); else DO(membind,nexttouch_membind); else DO(membind,migrate_membind); else DO(membind,get_area_memlocation); @@ -1460,10 +1377,6 @@ hwloc__xml_v2import_distances(hwloc_topology_t topology, } else if (!strcmp(attrname, "kind")) { kind = strtoul(attrvalue, NULL, 10); - /* forward compat with "HOPS" kind in v3 */ - if (kind & (1UL<<5)) - /* hops becomes latency */ - kind = (kind & ~(1UL<<5)) | HWLOC_DISTANCES_KIND_MEANS_LATENCY; } else if (!strcmp(attrname, "name")) { name = attrvalue; @@ -1509,14 +1422,7 @@ hwloc__xml_v2import_distances(hwloc_topology_t topology, if (ret <= 0) break; - if (!strcmp(tag, "info")) { - char *infoname, *infovalue; - ret = hwloc___xml_import_info(&infoname, &infovalue, state); - if (ret < 0) - goto out_with_arrays; - /* ignored */ - continue; - } else if (!strcmp(tag, "indexes")) + if (!strcmp(tag, "indexes")) is_index = 1; else if (!strcmp(tag, "u64values")) is_u64values = 1; @@ -1662,9 +1568,6 @@ hwloc__xml_v2import_distances(hwloc_topology_t topology, } } - if (topology->flags & HWLOC_TOPOLOGY_FLAG_NO_DISTANCES) - goto out_ignore; - hwloc_internal_distances_add_by_index(topology, name, unique_type, different_types, nbobjs, indexes, u64values, kind, 0 /* assume grouping was applied when this matrix was discovered before exporting to XML */); /* prevent freeing below */ @@ -1819,8 +1722,7 @@ hwloc__xml_import_memattr(hwloc_topology_t topology, } } - if (name && flags != (unsigned long) -1 - && !(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS)) { + if (name && flags != (unsigned long) -1) { hwloc_memattr_id_t _id; ret = hwloc_memattr_get_by_name(topology, name, &_id); @@ -1849,10 +1751,6 @@ hwloc__xml_import_memattr(hwloc_topology_t topology, if (!strcmp(tag, "memattr_value")) { ret = hwloc__xml_import_memattr_value(topology, id, flags, &childstate); - } else if (!strcmp(tag, "info")) { - char *infoname, *infovalue; - ret = hwloc___xml_import_info(&infoname, &infovalue, &childstate); - /* ignored */ } else { if (hwloc__xml_verbose()) fprintf(stderr, "%s: memattr with unrecognized child %s\n", @@ -1935,13 +1833,7 @@ hwloc__xml_import_cpukind(hwloc_topology_t topology, goto error; } - if (topology->flags & HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS) { - hwloc__free_infos(infos, nr_infos); - hwloc_bitmap_free(cpuset); - } else { - hwloc_internal_cpukinds_register(topology, cpuset, forced_efficiency, infos, nr_infos, HWLOC_CPUKINDS_REGISTER_FLAG_OVERWRITE_FORCED_EFFICIENCY); - hwloc__free_infos(infos, nr_infos); - } + hwloc_internal_cpukinds_register(topology, cpuset, forced_efficiency, infos, nr_infos, HWLOC_CPUKINDS_REGISTER_FLAG_OVERWRITE_FORCED_EFFICIENCY); return state->global->close_tag(state); @@ -2181,10 +2073,9 @@ hwloc_look_xml(struct hwloc_backend *backend, struct hwloc_disc_status *dstatus) if (ret < 0) goto failed; - if (data->version_major > 3 - || (data->version_major == 3 && data->version_minor > 0)) { + if (data->version_major > 2) { if (hwloc__xml_verbose()) - fprintf(stderr, "%s: cannot import XML version %u.%u > 3.0\n", + fprintf(stderr, "%s: cannot import XML version %u.%u > 2\n", data->msgprefix, data->version_major, data->version_minor); goto err; } @@ -2232,13 +2123,6 @@ hwloc_look_xml(struct hwloc_backend *backend, struct hwloc_disc_status *dstatus) ret = hwloc__xml_import_cpukind(topology, &childstate); if (ret < 0) goto failed; - } else if (!strcmp(tag, "info")) { - char *infoname, *infovalue; - ret = hwloc___xml_import_info(&infoname, &infovalue, &childstate); - if (ret < 0) - goto failed; - /* move 3.x topology info back to the root object */ - hwloc_obj_add_info(topology->levels[0][0], infoname, infovalue); } else { if (hwloc__xml_verbose()) fprintf(stderr, "%s: ignoring unknown tag `%s' after root object.\n", @@ -2284,8 +2168,7 @@ done: * but it would require to have those objects in the original XML order (like the first_numanode cousin-list). * because the topology order can be different if some parents are ignored during load. */ - if (nbobjs == data->nbnumanodes - && !(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_DISTANCES)) { + if (nbobjs == data->nbnumanodes) { hwloc_obj_t *objs = malloc(nbobjs*sizeof(hwloc_obj_t)); uint64_t *values = malloc(nbobjs*nbobjs*sizeof(*values)); assert(data->nbnumanodes > 0); /* v1dist->nbobjs is >0 after import */ @@ -2767,7 +2650,7 @@ hwloc__xml_export_object_contents (hwloc__xml_export_state_t state, hwloc_topolo logical_to_v2array = malloc(nbobjs * sizeof(*logical_to_v2array)); if (!logical_to_v2array) { - if (HWLOC_SHOW_ALL_ERRORS()) + if (!hwloc_hide_errors()) fprintf(stderr, "hwloc/xml/export/v1: failed to allocated logical_to_v2array\n"); continue; } @@ -2942,7 +2825,6 @@ hwloc__xml_v1export_object_with_memory(hwloc__xml_export_state_t parentstate, hw /* child has sibling, we must add a Group around those memory children */ hwloc_obj_t group = parentstate->global->v1_memory_group; parentstate->new_child(parentstate, &gstate, "object"); - group->parent = obj->parent; group->cpuset = obj->cpuset; group->complete_cpuset = obj->complete_cpuset; group->nodeset = obj->nodeset; @@ -3115,7 +2997,7 @@ hwloc__xml_v2export_support(hwloc__xml_export_state_t parentstate, hwloc_topolog HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_support) == 4*sizeof(void*)); HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_discovery_support) == 6); HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_cpubind_support) == 11); - HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_membind_support) == 16); + HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_membind_support) == 15); HWLOC_BUILD_ASSERT(sizeof(struct hwloc_topology_misc_support) == 1); #endif @@ -3160,7 +3042,6 @@ hwloc__xml_v2export_support(hwloc__xml_export_state_t parentstate, hwloc_topolog DO(membind,firsttouch_membind); DO(membind,bind_membind); DO(membind,interleave_membind); - DO(membind,weighted_interleave_membind); DO(membind,nexttouch_membind); DO(membind,migrate_membind); DO(membind,get_area_memlocation); @@ -3242,11 +3123,9 @@ hwloc__xml_export_memattrs(hwloc__xml_export_state_t state, hwloc_topology_t top continue; imattr = &topology->memattrs[id]; - if (id < HWLOC_MEMATTR_ID_MAX && !imattr->nr_targets) - /* no need to export standard attributes without any target, - * their definition is now standardized, - * the old hwloc importing this XML may recreate these attributes just like it would for a non-imported topology. - */ + if ((id == HWLOC_MEMATTR_ID_LATENCY || id == HWLOC_MEMATTR_ID_BANDWIDTH) + && !imattr->nr_targets) + /* no need to export target-less attributes for initial attributes, no release support attributes without those definitions */ continue; state->new_child(state, &mstate, "memattr"); diff --git a/src/3rdparty/hwloc/src/topology.c b/src/3rdparty/hwloc/src/topology.c index 2d0eb832..01e5a863 100644 --- a/src/3rdparty/hwloc/src/topology.c +++ b/src/3rdparty/hwloc/src/topology.c @@ -1,9 +1,8 @@ /* * Copyright © 2009 CNRS - * Copyright © 2009-2025 Inria. All rights reserved. + * Copyright © 2009-2021 Inria. All rights reserved. * Copyright © 2009-2012, 2020 Université Bordeaux * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. - * Copyright © 2022 IBM Corporation. All rights reserved. * See COPYING in top-level directory. */ @@ -53,6 +52,41 @@ #include #endif +/* + * Define ZES_ENABLE_SYSMAN=1 early so that the LevelZero backend gets Sysman enabled. + * Use the constructor if supported and/or the Windows DllMain callback. + * Do it in the main hwloc library instead of the levelzero component because + * the latter could be loaded later as a plugin. + * + * L0 seems to be using getenv() to check this variable on Windows + * (at least in the Intel Compute-Runtime of March 2021), + * so use putenv() to set the variable. + * + * For the record, Get/SetEnvironmentVariable() is not exactly the same as getenv/putenv(): + * - getenv() doesn't see what was set with SetEnvironmentVariable() + * - GetEnvironmentVariable() doesn't see putenv() in cygwin (while it does in MSVC and MinGW). + * Hence, if L0 ever switches from getenv() to GetEnvironmentVariable(), + * it will break in cygwin, we'll have to use both putenv() and SetEnvironmentVariable(). + * Hopefully L0 will be provide a way to enable Sysman without env vars before it happens. + */ +#ifdef HWLOC_HAVE_ATTRIBUTE_CONSTRUCTOR +static void hwloc_constructor(void) __attribute__((constructor)); +static void hwloc_constructor(void) +{ + if (!getenv("ZES_ENABLE_SYSMAN")) + putenv((char *) "ZES_ENABLE_SYSMAN=1"); +} +#endif +#ifdef HWLOC_WIN_SYS +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) +{ + if (fdwReason == DLL_PROCESS_ATTACH) { + if (!getenv("ZES_ENABLE_SYSMAN")) + putenv((char *) "ZES_ENABLE_SYSMAN=1"); + } + return TRUE; +} +#endif unsigned hwloc_get_api_version(void) { @@ -64,25 +98,14 @@ int hwloc_topology_abi_check(hwloc_topology_t topology) return topology->topology_abi != HWLOC_TOPOLOGY_ABI ? -1 : 0; } -/* callers should rather use wrappers HWLOC_SHOW_ALL_ERRORS() and HWLOC_SHOW_CRITICAL_ERRORS() for clarity */ int hwloc_hide_errors(void) { static int hide = 1; /* only show critical errors by default. lstopo will show others */ static int checked = 0; if (!checked) { const char *envvar = getenv("HWLOC_HIDE_ERRORS"); - if (envvar) { + if (envvar) hide = atoi(envvar); -#ifdef HWLOC_DEBUG - } else { - /* if debug is enabled and HWLOC_DEBUG_VERBOSE isn't forced to 0, - * show all errors jus like we show all debug messages. - */ - envvar = getenv("HWLOC_DEBUG_VERBOSE"); - if (!envvar || atoi(envvar)) - hide = 0; -#endif - } checked = 1; } return hide; @@ -96,24 +119,21 @@ report_insert_error_format_obj(char *buf, size_t buflen, hwloc_obj_t obj) char typestr[64]; char *cpusetstr; char *nodesetstr = NULL; - char indexstr[64] = ""; - char groupstr[64] = ""; hwloc_obj_type_snprintf(typestr, sizeof(typestr), obj, 0); hwloc_bitmap_asprintf(&cpusetstr, obj->cpuset); - if (obj->os_index != HWLOC_UNKNOWN_INDEX) - snprintf(indexstr, sizeof(indexstr), "P#%u ", obj->os_index); - if (obj->type == HWLOC_OBJ_GROUP) - snprintf(groupstr, sizeof(groupstr), "groupkind %u-%u ", obj->attr->group.kind, obj->attr->group.subkind); if (obj->nodeset) /* may be missing during insert */ hwloc_bitmap_asprintf(&nodesetstr, obj->nodeset); - snprintf(buf, buflen, "%s (%s%s%s%s%scpuset %s%s%s)", - typestr, - indexstr, - obj->subtype ? "subtype " : "", obj->subtype ? obj->subtype : "", obj->subtype ? " " : "", - groupstr, - cpusetstr, - nodesetstr ? " nodeset " : "", nodesetstr ? nodesetstr : ""); + if (obj->os_index != HWLOC_UNKNOWN_INDEX) + snprintf(buf, buflen, "%s (P#%u cpuset %s%s%s)", + typestr, obj->os_index, cpusetstr, + nodesetstr ? " nodeset " : "", + nodesetstr ? nodesetstr : ""); + else + snprintf(buf, buflen, "%s (cpuset %s%s%s)", + typestr, cpusetstr, + nodesetstr ? " nodeset " : "", + nodesetstr ? nodesetstr : ""); free(cpusetstr); free(nodesetstr); } @@ -122,18 +142,17 @@ static void report_insert_error(hwloc_obj_t new, hwloc_obj_t old, const char *ms { static int reported = 0; - if (reason && !reported && HWLOC_SHOW_CRITICAL_ERRORS()) { + if (reason && !reported && hwloc_hide_errors() < 2) { char newstr[512]; char oldstr[512]; report_insert_error_format_obj(newstr, sizeof(newstr), new); report_insert_error_format_obj(oldstr, sizeof(oldstr), old); fprintf(stderr, "****************************************************************************\n"); - fprintf(stderr, "* hwloc %s received invalid information.\n", HWLOC_VERSION); + fprintf(stderr, "* hwloc %s received invalid information from the operating system.\n", HWLOC_VERSION); fprintf(stderr, "*\n"); - fprintf(stderr, "* Failed with error: %s\n", msg); - fprintf(stderr, "* while inserting %s\n", newstr); - fprintf(stderr, "* at %s\n", oldstr); + fprintf(stderr, "* Failed with: %s\n", msg); + fprintf(stderr, "* while inserting %s at %s\n", newstr, oldstr); fprintf(stderr, "* coming from: %s\n", reason); fprintf(stderr, "*\n"); fprintf(stderr, "* The following FAQ entry in the hwloc documentation may help:\n"); @@ -415,20 +434,6 @@ hwloc_debug_print_objects(int indent __hwloc_attribute_unused, hwloc_obj_t obj) #define hwloc_debug_print_objects(indent, obj) do { /* nothing */ } while (0) #endif /* !HWLOC_DEBUG */ -int hwloc_obj_set_subtype(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_obj_t obj, const char *subtype) -{ - char *new = NULL; - if (subtype) { - new = strdup(subtype); - if (!new) - return -1; - } - if (obj->subtype) - free(obj->subtype); - obj->subtype = new; - return 0; -} - void hwloc__free_infos(struct hwloc_info_s *infos, unsigned count) { unsigned i; @@ -647,8 +652,7 @@ unlink_and_free_object_and_children(hwloc_obj_t *pobj) void hwloc_free_object_and_children(hwloc_obj_t obj) { - if (obj) - unlink_and_free_object_and_children(&obj); + unlink_and_free_object_and_children(&obj); } /* Free an object, its next siblings and their children without unlinking from parent. @@ -1894,78 +1898,14 @@ hwloc_topology_alloc_group_object(struct hwloc_topology *topology) return hwloc_alloc_setup_object(topology, HWLOC_OBJ_GROUP, HWLOC_UNKNOWN_INDEX); } -int -hwloc_topology_free_group_object(struct hwloc_topology *topology, hwloc_obj_t obj) -{ - if (!topology->is_loaded) { - /* this could actually work, see insert() below */ - errno = EINVAL; - return -1; - } - if (topology->adopted_shmem_addr) { - errno = EPERM; - return -1; - } - hwloc_free_unlinked_object(obj); - return 0; -} - static void hwloc_propagate_symmetric_subtree(hwloc_topology_t topology, hwloc_obj_t root); static void propagate_total_memory(hwloc_obj_t obj); static void hwloc_set_group_depth(hwloc_topology_t topology); -static void hwloc_connect_children(hwloc_obj_t parent); -static int hwloc_connect_levels(hwloc_topology_t topology); -static int hwloc_connect_special_levels(hwloc_topology_t topology); -static int hwloc_filter_levels_keep_structure(hwloc_topology_t topology); - -/* reconnect children and levels, - * and optionnally merged identical levels while keeping structure. - */ -int -hwloc__reconnect(struct hwloc_topology *topology, unsigned long flags) -{ - int merged_levels = 0; - - if (topology->modified) { - hwloc_connect_children(topology->levels[0][0]); - - if (hwloc_connect_levels(topology) < 0) - return -1; - } - - if (flags & _HWLOC_RECONNECT_FLAG_KEEPSTRUCTURE) { - merged_levels = hwloc_filter_levels_keep_structure(topology); - /* If > 0, we merged some levels, - * some child+parent special children list may have been merged, - * hence specials level might need reordering, - * So reconnect special levels only here at the end. - */ - } - - if (topology->modified || merged_levels) { - if (hwloc_connect_special_levels(topology) < 0) - return -1; - } - - topology->modified = 0; - return 0; -} - -int -hwloc_topology_reconnect(struct hwloc_topology *topology, unsigned long flags) -{ - if (flags) { - errno = EINVAL; - return -1; - } - - return hwloc__reconnect(topology, 0); -} hwloc_obj_t hwloc_topology_insert_group_object(struct hwloc_topology *topology, hwloc_obj_t obj) { - hwloc_obj_t res, root, child; + hwloc_obj_t res, root; int cmp; if (!topology->is_loaded) { @@ -1975,7 +1915,6 @@ hwloc_topology_insert_group_object(struct hwloc_topology *topology, hwloc_obj_t return NULL; } if (topology->adopted_shmem_addr) { - hwloc_free_unlinked_object(obj); errno = EPERM; return NULL; } @@ -2029,7 +1968,6 @@ hwloc_topology_insert_group_object(struct hwloc_topology *topology, hwloc_obj_t res = hwloc__insert_object_by_cpuset(topology, NULL, obj, NULL /* do not show errors on stdout */); } else { /* just merge root */ - hwloc_free_unlinked_object(obj); res = root; } @@ -2053,19 +1991,9 @@ hwloc_topology_insert_group_object(struct hwloc_topology *topology, hwloc_obj_t /* properly inserted */ hwloc_obj_add_children_sets(res); - /* reconnect levels. - * no need to filter levels keep_structure because groups are either auto-merged - * or have the dont_merge attribute */ - if (hwloc__reconnect(topology, 0) < 0) + if (hwloc_topology_reconnect(topology, 0) < 0) return NULL; - /* Compute group total_memory. */ - res->total_memory = 0; - for_each_child(child, res) - res->total_memory += child->total_memory; - for_each_memory_child(child, res) - res->total_memory += child->total_memory; - hwloc_propagate_symmetric_subtree(topology, topology->levels[0][0]); hwloc_set_group_depth(topology); @@ -2296,13 +2224,11 @@ fixup_sets(hwloc_obj_t obj) int hwloc_obj_add_other_obj_sets(hwloc_obj_t dst, hwloc_obj_t src) { -#define ADD_OTHER_OBJ_SET(_dst, _src, _set) \ - if ((_src)->_set) { \ - if (!(_dst)->_set) \ - (_dst)->_set = hwloc_bitmap_alloc(); \ - if (!(_dst)->_set \ - || hwloc_bitmap_or((_dst)->_set, (_dst)->_set, (_src)->_set) < 0) \ - return -1; \ +#define ADD_OTHER_OBJ_SET(_dst, _src, _set) \ + if ((_src)->_set) { \ + if (!(_dst)->_set) \ + (_dst)->_set = hwloc_bitmap_alloc(); \ + hwloc_bitmap_or((_dst)->_set, (_dst)->_set, (_src)->_set); \ } ADD_OTHER_OBJ_SET(dst, src, cpuset); ADD_OTHER_OBJ_SET(dst, src, complete_cpuset); @@ -2548,8 +2474,8 @@ hwloc_compare_levels_structure(hwloc_topology_t topology, unsigned i) return 0; } -/* return > 0 if any level was removed. */ -static int +/* return > 0 if any level was removed, which means reconnect is needed */ +static void hwloc_filter_levels_keep_structure(hwloc_topology_t topology) { unsigned i, j; @@ -2576,15 +2502,9 @@ hwloc_filter_levels_keep_structure(hwloc_topology_t topology) if (type1 == HWLOC_OBJ_GROUP && hwloc_dont_merge_group_level(topology, i)) replacechild = 0; } - if (!replacechild && !replaceparent) { - /* always merge Die into Package when levels are identical */ - if (type1 == HWLOC_OBJ_PACKAGE && type2 == HWLOC_OBJ_DIE) - replacechild = 1; - } - if (!replacechild && !replaceparent) { + if (!replacechild && !replaceparent) /* no ignoring */ continue; - } /* Decide which one to actually replace */ if (replaceparent && replacechild) { /* If both may be replaced, look at obj_type_priority */ @@ -2726,8 +2646,6 @@ hwloc_filter_levels_keep_structure(hwloc_topology_t topology) topology->type_depth[type] = HWLOC_TYPE_DEPTH_MULTIPLE; } } - - return 0; } static void @@ -3045,9 +2963,9 @@ hwloc_list_special_objects(hwloc_topology_t topology, hwloc_obj_t obj) } } -/* Build Memory, I/O and Misc levels */ +/* Build I/O levels */ static int -hwloc_connect_special_levels(hwloc_topology_t topology) +hwloc_connect_io_misc_levels(hwloc_topology_t topology) { unsigned i; @@ -3212,7 +3130,7 @@ hwloc_connect_levels(hwloc_topology_t topology) tmpnbobjs = realloc(topology->level_nbobjects, 2 * topology->nb_levels_allocated * sizeof(*topology->level_nbobjects)); if (!tmplevels || !tmpnbobjs) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: failed to realloc level arrays to %u\n", topology->nb_levels_allocated * 2); /* if one realloc succeeded, make sure the caller will free the new buffer */ @@ -3255,6 +3173,29 @@ hwloc_connect_levels(hwloc_topology_t topology) return 0; } +int +hwloc_topology_reconnect(struct hwloc_topology *topology, unsigned long flags) +{ + if (flags) { + errno = EINVAL; + return -1; + } + if (!topology->modified) + return 0; + + hwloc_connect_children(topology->levels[0][0]); + + if (hwloc_connect_levels(topology) < 0) + return -1; + + if (hwloc_connect_io_misc_levels(topology) < 0) + return -1; + + topology->modified = 0; + + return 0; +} + /* for regression testing, make sure the order of io devices * doesn't change with the dentry order in the filesystem * @@ -3511,21 +3452,38 @@ hwloc_discover(struct hwloc_topology *topology, hwloc_debug_print_objects(0, topology->levels[0][0]); } + /* see if we should ignore the root now that we know how many children it has */ + if (!hwloc_filter_check_keep_object(topology, topology->levels[0][0]) + && topology->levels[0][0]->first_child && !topology->levels[0][0]->first_child->next_sibling) { + hwloc_obj_t oldroot = topology->levels[0][0]; + hwloc_obj_t newroot = oldroot->first_child; + /* switch to the new root */ + newroot->parent = NULL; + topology->levels[0][0] = newroot; + /* move oldroot memory/io/misc children before newroot children */ + if (oldroot->memory_first_child) + prepend_siblings_list(&newroot->memory_first_child, oldroot->memory_first_child, newroot); + if (oldroot->io_first_child) + prepend_siblings_list(&newroot->io_first_child, oldroot->io_first_child, newroot); + if (oldroot->misc_first_child) + prepend_siblings_list(&newroot->misc_first_child, oldroot->misc_first_child, newroot); + /* destroy oldroot and use the new one */ + hwloc_free_unlinked_object(oldroot); + } + /* * All object cpusets and nodesets are properly set now. */ /* Now connect handy pointers to make remaining discovery easier. */ hwloc_debug("%s", "\nOk, finished tweaking, now connect\n"); - if (hwloc__reconnect(topology, 0) < 0) + if (hwloc_topology_reconnect(topology, 0) < 0) return -1; hwloc_debug_print_objects(0, topology->levels[0][0]); /* * Additional discovery */ - hwloc_pci_discovery_prepare(topology); - if (topology->backend_phases & HWLOC_DISC_PHASE_PCI) { dstatus->phase = HWLOC_DISC_PHASE_PCI; hwloc_discover_by_phase(topology, dstatus, "PCI"); @@ -3543,8 +3501,6 @@ hwloc_discover(struct hwloc_topology *topology, hwloc_discover_by_phase(topology, dstatus, "ANNOTATE"); } - hwloc_pci_discovery_exit(topology); /* pci needed up to annotate */ - if (getenv("HWLOC_DEBUG_SORT_CHILDREN")) hwloc_debug_sort_children(topology->levels[0][0]); @@ -3557,28 +3513,31 @@ hwloc_discover(struct hwloc_topology *topology, hwloc_debug("%s", "\nRemoving empty objects\n"); remove_empty(topology, &topology->levels[0][0]); if (!topology->levels[0][0]) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Topology became empty, aborting!\n"); return -1; } if (hwloc_bitmap_iszero(topology->levels[0][0]->cpuset)) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Topology does not contain any PU, aborting!\n"); return -1; } if (hwloc_bitmap_iszero(topology->levels[0][0]->nodeset)) { - if (HWLOC_SHOW_CRITICAL_ERRORS()) + if (hwloc_hide_errors() < 2) fprintf(stderr, "hwloc: Topology does not contain any NUMA node, aborting!\n"); return -1; } hwloc_debug_print_objects(0, topology->levels[0][0]); - /* reconnect all (new groups might have appears, IO added, etc), - * and (now that everything was added) remove identical levels while keeping structure + /* Reconnect things after all these changes. + * Often needed because of Groups inserted for I/Os. + * And required for KEEP_STRUCTURE below. */ - hwloc_debug("%s", "\nRemoving levels with HWLOC_TYPE_FILTER_KEEP_STRUCTURE\n"); - if (hwloc__reconnect(topology, _HWLOC_RECONNECT_FLAG_KEEPSTRUCTURE) < 0) + if (hwloc_topology_reconnect(topology, 0) < 0) return -1; + + hwloc_debug("%s", "\nRemoving levels with HWLOC_TYPE_FILTER_KEEP_STRUCTURE\n"); + hwloc_filter_levels_keep_structure(topology); hwloc_debug_print_objects(0, topology->levels[0][0]); /* accumulate children memory in total_memory fields (only once parent is set) */ @@ -3707,7 +3666,6 @@ hwloc__topology_init (struct hwloc_topology **topologyp, hwloc__topology_filter_init(topology); - /* always initialize since we don't know flags to disable those yet */ hwloc_internal_distances_init(topology); hwloc_internal_memattrs_init(topology); hwloc_internal_cpukinds_init(topology); @@ -3804,16 +3762,7 @@ hwloc_topology_set_flags (struct hwloc_topology *topology, unsigned long flags) return -1; } - if (flags & ~(HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED - |HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM - |HWLOC_TOPOLOGY_FLAG_THISSYSTEM_ALLOWED_RESOURCES - |HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT - |HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING - |HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING - |HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING - |HWLOC_TOPOLOGY_FLAG_NO_DISTANCES - |HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS - |HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS)) { + if (flags & ~(HWLOC_TOPOLOGY_FLAG_INCLUDE_DISALLOWED|HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM|HWLOC_TOPOLOGY_FLAG_THISSYSTEM_ALLOWED_RESOURCES|HWLOC_TOPOLOGY_FLAG_IMPORT_SUPPORT|HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_CPUBINDING|HWLOC_TOPOLOGY_FLAG_RESTRICT_TO_MEMBINDING|HWLOC_TOPOLOGY_FLAG_DONT_CHANGE_BINDING)) { errno = EINVAL; return -1; } @@ -3920,12 +3869,8 @@ int hwloc_topology_set_cache_types_filter(hwloc_topology_t topology, enum hwloc_type_filter_e filter) { unsigned i; - if (topology->is_loaded) { - errno = EBUSY; - return -1; - } - for(i=HWLOC_OBJ_L1CACHE; i<=HWLOC_OBJ_L3ICACHE; i++) - hwloc__topology_set_type_filter(topology, (hwloc_obj_type_t) i, filter); + for(i=HWLOC_OBJ_L1CACHE; iis_loaded) { - errno = EBUSY; - return -1; - } - for(i=HWLOC_OBJ_L1ICACHE; i<=HWLOC_OBJ_L3ICACHE; i++) - hwloc__topology_set_type_filter(topology, (hwloc_obj_type_t) i, filter); + for(i=HWLOC_OBJ_L1ICACHE; iis_loaded) { - errno = EBUSY; - return -1; - } - hwloc__topology_set_type_filter(topology, HWLOC_OBJ_BRIDGE, filter); - hwloc__topology_set_type_filter(topology, HWLOC_OBJ_PCI_DEVICE, filter); - hwloc__topology_set_type_filter(topology, HWLOC_OBJ_OS_DEVICE, filter); + hwloc_topology_set_type_filter(topology, HWLOC_OBJ_BRIDGE, filter); + hwloc_topology_set_type_filter(topology, HWLOC_OBJ_PCI_DEVICE, filter); + hwloc_topology_set_type_filter(topology, HWLOC_OBJ_OS_DEVICE, filter); return 0; } @@ -3972,12 +3909,9 @@ hwloc_topology_clear (struct hwloc_topology *topology) { /* no need to set to NULL after free() since callers will call setup_defaults() or just destroy the rest of the topology */ unsigned l; - - /* always destroy cpukinds/distances/memattrs since there are always initialized during init() */ hwloc_internal_cpukinds_destroy(topology); hwloc_internal_distances_destroy(topology); hwloc_internal_memattrs_destroy(topology); - hwloc_free_object_and_children(topology->levels[0][0]); hwloc_bitmap_free(topology->allowed_cpuset); hwloc_bitmap_free(topology->allowed_nodeset); @@ -4017,7 +3951,6 @@ hwloc_topology_load (struct hwloc_topology *topology) { struct hwloc_disc_status dstatus; const char *env; - unsigned i; int err; if (topology->is_loaded) { @@ -4026,18 +3959,8 @@ hwloc_topology_load (struct hwloc_topology *topology) } /* initialize envvar-related things */ - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_DISTANCES)) - hwloc_internal_distances_prepare(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS)) - hwloc_internal_memattrs_prepare(topology); - - /* check if any cpu cache filter is not NONE */ - topology->want_some_cpu_caches = 0; - for(i=HWLOC_OBJ_L1CACHE; i<=HWLOC_OBJ_L3ICACHE; i++) - if (topology->type_filter[i] != HWLOC_TYPE_FILTER_KEEP_NONE) { - topology->want_some_cpu_caches = 1; - break; - } + hwloc_internal_distances_prepare(topology); + hwloc_internal_memattrs_prepare(topology); if (getenv("HWLOC_XML_USERDATA_NOT_DECODED")) topology->userdata_not_decoded = 1; @@ -4104,42 +4027,36 @@ hwloc_topology_load (struct hwloc_topology *topology) */ hwloc_set_binding_hooks(topology); + hwloc_pci_discovery_prepare(topology); + /* actual topology discovery */ err = hwloc_discover(topology, &dstatus); if (err < 0) goto out; + hwloc_pci_discovery_exit(topology); + #ifndef HWLOC_DEBUG if (getenv("HWLOC_DEBUG_CHECK")) #endif hwloc_topology_check(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS)) { - /* Rank cpukinds */ - hwloc_internal_cpukinds_rank(topology); - } + /* Rank cpukinds */ + hwloc_internal_cpukinds_rank(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_DISTANCES)) { - /* Mark distances objs arrays as invalid since we may have removed objects - * from the topology after adding the distances (remove_empty, etc). - * It would be hard to actually verify whether it's needed. - */ - hwloc_internal_distances_invalidate_cached_objs(topology); - /* And refresh distances so that multithreaded concurrent distances_get() - * don't refresh() concurrently (disallowed). - */ - hwloc_internal_distances_refresh(topology); - } + /* Mark distances objs arrays as invalid since we may have removed objects + * from the topology after adding the distances (remove_empty, etc). + * It would be hard to actually verify whether it's needed. + */ + hwloc_internal_distances_invalidate_cached_objs(topology); + /* And refresh distances so that multithreaded concurrent distances_get() + * don't refresh() concurrently (disallowed). + */ + hwloc_internal_distances_refresh(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS)) { - int force_memtiers = (getenv("HWLOC_MEMTIERS_REFRESH") != NULL); - /* Same for memattrs */ - hwloc_internal_memattrs_need_refresh(topology); - hwloc_internal_memattrs_refresh(topology); - /* update memtiers unless XML */ - if (force_memtiers || strcmp(topology->backends->component->name, "xml")) - hwloc_internal_memattrs_guess_memory_tiers(topology, force_memtiers); - } + /* Same for memattrs */ + hwloc_internal_memattrs_need_refresh(topology); + hwloc_internal_memattrs_refresh(topology); topology->is_loaded = 1; @@ -4198,11 +4115,20 @@ restrict_object_by_cpuset(hwloc_topology_t topology, unsigned long flags, hwloc_ hwloc_bitmap_andnot(obj->cpuset, obj->cpuset, droppedcpuset); hwloc_bitmap_andnot(obj->complete_cpuset, obj->complete_cpuset, droppedcpuset); modified = 1; + } else { + if ((flags & HWLOC_RESTRICT_FLAG_REMOVE_CPULESS) + && hwloc_bitmap_iszero(obj->complete_cpuset)) { + /* we're empty, there's a NUMAnode below us, it'll be removed this time */ + modified = 1; + } + /* nodeset cannot intersect unless cpuset intersects or is empty */ + if (droppednodeset) + assert(!hwloc_bitmap_intersects(obj->complete_nodeset, droppednodeset) + || hwloc_bitmap_iszero(obj->complete_cpuset)); } - if (droppednodeset && hwloc_bitmap_intersects(obj->complete_nodeset, droppednodeset)) { + if (droppednodeset) { hwloc_bitmap_andnot(obj->nodeset, obj->nodeset, droppednodeset); hwloc_bitmap_andnot(obj->complete_nodeset, obj->complete_nodeset, droppednodeset); - modified = 1; } if (modified) { @@ -4255,11 +4181,20 @@ restrict_object_by_nodeset(hwloc_topology_t topology, unsigned long flags, hwloc hwloc_bitmap_andnot(obj->nodeset, obj->nodeset, droppednodeset); hwloc_bitmap_andnot(obj->complete_nodeset, obj->complete_nodeset, droppednodeset); modified = 1; + } else { + if ((flags & HWLOC_RESTRICT_FLAG_REMOVE_MEMLESS) + && hwloc_bitmap_iszero(obj->complete_nodeset)) { + /* we're empty, there's a PU below us, it'll be removed this time */ + modified = 1; + } + /* cpuset cannot intersect unless nodeset intersects or is empty */ + if (droppedcpuset) + assert(!hwloc_bitmap_intersects(obj->complete_cpuset, droppedcpuset) + || hwloc_bitmap_iszero(obj->complete_nodeset)); } - if (droppedcpuset && hwloc_bitmap_intersects(obj->complete_cpuset, droppedcpuset)) { + if (droppedcpuset) { hwloc_bitmap_andnot(obj->cpuset, obj->cpuset, droppedcpuset); hwloc_bitmap_andnot(obj->complete_cpuset, obj->complete_cpuset, droppedcpuset); - modified = 1; } if (modified) { @@ -4425,21 +4360,17 @@ hwloc_topology_restrict(struct hwloc_topology *topology, hwloc_const_bitmap_t se hwloc_bitmap_free(droppedcpuset); hwloc_bitmap_free(droppednodeset); - if (hwloc__reconnect(topology, _HWLOC_RECONNECT_FLAG_KEEPSTRUCTURE) < 0) + if (hwloc_topology_reconnect(topology, 0) < 0) goto out; - /* some objects may have disappeared and sets were modified, - * we need to update distances, etc */ - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_DISTANCES)) - hwloc_internal_distances_invalidate_cached_objs(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS)) - hwloc_internal_memattrs_need_refresh(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS)) - hwloc_internal_cpukinds_restrict(topology); - + /* some objects may have disappeared, we need to update distances objs arrays */ + hwloc_internal_distances_invalidate_cached_objs(topology); + hwloc_internal_memattrs_need_refresh(topology); + hwloc_filter_levels_keep_structure(topology); hwloc_propagate_symmetric_subtree(topology, topology->levels[0][0]); propagate_total_memory(topology->levels[0][0]); + hwloc_internal_cpukinds_restrict(topology); #ifndef HWLOC_DEBUG if (getenv("HWLOC_DEBUG_CHECK")) @@ -4527,12 +4458,9 @@ hwloc_topology_allow(struct hwloc_topology *topology, int hwloc_topology_refresh(struct hwloc_topology *topology) { - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_CPUKINDS)) - hwloc_internal_cpukinds_rank(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_DISTANCES)) - hwloc_internal_distances_refresh(topology); - if (!(topology->flags & HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS)) - hwloc_internal_memattrs_refresh(topology); + hwloc_internal_cpukinds_rank(topology); + hwloc_internal_distances_refresh(topology); + hwloc_internal_memattrs_refresh(topology); return 0; } @@ -5047,8 +4975,6 @@ hwloc_topology_check(struct hwloc_topology *topology) unsigned i; int j, depth; - assert(!topology->modified); - /* make sure we can use ranges to check types */ /* hwloc__obj_type_is_{,d,i}cache() want cache types to be ordered like this */ @@ -5086,9 +5012,6 @@ hwloc_topology_check(struct hwloc_topology *topology) for(i=HWLOC_OBJ_TYPE_MIN; iis_loaded) - return; - depth = hwloc_topology_get_depth(topology); assert(!topology->modified); diff --git a/src/3rdparty/libethash/CMakeLists.txt b/src/3rdparty/libethash/CMakeLists.txt index 51993e0d..6a545440 100644 --- a/src/3rdparty/libethash/CMakeLists.txt +++ b/src/3rdparty/libethash/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required (VERSION 2.8.12) project (ethash C) set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os") diff --git a/src/3rdparty/llhttp/api.c b/src/3rdparty/llhttp/api.c index 02452541..8a4bdd26 100644 --- a/src/3rdparty/llhttp/api.c +++ b/src/3rdparty/llhttp/api.c @@ -4,7 +4,7 @@ #include "llhttp.h" -#define CALLBACK_MAYBE(PARSER, NAME) \ +#define CALLBACK_MAYBE(PARSER, NAME, ...) \ do { \ const llhttp_settings_t* settings; \ settings = (const llhttp_settings_t*) (PARSER)->settings; \ @@ -12,22 +12,7 @@ err = 0; \ break; \ } \ - err = settings->NAME((PARSER)); \ - } while (0) - -#define SPAN_CALLBACK_MAYBE(PARSER, NAME, START, LEN) \ - do { \ - const llhttp_settings_t* settings; \ - settings = (const llhttp_settings_t*) (PARSER)->settings; \ - if (settings == NULL || settings->NAME == NULL) { \ - err = 0; \ - break; \ - } \ - err = settings->NAME((PARSER), (START), (LEN)); \ - if (err == -1) { \ - err = HPE_USER; \ - llhttp_set_error_reason((PARSER), "Span callback error in " #NAME); \ - } \ + err = settings->NAME(__VA_ARGS__); \ } while (0) void llhttp_init(llhttp_t* parser, llhttp_type_t type, @@ -46,25 +31,21 @@ extern int wasm_on_url(llhttp_t* p, const char* at, size_t length); extern int wasm_on_status(llhttp_t* p, const char* at, size_t length); extern int wasm_on_header_field(llhttp_t* p, const char* at, size_t length); extern int wasm_on_header_value(llhttp_t* p, const char* at, size_t length); -extern int wasm_on_headers_complete(llhttp_t * p, int status_code, - uint8_t upgrade, int should_keep_alive); +extern int wasm_on_headers_complete(llhttp_t * p); extern int wasm_on_body(llhttp_t* p, const char* at, size_t length); extern int wasm_on_message_complete(llhttp_t * p); -static int wasm_on_headers_complete_wrap(llhttp_t* p) { - return wasm_on_headers_complete(p, p->status_code, p->upgrade, - llhttp_should_keep_alive(p)); -} - const llhttp_settings_t wasm_settings = { - .on_message_begin = wasm_on_message_begin, - .on_url = wasm_on_url, - .on_status = wasm_on_status, - .on_header_field = wasm_on_header_field, - .on_header_value = wasm_on_header_value, - .on_headers_complete = wasm_on_headers_complete_wrap, - .on_body = wasm_on_body, - .on_message_complete = wasm_on_message_complete, + wasm_on_message_begin, + wasm_on_url, + wasm_on_status, + wasm_on_header_field, + wasm_on_header_value, + wasm_on_headers_complete, + wasm_on_body, + wasm_on_message_complete, + NULL, + NULL, }; @@ -78,8 +59,6 @@ void llhttp_free(llhttp_t* parser) { free(parser); } -#endif // defined(__wasm__) - /* Some getters required to get stuff from the parser */ uint8_t llhttp_get_type(llhttp_t* parser) { @@ -106,12 +85,14 @@ uint8_t llhttp_get_upgrade(llhttp_t* parser) { return parser->upgrade; } +#endif // defined(__wasm__) + void llhttp_reset(llhttp_t* parser) { llhttp_type_t type = parser->type; const llhttp_settings_t* settings = parser->settings; void* data = parser->data; - uint16_t lenient_flags = parser->lenient_flags; + uint8_t lenient_flags = parser->lenient_flags; llhttp__internal_init(parser); @@ -142,7 +123,7 @@ llhttp_errno_t llhttp_finish(llhttp_t* parser) { switch (parser->finish) { case HTTP_FINISH_SAFE_WITH_CB: - CALLBACK_MAYBE(parser, on_message_complete); + CALLBACK_MAYBE(parser, on_message_complete, parser); if (err != HPE_OK) return err; /* FALLTHROUGH */ @@ -218,21 +199,12 @@ const char* llhttp_errno_name(llhttp_errno_t err) { const char* llhttp_method_name(llhttp_method_t method) { #define HTTP_METHOD_GEN(NUM, NAME, STRING) case HTTP_##NAME: return #STRING; switch (method) { - HTTP_ALL_METHOD_MAP(HTTP_METHOD_GEN) + HTTP_METHOD_MAP(HTTP_METHOD_GEN) default: abort(); } #undef HTTP_METHOD_GEN } -const char* llhttp_status_name(llhttp_status_t status) { -#define HTTP_STATUS_GEN(NUM, NAME, STRING) case HTTP_STATUS_##NAME: return #STRING; - switch (status) { - HTTP_STATUS_MAP(HTTP_STATUS_GEN) - default: abort(); - } -#undef HTTP_STATUS_GEN -} - void llhttp_set_lenient_headers(llhttp_t* parser, int enabled) { if (enabled) { @@ -260,236 +232,103 @@ void llhttp_set_lenient_keep_alive(llhttp_t* parser, int enabled) { } } -void llhttp_set_lenient_transfer_encoding(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_TRANSFER_ENCODING; - } else { - parser->lenient_flags &= ~LENIENT_TRANSFER_ENCODING; - } -} - -void llhttp_set_lenient_version(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_VERSION; - } else { - parser->lenient_flags &= ~LENIENT_VERSION; - } -} - -void llhttp_set_lenient_data_after_close(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_DATA_AFTER_CLOSE; - } else { - parser->lenient_flags &= ~LENIENT_DATA_AFTER_CLOSE; - } -} - -void llhttp_set_lenient_optional_lf_after_cr(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_OPTIONAL_LF_AFTER_CR; - } else { - parser->lenient_flags &= ~LENIENT_OPTIONAL_LF_AFTER_CR; - } -} - -void llhttp_set_lenient_optional_crlf_after_chunk(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_OPTIONAL_CRLF_AFTER_CHUNK; - } else { - parser->lenient_flags &= ~LENIENT_OPTIONAL_CRLF_AFTER_CHUNK; - } -} - -void llhttp_set_lenient_optional_cr_before_lf(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_OPTIONAL_CR_BEFORE_LF; - } else { - parser->lenient_flags &= ~LENIENT_OPTIONAL_CR_BEFORE_LF; - } -} - -void llhttp_set_lenient_spaces_after_chunk_size(llhttp_t* parser, int enabled) { - if (enabled) { - parser->lenient_flags |= LENIENT_SPACES_AFTER_CHUNK_SIZE; - } else { - parser->lenient_flags &= ~LENIENT_SPACES_AFTER_CHUNK_SIZE; - } -} - /* Callbacks */ int llhttp__on_message_begin(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_message_begin); - return err; -} - - -int llhttp__on_protocol(llhttp_t* s, const char* p, const char* endp) { - int err; - SPAN_CALLBACK_MAYBE(s, on_protocol, p, endp - p); - return err; -} - - -int llhttp__on_protocol_complete(llhttp_t* s, const char* p, const char* endp) { - int err; - CALLBACK_MAYBE(s, on_protocol_complete); + CALLBACK_MAYBE(s, on_message_begin, s); return err; } int llhttp__on_url(llhttp_t* s, const char* p, const char* endp) { int err; - SPAN_CALLBACK_MAYBE(s, on_url, p, endp - p); + CALLBACK_MAYBE(s, on_url, s, p, endp - p); return err; } int llhttp__on_url_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_url_complete); + CALLBACK_MAYBE(s, on_url_complete, s); return err; } int llhttp__on_status(llhttp_t* s, const char* p, const char* endp) { int err; - SPAN_CALLBACK_MAYBE(s, on_status, p, endp - p); + CALLBACK_MAYBE(s, on_status, s, p, endp - p); return err; } int llhttp__on_status_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_status_complete); - return err; -} - - -int llhttp__on_method(llhttp_t* s, const char* p, const char* endp) { - int err; - SPAN_CALLBACK_MAYBE(s, on_method, p, endp - p); - return err; -} - - -int llhttp__on_method_complete(llhttp_t* s, const char* p, const char* endp) { - int err; - CALLBACK_MAYBE(s, on_method_complete); - return err; -} - - -int llhttp__on_version(llhttp_t* s, const char* p, const char* endp) { - int err; - SPAN_CALLBACK_MAYBE(s, on_version, p, endp - p); - return err; -} - - -int llhttp__on_version_complete(llhttp_t* s, const char* p, const char* endp) { - int err; - CALLBACK_MAYBE(s, on_version_complete); + CALLBACK_MAYBE(s, on_status_complete, s); return err; } int llhttp__on_header_field(llhttp_t* s, const char* p, const char* endp) { int err; - SPAN_CALLBACK_MAYBE(s, on_header_field, p, endp - p); + CALLBACK_MAYBE(s, on_header_field, s, p, endp - p); return err; } int llhttp__on_header_field_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_header_field_complete); + CALLBACK_MAYBE(s, on_header_field_complete, s); return err; } int llhttp__on_header_value(llhttp_t* s, const char* p, const char* endp) { int err; - SPAN_CALLBACK_MAYBE(s, on_header_value, p, endp - p); + CALLBACK_MAYBE(s, on_header_value, s, p, endp - p); return err; } int llhttp__on_header_value_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_header_value_complete); + CALLBACK_MAYBE(s, on_header_value_complete, s); return err; } int llhttp__on_headers_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_headers_complete); + CALLBACK_MAYBE(s, on_headers_complete, s); return err; } int llhttp__on_message_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_message_complete); + CALLBACK_MAYBE(s, on_message_complete, s); return err; } int llhttp__on_body(llhttp_t* s, const char* p, const char* endp) { int err; - SPAN_CALLBACK_MAYBE(s, on_body, p, endp - p); + CALLBACK_MAYBE(s, on_body, s, p, endp - p); return err; } int llhttp__on_chunk_header(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_chunk_header); - return err; -} - - -int llhttp__on_chunk_extension_name(llhttp_t* s, const char* p, const char* endp) { - int err; - SPAN_CALLBACK_MAYBE(s, on_chunk_extension_name, p, endp - p); - return err; -} - - -int llhttp__on_chunk_extension_name_complete(llhttp_t* s, const char* p, const char* endp) { - int err; - CALLBACK_MAYBE(s, on_chunk_extension_name_complete); - return err; -} - - -int llhttp__on_chunk_extension_value(llhttp_t* s, const char* p, const char* endp) { - int err; - SPAN_CALLBACK_MAYBE(s, on_chunk_extension_value, p, endp - p); - return err; -} - - -int llhttp__on_chunk_extension_value_complete(llhttp_t* s, const char* p, const char* endp) { - int err; - CALLBACK_MAYBE(s, on_chunk_extension_value_complete); + CALLBACK_MAYBE(s, on_chunk_header, s); return err; } int llhttp__on_chunk_complete(llhttp_t* s, const char* p, const char* endp) { int err; - CALLBACK_MAYBE(s, on_chunk_complete); - return err; -} - - -int llhttp__on_reset(llhttp_t* s, const char* p, const char* endp) { - int err; - CALLBACK_MAYBE(s, on_reset); + CALLBACK_MAYBE(s, on_chunk_complete, s); return err; } diff --git a/src/3rdparty/llhttp/api.h b/src/3rdparty/llhttp/api.h new file mode 100644 index 00000000..7fdbfc10 --- /dev/null +++ b/src/3rdparty/llhttp/api.h @@ -0,0 +1,253 @@ +#ifndef INCLUDE_LLHTTP_API_H_ +#define INCLUDE_LLHTTP_API_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include + +#if defined(__wasm__) +#define LLHTTP_EXPORT __attribute__((visibility("default"))) +#else +#define LLHTTP_EXPORT +#endif + +typedef llhttp__internal_t llhttp_t; +typedef struct llhttp_settings_s llhttp_settings_t; + +typedef int (*llhttp_data_cb)(llhttp_t*, const char *at, size_t length); +typedef int (*llhttp_cb)(llhttp_t*); + +struct llhttp_settings_s { + /* Possible return values 0, -1, `HPE_PAUSED` */ + llhttp_cb on_message_begin; + + llhttp_data_cb on_url; + llhttp_data_cb on_status; + llhttp_data_cb on_header_field; + llhttp_data_cb on_header_value; + + /* Possible return values: + * 0 - Proceed normally + * 1 - Assume that request/response has no body, and proceed to parsing the + * next message + * 2 - Assume absence of body (as above) and make `llhttp_execute()` return + * `HPE_PAUSED_UPGRADE` + * -1 - Error + * `HPE_PAUSED` + */ + llhttp_cb on_headers_complete; + + llhttp_data_cb on_body; + + /* Possible return values 0, -1, `HPE_PAUSED` */ + llhttp_cb on_message_complete; + + /* When on_chunk_header is called, the current chunk length is stored + * in parser->content_length. + * Possible return values 0, -1, `HPE_PAUSED` + */ + llhttp_cb on_chunk_header; + llhttp_cb on_chunk_complete; + + llhttp_cb on_url_complete; + llhttp_cb on_status_complete; + llhttp_cb on_header_field_complete; + llhttp_cb on_header_value_complete; +}; + +/* Initialize the parser with specific type and user settings. + * + * NOTE: lifetime of `settings` has to be at least the same as the lifetime of + * the `parser` here. In practice, `settings` has to be either a static + * variable or be allocated with `malloc`, `new`, etc. + */ +LLHTTP_EXPORT +void llhttp_init(llhttp_t* parser, llhttp_type_t type, + const llhttp_settings_t* settings); + +#if defined(__wasm__) + +LLHTTP_EXPORT +llhttp_t* llhttp_alloc(llhttp_type_t type); + +LLHTTP_EXPORT +void llhttp_free(llhttp_t* parser); + +LLHTTP_EXPORT +uint8_t llhttp_get_type(llhttp_t* parser); + +LLHTTP_EXPORT +uint8_t llhttp_get_http_major(llhttp_t* parser); + +LLHTTP_EXPORT +uint8_t llhttp_get_http_minor(llhttp_t* parser); + +LLHTTP_EXPORT +uint8_t llhttp_get_method(llhttp_t* parser); + +LLHTTP_EXPORT +int llhttp_get_status_code(llhttp_t* parser); + +LLHTTP_EXPORT +uint8_t llhttp_get_upgrade(llhttp_t* parser); + +#endif // defined(__wasm__) + +/* Reset an already initialized parser back to the start state, preserving the + * existing parser type, callback settings, user data, and lenient flags. + */ +LLHTTP_EXPORT +void llhttp_reset(llhttp_t* parser); + +/* Initialize the settings object */ +LLHTTP_EXPORT +void llhttp_settings_init(llhttp_settings_t* settings); + +/* Parse full or partial request/response, invoking user callbacks along the + * way. + * + * If any of `llhttp_data_cb` returns errno not equal to `HPE_OK` - the parsing + * interrupts, and such errno is returned from `llhttp_execute()`. If + * `HPE_PAUSED` was used as a errno, the execution can be resumed with + * `llhttp_resume()` call. + * + * In a special case of CONNECT/Upgrade request/response `HPE_PAUSED_UPGRADE` + * is returned after fully parsing the request/response. If the user wishes to + * continue parsing, they need to invoke `llhttp_resume_after_upgrade()`. + * + * NOTE: if this function ever returns a non-pause type error, it will continue + * to return the same error upon each successive call up until `llhttp_init()` + * is called. + */ +LLHTTP_EXPORT +llhttp_errno_t llhttp_execute(llhttp_t* parser, const char* data, size_t len); + +/* This method should be called when the other side has no further bytes to + * send (e.g. shutdown of readable side of the TCP connection.) + * + * Requests without `Content-Length` and other messages might require treating + * all incoming bytes as the part of the body, up to the last byte of the + * connection. This method will invoke `on_message_complete()` callback if the + * request was terminated safely. Otherwise a error code would be returned. + */ +LLHTTP_EXPORT +llhttp_errno_t llhttp_finish(llhttp_t* parser); + +/* Returns `1` if the incoming message is parsed until the last byte, and has + * to be completed by calling `llhttp_finish()` on EOF + */ +LLHTTP_EXPORT +int llhttp_message_needs_eof(const llhttp_t* parser); + +/* Returns `1` if there might be any other messages following the last that was + * successfully parsed. + */ +LLHTTP_EXPORT +int llhttp_should_keep_alive(const llhttp_t* parser); + +/* Make further calls of `llhttp_execute()` return `HPE_PAUSED` and set + * appropriate error reason. + * + * Important: do not call this from user callbacks! User callbacks must return + * `HPE_PAUSED` if pausing is required. + */ +LLHTTP_EXPORT +void llhttp_pause(llhttp_t* parser); + +/* Might be called to resume the execution after the pause in user's callback. + * See `llhttp_execute()` above for details. + * + * Call this only if `llhttp_execute()` returns `HPE_PAUSED`. + */ +LLHTTP_EXPORT +void llhttp_resume(llhttp_t* parser); + +/* Might be called to resume the execution after the pause in user's callback. + * See `llhttp_execute()` above for details. + * + * Call this only if `llhttp_execute()` returns `HPE_PAUSED_UPGRADE` + */ +LLHTTP_EXPORT +void llhttp_resume_after_upgrade(llhttp_t* parser); + +/* Returns the latest return error */ +LLHTTP_EXPORT +llhttp_errno_t llhttp_get_errno(const llhttp_t* parser); + +/* Returns the verbal explanation of the latest returned error. + * + * Note: User callback should set error reason when returning the error. See + * `llhttp_set_error_reason()` for details. + */ +LLHTTP_EXPORT +const char* llhttp_get_error_reason(const llhttp_t* parser); + +/* Assign verbal description to the returned error. Must be called in user + * callbacks right before returning the errno. + * + * Note: `HPE_USER` error code might be useful in user callbacks. + */ +LLHTTP_EXPORT +void llhttp_set_error_reason(llhttp_t* parser, const char* reason); + +/* Returns the pointer to the last parsed byte before the returned error. The + * pointer is relative to the `data` argument of `llhttp_execute()`. + * + * Note: this method might be useful for counting the number of parsed bytes. + */ +LLHTTP_EXPORT +const char* llhttp_get_error_pos(const llhttp_t* parser); + +/* Returns textual name of error code */ +LLHTTP_EXPORT +const char* llhttp_errno_name(llhttp_errno_t err); + +/* Returns textual name of HTTP method */ +LLHTTP_EXPORT +const char* llhttp_method_name(llhttp_method_t method); + + +/* Enables/disables lenient header value parsing (disabled by default). + * + * Lenient parsing disables header value token checks, extending llhttp's + * protocol support to highly non-compliant clients/server. No + * `HPE_INVALID_HEADER_TOKEN` will be raised for incorrect header values when + * lenient parsing is "on". + * + * **(USE AT YOUR OWN RISK)** + */ +LLHTTP_EXPORT +void llhttp_set_lenient_headers(llhttp_t* parser, int enabled); + + +/* Enables/disables lenient handling of conflicting `Transfer-Encoding` and + * `Content-Length` headers (disabled by default). + * + * Normally `llhttp` would error when `Transfer-Encoding` is present in + * conjunction with `Content-Length`. This error is important to prevent HTTP + * request smuggling, but may be less desirable for small number of cases + * involving legacy servers. + * + * **(USE AT YOUR OWN RISK)** + */ +LLHTTP_EXPORT +void llhttp_set_lenient_chunked_length(llhttp_t* parser, int enabled); + + +/* Enables/disables lenient handling of `Connection: close` and HTTP/1.0 + * requests responses. + * + * Normally `llhttp` would error on (in strict mode) or discard (in loose mode) + * the HTTP request/response after the request/response with `Connection: close` + * and `Content-Length`. This is important to prevent cache poisoning attacks, + * but might interact badly with outdated and insecure clients. With this flag + * the extra request/response will be parsed normally. + * + * **(USE AT YOUR OWN RISK)** + */ +void llhttp_set_lenient_keep_alive(llhttp_t* parser, int enabled); + +#ifdef __cplusplus +} /* extern "C" */ +#endif +#endif /* INCLUDE_LLHTTP_API_H_ */ diff --git a/src/3rdparty/llhttp/http.c b/src/3rdparty/llhttp/http.c index 1ab91a55..e6279f3b 100644 --- a/src/3rdparty/llhttp/http.c +++ b/src/3rdparty/llhttp/http.c @@ -39,41 +39,20 @@ int llhttp__after_headers_complete(llhttp_t* parser, const char* p, int hasBody; hasBody = parser->flags & F_CHUNKED || parser->content_length > 0; - if ( - (parser->upgrade && (parser->method == HTTP_CONNECT || - (parser->flags & F_SKIPBODY) || !hasBody)) || - /* See RFC 2616 section 4.4 - 1xx e.g. Continue */ - (parser->type == HTTP_RESPONSE && parser->status_code == 101) - ) { + if (parser->upgrade && (parser->method == HTTP_CONNECT || + (parser->flags & F_SKIPBODY) || !hasBody)) { /* Exit, the rest of the message is in a different protocol. */ return 1; } - if (parser->type == HTTP_RESPONSE && parser->status_code == 100) { - /* No body, restart as the message is complete */ - return 0; - } - - /* See RFC 2616 section 4.4 */ - if ( - parser->flags & F_SKIPBODY || /* response to a HEAD request */ - ( - parser->type == HTTP_RESPONSE && ( - parser->status_code == 102 || /* Processing */ - parser->status_code == 103 || /* Early Hints */ - parser->status_code == 204 || /* No Content */ - parser->status_code == 304 /* Not Modified */ - ) - ) - ) { + if (parser->flags & F_SKIPBODY) { return 0; } else if (parser->flags & F_CHUNKED) { /* chunked encoding - ignore Content-Length header, prepare for a chunk */ return 2; } else if (parser->flags & F_TRANSFER_ENCODING) { if (parser->type == HTTP_REQUEST && - (parser->lenient_flags & LENIENT_CHUNKED_LENGTH) == 0 && - (parser->lenient_flags & LENIENT_TRANSFER_ENCODING) == 0) { + (parser->lenient_flags & LENIENT_CHUNKED_LENGTH) == 0) { /* RFC 7230 3.3.3 */ /* If a Transfer-Encoding header field diff --git a/src/3rdparty/llhttp/llhttp.c b/src/3rdparty/llhttp/llhttp.c index aa4c4682..022d099d 100644 --- a/src/3rdparty/llhttp/llhttp.c +++ b/src/3rdparty/llhttp/llhttp.c @@ -1,3 +1,5 @@ +#if LLHTTP_STRICT_MODE + #include #include #include @@ -10,20 +12,10 @@ #endif /* _MSC_VER */ #endif /* __SSE4_2__ */ -#ifdef __ARM_NEON__ - #include -#endif /* __ARM_NEON__ */ - -#ifdef __wasm__ - #include -#endif /* __wasm__ */ - #ifdef _MSC_VER #define ALIGN(n) _declspec(align(n)) - #define UNREACHABLE __assume(0) #else /* !_MSC_VER */ #define ALIGN(n) __attribute__((aligned(n))) - #define UNREACHABLE __builtin_unreachable() #endif /* _MSC_VER */ #include "llhttp.h" @@ -32,147 +24,147 @@ typedef int (*llhttp__internal__span_cb)( llhttp__internal_t*, const char*, const char*); static const unsigned char llparse_blob0[] = { - 'o', 'n' + 0xd, 0xa }; static const unsigned char llparse_blob1[] = { - 'e', 'c', 't', 'i', 'o', 'n' + 'o', 'n' }; static const unsigned char llparse_blob2[] = { - 'l', 'o', 's', 'e' + 'e', 'c', 't', 'i', 'o', 'n' }; static const unsigned char llparse_blob3[] = { - 'e', 'e', 'p', '-', 'a', 'l', 'i', 'v', 'e' + 'l', 'o', 's', 'e' }; static const unsigned char llparse_blob4[] = { - 'p', 'g', 'r', 'a', 'd', 'e' + 'e', 'e', 'p', '-', 'a', 'l', 'i', 'v', 'e' }; static const unsigned char llparse_blob5[] = { + 'p', 'g', 'r', 'a', 'd', 'e' +}; +static const unsigned char llparse_blob6[] = { 'c', 'h', 'u', 'n', 'k', 'e', 'd' }; #ifdef __SSE4_2__ -static const unsigned char ALIGN(16) llparse_blob6[] = { +static const unsigned char ALIGN(16) llparse_blob7[] = { 0x9, 0x9, ' ', '~', 0x80, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; #endif /* __SSE4_2__ */ #ifdef __SSE4_2__ -static const unsigned char ALIGN(16) llparse_blob7[] = { +static const unsigned char ALIGN(16) llparse_blob8[] = { '!', '!', '#', '\'', '*', '+', '-', '.', '0', '9', 'A', 'Z', '^', 'z', '|', '|' }; #endif /* __SSE4_2__ */ #ifdef __SSE4_2__ -static const unsigned char ALIGN(16) llparse_blob8[] = { +static const unsigned char ALIGN(16) llparse_blob9[] = { '~', '~', 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; #endif /* __SSE4_2__ */ -static const unsigned char llparse_blob9[] = { +static const unsigned char llparse_blob10[] = { 'e', 'n', 't', '-', 'l', 'e', 'n', 'g', 't', 'h' }; -static const unsigned char llparse_blob10[] = { +static const unsigned char llparse_blob11[] = { 'r', 'o', 'x', 'y', '-', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n' }; -static const unsigned char llparse_blob11[] = { +static const unsigned char llparse_blob12[] = { 'r', 'a', 'n', 's', 'f', 'e', 'r', '-', 'e', 'n', 'c', 'o', 'd', 'i', 'n', 'g' }; -static const unsigned char llparse_blob12[] = { +static const unsigned char llparse_blob13[] = { 'p', 'g', 'r', 'a', 'd', 'e' }; -static const unsigned char llparse_blob13[] = { - 'T', 'T', 'P' -}; static const unsigned char llparse_blob14[] = { - 0xd, 0xa, 0xd, 0xa, 'S', 'M', 0xd, 0xa, 0xd, 0xa + 'T', 'T', 'P', '/' }; static const unsigned char llparse_blob15[] = { - 'C', 'E' + 0xd, 0xa, 0xd, 0xa, 'S', 'M', 0xd, 0xa, 0xd, 0xa }; static const unsigned char llparse_blob16[] = { - 'T', 'S', 'P' + 'C', 'E', '/' }; static const unsigned char llparse_blob17[] = { - 'N', 'O', 'U', 'N', 'C', 'E' + 'T', 'S', 'P', '/' }; static const unsigned char llparse_blob18[] = { - 'I', 'N', 'D' + 'N', 'O', 'U', 'N', 'C', 'E' }; static const unsigned char llparse_blob19[] = { - 'E', 'C', 'K', 'O', 'U', 'T' -}; -static const unsigned char llparse_blob20[] = { - 'N', 'E', 'C', 'T' -}; -static const unsigned char llparse_blob21[] = { - 'E', 'T', 'E' -}; -static const unsigned char llparse_blob22[] = { - 'C', 'R', 'I', 'B', 'E' -}; -static const unsigned char llparse_blob23[] = { - 'L', 'U', 'S', 'H' -}; -static const unsigned char llparse_blob24[] = { - 'E', 'T' -}; -static const unsigned char llparse_blob25[] = { - 'P', 'A', 'R', 'A', 'M', 'E', 'T', 'E', 'R' -}; -static const unsigned char llparse_blob26[] = { - 'E', 'A', 'D' -}; -static const unsigned char llparse_blob27[] = { - 'N', 'K' -}; -static const unsigned char llparse_blob28[] = { - 'C', 'K' -}; -static const unsigned char llparse_blob29[] = { - 'S', 'E', 'A', 'R', 'C', 'H' -}; -static const unsigned char llparse_blob30[] = { - 'R', 'G', 'E' -}; -static const unsigned char llparse_blob31[] = { - 'C', 'T', 'I', 'V', 'I', 'T', 'Y' -}; -static const unsigned char llparse_blob32[] = { - 'L', 'E', 'N', 'D', 'A', 'R' -}; -static const unsigned char llparse_blob33[] = { - 'V', 'E' -}; -static const unsigned char llparse_blob34[] = { - 'O', 'T', 'I', 'F', 'Y' -}; -static const unsigned char llparse_blob35[] = { - 'P', 'T', 'I', 'O', 'N', 'S' -}; -static const unsigned char llparse_blob36[] = { - 'C', 'H' -}; -static const unsigned char llparse_blob37[] = { - 'S', 'E' -}; -static const unsigned char llparse_blob38[] = { - 'A', 'Y' -}; -static const unsigned char llparse_blob39[] = { - 'S', 'T' -}; -static const unsigned char llparse_blob40[] = { 'I', 'N', 'D' }; +static const unsigned char llparse_blob20[] = { + 'E', 'C', 'K', 'O', 'U', 'T' +}; +static const unsigned char llparse_blob21[] = { + 'N', 'E', 'C', 'T' +}; +static const unsigned char llparse_blob22[] = { + 'E', 'T', 'E' +}; +static const unsigned char llparse_blob23[] = { + 'C', 'R', 'I', 'B', 'E' +}; +static const unsigned char llparse_blob24[] = { + 'L', 'U', 'S', 'H' +}; +static const unsigned char llparse_blob25[] = { + 'E', 'T' +}; +static const unsigned char llparse_blob26[] = { + 'P', 'A', 'R', 'A', 'M', 'E', 'T', 'E', 'R' +}; +static const unsigned char llparse_blob27[] = { + 'E', 'A', 'D' +}; +static const unsigned char llparse_blob28[] = { + 'N', 'K' +}; +static const unsigned char llparse_blob29[] = { + 'C', 'K' +}; +static const unsigned char llparse_blob30[] = { + 'S', 'E', 'A', 'R', 'C', 'H' +}; +static const unsigned char llparse_blob31[] = { + 'R', 'G', 'E' +}; +static const unsigned char llparse_blob32[] = { + 'C', 'T', 'I', 'V', 'I', 'T', 'Y' +}; +static const unsigned char llparse_blob33[] = { + 'L', 'E', 'N', 'D', 'A', 'R' +}; +static const unsigned char llparse_blob34[] = { + 'V', 'E' +}; +static const unsigned char llparse_blob35[] = { + 'O', 'T', 'I', 'F', 'Y' +}; +static const unsigned char llparse_blob36[] = { + 'P', 'T', 'I', 'O', 'N', 'S' +}; +static const unsigned char llparse_blob37[] = { + 'C', 'H' +}; +static const unsigned char llparse_blob38[] = { + 'S', 'E' +}; +static const unsigned char llparse_blob39[] = { + 'A', 'Y' +}; +static const unsigned char llparse_blob40[] = { + 'S', 'T' +}; static const unsigned char llparse_blob41[] = { - 'A', 'T', 'C', 'H' + 'I', 'N', 'D' }; static const unsigned char llparse_blob42[] = { - 'G', 'E' + 'A', 'T', 'C', 'H' }; static const unsigned char llparse_blob43[] = { - 'U', 'E', 'R', 'Y' + 'G', 'E' }; static const unsigned char llparse_blob44[] = { 'I', 'N', 'D' @@ -217,18 +209,12 @@ static const unsigned char llparse_blob57[] = { 'U', 'B', 'S', 'C', 'R', 'I', 'B', 'E' }; static const unsigned char llparse_blob58[] = { - 'T', 'T', 'P' + 'H', 'T', 'T', 'P', '/' }; static const unsigned char llparse_blob59[] = { - 'C', 'E' -}; -static const unsigned char llparse_blob60[] = { - 'T', 'S', 'P' -}; -static const unsigned char llparse_blob61[] = { 'A', 'D' }; -static const unsigned char llparse_blob62[] = { +static const unsigned char llparse_blob60[] = { 'T', 'P', '/' }; @@ -245,6 +231,38 @@ struct llparse_match_s { }; typedef struct llparse_match_s llparse_match_t; +static llparse_match_t llparse__match_sequence_id( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp, + const unsigned char* seq, uint32_t seq_len) { + uint32_t index; + llparse_match_t res; + + index = s->_index; + for (; p != endp; p++) { + unsigned char current; + + current = *p; + if (current == seq[index]) { + if (++index == seq_len) { + res.status = kMatchComplete; + goto reset; + } + } else { + res.status = kMatchMismatch; + goto reset; + } + } + s->_index = index; + res.status = kMatchPause; + res.current = p; + return res; +reset: + s->_index = 0; + res.current = p; + return res; +} + static llparse_match_t llparse__match_sequence_to_lower( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp, @@ -309,38 +327,6 @@ reset: return res; } -static llparse_match_t llparse__match_sequence_id( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp, - const unsigned char* seq, uint32_t seq_len) { - uint32_t index; - llparse_match_t res; - - index = s->_index; - for (; p != endp; p++) { - unsigned char current; - - current = *p; - if (current == seq[index]) { - if (++index == seq_len) { - res.status = kMatchComplete; - goto reset; - } - } else { - res.status = kMatchMismatch; - goto reset; - } - } - s->_index = index; - res.status = kMatchPause; - res.current = p; - return res; -reset: - s->_index = 0; - res.current = p; - return res; -} - enum llparse_state_e { s_error, s_n_llhttp__internal__n_closed, @@ -348,54 +334,29 @@ enum llparse_state_e { s_n_llhttp__internal__n_pause_1, s_n_llhttp__internal__n_invoke_is_equal_upgrade, s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2, - s_n_llhttp__internal__n_chunk_data_almost_done_1, s_n_llhttp__internal__n_chunk_data_almost_done, s_n_llhttp__internal__n_consume_content_length, s_n_llhttp__internal__n_span_start_llhttp__on_body, s_n_llhttp__internal__n_invoke_is_equal_content_length, s_n_llhttp__internal__n_chunk_size_almost_done, - s_n_llhttp__internal__n_invoke_test_lenient_flags_9, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2, - s_n_llhttp__internal__n_invoke_test_lenient_flags_10, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1, - s_n_llhttp__internal__n_chunk_extension_quoted_value_done, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2, - s_n_llhttp__internal__n_error_30, - s_n_llhttp__internal__n_chunk_extension_quoted_value_quoted_pair, - s_n_llhttp__internal__n_error_31, - s_n_llhttp__internal__n_chunk_extension_quoted_value, - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_3, - s_n_llhttp__internal__n_error_33, - s_n_llhttp__internal__n_chunk_extension_value, - s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value, - s_n_llhttp__internal__n_error_34, - s_n_llhttp__internal__n_chunk_extension_name, - s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name, - s_n_llhttp__internal__n_chunk_extensions, + s_n_llhttp__internal__n_chunk_parameters, s_n_llhttp__internal__n_chunk_size_otherwise, s_n_llhttp__internal__n_chunk_size, s_n_llhttp__internal__n_chunk_size_digit, - s_n_llhttp__internal__n_invoke_update_content_length_1, + s_n_llhttp__internal__n_invoke_update_content_length, s_n_llhttp__internal__n_consume_content_length_1, s_n_llhttp__internal__n_span_start_llhttp__on_body_1, s_n_llhttp__internal__n_eof, s_n_llhttp__internal__n_span_start_llhttp__on_body_2, s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete, - s_n_llhttp__internal__n_error_5, s_n_llhttp__internal__n_headers_almost_done, - s_n_llhttp__internal__n_header_field_colon_discard_ws, s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete, s_n_llhttp__internal__n_span_start_llhttp__on_header_value, s_n_llhttp__internal__n_header_value_discard_lws, s_n_llhttp__internal__n_header_value_discard_ws_almost_done, s_n_llhttp__internal__n_header_value_lws, s_n_llhttp__internal__n_header_value_almost_done, - s_n_llhttp__internal__n_invoke_test_lenient_flags_17, s_n_llhttp__internal__n_header_value_lenient, - s_n_llhttp__internal__n_error_54, s_n_llhttp__internal__n_header_value_otherwise, s_n_llhttp__internal__n_header_value_connection_token, s_n_llhttp__internal__n_header_value_connection_ws, @@ -403,20 +364,17 @@ enum llparse_state_e { s_n_llhttp__internal__n_header_value_connection_2, s_n_llhttp__internal__n_header_value_connection_3, s_n_llhttp__internal__n_header_value_connection, - s_n_llhttp__internal__n_error_56, - s_n_llhttp__internal__n_error_57, + s_n_llhttp__internal__n_error_23, + s_n_llhttp__internal__n_error_24, s_n_llhttp__internal__n_header_value_content_length_ws, s_n_llhttp__internal__n_header_value_content_length, - s_n_llhttp__internal__n_error_59, - s_n_llhttp__internal__n_error_58, + s_n_llhttp__internal__n_header_value_te_chunked_last, s_n_llhttp__internal__n_header_value_te_token_ows, s_n_llhttp__internal__n_header_value, s_n_llhttp__internal__n_header_value_te_token, - s_n_llhttp__internal__n_header_value_te_chunked_last, s_n_llhttp__internal__n_header_value_te_chunked, s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1, s_n_llhttp__internal__n_header_value_discard_ws, - s_n_llhttp__internal__n_invoke_load_header_state, s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete, s_n_llhttp__internal__n_header_field_general_otherwise, s_n_llhttp__internal__n_header_field_general, @@ -431,37 +389,19 @@ enum llparse_state_e { s_n_llhttp__internal__n_header_field, s_n_llhttp__internal__n_span_start_llhttp__on_header_field, s_n_llhttp__internal__n_header_field_start, - s_n_llhttp__internal__n_headers_start, s_n_llhttp__internal__n_url_to_http_09, s_n_llhttp__internal__n_url_skip_to_http09, s_n_llhttp__internal__n_url_skip_lf_to_http09_1, s_n_llhttp__internal__n_url_skip_lf_to_http09, s_n_llhttp__internal__n_req_pri_upgrade, - s_n_llhttp__internal__n_req_http_complete_crlf, + s_n_llhttp__internal__n_req_http_complete_1, s_n_llhttp__internal__n_req_http_complete, - s_n_llhttp__internal__n_invoke_load_method_1, - s_n_llhttp__internal__n_invoke_llhttp__on_version_complete, - s_n_llhttp__internal__n_error_67, - s_n_llhttp__internal__n_error_74, s_n_llhttp__internal__n_req_http_minor, - s_n_llhttp__internal__n_error_75, s_n_llhttp__internal__n_req_http_dot, - s_n_llhttp__internal__n_error_76, s_n_llhttp__internal__n_req_http_major, - s_n_llhttp__internal__n_span_start_llhttp__on_version, - s_n_llhttp__internal__n_req_after_protocol, - s_n_llhttp__internal__n_invoke_load_method, - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete, - s_n_llhttp__internal__n_error_82, - s_n_llhttp__internal__n_req_after_http_start_1, - s_n_llhttp__internal__n_invoke_load_method_2, - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_1, - s_n_llhttp__internal__n_req_after_http_start_2, - s_n_llhttp__internal__n_invoke_load_method_3, - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_2, - s_n_llhttp__internal__n_req_after_http_start_3, - s_n_llhttp__internal__n_req_after_http_start, - s_n_llhttp__internal__n_span_start_llhttp__on_protocol, + s_n_llhttp__internal__n_req_http_start_1, + s_n_llhttp__internal__n_req_http_start_2, + s_n_llhttp__internal__n_req_http_start_3, s_n_llhttp__internal__n_req_http_start, s_n_llhttp__internal__n_url_to_http, s_n_llhttp__internal__n_url_skip_to_http, @@ -486,135 +426,102 @@ enum llparse_state_e { s_n_llhttp__internal__n_url_entry_connect, s_n_llhttp__internal__n_req_spaces_before_url, s_n_llhttp__internal__n_req_first_space_before_url, - s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1, - s_n_llhttp__internal__n_after_start_req_2, - s_n_llhttp__internal__n_after_start_req_3, - s_n_llhttp__internal__n_after_start_req_1, - s_n_llhttp__internal__n_after_start_req_4, - s_n_llhttp__internal__n_after_start_req_6, - s_n_llhttp__internal__n_after_start_req_8, - s_n_llhttp__internal__n_after_start_req_9, - s_n_llhttp__internal__n_after_start_req_7, - s_n_llhttp__internal__n_after_start_req_5, - s_n_llhttp__internal__n_after_start_req_12, - s_n_llhttp__internal__n_after_start_req_13, - s_n_llhttp__internal__n_after_start_req_11, - s_n_llhttp__internal__n_after_start_req_10, - s_n_llhttp__internal__n_after_start_req_14, - s_n_llhttp__internal__n_after_start_req_17, - s_n_llhttp__internal__n_after_start_req_16, - s_n_llhttp__internal__n_after_start_req_15, - s_n_llhttp__internal__n_after_start_req_18, - s_n_llhttp__internal__n_after_start_req_20, - s_n_llhttp__internal__n_after_start_req_21, - s_n_llhttp__internal__n_after_start_req_19, - s_n_llhttp__internal__n_after_start_req_23, - s_n_llhttp__internal__n_after_start_req_24, - s_n_llhttp__internal__n_after_start_req_26, - s_n_llhttp__internal__n_after_start_req_28, - s_n_llhttp__internal__n_after_start_req_29, - s_n_llhttp__internal__n_after_start_req_27, - s_n_llhttp__internal__n_after_start_req_25, - s_n_llhttp__internal__n_after_start_req_30, - s_n_llhttp__internal__n_after_start_req_22, - s_n_llhttp__internal__n_after_start_req_31, - s_n_llhttp__internal__n_after_start_req_32, - s_n_llhttp__internal__n_after_start_req_35, - s_n_llhttp__internal__n_after_start_req_36, - s_n_llhttp__internal__n_after_start_req_34, - s_n_llhttp__internal__n_after_start_req_37, - s_n_llhttp__internal__n_after_start_req_38, - s_n_llhttp__internal__n_after_start_req_42, - s_n_llhttp__internal__n_after_start_req_43, - s_n_llhttp__internal__n_after_start_req_41, - s_n_llhttp__internal__n_after_start_req_40, - s_n_llhttp__internal__n_after_start_req_39, - s_n_llhttp__internal__n_after_start_req_45, - s_n_llhttp__internal__n_after_start_req_44, - s_n_llhttp__internal__n_after_start_req_33, - s_n_llhttp__internal__n_after_start_req_46, - s_n_llhttp__internal__n_after_start_req_49, - s_n_llhttp__internal__n_after_start_req_50, - s_n_llhttp__internal__n_after_start_req_51, - s_n_llhttp__internal__n_after_start_req_52, - s_n_llhttp__internal__n_after_start_req_48, - s_n_llhttp__internal__n_after_start_req_47, - s_n_llhttp__internal__n_after_start_req_55, - s_n_llhttp__internal__n_after_start_req_57, - s_n_llhttp__internal__n_after_start_req_58, - s_n_llhttp__internal__n_after_start_req_56, - s_n_llhttp__internal__n_after_start_req_54, - s_n_llhttp__internal__n_after_start_req_59, - s_n_llhttp__internal__n_after_start_req_60, - s_n_llhttp__internal__n_after_start_req_53, - s_n_llhttp__internal__n_after_start_req_62, - s_n_llhttp__internal__n_after_start_req_63, - s_n_llhttp__internal__n_after_start_req_61, - s_n_llhttp__internal__n_after_start_req_66, - s_n_llhttp__internal__n_after_start_req_68, - s_n_llhttp__internal__n_after_start_req_69, - s_n_llhttp__internal__n_after_start_req_67, - s_n_llhttp__internal__n_after_start_req_70, - s_n_llhttp__internal__n_after_start_req_65, - s_n_llhttp__internal__n_after_start_req_64, - s_n_llhttp__internal__n_after_start_req, - s_n_llhttp__internal__n_span_start_llhttp__on_method_1, + s_n_llhttp__internal__n_start_req_2, + s_n_llhttp__internal__n_start_req_3, + s_n_llhttp__internal__n_start_req_1, + s_n_llhttp__internal__n_start_req_4, + s_n_llhttp__internal__n_start_req_6, + s_n_llhttp__internal__n_start_req_8, + s_n_llhttp__internal__n_start_req_9, + s_n_llhttp__internal__n_start_req_7, + s_n_llhttp__internal__n_start_req_5, + s_n_llhttp__internal__n_start_req_12, + s_n_llhttp__internal__n_start_req_13, + s_n_llhttp__internal__n_start_req_11, + s_n_llhttp__internal__n_start_req_10, + s_n_llhttp__internal__n_start_req_14, + s_n_llhttp__internal__n_start_req_17, + s_n_llhttp__internal__n_start_req_16, + s_n_llhttp__internal__n_start_req_15, + s_n_llhttp__internal__n_start_req_18, + s_n_llhttp__internal__n_start_req_20, + s_n_llhttp__internal__n_start_req_21, + s_n_llhttp__internal__n_start_req_19, + s_n_llhttp__internal__n_start_req_23, + s_n_llhttp__internal__n_start_req_24, + s_n_llhttp__internal__n_start_req_26, + s_n_llhttp__internal__n_start_req_28, + s_n_llhttp__internal__n_start_req_29, + s_n_llhttp__internal__n_start_req_27, + s_n_llhttp__internal__n_start_req_25, + s_n_llhttp__internal__n_start_req_30, + s_n_llhttp__internal__n_start_req_22, + s_n_llhttp__internal__n_start_req_31, + s_n_llhttp__internal__n_start_req_32, + s_n_llhttp__internal__n_start_req_35, + s_n_llhttp__internal__n_start_req_36, + s_n_llhttp__internal__n_start_req_34, + s_n_llhttp__internal__n_start_req_37, + s_n_llhttp__internal__n_start_req_38, + s_n_llhttp__internal__n_start_req_42, + s_n_llhttp__internal__n_start_req_43, + s_n_llhttp__internal__n_start_req_41, + s_n_llhttp__internal__n_start_req_40, + s_n_llhttp__internal__n_start_req_39, + s_n_llhttp__internal__n_start_req_45, + s_n_llhttp__internal__n_start_req_44, + s_n_llhttp__internal__n_start_req_33, + s_n_llhttp__internal__n_start_req_48, + s_n_llhttp__internal__n_start_req_49, + s_n_llhttp__internal__n_start_req_50, + s_n_llhttp__internal__n_start_req_51, + s_n_llhttp__internal__n_start_req_47, + s_n_llhttp__internal__n_start_req_46, + s_n_llhttp__internal__n_start_req_54, + s_n_llhttp__internal__n_start_req_56, + s_n_llhttp__internal__n_start_req_57, + s_n_llhttp__internal__n_start_req_55, + s_n_llhttp__internal__n_start_req_53, + s_n_llhttp__internal__n_start_req_58, + s_n_llhttp__internal__n_start_req_59, + s_n_llhttp__internal__n_start_req_52, + s_n_llhttp__internal__n_start_req_61, + s_n_llhttp__internal__n_start_req_62, + s_n_llhttp__internal__n_start_req_60, + s_n_llhttp__internal__n_start_req_65, + s_n_llhttp__internal__n_start_req_67, + s_n_llhttp__internal__n_start_req_68, + s_n_llhttp__internal__n_start_req_66, + s_n_llhttp__internal__n_start_req_69, + s_n_llhttp__internal__n_start_req_64, + s_n_llhttp__internal__n_start_req_63, + s_n_llhttp__internal__n_start_req, + s_n_llhttp__internal__n_invoke_llhttp__on_status_complete, s_n_llhttp__internal__n_res_line_almost_done, - s_n_llhttp__internal__n_invoke_test_lenient_flags_30, s_n_llhttp__internal__n_res_status, s_n_llhttp__internal__n_span_start_llhttp__on_status, + s_n_llhttp__internal__n_res_status_start, s_n_llhttp__internal__n_res_status_code_otherwise, - s_n_llhttp__internal__n_res_status_code_digit_3, - s_n_llhttp__internal__n_res_status_code_digit_2, - s_n_llhttp__internal__n_res_status_code_digit_1, - s_n_llhttp__internal__n_res_after_version, - s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1, - s_n_llhttp__internal__n_error_93, - s_n_llhttp__internal__n_error_107, + s_n_llhttp__internal__n_res_status_code, + s_n_llhttp__internal__n_res_http_end, s_n_llhttp__internal__n_res_http_minor, - s_n_llhttp__internal__n_error_108, s_n_llhttp__internal__n_res_http_dot, - s_n_llhttp__internal__n_error_109, s_n_llhttp__internal__n_res_http_major, - s_n_llhttp__internal__n_span_start_llhttp__on_version_1, - s_n_llhttp__internal__n_res_after_protocol, - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_3, - s_n_llhttp__internal__n_error_115, - s_n_llhttp__internal__n_res_after_start_1, - s_n_llhttp__internal__n_res_after_start_2, - s_n_llhttp__internal__n_res_after_start_3, - s_n_llhttp__internal__n_res_after_start, - s_n_llhttp__internal__n_span_start_llhttp__on_protocol_1, - s_n_llhttp__internal__n_invoke_llhttp__on_method_complete, + s_n_llhttp__internal__n_start_res, s_n_llhttp__internal__n_req_or_res_method_2, - s_n_llhttp__internal__n_invoke_update_type_1, s_n_llhttp__internal__n_req_or_res_method_3, s_n_llhttp__internal__n_req_or_res_method_1, s_n_llhttp__internal__n_req_or_res_method, - s_n_llhttp__internal__n_span_start_llhttp__on_method, s_n_llhttp__internal__n_start_req_or_res, s_n_llhttp__internal__n_invoke_load_type, - s_n_llhttp__internal__n_invoke_update_finish, s_n_llhttp__internal__n_start, }; typedef enum llparse_state_e llparse_state_t; -int llhttp__on_method( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__on_url( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); -int llhttp__on_protocol( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - -int llhttp__on_version( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__on_header_field( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); @@ -627,29 +534,10 @@ int llhttp__on_body( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); -int llhttp__on_chunk_extension_name( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - -int llhttp__on_chunk_extension_value( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__on_status( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); -int llhttp__internal__c_load_initial_message_completed( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return state->initial_message_completed; -} - -int llhttp__on_reset( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__internal__c_update_finish( llhttp__internal_t* state, const unsigned char* p, @@ -678,10 +566,6 @@ int llhttp__internal__c_store_method( return 0; } -int llhttp__on_method_complete( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__internal__c_is_equal_method( llhttp__internal_t* state, const unsigned char* p, @@ -709,20 +593,6 @@ int llhttp__on_url_complete( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); -int llhttp__internal__c_test_lenient_flags( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 1) == 1; -} - -int llhttp__internal__c_test_lenient_flags_1( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 256) == 256; -} - int llhttp__internal__c_test_flags( llhttp__internal_t* state, const unsigned char* p, @@ -749,22 +619,6 @@ int llhttp__after_message_complete( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); -int llhttp__internal__c_update_content_length( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - state->content_length = 0; - return 0; -} - -int llhttp__internal__c_update_initial_message_completed( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - state->initial_message_completed = 1; - return 0; -} - int llhttp__internal__c_update_finish_1( llhttp__internal_t* state, const unsigned char* p, @@ -773,18 +627,25 @@ int llhttp__internal__c_update_finish_1( return 0; } -int llhttp__internal__c_test_lenient_flags_2( +int llhttp__internal__c_test_lenient_flags( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { return (state->lenient_flags & 4) == 4; } -int llhttp__internal__c_test_lenient_flags_3( +int llhttp__internal__c_test_flags_1( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { - return (state->lenient_flags & 32) == 32; + return (state->flags & 544) == 544; +} + +int llhttp__internal__c_test_lenient_flags_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->lenient_flags & 2) == 2; } int llhttp__before_headers_complete( @@ -799,6 +660,14 @@ int llhttp__after_headers_complete( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); +int llhttp__internal__c_update_content_length( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->content_length = 0; + return 0; +} + int llhttp__internal__c_mul_add_content_length( llhttp__internal_t* state, const unsigned char* p, @@ -808,9 +677,9 @@ int llhttp__internal__c_mul_add_content_length( if (state->content_length > 0xffffffffffffffffULL / 16) { return 1; } - + state->content_length *= 16; - + /* Addition overflow */ if (match >= 0) { if (state->content_length > 0xffffffffffffffffULL - match) { @@ -825,13 +694,6 @@ int llhttp__internal__c_mul_add_content_length( return 0; } -int llhttp__internal__c_test_lenient_flags_4( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 512) == 512; -} - int llhttp__on_chunk_header( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); @@ -843,13 +705,6 @@ int llhttp__internal__c_is_equal_content_length( return state->content_length == 0; } -int llhttp__internal__c_test_lenient_flags_7( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 128) == 128; -} - int llhttp__internal__c_or_flags( llhttp__internal_t* state, const unsigned char* p, @@ -858,21 +713,6 @@ int llhttp__internal__c_or_flags( return 0; } -int llhttp__internal__c_test_lenient_flags_8( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 64) == 64; -} - -int llhttp__on_chunk_extension_name_complete( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - -int llhttp__on_chunk_extension_value_complete( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__internal__c_update_finish_3( llhttp__internal_t* state, const unsigned char* p, @@ -917,21 +757,7 @@ int llhttp__internal__c_load_header_state( return state->header_state; } -int llhttp__internal__c_test_flags_4( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->flags & 512) == 512; -} - -int llhttp__internal__c_test_lenient_flags_22( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 2) == 2; -} - -int llhttp__internal__c_or_flags_5( +int llhttp__internal__c_or_flags_3( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -951,7 +777,7 @@ int llhttp__on_header_value_complete( llhttp__internal_t* s, const unsigned char* p, const unsigned char* endp); -int llhttp__internal__c_or_flags_6( +int llhttp__internal__c_or_flags_4( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -959,7 +785,7 @@ int llhttp__internal__c_or_flags_6( return 0; } -int llhttp__internal__c_or_flags_7( +int llhttp__internal__c_or_flags_5( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -967,7 +793,7 @@ int llhttp__internal__c_or_flags_7( return 0; } -int llhttp__internal__c_or_flags_8( +int llhttp__internal__c_or_flags_6( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -975,7 +801,7 @@ int llhttp__internal__c_or_flags_8( return 0; } -int llhttp__internal__c_update_header_state_3( +int llhttp__internal__c_update_header_state_2( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -983,7 +809,14 @@ int llhttp__internal__c_update_header_state_3( return 0; } -int llhttp__internal__c_update_header_state_1( +int llhttp__internal__c_test_lenient_flags_2( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->lenient_flags & 1) == 1; +} + +int llhttp__internal__c_update_header_state_4( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -991,7 +824,7 @@ int llhttp__internal__c_update_header_state_1( return 0; } -int llhttp__internal__c_update_header_state_6( +int llhttp__internal__c_update_header_state_5( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -999,7 +832,7 @@ int llhttp__internal__c_update_header_state_6( return 0; } -int llhttp__internal__c_update_header_state_7( +int llhttp__internal__c_update_header_state_6( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -1023,9 +856,9 @@ int llhttp__internal__c_mul_add_content_length_1( if (state->content_length > 0xffffffffffffffffULL / 10) { return 1; } - + state->content_length *= 10; - + /* Addition overflow */ if (match >= 0) { if (state->content_length > 0xffffffffffffffffULL - match) { @@ -1040,7 +873,7 @@ int llhttp__internal__c_mul_add_content_length_1( return 0; } -int llhttp__internal__c_or_flags_17( +int llhttp__internal__c_or_flags_15( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -1048,21 +881,7 @@ int llhttp__internal__c_or_flags_17( return 0; } -int llhttp__internal__c_test_flags_3( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->flags & 8) == 8; -} - -int llhttp__internal__c_test_lenient_flags_20( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 8) == 8; -} - -int llhttp__internal__c_or_flags_18( +int llhttp__internal__c_or_flags_16( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -1078,7 +897,7 @@ int llhttp__internal__c_and_flags( return 0; } -int llhttp__internal__c_update_header_state_8( +int llhttp__internal__c_update_header_state_7( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -1086,7 +905,7 @@ int llhttp__internal__c_update_header_state_8( return 0; } -int llhttp__internal__c_or_flags_20( +int llhttp__internal__c_or_flags_17( llhttp__internal_t* state, const unsigned char* p, const unsigned char* endp) { @@ -1094,10 +913,6 @@ int llhttp__internal__c_or_flags_20( return 0; } -int llhttp__on_protocol_complete( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - int llhttp__internal__c_load_method( llhttp__internal_t* state, const unsigned char* p, @@ -1123,31 +938,6 @@ int llhttp__internal__c_store_http_minor( return 0; } -int llhttp__internal__c_test_lenient_flags_24( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return (state->lenient_flags & 16) == 16; -} - -int llhttp__on_version_complete( - llhttp__internal_t* s, const unsigned char* p, - const unsigned char* endp); - -int llhttp__internal__c_load_http_major( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return state->http_major; -} - -int llhttp__internal__c_load_http_minor( - llhttp__internal_t* state, - const unsigned char* p, - const unsigned char* endp) { - return state->http_minor; -} - int llhttp__internal__c_update_status_code( llhttp__internal_t* state, const unsigned char* p, @@ -1165,9 +955,9 @@ int llhttp__internal__c_mul_add_status_code( if (state->status_code > 0xffff / 10) { return 1; } - + state->status_code *= 10; - + /* Addition overflow */ if (match >= 0) { if (state->status_code > 0xffff - match) { @@ -1179,6 +969,11 @@ int llhttp__internal__c_mul_add_status_code( } } state->status_code += match; + + /* Enforce maximum */ + if (state->status_code > 999) { + return 1; + } return 0; } @@ -1230,20 +1025,22 @@ static llparse_state_t llhttp__internal__run( } default: { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_3; + goto s_n_llhttp__internal__n_error_4; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: { switch (llhttp__after_message_complete(state, p, endp)) { case 1: - goto s_n_llhttp__internal__n_invoke_update_content_length; + goto s_n_llhttp__internal__n_invoke_update_finish_2; default: goto s_n_llhttp__internal__n_invoke_update_finish_1; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_pause_1: s_n_llhttp__internal__n_pause_1: { @@ -1252,7 +1049,8 @@ static llparse_state_t llhttp__internal__run( state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_message_complete; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_is_equal_upgrade: s_n_llhttp__internal__n_invoke_is_equal_upgrade: { @@ -1262,7 +1060,8 @@ static llparse_state_t llhttp__internal__run( default: goto s_n_llhttp__internal__n_pause_1; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2: s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2: { @@ -1270,53 +1069,42 @@ static llparse_state_t llhttp__internal__run( case 0: goto s_n_llhttp__internal__n_invoke_is_equal_upgrade; case 21: - goto s_n_llhttp__internal__n_pause_13; + goto s_n_llhttp__internal__n_pause_5; default: - goto s_n_llhttp__internal__n_error_38; + goto s_n_llhttp__internal__n_error_13; } - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_data_almost_done_1: - s_n_llhttp__internal__n_chunk_data_almost_done_1: { - if (p == endp) { - return s_n_llhttp__internal__n_chunk_data_almost_done_1; - } - switch (*p) { - case 10: { - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete; - } - default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_7; - } - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_chunk_data_almost_done: s_n_llhttp__internal__n_chunk_data_almost_done: { + llparse_match_t match_seq; + if (p == endp) { return s_n_llhttp__internal__n_chunk_data_almost_done; } - switch (*p) { - case 10: { + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob0, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_6; + goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete; } - case 13: { - p++; - goto s_n_llhttp__internal__n_chunk_data_almost_done_1; + case kMatchPause: { + return s_n_llhttp__internal__n_chunk_data_almost_done; } - default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_7; + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_8; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_consume_content_length: s_n_llhttp__internal__n_consume_content_length: { size_t avail; - uint64_t need; - + size_t need; + avail = endp - p; need = state->content_length; if (avail >= need) { @@ -1324,10 +1112,11 @@ static llparse_state_t llhttp__internal__run( state->content_length = 0; goto s_n_llhttp__internal__n_span_end_llhttp__on_body; } - + state->content_length -= avail; return s_n_llhttp__internal__n_consume_content_length; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_body: s_n_llhttp__internal__n_span_start_llhttp__on_body: { @@ -1337,7 +1126,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_body; goto s_n_llhttp__internal__n_consume_content_length; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_is_equal_content_length: s_n_llhttp__internal__n_invoke_is_equal_content_length: { @@ -1347,7 +1137,8 @@ static llparse_state_t llhttp__internal__run( default: goto s_n_llhttp__internal__n_invoke_or_flags; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_chunk_size_almost_done: s_n_llhttp__internal__n_chunk_size_almost_done: { @@ -1360,382 +1151,29 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header; } default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_8; + goto s_n_llhttp__internal__n_error_9; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_invoke_test_lenient_flags_9: - s_n_llhttp__internal__n_invoke_test_lenient_flags_9: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_chunk_size_almost_done; - default: - goto s_n_llhttp__internal__n_error_20; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete: { - switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_9; - case 21: - goto s_n_llhttp__internal__n_pause_5; - default: - goto s_n_llhttp__internal__n_error_19; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1: { - switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_chunk_size_almost_done; - case 21: - goto s_n_llhttp__internal__n_pause_6; - default: - goto s_n_llhttp__internal__n_error_21; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2: { - switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_chunk_extensions; - case 21: - goto s_n_llhttp__internal__n_pause_7; - default: - goto s_n_llhttp__internal__n_error_22; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_test_lenient_flags_10: - s_n_llhttp__internal__n_invoke_test_lenient_flags_10: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_chunk_size_almost_done; - default: - goto s_n_llhttp__internal__n_error_25; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete: { - switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_10; - case 21: - goto s_n_llhttp__internal__n_pause_8; - default: - goto s_n_llhttp__internal__n_error_24; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1: { - switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_chunk_size_almost_done; - case 21: - goto s_n_llhttp__internal__n_pause_9; - default: - goto s_n_llhttp__internal__n_error_26; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_extension_quoted_value_done: - s_n_llhttp__internal__n_chunk_extension_quoted_value_done: { + case s_n_llhttp__internal__n_chunk_parameters: + s_n_llhttp__internal__n_chunk_parameters: { if (p == endp) { - return s_n_llhttp__internal__n_chunk_extension_quoted_value_done; - } - switch (*p) { - case 10: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_11; - } - case 13: { - p++; - goto s_n_llhttp__internal__n_chunk_size_almost_done; - } - case ';': { - p++; - goto s_n_llhttp__internal__n_chunk_extensions; - } - default: { - goto s_n_llhttp__internal__n_error_29; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2: { - switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_chunk_extension_quoted_value_done; - case 21: - goto s_n_llhttp__internal__n_pause_10; - default: - goto s_n_llhttp__internal__n_error_27; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_30: - s_n_llhttp__internal__n_error_30: { - state->error = 0x2; - state->reason = "Invalid quoted-pair in chunk extensions quoted value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_extension_quoted_value_quoted_pair: - s_n_llhttp__internal__n_chunk_extension_quoted_value_quoted_pair: { - static uint8_t lookup_table[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - if (p == endp) { - return s_n_llhttp__internal__n_chunk_extension_quoted_value_quoted_pair; - } - switch (lookup_table[(uint8_t) *p]) { - case 1: { - p++; - goto s_n_llhttp__internal__n_chunk_extension_quoted_value; - } - default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_3; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_31: - s_n_llhttp__internal__n_error_31: { - state->error = 0x2; - state->reason = "Invalid character in chunk extensions quoted value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_extension_quoted_value: - s_n_llhttp__internal__n_chunk_extension_quoted_value: { - static uint8_t lookup_table[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - }; - if (p == endp) { - return s_n_llhttp__internal__n_chunk_extension_quoted_value; - } - switch (lookup_table[(uint8_t) *p]) { - case 1: { - p++; - goto s_n_llhttp__internal__n_chunk_extension_quoted_value; - } - case 2: { - p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_2; - } - case 3: { - p++; - goto s_n_llhttp__internal__n_chunk_extension_quoted_value_quoted_pair; - } - default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_4; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_3: - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_3: { - switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_chunk_extensions; - case 21: - goto s_n_llhttp__internal__n_pause_11; - default: - goto s_n_llhttp__internal__n_error_32; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_33: - s_n_llhttp__internal__n_error_33: { - state->error = 0x2; - state->reason = "Invalid character in chunk extensions value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_extension_value: - s_n_llhttp__internal__n_chunk_extension_value: { - static uint8_t lookup_table[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 3, 4, 3, 3, 3, 3, 3, 0, 0, 3, 3, 0, 3, 3, 0, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 5, 0, 0, 0, 0, - 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3, 0, 3, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 - }; - if (p == endp) { - return s_n_llhttp__internal__n_chunk_extension_value; - } - switch (lookup_table[(uint8_t) *p]) { - case 1: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value; - } - case 2: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_1; - } - case 3: { - p++; - goto s_n_llhttp__internal__n_chunk_extension_value; - } - case 4: { - p++; - goto s_n_llhttp__internal__n_chunk_extension_quoted_value; - } - case 5: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_5; - } - default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_6; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value: - s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value; - } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_chunk_extension_value; - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_3; - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_34: - s_n_llhttp__internal__n_error_34: { - state->error = 0x2; - state->reason = "Invalid character in chunk extensions name"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_extension_name: - s_n_llhttp__internal__n_chunk_extension_name: { - static uint8_t lookup_table[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 3, 0, 3, 3, 3, 3, 3, 0, 0, 3, 3, 0, 3, 3, 0, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 4, 0, 5, 0, 0, - 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3, 0, 3, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 - }; - if (p == endp) { - return s_n_llhttp__internal__n_chunk_extension_name; - } - switch (lookup_table[(uint8_t) *p]) { - case 1: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name; - } - case 2: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_1; - } - case 3: { - p++; - goto s_n_llhttp__internal__n_chunk_extension_name; - } - case 4: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_2; - } - case 5: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_3; - } - default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_4; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name: - s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name; - } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_chunk_extension_name; - goto s_n_llhttp__internal__n_chunk_extension_name; - UNREACHABLE; - } - case s_n_llhttp__internal__n_chunk_extensions: - s_n_llhttp__internal__n_chunk_extensions: { - if (p == endp) { - return s_n_llhttp__internal__n_chunk_extensions; + return s_n_llhttp__internal__n_chunk_parameters; } switch (*p) { case 13: { p++; - goto s_n_llhttp__internal__n_error_17; - } - case ' ': { - p++; - goto s_n_llhttp__internal__n_error_18; + goto s_n_llhttp__internal__n_chunk_size_almost_done; } default: { - goto s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name; + p++; + goto s_n_llhttp__internal__n_chunk_parameters; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_chunk_size_otherwise: s_n_llhttp__internal__n_chunk_size_otherwise: { @@ -1743,31 +1181,24 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_chunk_size_otherwise; } switch (*p) { - case 9: { - p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_4; - } - case 10: { - p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_5; - } case 13: { p++; goto s_n_llhttp__internal__n_chunk_size_almost_done; } case ' ': { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_4; + goto s_n_llhttp__internal__n_chunk_parameters; } case ';': { p++; - goto s_n_llhttp__internal__n_chunk_extensions; + goto s_n_llhttp__internal__n_chunk_parameters; } default: { - goto s_n_llhttp__internal__n_error_35; + goto s_n_llhttp__internal__n_error_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_chunk_size: s_n_llhttp__internal__n_chunk_size: { @@ -1889,7 +1320,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_chunk_size_otherwise; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_chunk_size_digit: s_n_llhttp__internal__n_chunk_size_digit: { @@ -2008,24 +1440,26 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_mul_add_content_length; } default: { - goto s_n_llhttp__internal__n_error_37; + goto s_n_llhttp__internal__n_error_12; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_invoke_update_content_length_1: - s_n_llhttp__internal__n_invoke_update_content_length_1: { + case s_n_llhttp__internal__n_invoke_update_content_length: + s_n_llhttp__internal__n_invoke_update_content_length: { switch (llhttp__internal__c_update_content_length(state, p, endp)) { default: goto s_n_llhttp__internal__n_chunk_size_digit; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_consume_content_length_1: s_n_llhttp__internal__n_consume_content_length_1: { size_t avail; - uint64_t need; - + size_t need; + avail = endp - p; need = state->content_length; if (avail >= need) { @@ -2033,10 +1467,11 @@ static llparse_state_t llhttp__internal__run( state->content_length = 0; goto s_n_llhttp__internal__n_span_end_llhttp__on_body_1; } - + state->content_length -= avail; return s_n_llhttp__internal__n_consume_content_length_1; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_body_1: s_n_llhttp__internal__n_span_start_llhttp__on_body_1: { @@ -2046,7 +1481,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_body; goto s_n_llhttp__internal__n_consume_content_length_1; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_eof: s_n_llhttp__internal__n_eof: { @@ -2055,7 +1491,8 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_eof; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_body_2: s_n_llhttp__internal__n_span_start_llhttp__on_body_2: { @@ -2065,7 +1502,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_body; goto s_n_llhttp__internal__n_eof; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete: s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete: { @@ -2073,26 +1511,18 @@ static llparse_state_t llhttp__internal__run( case 1: goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1; case 2: - goto s_n_llhttp__internal__n_invoke_update_content_length_1; + goto s_n_llhttp__internal__n_invoke_update_content_length; case 3: goto s_n_llhttp__internal__n_span_start_llhttp__on_body_1; case 4: goto s_n_llhttp__internal__n_invoke_update_finish_3; case 5: - goto s_n_llhttp__internal__n_error_39; + goto s_n_llhttp__internal__n_error_14; default: goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete; } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_5: - s_n_llhttp__internal__n_error_5: { - state->error = 0xa; - state->reason = "Invalid header field char"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_headers_almost_done: s_n_llhttp__internal__n_headers_almost_done: { @@ -2102,41 +1532,23 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 10: { p++; - goto s_n_llhttp__internal__n_invoke_test_flags_1; + goto s_n_llhttp__internal__n_invoke_test_flags; } default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_12; + goto s_n_llhttp__internal__n_error_17; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_header_field_colon_discard_ws: - s_n_llhttp__internal__n_header_field_colon_discard_ws: { - if (p == endp) { - return s_n_llhttp__internal__n_header_field_colon_discard_ws; - } - switch (*p) { - case ' ': { - p++; - goto s_n_llhttp__internal__n_header_field_colon_discard_ws; - } - default: { - goto s_n_llhttp__internal__n_header_field_colon; - } - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete: s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete: { switch (llhttp__on_header_value_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_header_field_start; - case 21: - goto s_n_llhttp__internal__n_pause_18; default: - goto s_n_llhttp__internal__n_error_48; + goto s_n_llhttp__internal__n_header_field_start; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_header_value: s_n_llhttp__internal__n_span_start_llhttp__on_header_value: { @@ -2146,7 +1558,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_header_value; goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_discard_lws: s_n_llhttp__internal__n_header_value_discard_lws: { @@ -2156,17 +1569,18 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_15; + goto s_n_llhttp__internal__n_header_value_discard_ws; } case ' ': { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_15; + goto s_n_llhttp__internal__n_header_value_discard_ws; } default: { - goto s_n_llhttp__internal__n_invoke_load_header_state_1; + goto s_n_llhttp__internal__n_invoke_load_header_state; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_discard_ws_almost_done: s_n_llhttp__internal__n_header_value_discard_ws_almost_done: { @@ -2179,10 +1593,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_discard_lws; } default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_16; + goto s_n_llhttp__internal__n_error_19; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_lws: s_n_llhttp__internal__n_header_value_lws: { @@ -2191,16 +1606,17 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case 9: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_18; + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; } case ' ': { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_18; + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; } default: { - goto s_n_llhttp__internal__n_invoke_load_header_state_5; + goto s_n_llhttp__internal__n_invoke_load_header_state_3; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_almost_done: s_n_llhttp__internal__n_header_value_almost_done: { @@ -2213,20 +1629,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_lws; } default: { - goto s_n_llhttp__internal__n_error_53; + goto s_n_llhttp__internal__n_error_20; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_test_lenient_flags_17: - s_n_llhttp__internal__n_invoke_test_lenient_flags_17: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_header_value_almost_done; - default: - goto s_n_llhttp__internal__n_error_51; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_lenient: s_n_llhttp__internal__n_header_value_lenient: { @@ -2235,26 +1642,18 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case 10: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_4; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1; } case 13: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_5; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_3; } default: { p++; goto s_n_llhttp__internal__n_header_value_lenient; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_54: - s_n_llhttp__internal__n_error_54: { - state->error = 0xa; - state->reason = "Invalid header value char"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_otherwise: s_n_llhttp__internal__n_header_value_otherwise: { @@ -2269,10 +1668,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2; } default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_19; + goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_connection_token: s_n_llhttp__internal__n_header_value_connection_token: { @@ -2310,7 +1710,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_otherwise; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_connection_ws: s_n_llhttp__internal__n_header_value_connection_ws: { @@ -2330,27 +1731,28 @@ static llparse_state_t llhttp__internal__run( } case ',': { p++; - goto s_n_llhttp__internal__n_invoke_load_header_state_6; + goto s_n_llhttp__internal__n_invoke_load_header_state_4; } default: { - goto s_n_llhttp__internal__n_invoke_update_header_state_5; + goto s_n_llhttp__internal__n_invoke_update_header_state_4; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_connection_1: s_n_llhttp__internal__n_header_value_connection_1: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_value_connection_1; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob2, 4); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob3, 4); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_invoke_update_header_state_3; + goto s_n_llhttp__internal__n_invoke_update_header_state_2; } case kMatchPause: { return s_n_llhttp__internal__n_header_value_connection_1; @@ -2359,21 +1761,22 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_connection_token; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_connection_2: s_n_llhttp__internal__n_header_value_connection_2: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_value_connection_2; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob3, 9); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob4, 9); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_invoke_update_header_state_6; + goto s_n_llhttp__internal__n_invoke_update_header_state_5; } case kMatchPause: { return s_n_llhttp__internal__n_header_value_connection_2; @@ -2382,21 +1785,22 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_connection_token; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_connection_3: s_n_llhttp__internal__n_header_value_connection_3: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_value_connection_3; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob4, 6); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob5, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_invoke_update_header_state_7; + goto s_n_llhttp__internal__n_invoke_update_header_state_6; } case kMatchPause: { return s_n_llhttp__internal__n_header_value_connection_3; @@ -2405,7 +1809,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_connection_token; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_connection: s_n_llhttp__internal__n_header_value_connection: { @@ -2437,25 +1842,28 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_connection_token; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_error_56: - s_n_llhttp__internal__n_error_56: { + case s_n_llhttp__internal__n_error_23: + s_n_llhttp__internal__n_error_23: { state->error = 0xb; state->reason = "Content-Length overflow"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_error_57: - s_n_llhttp__internal__n_error_57: { + case s_n_llhttp__internal__n_error_24: + s_n_llhttp__internal__n_error_24: { state->error = 0xb; state->reason = "Invalid character in Content-Length"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_content_length_ws: s_n_llhttp__internal__n_header_value_content_length_ws: { @@ -2464,20 +1872,21 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case 10: { - goto s_n_llhttp__internal__n_invoke_or_flags_17; + goto s_n_llhttp__internal__n_invoke_or_flags_15; } case 13: { - goto s_n_llhttp__internal__n_invoke_or_flags_17; + goto s_n_llhttp__internal__n_invoke_or_flags_15; } case ' ': { p++; goto s_n_llhttp__internal__n_header_value_content_length_ws; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_7; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_5; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_content_length: s_n_llhttp__internal__n_header_value_content_length: { @@ -2539,25 +1948,31 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_content_length_ws; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_error_59: - s_n_llhttp__internal__n_error_59: { - state->error = 0xf; - state->reason = "Invalid `Transfer-Encoding` header value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_58: - s_n_llhttp__internal__n_error_58: { - state->error = 0xf; - state->reason = "Invalid `Transfer-Encoding` header value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + case s_n_llhttp__internal__n_header_value_te_chunked_last: + s_n_llhttp__internal__n_header_value_te_chunked_last: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_te_chunked_last; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_invoke_update_header_state_7; + } + case 13: { + goto s_n_llhttp__internal__n_invoke_update_header_state_7; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_te_chunked_last; + } + default: { + goto s_n_llhttp__internal__n_header_value_te_chunked; + } + } + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_te_token_ows: s_n_llhttp__internal__n_header_value_te_token_ows: { @@ -2577,7 +1992,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_te_chunked; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value: s_n_llhttp__internal__n_header_value: { @@ -2606,18 +2022,19 @@ static llparse_state_t llhttp__internal__run( if (endp - p >= 16) { __m128i ranges; __m128i input; + int avail; int match_len; - + /* Load input */ input = _mm_loadu_si128((__m128i const*) p); - ranges = _mm_loadu_si128((__m128i const*) llparse_blob6); - + ranges = _mm_loadu_si128((__m128i const*) llparse_blob7); + /* Find first character that does not match `ranges` */ match_len = _mm_cmpestri(ranges, 6, input, 16, _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | _SIDD_NEGATIVE_POLARITY); - + if (match_len != 0) { p += match_len; goto s_n_llhttp__internal__n_header_value; @@ -2625,78 +2042,6 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_otherwise; } #endif /* __SSE4_2__ */ - #ifdef __ARM_NEON__ - while (endp - p >= 16) { - uint8x16_t input; - uint8x16_t single; - uint8x16_t mask; - uint8x8_t narrow; - uint64_t match_mask; - int match_len; - - /* Load input */ - input = vld1q_u8(p); - /* Find first character that does not match `ranges` */ - single = vceqq_u8(input, vdupq_n_u8(0x9)); - mask = single; - single = vandq_u16( - vcgeq_u8(input, vdupq_n_u8(' ')), - vcleq_u8(input, vdupq_n_u8('~')) - ); - mask = vorrq_u16(mask, single); - single = vandq_u16( - vcgeq_u8(input, vdupq_n_u8(0x80)), - vcleq_u8(input, vdupq_n_u8(0xff)) - ); - mask = vorrq_u16(mask, single); - narrow = vshrn_n_u16(mask, 4); - match_mask = ~vget_lane_u64(vreinterpret_u64_u8(narrow), 0); - match_len = __builtin_ctzll(match_mask) >> 2; - if (match_len != 16) { - p += match_len; - goto s_n_llhttp__internal__n_header_value_otherwise; - } - p += 16; - } - if (p == endp) { - return s_n_llhttp__internal__n_header_value; - } - #endif /* __ARM_NEON__ */ - #ifdef __wasm_simd128__ - while (endp - p >= 16) { - v128_t input; - v128_t mask; - v128_t single; - int match_len; - - /* Load input */ - input = wasm_v128_load(p); - /* Find first character that does not match `ranges` */ - single = wasm_i8x16_eq(input, wasm_u8x16_const_splat(0x9)); - mask = single; - single = wasm_v128_and( - wasm_i8x16_ge(input, wasm_u8x16_const_splat(' ')), - wasm_i8x16_le(input, wasm_u8x16_const_splat('~')) - ); - mask = wasm_v128_or(mask, single); - single = wasm_v128_and( - wasm_i8x16_ge(input, wasm_u8x16_const_splat(0x80)), - wasm_i8x16_le(input, wasm_u8x16_const_splat(0xff)) - ); - mask = wasm_v128_or(mask, single); - match_len = __builtin_ctz( - ~wasm_i8x16_bitmask(mask) - ); - if (match_len != 16) { - p += match_len; - goto s_n_llhttp__internal__n_header_value_otherwise; - } - p += 16; - } - if (p == endp) { - return s_n_llhttp__internal__n_header_value; - } - #endif /* __wasm_simd128__ */ switch (lookup_table[(uint8_t) *p]) { case 1: { p++; @@ -2706,7 +2051,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_otherwise; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_te_token: s_n_llhttp__internal__n_header_value_te_token: { @@ -2741,44 +2087,20 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_te_token_ows; } default: { - goto s_n_llhttp__internal__n_invoke_update_header_state_9; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_header_value_te_chunked_last: - s_n_llhttp__internal__n_header_value_te_chunked_last: { - if (p == endp) { - return s_n_llhttp__internal__n_header_value_te_chunked_last; - } - switch (*p) { - case 10: { goto s_n_llhttp__internal__n_invoke_update_header_state_8; } - case 13: { - goto s_n_llhttp__internal__n_invoke_update_header_state_8; - } - case ' ': { - p++; - goto s_n_llhttp__internal__n_header_value_te_chunked_last; - } - case ',': { - goto s_n_llhttp__internal__n_invoke_load_type_1; - } - default: { - goto s_n_llhttp__internal__n_header_value_te_token; - } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_te_chunked: s_n_llhttp__internal__n_header_value_te_chunked: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_value_te_chunked; } - match_seq = llparse__match_sequence_to_lower_unsafe(state, p, endp, llparse_blob5, 7); + match_seq = llparse__match_sequence_to_lower_unsafe(state, p, endp, llparse_blob6, 7); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -2792,7 +2114,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_value_te_token; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1: s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1: { @@ -2801,8 +2124,9 @@ static llparse_state_t llhttp__internal__run( } state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_header_value; - goto s_n_llhttp__internal__n_invoke_load_header_state_3; - UNREACHABLE; + goto s_n_llhttp__internal__n_invoke_load_header_state_2; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_value_discard_ws: s_n_llhttp__internal__n_header_value_discard_ws: { @@ -2816,7 +2140,7 @@ static llparse_state_t llhttp__internal__run( } case 10: { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_14; + goto s_n_llhttp__internal__n_header_value_discard_lws; } case 13: { p++; @@ -2830,31 +2154,17 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_load_header_state: - s_n_llhttp__internal__n_invoke_load_header_state: { - switch (llhttp__internal__c_load_header_state(state, p, endp)) { - case 2: - goto s_n_llhttp__internal__n_invoke_test_flags_4; - case 3: - goto s_n_llhttp__internal__n_invoke_test_flags_5; - default: - goto s_n_llhttp__internal__n_header_value_discard_ws; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete: s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete: { switch (llhttp__on_header_field_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_load_header_state; - case 21: - goto s_n_llhttp__internal__n_pause_19; default: - goto s_n_llhttp__internal__n_error_45; + goto s_n_llhttp__internal__n_header_value_discard_ws; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_general_otherwise: s_n_llhttp__internal__n_header_field_general_otherwise: { @@ -2863,13 +2173,14 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case ':': { - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_2; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1; } default: { - goto s_n_llhttp__internal__n_error_62; + goto s_n_llhttp__internal__n_error_25; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_general: s_n_llhttp__internal__n_header_field_general: { @@ -2898,30 +2209,31 @@ static llparse_state_t llhttp__internal__run( if (endp - p >= 16) { __m128i ranges; __m128i input; + int avail; int match_len; - + /* Load input */ input = _mm_loadu_si128((__m128i const*) p); - ranges = _mm_loadu_si128((__m128i const*) llparse_blob7); - + ranges = _mm_loadu_si128((__m128i const*) llparse_blob8); + /* Find first character that does not match `ranges` */ match_len = _mm_cmpestri(ranges, 16, input, 16, _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | _SIDD_NEGATIVE_POLARITY); - + if (match_len != 0) { p += match_len; goto s_n_llhttp__internal__n_header_field_general; } - ranges = _mm_loadu_si128((__m128i const*) llparse_blob8); - + ranges = _mm_loadu_si128((__m128i const*) llparse_blob9); + /* Find first character that does not match `ranges` */ match_len = _mm_cmpestri(ranges, 2, input, 16, _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | _SIDD_NEGATIVE_POLARITY); - + if (match_len != 0) { p += match_len; goto s_n_llhttp__internal__n_header_field_general; @@ -2938,7 +2250,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_field_general_otherwise; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_colon: s_n_llhttp__internal__n_header_field_colon: { @@ -2947,25 +2260,27 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case ' ': { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_13; + p++; + goto s_n_llhttp__internal__n_header_field_colon; } case ':': { - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field; } default: { - goto s_n_llhttp__internal__n_invoke_update_header_state_10; + goto s_n_llhttp__internal__n_invoke_update_header_state_9; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_3: s_n_llhttp__internal__n_header_field_3: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_field_3; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob1, 6); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob2, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -2977,19 +2292,20 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_header_field_3; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_4: s_n_llhttp__internal__n_header_field_4: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_field_4; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob9, 10); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob10, 10); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -3001,10 +2317,11 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_header_field_4; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_2: s_n_llhttp__internal__n_header_field_2: { @@ -3021,19 +2338,20 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_field_4; } default: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_1: s_n_llhttp__internal__n_header_field_1: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_field_1; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob0, 2); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob1, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -3044,19 +2362,20 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_header_field_1; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_5: s_n_llhttp__internal__n_header_field_5: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_field_5; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob10, 15); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob11, 15); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -3068,19 +2387,20 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_header_field_5; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_6: s_n_llhttp__internal__n_header_field_6: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_field_6; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob11, 16); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob12, 16); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -3092,19 +2412,20 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_header_field_6; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_7: s_n_llhttp__internal__n_header_field_7: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_header_field_7; } - match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob12, 6); + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob13, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -3116,10 +2437,11 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_header_field_7; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field: s_n_llhttp__internal__n_header_field: { @@ -3144,10 +2466,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_header_field_7; } default: { - goto s_n_llhttp__internal__n_invoke_update_header_state_11; + goto s_n_llhttp__internal__n_invoke_update_header_state_10; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_header_field: s_n_llhttp__internal__n_span_start_llhttp__on_header_field: { @@ -3157,7 +2480,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_header_field; goto s_n_llhttp__internal__n_header_field; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_header_field_start: s_n_llhttp__internal__n_header_field_start: { @@ -3166,37 +2490,18 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case 10: { - p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1; + goto s_n_llhttp__internal__n_headers_almost_done; } case 13: { p++; goto s_n_llhttp__internal__n_headers_almost_done; } - case ':': { - goto s_n_llhttp__internal__n_error_44; - } default: { goto s_n_llhttp__internal__n_span_start_llhttp__on_header_field; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_headers_start: - s_n_llhttp__internal__n_headers_start: { - if (p == endp) { - return s_n_llhttp__internal__n_headers_start; - } - switch (*p) { - case ' ': { - p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags; - } - default: { - goto s_n_llhttp__internal__n_header_field_start; - } - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_to_http_09: s_n_llhttp__internal__n_url_to_http_09: { @@ -3206,17 +2511,18 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } default: { goto s_n_llhttp__internal__n_invoke_update_http_major; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_skip_to_http09: s_n_llhttp__internal__n_url_skip_to_http09: { @@ -3226,18 +2532,19 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } default: { p++; goto s_n_llhttp__internal__n_url_to_http_09; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_skip_lf_to_http09_1: s_n_llhttp__internal__n_url_skip_lf_to_http09_1: { @@ -3250,10 +2557,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_url_to_http_09; } default: { - goto s_n_llhttp__internal__n_error_63; + goto s_n_llhttp__internal__n_error_26; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_skip_lf_to_http09: s_n_llhttp__internal__n_url_skip_lf_to_http09: { @@ -3263,60 +2571,63 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 13: { p++; goto s_n_llhttp__internal__n_url_skip_lf_to_http09_1; } default: { - goto s_n_llhttp__internal__n_error_63; + goto s_n_llhttp__internal__n_error_26; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_pri_upgrade: s_n_llhttp__internal__n_req_pri_upgrade: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_req_pri_upgrade; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob14, 10); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob15, 10); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_error_72; + goto s_n_llhttp__internal__n_error_29; } case kMatchPause: { return s_n_llhttp__internal__n_req_pri_upgrade; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_73; + goto s_n_llhttp__internal__n_error_30; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_req_http_complete_crlf: - s_n_llhttp__internal__n_req_http_complete_crlf: { + case s_n_llhttp__internal__n_req_http_complete_1: + s_n_llhttp__internal__n_req_http_complete_1: { if (p == endp) { - return s_n_llhttp__internal__n_req_http_complete_crlf; + return s_n_llhttp__internal__n_req_http_complete_1; } switch (*p) { case 10: { p++; - goto s_n_llhttp__internal__n_headers_start; + goto s_n_llhttp__internal__n_header_field_start; } default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_26; + goto s_n_llhttp__internal__n_error_28; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_http_complete: s_n_llhttp__internal__n_req_http_complete: { @@ -3326,57 +2637,18 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 10: { p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_25; + goto s_n_llhttp__internal__n_header_field_start; } case 13: { p++; - goto s_n_llhttp__internal__n_req_http_complete_crlf; + goto s_n_llhttp__internal__n_req_http_complete_1; } default: { - goto s_n_llhttp__internal__n_error_71; + goto s_n_llhttp__internal__n_error_28; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_load_method_1: - s_n_llhttp__internal__n_invoke_load_method_1: { - switch (llhttp__internal__c_load_method(state, p, endp)) { - case 34: - goto s_n_llhttp__internal__n_req_pri_upgrade; - default: - goto s_n_llhttp__internal__n_req_http_complete; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_version_complete: - s_n_llhttp__internal__n_invoke_llhttp__on_version_complete: { - switch (llhttp__on_version_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_load_method_1; - case 21: - goto s_n_llhttp__internal__n_pause_21; - default: - goto s_n_llhttp__internal__n_error_68; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_67: - s_n_llhttp__internal__n_error_67: { - state->error = 0x9; - state->reason = "Invalid HTTP version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_74: - s_n_llhttp__internal__n_error_74: { - state->error = 0x9; - state->reason = "Invalid minor version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_http_minor: s_n_llhttp__internal__n_req_http_minor: { @@ -3435,19 +2707,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_http_minor; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_2; + goto s_n_llhttp__internal__n_error_31; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_75: - s_n_llhttp__internal__n_error_75: { - state->error = 0x9; - state->reason = "Expected dot"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_http_dot: s_n_llhttp__internal__n_req_http_dot: { @@ -3460,19 +2724,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_req_http_minor; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_3; + goto s_n_llhttp__internal__n_error_32; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_76: - s_n_llhttp__internal__n_error_76: { - state->error = 0x9; - state->reason = "Invalid major version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_http_major: s_n_llhttp__internal__n_req_http_major: { @@ -3531,310 +2787,83 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_http_major; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_4; + goto s_n_llhttp__internal__n_error_33; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_span_start_llhttp__on_version: - s_n_llhttp__internal__n_span_start_llhttp__on_version: { + case s_n_llhttp__internal__n_req_http_start_1: + s_n_llhttp__internal__n_req_http_start_1: { + llparse_match_t match_seq; + if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_version; + return s_n_llhttp__internal__n_req_http_start_1; } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_version; - goto s_n_llhttp__internal__n_req_http_major; - UNREACHABLE; - } - case s_n_llhttp__internal__n_req_after_protocol: - s_n_llhttp__internal__n_req_after_protocol: { - if (p == endp) { - return s_n_llhttp__internal__n_req_after_protocol; - } - switch (*p) { - case '/': { + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob14, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_span_start_llhttp__on_version; - } - default: { - goto s_n_llhttp__internal__n_error_77; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_load_method: - s_n_llhttp__internal__n_invoke_load_method: { - switch (llhttp__internal__c_load_method(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_req_after_protocol; - case 1: - goto s_n_llhttp__internal__n_req_after_protocol; - case 2: - goto s_n_llhttp__internal__n_req_after_protocol; - case 3: - goto s_n_llhttp__internal__n_req_after_protocol; - case 4: - goto s_n_llhttp__internal__n_req_after_protocol; - case 5: - goto s_n_llhttp__internal__n_req_after_protocol; - case 6: - goto s_n_llhttp__internal__n_req_after_protocol; - case 7: - goto s_n_llhttp__internal__n_req_after_protocol; - case 8: - goto s_n_llhttp__internal__n_req_after_protocol; - case 9: - goto s_n_llhttp__internal__n_req_after_protocol; - case 10: - goto s_n_llhttp__internal__n_req_after_protocol; - case 11: - goto s_n_llhttp__internal__n_req_after_protocol; - case 12: - goto s_n_llhttp__internal__n_req_after_protocol; - case 13: - goto s_n_llhttp__internal__n_req_after_protocol; - case 14: - goto s_n_llhttp__internal__n_req_after_protocol; - case 15: - goto s_n_llhttp__internal__n_req_after_protocol; - case 16: - goto s_n_llhttp__internal__n_req_after_protocol; - case 17: - goto s_n_llhttp__internal__n_req_after_protocol; - case 18: - goto s_n_llhttp__internal__n_req_after_protocol; - case 19: - goto s_n_llhttp__internal__n_req_after_protocol; - case 20: - goto s_n_llhttp__internal__n_req_after_protocol; - case 21: - goto s_n_llhttp__internal__n_req_after_protocol; - case 22: - goto s_n_llhttp__internal__n_req_after_protocol; - case 23: - goto s_n_llhttp__internal__n_req_after_protocol; - case 24: - goto s_n_llhttp__internal__n_req_after_protocol; - case 25: - goto s_n_llhttp__internal__n_req_after_protocol; - case 26: - goto s_n_llhttp__internal__n_req_after_protocol; - case 27: - goto s_n_llhttp__internal__n_req_after_protocol; - case 28: - goto s_n_llhttp__internal__n_req_after_protocol; - case 29: - goto s_n_llhttp__internal__n_req_after_protocol; - case 30: - goto s_n_llhttp__internal__n_req_after_protocol; - case 31: - goto s_n_llhttp__internal__n_req_after_protocol; - case 32: - goto s_n_llhttp__internal__n_req_after_protocol; - case 33: - goto s_n_llhttp__internal__n_req_after_protocol; - case 34: - goto s_n_llhttp__internal__n_req_after_protocol; - case 46: - goto s_n_llhttp__internal__n_req_after_protocol; - default: - goto s_n_llhttp__internal__n_error_66; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete: - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete: { - switch (llhttp__on_protocol_complete(state, p, endp)) { - case 0: goto s_n_llhttp__internal__n_invoke_load_method; - case 21: - goto s_n_llhttp__internal__n_pause_22; - default: - goto s_n_llhttp__internal__n_error_65; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_82: - s_n_llhttp__internal__n_error_82: { - state->error = 0x8; - state->reason = "Expected HTTP/, RTSP/ or ICE/"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_req_after_http_start_1: - s_n_llhttp__internal__n_req_after_http_start_1: { - llparse_match_t match_seq; - - if (p == endp) { - return s_n_llhttp__internal__n_req_after_http_start_1; - } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob13, 3); - p = match_seq.current; - switch (match_seq.status) { - case kMatchComplete: { - p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol; } case kMatchPause: { - return s_n_llhttp__internal__n_req_after_http_start_1; + return s_n_llhttp__internal__n_req_http_start_1; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_3; + goto s_n_llhttp__internal__n_error_36; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_invoke_load_method_2: - s_n_llhttp__internal__n_invoke_load_method_2: { - switch (llhttp__internal__c_load_method(state, p, endp)) { - case 33: - goto s_n_llhttp__internal__n_req_after_protocol; - default: - goto s_n_llhttp__internal__n_error_79; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_1: - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_1: { - switch (llhttp__on_protocol_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_load_method_2; - case 21: - goto s_n_llhttp__internal__n_pause_23; - default: - goto s_n_llhttp__internal__n_error_78; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_req_after_http_start_2: - s_n_llhttp__internal__n_req_after_http_start_2: { + case s_n_llhttp__internal__n_req_http_start_2: + s_n_llhttp__internal__n_req_http_start_2: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_req_after_http_start_2; - } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob15, 2); - p = match_seq.current; - switch (match_seq.status) { - case kMatchComplete: { - p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_1; - } - case kMatchPause: { - return s_n_llhttp__internal__n_req_after_http_start_2; - } - case kMatchMismatch: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_3; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_load_method_3: - s_n_llhttp__internal__n_invoke_load_method_3: { - switch (llhttp__internal__c_load_method(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_req_after_protocol; - case 3: - goto s_n_llhttp__internal__n_req_after_protocol; - case 6: - goto s_n_llhttp__internal__n_req_after_protocol; - case 35: - goto s_n_llhttp__internal__n_req_after_protocol; - case 36: - goto s_n_llhttp__internal__n_req_after_protocol; - case 37: - goto s_n_llhttp__internal__n_req_after_protocol; - case 38: - goto s_n_llhttp__internal__n_req_after_protocol; - case 39: - goto s_n_llhttp__internal__n_req_after_protocol; - case 40: - goto s_n_llhttp__internal__n_req_after_protocol; - case 41: - goto s_n_llhttp__internal__n_req_after_protocol; - case 42: - goto s_n_llhttp__internal__n_req_after_protocol; - case 43: - goto s_n_llhttp__internal__n_req_after_protocol; - case 44: - goto s_n_llhttp__internal__n_req_after_protocol; - case 45: - goto s_n_llhttp__internal__n_req_after_protocol; - default: - goto s_n_llhttp__internal__n_error_81; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_2: - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_2: { - switch (llhttp__on_protocol_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_load_method_3; - case 21: - goto s_n_llhttp__internal__n_pause_24; - default: - goto s_n_llhttp__internal__n_error_80; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_req_after_http_start_3: - s_n_llhttp__internal__n_req_after_http_start_3: { - llparse_match_t match_seq; - - if (p == endp) { - return s_n_llhttp__internal__n_req_after_http_start_3; + return s_n_llhttp__internal__n_req_http_start_2; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob16, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_2; + goto s_n_llhttp__internal__n_invoke_load_method_2; } case kMatchPause: { - return s_n_llhttp__internal__n_req_after_http_start_3; + return s_n_llhttp__internal__n_req_http_start_2; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_3; + goto s_n_llhttp__internal__n_error_36; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_req_after_http_start: - s_n_llhttp__internal__n_req_after_http_start: { + case s_n_llhttp__internal__n_req_http_start_3: + s_n_llhttp__internal__n_req_http_start_3: { + llparse_match_t match_seq; + if (p == endp) { - return s_n_llhttp__internal__n_req_after_http_start; + return s_n_llhttp__internal__n_req_http_start_3; } - switch (*p) { - case 'H': { + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob17, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_req_after_http_start_1; + goto s_n_llhttp__internal__n_invoke_load_method_3; } - case 'I': { - p++; - goto s_n_llhttp__internal__n_req_after_http_start_2; + case kMatchPause: { + return s_n_llhttp__internal__n_req_http_start_3; } - case 'R': { - p++; - goto s_n_llhttp__internal__n_req_after_http_start_3; - } - default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_3; + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_36; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_span_start_llhttp__on_protocol: - s_n_llhttp__internal__n_span_start_llhttp__on_protocol: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_protocol; - } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_protocol; - goto s_n_llhttp__internal__n_req_after_http_start; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_http_start: s_n_llhttp__internal__n_req_http_start: { @@ -3846,11 +2875,24 @@ static llparse_state_t llhttp__internal__run( p++; goto s_n_llhttp__internal__n_req_http_start; } + case 'H': { + p++; + goto s_n_llhttp__internal__n_req_http_start_1; + } + case 'I': { + p++; + goto s_n_llhttp__internal__n_req_http_start_2; + } + case 'R': { + p++; + goto s_n_llhttp__internal__n_req_http_start_3; + } default: { - goto s_n_llhttp__internal__n_span_start_llhttp__on_protocol; + goto s_n_llhttp__internal__n_error_36; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_to_http: s_n_llhttp__internal__n_url_to_http: { @@ -3860,17 +2902,18 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } default: { goto s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_skip_to_http: s_n_llhttp__internal__n_url_skip_to_http: { @@ -3880,18 +2923,19 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } default: { p++; goto s_n_llhttp__internal__n_url_to_http; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_fragment: s_n_llhttp__internal__n_url_fragment: { @@ -3919,7 +2963,7 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { goto s_n_llhttp__internal__n_span_end_llhttp__on_url_6; @@ -3935,10 +2979,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_url_fragment; } default: { - goto s_n_llhttp__internal__n_error_83; + goto s_n_llhttp__internal__n_error_37; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_end_stub_query_3: s_n_llhttp__internal__n_span_end_stub_query_3: { @@ -3947,7 +2992,8 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_url_fragment; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_query: s_n_llhttp__internal__n_url_query: { @@ -3975,7 +3021,7 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { goto s_n_llhttp__internal__n_span_end_llhttp__on_url_9; @@ -3994,10 +3040,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_span_end_stub_query_3; } default: { - goto s_n_llhttp__internal__n_error_84; + goto s_n_llhttp__internal__n_error_38; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_query_or_fragment: s_n_llhttp__internal__n_url_query_or_fragment: { @@ -4007,14 +3054,14 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 10: { goto s_n_llhttp__internal__n_span_end_llhttp__on_url_3; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 13: { goto s_n_llhttp__internal__n_span_end_llhttp__on_url_4; @@ -4031,10 +3078,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_url_query; } default: { - goto s_n_llhttp__internal__n_error_85; + goto s_n_llhttp__internal__n_error_39; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_path: s_n_llhttp__internal__n_url_path: { @@ -4062,7 +3110,7 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { p++; @@ -4072,7 +3120,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_url_query_or_fragment; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_stub_path_2: s_n_llhttp__internal__n_span_start_stub_path_2: { @@ -4081,7 +3130,8 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_url_path; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_stub_path: s_n_llhttp__internal__n_span_start_stub_path: { @@ -4090,7 +3140,8 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_url_path; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_stub_path_1: s_n_llhttp__internal__n_span_start_stub_path_1: { @@ -4099,7 +3150,8 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_url_path; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_server_with_at: s_n_llhttp__internal__n_url_server_with_at: { @@ -4127,7 +3179,7 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { goto s_n_llhttp__internal__n_span_end_llhttp__on_url_12; @@ -4151,13 +3203,14 @@ static llparse_state_t llhttp__internal__run( } case 8: { p++; - goto s_n_llhttp__internal__n_error_86; + goto s_n_llhttp__internal__n_error_40; } default: { - goto s_n_llhttp__internal__n_error_87; + goto s_n_llhttp__internal__n_error_41; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_server: s_n_llhttp__internal__n_url_server: { @@ -4185,7 +3238,7 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { goto s_n_llhttp__internal__n_span_end_llhttp__on_url; @@ -4212,10 +3265,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_url_server_with_at; } default: { - goto s_n_llhttp__internal__n_error_88; + goto s_n_llhttp__internal__n_error_42; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_schema_delim_1: s_n_llhttp__internal__n_url_schema_delim_1: { @@ -4228,10 +3282,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_url_server; } default: { - goto s_n_llhttp__internal__n_error_89; + goto s_n_llhttp__internal__n_error_44; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_schema_delim: s_n_llhttp__internal__n_url_schema_delim: { @@ -4241,33 +3296,34 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 10: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_43; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 13: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_43; } case ' ': { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_43; } case '/': { p++; goto s_n_llhttp__internal__n_url_schema_delim_1; } default: { - goto s_n_llhttp__internal__n_error_89; + goto s_n_llhttp__internal__n_error_44; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_end_stub_schema: s_n_llhttp__internal__n_span_end_stub_schema: { @@ -4276,19 +3332,20 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_url_schema_delim; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_schema: s_n_llhttp__internal__n_url_schema: { static uint8_t lookup_table[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, - 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, - 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, + 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -4304,32 +3361,37 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { - goto s_n_llhttp__internal__n_span_end_stub_schema; + p++; + goto s_n_llhttp__internal__n_error_43; } case 3: { + goto s_n_llhttp__internal__n_span_end_stub_schema; + } + case 4: { p++; goto s_n_llhttp__internal__n_url_schema; } default: { - goto s_n_llhttp__internal__n_error_90; + goto s_n_llhttp__internal__n_error_45; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_start: s_n_llhttp__internal__n_url_start: { static uint8_t lookup_table[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, + 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, - 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -4345,19 +3407,24 @@ static llparse_state_t llhttp__internal__run( switch (lookup_table[(uint8_t) *p]) { case 1: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 2: { - goto s_n_llhttp__internal__n_span_start_stub_path_2; + p++; + goto s_n_llhttp__internal__n_error_43; } case 3: { + goto s_n_llhttp__internal__n_span_start_stub_path_2; + } + case 4: { goto s_n_llhttp__internal__n_url_schema; } default: { - goto s_n_llhttp__internal__n_error_91; + goto s_n_llhttp__internal__n_error_46; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_url_1: s_n_llhttp__internal__n_span_start_llhttp__on_url_1: { @@ -4367,7 +3434,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_url; goto s_n_llhttp__internal__n_url_start; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_entry_normal: s_n_llhttp__internal__n_url_entry_normal: { @@ -4377,17 +3445,18 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } default: { goto s_n_llhttp__internal__n_span_start_llhttp__on_url_1; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_url: s_n_llhttp__internal__n_span_start_llhttp__on_url: { @@ -4397,7 +3466,8 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_url; goto s_n_llhttp__internal__n_url_server; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_url_entry_connect: s_n_llhttp__internal__n_url_entry_connect: { @@ -4407,17 +3477,18 @@ static llparse_state_t llhttp__internal__run( switch (*p) { case 9: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } case 12: { p++; - goto s_n_llhttp__internal__n_error_2; + goto s_n_llhttp__internal__n_error_1; } default: { goto s_n_llhttp__internal__n_span_start_llhttp__on_url; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_spaces_before_url: s_n_llhttp__internal__n_req_spaces_before_url: { @@ -4433,7 +3504,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_is_equal_method; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_first_space_before_url: s_n_llhttp__internal__n_req_first_space_before_url: { @@ -4446,27 +3518,16 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_req_spaces_before_url; } default: { - goto s_n_llhttp__internal__n_error_92; + goto s_n_llhttp__internal__n_error_47; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1: - s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1: { - switch (llhttp__on_method_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_req_first_space_before_url; - case 21: - goto s_n_llhttp__internal__n_pause_29; - default: - goto s_n_llhttp__internal__n_error_111; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_after_start_req_2: - s_n_llhttp__internal__n_after_start_req_2: { + case s_n_llhttp__internal__n_start_req_2: + s_n_llhttp__internal__n_start_req_2: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_2; + return s_n_llhttp__internal__n_start_req_2; } switch (*p) { case 'L': { @@ -4475,19 +3536,20 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_3: - s_n_llhttp__internal__n_after_start_req_3: { + case s_n_llhttp__internal__n_start_req_3: + s_n_llhttp__internal__n_start_req_3: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_3; + return s_n_llhttp__internal__n_start_req_3; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob17, 6); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob18, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4496,42 +3558,44 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_3; + return s_n_llhttp__internal__n_start_req_3; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_1: - s_n_llhttp__internal__n_after_start_req_1: { + case s_n_llhttp__internal__n_start_req_1: + s_n_llhttp__internal__n_start_req_1: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_1; + return s_n_llhttp__internal__n_start_req_1; } switch (*p) { case 'C': { p++; - goto s_n_llhttp__internal__n_after_start_req_2; + goto s_n_llhttp__internal__n_start_req_2; } case 'N': { p++; - goto s_n_llhttp__internal__n_after_start_req_3; + goto s_n_llhttp__internal__n_start_req_3; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_4: - s_n_llhttp__internal__n_after_start_req_4: { + case s_n_llhttp__internal__n_start_req_4: + s_n_llhttp__internal__n_start_req_4: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_4; + return s_n_llhttp__internal__n_start_req_4; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob18, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob19, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4540,22 +3604,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_4; + return s_n_llhttp__internal__n_start_req_4; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_6: - s_n_llhttp__internal__n_after_start_req_6: { + case s_n_llhttp__internal__n_start_req_6: + s_n_llhttp__internal__n_start_req_6: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_6; + return s_n_llhttp__internal__n_start_req_6; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob19, 6); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob20, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4564,22 +3629,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_6; + return s_n_llhttp__internal__n_start_req_6; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_8: - s_n_llhttp__internal__n_after_start_req_8: { + case s_n_llhttp__internal__n_start_req_8: + s_n_llhttp__internal__n_start_req_8: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_8; + return s_n_llhttp__internal__n_start_req_8; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob20, 4); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob21, 4); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4588,18 +3654,19 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_8; + return s_n_llhttp__internal__n_start_req_8; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_9: - s_n_llhttp__internal__n_after_start_req_9: { + case s_n_llhttp__internal__n_start_req_9: + s_n_llhttp__internal__n_start_req_9: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_9; + return s_n_llhttp__internal__n_start_req_9; } switch (*p) { case 'Y': { @@ -4608,59 +3675,62 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_7: - s_n_llhttp__internal__n_after_start_req_7: { + case s_n_llhttp__internal__n_start_req_7: + s_n_llhttp__internal__n_start_req_7: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_7; + return s_n_llhttp__internal__n_start_req_7; } switch (*p) { case 'N': { p++; - goto s_n_llhttp__internal__n_after_start_req_8; + goto s_n_llhttp__internal__n_start_req_8; } case 'P': { p++; - goto s_n_llhttp__internal__n_after_start_req_9; + goto s_n_llhttp__internal__n_start_req_9; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_5: - s_n_llhttp__internal__n_after_start_req_5: { + case s_n_llhttp__internal__n_start_req_5: + s_n_llhttp__internal__n_start_req_5: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_5; + return s_n_llhttp__internal__n_start_req_5; } switch (*p) { case 'H': { p++; - goto s_n_llhttp__internal__n_after_start_req_6; + goto s_n_llhttp__internal__n_start_req_6; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_7; + goto s_n_llhttp__internal__n_start_req_7; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_12: - s_n_llhttp__internal__n_after_start_req_12: { + case s_n_llhttp__internal__n_start_req_12: + s_n_llhttp__internal__n_start_req_12: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_12; + return s_n_llhttp__internal__n_start_req_12; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob21, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob22, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4669,22 +3739,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_12; + return s_n_llhttp__internal__n_start_req_12; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_13: - s_n_llhttp__internal__n_after_start_req_13: { + case s_n_llhttp__internal__n_start_req_13: + s_n_llhttp__internal__n_start_req_13: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_13; + return s_n_llhttp__internal__n_start_req_13; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob22, 5); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob23, 5); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4693,58 +3764,61 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_13; + return s_n_llhttp__internal__n_start_req_13; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_11: - s_n_llhttp__internal__n_after_start_req_11: { + case s_n_llhttp__internal__n_start_req_11: + s_n_llhttp__internal__n_start_req_11: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_11; + return s_n_llhttp__internal__n_start_req_11; } switch (*p) { case 'L': { p++; - goto s_n_llhttp__internal__n_after_start_req_12; + goto s_n_llhttp__internal__n_start_req_12; } case 'S': { p++; - goto s_n_llhttp__internal__n_after_start_req_13; + goto s_n_llhttp__internal__n_start_req_13; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_10: - s_n_llhttp__internal__n_after_start_req_10: { + case s_n_llhttp__internal__n_start_req_10: + s_n_llhttp__internal__n_start_req_10: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_10; + return s_n_llhttp__internal__n_start_req_10; } switch (*p) { case 'E': { p++; - goto s_n_llhttp__internal__n_after_start_req_11; + goto s_n_llhttp__internal__n_start_req_11; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_14: - s_n_llhttp__internal__n_after_start_req_14: { + case s_n_llhttp__internal__n_start_req_14: + s_n_llhttp__internal__n_start_req_14: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_14; + return s_n_llhttp__internal__n_start_req_14; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob23, 4); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob24, 4); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4753,22 +3827,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_14; + return s_n_llhttp__internal__n_start_req_14; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_17: - s_n_llhttp__internal__n_after_start_req_17: { + case s_n_llhttp__internal__n_start_req_17: + s_n_llhttp__internal__n_start_req_17: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_17; + return s_n_llhttp__internal__n_start_req_17; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob25, 9); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob26, 9); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4777,62 +3852,65 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_17; + return s_n_llhttp__internal__n_start_req_17; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_16: - s_n_llhttp__internal__n_after_start_req_16: { + case s_n_llhttp__internal__n_start_req_16: + s_n_llhttp__internal__n_start_req_16: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_16; + return s_n_llhttp__internal__n_start_req_16; } switch (*p) { case '_': { p++; - goto s_n_llhttp__internal__n_after_start_req_17; + goto s_n_llhttp__internal__n_start_req_17; } default: { match = 1; goto s_n_llhttp__internal__n_invoke_store_method_1; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_15: - s_n_llhttp__internal__n_after_start_req_15: { + case s_n_llhttp__internal__n_start_req_15: + s_n_llhttp__internal__n_start_req_15: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_15; + return s_n_llhttp__internal__n_start_req_15; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob24, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob25, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_after_start_req_16; + goto s_n_llhttp__internal__n_start_req_16; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_15; + return s_n_llhttp__internal__n_start_req_15; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_18: - s_n_llhttp__internal__n_after_start_req_18: { + case s_n_llhttp__internal__n_start_req_18: + s_n_llhttp__internal__n_start_req_18: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_18; + return s_n_llhttp__internal__n_start_req_18; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob26, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob27, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4841,22 +3919,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_18; + return s_n_llhttp__internal__n_start_req_18; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_20: - s_n_llhttp__internal__n_after_start_req_20: { + case s_n_llhttp__internal__n_start_req_20: + s_n_llhttp__internal__n_start_req_20: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_20; + return s_n_llhttp__internal__n_start_req_20; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob27, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob28, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4865,22 +3944,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_20; + return s_n_llhttp__internal__n_start_req_20; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_21: - s_n_llhttp__internal__n_after_start_req_21: { + case s_n_llhttp__internal__n_start_req_21: + s_n_llhttp__internal__n_start_req_21: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_21; + return s_n_llhttp__internal__n_start_req_21; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob28, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob29, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4889,42 +3969,44 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_21; + return s_n_llhttp__internal__n_start_req_21; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_19: - s_n_llhttp__internal__n_after_start_req_19: { + case s_n_llhttp__internal__n_start_req_19: + s_n_llhttp__internal__n_start_req_19: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_19; + return s_n_llhttp__internal__n_start_req_19; } switch (*p) { case 'I': { p++; - goto s_n_llhttp__internal__n_after_start_req_20; + goto s_n_llhttp__internal__n_start_req_20; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_21; + goto s_n_llhttp__internal__n_start_req_21; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_23: - s_n_llhttp__internal__n_after_start_req_23: { + case s_n_llhttp__internal__n_start_req_23: + s_n_llhttp__internal__n_start_req_23: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_23; + return s_n_llhttp__internal__n_start_req_23; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob29, 6); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob30, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4933,22 +4015,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_23; + return s_n_llhttp__internal__n_start_req_23; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_24: - s_n_llhttp__internal__n_after_start_req_24: { + case s_n_llhttp__internal__n_start_req_24: + s_n_llhttp__internal__n_start_req_24: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_24; + return s_n_llhttp__internal__n_start_req_24; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob30, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob31, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4957,22 +4040,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_24; + return s_n_llhttp__internal__n_start_req_24; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_26: - s_n_llhttp__internal__n_after_start_req_26: { + case s_n_llhttp__internal__n_start_req_26: + s_n_llhttp__internal__n_start_req_26: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_26; + return s_n_llhttp__internal__n_start_req_26; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob31, 7); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob32, 7); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -4981,22 +4065,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_26; + return s_n_llhttp__internal__n_start_req_26; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_28: - s_n_llhttp__internal__n_after_start_req_28: { + case s_n_llhttp__internal__n_start_req_28: + s_n_llhttp__internal__n_start_req_28: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_28; + return s_n_llhttp__internal__n_start_req_28; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob32, 6); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob33, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5005,18 +4090,19 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_28; + return s_n_llhttp__internal__n_start_req_28; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_29: - s_n_llhttp__internal__n_after_start_req_29: { + case s_n_llhttp__internal__n_start_req_29: + s_n_llhttp__internal__n_start_req_29: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_29; + return s_n_llhttp__internal__n_start_req_29; } switch (*p) { case 'L': { @@ -5025,59 +4111,62 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_27: - s_n_llhttp__internal__n_after_start_req_27: { + case s_n_llhttp__internal__n_start_req_27: + s_n_llhttp__internal__n_start_req_27: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_27; + return s_n_llhttp__internal__n_start_req_27; } switch (*p) { case 'A': { p++; - goto s_n_llhttp__internal__n_after_start_req_28; + goto s_n_llhttp__internal__n_start_req_28; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_29; + goto s_n_llhttp__internal__n_start_req_29; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_25: - s_n_llhttp__internal__n_after_start_req_25: { + case s_n_llhttp__internal__n_start_req_25: + s_n_llhttp__internal__n_start_req_25: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_25; + return s_n_llhttp__internal__n_start_req_25; } switch (*p) { case 'A': { p++; - goto s_n_llhttp__internal__n_after_start_req_26; + goto s_n_llhttp__internal__n_start_req_26; } case 'C': { p++; - goto s_n_llhttp__internal__n_after_start_req_27; + goto s_n_llhttp__internal__n_start_req_27; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_30: - s_n_llhttp__internal__n_after_start_req_30: { + case s_n_llhttp__internal__n_start_req_30: + s_n_llhttp__internal__n_start_req_30: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_30; + return s_n_llhttp__internal__n_start_req_30; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob33, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob34, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5086,50 +4175,52 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_30; + return s_n_llhttp__internal__n_start_req_30; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_22: - s_n_llhttp__internal__n_after_start_req_22: { + case s_n_llhttp__internal__n_start_req_22: + s_n_llhttp__internal__n_start_req_22: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_22; + return s_n_llhttp__internal__n_start_req_22; } switch (*p) { case '-': { p++; - goto s_n_llhttp__internal__n_after_start_req_23; + goto s_n_llhttp__internal__n_start_req_23; } case 'E': { p++; - goto s_n_llhttp__internal__n_after_start_req_24; + goto s_n_llhttp__internal__n_start_req_24; } case 'K': { p++; - goto s_n_llhttp__internal__n_after_start_req_25; + goto s_n_llhttp__internal__n_start_req_25; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_30; + goto s_n_llhttp__internal__n_start_req_30; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_31: - s_n_llhttp__internal__n_after_start_req_31: { + case s_n_llhttp__internal__n_start_req_31: + s_n_llhttp__internal__n_start_req_31: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_31; + return s_n_llhttp__internal__n_start_req_31; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob34, 5); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob35, 5); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5138,22 +4229,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_31; + return s_n_llhttp__internal__n_start_req_31; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_32: - s_n_llhttp__internal__n_after_start_req_32: { + case s_n_llhttp__internal__n_start_req_32: + s_n_llhttp__internal__n_start_req_32: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_32; + return s_n_llhttp__internal__n_start_req_32; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob35, 6); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob36, 6); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5162,22 +4254,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_32; + return s_n_llhttp__internal__n_start_req_32; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_35: - s_n_llhttp__internal__n_after_start_req_35: { + case s_n_llhttp__internal__n_start_req_35: + s_n_llhttp__internal__n_start_req_35: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_35; + return s_n_llhttp__internal__n_start_req_35; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob36, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob37, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5186,22 +4279,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_35; + return s_n_llhttp__internal__n_start_req_35; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_36: - s_n_llhttp__internal__n_after_start_req_36: { + case s_n_llhttp__internal__n_start_req_36: + s_n_llhttp__internal__n_start_req_36: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_36; + return s_n_llhttp__internal__n_start_req_36; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob37, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob38, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5210,42 +4304,44 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_36; + return s_n_llhttp__internal__n_start_req_36; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_34: - s_n_llhttp__internal__n_after_start_req_34: { + case s_n_llhttp__internal__n_start_req_34: + s_n_llhttp__internal__n_start_req_34: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_34; + return s_n_llhttp__internal__n_start_req_34; } switch (*p) { case 'T': { p++; - goto s_n_llhttp__internal__n_after_start_req_35; + goto s_n_llhttp__internal__n_start_req_35; } case 'U': { p++; - goto s_n_llhttp__internal__n_after_start_req_36; + goto s_n_llhttp__internal__n_start_req_36; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_37: - s_n_llhttp__internal__n_after_start_req_37: { + case s_n_llhttp__internal__n_start_req_37: + s_n_llhttp__internal__n_start_req_37: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_37; + return s_n_llhttp__internal__n_start_req_37; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob38, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob39, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5254,22 +4350,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_37; + return s_n_llhttp__internal__n_start_req_37; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_38: - s_n_llhttp__internal__n_after_start_req_38: { + case s_n_llhttp__internal__n_start_req_38: + s_n_llhttp__internal__n_start_req_38: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_38; + return s_n_llhttp__internal__n_start_req_38; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob39, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob40, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5278,22 +4375,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_38; + return s_n_llhttp__internal__n_start_req_38; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_42: - s_n_llhttp__internal__n_after_start_req_42: { + case s_n_llhttp__internal__n_start_req_42: + s_n_llhttp__internal__n_start_req_42: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_42; + return s_n_llhttp__internal__n_start_req_42; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob40, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob41, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5302,22 +4400,23 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_42; + return s_n_llhttp__internal__n_start_req_42; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_43: - s_n_llhttp__internal__n_after_start_req_43: { + case s_n_llhttp__internal__n_start_req_43: + s_n_llhttp__internal__n_start_req_43: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_43; + return s_n_llhttp__internal__n_start_req_43; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob41, 4); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob42, 4); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5326,54 +4425,57 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_43; + return s_n_llhttp__internal__n_start_req_43; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_41: - s_n_llhttp__internal__n_after_start_req_41: { + case s_n_llhttp__internal__n_start_req_41: + s_n_llhttp__internal__n_start_req_41: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_41; + return s_n_llhttp__internal__n_start_req_41; } switch (*p) { case 'F': { p++; - goto s_n_llhttp__internal__n_after_start_req_42; + goto s_n_llhttp__internal__n_start_req_42; } case 'P': { p++; - goto s_n_llhttp__internal__n_after_start_req_43; + goto s_n_llhttp__internal__n_start_req_43; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_40: - s_n_llhttp__internal__n_after_start_req_40: { + case s_n_llhttp__internal__n_start_req_40: + s_n_llhttp__internal__n_start_req_40: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_40; + return s_n_llhttp__internal__n_start_req_40; } switch (*p) { case 'P': { p++; - goto s_n_llhttp__internal__n_after_start_req_41; + goto s_n_llhttp__internal__n_start_req_41; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_39: - s_n_llhttp__internal__n_after_start_req_39: { + case s_n_llhttp__internal__n_start_req_39: + s_n_llhttp__internal__n_start_req_39: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_39; + return s_n_llhttp__internal__n_start_req_39; } switch (*p) { case 'I': { @@ -5383,22 +4485,23 @@ static llparse_state_t llhttp__internal__run( } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_40; + goto s_n_llhttp__internal__n_start_req_40; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_45: - s_n_llhttp__internal__n_after_start_req_45: { + case s_n_llhttp__internal__n_start_req_45: + s_n_llhttp__internal__n_start_req_45: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_45; + return s_n_llhttp__internal__n_start_req_45; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob42, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob43, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -5407,23 +4510,24 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_45; + return s_n_llhttp__internal__n_start_req_45; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_44: - s_n_llhttp__internal__n_after_start_req_44: { + case s_n_llhttp__internal__n_start_req_44: + s_n_llhttp__internal__n_start_req_44: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_44; + return s_n_llhttp__internal__n_start_req_44; } switch (*p) { case 'R': { p++; - goto s_n_llhttp__internal__n_after_start_req_45; + goto s_n_llhttp__internal__n_start_req_45; } case 'T': { p++; @@ -5431,73 +4535,51 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_33: - s_n_llhttp__internal__n_after_start_req_33: { + case s_n_llhttp__internal__n_start_req_33: + s_n_llhttp__internal__n_start_req_33: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_33; + return s_n_llhttp__internal__n_start_req_33; } switch (*p) { case 'A': { p++; - goto s_n_llhttp__internal__n_after_start_req_34; + goto s_n_llhttp__internal__n_start_req_34; } case 'L': { p++; - goto s_n_llhttp__internal__n_after_start_req_37; + goto s_n_llhttp__internal__n_start_req_37; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_38; + goto s_n_llhttp__internal__n_start_req_38; } case 'R': { p++; - goto s_n_llhttp__internal__n_after_start_req_39; + goto s_n_llhttp__internal__n_start_req_39; } case 'U': { p++; - goto s_n_llhttp__internal__n_after_start_req_44; + goto s_n_llhttp__internal__n_start_req_44; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_46: - s_n_llhttp__internal__n_after_start_req_46: { + case s_n_llhttp__internal__n_start_req_48: + s_n_llhttp__internal__n_start_req_48: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_46; - } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob43, 4); - p = match_seq.current; - switch (match_seq.status) { - case kMatchComplete: { - p++; - match = 46; - goto s_n_llhttp__internal__n_invoke_store_method_1; - } - case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_46; - } - case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_after_start_req_49: - s_n_llhttp__internal__n_after_start_req_49: { - llparse_match_t match_seq; - - if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_49; + return s_n_llhttp__internal__n_start_req_48; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob44, 3); p = match_seq.current; @@ -5508,20 +4590,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_49; + return s_n_llhttp__internal__n_start_req_48; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_50: - s_n_llhttp__internal__n_after_start_req_50: { + case s_n_llhttp__internal__n_start_req_49: + s_n_llhttp__internal__n_start_req_49: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_50; + return s_n_llhttp__internal__n_start_req_49; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob45, 3); p = match_seq.current; @@ -5532,20 +4615,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_50; + return s_n_llhttp__internal__n_start_req_49; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_51: - s_n_llhttp__internal__n_after_start_req_51: { + case s_n_llhttp__internal__n_start_req_50: + s_n_llhttp__internal__n_start_req_50: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_51; + return s_n_llhttp__internal__n_start_req_50; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob46, 5); p = match_seq.current; @@ -5556,20 +4640,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_51; + return s_n_llhttp__internal__n_start_req_50; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_52: - s_n_llhttp__internal__n_after_start_req_52: { + case s_n_llhttp__internal__n_start_req_51: + s_n_llhttp__internal__n_start_req_51: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_52; + return s_n_llhttp__internal__n_start_req_51; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob47, 3); p = match_seq.current; @@ -5580,64 +4665,67 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_52; + return s_n_llhttp__internal__n_start_req_51; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_48: - s_n_llhttp__internal__n_after_start_req_48: { + case s_n_llhttp__internal__n_start_req_47: + s_n_llhttp__internal__n_start_req_47: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_48; + return s_n_llhttp__internal__n_start_req_47; } switch (*p) { case 'B': { p++; - goto s_n_llhttp__internal__n_after_start_req_49; + goto s_n_llhttp__internal__n_start_req_48; } case 'C': { p++; - goto s_n_llhttp__internal__n_after_start_req_50; + goto s_n_llhttp__internal__n_start_req_49; } case 'D': { p++; - goto s_n_llhttp__internal__n_after_start_req_51; + goto s_n_llhttp__internal__n_start_req_50; } case 'P': { p++; - goto s_n_llhttp__internal__n_after_start_req_52; + goto s_n_llhttp__internal__n_start_req_51; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_47: - s_n_llhttp__internal__n_after_start_req_47: { + case s_n_llhttp__internal__n_start_req_46: + s_n_llhttp__internal__n_start_req_46: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_47; + return s_n_llhttp__internal__n_start_req_46; } switch (*p) { case 'E': { p++; - goto s_n_llhttp__internal__n_after_start_req_48; + goto s_n_llhttp__internal__n_start_req_47; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_55: - s_n_llhttp__internal__n_after_start_req_55: { + case s_n_llhttp__internal__n_start_req_54: + s_n_llhttp__internal__n_start_req_54: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_55; + return s_n_llhttp__internal__n_start_req_54; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob48, 3); p = match_seq.current; @@ -5648,18 +4736,19 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_55; + return s_n_llhttp__internal__n_start_req_54; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_57: - s_n_llhttp__internal__n_after_start_req_57: { + case s_n_llhttp__internal__n_start_req_56: + s_n_llhttp__internal__n_start_req_56: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_57; + return s_n_llhttp__internal__n_start_req_56; } switch (*p) { case 'P': { @@ -5668,17 +4757,18 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_58: - s_n_llhttp__internal__n_after_start_req_58: { + case s_n_llhttp__internal__n_start_req_57: + s_n_llhttp__internal__n_start_req_57: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_58; + return s_n_llhttp__internal__n_start_req_57; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob49, 9); p = match_seq.current; @@ -5689,60 +4779,63 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_58; + return s_n_llhttp__internal__n_start_req_57; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_56: - s_n_llhttp__internal__n_after_start_req_56: { + case s_n_llhttp__internal__n_start_req_55: + s_n_llhttp__internal__n_start_req_55: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_56; + return s_n_llhttp__internal__n_start_req_55; } switch (*p) { case 'U': { p++; - goto s_n_llhttp__internal__n_after_start_req_57; + goto s_n_llhttp__internal__n_start_req_56; } case '_': { p++; - goto s_n_llhttp__internal__n_after_start_req_58; + goto s_n_llhttp__internal__n_start_req_57; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_54: - s_n_llhttp__internal__n_after_start_req_54: { + case s_n_llhttp__internal__n_start_req_53: + s_n_llhttp__internal__n_start_req_53: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_54; + return s_n_llhttp__internal__n_start_req_53; } switch (*p) { case 'A': { p++; - goto s_n_llhttp__internal__n_after_start_req_55; + goto s_n_llhttp__internal__n_start_req_54; } case 'T': { p++; - goto s_n_llhttp__internal__n_after_start_req_56; + goto s_n_llhttp__internal__n_start_req_55; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_59: - s_n_llhttp__internal__n_after_start_req_59: { + case s_n_llhttp__internal__n_start_req_58: + s_n_llhttp__internal__n_start_req_58: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_59; + return s_n_llhttp__internal__n_start_req_58; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob50, 4); p = match_seq.current; @@ -5753,20 +4846,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_59; + return s_n_llhttp__internal__n_start_req_58; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_60: - s_n_llhttp__internal__n_after_start_req_60: { + case s_n_llhttp__internal__n_start_req_59: + s_n_llhttp__internal__n_start_req_59: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_60; + return s_n_llhttp__internal__n_start_req_59; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob51, 7); p = match_seq.current; @@ -5777,44 +4871,46 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_60; + return s_n_llhttp__internal__n_start_req_59; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_53: - s_n_llhttp__internal__n_after_start_req_53: { + case s_n_llhttp__internal__n_start_req_52: + s_n_llhttp__internal__n_start_req_52: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_53; + return s_n_llhttp__internal__n_start_req_52; } switch (*p) { case 'E': { p++; - goto s_n_llhttp__internal__n_after_start_req_54; + goto s_n_llhttp__internal__n_start_req_53; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_59; + goto s_n_llhttp__internal__n_start_req_58; } case 'U': { p++; - goto s_n_llhttp__internal__n_after_start_req_60; + goto s_n_llhttp__internal__n_start_req_59; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_62: - s_n_llhttp__internal__n_after_start_req_62: { + case s_n_llhttp__internal__n_start_req_61: + s_n_llhttp__internal__n_start_req_61: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_62; + return s_n_llhttp__internal__n_start_req_61; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob52, 6); p = match_seq.current; @@ -5825,20 +4921,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_62; + return s_n_llhttp__internal__n_start_req_61; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_63: - s_n_llhttp__internal__n_after_start_req_63: { + case s_n_llhttp__internal__n_start_req_62: + s_n_llhttp__internal__n_start_req_62: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_63; + return s_n_llhttp__internal__n_start_req_62; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob53, 3); p = match_seq.current; @@ -5849,40 +4946,42 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_63; + return s_n_llhttp__internal__n_start_req_62; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_61: - s_n_llhttp__internal__n_after_start_req_61: { + case s_n_llhttp__internal__n_start_req_60: + s_n_llhttp__internal__n_start_req_60: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_61; + return s_n_llhttp__internal__n_start_req_60; } switch (*p) { case 'E': { p++; - goto s_n_llhttp__internal__n_after_start_req_62; + goto s_n_llhttp__internal__n_start_req_61; } case 'R': { p++; - goto s_n_llhttp__internal__n_after_start_req_63; + goto s_n_llhttp__internal__n_start_req_62; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_66: - s_n_llhttp__internal__n_after_start_req_66: { + case s_n_llhttp__internal__n_start_req_65: + s_n_llhttp__internal__n_start_req_65: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_66; + return s_n_llhttp__internal__n_start_req_65; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob54, 3); p = match_seq.current; @@ -5893,20 +4992,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_66; + return s_n_llhttp__internal__n_start_req_65; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_68: - s_n_llhttp__internal__n_after_start_req_68: { + case s_n_llhttp__internal__n_start_req_67: + s_n_llhttp__internal__n_start_req_67: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_68; + return s_n_llhttp__internal__n_start_req_67; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob55, 2); p = match_seq.current; @@ -5917,20 +5017,21 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_68; + return s_n_llhttp__internal__n_start_req_67; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_69: - s_n_llhttp__internal__n_after_start_req_69: { + case s_n_llhttp__internal__n_start_req_68: + s_n_llhttp__internal__n_start_req_68: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_69; + return s_n_llhttp__internal__n_start_req_68; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob56, 2); p = match_seq.current; @@ -5941,40 +5042,42 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_69; + return s_n_llhttp__internal__n_start_req_68; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_67: - s_n_llhttp__internal__n_after_start_req_67: { + case s_n_llhttp__internal__n_start_req_66: + s_n_llhttp__internal__n_start_req_66: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_67; + return s_n_llhttp__internal__n_start_req_66; } switch (*p) { case 'I': { p++; - goto s_n_llhttp__internal__n_after_start_req_68; + goto s_n_llhttp__internal__n_start_req_67; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_69; + goto s_n_llhttp__internal__n_start_req_68; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_70: - s_n_llhttp__internal__n_after_start_req_70: { + case s_n_llhttp__internal__n_start_req_69: + s_n_llhttp__internal__n_start_req_69: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_70; + return s_n_llhttp__internal__n_start_req_69; } match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob57, 8); p = match_seq.current; @@ -5985,143 +5088,142 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_method_1; } case kMatchPause: { - return s_n_llhttp__internal__n_after_start_req_70; + return s_n_llhttp__internal__n_start_req_69; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_65: - s_n_llhttp__internal__n_after_start_req_65: { + case s_n_llhttp__internal__n_start_req_64: + s_n_llhttp__internal__n_start_req_64: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_65; + return s_n_llhttp__internal__n_start_req_64; } switch (*p) { case 'B': { p++; - goto s_n_llhttp__internal__n_after_start_req_66; + goto s_n_llhttp__internal__n_start_req_65; } case 'L': { p++; - goto s_n_llhttp__internal__n_after_start_req_67; + goto s_n_llhttp__internal__n_start_req_66; } case 'S': { p++; - goto s_n_llhttp__internal__n_after_start_req_70; + goto s_n_llhttp__internal__n_start_req_69; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req_64: - s_n_llhttp__internal__n_after_start_req_64: { + case s_n_llhttp__internal__n_start_req_63: + s_n_llhttp__internal__n_start_req_63: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req_64; + return s_n_llhttp__internal__n_start_req_63; } switch (*p) { case 'N': { p++; - goto s_n_llhttp__internal__n_after_start_req_65; + goto s_n_llhttp__internal__n_start_req_64; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_after_start_req: - s_n_llhttp__internal__n_after_start_req: { + case s_n_llhttp__internal__n_start_req: + s_n_llhttp__internal__n_start_req: { if (p == endp) { - return s_n_llhttp__internal__n_after_start_req; + return s_n_llhttp__internal__n_start_req; } switch (*p) { case 'A': { p++; - goto s_n_llhttp__internal__n_after_start_req_1; + goto s_n_llhttp__internal__n_start_req_1; } case 'B': { p++; - goto s_n_llhttp__internal__n_after_start_req_4; + goto s_n_llhttp__internal__n_start_req_4; } case 'C': { p++; - goto s_n_llhttp__internal__n_after_start_req_5; + goto s_n_llhttp__internal__n_start_req_5; } case 'D': { p++; - goto s_n_llhttp__internal__n_after_start_req_10; + goto s_n_llhttp__internal__n_start_req_10; } case 'F': { p++; - goto s_n_llhttp__internal__n_after_start_req_14; + goto s_n_llhttp__internal__n_start_req_14; } case 'G': { p++; - goto s_n_llhttp__internal__n_after_start_req_15; + goto s_n_llhttp__internal__n_start_req_15; } case 'H': { p++; - goto s_n_llhttp__internal__n_after_start_req_18; + goto s_n_llhttp__internal__n_start_req_18; } case 'L': { p++; - goto s_n_llhttp__internal__n_after_start_req_19; + goto s_n_llhttp__internal__n_start_req_19; } case 'M': { p++; - goto s_n_llhttp__internal__n_after_start_req_22; + goto s_n_llhttp__internal__n_start_req_22; } case 'N': { p++; - goto s_n_llhttp__internal__n_after_start_req_31; + goto s_n_llhttp__internal__n_start_req_31; } case 'O': { p++; - goto s_n_llhttp__internal__n_after_start_req_32; + goto s_n_llhttp__internal__n_start_req_32; } case 'P': { p++; - goto s_n_llhttp__internal__n_after_start_req_33; - } - case 'Q': { - p++; - goto s_n_llhttp__internal__n_after_start_req_46; + goto s_n_llhttp__internal__n_start_req_33; } case 'R': { p++; - goto s_n_llhttp__internal__n_after_start_req_47; + goto s_n_llhttp__internal__n_start_req_46; } case 'S': { p++; - goto s_n_llhttp__internal__n_after_start_req_53; + goto s_n_llhttp__internal__n_start_req_52; } case 'T': { p++; - goto s_n_llhttp__internal__n_after_start_req_61; + goto s_n_llhttp__internal__n_start_req_60; } case 'U': { p++; - goto s_n_llhttp__internal__n_after_start_req_64; + goto s_n_llhttp__internal__n_start_req_63; } default: { - goto s_n_llhttp__internal__n_error_112; + goto s_n_llhttp__internal__n_error_56; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_span_start_llhttp__on_method_1: - s_n_llhttp__internal__n_span_start_llhttp__on_method_1: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_method_1; + case s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: + s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: { + switch (llhttp__on_status_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_start; } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_method; - goto s_n_llhttp__internal__n_after_start_req; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_res_line_almost_done: s_n_llhttp__internal__n_res_line_almost_done: { @@ -6133,25 +5235,12 @@ static llparse_state_t llhttp__internal__run( p++; goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; } - case 13: { - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; - } default: { - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_29; + goto s_n_llhttp__internal__n_error_49; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_test_lenient_flags_30: - s_n_llhttp__internal__n_invoke_test_lenient_flags_30: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; - default: - goto s_n_llhttp__internal__n_error_98; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_res_status: s_n_llhttp__internal__n_res_status: { @@ -6170,7 +5259,8 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_res_status; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_span_start_llhttp__on_status: s_n_llhttp__internal__n_span_start_llhttp__on_status: { @@ -6180,7 +5270,29 @@ static llparse_state_t llhttp__internal__run( state->_span_pos0 = (void*) p; state->_span_cb0 = llhttp__on_status; goto s_n_llhttp__internal__n_res_status; - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_status_start: + s_n_llhttp__internal__n_res_status_start: { + if (p == endp) { + return s_n_llhttp__internal__n_res_status_start; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_res_line_almost_done; + } + default: { + goto s_n_llhttp__internal__n_span_start_llhttp__on_status; + } + } + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_res_status_code_otherwise: s_n_llhttp__internal__n_res_status_code_otherwise: { @@ -6189,151 +5301,26 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case 10: { - p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_28; + goto s_n_llhttp__internal__n_res_status_start; } case 13: { - p++; - goto s_n_llhttp__internal__n_res_line_almost_done; + goto s_n_llhttp__internal__n_res_status_start; } case ' ': { p++; - goto s_n_llhttp__internal__n_span_start_llhttp__on_status; + goto s_n_llhttp__internal__n_res_status_start; } default: { - goto s_n_llhttp__internal__n_error_99; + goto s_n_llhttp__internal__n_error_50; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_res_status_code_digit_3: - s_n_llhttp__internal__n_res_status_code_digit_3: { + case s_n_llhttp__internal__n_res_status_code: + s_n_llhttp__internal__n_res_status_code: { if (p == endp) { - return s_n_llhttp__internal__n_res_status_code_digit_3; - } - switch (*p) { - case '0': { - p++; - match = 0; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '1': { - p++; - match = 1; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '2': { - p++; - match = 2; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '3': { - p++; - match = 3; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '4': { - p++; - match = 4; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '5': { - p++; - match = 5; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '6': { - p++; - match = 6; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '7': { - p++; - match = 7; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '8': { - p++; - match = 8; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - case '9': { - p++; - match = 9; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_2; - } - default: { - goto s_n_llhttp__internal__n_error_101; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_status_code_digit_2: - s_n_llhttp__internal__n_res_status_code_digit_2: { - if (p == endp) { - return s_n_llhttp__internal__n_res_status_code_digit_2; - } - switch (*p) { - case '0': { - p++; - match = 0; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '1': { - p++; - match = 1; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '2': { - p++; - match = 2; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '3': { - p++; - match = 3; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '4': { - p++; - match = 4; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '5': { - p++; - match = 5; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '6': { - p++; - match = 6; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '7': { - p++; - match = 7; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '8': { - p++; - match = 8; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - case '9': { - p++; - match = 9; - goto s_n_llhttp__internal__n_invoke_mul_add_status_code_1; - } - default: { - goto s_n_llhttp__internal__n_error_103; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_status_code_digit_1: - s_n_llhttp__internal__n_res_status_code_digit_1: { - if (p == endp) { - return s_n_llhttp__internal__n_res_status_code_digit_1; + return s_n_llhttp__internal__n_res_status_code; } switch (*p) { case '0': { @@ -6387,15 +5374,16 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_mul_add_status_code; } default: { - goto s_n_llhttp__internal__n_error_105; + goto s_n_llhttp__internal__n_res_status_code_otherwise; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_res_after_version: - s_n_llhttp__internal__n_res_after_version: { + case s_n_llhttp__internal__n_res_http_end: + s_n_llhttp__internal__n_res_http_end: { if (p == endp) { - return s_n_llhttp__internal__n_res_after_version; + return s_n_llhttp__internal__n_res_http_end; } switch (*p) { case ' ': { @@ -6403,40 +5391,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_update_status_code; } default: { - goto s_n_llhttp__internal__n_error_106; + goto s_n_llhttp__internal__n_error_51; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1: - s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1: { - switch (llhttp__on_version_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_res_after_version; - case 21: - goto s_n_llhttp__internal__n_pause_28; - default: - goto s_n_llhttp__internal__n_error_94; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_93: - s_n_llhttp__internal__n_error_93: { - state->error = 0x9; - state->reason = "Invalid HTTP version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_107: - s_n_llhttp__internal__n_error_107: { - state->error = 0x9; - state->reason = "Invalid minor version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_res_http_minor: s_n_llhttp__internal__n_res_http_minor: { @@ -6495,19 +5454,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_http_minor_1; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_7; + goto s_n_llhttp__internal__n_error_52; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_108: - s_n_llhttp__internal__n_error_108: { - state->error = 0x9; - state->reason = "Expected dot"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_res_http_dot: s_n_llhttp__internal__n_res_http_dot: { @@ -6520,19 +5471,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_res_http_minor; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_8; + goto s_n_llhttp__internal__n_error_53; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_109: - s_n_llhttp__internal__n_error_109: { - state->error = 0x9; - state->reason = "Invalid major version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_res_http_major: s_n_llhttp__internal__n_res_http_major: { @@ -6591,181 +5534,44 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_invoke_store_http_major_1; } default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_9; + goto s_n_llhttp__internal__n_error_54; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - case s_n_llhttp__internal__n_span_start_llhttp__on_version_1: - s_n_llhttp__internal__n_span_start_llhttp__on_version_1: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_version_1; - } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_version; - goto s_n_llhttp__internal__n_res_http_major; - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_after_protocol: - s_n_llhttp__internal__n_res_after_protocol: { - if (p == endp) { - return s_n_llhttp__internal__n_res_after_protocol; - } - switch (*p) { - case '/': { - p++; - goto s_n_llhttp__internal__n_span_start_llhttp__on_version_1; - } - default: { - goto s_n_llhttp__internal__n_error_114; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_3: - s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_3: { - switch (llhttp__on_protocol_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_res_after_protocol; - case 21: - goto s_n_llhttp__internal__n_pause_30; - default: - goto s_n_llhttp__internal__n_error_113; - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_error_115: - s_n_llhttp__internal__n_error_115: { - state->error = 0x8; - state->reason = "Expected HTTP/, RTSP/ or ICE/"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_after_start_1: - s_n_llhttp__internal__n_res_after_start_1: { + case s_n_llhttp__internal__n_start_res: + s_n_llhttp__internal__n_start_res: { llparse_match_t match_seq; - + if (p == endp) { - return s_n_llhttp__internal__n_res_after_start_1; + return s_n_llhttp__internal__n_start_res; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob58, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob58, 5); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_4; + goto s_n_llhttp__internal__n_res_http_major; } case kMatchPause: { - return s_n_llhttp__internal__n_res_after_start_1; + return s_n_llhttp__internal__n_start_res; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_5; + goto s_n_llhttp__internal__n_error_57; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_after_start_2: - s_n_llhttp__internal__n_res_after_start_2: { - llparse_match_t match_seq; - - if (p == endp) { - return s_n_llhttp__internal__n_res_after_start_2; - } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob59, 2); - p = match_seq.current; - switch (match_seq.status) { - case kMatchComplete: { - p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_4; - } - case kMatchPause: { - return s_n_llhttp__internal__n_res_after_start_2; - } - case kMatchMismatch: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_5; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_after_start_3: - s_n_llhttp__internal__n_res_after_start_3: { - llparse_match_t match_seq; - - if (p == endp) { - return s_n_llhttp__internal__n_res_after_start_3; - } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob60, 3); - p = match_seq.current; - switch (match_seq.status) { - case kMatchComplete: { - p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_4; - } - case kMatchPause: { - return s_n_llhttp__internal__n_res_after_start_3; - } - case kMatchMismatch: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_5; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_res_after_start: - s_n_llhttp__internal__n_res_after_start: { - if (p == endp) { - return s_n_llhttp__internal__n_res_after_start; - } - switch (*p) { - case 'H': { - p++; - goto s_n_llhttp__internal__n_res_after_start_1; - } - case 'I': { - p++; - goto s_n_llhttp__internal__n_res_after_start_2; - } - case 'R': { - p++; - goto s_n_llhttp__internal__n_res_after_start_3; - } - default: { - goto s_n_llhttp__internal__n_span_end_llhttp__on_protocol_5; - } - } - UNREACHABLE; - } - case s_n_llhttp__internal__n_span_start_llhttp__on_protocol_1: - s_n_llhttp__internal__n_span_start_llhttp__on_protocol_1: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_protocol_1; - } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_protocol; - goto s_n_llhttp__internal__n_res_after_start; - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_llhttp__on_method_complete: - s_n_llhttp__internal__n_invoke_llhttp__on_method_complete: { - switch (llhttp__on_method_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_req_first_space_before_url; - case 21: - goto s_n_llhttp__internal__n_pause_26; - default: - goto s_n_llhttp__internal__n_error_1; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_or_res_method_2: s_n_llhttp__internal__n_req_or_res_method_2: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_req_or_res_method_2; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob61, 2); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob59, 2); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { @@ -6777,41 +5583,35 @@ static llparse_state_t llhttp__internal__run( return s_n_llhttp__internal__n_req_or_res_method_2; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_110; + goto s_n_llhttp__internal__n_error_55; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_update_type_1: - s_n_llhttp__internal__n_invoke_update_type_1: { - switch (llhttp__internal__c_update_type_1(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_span_start_llhttp__on_version_1; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_or_res_method_3: s_n_llhttp__internal__n_req_or_res_method_3: { llparse_match_t match_seq; - + if (p == endp) { return s_n_llhttp__internal__n_req_or_res_method_3; } - match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob62, 3); + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob60, 3); p = match_seq.current; switch (match_seq.status) { case kMatchComplete: { p++; - goto s_n_llhttp__internal__n_span_end_llhttp__on_method_1; + goto s_n_llhttp__internal__n_invoke_update_type_1; } case kMatchPause: { return s_n_llhttp__internal__n_req_or_res_method_3; } case kMatchMismatch: { - goto s_n_llhttp__internal__n_error_110; + goto s_n_llhttp__internal__n_error_55; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_or_res_method_1: s_n_llhttp__internal__n_req_or_res_method_1: { @@ -6828,10 +5628,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_req_or_res_method_3; } default: { - goto s_n_llhttp__internal__n_error_110; + goto s_n_llhttp__internal__n_error_55; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_req_or_res_method: s_n_llhttp__internal__n_req_or_res_method: { @@ -6844,20 +5645,11 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_req_or_res_method_1; } default: { - goto s_n_llhttp__internal__n_error_110; + goto s_n_llhttp__internal__n_error_55; } } - UNREACHABLE; - } - case s_n_llhttp__internal__n_span_start_llhttp__on_method: - s_n_llhttp__internal__n_span_start_llhttp__on_method: { - if (p == endp) { - return s_n_llhttp__internal__n_span_start_llhttp__on_method; - } - state->_span_pos0 = (void*) p; - state->_span_cb0 = llhttp__on_method; - goto s_n_llhttp__internal__n_req_or_res_method; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_start_req_or_res: s_n_llhttp__internal__n_start_req_or_res: { @@ -6866,33 +5658,27 @@ static llparse_state_t llhttp__internal__run( } switch (*p) { case 'H': { - goto s_n_llhttp__internal__n_span_start_llhttp__on_method; + goto s_n_llhttp__internal__n_req_or_res_method; } default: { goto s_n_llhttp__internal__n_invoke_update_type_2; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_invoke_load_type: s_n_llhttp__internal__n_invoke_load_type: { switch (llhttp__internal__c_load_type(state, p, endp)) { case 1: - goto s_n_llhttp__internal__n_span_start_llhttp__on_method_1; + goto s_n_llhttp__internal__n_start_req; case 2: - goto s_n_llhttp__internal__n_span_start_llhttp__on_protocol_1; + goto s_n_llhttp__internal__n_start_res; default: goto s_n_llhttp__internal__n_start_req_or_res; } - UNREACHABLE; - } - case s_n_llhttp__internal__n_invoke_update_finish: - s_n_llhttp__internal__n_invoke_update_finish: { - switch (llhttp__internal__c_update_finish(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } case s_n_llhttp__internal__n_start: s_n_llhttp__internal__n_start: { @@ -6909,118 +5695,125 @@ static llparse_state_t llhttp__internal__run( goto s_n_llhttp__internal__n_start; } default: { - goto s_n_llhttp__internal__n_invoke_load_initial_message_completed; + goto s_n_llhttp__internal__n_invoke_update_finish; } } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } default: - UNREACHABLE; + /* UNREACHABLE */ + abort(); } - s_n_llhttp__internal__n_error_2: { + s_n_llhttp__internal__n_error_1: { + state->error = 0x7; + state->reason = "Invalid characters in url (strict mode)"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_43: { state->error = 0x7; state->reason = "Invalid characters in url"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_finish_2: { switch (llhttp__internal__c_update_finish_1(state, p, endp)) { default: goto s_n_llhttp__internal__n_start; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_initial_message_completed: { - switch (llhttp__internal__c_update_initial_message_completed(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_finish_2; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_update_content_length: { - switch (llhttp__internal__c_update_content_length(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_initial_message_completed; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_8: { + s_n_llhttp__internal__n_error_4: { state->error = 0x5; state->reason = "Data after `Connection: close`"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_3: { - switch (llhttp__internal__c_test_lenient_flags_3(state, p, endp)) { + s_n_llhttp__internal__n_invoke_test_lenient_flags: { + switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { case 1: - goto s_n_llhttp__internal__n_closed; - default: - goto s_n_llhttp__internal__n_error_8; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_2: { - switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_update_initial_message_completed; + goto s_n_llhttp__internal__n_invoke_update_finish_2; default: goto s_n_llhttp__internal__n_closed; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_finish_1: { switch (llhttp__internal__c_update_finish_1(state, p, endp)) { default: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2; + goto s_n_llhttp__internal__n_invoke_test_lenient_flags; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_13: { + s_n_llhttp__internal__n_pause_5: { state->error = 0x15; state->reason = "on_message_complete pause"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_is_equal_upgrade; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_38: { + s_n_llhttp__internal__n_error_13: { state->error = 0x12; state->reason = "`on_message_complete` callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_15: { + s_n_llhttp__internal__n_pause_7: { state->error = 0x15; state->reason = "on_chunk_complete pause"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_40: { + s_n_llhttp__internal__n_error_16: { state->error = 0x14; state->reason = "`on_chunk_complete` callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1: { switch (llhttp__on_chunk_complete(state, p, endp)) { case 0: goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; case 21: - goto s_n_llhttp__internal__n_pause_15; + goto s_n_llhttp__internal__n_pause_7; default: - goto s_n_llhttp__internal__n_error_40; + goto s_n_llhttp__internal__n_error_16; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_15: { + state->error = 0x4; + state->reason = "Content-Length can't be present with Transfer-Encoding"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_pause_2: { state->error = 0x15; @@ -7028,15 +5821,17 @@ static llparse_state_t llhttp__internal__run( state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_pause_1; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_9: { + s_n_llhttp__internal__n_error_5: { state->error = 0x12; state->reason = "`on_message_complete` callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1: { switch (llhttp__on_message_complete(state, p, endp)) { @@ -7045,100 +5840,63 @@ static llparse_state_t llhttp__internal__run( case 21: goto s_n_llhttp__internal__n_pause_2; default: - goto s_n_llhttp__internal__n_error_9; + goto s_n_llhttp__internal__n_error_5; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_36: { + s_n_llhttp__internal__n_error_11: { state->error = 0xc; state->reason = "Chunk size overflow"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_10: { - state->error = 0xc; - state->reason = "Invalid character in chunk size"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_4: { - switch (llhttp__internal__c_test_lenient_flags_4(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_chunk_size_otherwise; - default: - goto s_n_llhttp__internal__n_error_10; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_pause_3: { state->error = 0x15; state->reason = "on_chunk_complete pause"; state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length_1; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_14: { + s_n_llhttp__internal__n_error_7: { state->error = 0x14; state->reason = "`on_chunk_complete` callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete: { switch (llhttp__on_chunk_complete(state, p, endp)) { case 0: - goto s_n_llhttp__internal__n_invoke_update_content_length_1; + goto s_n_llhttp__internal__n_invoke_update_content_length; case 21: goto s_n_llhttp__internal__n_pause_3; default: - goto s_n_llhttp__internal__n_error_14; + goto s_n_llhttp__internal__n_error_7; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_13: { - state->error = 0x19; - state->reason = "Missing expected CR after chunk data"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_6: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete; - default: - goto s_n_llhttp__internal__n_error_13; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_15: { + s_n_llhttp__internal__n_error_8: { state->error = 0x2; - state->reason = "Expected LF after chunk data"; + state->reason = "Expected CRLF after chunk"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_7: { - switch (llhttp__internal__c_test_lenient_flags_7(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete; - default: - goto s_n_llhttp__internal__n_error_15; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_body: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_body(state, start, p); @@ -7149,14 +5907,16 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_chunk_data_almost_done; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags: { switch (llhttp__internal__c_or_flags(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_field_start; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_pause_4: { state->error = 0x15; @@ -7164,15 +5924,17 @@ static llparse_state_t llhttp__internal__run( state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_is_equal_content_length; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_12: { + s_n_llhttp__internal__n_error_6: { state->error = 0x13; state->reason = "`on_chunk_header` callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header: { switch (llhttp__on_chunk_header(state, p, endp)) { @@ -7181,470 +5943,52 @@ static llparse_state_t llhttp__internal__run( case 21: goto s_n_llhttp__internal__n_pause_4; default: - goto s_n_llhttp__internal__n_error_12; + goto s_n_llhttp__internal__n_error_6; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_16: { + s_n_llhttp__internal__n_error_9: { state->error = 0x2; state->reason = "Expected LF after chunk size"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_8: { - switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header; - default: - goto s_n_llhttp__internal__n_error_16; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_11: { - state->error = 0x19; - state->reason = "Missing expected CR after chunk size"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_5: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_chunk_size_almost_done; - default: - goto s_n_llhttp__internal__n_error_11; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_17: { - state->error = 0x2; - state->reason = "Invalid character in chunk extensions"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_18: { - state->error = 0x2; - state->reason = "Invalid character in chunk extensions"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_20: { - state->error = 0x19; - state->reason = "Missing expected CR after chunk extension name"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_5: { - state->error = 0x15; - state->reason = "on_chunk_extension_name pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_test_lenient_flags_9; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_19: { - state->error = 0x22; - state->reason = "`on_chunk_extension_name` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_name(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_6: { - state->error = 0x15; - state->reason = "on_chunk_extension_name pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_almost_done; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_21: { - state->error = 0x22; - state->reason = "`on_chunk_extension_name` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_1: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_name(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_7: { - state->error = 0x15; - state->reason = "on_chunk_extension_name pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extensions; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_22: { - state->error = 0x22; - state->reason = "`on_chunk_extension_name` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_2: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_name(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_25: { - state->error = 0x19; - state->reason = "Missing expected CR after chunk extension value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_8: { - state->error = 0x15; - state->reason = "on_chunk_extension_value pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_test_lenient_flags_10; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_24: { - state->error = 0x23; - state->reason = "`on_chunk_extension_value` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_9: { - state->error = 0x15; - state->reason = "on_chunk_extension_value pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_almost_done; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_26: { - state->error = 0x23; - state->reason = "`on_chunk_extension_value` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_1: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_28: { - state->error = 0x19; - state->reason = "Missing expected CR after chunk extension value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_11: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_chunk_size_almost_done; - default: - goto s_n_llhttp__internal__n_error_28; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_29: { - state->error = 0x2; - state->reason = "Invalid character in chunk extensions quote value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_10: { - state->error = 0x15; - state->reason = "on_chunk_extension_value pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extension_quoted_value_done; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_27: { - state->error = 0x23; - state->reason = "`on_chunk_extension_value` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_2: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_3: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_30; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_30; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_4: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_31; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_31; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_11: { - state->error = 0x15; - state->reason = "on_chunk_extension_value pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extensions; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_32: { - state->error = 0x23; - state->reason = "`on_chunk_extension_value` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_5: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_3; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_3; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_6: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_33; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_33; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_12: { - state->error = 0x15; - state->reason = "on_chunk_extension_name pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extension_value; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_23: { - state->error = 0x22; - state->reason = "`on_chunk_extension_name` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_3: { - switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_chunk_extension_value; - case 21: - goto s_n_llhttp__internal__n_pause_12; - default: - goto s_n_llhttp__internal__n_error_23; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_3: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_name(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_4: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_chunk_extension_name(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_34; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_34; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_35: { + s_n_llhttp__internal__n_error_10: { state->error = 0xc; state->reason = "Invalid character in chunk size"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_mul_add_content_length: { switch (llhttp__internal__c_mul_add_content_length(state, p, endp, match)) { case 1: - goto s_n_llhttp__internal__n_error_36; + goto s_n_llhttp__internal__n_error_11; default: goto s_n_llhttp__internal__n_chunk_size; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_37: { + s_n_llhttp__internal__n_error_12: { state->error = 0xc; state->reason = "Invalid character in chunk size"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_body_1: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_body(state, start, p); @@ -7655,22 +5999,25 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_finish_3: { switch (llhttp__internal__c_update_finish_3(state, p, endp)) { default: goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_39: { + s_n_llhttp__internal__n_error_14: { state->error = 0xf; state->reason = "Request has invalid `Transfer-Encoding`"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_pause: { state->error = 0x15; @@ -7678,15 +6025,17 @@ static llparse_state_t llhttp__internal__run( state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_message_complete; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_7: { + s_n_llhttp__internal__n_error_3: { state->error = 0x12; state->reason = "`on_message_complete` callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_message_complete: { switch (llhttp__on_message_complete(state, p, endp)) { @@ -7695,46 +6044,52 @@ static llparse_state_t llhttp__internal__run( case 21: goto s_n_llhttp__internal__n_pause; default: - goto s_n_llhttp__internal__n_error_7; + goto s_n_llhttp__internal__n_error_3; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_1: { switch (llhttp__internal__c_or_flags_1(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_2: { switch (llhttp__internal__c_or_flags_1(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_upgrade: { switch (llhttp__internal__c_update_upgrade(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_or_flags_2; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_14: { + s_n_llhttp__internal__n_pause_6: { state->error = 0x15; state->reason = "Paused by on_headers_complete"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_6: { + s_n_llhttp__internal__n_error_2: { state->error = 0x11; state->reason = "User callback error"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete: { switch (llhttp__on_headers_complete(state, p, endp)) { @@ -7745,236 +6100,73 @@ static llparse_state_t llhttp__internal__run( case 2: goto s_n_llhttp__internal__n_invoke_update_upgrade; case 21: - goto s_n_llhttp__internal__n_pause_14; + goto s_n_llhttp__internal__n_pause_6; default: - goto s_n_llhttp__internal__n_error_6; + goto s_n_llhttp__internal__n_error_2; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete: { switch (llhttp__before_headers_complete(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_lenient_flags_1: { + switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_error_15; + default: + goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_flags_1: { + switch (llhttp__internal__c_test_flags_1(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1; + default: + goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete; + } + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_test_flags: { switch (llhttp__internal__c_test_flags(state, p, endp)) { case 1: goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1; default: - goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete; + goto s_n_llhttp__internal__n_invoke_test_flags_1; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_1: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_test_flags; - default: - goto s_n_llhttp__internal__n_error_5; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_17: { - state->error = 0x15; - state->reason = "on_chunk_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_42: { - state->error = 0x14; - state->reason = "`on_chunk_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_2: { - switch (llhttp__on_chunk_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; - case 21: - goto s_n_llhttp__internal__n_pause_17; - default: - goto s_n_llhttp__internal__n_error_42; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_3: { - switch (llhttp__internal__c_or_flags_1(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_4: { - switch (llhttp__internal__c_or_flags_1(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_update_upgrade_1: { - switch (llhttp__internal__c_update_upgrade(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_or_flags_4; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_16: { - state->error = 0x15; - state->reason = "Paused by on_headers_complete"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_41: { - state->error = 0x11; - state->reason = "User callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete_1: { - switch (llhttp__on_headers_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; - case 1: - goto s_n_llhttp__internal__n_invoke_or_flags_3; - case 2: - goto s_n_llhttp__internal__n_invoke_update_upgrade_1; - case 21: - goto s_n_llhttp__internal__n_pause_16; - default: - goto s_n_llhttp__internal__n_error_41; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete_1: { - switch (llhttp__before_headers_complete(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete_1; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_flags_1: { - switch (llhttp__internal__c_test_flags(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_2; - default: - goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete_1; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_43: { + s_n_llhttp__internal__n_error_17: { state->error = 0x2; state->reason = "Expected LF after headers"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_12: { - switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_test_flags_1; - default: - goto s_n_llhttp__internal__n_error_43; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_44: { - state->error = 0xa; - state->reason = "Invalid header token"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_header_field: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_header_field(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_5; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_5; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_13: { - switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_header_field_colon_discard_ws; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_60: { - state->error = 0xb; - state->reason = "Content-Length can't be present with Transfer-Encoding"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_47: { - state->error = 0xa; - state->reason = "Invalid header value char"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_15: { - switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_header_value_discard_ws; - default: - goto s_n_llhttp__internal__n_error_47; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_49: { + s_n_llhttp__internal__n_error_18: { state->error = 0xb; state->reason = "Empty Content-Length"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_18: { - state->error = 0x15; - state->reason = "on_header_value_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_field_start; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_48: { - state->error = 0x1d; - state->reason = "`on_header_value_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_header_value: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_value(state, start, p); @@ -7985,220 +6177,170 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_header_state: { switch (llhttp__internal__c_update_header_state(state, p, endp)) { default: goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_3: { + switch (llhttp__internal__c_or_flags_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_4: { + switch (llhttp__internal__c_or_flags_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state; + } + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_5: { switch (llhttp__internal__c_or_flags_5(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_update_header_state; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_6: { switch (llhttp__internal__c_or_flags_6(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_7: { - switch (llhttp__internal__c_or_flags_7(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_8: { - switch (llhttp__internal__c_or_flags_8(state, p, endp)) { default: goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_header_state_2: { - switch (llhttp__internal__c_load_header_state(state, p, endp)) { - case 5: - goto s_n_llhttp__internal__n_invoke_or_flags_5; - case 6: - goto s_n_llhttp__internal__n_invoke_or_flags_6; - case 7: - goto s_n_llhttp__internal__n_invoke_or_flags_7; - case 8: - goto s_n_llhttp__internal__n_invoke_or_flags_8; - default: - goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_load_header_state_1: { + switch (llhttp__internal__c_load_header_state(state, p, endp)) { + case 5: + goto s_n_llhttp__internal__n_invoke_or_flags_3; + case 6: + goto s_n_llhttp__internal__n_invoke_or_flags_4; + case 7: + goto s_n_llhttp__internal__n_invoke_or_flags_5; + case 8: + goto s_n_llhttp__internal__n_invoke_or_flags_6; + default: + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_header_state: { switch (llhttp__internal__c_load_header_state(state, p, endp)) { case 2: - goto s_n_llhttp__internal__n_error_49; + goto s_n_llhttp__internal__n_error_18; default: - goto s_n_llhttp__internal__n_invoke_load_header_state_2; + goto s_n_llhttp__internal__n_invoke_load_header_state_1; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_46: { - state->error = 0xa; - state->reason = "Invalid header value char"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_14: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_header_value_discard_lws; - default: - goto s_n_llhttp__internal__n_error_46; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_50: { + s_n_llhttp__internal__n_error_19: { state->error = 0x2; state->reason = "Expected LF after CR"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_16: { - switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_header_value_discard_lws; - default: - goto s_n_llhttp__internal__n_error_50; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_header_state_1: { - switch (llhttp__internal__c_update_header_state_1(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_header_state_4: { - switch (llhttp__internal__c_load_header_state(state, p, endp)) { - case 8: - goto s_n_llhttp__internal__n_invoke_update_header_state_1; - default: - goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_52: { - state->error = 0xa; - state->reason = "Unexpected whitespace after header value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_18: { - switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_load_header_state_4; - default: - goto s_n_llhttp__internal__n_error_52; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_update_header_state_2: { switch (llhttp__internal__c_update_header_state(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_7: { + switch (llhttp__internal__c_or_flags_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_8: { + switch (llhttp__internal__c_or_flags_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_1; + } + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_9: { switch (llhttp__internal__c_or_flags_5(state, p, endp)) { default: - goto s_n_llhttp__internal__n_invoke_update_header_state_2; + goto s_n_llhttp__internal__n_invoke_update_header_state_1; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_10: { switch (llhttp__internal__c_or_flags_6(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state_2; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_11: { - switch (llhttp__internal__c_or_flags_7(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state_2; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_12: { - switch (llhttp__internal__c_or_flags_8(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_load_header_state_5: { + s_n_llhttp__internal__n_invoke_load_header_state_3: { switch (llhttp__internal__c_load_header_state(state, p, endp)) { case 5: - goto s_n_llhttp__internal__n_invoke_or_flags_9; + goto s_n_llhttp__internal__n_invoke_or_flags_7; case 6: - goto s_n_llhttp__internal__n_invoke_or_flags_10; + goto s_n_llhttp__internal__n_invoke_or_flags_8; case 7: - goto s_n_llhttp__internal__n_invoke_or_flags_11; + goto s_n_llhttp__internal__n_invoke_or_flags_9; case 8: - goto s_n_llhttp__internal__n_invoke_or_flags_12; + goto s_n_llhttp__internal__n_invoke_or_flags_10; default: goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_53: { + s_n_llhttp__internal__n_error_20: { state->error = 0x3; state->reason = "Missing expected LF after header value"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_51: { - state->error = 0x19; - state->reason = "Missing expected CR after header value"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_value(state, start, p); if (err != 0) { state->error = err; state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_test_lenient_flags_17; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; return s_error; } - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_17; - UNREACHABLE; + goto s_n_llhttp__internal__n_header_value_almost_done; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_value(state, start, p); @@ -8210,409 +6352,283 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_header_value_almost_done; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_header_value_4: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_header_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; - return s_error; - } - goto s_n_llhttp__internal__n_header_value_almost_done; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_header_value_5: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_header_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_header_value_almost_done; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_header_value_3: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_value(state, start, p); if (err != 0) { state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_54; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; return s_error; } - goto s_n_llhttp__internal__n_error_54; - UNREACHABLE; + p++; + goto s_n_llhttp__internal__n_header_value_almost_done; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_19: { - switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { + s_n_llhttp__internal__n_error_21: { + state->error = 0xa; + state->reason = "Invalid header value char"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_lenient_flags_2: { + switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) { case 1: goto s_n_llhttp__internal__n_header_value_lenient; default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_3; + goto s_n_llhttp__internal__n_error_21; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_header_state_4: { + s_n_llhttp__internal__n_invoke_update_header_state_3: { switch (llhttp__internal__c_update_header_state(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_connection; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_11: { + switch (llhttp__internal__c_or_flags_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_3; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_12: { + switch (llhttp__internal__c_or_flags_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_3; + } + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_13: { switch (llhttp__internal__c_or_flags_5(state, p, endp)) { default: - goto s_n_llhttp__internal__n_invoke_update_header_state_4; + goto s_n_llhttp__internal__n_invoke_update_header_state_3; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_or_flags_14: { switch (llhttp__internal__c_or_flags_6(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state_4; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_15: { - switch (llhttp__internal__c_or_flags_7(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state_4; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_16: { - switch (llhttp__internal__c_or_flags_8(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_connection; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_load_header_state_6: { + s_n_llhttp__internal__n_invoke_load_header_state_4: { switch (llhttp__internal__c_load_header_state(state, p, endp)) { case 5: - goto s_n_llhttp__internal__n_invoke_or_flags_13; + goto s_n_llhttp__internal__n_invoke_or_flags_11; case 6: - goto s_n_llhttp__internal__n_invoke_or_flags_14; + goto s_n_llhttp__internal__n_invoke_or_flags_12; case 7: - goto s_n_llhttp__internal__n_invoke_or_flags_15; + goto s_n_llhttp__internal__n_invoke_or_flags_13; case 8: - goto s_n_llhttp__internal__n_invoke_or_flags_16; + goto s_n_llhttp__internal__n_invoke_or_flags_14; default: goto s_n_llhttp__internal__n_header_value_connection; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_header_state_5: { - switch (llhttp__internal__c_update_header_state_1(state, p, endp)) { + s_n_llhttp__internal__n_invoke_update_header_state_4: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_connection_token; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_header_state_3: { - switch (llhttp__internal__c_update_header_state_3(state, p, endp)) { + s_n_llhttp__internal__n_invoke_update_header_state_2: { + switch (llhttp__internal__c_update_header_state_2(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_connection_ws; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_5: { + switch (llhttp__internal__c_update_header_state_5(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection_ws; + } + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_header_state_6: { switch (llhttp__internal__c_update_header_state_6(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_connection_ws; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_header_state_7: { - switch (llhttp__internal__c_update_header_state_7(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_header_value_connection_ws; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_header_value_6: { + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_4: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_value(state, start, p); if (err != 0) { state->error = err; state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_56; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_23; return s_error; } - goto s_n_llhttp__internal__n_error_56; - UNREACHABLE; + goto s_n_llhttp__internal__n_error_23; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_mul_add_content_length_1: { switch (llhttp__internal__c_mul_add_content_length_1(state, p, endp, match)) { case 1: - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_6; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_4; default: goto s_n_llhttp__internal__n_header_value_content_length; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_or_flags_17: { - switch (llhttp__internal__c_or_flags_17(state, p, endp)) { + s_n_llhttp__internal__n_invoke_or_flags_15: { + switch (llhttp__internal__c_or_flags_15(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_otherwise; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_header_value_7: { + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_5: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_value(state, start, p); if (err != 0) { state->error = err; state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_57; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_24; return s_error; } - goto s_n_llhttp__internal__n_error_57; - UNREACHABLE; + goto s_n_llhttp__internal__n_error_24; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_55: { + s_n_llhttp__internal__n_error_22: { state->error = 0x4; state->reason = "Duplicate Content-Length"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_test_flags_2: { switch (llhttp__internal__c_test_flags_2(state, p, endp)) { case 0: goto s_n_llhttp__internal__n_header_value_content_length; default: - goto s_n_llhttp__internal__n_error_55; + goto s_n_llhttp__internal__n_error_22; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_header_value_9: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_header_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_59; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_59; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_update_header_state_8: { - switch (llhttp__internal__c_update_header_state_8(state, p, endp)) { + s_n_llhttp__internal__n_invoke_update_header_state_7: { + switch (llhttp__internal__c_update_header_state_7(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_otherwise; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_header_value_8: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_header_value(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_58; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_error_58; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_20: { - switch (llhttp__internal__c_test_lenient_flags_20(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_8; - default: - goto s_n_llhttp__internal__n_header_value_te_chunked; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_type_1: { - switch (llhttp__internal__c_load_type(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_20; - default: - goto s_n_llhttp__internal__n_header_value_te_chunked; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_update_header_state_9: { - switch (llhttp__internal__c_update_header_state_1(state, p, endp)) { + s_n_llhttp__internal__n_invoke_update_header_state_8: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_and_flags: { switch (llhttp__internal__c_and_flags(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_value_te_chunked; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_or_flags_19: { - switch (llhttp__internal__c_or_flags_18(state, p, endp)) { + s_n_llhttp__internal__n_invoke_or_flags_16: { + switch (llhttp__internal__c_or_flags_16(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_and_flags; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_21: { - switch (llhttp__internal__c_test_lenient_flags_20(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_9; + s_n_llhttp__internal__n_invoke_or_flags_17: { + switch (llhttp__internal__c_or_flags_17(state, p, endp)) { default: - goto s_n_llhttp__internal__n_invoke_or_flags_19; + goto s_n_llhttp__internal__n_invoke_update_header_state_8; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_load_type_2: { - switch (llhttp__internal__c_load_type(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_21; - default: - goto s_n_llhttp__internal__n_invoke_or_flags_19; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_18: { - switch (llhttp__internal__c_or_flags_18(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_and_flags; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_flags_3: { - switch (llhttp__internal__c_test_flags_3(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_load_type_2; - default: - goto s_n_llhttp__internal__n_invoke_or_flags_18; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_or_flags_20: { - switch (llhttp__internal__c_or_flags_20(state, p, endp)) { - default: - goto s_n_llhttp__internal__n_invoke_update_header_state_9; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_header_state_3: { + s_n_llhttp__internal__n_invoke_load_header_state_2: { switch (llhttp__internal__c_load_header_state(state, p, endp)) { case 1: goto s_n_llhttp__internal__n_header_value_connection; case 2: goto s_n_llhttp__internal__n_invoke_test_flags_2; case 3: - goto s_n_llhttp__internal__n_invoke_test_flags_3; + goto s_n_llhttp__internal__n_invoke_or_flags_16; case 4: - goto s_n_llhttp__internal__n_invoke_or_flags_20; + goto s_n_llhttp__internal__n_invoke_or_flags_17; default: goto s_n_llhttp__internal__n_header_value; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_22: { - switch (llhttp__internal__c_test_lenient_flags_22(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_error_60; - default: - goto s_n_llhttp__internal__n_header_value_discard_ws; + s_n_llhttp__internal__n_span_end_llhttp__on_header_field: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_field(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; + return s_error; } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_flags_4: { - switch (llhttp__internal__c_test_flags_4(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_22; - default: - goto s_n_llhttp__internal__n_header_value_discard_ws; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_61: { - state->error = 0xf; - state->reason = "Transfer-Encoding can't be present with Content-Length"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_23: { - switch (llhttp__internal__c_test_lenient_flags_22(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_error_61; - default: - goto s_n_llhttp__internal__n_header_value_discard_ws; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_flags_5: { - switch (llhttp__internal__c_test_flags_2(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_23; - default: - goto s_n_llhttp__internal__n_header_value_discard_ws; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_19: { - state->error = 0x15; - state->reason = "on_header_field_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_header_state; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_45: { - state->error = 0x1c; - state->reason = "`on_header_field_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_header_field(state, start, p); @@ -8624,116 +6640,70 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_header_field_2: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_header_field(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; - return s_error; - } - p++; - goto s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_62: { + s_n_llhttp__internal__n_error_25: { state->error = 0xa; state->reason = "Invalid header token"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_header_state_10: { - switch (llhttp__internal__c_update_header_state_1(state, p, endp)) { + s_n_llhttp__internal__n_invoke_update_header_state_9: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_field_general; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_header_state: { switch (llhttp__internal__c_store_header_state(state, p, endp, match)) { default: goto s_n_llhttp__internal__n_header_field_colon; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_update_header_state_11: { - switch (llhttp__internal__c_update_header_state_1(state, p, endp)) { + s_n_llhttp__internal__n_invoke_update_header_state_10: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { default: goto s_n_llhttp__internal__n_header_field_general; } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_4: { - state->error = 0x1e; - state->reason = "Unexpected space after start line"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags: { - switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_header_field_start; - default: - goto s_n_llhttp__internal__n_error_4; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_20: { - state->error = 0x15; - state->reason = "on_url_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_headers_start; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_3: { - state->error = 0x1a; - state->reason = "`on_url_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_url_complete: { switch (llhttp__on_url_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_headers_start; - case 21: - goto s_n_llhttp__internal__n_pause_20; default: - goto s_n_llhttp__internal__n_error_3; + goto s_n_llhttp__internal__n_header_field_start; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_http_minor: { switch (llhttp__internal__c_update_http_minor(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_llhttp__on_url_complete; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_http_major: { switch (llhttp__internal__c_update_http_major(state, p, endp)) { default: goto s_n_llhttp__internal__n_invoke_update_http_minor; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_3: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -8744,20 +6714,22 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_63: { + s_n_llhttp__internal__n_error_26: { state->error = 0x7; state->reason = "Expected CRLF"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_4: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -8768,402 +6740,261 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_lf_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_72: { + s_n_llhttp__internal__n_error_29: { state->error = 0x17; state->reason = "Pause on PRI/Upgrade"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_73: { + s_n_llhttp__internal__n_error_30: { state->error = 0x9; state->reason = "Expected HTTP/2 Connection Preface"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_70: { - state->error = 0x2; - state->reason = "Expected CRLF after version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_26: { - switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_headers_start; - default: - goto s_n_llhttp__internal__n_error_70; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_69: { + s_n_llhttp__internal__n_error_28: { state->error = 0x9; state->reason = "Expected CRLF after version"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_invoke_test_lenient_flags_25: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_req_http_complete_crlf; + s_n_llhttp__internal__n_invoke_load_method_1: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 34: + goto s_n_llhttp__internal__n_req_pri_upgrade; default: - goto s_n_llhttp__internal__n_error_69; + goto s_n_llhttp__internal__n_req_http_complete; } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_71: { - state->error = 0x9; - state->reason = "Expected CRLF after version"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_21: { - state->error = 0x15; - state->reason = "on_version_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_method_1; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_68: { - state->error = 0x21; - state->reason = "`on_version_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_version_1: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_version_complete; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_version_complete; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_version: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_67; - return s_error; - } - goto s_n_llhttp__internal__n_error_67; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_minor: { - switch (llhttp__internal__c_load_http_minor(state, p, endp)) { - case 9: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_minor_1: { - switch (llhttp__internal__c_load_http_minor(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1; - case 1: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_minor_2: { - switch (llhttp__internal__c_load_http_minor(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_major: { - switch (llhttp__internal__c_load_http_major(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_load_http_minor; - case 1: - goto s_n_llhttp__internal__n_invoke_load_http_minor_1; - case 2: - goto s_n_llhttp__internal__n_invoke_load_http_minor_2; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_24: { - switch (llhttp__internal__c_test_lenient_flags_24(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1; - default: - goto s_n_llhttp__internal__n_invoke_load_http_major; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_http_minor: { switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) { default: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_24; + goto s_n_llhttp__internal__n_invoke_load_method_1; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_version_2: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_74; - return s_error; - } - goto s_n_llhttp__internal__n_error_74; - UNREACHABLE; + s_n_llhttp__internal__n_error_31: { + state->error = 0x9; + state->reason = "Invalid minor version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_version_3: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_75; - return s_error; - } - goto s_n_llhttp__internal__n_error_75; - UNREACHABLE; + s_n_llhttp__internal__n_error_32: { + state->error = 0x9; + state->reason = "Expected dot"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_http_major: { switch (llhttp__internal__c_store_http_major(state, p, endp, match)) { default: goto s_n_llhttp__internal__n_req_http_dot; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_version_4: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_76; - return s_error; - } - goto s_n_llhttp__internal__n_error_76; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_77: { - state->error = 0x8; - state->reason = "Expected HTTP/, RTSP/ or ICE/"; + s_n_llhttp__internal__n_error_33: { + state->error = 0x9; + state->reason = "Invalid major version"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_66: { + s_n_llhttp__internal__n_error_27: { state->error = 0x8; state->reason = "Invalid method for HTTP/x.x request"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_22: { - state->error = 0x15; - state->reason = "on_protocol_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_method; - return s_error; - UNREACHABLE; + s_n_llhttp__internal__n_invoke_load_method: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_req_http_major; + case 1: + goto s_n_llhttp__internal__n_req_http_major; + case 2: + goto s_n_llhttp__internal__n_req_http_major; + case 3: + goto s_n_llhttp__internal__n_req_http_major; + case 4: + goto s_n_llhttp__internal__n_req_http_major; + case 5: + goto s_n_llhttp__internal__n_req_http_major; + case 6: + goto s_n_llhttp__internal__n_req_http_major; + case 7: + goto s_n_llhttp__internal__n_req_http_major; + case 8: + goto s_n_llhttp__internal__n_req_http_major; + case 9: + goto s_n_llhttp__internal__n_req_http_major; + case 10: + goto s_n_llhttp__internal__n_req_http_major; + case 11: + goto s_n_llhttp__internal__n_req_http_major; + case 12: + goto s_n_llhttp__internal__n_req_http_major; + case 13: + goto s_n_llhttp__internal__n_req_http_major; + case 14: + goto s_n_llhttp__internal__n_req_http_major; + case 15: + goto s_n_llhttp__internal__n_req_http_major; + case 16: + goto s_n_llhttp__internal__n_req_http_major; + case 17: + goto s_n_llhttp__internal__n_req_http_major; + case 18: + goto s_n_llhttp__internal__n_req_http_major; + case 19: + goto s_n_llhttp__internal__n_req_http_major; + case 20: + goto s_n_llhttp__internal__n_req_http_major; + case 21: + goto s_n_llhttp__internal__n_req_http_major; + case 22: + goto s_n_llhttp__internal__n_req_http_major; + case 23: + goto s_n_llhttp__internal__n_req_http_major; + case 24: + goto s_n_llhttp__internal__n_req_http_major; + case 25: + goto s_n_llhttp__internal__n_req_http_major; + case 26: + goto s_n_llhttp__internal__n_req_http_major; + case 27: + goto s_n_llhttp__internal__n_req_http_major; + case 28: + goto s_n_llhttp__internal__n_req_http_major; + case 29: + goto s_n_llhttp__internal__n_req_http_major; + case 30: + goto s_n_llhttp__internal__n_req_http_major; + case 31: + goto s_n_llhttp__internal__n_req_http_major; + case 32: + goto s_n_llhttp__internal__n_req_http_major; + case 33: + goto s_n_llhttp__internal__n_req_http_major; + case 34: + goto s_n_llhttp__internal__n_req_http_major; + default: + goto s_n_llhttp__internal__n_error_27; + } + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_65: { - state->error = 0x26; - state->reason = "`on_protocol_complete` callback error"; + s_n_llhttp__internal__n_error_36: { + state->error = 0x8; + state->reason = "Expected HTTP/"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_protocol: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_protocol(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_protocol_3: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_protocol(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_82; - return s_error; - } - goto s_n_llhttp__internal__n_error_82; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_79: { + s_n_llhttp__internal__n_error_34: { state->error = 0x8; state->reason = "Expected SOURCE method for ICE/x.x request"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_23: { - state->error = 0x15; - state->reason = "on_protocol_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_method_2; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_78: { - state->error = 0x26; - state->reason = "`on_protocol_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_protocol_1: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_protocol(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_1; - return s_error; + s_n_llhttp__internal__n_invoke_load_method_2: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 33: + goto s_n_llhttp__internal__n_req_http_major; + default: + goto s_n_llhttp__internal__n_error_34; } - goto s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_1; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_81: { + s_n_llhttp__internal__n_error_35: { state->error = 0x8; state->reason = "Invalid method for RTSP/x.x request"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_24: { - state->error = 0x15; - state->reason = "on_protocol_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_method_3; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_80: { - state->error = 0x26; - state->reason = "`on_protocol_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_protocol_2: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_protocol(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_2; - return s_error; + s_n_llhttp__internal__n_invoke_load_method_3: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_req_http_major; + case 3: + goto s_n_llhttp__internal__n_req_http_major; + case 6: + goto s_n_llhttp__internal__n_req_http_major; + case 35: + goto s_n_llhttp__internal__n_req_http_major; + case 36: + goto s_n_llhttp__internal__n_req_http_major; + case 37: + goto s_n_llhttp__internal__n_req_http_major; + case 38: + goto s_n_llhttp__internal__n_req_http_major; + case 39: + goto s_n_llhttp__internal__n_req_http_major; + case 40: + goto s_n_llhttp__internal__n_req_http_major; + case 41: + goto s_n_llhttp__internal__n_req_http_major; + case 42: + goto s_n_llhttp__internal__n_req_http_major; + case 43: + goto s_n_llhttp__internal__n_req_http_major; + case 44: + goto s_n_llhttp__internal__n_req_http_major; + case 45: + goto s_n_llhttp__internal__n_req_http_major; + default: + goto s_n_llhttp__internal__n_error_35; } - goto s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_2; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_25: { - state->error = 0x15; - state->reason = "on_url_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_http_start; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_64: { - state->error = 0x1a; - state->reason = "`on_url_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1: { switch (llhttp__on_url_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_req_http_start; - case 21: - goto s_n_llhttp__internal__n_pause_25; default: - goto s_n_llhttp__internal__n_error_64; + goto s_n_llhttp__internal__n_req_http_start; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_5: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9174,12 +7005,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_6: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9190,12 +7022,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_7: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9206,12 +7039,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_lf_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_8: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9222,20 +7056,22 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_83: { + s_n_llhttp__internal__n_error_37: { state->error = 0x7; state->reason = "Invalid char in url fragment start"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_9: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9246,12 +7082,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_10: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9262,12 +7099,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_lf_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_11: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9278,28 +7116,31 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_84: { + s_n_llhttp__internal__n_error_38: { state->error = 0x7; state->reason = "Invalid char in url query"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_85: { + s_n_llhttp__internal__n_error_39: { state->error = 0x7; state->reason = "Invalid char in url path"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9310,12 +7151,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_1: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9326,12 +7168,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_lf_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_2: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9342,12 +7185,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_12: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9358,12 +7202,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_13: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9374,12 +7219,13 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_lf_to_http09; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_url_14: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_url(state, start, p); @@ -9390,55 +7236,62 @@ static llparse_state_t llhttp__internal__run( return s_error; } goto s_n_llhttp__internal__n_url_skip_to_http; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_86: { + s_n_llhttp__internal__n_error_40: { state->error = 0x7; state->reason = "Double @ in url"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_87: { + s_n_llhttp__internal__n_error_41: { state->error = 0x7; state->reason = "Unexpected char in url server"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_88: { + s_n_llhttp__internal__n_error_42: { state->error = 0x7; state->reason = "Unexpected char in url server"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_89: { + s_n_llhttp__internal__n_error_44: { state->error = 0x7; state->reason = "Unexpected char in url schema"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_90: { + s_n_llhttp__internal__n_error_45: { state->error = 0x7; state->reason = "Unexpected char in url schema"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_91: { + s_n_llhttp__internal__n_error_46: { state->error = 0x7; state->reason = "Unexpected start char in url"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_is_equal_method: { switch (llhttp__internal__c_is_equal_method(state, p, endp)) { @@ -9447,177 +7300,85 @@ static llparse_state_t llhttp__internal__run( default: goto s_n_llhttp__internal__n_url_entry_connect; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_92: { + s_n_llhttp__internal__n_error_47: { state->error = 0x6; state->reason = "Expected space after method"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_29: { - state->error = 0x15; - state->reason = "on_method_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_first_space_before_url; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_111: { - state->error = 0x20; - state->reason = "`on_method_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_method_2: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_method(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_method_1: { switch (llhttp__internal__c_store_method(state, p, endp, match)) { default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_method_2; + goto s_n_llhttp__internal__n_req_first_space_before_url; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_112: { + s_n_llhttp__internal__n_error_56: { state->error = 0x6; state->reason = "Invalid method encountered"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_104: { + s_n_llhttp__internal__n_error_48: { state->error = 0xd; - state->reason = "Invalid status code"; + state->reason = "Response overflow"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_102: { - state->error = 0xd; - state->reason = "Invalid status code"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_100: { - state->error = 0xd; - state->reason = "Invalid status code"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_27: { - state->error = 0x15; - state->reason = "on_status_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_headers_start; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_96: { - state->error = 0x1b; - state->reason = "`on_status_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: { - switch (llhttp__on_status_complete(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_headers_start; - case 21: - goto s_n_llhttp__internal__n_pause_27; - default: - goto s_n_llhttp__internal__n_error_96; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_95: { - state->error = 0xd; - state->reason = "Invalid response status"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_28: { - switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { + s_n_llhttp__internal__n_invoke_mul_add_status_code: { + switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) { case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + goto s_n_llhttp__internal__n_error_48; default: - goto s_n_llhttp__internal__n_error_95; + goto s_n_llhttp__internal__n_res_status_code; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_97: { + s_n_llhttp__internal__n_error_49: { state->error = 0x2; state->reason = "Expected LF after CR"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_29: { - switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; - default: - goto s_n_llhttp__internal__n_error_97; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_98: { - state->error = 0x19; - state->reason = "Missing expected CR after response line"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_status: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_status(state, start, p); if (err != 0) { state->error = err; state->error_pos = (const char*) (p + 1); - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_test_lenient_flags_30; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; return s_error; } p++; - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_30; - UNREACHABLE; + goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_span_end_llhttp__on_status_1: { const unsigned char* start; int err; - + start = state->_span_pos0; state->_span_pos0 = NULL; err = llhttp__on_status(state, start, p); @@ -9629,383 +7390,136 @@ static llparse_state_t llhttp__internal__run( } p++; goto s_n_llhttp__internal__n_res_line_almost_done; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_99: { + s_n_llhttp__internal__n_error_50: { state->error = 0xd; state->reason = "Invalid response status"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_mul_add_status_code_2: { - switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) { - case 1: - goto s_n_llhttp__internal__n_error_100; - default: - goto s_n_llhttp__internal__n_res_status_code_otherwise; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_101: { - state->error = 0xd; - state->reason = "Invalid status code"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_mul_add_status_code_1: { - switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) { - case 1: - goto s_n_llhttp__internal__n_error_102; - default: - goto s_n_llhttp__internal__n_res_status_code_digit_3; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_103: { - state->error = 0xd; - state->reason = "Invalid status code"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_mul_add_status_code: { - switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) { - case 1: - goto s_n_llhttp__internal__n_error_104; - default: - goto s_n_llhttp__internal__n_res_status_code_digit_2; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_error_105: { - state->error = 0xd; - state->reason = "Invalid status code"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_status_code: { switch (llhttp__internal__c_update_status_code(state, p, endp)) { default: - goto s_n_llhttp__internal__n_res_status_code_digit_1; + goto s_n_llhttp__internal__n_res_status_code; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_106: { + s_n_llhttp__internal__n_error_51: { state->error = 0x9; state->reason = "Expected space after version"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_28: { - state->error = 0x15; - state->reason = "on_version_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_res_after_version; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_94: { - state->error = 0x21; - state->reason = "`on_version_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_version_6: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_version_5: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_93; - return s_error; - } - goto s_n_llhttp__internal__n_error_93; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_minor_3: { - switch (llhttp__internal__c_load_http_minor(state, p, endp)) { - case 9: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_minor_4: { - switch (llhttp__internal__c_load_http_minor(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6; - case 1: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_minor_5: { - switch (llhttp__internal__c_load_http_minor(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_http_major_1: { - switch (llhttp__internal__c_load_http_major(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_load_http_minor_3; - case 1: - goto s_n_llhttp__internal__n_invoke_load_http_minor_4; - case 2: - goto s_n_llhttp__internal__n_invoke_load_http_minor_5; - default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5; - } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_test_lenient_flags_27: { - switch (llhttp__internal__c_test_lenient_flags_24(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6; - default: - goto s_n_llhttp__internal__n_invoke_load_http_major_1; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_http_minor_1: { switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) { default: - goto s_n_llhttp__internal__n_invoke_test_lenient_flags_27; + goto s_n_llhttp__internal__n_res_http_end; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_version_7: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_107; - return s_error; - } - goto s_n_llhttp__internal__n_error_107; - UNREACHABLE; + s_n_llhttp__internal__n_error_52: { + state->error = 0x9; + state->reason = "Invalid minor version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_version_8: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_108; - return s_error; - } - goto s_n_llhttp__internal__n_error_108; - UNREACHABLE; + s_n_llhttp__internal__n_error_53: { + state->error = 0x9; + state->reason = "Expected dot"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_http_major_1: { switch (llhttp__internal__c_store_http_major(state, p, endp, match)) { default: goto s_n_llhttp__internal__n_res_http_dot; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_version_9: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_version(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_109; - return s_error; - } - goto s_n_llhttp__internal__n_error_109; - UNREACHABLE; + s_n_llhttp__internal__n_error_54: { + state->error = 0x9; + state->reason = "Invalid major version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_114: { + s_n_llhttp__internal__n_error_57: { state->error = 0x8; - state->reason = "Expected HTTP/, RTSP/ or ICE/"; + state->reason = "Expected HTTP/"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_30: { - state->error = 0x15; - state->reason = "on_protocol_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_res_after_protocol; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_113: { - state->error = 0x26; - state->reason = "`on_protocol_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_protocol_4: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_protocol(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_3; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_protocol_complete_3; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_protocol_5: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_protocol(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_115; - return s_error; - } - goto s_n_llhttp__internal__n_error_115; - UNREACHABLE; - } - s_n_llhttp__internal__n_pause_26: { - state->error = 0x15; - state->reason = "on_method_complete pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_first_space_before_url; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_1: { - state->error = 0x20; - state->reason = "`on_method_complete` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_span_end_llhttp__on_method: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_method(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_method_complete; - return s_error; - } - goto s_n_llhttp__internal__n_invoke_llhttp__on_method_complete; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_type: { switch (llhttp__internal__c_update_type(state, p, endp)) { default: - goto s_n_llhttp__internal__n_span_end_llhttp__on_method; + goto s_n_llhttp__internal__n_req_first_space_before_url; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_store_method: { switch (llhttp__internal__c_store_method(state, p, endp, match)) { default: goto s_n_llhttp__internal__n_invoke_update_type; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_error_110: { + s_n_llhttp__internal__n_error_55: { state->error = 0x8; state->reason = "Invalid word encountered"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_span_end_llhttp__on_method_1: { - const unsigned char* start; - int err; - - start = state->_span_pos0; - state->_span_pos0 = NULL; - err = llhttp__on_method(state, start, p); - if (err != 0) { - state->error = err; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_type_1; - return s_error; + s_n_llhttp__internal__n_invoke_update_type_1: { + switch (llhttp__internal__c_update_type_1(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_res_http_major; } - goto s_n_llhttp__internal__n_invoke_update_type_1; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_update_type_2: { switch (llhttp__internal__c_update_type(state, p, endp)) { default: - goto s_n_llhttp__internal__n_span_start_llhttp__on_method_1; + goto s_n_llhttp__internal__n_start_req; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_31: { + s_n_llhttp__internal__n_pause_8: { state->error = 0x15; state->reason = "on_message_begin pause"; state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_type; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_error: { state->error = 0x10; @@ -10013,54 +7527,28 @@ static llparse_state_t llhttp__internal__run( state->error_pos = (const char*) p; state->_current = (void*) (intptr_t) s_error; return s_error; - UNREACHABLE; + /* UNREACHABLE */; + abort(); } s_n_llhttp__internal__n_invoke_llhttp__on_message_begin: { switch (llhttp__on_message_begin(state, p, endp)) { case 0: goto s_n_llhttp__internal__n_invoke_load_type; case 21: - goto s_n_llhttp__internal__n_pause_31; + goto s_n_llhttp__internal__n_pause_8; default: goto s_n_llhttp__internal__n_error; } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } - s_n_llhttp__internal__n_pause_32: { - state->error = 0x15; - state->reason = "on_reset pause"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_finish; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_error_116: { - state->error = 0x1f; - state->reason = "`on_reset` callback error"; - state->error_pos = (const char*) p; - state->_current = (void*) (intptr_t) s_error; - return s_error; - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_llhttp__on_reset: { - switch (llhttp__on_reset(state, p, endp)) { - case 0: - goto s_n_llhttp__internal__n_invoke_update_finish; - case 21: - goto s_n_llhttp__internal__n_pause_32; + s_n_llhttp__internal__n_invoke_update_finish: { + switch (llhttp__internal__c_update_finish(state, p, endp)) { default: - goto s_n_llhttp__internal__n_error_116; + goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin; } - UNREACHABLE; - } - s_n_llhttp__internal__n_invoke_load_initial_message_completed: { - switch (llhttp__internal__c_load_initial_message_completed(state, p, endp)) { - case 1: - goto s_n_llhttp__internal__n_invoke_llhttp__on_reset; - default: - goto s_n_llhttp__internal__n_invoke_update_finish; - } - UNREACHABLE; + /* UNREACHABLE */; + abort(); } } @@ -10076,7 +7564,7 @@ int llhttp__internal_execute(llhttp__internal_t* state, const char* p, const cha if (state->_span_pos0 != NULL) { state->_span_pos0 = (void*) p; } - + next = llhttp__internal__run(state, (const unsigned char*) p, (const unsigned char*) endp); if (next == s_error) { return state->error; @@ -10086,7 +7574,7 @@ int llhttp__internal_execute(llhttp__internal_t* state, const char* p, const cha /* execute spans */ if (state->_span_pos0 != NULL) { int error; - + error = ((llhttp__internal__span_cb) state->_span_cb0)(state, state->_span_pos0, (const char*) endp); if (error != 0) { state->error = error; @@ -10094,6 +7582,7345 @@ int llhttp__internal_execute(llhttp__internal_t* state, const char* p, const cha return error; } } - + return 0; -} \ No newline at end of file +} + +#else /* !LLHTTP_STRICT_MODE */ + +#include +#include +#include + +#ifdef __SSE4_2__ + #ifdef _MSC_VER + #include + #else /* !_MSC_VER */ + #include + #endif /* _MSC_VER */ +#endif /* __SSE4_2__ */ + +#ifdef _MSC_VER + #define ALIGN(n) _declspec(align(n)) +#else /* !_MSC_VER */ + #define ALIGN(n) __attribute__((aligned(n))) +#endif /* _MSC_VER */ + +#include "llhttp.h" + +typedef int (*llhttp__internal__span_cb)( + llhttp__internal_t*, const char*, const char*); + +#ifdef __SSE4_2__ +static const unsigned char ALIGN(16) llparse_blob0[] = { + 0x9, 0x9, 0xc, 0xc, '!', '"', '$', '>', '@', '~', 0x80, + 0xff, 0x0, 0x0, 0x0, 0x0 +}; +#endif /* __SSE4_2__ */ +static const unsigned char llparse_blob1[] = { + 'o', 'n' +}; +static const unsigned char llparse_blob2[] = { + 'e', 'c', 't', 'i', 'o', 'n' +}; +static const unsigned char llparse_blob3[] = { + 'l', 'o', 's', 'e' +}; +static const unsigned char llparse_blob4[] = { + 'e', 'e', 'p', '-', 'a', 'l', 'i', 'v', 'e' +}; +static const unsigned char llparse_blob5[] = { + 'p', 'g', 'r', 'a', 'd', 'e' +}; +static const unsigned char llparse_blob6[] = { + 'c', 'h', 'u', 'n', 'k', 'e', 'd' +}; +#ifdef __SSE4_2__ +static const unsigned char ALIGN(16) llparse_blob7[] = { + 0x9, 0x9, ' ', '~', 0x80, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0 +}; +#endif /* __SSE4_2__ */ +#ifdef __SSE4_2__ +static const unsigned char ALIGN(16) llparse_blob8[] = { + ' ', '!', '#', '\'', '*', '+', '-', '.', '0', '9', 'A', + 'Z', '^', 'z', '|', '|' +}; +#endif /* __SSE4_2__ */ +#ifdef __SSE4_2__ +static const unsigned char ALIGN(16) llparse_blob9[] = { + '~', '~', 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0 +}; +#endif /* __SSE4_2__ */ +static const unsigned char llparse_blob10[] = { + 'e', 'n', 't', '-', 'l', 'e', 'n', 'g', 't', 'h' +}; +static const unsigned char llparse_blob11[] = { + 'r', 'o', 'x', 'y', '-', 'c', 'o', 'n', 'n', 'e', 'c', + 't', 'i', 'o', 'n' +}; +static const unsigned char llparse_blob12[] = { + 'r', 'a', 'n', 's', 'f', 'e', 'r', '-', 'e', 'n', 'c', + 'o', 'd', 'i', 'n', 'g' +}; +static const unsigned char llparse_blob13[] = { + 'p', 'g', 'r', 'a', 'd', 'e' +}; +static const unsigned char llparse_blob14[] = { + 0xd, 0xa +}; +static const unsigned char llparse_blob15[] = { + 'T', 'T', 'P', '/' +}; +static const unsigned char llparse_blob16[] = { + 0xd, 0xa, 0xd, 0xa, 'S', 'M', 0xd, 0xa, 0xd, 0xa +}; +static const unsigned char llparse_blob17[] = { + 'C', 'E', '/' +}; +static const unsigned char llparse_blob18[] = { + 'T', 'S', 'P', '/' +}; +static const unsigned char llparse_blob19[] = { + 'N', 'O', 'U', 'N', 'C', 'E' +}; +static const unsigned char llparse_blob20[] = { + 'I', 'N', 'D' +}; +static const unsigned char llparse_blob21[] = { + 'E', 'C', 'K', 'O', 'U', 'T' +}; +static const unsigned char llparse_blob22[] = { + 'N', 'E', 'C', 'T' +}; +static const unsigned char llparse_blob23[] = { + 'E', 'T', 'E' +}; +static const unsigned char llparse_blob24[] = { + 'C', 'R', 'I', 'B', 'E' +}; +static const unsigned char llparse_blob25[] = { + 'L', 'U', 'S', 'H' +}; +static const unsigned char llparse_blob26[] = { + 'E', 'T' +}; +static const unsigned char llparse_blob27[] = { + 'P', 'A', 'R', 'A', 'M', 'E', 'T', 'E', 'R' +}; +static const unsigned char llparse_blob28[] = { + 'E', 'A', 'D' +}; +static const unsigned char llparse_blob29[] = { + 'N', 'K' +}; +static const unsigned char llparse_blob30[] = { + 'C', 'K' +}; +static const unsigned char llparse_blob31[] = { + 'S', 'E', 'A', 'R', 'C', 'H' +}; +static const unsigned char llparse_blob32[] = { + 'R', 'G', 'E' +}; +static const unsigned char llparse_blob33[] = { + 'C', 'T', 'I', 'V', 'I', 'T', 'Y' +}; +static const unsigned char llparse_blob34[] = { + 'L', 'E', 'N', 'D', 'A', 'R' +}; +static const unsigned char llparse_blob35[] = { + 'V', 'E' +}; +static const unsigned char llparse_blob36[] = { + 'O', 'T', 'I', 'F', 'Y' +}; +static const unsigned char llparse_blob37[] = { + 'P', 'T', 'I', 'O', 'N', 'S' +}; +static const unsigned char llparse_blob38[] = { + 'C', 'H' +}; +static const unsigned char llparse_blob39[] = { + 'S', 'E' +}; +static const unsigned char llparse_blob40[] = { + 'A', 'Y' +}; +static const unsigned char llparse_blob41[] = { + 'S', 'T' +}; +static const unsigned char llparse_blob42[] = { + 'I', 'N', 'D' +}; +static const unsigned char llparse_blob43[] = { + 'A', 'T', 'C', 'H' +}; +static const unsigned char llparse_blob44[] = { + 'G', 'E' +}; +static const unsigned char llparse_blob45[] = { + 'I', 'N', 'D' +}; +static const unsigned char llparse_blob46[] = { + 'O', 'R', 'D' +}; +static const unsigned char llparse_blob47[] = { + 'I', 'R', 'E', 'C', 'T' +}; +static const unsigned char llparse_blob48[] = { + 'O', 'R', 'T' +}; +static const unsigned char llparse_blob49[] = { + 'R', 'C', 'H' +}; +static const unsigned char llparse_blob50[] = { + 'P', 'A', 'R', 'A', 'M', 'E', 'T', 'E', 'R' +}; +static const unsigned char llparse_blob51[] = { + 'U', 'R', 'C', 'E' +}; +static const unsigned char llparse_blob52[] = { + 'B', 'S', 'C', 'R', 'I', 'B', 'E' +}; +static const unsigned char llparse_blob53[] = { + 'A', 'R', 'D', 'O', 'W', 'N' +}; +static const unsigned char llparse_blob54[] = { + 'A', 'C', 'E' +}; +static const unsigned char llparse_blob55[] = { + 'I', 'N', 'D' +}; +static const unsigned char llparse_blob56[] = { + 'N', 'K' +}; +static const unsigned char llparse_blob57[] = { + 'C', 'K' +}; +static const unsigned char llparse_blob58[] = { + 'U', 'B', 'S', 'C', 'R', 'I', 'B', 'E' +}; +static const unsigned char llparse_blob59[] = { + 'H', 'T', 'T', 'P', '/' +}; +static const unsigned char llparse_blob60[] = { + 'A', 'D' +}; +static const unsigned char llparse_blob61[] = { + 'T', 'P', '/' +}; + +enum llparse_match_status_e { + kMatchComplete, + kMatchPause, + kMatchMismatch +}; +typedef enum llparse_match_status_e llparse_match_status_t; + +struct llparse_match_s { + llparse_match_status_t status; + const unsigned char* current; +}; +typedef struct llparse_match_s llparse_match_t; + +static llparse_match_t llparse__match_sequence_to_lower( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp, + const unsigned char* seq, uint32_t seq_len) { + uint32_t index; + llparse_match_t res; + + index = s->_index; + for (; p != endp; p++) { + unsigned char current; + + current = ((*p) >= 'A' && (*p) <= 'Z' ? (*p | 0x20) : (*p)); + if (current == seq[index]) { + if (++index == seq_len) { + res.status = kMatchComplete; + goto reset; + } + } else { + res.status = kMatchMismatch; + goto reset; + } + } + s->_index = index; + res.status = kMatchPause; + res.current = p; + return res; +reset: + s->_index = 0; + res.current = p; + return res; +} + +static llparse_match_t llparse__match_sequence_to_lower_unsafe( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp, + const unsigned char* seq, uint32_t seq_len) { + uint32_t index; + llparse_match_t res; + + index = s->_index; + for (; p != endp; p++) { + unsigned char current; + + current = ((*p) | 0x20); + if (current == seq[index]) { + if (++index == seq_len) { + res.status = kMatchComplete; + goto reset; + } + } else { + res.status = kMatchMismatch; + goto reset; + } + } + s->_index = index; + res.status = kMatchPause; + res.current = p; + return res; +reset: + s->_index = 0; + res.current = p; + return res; +} + +static llparse_match_t llparse__match_sequence_id( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp, + const unsigned char* seq, uint32_t seq_len) { + uint32_t index; + llparse_match_t res; + + index = s->_index; + for (; p != endp; p++) { + unsigned char current; + + current = *p; + if (current == seq[index]) { + if (++index == seq_len) { + res.status = kMatchComplete; + goto reset; + } + } else { + res.status = kMatchMismatch; + goto reset; + } + } + s->_index = index; + res.status = kMatchPause; + res.current = p; + return res; +reset: + s->_index = 0; + res.current = p; + return res; +} + +enum llparse_state_e { + s_error, + s_n_llhttp__internal__n_closed, + s_n_llhttp__internal__n_invoke_llhttp__after_message_complete, + s_n_llhttp__internal__n_pause_1, + s_n_llhttp__internal__n_invoke_is_equal_upgrade, + s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2, + s_n_llhttp__internal__n_chunk_data_almost_done_skip, + s_n_llhttp__internal__n_chunk_data_almost_done, + s_n_llhttp__internal__n_consume_content_length, + s_n_llhttp__internal__n_span_start_llhttp__on_body, + s_n_llhttp__internal__n_invoke_is_equal_content_length, + s_n_llhttp__internal__n_chunk_size_almost_done, + s_n_llhttp__internal__n_chunk_parameters, + s_n_llhttp__internal__n_chunk_size_otherwise, + s_n_llhttp__internal__n_chunk_size, + s_n_llhttp__internal__n_chunk_size_digit, + s_n_llhttp__internal__n_invoke_update_content_length, + s_n_llhttp__internal__n_consume_content_length_1, + s_n_llhttp__internal__n_span_start_llhttp__on_body_1, + s_n_llhttp__internal__n_eof, + s_n_llhttp__internal__n_span_start_llhttp__on_body_2, + s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete, + s_n_llhttp__internal__n_headers_almost_done, + s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete, + s_n_llhttp__internal__n_span_start_llhttp__on_header_value, + s_n_llhttp__internal__n_header_value_discard_lws, + s_n_llhttp__internal__n_header_value_discard_ws_almost_done, + s_n_llhttp__internal__n_header_value_lws, + s_n_llhttp__internal__n_header_value_almost_done, + s_n_llhttp__internal__n_header_value_lenient, + s_n_llhttp__internal__n_header_value_otherwise, + s_n_llhttp__internal__n_header_value_connection_token, + s_n_llhttp__internal__n_header_value_connection_ws, + s_n_llhttp__internal__n_header_value_connection_1, + s_n_llhttp__internal__n_header_value_connection_2, + s_n_llhttp__internal__n_header_value_connection_3, + s_n_llhttp__internal__n_header_value_connection, + s_n_llhttp__internal__n_error_17, + s_n_llhttp__internal__n_error_18, + s_n_llhttp__internal__n_header_value_content_length_ws, + s_n_llhttp__internal__n_header_value_content_length, + s_n_llhttp__internal__n_header_value_te_chunked_last, + s_n_llhttp__internal__n_header_value_te_token_ows, + s_n_llhttp__internal__n_header_value, + s_n_llhttp__internal__n_header_value_te_token, + s_n_llhttp__internal__n_header_value_te_chunked, + s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1, + s_n_llhttp__internal__n_header_value_discard_ws, + s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete, + s_n_llhttp__internal__n_header_field_general_otherwise, + s_n_llhttp__internal__n_header_field_general, + s_n_llhttp__internal__n_header_field_colon, + s_n_llhttp__internal__n_header_field_3, + s_n_llhttp__internal__n_header_field_4, + s_n_llhttp__internal__n_header_field_2, + s_n_llhttp__internal__n_header_field_1, + s_n_llhttp__internal__n_header_field_5, + s_n_llhttp__internal__n_header_field_6, + s_n_llhttp__internal__n_header_field_7, + s_n_llhttp__internal__n_header_field, + s_n_llhttp__internal__n_span_start_llhttp__on_header_field, + s_n_llhttp__internal__n_header_field_start, + s_n_llhttp__internal__n_url_skip_to_http09, + s_n_llhttp__internal__n_url_skip_lf_to_http09, + s_n_llhttp__internal__n_req_pri_upgrade, + s_n_llhttp__internal__n_req_http_complete_1, + s_n_llhttp__internal__n_req_http_complete, + s_n_llhttp__internal__n_req_http_minor, + s_n_llhttp__internal__n_req_http_dot, + s_n_llhttp__internal__n_req_http_major, + s_n_llhttp__internal__n_req_http_start_1, + s_n_llhttp__internal__n_req_http_start_2, + s_n_llhttp__internal__n_req_http_start_3, + s_n_llhttp__internal__n_req_http_start, + s_n_llhttp__internal__n_url_skip_to_http, + s_n_llhttp__internal__n_url_fragment, + s_n_llhttp__internal__n_span_end_stub_query_3, + s_n_llhttp__internal__n_url_query, + s_n_llhttp__internal__n_url_query_or_fragment, + s_n_llhttp__internal__n_url_path, + s_n_llhttp__internal__n_span_start_stub_path_2, + s_n_llhttp__internal__n_span_start_stub_path, + s_n_llhttp__internal__n_span_start_stub_path_1, + s_n_llhttp__internal__n_url_server_with_at, + s_n_llhttp__internal__n_url_server, + s_n_llhttp__internal__n_url_schema_delim_1, + s_n_llhttp__internal__n_url_schema_delim, + s_n_llhttp__internal__n_span_end_stub_schema, + s_n_llhttp__internal__n_url_schema, + s_n_llhttp__internal__n_url_start, + s_n_llhttp__internal__n_span_start_llhttp__on_url_1, + s_n_llhttp__internal__n_span_start_llhttp__on_url, + s_n_llhttp__internal__n_req_spaces_before_url, + s_n_llhttp__internal__n_req_first_space_before_url, + s_n_llhttp__internal__n_start_req_2, + s_n_llhttp__internal__n_start_req_3, + s_n_llhttp__internal__n_start_req_1, + s_n_llhttp__internal__n_start_req_4, + s_n_llhttp__internal__n_start_req_6, + s_n_llhttp__internal__n_start_req_8, + s_n_llhttp__internal__n_start_req_9, + s_n_llhttp__internal__n_start_req_7, + s_n_llhttp__internal__n_start_req_5, + s_n_llhttp__internal__n_start_req_12, + s_n_llhttp__internal__n_start_req_13, + s_n_llhttp__internal__n_start_req_11, + s_n_llhttp__internal__n_start_req_10, + s_n_llhttp__internal__n_start_req_14, + s_n_llhttp__internal__n_start_req_17, + s_n_llhttp__internal__n_start_req_16, + s_n_llhttp__internal__n_start_req_15, + s_n_llhttp__internal__n_start_req_18, + s_n_llhttp__internal__n_start_req_20, + s_n_llhttp__internal__n_start_req_21, + s_n_llhttp__internal__n_start_req_19, + s_n_llhttp__internal__n_start_req_23, + s_n_llhttp__internal__n_start_req_24, + s_n_llhttp__internal__n_start_req_26, + s_n_llhttp__internal__n_start_req_28, + s_n_llhttp__internal__n_start_req_29, + s_n_llhttp__internal__n_start_req_27, + s_n_llhttp__internal__n_start_req_25, + s_n_llhttp__internal__n_start_req_30, + s_n_llhttp__internal__n_start_req_22, + s_n_llhttp__internal__n_start_req_31, + s_n_llhttp__internal__n_start_req_32, + s_n_llhttp__internal__n_start_req_35, + s_n_llhttp__internal__n_start_req_36, + s_n_llhttp__internal__n_start_req_34, + s_n_llhttp__internal__n_start_req_37, + s_n_llhttp__internal__n_start_req_38, + s_n_llhttp__internal__n_start_req_42, + s_n_llhttp__internal__n_start_req_43, + s_n_llhttp__internal__n_start_req_41, + s_n_llhttp__internal__n_start_req_40, + s_n_llhttp__internal__n_start_req_39, + s_n_llhttp__internal__n_start_req_45, + s_n_llhttp__internal__n_start_req_44, + s_n_llhttp__internal__n_start_req_33, + s_n_llhttp__internal__n_start_req_48, + s_n_llhttp__internal__n_start_req_49, + s_n_llhttp__internal__n_start_req_50, + s_n_llhttp__internal__n_start_req_51, + s_n_llhttp__internal__n_start_req_47, + s_n_llhttp__internal__n_start_req_46, + s_n_llhttp__internal__n_start_req_54, + s_n_llhttp__internal__n_start_req_56, + s_n_llhttp__internal__n_start_req_57, + s_n_llhttp__internal__n_start_req_55, + s_n_llhttp__internal__n_start_req_53, + s_n_llhttp__internal__n_start_req_58, + s_n_llhttp__internal__n_start_req_59, + s_n_llhttp__internal__n_start_req_52, + s_n_llhttp__internal__n_start_req_61, + s_n_llhttp__internal__n_start_req_62, + s_n_llhttp__internal__n_start_req_60, + s_n_llhttp__internal__n_start_req_65, + s_n_llhttp__internal__n_start_req_67, + s_n_llhttp__internal__n_start_req_68, + s_n_llhttp__internal__n_start_req_66, + s_n_llhttp__internal__n_start_req_69, + s_n_llhttp__internal__n_start_req_64, + s_n_llhttp__internal__n_start_req_63, + s_n_llhttp__internal__n_start_req, + s_n_llhttp__internal__n_invoke_llhttp__on_status_complete, + s_n_llhttp__internal__n_res_line_almost_done, + s_n_llhttp__internal__n_res_status, + s_n_llhttp__internal__n_span_start_llhttp__on_status, + s_n_llhttp__internal__n_res_status_start, + s_n_llhttp__internal__n_res_status_code_otherwise, + s_n_llhttp__internal__n_res_status_code, + s_n_llhttp__internal__n_res_http_end, + s_n_llhttp__internal__n_res_http_minor, + s_n_llhttp__internal__n_res_http_dot, + s_n_llhttp__internal__n_res_http_major, + s_n_llhttp__internal__n_start_res, + s_n_llhttp__internal__n_req_or_res_method_2, + s_n_llhttp__internal__n_req_or_res_method_3, + s_n_llhttp__internal__n_req_or_res_method_1, + s_n_llhttp__internal__n_req_or_res_method, + s_n_llhttp__internal__n_start_req_or_res, + s_n_llhttp__internal__n_invoke_load_type, + s_n_llhttp__internal__n_start, +}; +typedef enum llparse_state_e llparse_state_t; + +int llhttp__on_url( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__on_header_field( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__on_header_value( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__on_body( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__on_status( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_update_finish( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->finish = 2; + return 0; +} + +int llhttp__on_message_begin( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_load_type( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return state->type; +} + +int llhttp__internal__c_store_method( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + state->method = match; + return 0; +} + +int llhttp__internal__c_is_equal_method( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return state->method == 5; +} + +int llhttp__internal__c_update_http_major( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->http_major = 0; + return 0; +} + +int llhttp__internal__c_update_http_minor( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->http_minor = 9; + return 0; +} + +int llhttp__on_url_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_test_flags( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->flags & 128) == 128; +} + +int llhttp__on_chunk_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__on_message_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_is_equal_upgrade( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return state->upgrade == 1; +} + +int llhttp__after_message_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_update_finish_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->finish = 0; + return 0; +} + +int llhttp__internal__c_test_lenient_flags( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->lenient_flags & 4) == 4; +} + +int llhttp__internal__c_test_flags_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->flags & 544) == 544; +} + +int llhttp__internal__c_test_lenient_flags_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->lenient_flags & 2) == 2; +} + +int llhttp__before_headers_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__on_headers_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__after_headers_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_update_content_length( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->content_length = 0; + return 0; +} + +int llhttp__internal__c_mul_add_content_length( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + /* Multiplication overflow */ + if (state->content_length > 0xffffffffffffffffULL / 16) { + return 1; + } + + state->content_length *= 16; + + /* Addition overflow */ + if (match >= 0) { + if (state->content_length > 0xffffffffffffffffULL - match) { + return 1; + } + } else { + if (state->content_length < 0ULL - match) { + return 1; + } + } + state->content_length += match; + return 0; +} + +int llhttp__on_chunk_header( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_is_equal_content_length( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return state->content_length == 0; +} + +int llhttp__internal__c_or_flags( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 128; + return 0; +} + +int llhttp__internal__c_update_finish_3( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->finish = 1; + return 0; +} + +int llhttp__internal__c_or_flags_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 64; + return 0; +} + +int llhttp__internal__c_update_upgrade( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->upgrade = 1; + return 0; +} + +int llhttp__internal__c_store_header_state( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + state->header_state = match; + return 0; +} + +int llhttp__on_header_field_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_load_header_state( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return state->header_state; +} + +int llhttp__internal__c_or_flags_3( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 1; + return 0; +} + +int llhttp__internal__c_update_header_state( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->header_state = 1; + return 0; +} + +int llhttp__on_header_value_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_or_flags_4( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 2; + return 0; +} + +int llhttp__internal__c_or_flags_5( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 4; + return 0; +} + +int llhttp__internal__c_or_flags_6( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 8; + return 0; +} + +int llhttp__internal__c_update_header_state_2( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->header_state = 6; + return 0; +} + +int llhttp__internal__c_test_lenient_flags_2( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->lenient_flags & 1) == 1; +} + +int llhttp__internal__c_update_header_state_4( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->header_state = 0; + return 0; +} + +int llhttp__internal__c_update_header_state_5( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->header_state = 5; + return 0; +} + +int llhttp__internal__c_update_header_state_6( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->header_state = 7; + return 0; +} + +int llhttp__internal__c_test_flags_2( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return (state->flags & 32) == 32; +} + +int llhttp__internal__c_mul_add_content_length_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + /* Multiplication overflow */ + if (state->content_length > 0xffffffffffffffffULL / 10) { + return 1; + } + + state->content_length *= 10; + + /* Addition overflow */ + if (match >= 0) { + if (state->content_length > 0xffffffffffffffffULL - match) { + return 1; + } + } else { + if (state->content_length < 0ULL - match) { + return 1; + } + } + state->content_length += match; + return 0; +} + +int llhttp__internal__c_or_flags_15( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 32; + return 0; +} + +int llhttp__internal__c_or_flags_16( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 512; + return 0; +} + +int llhttp__internal__c_and_flags( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags &= -9; + return 0; +} + +int llhttp__internal__c_update_header_state_7( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->header_state = 8; + return 0; +} + +int llhttp__internal__c_or_flags_17( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->flags |= 16; + return 0; +} + +int llhttp__internal__c_load_method( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + return state->method; +} + +int llhttp__internal__c_store_http_major( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + state->http_major = match; + return 0; +} + +int llhttp__internal__c_store_http_minor( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + state->http_minor = match; + return 0; +} + +int llhttp__internal__c_update_status_code( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->status_code = 0; + return 0; +} + +int llhttp__internal__c_mul_add_status_code( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp, + int match) { + /* Multiplication overflow */ + if (state->status_code > 0xffff / 10) { + return 1; + } + + state->status_code *= 10; + + /* Addition overflow */ + if (match >= 0) { + if (state->status_code > 0xffff - match) { + return 1; + } + } else { + if (state->status_code < 0 - match) { + return 1; + } + } + state->status_code += match; + + /* Enforce maximum */ + if (state->status_code > 999) { + return 1; + } + return 0; +} + +int llhttp__on_status_complete( + llhttp__internal_t* s, const unsigned char* p, + const unsigned char* endp); + +int llhttp__internal__c_update_type( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->type = 1; + return 0; +} + +int llhttp__internal__c_update_type_1( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + state->type = 2; + return 0; +} + +int llhttp__internal_init(llhttp__internal_t* state) { + memset(state, 0, sizeof(*state)); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_start; + return 0; +} + +static llparse_state_t llhttp__internal__run( + llhttp__internal_t* state, + const unsigned char* p, + const unsigned char* endp) { + int match; + switch ((llparse_state_t) (intptr_t) state->_current) { + case s_n_llhttp__internal__n_closed: + s_n_llhttp__internal__n_closed: { + if (p == endp) { + return s_n_llhttp__internal__n_closed; + } + p++; + goto s_n_llhttp__internal__n_closed; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: + s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: { + switch (llhttp__after_message_complete(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_invoke_update_finish_2; + default: + goto s_n_llhttp__internal__n_invoke_update_finish_1; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_pause_1: + s_n_llhttp__internal__n_pause_1: { + state->error = 0x16; + state->reason = "Pause on CONNECT/Upgrade"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_message_complete; + return s_error; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_is_equal_upgrade: + s_n_llhttp__internal__n_invoke_is_equal_upgrade: { + switch (llhttp__internal__c_is_equal_upgrade(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_llhttp__after_message_complete; + default: + goto s_n_llhttp__internal__n_pause_1; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2: + s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2: { + switch (llhttp__on_message_complete(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_is_equal_upgrade; + case 21: + goto s_n_llhttp__internal__n_pause_5; + default: + goto s_n_llhttp__internal__n_error_9; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_data_almost_done_skip: + s_n_llhttp__internal__n_chunk_data_almost_done_skip: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_data_almost_done_skip; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_data_almost_done: + s_n_llhttp__internal__n_chunk_data_almost_done: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_data_almost_done; + } + p++; + goto s_n_llhttp__internal__n_chunk_data_almost_done_skip; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_consume_content_length: + s_n_llhttp__internal__n_consume_content_length: { + size_t avail; + size_t need; + + avail = endp - p; + need = state->content_length; + if (avail >= need) { + p += need; + state->content_length = 0; + goto s_n_llhttp__internal__n_span_end_llhttp__on_body; + } + + state->content_length -= avail; + return s_n_llhttp__internal__n_consume_content_length; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_body: + s_n_llhttp__internal__n_span_start_llhttp__on_body: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_body; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_body; + goto s_n_llhttp__internal__n_consume_content_length; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_is_equal_content_length: + s_n_llhttp__internal__n_invoke_is_equal_content_length: { + switch (llhttp__internal__c_is_equal_content_length(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_span_start_llhttp__on_body; + default: + goto s_n_llhttp__internal__n_invoke_or_flags; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_size_almost_done: + s_n_llhttp__internal__n_chunk_size_almost_done: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_size_almost_done; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_parameters: + s_n_llhttp__internal__n_chunk_parameters: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_parameters; + } + switch (*p) { + case 13: { + p++; + goto s_n_llhttp__internal__n_chunk_size_almost_done; + } + default: { + p++; + goto s_n_llhttp__internal__n_chunk_parameters; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_size_otherwise: + s_n_llhttp__internal__n_chunk_size_otherwise: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_size_otherwise; + } + switch (*p) { + case 13: { + p++; + goto s_n_llhttp__internal__n_chunk_size_almost_done; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_chunk_parameters; + } + case ';': { + p++; + goto s_n_llhttp__internal__n_chunk_parameters; + } + default: { + goto s_n_llhttp__internal__n_error_6; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_size: + s_n_llhttp__internal__n_chunk_size: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_size; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'A': { + p++; + match = 10; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'B': { + p++; + match = 11; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'C': { + p++; + match = 12; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'D': { + p++; + match = 13; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'E': { + p++; + match = 14; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'F': { + p++; + match = 15; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'a': { + p++; + match = 10; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'b': { + p++; + match = 11; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'c': { + p++; + match = 12; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'd': { + p++; + match = 13; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'e': { + p++; + match = 14; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'f': { + p++; + match = 15; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + default: { + goto s_n_llhttp__internal__n_chunk_size_otherwise; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_chunk_size_digit: + s_n_llhttp__internal__n_chunk_size_digit: { + if (p == endp) { + return s_n_llhttp__internal__n_chunk_size_digit; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'A': { + p++; + match = 10; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'B': { + p++; + match = 11; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'C': { + p++; + match = 12; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'D': { + p++; + match = 13; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'E': { + p++; + match = 14; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'F': { + p++; + match = 15; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'a': { + p++; + match = 10; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'b': { + p++; + match = 11; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'c': { + p++; + match = 12; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'd': { + p++; + match = 13; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'e': { + p++; + match = 14; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + case 'f': { + p++; + match = 15; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length; + } + default: { + goto s_n_llhttp__internal__n_error_8; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_update_content_length: + s_n_llhttp__internal__n_invoke_update_content_length: { + switch (llhttp__internal__c_update_content_length(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_chunk_size_digit; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_consume_content_length_1: + s_n_llhttp__internal__n_consume_content_length_1: { + size_t avail; + size_t need; + + avail = endp - p; + need = state->content_length; + if (avail >= need) { + p += need; + state->content_length = 0; + goto s_n_llhttp__internal__n_span_end_llhttp__on_body_1; + } + + state->content_length -= avail; + return s_n_llhttp__internal__n_consume_content_length_1; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_body_1: + s_n_llhttp__internal__n_span_start_llhttp__on_body_1: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_body_1; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_body; + goto s_n_llhttp__internal__n_consume_content_length_1; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_eof: + s_n_llhttp__internal__n_eof: { + if (p == endp) { + return s_n_llhttp__internal__n_eof; + } + p++; + goto s_n_llhttp__internal__n_eof; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_body_2: + s_n_llhttp__internal__n_span_start_llhttp__on_body_2: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_body_2; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_body; + goto s_n_llhttp__internal__n_eof; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete: + s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete: { + switch (llhttp__after_headers_complete(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1; + case 2: + goto s_n_llhttp__internal__n_invoke_update_content_length; + case 3: + goto s_n_llhttp__internal__n_span_start_llhttp__on_body_1; + case 4: + goto s_n_llhttp__internal__n_invoke_update_finish_3; + case 5: + goto s_n_llhttp__internal__n_error_10; + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_headers_almost_done: + s_n_llhttp__internal__n_headers_almost_done: { + if (p == endp) { + return s_n_llhttp__internal__n_headers_almost_done; + } + p++; + goto s_n_llhttp__internal__n_invoke_test_flags; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete: + s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete: { + switch (llhttp__on_header_value_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_start; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_header_value: + s_n_llhttp__internal__n_span_start_llhttp__on_header_value: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_header_value; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_header_value; + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_discard_lws: + s_n_llhttp__internal__n_header_value_discard_lws: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_discard_lws; + } + switch (*p) { + case 9: { + p++; + goto s_n_llhttp__internal__n_header_value_discard_ws; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_discard_ws; + } + default: { + goto s_n_llhttp__internal__n_invoke_load_header_state; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_discard_ws_almost_done: + s_n_llhttp__internal__n_header_value_discard_ws_almost_done: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_discard_ws_almost_done; + } + p++; + goto s_n_llhttp__internal__n_header_value_discard_lws; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_lws: + s_n_llhttp__internal__n_header_value_lws: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_lws; + } + switch (*p) { + case 9: { + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; + } + case ' ': { + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; + } + default: { + goto s_n_llhttp__internal__n_invoke_load_header_state_3; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_almost_done: + s_n_llhttp__internal__n_header_value_almost_done: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_almost_done; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_header_value_lws; + } + default: { + goto s_n_llhttp__internal__n_error_14; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_lenient: + s_n_llhttp__internal__n_header_value_lenient: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_lenient; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1; + } + case 13: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_3; + } + default: { + p++; + goto s_n_llhttp__internal__n_header_value_lenient; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_otherwise: + s_n_llhttp__internal__n_header_value_otherwise: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_otherwise; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1; + } + case 13: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2; + } + default: { + goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_connection_token: + s_n_llhttp__internal__n_header_value_connection_token: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + }; + if (p == endp) { + return s_n_llhttp__internal__n_header_value_connection_token; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_header_value_connection_token; + } + case 2: { + p++; + goto s_n_llhttp__internal__n_header_value_connection; + } + default: { + goto s_n_llhttp__internal__n_header_value_otherwise; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_connection_ws: + s_n_llhttp__internal__n_header_value_connection_ws: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_connection_ws; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_header_value_otherwise; + } + case 13: { + goto s_n_llhttp__internal__n_header_value_otherwise; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_connection_ws; + } + case ',': { + p++; + goto s_n_llhttp__internal__n_invoke_load_header_state_4; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_header_state_4; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_connection_1: + s_n_llhttp__internal__n_header_value_connection_1: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_value_connection_1; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob3, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_update_header_state_2; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_value_connection_1; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_header_value_connection_token; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_connection_2: + s_n_llhttp__internal__n_header_value_connection_2: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_value_connection_2; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob4, 9); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_update_header_state_5; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_value_connection_2; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_header_value_connection_token; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_connection_3: + s_n_llhttp__internal__n_header_value_connection_3: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_value_connection_3; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob5, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_update_header_state_6; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_value_connection_3; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_header_value_connection_token; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_connection: + s_n_llhttp__internal__n_header_value_connection: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_connection; + } + switch (((*p) >= 'A' && (*p) <= 'Z' ? (*p | 0x20) : (*p))) { + case 9: { + p++; + goto s_n_llhttp__internal__n_header_value_connection; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_connection; + } + case 'c': { + p++; + goto s_n_llhttp__internal__n_header_value_connection_1; + } + case 'k': { + p++; + goto s_n_llhttp__internal__n_header_value_connection_2; + } + case 'u': { + p++; + goto s_n_llhttp__internal__n_header_value_connection_3; + } + default: { + goto s_n_llhttp__internal__n_header_value_connection_token; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_error_17: + s_n_llhttp__internal__n_error_17: { + state->error = 0xb; + state->reason = "Content-Length overflow"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_error_18: + s_n_llhttp__internal__n_error_18: { + state->error = 0xb; + state->reason = "Invalid character in Content-Length"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_content_length_ws: + s_n_llhttp__internal__n_header_value_content_length_ws: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_content_length_ws; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_invoke_or_flags_15; + } + case 13: { + goto s_n_llhttp__internal__n_invoke_or_flags_15; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_content_length_ws; + } + default: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_5; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_content_length: + s_n_llhttp__internal__n_header_value_content_length: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_content_length; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_mul_add_content_length_1; + } + default: { + goto s_n_llhttp__internal__n_header_value_content_length_ws; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_te_chunked_last: + s_n_llhttp__internal__n_header_value_te_chunked_last: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_te_chunked_last; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_invoke_update_header_state_7; + } + case 13: { + goto s_n_llhttp__internal__n_invoke_update_header_state_7; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_te_chunked_last; + } + default: { + goto s_n_llhttp__internal__n_header_value_te_chunked; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_te_token_ows: + s_n_llhttp__internal__n_header_value_te_token_ows: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_te_token_ows; + } + switch (*p) { + case 9: { + p++; + goto s_n_llhttp__internal__n_header_value_te_token_ows; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_te_token_ows; + } + default: { + goto s_n_llhttp__internal__n_header_value_te_chunked; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value: + s_n_llhttp__internal__n_header_value: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + }; + if (p == endp) { + return s_n_llhttp__internal__n_header_value; + } + #ifdef __SSE4_2__ + if (endp - p >= 16) { + __m128i ranges; + __m128i input; + int avail; + int match_len; + + /* Load input */ + input = _mm_loadu_si128((__m128i const*) p); + ranges = _mm_loadu_si128((__m128i const*) llparse_blob7); + + /* Find first character that does not match `ranges` */ + match_len = _mm_cmpestri(ranges, 6, + input, 16, + _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | + _SIDD_NEGATIVE_POLARITY); + + if (match_len != 0) { + p += match_len; + goto s_n_llhttp__internal__n_header_value; + } + goto s_n_llhttp__internal__n_header_value_otherwise; + } + #endif /* __SSE4_2__ */ + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_header_value; + } + default: { + goto s_n_llhttp__internal__n_header_value_otherwise; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_te_token: + s_n_llhttp__internal__n_header_value_te_token: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + }; + if (p == endp) { + return s_n_llhttp__internal__n_header_value_te_token; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_header_value_te_token; + } + case 2: { + p++; + goto s_n_llhttp__internal__n_header_value_te_token_ows; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_header_state_8; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_te_chunked: + s_n_llhttp__internal__n_header_value_te_chunked: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_value_te_chunked; + } + match_seq = llparse__match_sequence_to_lower_unsafe(state, p, endp, llparse_blob6, 7); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_header_value_te_chunked_last; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_value_te_chunked; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_header_value_te_token; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1: + s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_header_value; + goto s_n_llhttp__internal__n_invoke_load_header_state_2; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_value_discard_ws: + s_n_llhttp__internal__n_header_value_discard_ws: { + if (p == endp) { + return s_n_llhttp__internal__n_header_value_discard_ws; + } + switch (*p) { + case 9: { + p++; + goto s_n_llhttp__internal__n_header_value_discard_ws; + } + case 10: { + p++; + goto s_n_llhttp__internal__n_header_value_discard_lws; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_header_value_discard_ws_almost_done; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_value_discard_ws; + } + default: { + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete: + s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete: { + switch (llhttp__on_header_field_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_discard_ws; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_general_otherwise: + s_n_llhttp__internal__n_header_field_general_otherwise: { + if (p == endp) { + return s_n_llhttp__internal__n_header_field_general_otherwise; + } + switch (*p) { + case ':': { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1; + } + default: { + goto s_n_llhttp__internal__n_error_19; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_general: + s_n_llhttp__internal__n_header_field_general: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, + 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + }; + if (p == endp) { + return s_n_llhttp__internal__n_header_field_general; + } + #ifdef __SSE4_2__ + if (endp - p >= 16) { + __m128i ranges; + __m128i input; + int avail; + int match_len; + + /* Load input */ + input = _mm_loadu_si128((__m128i const*) p); + ranges = _mm_loadu_si128((__m128i const*) llparse_blob8); + + /* Find first character that does not match `ranges` */ + match_len = _mm_cmpestri(ranges, 16, + input, 16, + _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | + _SIDD_NEGATIVE_POLARITY); + + if (match_len != 0) { + p += match_len; + goto s_n_llhttp__internal__n_header_field_general; + } + ranges = _mm_loadu_si128((__m128i const*) llparse_blob9); + + /* Find first character that does not match `ranges` */ + match_len = _mm_cmpestri(ranges, 2, + input, 16, + _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | + _SIDD_NEGATIVE_POLARITY); + + if (match_len != 0) { + p += match_len; + goto s_n_llhttp__internal__n_header_field_general; + } + goto s_n_llhttp__internal__n_header_field_general_otherwise; + } + #endif /* __SSE4_2__ */ + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_header_field_general; + } + default: { + goto s_n_llhttp__internal__n_header_field_general_otherwise; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_colon: + s_n_llhttp__internal__n_header_field_colon: { + if (p == endp) { + return s_n_llhttp__internal__n_header_field_colon; + } + switch (*p) { + case ' ': { + p++; + goto s_n_llhttp__internal__n_header_field_colon; + } + case ':': { + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_header_state_9; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_3: + s_n_llhttp__internal__n_header_field_3: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_field_3; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob2, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_store_header_state; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_field_3; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_4: + s_n_llhttp__internal__n_header_field_4: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_field_4; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob10, 10); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_header_state; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_field_4; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_2: + s_n_llhttp__internal__n_header_field_2: { + if (p == endp) { + return s_n_llhttp__internal__n_header_field_2; + } + switch (((*p) >= 'A' && (*p) <= 'Z' ? (*p | 0x20) : (*p))) { + case 'n': { + p++; + goto s_n_llhttp__internal__n_header_field_3; + } + case 't': { + p++; + goto s_n_llhttp__internal__n_header_field_4; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_1: + s_n_llhttp__internal__n_header_field_1: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_field_1; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob1, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_header_field_2; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_field_1; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_5: + s_n_llhttp__internal__n_header_field_5: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_field_5; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob11, 15); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_store_header_state; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_field_5; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_6: + s_n_llhttp__internal__n_header_field_6: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_field_6; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob12, 16); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_store_header_state; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_field_6; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_7: + s_n_llhttp__internal__n_header_field_7: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_header_field_7; + } + match_seq = llparse__match_sequence_to_lower(state, p, endp, llparse_blob13, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_store_header_state; + } + case kMatchPause: { + return s_n_llhttp__internal__n_header_field_7; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field: + s_n_llhttp__internal__n_header_field: { + if (p == endp) { + return s_n_llhttp__internal__n_header_field; + } + switch (((*p) >= 'A' && (*p) <= 'Z' ? (*p | 0x20) : (*p))) { + case 'c': { + p++; + goto s_n_llhttp__internal__n_header_field_1; + } + case 'p': { + p++; + goto s_n_llhttp__internal__n_header_field_5; + } + case 't': { + p++; + goto s_n_llhttp__internal__n_header_field_6; + } + case 'u': { + p++; + goto s_n_llhttp__internal__n_header_field_7; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_header_state_10; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_header_field: + s_n_llhttp__internal__n_span_start_llhttp__on_header_field: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_header_field; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_header_field; + goto s_n_llhttp__internal__n_header_field; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_header_field_start: + s_n_llhttp__internal__n_header_field_start: { + if (p == endp) { + return s_n_llhttp__internal__n_header_field_start; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_headers_almost_done; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_headers_almost_done; + } + default: { + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_field; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_skip_to_http09: + s_n_llhttp__internal__n_url_skip_to_http09: { + if (p == endp) { + return s_n_llhttp__internal__n_url_skip_to_http09; + } + p++; + goto s_n_llhttp__internal__n_invoke_update_http_major; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_skip_lf_to_http09: + s_n_llhttp__internal__n_url_skip_lf_to_http09: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_url_skip_lf_to_http09; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob14, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_update_http_major; + } + case kMatchPause: { + return s_n_llhttp__internal__n_url_skip_lf_to_http09; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_20; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_pri_upgrade: + s_n_llhttp__internal__n_req_pri_upgrade: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_req_pri_upgrade; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob16, 10); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_error_23; + } + case kMatchPause: { + return s_n_llhttp__internal__n_req_pri_upgrade; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_24; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_complete_1: + s_n_llhttp__internal__n_req_http_complete_1: { + if (p == endp) { + return s_n_llhttp__internal__n_req_http_complete_1; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_header_field_start; + } + default: { + goto s_n_llhttp__internal__n_error_22; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_complete: + s_n_llhttp__internal__n_req_http_complete: { + if (p == endp) { + return s_n_llhttp__internal__n_req_http_complete; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_header_field_start; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_req_http_complete_1; + } + default: { + goto s_n_llhttp__internal__n_error_22; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_minor: + s_n_llhttp__internal__n_req_http_minor: { + if (p == endp) { + return s_n_llhttp__internal__n_req_http_minor; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_store_http_minor; + } + default: { + goto s_n_llhttp__internal__n_error_25; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_dot: + s_n_llhttp__internal__n_req_http_dot: { + if (p == endp) { + return s_n_llhttp__internal__n_req_http_dot; + } + switch (*p) { + case '.': { + p++; + goto s_n_llhttp__internal__n_req_http_minor; + } + default: { + goto s_n_llhttp__internal__n_error_26; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_major: + s_n_llhttp__internal__n_req_http_major: { + if (p == endp) { + return s_n_llhttp__internal__n_req_http_major; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_store_http_major; + } + default: { + goto s_n_llhttp__internal__n_error_27; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_start_1: + s_n_llhttp__internal__n_req_http_start_1: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_req_http_start_1; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob15, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_load_method; + } + case kMatchPause: { + return s_n_llhttp__internal__n_req_http_start_1; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_30; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_start_2: + s_n_llhttp__internal__n_req_http_start_2: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_req_http_start_2; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob17, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_load_method_2; + } + case kMatchPause: { + return s_n_llhttp__internal__n_req_http_start_2; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_30; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_start_3: + s_n_llhttp__internal__n_req_http_start_3: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_req_http_start_3; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob18, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_load_method_3; + } + case kMatchPause: { + return s_n_llhttp__internal__n_req_http_start_3; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_30; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_http_start: + s_n_llhttp__internal__n_req_http_start: { + if (p == endp) { + return s_n_llhttp__internal__n_req_http_start; + } + switch (*p) { + case ' ': { + p++; + goto s_n_llhttp__internal__n_req_http_start; + } + case 'H': { + p++; + goto s_n_llhttp__internal__n_req_http_start_1; + } + case 'I': { + p++; + goto s_n_llhttp__internal__n_req_http_start_2; + } + case 'R': { + p++; + goto s_n_llhttp__internal__n_req_http_start_3; + } + default: { + goto s_n_llhttp__internal__n_error_30; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_skip_to_http: + s_n_llhttp__internal__n_url_skip_to_http: { + if (p == endp) { + return s_n_llhttp__internal__n_url_skip_to_http; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_fragment: + s_n_llhttp__internal__n_url_fragment: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 3, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_fragment; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_url_fragment; + } + case 2: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_6; + } + case 3: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_7; + } + case 4: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_8; + } + default: { + goto s_n_llhttp__internal__n_error_31; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_end_stub_query_3: + s_n_llhttp__internal__n_span_end_stub_query_3: { + if (p == endp) { + return s_n_llhttp__internal__n_span_end_stub_query_3; + } + p++; + goto s_n_llhttp__internal__n_url_fragment; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_query: + s_n_llhttp__internal__n_url_query: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 3, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 4, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_query; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_url_query; + } + case 2: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_9; + } + case 3: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_10; + } + case 4: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_11; + } + case 5: { + goto s_n_llhttp__internal__n_span_end_stub_query_3; + } + default: { + goto s_n_llhttp__internal__n_error_32; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_query_or_fragment: + s_n_llhttp__internal__n_url_query_or_fragment: { + if (p == endp) { + return s_n_llhttp__internal__n_url_query_or_fragment; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_3; + } + case 13: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_4; + } + case ' ': { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_5; + } + case '#': { + p++; + goto s_n_llhttp__internal__n_url_fragment; + } + case '?': { + p++; + goto s_n_llhttp__internal__n_url_query; + } + default: { + goto s_n_llhttp__internal__n_error_33; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_path: + s_n_llhttp__internal__n_url_path: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_path; + } + #ifdef __SSE4_2__ + if (endp - p >= 16) { + __m128i ranges; + __m128i input; + int avail; + int match_len; + + /* Load input */ + input = _mm_loadu_si128((__m128i const*) p); + ranges = _mm_loadu_si128((__m128i const*) llparse_blob0); + + /* Find first character that does not match `ranges` */ + match_len = _mm_cmpestri(ranges, 12, + input, 16, + _SIDD_UBYTE_OPS | _SIDD_CMP_RANGES | + _SIDD_NEGATIVE_POLARITY); + + if (match_len != 0) { + p += match_len; + goto s_n_llhttp__internal__n_url_path; + } + goto s_n_llhttp__internal__n_url_query_or_fragment; + } + #endif /* __SSE4_2__ */ + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_url_path; + } + default: { + goto s_n_llhttp__internal__n_url_query_or_fragment; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_stub_path_2: + s_n_llhttp__internal__n_span_start_stub_path_2: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_stub_path_2; + } + p++; + goto s_n_llhttp__internal__n_url_path; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_stub_path: + s_n_llhttp__internal__n_span_start_stub_path: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_stub_path; + } + p++; + goto s_n_llhttp__internal__n_url_path; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_stub_path_1: + s_n_llhttp__internal__n_span_start_stub_path_1: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_stub_path_1; + } + p++; + goto s_n_llhttp__internal__n_url_path; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_server_with_at: + s_n_llhttp__internal__n_url_server_with_at: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 3, 4, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 0, 6, + 7, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 0, 4, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 4, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_server_with_at; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_12; + } + case 2: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_13; + } + case 3: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_14; + } + case 4: { + p++; + goto s_n_llhttp__internal__n_url_server; + } + case 5: { + goto s_n_llhttp__internal__n_span_start_stub_path_1; + } + case 6: { + p++; + goto s_n_llhttp__internal__n_url_query; + } + case 7: { + p++; + goto s_n_llhttp__internal__n_error_34; + } + default: { + goto s_n_llhttp__internal__n_error_35; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_server: + s_n_llhttp__internal__n_url_server: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 3, 4, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 0, 6, + 7, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 0, 4, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 4, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_server; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url; + } + case 2: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_1; + } + case 3: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_url_2; + } + case 4: { + p++; + goto s_n_llhttp__internal__n_url_server; + } + case 5: { + goto s_n_llhttp__internal__n_span_start_stub_path; + } + case 6: { + p++; + goto s_n_llhttp__internal__n_url_query; + } + case 7: { + p++; + goto s_n_llhttp__internal__n_url_server_with_at; + } + default: { + goto s_n_llhttp__internal__n_error_36; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_schema_delim_1: + s_n_llhttp__internal__n_url_schema_delim_1: { + if (p == endp) { + return s_n_llhttp__internal__n_url_schema_delim_1; + } + switch (*p) { + case '/': { + p++; + goto s_n_llhttp__internal__n_url_server; + } + default: { + goto s_n_llhttp__internal__n_error_38; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_schema_delim: + s_n_llhttp__internal__n_url_schema_delim: { + if (p == endp) { + return s_n_llhttp__internal__n_url_schema_delim; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_error_37; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_error_37; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_error_37; + } + case '/': { + p++; + goto s_n_llhttp__internal__n_url_schema_delim_1; + } + default: { + goto s_n_llhttp__internal__n_error_38; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_end_stub_schema: + s_n_llhttp__internal__n_span_end_stub_schema: { + if (p == endp) { + return s_n_llhttp__internal__n_span_end_stub_schema; + } + p++; + goto s_n_llhttp__internal__n_url_schema_delim; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_schema: + s_n_llhttp__internal__n_url_schema: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, + 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, + 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_schema; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_error_37; + } + case 2: { + goto s_n_llhttp__internal__n_span_end_stub_schema; + } + case 3: { + p++; + goto s_n_llhttp__internal__n_url_schema; + } + default: { + goto s_n_llhttp__internal__n_error_39; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_url_start: + s_n_llhttp__internal__n_url_start: { + static uint8_t lookup_table[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, + 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + }; + if (p == endp) { + return s_n_llhttp__internal__n_url_start; + } + switch (lookup_table[(uint8_t) *p]) { + case 1: { + p++; + goto s_n_llhttp__internal__n_error_37; + } + case 2: { + goto s_n_llhttp__internal__n_span_start_stub_path_2; + } + case 3: { + goto s_n_llhttp__internal__n_url_schema; + } + default: { + goto s_n_llhttp__internal__n_error_40; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_url_1: + s_n_llhttp__internal__n_span_start_llhttp__on_url_1: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_url_1; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_url; + goto s_n_llhttp__internal__n_url_start; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_url: + s_n_llhttp__internal__n_span_start_llhttp__on_url: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_url; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_url; + goto s_n_llhttp__internal__n_url_server; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_spaces_before_url: + s_n_llhttp__internal__n_req_spaces_before_url: { + if (p == endp) { + return s_n_llhttp__internal__n_req_spaces_before_url; + } + switch (*p) { + case ' ': { + p++; + goto s_n_llhttp__internal__n_req_spaces_before_url; + } + default: { + goto s_n_llhttp__internal__n_invoke_is_equal_method; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_first_space_before_url: + s_n_llhttp__internal__n_req_first_space_before_url: { + if (p == endp) { + return s_n_llhttp__internal__n_req_first_space_before_url; + } + switch (*p) { + case ' ': { + p++; + goto s_n_llhttp__internal__n_req_spaces_before_url; + } + default: { + goto s_n_llhttp__internal__n_error_41; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_2: + s_n_llhttp__internal__n_start_req_2: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_2; + } + switch (*p) { + case 'L': { + p++; + match = 19; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_3: + s_n_llhttp__internal__n_start_req_3: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_3; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob19, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 36; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_3; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_1: + s_n_llhttp__internal__n_start_req_1: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_1; + } + switch (*p) { + case 'C': { + p++; + goto s_n_llhttp__internal__n_start_req_2; + } + case 'N': { + p++; + goto s_n_llhttp__internal__n_start_req_3; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_4: + s_n_llhttp__internal__n_start_req_4: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_4; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob20, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 16; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_4; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_6: + s_n_llhttp__internal__n_start_req_6: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_6; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob21, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 22; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_6; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_8: + s_n_llhttp__internal__n_start_req_8: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_8; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob22, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_8; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_9: + s_n_llhttp__internal__n_start_req_9: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_9; + } + switch (*p) { + case 'Y': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_7: + s_n_llhttp__internal__n_start_req_7: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_7; + } + switch (*p) { + case 'N': { + p++; + goto s_n_llhttp__internal__n_start_req_8; + } + case 'P': { + p++; + goto s_n_llhttp__internal__n_start_req_9; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_5: + s_n_llhttp__internal__n_start_req_5: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_5; + } + switch (*p) { + case 'H': { + p++; + goto s_n_llhttp__internal__n_start_req_6; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_7; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_12: + s_n_llhttp__internal__n_start_req_12: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_12; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob23, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_12; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_13: + s_n_llhttp__internal__n_start_req_13: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_13; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob24, 5); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 35; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_13; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_11: + s_n_llhttp__internal__n_start_req_11: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_11; + } + switch (*p) { + case 'L': { + p++; + goto s_n_llhttp__internal__n_start_req_12; + } + case 'S': { + p++; + goto s_n_llhttp__internal__n_start_req_13; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_10: + s_n_llhttp__internal__n_start_req_10: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_10; + } + switch (*p) { + case 'E': { + p++; + goto s_n_llhttp__internal__n_start_req_11; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_14: + s_n_llhttp__internal__n_start_req_14: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_14; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob25, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 45; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_14; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_17: + s_n_llhttp__internal__n_start_req_17: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_17; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob27, 9); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 41; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_17; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_16: + s_n_llhttp__internal__n_start_req_16: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_16; + } + switch (*p) { + case '_': { + p++; + goto s_n_llhttp__internal__n_start_req_17; + } + default: { + match = 1; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_15: + s_n_llhttp__internal__n_start_req_15: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_15; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob26, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_start_req_16; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_15; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_18: + s_n_llhttp__internal__n_start_req_18: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_18; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob28, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_18; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_20: + s_n_llhttp__internal__n_start_req_20: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_20; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob29, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 31; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_20; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_21: + s_n_llhttp__internal__n_start_req_21: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_21; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob30, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_21; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_19: + s_n_llhttp__internal__n_start_req_19: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_19; + } + switch (*p) { + case 'I': { + p++; + goto s_n_llhttp__internal__n_start_req_20; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_21; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_23: + s_n_llhttp__internal__n_start_req_23: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_23; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob31, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 24; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_23; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_24: + s_n_llhttp__internal__n_start_req_24: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_24; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob32, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 23; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_24; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_26: + s_n_llhttp__internal__n_start_req_26: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_26; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob33, 7); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 21; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_26; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_28: + s_n_llhttp__internal__n_start_req_28: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_28; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob34, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 30; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_28; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_29: + s_n_llhttp__internal__n_start_req_29: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_29; + } + switch (*p) { + case 'L': { + p++; + match = 10; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_27: + s_n_llhttp__internal__n_start_req_27: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_27; + } + switch (*p) { + case 'A': { + p++; + goto s_n_llhttp__internal__n_start_req_28; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_29; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_25: + s_n_llhttp__internal__n_start_req_25: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_25; + } + switch (*p) { + case 'A': { + p++; + goto s_n_llhttp__internal__n_start_req_26; + } + case 'C': { + p++; + goto s_n_llhttp__internal__n_start_req_27; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_30: + s_n_llhttp__internal__n_start_req_30: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_30; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob35, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 11; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_30; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_22: + s_n_llhttp__internal__n_start_req_22: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_22; + } + switch (*p) { + case '-': { + p++; + goto s_n_llhttp__internal__n_start_req_23; + } + case 'E': { + p++; + goto s_n_llhttp__internal__n_start_req_24; + } + case 'K': { + p++; + goto s_n_llhttp__internal__n_start_req_25; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_30; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_31: + s_n_llhttp__internal__n_start_req_31: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_31; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob36, 5); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 25; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_31; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_32: + s_n_llhttp__internal__n_start_req_32: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_32; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob37, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_32; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_35: + s_n_llhttp__internal__n_start_req_35: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_35; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob38, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 28; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_35; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_36: + s_n_llhttp__internal__n_start_req_36: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_36; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob39, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 39; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_36; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_34: + s_n_llhttp__internal__n_start_req_34: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_34; + } + switch (*p) { + case 'T': { + p++; + goto s_n_llhttp__internal__n_start_req_35; + } + case 'U': { + p++; + goto s_n_llhttp__internal__n_start_req_36; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_37: + s_n_llhttp__internal__n_start_req_37: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_37; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob40, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 38; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_37; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_38: + s_n_llhttp__internal__n_start_req_38: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_38; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob41, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_38; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_42: + s_n_llhttp__internal__n_start_req_42: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_42; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob42, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 12; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_42; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_43: + s_n_llhttp__internal__n_start_req_43: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_43; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob43, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 13; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_43; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_41: + s_n_llhttp__internal__n_start_req_41: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_41; + } + switch (*p) { + case 'F': { + p++; + goto s_n_llhttp__internal__n_start_req_42; + } + case 'P': { + p++; + goto s_n_llhttp__internal__n_start_req_43; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_40: + s_n_llhttp__internal__n_start_req_40: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_40; + } + switch (*p) { + case 'P': { + p++; + goto s_n_llhttp__internal__n_start_req_41; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_39: + s_n_llhttp__internal__n_start_req_39: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_39; + } + switch (*p) { + case 'I': { + p++; + match = 34; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_40; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_45: + s_n_llhttp__internal__n_start_req_45: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_45; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob44, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 29; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_45; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_44: + s_n_llhttp__internal__n_start_req_44: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_44; + } + switch (*p) { + case 'R': { + p++; + goto s_n_llhttp__internal__n_start_req_45; + } + case 'T': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_33: + s_n_llhttp__internal__n_start_req_33: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_33; + } + switch (*p) { + case 'A': { + p++; + goto s_n_llhttp__internal__n_start_req_34; + } + case 'L': { + p++; + goto s_n_llhttp__internal__n_start_req_37; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_38; + } + case 'R': { + p++; + goto s_n_llhttp__internal__n_start_req_39; + } + case 'U': { + p++; + goto s_n_llhttp__internal__n_start_req_44; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_48: + s_n_llhttp__internal__n_start_req_48: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_48; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob45, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 17; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_48; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_49: + s_n_llhttp__internal__n_start_req_49: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_49; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob46, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 44; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_49; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_50: + s_n_llhttp__internal__n_start_req_50: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_50; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob47, 5); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 43; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_50; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_51: + s_n_llhttp__internal__n_start_req_51: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_51; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob48, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 20; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_51; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_47: + s_n_llhttp__internal__n_start_req_47: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_47; + } + switch (*p) { + case 'B': { + p++; + goto s_n_llhttp__internal__n_start_req_48; + } + case 'C': { + p++; + goto s_n_llhttp__internal__n_start_req_49; + } + case 'D': { + p++; + goto s_n_llhttp__internal__n_start_req_50; + } + case 'P': { + p++; + goto s_n_llhttp__internal__n_start_req_51; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_46: + s_n_llhttp__internal__n_start_req_46: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_46; + } + switch (*p) { + case 'E': { + p++; + goto s_n_llhttp__internal__n_start_req_47; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_54: + s_n_llhttp__internal__n_start_req_54: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_54; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob49, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 14; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_54; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_56: + s_n_llhttp__internal__n_start_req_56: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_56; + } + switch (*p) { + case 'P': { + p++; + match = 37; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_57: + s_n_llhttp__internal__n_start_req_57: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_57; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob50, 9); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 42; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_57; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_55: + s_n_llhttp__internal__n_start_req_55: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_55; + } + switch (*p) { + case 'U': { + p++; + goto s_n_llhttp__internal__n_start_req_56; + } + case '_': { + p++; + goto s_n_llhttp__internal__n_start_req_57; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_53: + s_n_llhttp__internal__n_start_req_53: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_53; + } + switch (*p) { + case 'A': { + p++; + goto s_n_llhttp__internal__n_start_req_54; + } + case 'T': { + p++; + goto s_n_llhttp__internal__n_start_req_55; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_58: + s_n_llhttp__internal__n_start_req_58: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_58; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob51, 4); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 33; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_58; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_59: + s_n_llhttp__internal__n_start_req_59: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_59; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob52, 7); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 26; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_59; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_52: + s_n_llhttp__internal__n_start_req_52: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_52; + } + switch (*p) { + case 'E': { + p++; + goto s_n_llhttp__internal__n_start_req_53; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_58; + } + case 'U': { + p++; + goto s_n_llhttp__internal__n_start_req_59; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_61: + s_n_llhttp__internal__n_start_req_61: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_61; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob53, 6); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 40; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_61; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_62: + s_n_llhttp__internal__n_start_req_62: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_62; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob54, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_62; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_60: + s_n_llhttp__internal__n_start_req_60: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_60; + } + switch (*p) { + case 'E': { + p++; + goto s_n_llhttp__internal__n_start_req_61; + } + case 'R': { + p++; + goto s_n_llhttp__internal__n_start_req_62; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_65: + s_n_llhttp__internal__n_start_req_65: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_65; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob55, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 18; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_65; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_67: + s_n_llhttp__internal__n_start_req_67: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_67; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob56, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 32; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_67; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_68: + s_n_llhttp__internal__n_start_req_68: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_68; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob57, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 15; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_68; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_66: + s_n_llhttp__internal__n_start_req_66: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_66; + } + switch (*p) { + case 'I': { + p++; + goto s_n_llhttp__internal__n_start_req_67; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_68; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_69: + s_n_llhttp__internal__n_start_req_69: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_req_69; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob58, 8); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 27; + goto s_n_llhttp__internal__n_invoke_store_method_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_req_69; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_64: + s_n_llhttp__internal__n_start_req_64: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_64; + } + switch (*p) { + case 'B': { + p++; + goto s_n_llhttp__internal__n_start_req_65; + } + case 'L': { + p++; + goto s_n_llhttp__internal__n_start_req_66; + } + case 'S': { + p++; + goto s_n_llhttp__internal__n_start_req_69; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_63: + s_n_llhttp__internal__n_start_req_63: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_63; + } + switch (*p) { + case 'N': { + p++; + goto s_n_llhttp__internal__n_start_req_64; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req: + s_n_llhttp__internal__n_start_req: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req; + } + switch (*p) { + case 'A': { + p++; + goto s_n_llhttp__internal__n_start_req_1; + } + case 'B': { + p++; + goto s_n_llhttp__internal__n_start_req_4; + } + case 'C': { + p++; + goto s_n_llhttp__internal__n_start_req_5; + } + case 'D': { + p++; + goto s_n_llhttp__internal__n_start_req_10; + } + case 'F': { + p++; + goto s_n_llhttp__internal__n_start_req_14; + } + case 'G': { + p++; + goto s_n_llhttp__internal__n_start_req_15; + } + case 'H': { + p++; + goto s_n_llhttp__internal__n_start_req_18; + } + case 'L': { + p++; + goto s_n_llhttp__internal__n_start_req_19; + } + case 'M': { + p++; + goto s_n_llhttp__internal__n_start_req_22; + } + case 'N': { + p++; + goto s_n_llhttp__internal__n_start_req_31; + } + case 'O': { + p++; + goto s_n_llhttp__internal__n_start_req_32; + } + case 'P': { + p++; + goto s_n_llhttp__internal__n_start_req_33; + } + case 'R': { + p++; + goto s_n_llhttp__internal__n_start_req_46; + } + case 'S': { + p++; + goto s_n_llhttp__internal__n_start_req_52; + } + case 'T': { + p++; + goto s_n_llhttp__internal__n_start_req_60; + } + case 'U': { + p++; + goto s_n_llhttp__internal__n_start_req_63; + } + default: { + goto s_n_llhttp__internal__n_error_49; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: + s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: { + switch (llhttp__on_status_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_start; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_line_almost_done: + s_n_llhttp__internal__n_res_line_almost_done: { + if (p == endp) { + return s_n_llhttp__internal__n_res_line_almost_done; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_status: + s_n_llhttp__internal__n_res_status: { + if (p == endp) { + return s_n_llhttp__internal__n_res_status; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_status; + } + case 13: { + goto s_n_llhttp__internal__n_span_end_llhttp__on_status_1; + } + default: { + p++; + goto s_n_llhttp__internal__n_res_status; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_span_start_llhttp__on_status: + s_n_llhttp__internal__n_span_start_llhttp__on_status: { + if (p == endp) { + return s_n_llhttp__internal__n_span_start_llhttp__on_status; + } + state->_span_pos0 = (void*) p; + state->_span_cb0 = llhttp__on_status; + goto s_n_llhttp__internal__n_res_status; + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_status_start: + s_n_llhttp__internal__n_res_status_start: { + if (p == endp) { + return s_n_llhttp__internal__n_res_status_start; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_res_line_almost_done; + } + default: { + goto s_n_llhttp__internal__n_span_start_llhttp__on_status; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_status_code_otherwise: + s_n_llhttp__internal__n_res_status_code_otherwise: { + if (p == endp) { + return s_n_llhttp__internal__n_res_status_code_otherwise; + } + switch (*p) { + case 10: { + goto s_n_llhttp__internal__n_res_status_start; + } + case 13: { + goto s_n_llhttp__internal__n_res_status_start; + } + case ' ': { + p++; + goto s_n_llhttp__internal__n_res_status_start; + } + default: { + goto s_n_llhttp__internal__n_error_43; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_status_code: + s_n_llhttp__internal__n_res_status_code: { + if (p == endp) { + return s_n_llhttp__internal__n_res_status_code; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_mul_add_status_code; + } + default: { + goto s_n_llhttp__internal__n_res_status_code_otherwise; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_http_end: + s_n_llhttp__internal__n_res_http_end: { + if (p == endp) { + return s_n_llhttp__internal__n_res_http_end; + } + switch (*p) { + case ' ': { + p++; + goto s_n_llhttp__internal__n_invoke_update_status_code; + } + default: { + goto s_n_llhttp__internal__n_error_44; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_http_minor: + s_n_llhttp__internal__n_res_http_minor: { + if (p == endp) { + return s_n_llhttp__internal__n_res_http_minor; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_store_http_minor_1; + } + default: { + goto s_n_llhttp__internal__n_error_45; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_http_dot: + s_n_llhttp__internal__n_res_http_dot: { + if (p == endp) { + return s_n_llhttp__internal__n_res_http_dot; + } + switch (*p) { + case '.': { + p++; + goto s_n_llhttp__internal__n_res_http_minor; + } + default: { + goto s_n_llhttp__internal__n_error_46; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_res_http_major: + s_n_llhttp__internal__n_res_http_major: { + if (p == endp) { + return s_n_llhttp__internal__n_res_http_major; + } + switch (*p) { + case '0': { + p++; + match = 0; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '1': { + p++; + match = 1; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '2': { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '3': { + p++; + match = 3; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '4': { + p++; + match = 4; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '5': { + p++; + match = 5; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '6': { + p++; + match = 6; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '7': { + p++; + match = 7; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '8': { + p++; + match = 8; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + case '9': { + p++; + match = 9; + goto s_n_llhttp__internal__n_invoke_store_http_major_1; + } + default: { + goto s_n_llhttp__internal__n_error_47; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_res: + s_n_llhttp__internal__n_start_res: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_start_res; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob59, 5); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_res_http_major; + } + case kMatchPause: { + return s_n_llhttp__internal__n_start_res; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_50; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_or_res_method_2: + s_n_llhttp__internal__n_req_or_res_method_2: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_req_or_res_method_2; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob60, 2); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + match = 2; + goto s_n_llhttp__internal__n_invoke_store_method; + } + case kMatchPause: { + return s_n_llhttp__internal__n_req_or_res_method_2; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_48; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_or_res_method_3: + s_n_llhttp__internal__n_req_or_res_method_3: { + llparse_match_t match_seq; + + if (p == endp) { + return s_n_llhttp__internal__n_req_or_res_method_3; + } + match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob61, 3); + p = match_seq.current; + switch (match_seq.status) { + case kMatchComplete: { + p++; + goto s_n_llhttp__internal__n_invoke_update_type_1; + } + case kMatchPause: { + return s_n_llhttp__internal__n_req_or_res_method_3; + } + case kMatchMismatch: { + goto s_n_llhttp__internal__n_error_48; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_or_res_method_1: + s_n_llhttp__internal__n_req_or_res_method_1: { + if (p == endp) { + return s_n_llhttp__internal__n_req_or_res_method_1; + } + switch (*p) { + case 'E': { + p++; + goto s_n_llhttp__internal__n_req_or_res_method_2; + } + case 'T': { + p++; + goto s_n_llhttp__internal__n_req_or_res_method_3; + } + default: { + goto s_n_llhttp__internal__n_error_48; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_req_or_res_method: + s_n_llhttp__internal__n_req_or_res_method: { + if (p == endp) { + return s_n_llhttp__internal__n_req_or_res_method; + } + switch (*p) { + case 'H': { + p++; + goto s_n_llhttp__internal__n_req_or_res_method_1; + } + default: { + goto s_n_llhttp__internal__n_error_48; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start_req_or_res: + s_n_llhttp__internal__n_start_req_or_res: { + if (p == endp) { + return s_n_llhttp__internal__n_start_req_or_res; + } + switch (*p) { + case 'H': { + goto s_n_llhttp__internal__n_req_or_res_method; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_type_2; + } + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_invoke_load_type: + s_n_llhttp__internal__n_invoke_load_type: { + switch (llhttp__internal__c_load_type(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_start_req; + case 2: + goto s_n_llhttp__internal__n_start_res; + default: + goto s_n_llhttp__internal__n_start_req_or_res; + } + /* UNREACHABLE */; + abort(); + } + case s_n_llhttp__internal__n_start: + s_n_llhttp__internal__n_start: { + if (p == endp) { + return s_n_llhttp__internal__n_start; + } + switch (*p) { + case 10: { + p++; + goto s_n_llhttp__internal__n_start; + } + case 13: { + p++; + goto s_n_llhttp__internal__n_start; + } + default: { + goto s_n_llhttp__internal__n_invoke_update_finish; + } + } + /* UNREACHABLE */; + abort(); + } + default: + /* UNREACHABLE */ + abort(); + } + s_n_llhttp__internal__n_error_37: { + state->error = 0x7; + state->reason = "Invalid characters in url"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_finish_2: { + switch (llhttp__internal__c_update_finish_1(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_start; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_lenient_flags: { + switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_invoke_update_finish_2; + default: + goto s_n_llhttp__internal__n_closed; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_finish_1: { + switch (llhttp__internal__c_update_finish_1(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_test_lenient_flags; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_5: { + state->error = 0x15; + state->reason = "on_message_complete pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_is_equal_upgrade; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_9: { + state->error = 0x12; + state->reason = "`on_message_complete` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_7: { + state->error = 0x15; + state->reason = "on_chunk_complete pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_12: { + state->error = 0x14; + state->reason = "`on_chunk_complete` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1: { + switch (llhttp__on_chunk_complete(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; + case 21: + goto s_n_llhttp__internal__n_pause_7; + default: + goto s_n_llhttp__internal__n_error_12; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_11: { + state->error = 0x4; + state->reason = "Content-Length can't be present with Transfer-Encoding"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_2: { + state->error = 0x15; + state->reason = "on_message_complete pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_pause_1; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_3: { + state->error = 0x12; + state->reason = "`on_message_complete` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1: { + switch (llhttp__on_message_complete(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_pause_1; + case 21: + goto s_n_llhttp__internal__n_pause_2; + default: + goto s_n_llhttp__internal__n_error_3; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_7: { + state->error = 0xc; + state->reason = "Chunk size overflow"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_3: { + state->error = 0x15; + state->reason = "on_chunk_complete pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_5: { + state->error = 0x14; + state->reason = "`on_chunk_complete` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete: { + switch (llhttp__on_chunk_complete(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_update_content_length; + case 21: + goto s_n_llhttp__internal__n_pause_3; + default: + goto s_n_llhttp__internal__n_error_5; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_body: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_body(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_data_almost_done; + return s_error; + } + goto s_n_llhttp__internal__n_chunk_data_almost_done; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags: { + switch (llhttp__internal__c_or_flags(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_start; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_4: { + state->error = 0x15; + state->reason = "on_chunk_header pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_is_equal_content_length; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_4: { + state->error = 0x13; + state->reason = "`on_chunk_header` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header: { + switch (llhttp__on_chunk_header(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_is_equal_content_length; + case 21: + goto s_n_llhttp__internal__n_pause_4; + default: + goto s_n_llhttp__internal__n_error_4; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_6: { + state->error = 0xc; + state->reason = "Invalid character in chunk size"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_mul_add_content_length: { + switch (llhttp__internal__c_mul_add_content_length(state, p, endp, match)) { + case 1: + goto s_n_llhttp__internal__n_error_7; + default: + goto s_n_llhttp__internal__n_chunk_size; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_8: { + state->error = 0xc; + state->reason = "Invalid character in chunk size"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_body_1: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_body(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; + return s_error; + } + goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_finish_3: { + switch (llhttp__internal__c_update_finish_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_10: { + state->error = 0xf; + state->reason = "Request has invalid `Transfer-Encoding`"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause: { + state->error = 0x15; + state->reason = "on_message_complete pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_message_complete; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_2: { + state->error = 0x12; + state->reason = "`on_message_complete` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_message_complete: { + switch (llhttp__on_message_complete(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_llhttp__after_message_complete; + case 21: + goto s_n_llhttp__internal__n_pause; + default: + goto s_n_llhttp__internal__n_error_2; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_1: { + switch (llhttp__internal__c_or_flags_1(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_2: { + switch (llhttp__internal__c_or_flags_1(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_upgrade: { + switch (llhttp__internal__c_update_upgrade(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_or_flags_2; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_6: { + state->error = 0x15; + state->reason = "Paused by on_headers_complete"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_1: { + state->error = 0x11; + state->reason = "User callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete: { + switch (llhttp__on_headers_complete(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete; + case 1: + goto s_n_llhttp__internal__n_invoke_or_flags_1; + case 2: + goto s_n_llhttp__internal__n_invoke_update_upgrade; + case 21: + goto s_n_llhttp__internal__n_pause_6; + default: + goto s_n_llhttp__internal__n_error_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete: { + switch (llhttp__before_headers_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_lenient_flags_1: { + switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_error_11; + default: + goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_flags_1: { + switch (llhttp__internal__c_test_flags_1(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1; + default: + goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_flags: { + switch (llhttp__internal__c_test_flags(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1; + default: + goto s_n_llhttp__internal__n_invoke_test_flags_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_13: { + state->error = 0xb; + state->reason = "Empty Content-Length"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_value: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_value(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; + return s_error; + } + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state: { + switch (llhttp__internal__c_update_header_state(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_3: { + switch (llhttp__internal__c_or_flags_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_4: { + switch (llhttp__internal__c_or_flags_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_5: { + switch (llhttp__internal__c_or_flags_5(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_6: { + switch (llhttp__internal__c_or_flags_6(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_header_state_1: { + switch (llhttp__internal__c_load_header_state(state, p, endp)) { + case 5: + goto s_n_llhttp__internal__n_invoke_or_flags_3; + case 6: + goto s_n_llhttp__internal__n_invoke_or_flags_4; + case 7: + goto s_n_llhttp__internal__n_invoke_or_flags_5; + case 8: + goto s_n_llhttp__internal__n_invoke_or_flags_6; + default: + goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_header_state: { + switch (llhttp__internal__c_load_header_state(state, p, endp)) { + case 2: + goto s_n_llhttp__internal__n_error_13; + default: + goto s_n_llhttp__internal__n_invoke_load_header_state_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_1: { + switch (llhttp__internal__c_update_header_state(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_7: { + switch (llhttp__internal__c_or_flags_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_8: { + switch (llhttp__internal__c_or_flags_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_9: { + switch (llhttp__internal__c_or_flags_5(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_10: { + switch (llhttp__internal__c_or_flags_6(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_header_state_3: { + switch (llhttp__internal__c_load_header_state(state, p, endp)) { + case 5: + goto s_n_llhttp__internal__n_invoke_or_flags_7; + case 6: + goto s_n_llhttp__internal__n_invoke_or_flags_8; + case 7: + goto s_n_llhttp__internal__n_invoke_or_flags_9; + case 8: + goto s_n_llhttp__internal__n_invoke_or_flags_10; + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_14: { + state->error = 0x3; + state->reason = "Missing expected LF after header value"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_value(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; + return s_error; + } + goto s_n_llhttp__internal__n_header_value_almost_done; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_value(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; + return s_error; + } + p++; + goto s_n_llhttp__internal__n_header_value_almost_done; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_3: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_value(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_almost_done; + return s_error; + } + p++; + goto s_n_llhttp__internal__n_header_value_almost_done; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_15: { + state->error = 0xa; + state->reason = "Invalid header value char"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_lenient_flags_2: { + switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_header_value_lenient; + default: + goto s_n_llhttp__internal__n_error_15; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_3: { + switch (llhttp__internal__c_update_header_state(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_11: { + switch (llhttp__internal__c_or_flags_3(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_3; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_12: { + switch (llhttp__internal__c_or_flags_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_3; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_13: { + switch (llhttp__internal__c_or_flags_5(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_3; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_14: { + switch (llhttp__internal__c_or_flags_6(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_header_state_4: { + switch (llhttp__internal__c_load_header_state(state, p, endp)) { + case 5: + goto s_n_llhttp__internal__n_invoke_or_flags_11; + case 6: + goto s_n_llhttp__internal__n_invoke_or_flags_12; + case 7: + goto s_n_llhttp__internal__n_invoke_or_flags_13; + case 8: + goto s_n_llhttp__internal__n_invoke_or_flags_14; + default: + goto s_n_llhttp__internal__n_header_value_connection; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_4: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection_token; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_2: { + switch (llhttp__internal__c_update_header_state_2(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection_ws; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_5: { + switch (llhttp__internal__c_update_header_state_5(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection_ws; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_6: { + switch (llhttp__internal__c_update_header_state_6(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_connection_ws; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_4: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_value(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_17; + return s_error; + } + goto s_n_llhttp__internal__n_error_17; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_mul_add_content_length_1: { + switch (llhttp__internal__c_mul_add_content_length_1(state, p, endp, match)) { + case 1: + goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_4; + default: + goto s_n_llhttp__internal__n_header_value_content_length; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_15: { + switch (llhttp__internal__c_or_flags_15(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_otherwise; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_value_5: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_value(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_18; + return s_error; + } + goto s_n_llhttp__internal__n_error_18; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_16: { + state->error = 0x4; + state->reason = "Duplicate Content-Length"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_test_flags_2: { + switch (llhttp__internal__c_test_flags_2(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_header_value_content_length; + default: + goto s_n_llhttp__internal__n_error_16; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_7: { + switch (llhttp__internal__c_update_header_state_7(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_otherwise; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_8: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_and_flags: { + switch (llhttp__internal__c_and_flags(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_value_te_chunked; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_16: { + switch (llhttp__internal__c_or_flags_16(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_and_flags; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_or_flags_17: { + switch (llhttp__internal__c_or_flags_17(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_header_state_8; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_header_state_2: { + switch (llhttp__internal__c_load_header_state(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_header_value_connection; + case 2: + goto s_n_llhttp__internal__n_invoke_test_flags_2; + case 3: + goto s_n_llhttp__internal__n_invoke_or_flags_16; + case 4: + goto s_n_llhttp__internal__n_invoke_or_flags_17; + default: + goto s_n_llhttp__internal__n_header_value; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_field: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_field(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; + return s_error; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_header_field(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; + return s_error; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_19: { + state->error = 0xa; + state->reason = "Invalid header token"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_9: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_general; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_header_state: { + switch (llhttp__internal__c_store_header_state(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_header_field_colon; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_header_state_10: { + switch (llhttp__internal__c_update_header_state_4(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_general; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_url_complete: { + switch (llhttp__on_url_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_header_field_start; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_http_minor: { + switch (llhttp__internal__c_update_http_minor(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_url_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_http_major: { + switch (llhttp__internal__c_update_http_major(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_update_http_minor; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_3: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_20: { + state->error = 0x7; + state->reason = "Expected CRLF"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_4: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_lf_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_lf_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_23: { + state->error = 0x17; + state->reason = "Pause on PRI/Upgrade"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_24: { + state->error = 0x9; + state->reason = "Expected HTTP/2 Connection Preface"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_22: { + state->error = 0x9; + state->reason = "Expected CRLF after version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_method_1: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 34: + goto s_n_llhttp__internal__n_req_pri_upgrade; + default: + goto s_n_llhttp__internal__n_req_http_complete; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_http_minor: { + switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_invoke_load_method_1; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_25: { + state->error = 0x9; + state->reason = "Invalid minor version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_26: { + state->error = 0x9; + state->reason = "Expected dot"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_http_major: { + switch (llhttp__internal__c_store_http_major(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_req_http_dot; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_27: { + state->error = 0x9; + state->reason = "Invalid major version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_21: { + state->error = 0x8; + state->reason = "Invalid method for HTTP/x.x request"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_method: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_req_http_major; + case 1: + goto s_n_llhttp__internal__n_req_http_major; + case 2: + goto s_n_llhttp__internal__n_req_http_major; + case 3: + goto s_n_llhttp__internal__n_req_http_major; + case 4: + goto s_n_llhttp__internal__n_req_http_major; + case 5: + goto s_n_llhttp__internal__n_req_http_major; + case 6: + goto s_n_llhttp__internal__n_req_http_major; + case 7: + goto s_n_llhttp__internal__n_req_http_major; + case 8: + goto s_n_llhttp__internal__n_req_http_major; + case 9: + goto s_n_llhttp__internal__n_req_http_major; + case 10: + goto s_n_llhttp__internal__n_req_http_major; + case 11: + goto s_n_llhttp__internal__n_req_http_major; + case 12: + goto s_n_llhttp__internal__n_req_http_major; + case 13: + goto s_n_llhttp__internal__n_req_http_major; + case 14: + goto s_n_llhttp__internal__n_req_http_major; + case 15: + goto s_n_llhttp__internal__n_req_http_major; + case 16: + goto s_n_llhttp__internal__n_req_http_major; + case 17: + goto s_n_llhttp__internal__n_req_http_major; + case 18: + goto s_n_llhttp__internal__n_req_http_major; + case 19: + goto s_n_llhttp__internal__n_req_http_major; + case 20: + goto s_n_llhttp__internal__n_req_http_major; + case 21: + goto s_n_llhttp__internal__n_req_http_major; + case 22: + goto s_n_llhttp__internal__n_req_http_major; + case 23: + goto s_n_llhttp__internal__n_req_http_major; + case 24: + goto s_n_llhttp__internal__n_req_http_major; + case 25: + goto s_n_llhttp__internal__n_req_http_major; + case 26: + goto s_n_llhttp__internal__n_req_http_major; + case 27: + goto s_n_llhttp__internal__n_req_http_major; + case 28: + goto s_n_llhttp__internal__n_req_http_major; + case 29: + goto s_n_llhttp__internal__n_req_http_major; + case 30: + goto s_n_llhttp__internal__n_req_http_major; + case 31: + goto s_n_llhttp__internal__n_req_http_major; + case 32: + goto s_n_llhttp__internal__n_req_http_major; + case 33: + goto s_n_llhttp__internal__n_req_http_major; + case 34: + goto s_n_llhttp__internal__n_req_http_major; + default: + goto s_n_llhttp__internal__n_error_21; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_30: { + state->error = 0x8; + state->reason = "Expected HTTP/"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_28: { + state->error = 0x8; + state->reason = "Expected SOURCE method for ICE/x.x request"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_method_2: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 33: + goto s_n_llhttp__internal__n_req_http_major; + default: + goto s_n_llhttp__internal__n_error_28; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_29: { + state->error = 0x8; + state->reason = "Invalid method for RTSP/x.x request"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_load_method_3: { + switch (llhttp__internal__c_load_method(state, p, endp)) { + case 1: + goto s_n_llhttp__internal__n_req_http_major; + case 3: + goto s_n_llhttp__internal__n_req_http_major; + case 6: + goto s_n_llhttp__internal__n_req_http_major; + case 35: + goto s_n_llhttp__internal__n_req_http_major; + case 36: + goto s_n_llhttp__internal__n_req_http_major; + case 37: + goto s_n_llhttp__internal__n_req_http_major; + case 38: + goto s_n_llhttp__internal__n_req_http_major; + case 39: + goto s_n_llhttp__internal__n_req_http_major; + case 40: + goto s_n_llhttp__internal__n_req_http_major; + case 41: + goto s_n_llhttp__internal__n_req_http_major; + case 42: + goto s_n_llhttp__internal__n_req_http_major; + case 43: + goto s_n_llhttp__internal__n_req_http_major; + case 44: + goto s_n_llhttp__internal__n_req_http_major; + case 45: + goto s_n_llhttp__internal__n_req_http_major; + default: + goto s_n_llhttp__internal__n_error_29; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1: { + switch (llhttp__on_url_complete(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_req_http_start; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_5: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_6: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_7: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_lf_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_lf_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_8: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_31: { + state->error = 0x7; + state->reason = "Invalid char in url fragment start"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_9: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_10: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_lf_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_lf_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_11: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_32: { + state->error = 0x7; + state->reason = "Invalid char in url query"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_33: { + state->error = 0x7; + state->reason = "Invalid char in url path"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_1: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_lf_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_lf_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_2: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_12: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_13: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_lf_to_http09; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_lf_to_http09; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_url_14: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_url(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_url_skip_to_http; + return s_error; + } + goto s_n_llhttp__internal__n_url_skip_to_http; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_34: { + state->error = 0x7; + state->reason = "Double @ in url"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_35: { + state->error = 0x7; + state->reason = "Unexpected char in url server"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_36: { + state->error = 0x7; + state->reason = "Unexpected char in url server"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_38: { + state->error = 0x7; + state->reason = "Unexpected char in url schema"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_39: { + state->error = 0x7; + state->reason = "Unexpected char in url schema"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_40: { + state->error = 0x7; + state->reason = "Unexpected start char in url"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_is_equal_method: { + switch (llhttp__internal__c_is_equal_method(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_span_start_llhttp__on_url_1; + default: + goto s_n_llhttp__internal__n_span_start_llhttp__on_url; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_41: { + state->error = 0x6; + state->reason = "Expected space after method"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_method_1: { + switch (llhttp__internal__c_store_method(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_req_first_space_before_url; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_49: { + state->error = 0x6; + state->reason = "Invalid method encountered"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_42: { + state->error = 0xd; + state->reason = "Response overflow"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_mul_add_status_code: { + switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) { + case 1: + goto s_n_llhttp__internal__n_error_42; + default: + goto s_n_llhttp__internal__n_res_status_code; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_status: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_status(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + return s_error; + } + p++; + goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_span_end_llhttp__on_status_1: { + const unsigned char* start; + int err; + + start = state->_span_pos0; + state->_span_pos0 = NULL; + err = llhttp__on_status(state, start, p); + if (err != 0) { + state->error = err; + state->error_pos = (const char*) (p + 1); + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_res_line_almost_done; + return s_error; + } + p++; + goto s_n_llhttp__internal__n_res_line_almost_done; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_43: { + state->error = 0xd; + state->reason = "Invalid response status"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_status_code: { + switch (llhttp__internal__c_update_status_code(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_res_status_code; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_44: { + state->error = 0x9; + state->reason = "Expected space after version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_http_minor_1: { + switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_res_http_end; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_45: { + state->error = 0x9; + state->reason = "Invalid minor version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_46: { + state->error = 0x9; + state->reason = "Expected dot"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_http_major_1: { + switch (llhttp__internal__c_store_http_major(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_res_http_dot; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_47: { + state->error = 0x9; + state->reason = "Invalid major version"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_50: { + state->error = 0x8; + state->reason = "Expected HTTP/"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_type: { + switch (llhttp__internal__c_update_type(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_req_first_space_before_url; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_store_method: { + switch (llhttp__internal__c_store_method(state, p, endp, match)) { + default: + goto s_n_llhttp__internal__n_invoke_update_type; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error_48: { + state->error = 0x8; + state->reason = "Invalid word encountered"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_type_1: { + switch (llhttp__internal__c_update_type_1(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_res_http_major; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_type_2: { + switch (llhttp__internal__c_update_type(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_start_req; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_pause_8: { + state->error = 0x15; + state->reason = "on_message_begin pause"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_type; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_error: { + state->error = 0x10; + state->reason = "`on_message_begin` callback error"; + state->error_pos = (const char*) p; + state->_current = (void*) (intptr_t) s_error; + return s_error; + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_llhttp__on_message_begin: { + switch (llhttp__on_message_begin(state, p, endp)) { + case 0: + goto s_n_llhttp__internal__n_invoke_load_type; + case 21: + goto s_n_llhttp__internal__n_pause_8; + default: + goto s_n_llhttp__internal__n_error; + } + /* UNREACHABLE */; + abort(); + } + s_n_llhttp__internal__n_invoke_update_finish: { + switch (llhttp__internal__c_update_finish(state, p, endp)) { + default: + goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin; + } + /* UNREACHABLE */; + abort(); + } +} + +int llhttp__internal_execute(llhttp__internal_t* state, const char* p, const char* endp) { + llparse_state_t next; + + /* check lingering errors */ + if (state->error != 0) { + return state->error; + } + + /* restart spans */ + if (state->_span_pos0 != NULL) { + state->_span_pos0 = (void*) p; + } + + next = llhttp__internal__run(state, (const unsigned char*) p, (const unsigned char*) endp); + if (next == s_error) { + return state->error; + } + state->_current = (void*) (intptr_t) next; + + /* execute spans */ + if (state->_span_pos0 != NULL) { + int error; + + error = ((llhttp__internal__span_cb) state->_span_cb0)(state, state->_span_pos0, (const char*) endp); + if (error != 0) { + state->error = error; + state->error_pos = endp; + return error; + } + } + + return 0; +} + +#endif /* LLHTTP_STRICT_MODE */ diff --git a/src/3rdparty/llhttp/llhttp.h b/src/3rdparty/llhttp/llhttp.h index 59707a5d..8f9590d3 100644 --- a/src/3rdparty/llhttp/llhttp.h +++ b/src/3rdparty/llhttp/llhttp.h @@ -1,11 +1,14 @@ - #ifndef INCLUDE_LLHTTP_H_ #define INCLUDE_LLHTTP_H_ -#define LLHTTP_VERSION_MAJOR 9 -#define LLHTTP_VERSION_MINOR 3 +#define LLHTTP_VERSION_MAJOR 5 +#define LLHTTP_VERSION_MINOR 1 #define LLHTTP_VERSION_PATCH 0 +#ifndef LLHTTP_STRICT_MODE +# define LLHTTP_STRICT_MODE 0 +#endif + #ifndef INCLUDE_LLHTTP_ITSELF_H_ #define INCLUDE_LLHTTP_ITSELF_H_ #ifdef __cplusplus @@ -30,12 +33,11 @@ struct llhttp__internal_s { uint8_t http_major; uint8_t http_minor; uint8_t header_state; - uint16_t lenient_flags; + uint8_t lenient_flags; uint8_t upgrade; uint8_t finish; uint16_t flags; uint16_t status_code; - uint8_t initial_message_completed; void* settings; }; @@ -47,7 +49,6 @@ int llhttp__internal_execute(llhttp__internal_t* s, const char* p, const char* e #endif #endif /* INCLUDE_LLHTTP_ITSELF_H_ */ - #ifndef LLLLHTTP_C_HEADERS_ #define LLLLHTTP_C_HEADERS_ #ifdef __cplusplus @@ -58,10 +59,8 @@ enum llhttp_errno { HPE_OK = 0, HPE_INTERNAL = 1, HPE_STRICT = 2, - HPE_CR_EXPECTED = 25, HPE_LF_EXPECTED = 3, HPE_UNEXPECTED_CONTENT_LENGTH = 4, - HPE_UNEXPECTED_SPACE = 30, HPE_CLOSED_CONNECTION = 5, HPE_INVALID_METHOD = 6, HPE_INVALID_URL = 7, @@ -81,17 +80,7 @@ enum llhttp_errno { HPE_PAUSED = 21, HPE_PAUSED_UPGRADE = 22, HPE_PAUSED_H2_UPGRADE = 23, - HPE_USER = 24, - HPE_CB_URL_COMPLETE = 26, - HPE_CB_STATUS_COMPLETE = 27, - HPE_CB_METHOD_COMPLETE = 32, - HPE_CB_VERSION_COMPLETE = 33, - HPE_CB_HEADER_FIELD_COMPLETE = 28, - HPE_CB_HEADER_VALUE_COMPLETE = 29, - HPE_CB_CHUNK_EXTENSION_NAME_COMPLETE = 34, - HPE_CB_CHUNK_EXTENSION_VALUE_COMPLETE = 35, - HPE_CB_RESET = 31, - HPE_CB_PROTOCOL_COMPLETE = 38 + HPE_USER = 24 }; typedef enum llhttp_errno llhttp_errno_t; @@ -111,14 +100,7 @@ typedef enum llhttp_flags llhttp_flags_t; enum llhttp_lenient_flags { LENIENT_HEADERS = 0x1, LENIENT_CHUNKED_LENGTH = 0x2, - LENIENT_KEEP_ALIVE = 0x4, - LENIENT_TRANSFER_ENCODING = 0x8, - LENIENT_VERSION = 0x10, - LENIENT_DATA_AFTER_CLOSE = 0x20, - LENIENT_OPTIONAL_LF_AFTER_CR = 0x40, - LENIENT_OPTIONAL_CRLF_AFTER_CHUNK = 0x80, - LENIENT_OPTIONAL_CR_BEFORE_LF = 0x100, - LENIENT_SPACES_AFTER_CHUNK_SIZE = 0x200 + LENIENT_KEEP_ALIVE = 0x4 }; typedef enum llhttp_lenient_flags llhttp_lenient_flags_t; @@ -182,122 +164,16 @@ enum llhttp_method { HTTP_SET_PARAMETER = 42, HTTP_REDIRECT = 43, HTTP_RECORD = 44, - HTTP_FLUSH = 45, - HTTP_QUERY = 46 + HTTP_FLUSH = 45 }; typedef enum llhttp_method llhttp_method_t; -enum llhttp_status { - HTTP_STATUS_CONTINUE = 100, - HTTP_STATUS_SWITCHING_PROTOCOLS = 101, - HTTP_STATUS_PROCESSING = 102, - HTTP_STATUS_EARLY_HINTS = 103, - HTTP_STATUS_RESPONSE_IS_STALE = 110, - HTTP_STATUS_REVALIDATION_FAILED = 111, - HTTP_STATUS_DISCONNECTED_OPERATION = 112, - HTTP_STATUS_HEURISTIC_EXPIRATION = 113, - HTTP_STATUS_MISCELLANEOUS_WARNING = 199, - HTTP_STATUS_OK = 200, - HTTP_STATUS_CREATED = 201, - HTTP_STATUS_ACCEPTED = 202, - HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203, - HTTP_STATUS_NO_CONTENT = 204, - HTTP_STATUS_RESET_CONTENT = 205, - HTTP_STATUS_PARTIAL_CONTENT = 206, - HTTP_STATUS_MULTI_STATUS = 207, - HTTP_STATUS_ALREADY_REPORTED = 208, - HTTP_STATUS_TRANSFORMATION_APPLIED = 214, - HTTP_STATUS_IM_USED = 226, - HTTP_STATUS_MISCELLANEOUS_PERSISTENT_WARNING = 299, - HTTP_STATUS_MULTIPLE_CHOICES = 300, - HTTP_STATUS_MOVED_PERMANENTLY = 301, - HTTP_STATUS_FOUND = 302, - HTTP_STATUS_SEE_OTHER = 303, - HTTP_STATUS_NOT_MODIFIED = 304, - HTTP_STATUS_USE_PROXY = 305, - HTTP_STATUS_SWITCH_PROXY = 306, - HTTP_STATUS_TEMPORARY_REDIRECT = 307, - HTTP_STATUS_PERMANENT_REDIRECT = 308, - HTTP_STATUS_BAD_REQUEST = 400, - HTTP_STATUS_UNAUTHORIZED = 401, - HTTP_STATUS_PAYMENT_REQUIRED = 402, - HTTP_STATUS_FORBIDDEN = 403, - HTTP_STATUS_NOT_FOUND = 404, - HTTP_STATUS_METHOD_NOT_ALLOWED = 405, - HTTP_STATUS_NOT_ACCEPTABLE = 406, - HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407, - HTTP_STATUS_REQUEST_TIMEOUT = 408, - HTTP_STATUS_CONFLICT = 409, - HTTP_STATUS_GONE = 410, - HTTP_STATUS_LENGTH_REQUIRED = 411, - HTTP_STATUS_PRECONDITION_FAILED = 412, - HTTP_STATUS_PAYLOAD_TOO_LARGE = 413, - HTTP_STATUS_URI_TOO_LONG = 414, - HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415, - HTTP_STATUS_RANGE_NOT_SATISFIABLE = 416, - HTTP_STATUS_EXPECTATION_FAILED = 417, - HTTP_STATUS_IM_A_TEAPOT = 418, - HTTP_STATUS_PAGE_EXPIRED = 419, - HTTP_STATUS_ENHANCE_YOUR_CALM = 420, - HTTP_STATUS_MISDIRECTED_REQUEST = 421, - HTTP_STATUS_UNPROCESSABLE_ENTITY = 422, - HTTP_STATUS_LOCKED = 423, - HTTP_STATUS_FAILED_DEPENDENCY = 424, - HTTP_STATUS_TOO_EARLY = 425, - HTTP_STATUS_UPGRADE_REQUIRED = 426, - HTTP_STATUS_PRECONDITION_REQUIRED = 428, - HTTP_STATUS_TOO_MANY_REQUESTS = 429, - HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL = 430, - HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431, - HTTP_STATUS_LOGIN_TIMEOUT = 440, - HTTP_STATUS_NO_RESPONSE = 444, - HTTP_STATUS_RETRY_WITH = 449, - HTTP_STATUS_BLOCKED_BY_PARENTAL_CONTROL = 450, - HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS = 451, - HTTP_STATUS_CLIENT_CLOSED_LOAD_BALANCED_REQUEST = 460, - HTTP_STATUS_INVALID_X_FORWARDED_FOR = 463, - HTTP_STATUS_REQUEST_HEADER_TOO_LARGE = 494, - HTTP_STATUS_SSL_CERTIFICATE_ERROR = 495, - HTTP_STATUS_SSL_CERTIFICATE_REQUIRED = 496, - HTTP_STATUS_HTTP_REQUEST_SENT_TO_HTTPS_PORT = 497, - HTTP_STATUS_INVALID_TOKEN = 498, - HTTP_STATUS_CLIENT_CLOSED_REQUEST = 499, - HTTP_STATUS_INTERNAL_SERVER_ERROR = 500, - HTTP_STATUS_NOT_IMPLEMENTED = 501, - HTTP_STATUS_BAD_GATEWAY = 502, - HTTP_STATUS_SERVICE_UNAVAILABLE = 503, - HTTP_STATUS_GATEWAY_TIMEOUT = 504, - HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505, - HTTP_STATUS_VARIANT_ALSO_NEGOTIATES = 506, - HTTP_STATUS_INSUFFICIENT_STORAGE = 507, - HTTP_STATUS_LOOP_DETECTED = 508, - HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED = 509, - HTTP_STATUS_NOT_EXTENDED = 510, - HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511, - HTTP_STATUS_WEB_SERVER_UNKNOWN_ERROR = 520, - HTTP_STATUS_WEB_SERVER_IS_DOWN = 521, - HTTP_STATUS_CONNECTION_TIMEOUT = 522, - HTTP_STATUS_ORIGIN_IS_UNREACHABLE = 523, - HTTP_STATUS_TIMEOUT_OCCURED = 524, - HTTP_STATUS_SSL_HANDSHAKE_FAILED = 525, - HTTP_STATUS_INVALID_SSL_CERTIFICATE = 526, - HTTP_STATUS_RAILGUN_ERROR = 527, - HTTP_STATUS_SITE_IS_OVERLOADED = 529, - HTTP_STATUS_SITE_IS_FROZEN = 530, - HTTP_STATUS_IDENTITY_PROVIDER_AUTHENTICATION_ERROR = 561, - HTTP_STATUS_NETWORK_READ_TIMEOUT = 598, - HTTP_STATUS_NETWORK_CONNECT_TIMEOUT = 599 -}; -typedef enum llhttp_status llhttp_status_t; - #define HTTP_ERRNO_MAP(XX) \ XX(0, OK, OK) \ XX(1, INTERNAL, INTERNAL) \ XX(2, STRICT, STRICT) \ - XX(25, CR_EXPECTED, CR_EXPECTED) \ XX(3, LF_EXPECTED, LF_EXPECTED) \ XX(4, UNEXPECTED_CONTENT_LENGTH, UNEXPECTED_CONTENT_LENGTH) \ - XX(30, UNEXPECTED_SPACE, UNEXPECTED_SPACE) \ XX(5, CLOSED_CONNECTION, CLOSED_CONNECTION) \ XX(6, INVALID_METHOD, INVALID_METHOD) \ XX(7, INVALID_URL, INVALID_URL) \ @@ -318,74 +194,9 @@ typedef enum llhttp_status llhttp_status_t; XX(22, PAUSED_UPGRADE, PAUSED_UPGRADE) \ XX(23, PAUSED_H2_UPGRADE, PAUSED_H2_UPGRADE) \ XX(24, USER, USER) \ - XX(26, CB_URL_COMPLETE, CB_URL_COMPLETE) \ - XX(27, CB_STATUS_COMPLETE, CB_STATUS_COMPLETE) \ - XX(32, CB_METHOD_COMPLETE, CB_METHOD_COMPLETE) \ - XX(33, CB_VERSION_COMPLETE, CB_VERSION_COMPLETE) \ - XX(28, CB_HEADER_FIELD_COMPLETE, CB_HEADER_FIELD_COMPLETE) \ - XX(29, CB_HEADER_VALUE_COMPLETE, CB_HEADER_VALUE_COMPLETE) \ - XX(34, CB_CHUNK_EXTENSION_NAME_COMPLETE, CB_CHUNK_EXTENSION_NAME_COMPLETE) \ - XX(35, CB_CHUNK_EXTENSION_VALUE_COMPLETE, CB_CHUNK_EXTENSION_VALUE_COMPLETE) \ - XX(31, CB_RESET, CB_RESET) \ - XX(38, CB_PROTOCOL_COMPLETE, CB_PROTOCOL_COMPLETE) \ #define HTTP_METHOD_MAP(XX) \ - XX(0, DELETE, DELETE) \ - XX(1, GET, GET) \ - XX(2, HEAD, HEAD) \ - XX(3, POST, POST) \ - XX(4, PUT, PUT) \ - XX(5, CONNECT, CONNECT) \ - XX(6, OPTIONS, OPTIONS) \ - XX(7, TRACE, TRACE) \ - XX(8, COPY, COPY) \ - XX(9, LOCK, LOCK) \ - XX(10, MKCOL, MKCOL) \ - XX(11, MOVE, MOVE) \ - XX(12, PROPFIND, PROPFIND) \ - XX(13, PROPPATCH, PROPPATCH) \ - XX(14, SEARCH, SEARCH) \ - XX(15, UNLOCK, UNLOCK) \ - XX(16, BIND, BIND) \ - XX(17, REBIND, REBIND) \ - XX(18, UNBIND, UNBIND) \ - XX(19, ACL, ACL) \ - XX(20, REPORT, REPORT) \ - XX(21, MKACTIVITY, MKACTIVITY) \ - XX(22, CHECKOUT, CHECKOUT) \ - XX(23, MERGE, MERGE) \ - XX(24, MSEARCH, M-SEARCH) \ - XX(25, NOTIFY, NOTIFY) \ - XX(26, SUBSCRIBE, SUBSCRIBE) \ - XX(27, UNSUBSCRIBE, UNSUBSCRIBE) \ - XX(28, PATCH, PATCH) \ - XX(29, PURGE, PURGE) \ - XX(30, MKCALENDAR, MKCALENDAR) \ - XX(31, LINK, LINK) \ - XX(32, UNLINK, UNLINK) \ - XX(33, SOURCE, SOURCE) \ - XX(46, QUERY, QUERY) \ - - -#define RTSP_METHOD_MAP(XX) \ - XX(1, GET, GET) \ - XX(3, POST, POST) \ - XX(6, OPTIONS, OPTIONS) \ - XX(35, DESCRIBE, DESCRIBE) \ - XX(36, ANNOUNCE, ANNOUNCE) \ - XX(37, SETUP, SETUP) \ - XX(38, PLAY, PLAY) \ - XX(39, PAUSE, PAUSE) \ - XX(40, TEARDOWN, TEARDOWN) \ - XX(41, GET_PARAMETER, GET_PARAMETER) \ - XX(42, SET_PARAMETER, SET_PARAMETER) \ - XX(43, REDIRECT, REDIRECT) \ - XX(44, RECORD, RECORD) \ - XX(45, FLUSH, FLUSH) \ - - -#define HTTP_ALL_METHOD_MAP(XX) \ XX(0, DELETE, DELETE) \ XX(1, GET, GET) \ XX(2, HEAD, HEAD) \ @@ -432,117 +243,14 @@ typedef enum llhttp_status llhttp_status_t; XX(43, REDIRECT, REDIRECT) \ XX(44, RECORD, RECORD) \ XX(45, FLUSH, FLUSH) \ - XX(46, QUERY, QUERY) \ -#define HTTP_STATUS_MAP(XX) \ - XX(100, CONTINUE, CONTINUE) \ - XX(101, SWITCHING_PROTOCOLS, SWITCHING_PROTOCOLS) \ - XX(102, PROCESSING, PROCESSING) \ - XX(103, EARLY_HINTS, EARLY_HINTS) \ - XX(110, RESPONSE_IS_STALE, RESPONSE_IS_STALE) \ - XX(111, REVALIDATION_FAILED, REVALIDATION_FAILED) \ - XX(112, DISCONNECTED_OPERATION, DISCONNECTED_OPERATION) \ - XX(113, HEURISTIC_EXPIRATION, HEURISTIC_EXPIRATION) \ - XX(199, MISCELLANEOUS_WARNING, MISCELLANEOUS_WARNING) \ - XX(200, OK, OK) \ - XX(201, CREATED, CREATED) \ - XX(202, ACCEPTED, ACCEPTED) \ - XX(203, NON_AUTHORITATIVE_INFORMATION, NON_AUTHORITATIVE_INFORMATION) \ - XX(204, NO_CONTENT, NO_CONTENT) \ - XX(205, RESET_CONTENT, RESET_CONTENT) \ - XX(206, PARTIAL_CONTENT, PARTIAL_CONTENT) \ - XX(207, MULTI_STATUS, MULTI_STATUS) \ - XX(208, ALREADY_REPORTED, ALREADY_REPORTED) \ - XX(214, TRANSFORMATION_APPLIED, TRANSFORMATION_APPLIED) \ - XX(226, IM_USED, IM_USED) \ - XX(299, MISCELLANEOUS_PERSISTENT_WARNING, MISCELLANEOUS_PERSISTENT_WARNING) \ - XX(300, MULTIPLE_CHOICES, MULTIPLE_CHOICES) \ - XX(301, MOVED_PERMANENTLY, MOVED_PERMANENTLY) \ - XX(302, FOUND, FOUND) \ - XX(303, SEE_OTHER, SEE_OTHER) \ - XX(304, NOT_MODIFIED, NOT_MODIFIED) \ - XX(305, USE_PROXY, USE_PROXY) \ - XX(306, SWITCH_PROXY, SWITCH_PROXY) \ - XX(307, TEMPORARY_REDIRECT, TEMPORARY_REDIRECT) \ - XX(308, PERMANENT_REDIRECT, PERMANENT_REDIRECT) \ - XX(400, BAD_REQUEST, BAD_REQUEST) \ - XX(401, UNAUTHORIZED, UNAUTHORIZED) \ - XX(402, PAYMENT_REQUIRED, PAYMENT_REQUIRED) \ - XX(403, FORBIDDEN, FORBIDDEN) \ - XX(404, NOT_FOUND, NOT_FOUND) \ - XX(405, METHOD_NOT_ALLOWED, METHOD_NOT_ALLOWED) \ - XX(406, NOT_ACCEPTABLE, NOT_ACCEPTABLE) \ - XX(407, PROXY_AUTHENTICATION_REQUIRED, PROXY_AUTHENTICATION_REQUIRED) \ - XX(408, REQUEST_TIMEOUT, REQUEST_TIMEOUT) \ - XX(409, CONFLICT, CONFLICT) \ - XX(410, GONE, GONE) \ - XX(411, LENGTH_REQUIRED, LENGTH_REQUIRED) \ - XX(412, PRECONDITION_FAILED, PRECONDITION_FAILED) \ - XX(413, PAYLOAD_TOO_LARGE, PAYLOAD_TOO_LARGE) \ - XX(414, URI_TOO_LONG, URI_TOO_LONG) \ - XX(415, UNSUPPORTED_MEDIA_TYPE, UNSUPPORTED_MEDIA_TYPE) \ - XX(416, RANGE_NOT_SATISFIABLE, RANGE_NOT_SATISFIABLE) \ - XX(417, EXPECTATION_FAILED, EXPECTATION_FAILED) \ - XX(418, IM_A_TEAPOT, IM_A_TEAPOT) \ - XX(419, PAGE_EXPIRED, PAGE_EXPIRED) \ - XX(420, ENHANCE_YOUR_CALM, ENHANCE_YOUR_CALM) \ - XX(421, MISDIRECTED_REQUEST, MISDIRECTED_REQUEST) \ - XX(422, UNPROCESSABLE_ENTITY, UNPROCESSABLE_ENTITY) \ - XX(423, LOCKED, LOCKED) \ - XX(424, FAILED_DEPENDENCY, FAILED_DEPENDENCY) \ - XX(425, TOO_EARLY, TOO_EARLY) \ - XX(426, UPGRADE_REQUIRED, UPGRADE_REQUIRED) \ - XX(428, PRECONDITION_REQUIRED, PRECONDITION_REQUIRED) \ - XX(429, TOO_MANY_REQUESTS, TOO_MANY_REQUESTS) \ - XX(430, REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL, REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL) \ - XX(431, REQUEST_HEADER_FIELDS_TOO_LARGE, REQUEST_HEADER_FIELDS_TOO_LARGE) \ - XX(440, LOGIN_TIMEOUT, LOGIN_TIMEOUT) \ - XX(444, NO_RESPONSE, NO_RESPONSE) \ - XX(449, RETRY_WITH, RETRY_WITH) \ - XX(450, BLOCKED_BY_PARENTAL_CONTROL, BLOCKED_BY_PARENTAL_CONTROL) \ - XX(451, UNAVAILABLE_FOR_LEGAL_REASONS, UNAVAILABLE_FOR_LEGAL_REASONS) \ - XX(460, CLIENT_CLOSED_LOAD_BALANCED_REQUEST, CLIENT_CLOSED_LOAD_BALANCED_REQUEST) \ - XX(463, INVALID_X_FORWARDED_FOR, INVALID_X_FORWARDED_FOR) \ - XX(494, REQUEST_HEADER_TOO_LARGE, REQUEST_HEADER_TOO_LARGE) \ - XX(495, SSL_CERTIFICATE_ERROR, SSL_CERTIFICATE_ERROR) \ - XX(496, SSL_CERTIFICATE_REQUIRED, SSL_CERTIFICATE_REQUIRED) \ - XX(497, HTTP_REQUEST_SENT_TO_HTTPS_PORT, HTTP_REQUEST_SENT_TO_HTTPS_PORT) \ - XX(498, INVALID_TOKEN, INVALID_TOKEN) \ - XX(499, CLIENT_CLOSED_REQUEST, CLIENT_CLOSED_REQUEST) \ - XX(500, INTERNAL_SERVER_ERROR, INTERNAL_SERVER_ERROR) \ - XX(501, NOT_IMPLEMENTED, NOT_IMPLEMENTED) \ - XX(502, BAD_GATEWAY, BAD_GATEWAY) \ - XX(503, SERVICE_UNAVAILABLE, SERVICE_UNAVAILABLE) \ - XX(504, GATEWAY_TIMEOUT, GATEWAY_TIMEOUT) \ - XX(505, HTTP_VERSION_NOT_SUPPORTED, HTTP_VERSION_NOT_SUPPORTED) \ - XX(506, VARIANT_ALSO_NEGOTIATES, VARIANT_ALSO_NEGOTIATES) \ - XX(507, INSUFFICIENT_STORAGE, INSUFFICIENT_STORAGE) \ - XX(508, LOOP_DETECTED, LOOP_DETECTED) \ - XX(509, BANDWIDTH_LIMIT_EXCEEDED, BANDWIDTH_LIMIT_EXCEEDED) \ - XX(510, NOT_EXTENDED, NOT_EXTENDED) \ - XX(511, NETWORK_AUTHENTICATION_REQUIRED, NETWORK_AUTHENTICATION_REQUIRED) \ - XX(520, WEB_SERVER_UNKNOWN_ERROR, WEB_SERVER_UNKNOWN_ERROR) \ - XX(521, WEB_SERVER_IS_DOWN, WEB_SERVER_IS_DOWN) \ - XX(522, CONNECTION_TIMEOUT, CONNECTION_TIMEOUT) \ - XX(523, ORIGIN_IS_UNREACHABLE, ORIGIN_IS_UNREACHABLE) \ - XX(524, TIMEOUT_OCCURED, TIMEOUT_OCCURED) \ - XX(525, SSL_HANDSHAKE_FAILED, SSL_HANDSHAKE_FAILED) \ - XX(526, INVALID_SSL_CERTIFICATE, INVALID_SSL_CERTIFICATE) \ - XX(527, RAILGUN_ERROR, RAILGUN_ERROR) \ - XX(529, SITE_IS_OVERLOADED, SITE_IS_OVERLOADED) \ - XX(530, SITE_IS_FROZEN, SITE_IS_FROZEN) \ - XX(561, IDENTITY_PROVIDER_AUTHENTICATION_ERROR, IDENTITY_PROVIDER_AUTHENTICATION_ERROR) \ - XX(598, NETWORK_READ_TIMEOUT, NETWORK_READ_TIMEOUT) \ - XX(599, NETWORK_CONNECT_TIMEOUT, NETWORK_CONNECT_TIMEOUT) \ - #ifdef __cplusplus } /* extern "C" */ #endif #endif /* LLLLHTTP_C_HEADERS_ */ - #ifndef INCLUDE_LLHTTP_API_H_ #define INCLUDE_LLHTTP_API_H_ #ifdef __cplusplus @@ -566,16 +274,10 @@ struct llhttp_settings_s { /* Possible return values 0, -1, `HPE_PAUSED` */ llhttp_cb on_message_begin; - /* Possible return values 0, -1, HPE_USER */ - llhttp_data_cb on_protocol; llhttp_data_cb on_url; llhttp_data_cb on_status; - llhttp_data_cb on_method; - llhttp_data_cb on_version; llhttp_data_cb on_header_field; llhttp_data_cb on_header_value; - llhttp_data_cb on_chunk_extension_name; - llhttp_data_cb on_chunk_extension_value; /* Possible return values: * 0 - Proceed normally @@ -588,20 +290,10 @@ struct llhttp_settings_s { */ llhttp_cb on_headers_complete; - /* Possible return values 0, -1, HPE_USER */ llhttp_data_cb on_body; /* Possible return values 0, -1, `HPE_PAUSED` */ llhttp_cb on_message_complete; - llhttp_cb on_protocol_complete; - llhttp_cb on_url_complete; - llhttp_cb on_status_complete; - llhttp_cb on_method_complete; - llhttp_cb on_version_complete; - llhttp_cb on_header_field_complete; - llhttp_cb on_header_value_complete; - llhttp_cb on_chunk_extension_name_complete; - llhttp_cb on_chunk_extension_value_complete; /* When on_chunk_header is called, the current chunk length is stored * in parser->content_length. @@ -609,7 +301,11 @@ struct llhttp_settings_s { */ llhttp_cb on_chunk_header; llhttp_cb on_chunk_complete; - llhttp_cb on_reset; + + llhttp_cb on_url_complete; + llhttp_cb on_status_complete; + llhttp_cb on_header_field_complete; + llhttp_cb on_header_value_complete; }; /* Initialize the parser with specific type and user settings. @@ -622,6 +318,8 @@ LLHTTP_EXPORT void llhttp_init(llhttp_t* parser, llhttp_type_t type, const llhttp_settings_t* settings); +#if defined(__wasm__) + LLHTTP_EXPORT llhttp_t* llhttp_alloc(llhttp_type_t type); @@ -646,6 +344,8 @@ int llhttp_get_status_code(llhttp_t* parser); LLHTTP_EXPORT uint8_t llhttp_get_upgrade(llhttp_t* parser); +#endif // defined(__wasm__) + /* Reset an already initialized parser back to the start state, preserving the * existing parser type, callback settings, user data, and lenient flags. */ @@ -759,9 +459,6 @@ const char* llhttp_errno_name(llhttp_errno_t err); LLHTTP_EXPORT const char* llhttp_method_name(llhttp_method_t method); -/* Returns textual name of HTTP status */ -LLHTTP_EXPORT -const char* llhttp_status_name(llhttp_status_t status); /* Enables/disables lenient header value parsing (disabled by default). * @@ -770,8 +467,7 @@ const char* llhttp_status_name(llhttp_status_t status); * `HPE_INVALID_HEADER_TOKEN` will be raised for incorrect header values when * lenient parsing is "on". * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** + * **(USE AT YOUR OWN RISK)** */ LLHTTP_EXPORT void llhttp_set_lenient_headers(llhttp_t* parser, int enabled); @@ -785,8 +481,7 @@ void llhttp_set_lenient_headers(llhttp_t* parser, int enabled); * request smuggling, but may be less desirable for small number of cases * involving legacy servers. * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** + * **(USE AT YOUR OWN RISK)** */ LLHTTP_EXPORT void llhttp_set_lenient_chunked_length(llhttp_t* parser, int enabled); @@ -801,105 +496,13 @@ void llhttp_set_lenient_chunked_length(llhttp_t* parser, int enabled); * but might interact badly with outdated and insecure clients. With this flag * the extra request/response will be parsed normally. * - * **Enabling this flag can pose a security issue since you will be exposed to - * poisoning attacks. USE WITH CAUTION!** + * **(USE AT YOUR OWN RISK)** */ -LLHTTP_EXPORT void llhttp_set_lenient_keep_alive(llhttp_t* parser, int enabled); -/* Enables/disables lenient handling of `Transfer-Encoding` header. - * - * Normally `llhttp` would error when a `Transfer-Encoding` has `chunked` value - * and another value after it (either in a single header or in multiple - * headers whose value are internally joined using `, `). - * This is mandated by the spec to reliably determine request body size and thus - * avoid request smuggling. - * With this flag the extra value will be parsed normally. - * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_transfer_encoding(llhttp_t* parser, int enabled); - -/* Enables/disables lenient handling of HTTP version. - * - * Normally `llhttp` would error when the HTTP version in the request or status line - * is not `0.9`, `1.0`, `1.1` or `2.0`. - * With this flag the invalid value will be parsed normally. - * - * **Enabling this flag can pose a security issue since you will allow unsupported - * HTTP versions. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_version(llhttp_t* parser, int enabled); - -/* Enables/disables lenient handling of additional data received after a message ends - * and keep-alive is disabled. - * - * Normally `llhttp` would error when additional unexpected data is received if the message - * contains the `Connection` header with `close` value. - * With this flag the extra data will discarded without throwing an error. - * - * **Enabling this flag can pose a security issue since you will be exposed to - * poisoning attacks. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_data_after_close(llhttp_t* parser, int enabled); - -/* Enables/disables lenient handling of incomplete CRLF sequences. - * - * Normally `llhttp` would error when a CR is not followed by LF when terminating the - * request line, the status line, the headers or a chunk header. - * With this flag only a CR is required to terminate such sections. - * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_optional_lf_after_cr(llhttp_t* parser, int enabled); - -/* - * Enables/disables lenient handling of line separators. - * - * Normally `llhttp` would error when a LF is not preceded by CR when terminating the - * request line, the status line, the headers, a chunk header or a chunk data. - * With this flag only a LF is required to terminate such sections. - * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_optional_cr_before_lf(llhttp_t* parser, int enabled); - -/* Enables/disables lenient handling of chunks not separated via CRLF. - * - * Normally `llhttp` would error when after a chunk data a CRLF is missing before - * starting a new chunk. - * With this flag the new chunk can start immediately after the previous one. - * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_optional_crlf_after_chunk(llhttp_t* parser, int enabled); - -/* Enables/disables lenient handling of spaces after chunk size. - * - * Normally `llhttp` would error when after a chunk size is followed by one or more - * spaces are present instead of a CRLF or `;`. - * With this flag this check is disabled. - * - * **Enabling this flag can pose a security issue since you will be exposed to - * request smuggling attacks. USE WITH CAUTION!** - */ -LLHTTP_EXPORT -void llhttp_set_lenient_spaces_after_chunk_size(llhttp_t* parser, int enabled); - #ifdef __cplusplus } /* extern "C" */ #endif #endif /* INCLUDE_LLHTTP_API_H_ */ - #endif /* INCLUDE_LLHTTP_H_ */ diff --git a/src/3rdparty/rapidjson/allocators.h b/src/3rdparty/rapidjson/allocators.h index c2826e9f..8918cf76 100644 --- a/src/3rdparty/rapidjson/allocators.h +++ b/src/3rdparty/rapidjson/allocators.h @@ -19,7 +19,6 @@ #include "internal/meta.h" #include -#include #if RAPIDJSON_HAS_CXX11 #include @@ -434,7 +433,7 @@ namespace internal { template inline T* Realloc(A& a, T* old_p, size_t old_n, size_t new_n) { - RAPIDJSON_NOEXCEPT_ASSERT(old_n <= (std::numeric_limits::max)() / sizeof(T) && new_n <= (std::numeric_limits::max)() / sizeof(T)); + RAPIDJSON_NOEXCEPT_ASSERT(old_n <= SIZE_MAX / sizeof(T) && new_n <= SIZE_MAX / sizeof(T)); return static_cast(a.Realloc(old_p, old_n * sizeof(T), new_n * sizeof(T))); } @@ -497,9 +496,9 @@ public: #endif /* implicit */ - StdAllocator(const BaseAllocator& baseAllocator) RAPIDJSON_NOEXCEPT : + StdAllocator(const BaseAllocator& allocator) RAPIDJSON_NOEXCEPT : allocator_type(), - baseAllocator_(baseAllocator) + baseAllocator_(allocator) { } ~StdAllocator() RAPIDJSON_NOEXCEPT diff --git a/src/3rdparty/rapidjson/document.h b/src/3rdparty/rapidjson/document.h index 5b1d8579..660e14eb 100644 --- a/src/3rdparty/rapidjson/document.h +++ b/src/3rdparty/rapidjson/document.h @@ -75,7 +75,7 @@ class GenericDocument; User can define this to use CrtAllocator or MemoryPoolAllocator. */ #ifndef RAPIDJSON_DEFAULT_ALLOCATOR -#define RAPIDJSON_DEFAULT_ALLOCATOR ::RAPIDJSON_NAMESPACE::MemoryPoolAllocator<::RAPIDJSON_NAMESPACE::CrtAllocator> +#define RAPIDJSON_DEFAULT_ALLOCATOR MemoryPoolAllocator #endif /*! \def RAPIDJSON_DEFAULT_STACK_ALLOCATOR @@ -85,7 +85,7 @@ class GenericDocument; User can define this to use CrtAllocator or MemoryPoolAllocator. */ #ifndef RAPIDJSON_DEFAULT_STACK_ALLOCATOR -#define RAPIDJSON_DEFAULT_STACK_ALLOCATOR ::RAPIDJSON_NAMESPACE::CrtAllocator +#define RAPIDJSON_DEFAULT_STACK_ALLOCATOR CrtAllocator #endif /*! \def RAPIDJSON_VALUE_DEFAULT_OBJECT_CAPACITY @@ -1033,7 +1033,7 @@ public: return false; for (ConstMemberIterator lhsMemberItr = MemberBegin(); lhsMemberItr != MemberEnd(); ++lhsMemberItr) { typename RhsType::ConstMemberIterator rhsMemberItr = rhs.FindMember(lhsMemberItr->name); - if (rhsMemberItr == rhs.MemberEnd() || (!(lhsMemberItr->value == rhsMemberItr->value))) + if (rhsMemberItr == rhs.MemberEnd() || lhsMemberItr->value != rhsMemberItr->value) return false; } return true; @@ -1042,7 +1042,7 @@ public: if (data_.a.size != rhs.data_.a.size) return false; for (SizeType i = 0; i < data_.a.size; i++) - if (!((*this)[i] == rhs[i])) + if ((*this)[i] != rhs[i]) return false; return true; @@ -1078,7 +1078,6 @@ public: */ template RAPIDJSON_DISABLEIF_RETURN((internal::OrExpr,internal::IsGenericValue >), (bool)) operator==(const T& rhs) const { return *this == GenericValue(rhs); } -#ifndef __cpp_impl_three_way_comparison //! Not-equal-to operator /*! \return !(*this == rhs) */ @@ -1093,6 +1092,7 @@ public: */ template RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); } +#ifndef __cpp_lib_three_way_comparison //! Equal-to operator with arbitrary types (symmetric version) /*! \return (rhs == lhs) */ @@ -1230,28 +1230,13 @@ public: else { RAPIDJSON_ASSERT(false); // see above note -#if RAPIDJSON_HAS_CXX11 - // Use thread-local storage to prevent races between threads. - // Use static buffer and placement-new to prevent destruction, with - // alignas() to ensure proper alignment. - alignas(GenericValue) thread_local static char buffer[sizeof(GenericValue)]; + // This will generate -Wexit-time-destructors in clang + // static GenericValue NullValue; + // return NullValue; + + // Use static buffer and placement-new to prevent destruction + static char buffer[sizeof(GenericValue)]; return *new (buffer) GenericValue(); -#elif defined(_MSC_VER) && _MSC_VER < 1900 - // There's no way to solve both thread locality and proper alignment - // simultaneously. - __declspec(thread) static char buffer[sizeof(GenericValue)]; - return *new (buffer) GenericValue(); -#elif defined(__GNUC__) || defined(__clang__) - // This will generate -Wexit-time-destructors in clang, but that's - // better than having under-alignment. - __thread static GenericValue buffer; - return buffer; -#else - // Don't know what compiler this is, so don't know how to ensure - // thread-locality. - static GenericValue buffer; - return buffer; -#endif } } template @@ -2445,14 +2430,13 @@ private: data_.f.flags = kShortStringFlag; data_.ss.SetLength(s.length); str = data_.ss.str; - std::memmove(str, s, s.length * sizeof(Ch)); } else { data_.f.flags = kCopyStringFlag; data_.s.length = s.length; str = static_cast(allocator.Malloc((s.length + 1) * sizeof(Ch))); SetStringPointer(str); - std::memcpy(str, s, s.length * sizeof(Ch)); } + std::memcpy(str, s, s.length * sizeof(Ch)); str[s.length] = '\0'; } @@ -2502,7 +2486,6 @@ public: typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding. typedef GenericValue ValueType; //!< Value type of the document. typedef Allocator AllocatorType; //!< Allocator type from template parameter. - typedef StackAllocator StackAllocatorType; //!< StackAllocator type from template parameter. //! Constructor /*! Creates an empty document of specified type. diff --git a/src/3rdparty/rapidjson/encodings.h b/src/3rdparty/rapidjson/encodings.h index a5d88d39..f9f1ed18 100644 --- a/src/3rdparty/rapidjson/encodings.h +++ b/src/3rdparty/rapidjson/encodings.h @@ -177,10 +177,10 @@ struct UTF8 { template static bool Validate(InputStream& is, OutputStream& os) { -#define RAPIDJSON_COPY() if (c != '\0') os.Put(c = is.Take()) +#define RAPIDJSON_COPY() os.Put(c = is.Take()) #define RAPIDJSON_TRANS(mask) result &= ((GetRange(static_cast(c)) & mask) != 0) #define RAPIDJSON_TAIL() RAPIDJSON_COPY(); RAPIDJSON_TRANS(0x70) - Ch c = static_cast(-1); + Ch c; RAPIDJSON_COPY(); if (!(c & 0x80)) return true; diff --git a/src/3rdparty/rapidjson/error/en.h b/src/3rdparty/rapidjson/error/en.h index c87b04eb..7c620a2e 100644 --- a/src/3rdparty/rapidjson/error/en.h +++ b/src/3rdparty/rapidjson/error/en.h @@ -104,69 +104,15 @@ inline const RAPIDJSON_ERROR_CHARTYPE* GetValidateError_En(ValidateErrorCode val case kValidateErrorType: return RAPIDJSON_ERROR_STRING("Property has a type '%actual' that is not in the following list: '%expected'."); case kValidateErrorOneOf: return RAPIDJSON_ERROR_STRING("Property did not match any of the sub-schemas specified by 'oneOf', refer to following errors."); - case kValidateErrorOneOfMatch: return RAPIDJSON_ERROR_STRING("Property matched more than one of the sub-schemas specified by 'oneOf', indices '%matches'."); + case kValidateErrorOneOfMatch: return RAPIDJSON_ERROR_STRING("Property matched more than one of the sub-schemas specified by 'oneOf'."); case kValidateErrorAllOf: return RAPIDJSON_ERROR_STRING("Property did not match all of the sub-schemas specified by 'allOf', refer to following errors."); case kValidateErrorAnyOf: return RAPIDJSON_ERROR_STRING("Property did not match any of the sub-schemas specified by 'anyOf', refer to following errors."); case kValidateErrorNot: return RAPIDJSON_ERROR_STRING("Property matched the sub-schema specified by 'not'."); - case kValidateErrorReadOnly: return RAPIDJSON_ERROR_STRING("Property is read-only but has been provided when validation is for writing."); - case kValidateErrorWriteOnly: return RAPIDJSON_ERROR_STRING("Property is write-only but has been provided when validation is for reading."); - default: return RAPIDJSON_ERROR_STRING("Unknown error."); } } -//! Maps error code of schema document compilation into error message. -/*! - \ingroup RAPIDJSON_ERRORS - \param schemaErrorCode Error code obtained from compiling the schema document. - \return the error message. - \note User can make a copy of this function for localization. - Using switch-case is safer for future modification of error codes. -*/ - inline const RAPIDJSON_ERROR_CHARTYPE* GetSchemaError_En(SchemaErrorCode schemaErrorCode) { - switch (schemaErrorCode) { - case kSchemaErrorNone: return RAPIDJSON_ERROR_STRING("No error."); - - case kSchemaErrorStartUnknown: return RAPIDJSON_ERROR_STRING("Pointer '%value' to start of schema does not resolve to a location in the document."); - case kSchemaErrorRefPlainName: return RAPIDJSON_ERROR_STRING("$ref fragment '%value' must be a JSON pointer."); - case kSchemaErrorRefInvalid: return RAPIDJSON_ERROR_STRING("$ref must not be an empty string."); - case kSchemaErrorRefPointerInvalid: return RAPIDJSON_ERROR_STRING("$ref fragment '%value' is not a valid JSON pointer at offset '%offset'."); - case kSchemaErrorRefUnknown: return RAPIDJSON_ERROR_STRING("$ref '%value' does not resolve to a location in the target document."); - case kSchemaErrorRefCyclical: return RAPIDJSON_ERROR_STRING("$ref '%value' is cyclical."); - case kSchemaErrorRefNoRemoteProvider: return RAPIDJSON_ERROR_STRING("$ref is remote but there is no remote provider."); - case kSchemaErrorRefNoRemoteSchema: return RAPIDJSON_ERROR_STRING("$ref '%value' is remote but the remote provider did not return a schema."); - case kSchemaErrorRegexInvalid: return RAPIDJSON_ERROR_STRING("Invalid regular expression '%value' in 'pattern' or 'patternProperties'."); - case kSchemaErrorSpecUnknown: return RAPIDJSON_ERROR_STRING("JSON schema draft or OpenAPI version is not recognized."); - case kSchemaErrorSpecUnsupported: return RAPIDJSON_ERROR_STRING("JSON schema draft or OpenAPI version is not supported."); - case kSchemaErrorSpecIllegal: return RAPIDJSON_ERROR_STRING("Both JSON schema draft and OpenAPI version found in document."); - case kSchemaErrorReadOnlyAndWriteOnly: return RAPIDJSON_ERROR_STRING("Property must not be both 'readOnly' and 'writeOnly'."); - - default: return RAPIDJSON_ERROR_STRING("Unknown error."); - } - } - -//! Maps error code of pointer parse into error message. -/*! - \ingroup RAPIDJSON_ERRORS - \param pointerParseErrorCode Error code obtained from pointer parse. - \return the error message. - \note User can make a copy of this function for localization. - Using switch-case is safer for future modification of error codes. -*/ -inline const RAPIDJSON_ERROR_CHARTYPE* GetPointerParseError_En(PointerParseErrorCode pointerParseErrorCode) { - switch (pointerParseErrorCode) { - case kPointerParseErrorNone: return RAPIDJSON_ERROR_STRING("No error."); - - case kPointerParseErrorTokenMustBeginWithSolidus: return RAPIDJSON_ERROR_STRING("A token must begin with a '/'."); - case kPointerParseErrorInvalidEscape: return RAPIDJSON_ERROR_STRING("Invalid escape."); - case kPointerParseErrorInvalidPercentEncoding: return RAPIDJSON_ERROR_STRING("Invalid percent encoding in URI fragment."); - case kPointerParseErrorCharacterMustPercentEncode: return RAPIDJSON_ERROR_STRING("A character must be percent encoded in a URI fragment."); - - default: return RAPIDJSON_ERROR_STRING("Unknown error."); - } -} - RAPIDJSON_NAMESPACE_END #ifdef __clang__ diff --git a/src/3rdparty/rapidjson/error/error.h b/src/3rdparty/rapidjson/error/error.h index cae345db..5c890ba0 100644 --- a/src/3rdparty/rapidjson/error/error.h +++ b/src/3rdparty/rapidjson/error/error.h @@ -42,7 +42,7 @@ RAPIDJSON_DIAG_OFF(padded) /////////////////////////////////////////////////////////////////////////////// // RAPIDJSON_ERROR_STRING -//! Macro for converting string literal to \ref RAPIDJSON_ERROR_CHARTYPE[]. +//! Macro for converting string literial to \ref RAPIDJSON_ERROR_CHARTYPE[]. /*! \ingroup RAPIDJSON_ERRORS By default this conversion macro does nothing. On Windows, user can define this macro as \c _T(x) for supporting both @@ -185,17 +185,14 @@ enum ValidateErrorCode { kValidateErrorPatternProperties, //!< See other errors. kValidateErrorDependencies, //!< Object has missing property or schema dependencies. - kValidateErrorEnum, //!< Property has a value that is not one of its allowed enumerated values. - kValidateErrorType, //!< Property has a type that is not allowed by the schema. + kValidateErrorEnum, //!< Property has a value that is not one of its allowed enumerated values + kValidateErrorType, //!< Property has a type that is not allowed by the schema.. kValidateErrorOneOf, //!< Property did not match any of the sub-schemas specified by 'oneOf'. kValidateErrorOneOfMatch, //!< Property matched more than one of the sub-schemas specified by 'oneOf'. kValidateErrorAllOf, //!< Property did not match all of the sub-schemas specified by 'allOf'. kValidateErrorAnyOf, //!< Property did not match any of the sub-schemas specified by 'anyOf'. - kValidateErrorNot, //!< Property matched the sub-schema specified by 'not'. - - kValidateErrorReadOnly, //!< Property is read-only but has been provided when validation is for writing - kValidateErrorWriteOnly //!< Property is write-only but has been provided when validation is for reading + kValidateErrorNot //!< Property matched the sub-schema specified by 'not'. }; //! Function pointer type of GetValidateError(). @@ -210,72 +207,6 @@ enum ValidateErrorCode { */ typedef const RAPIDJSON_ERROR_CHARTYPE* (*GetValidateErrorFunc)(ValidateErrorCode); -/////////////////////////////////////////////////////////////////////////////// -// SchemaErrorCode - -//! Error codes when validating. -/*! \ingroup RAPIDJSON_ERRORS - \see GenericSchemaValidator -*/ -enum SchemaErrorCode { - kSchemaErrorNone = 0, //!< No error. - - kSchemaErrorStartUnknown, //!< Pointer to start of schema does not resolve to a location in the document - kSchemaErrorRefPlainName, //!< $ref fragment must be a JSON pointer - kSchemaErrorRefInvalid, //!< $ref must not be an empty string - kSchemaErrorRefPointerInvalid, //!< $ref fragment is not a valid JSON pointer at offset - kSchemaErrorRefUnknown, //!< $ref does not resolve to a location in the target document - kSchemaErrorRefCyclical, //!< $ref is cyclical - kSchemaErrorRefNoRemoteProvider, //!< $ref is remote but there is no remote provider - kSchemaErrorRefNoRemoteSchema, //!< $ref is remote but the remote provider did not return a schema - kSchemaErrorRegexInvalid, //!< Invalid regular expression in 'pattern' or 'patternProperties' - kSchemaErrorSpecUnknown, //!< JSON schema draft or OpenAPI version is not recognized - kSchemaErrorSpecUnsupported, //!< JSON schema draft or OpenAPI version is not supported - kSchemaErrorSpecIllegal, //!< Both JSON schema draft and OpenAPI version found in document - kSchemaErrorReadOnlyAndWriteOnly //!< Property must not be both 'readOnly' and 'writeOnly' -}; - -//! Function pointer type of GetSchemaError(). -/*! \ingroup RAPIDJSON_ERRORS - - This is the prototype for \c GetSchemaError_X(), where \c X is a locale. - User can dynamically change locale in runtime, e.g.: -\code - GetSchemaErrorFunc GetSchemaError = GetSchemaError_En; // or whatever - const RAPIDJSON_ERROR_CHARTYPE* s = GetSchemaError(validator.GetInvalidSchemaCode()); -\endcode -*/ -typedef const RAPIDJSON_ERROR_CHARTYPE* (*GetSchemaErrorFunc)(SchemaErrorCode); - -/////////////////////////////////////////////////////////////////////////////// -// PointerParseErrorCode - -//! Error code of JSON pointer parsing. -/*! \ingroup RAPIDJSON_ERRORS - \see GenericPointer::GenericPointer, GenericPointer::GetParseErrorCode -*/ -enum PointerParseErrorCode { - kPointerParseErrorNone = 0, //!< The parse is successful - - kPointerParseErrorTokenMustBeginWithSolidus, //!< A token must begin with a '/' - kPointerParseErrorInvalidEscape, //!< Invalid escape - kPointerParseErrorInvalidPercentEncoding, //!< Invalid percent encoding in URI fragment - kPointerParseErrorCharacterMustPercentEncode //!< A character must percent encoded in URI fragment -}; - -//! Function pointer type of GetPointerParseError(). -/*! \ingroup RAPIDJSON_ERRORS - - This is the prototype for \c GetPointerParseError_X(), where \c X is a locale. - User can dynamically change locale in runtime, e.g.: -\code - GetPointerParseErrorFunc GetPointerParseError = GetPointerParseError_En; // or whatever - const RAPIDJSON_ERROR_CHARTYPE* s = GetPointerParseError(pointer.GetParseErrorCode()); -\endcode -*/ -typedef const RAPIDJSON_ERROR_CHARTYPE* (*GetPointerParseErrorFunc)(PointerParseErrorCode); - - RAPIDJSON_NAMESPACE_END #ifdef __clang__ diff --git a/src/3rdparty/rapidjson/internal/biginteger.h b/src/3rdparty/rapidjson/internal/biginteger.h index 09d0387f..2e54c7f7 100644 --- a/src/3rdparty/rapidjson/internal/biginteger.h +++ b/src/3rdparty/rapidjson/internal/biginteger.h @@ -19,11 +19,7 @@ #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && defined(_M_AMD64) #include // for _umul128 -#if !defined(_ARM64EC_) #pragma intrinsic(_umul128) -#else -#pragma comment(lib,"softintrin") -#endif #endif RAPIDJSON_NAMESPACE_BEGIN @@ -259,7 +255,7 @@ private: if (low < k) (*outHigh)++; return low; -#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__) +#elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__) __extension__ typedef unsigned __int128 uint128; uint128 p = static_cast(a) * static_cast(b); p += k; diff --git a/src/3rdparty/rapidjson/internal/diyfp.h b/src/3rdparty/rapidjson/internal/diyfp.h index 1f60fb60..a40797ec 100644 --- a/src/3rdparty/rapidjson/internal/diyfp.h +++ b/src/3rdparty/rapidjson/internal/diyfp.h @@ -25,11 +25,7 @@ #if defined(_MSC_VER) && defined(_M_AMD64) && !defined(__INTEL_COMPILER) #include -#if !defined(_ARM64EC_) #pragma intrinsic(_umul128) -#else -#pragma comment(lib,"softintrin") -#endif #endif RAPIDJSON_NAMESPACE_BEGIN @@ -79,7 +75,7 @@ struct DiyFp { if (l & (uint64_t(1) << 63)) // rounding h++; return DiyFp(h, e + rhs.e + 64); -#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__) +#elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__) __extension__ typedef unsigned __int128 uint128; uint128 p = static_cast(f) * static_cast(rhs.f); uint64_t h = static_cast(p >> 64); diff --git a/src/3rdparty/rapidjson/internal/dtoa.h b/src/3rdparty/rapidjson/internal/dtoa.h index 91c5756d..aa27f7b6 100644 --- a/src/3rdparty/rapidjson/internal/dtoa.h +++ b/src/3rdparty/rapidjson/internal/dtoa.h @@ -58,11 +58,11 @@ inline int CountDecimalDigit32(uint32_t n) { } inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* K) { - static const uint64_t kPow10[] = { 1ULL, 10ULL, 100ULL, 1000ULL, 10000ULL, 100000ULL, 1000000ULL, 10000000ULL, 100000000ULL, - 1000000000ULL, 10000000000ULL, 100000000000ULL, 1000000000000ULL, - 10000000000000ULL, 100000000000000ULL, 1000000000000000ULL, - 10000000000000000ULL, 100000000000000000ULL, 1000000000000000000ULL, - 10000000000000000000ULL }; + static const uint64_t kPow10[] = { 1U, 10U, 100U, 1000U, 10000U, 100000U, 1000000U, 10000000U, 100000000U, + 1000000000U, 10000000000U, 100000000000U, 1000000000000U, + 10000000000000U, 100000000000000U, 1000000000000000U, + 10000000000000000U, 100000000000000000U, 1000000000000000000U, + 10000000000000000000U }; const DiyFp one(uint64_t(1) << -Mp.e, Mp.e); const DiyFp wp_w = Mp - W; uint32_t p1 = static_cast(Mp.f >> -one.e); diff --git a/src/3rdparty/rapidjson/internal/regex.h b/src/3rdparty/rapidjson/internal/regex.h index c412d525..e3712610 100644 --- a/src/3rdparty/rapidjson/internal/regex.h +++ b/src/3rdparty/rapidjson/internal/regex.h @@ -615,7 +615,7 @@ public: RAPIDJSON_ASSERT(regex_.IsValid()); if (!allocator_) ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator)(); - stateSet_ = static_cast(allocator_->Malloc(GetStateSetSize())); + stateSet_ = static_cast(allocator_->Malloc(GetStateSetSize())); state0_.template Reserve(regex_.stateCount_); state1_.template Reserve(regex_.stateCount_); } diff --git a/src/3rdparty/rapidjson/internal/strtod.h b/src/3rdparty/rapidjson/internal/strtod.h index 3fbd7ae1..62a42c69 100644 --- a/src/3rdparty/rapidjson/internal/strtod.h +++ b/src/3rdparty/rapidjson/internal/strtod.h @@ -134,7 +134,7 @@ inline bool StrtodDiyFp(const Ch* decimals, int dLen, int dExp, double* result) int i = 0; // 2^64 - 1 = 18446744073709551615, 1844674407370955161 = 0x1999999999999999 for (; i < dLen; i++) { if (significand > RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) || - (significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] >= Ch('5'))) + (significand == RAPIDJSON_UINT64_C2(0x19999999, 0x99999999) && decimals[i] > Ch('5'))) break; significand = significand * 10u + static_cast(decimals[i] - Ch('0')); } diff --git a/src/3rdparty/rapidjson/pointer.h b/src/3rdparty/rapidjson/pointer.h index 32fbf88e..d89f943c 100644 --- a/src/3rdparty/rapidjson/pointer.h +++ b/src/3rdparty/rapidjson/pointer.h @@ -18,7 +18,6 @@ #include "document.h" #include "uri.h" #include "internal/itoa.h" -#include "error/error.h" // PointerParseErrorCode #ifdef __clang__ RAPIDJSON_DIAG_PUSH @@ -28,16 +27,23 @@ RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_OFF(4512) // assignment operator could not be generated #endif -#if defined(RAPIDJSON_CPLUSPLUS) && RAPIDJSON_CPLUSPLUS >= 201703L -#define RAPIDJSON_IF_CONSTEXPR if constexpr -#else -#define RAPIDJSON_IF_CONSTEXPR if -#endif - RAPIDJSON_NAMESPACE_BEGIN static const SizeType kPointerInvalidIndex = ~SizeType(0); //!< Represents an invalid index in GenericPointer::Token +//! Error code of parsing. +/*! \ingroup RAPIDJSON_ERRORS + \see GenericPointer::GenericPointer, GenericPointer::GetParseErrorCode +*/ +enum PointerParseErrorCode { + kPointerParseErrorNone = 0, //!< The parse is successful + + kPointerParseErrorTokenMustBeginWithSolidus, //!< A token must begin with a '/' + kPointerParseErrorInvalidEscape, //!< Invalid escape + kPointerParseErrorInvalidPercentEncoding, //!< Invalid percent encoding in URI fragment + kPointerParseErrorCharacterMustPercentEncode //!< A character must percent encoded in URI fragment +}; + /////////////////////////////////////////////////////////////////////////////// // GenericPointer @@ -78,7 +84,7 @@ public: typedef GenericUri UriType; - //! A token is the basic units of internal representation. + //! A token is the basic units of internal representation. /*! A JSON pointer string representation "/foo/123" is parsed to two tokens: "foo" and 123. 123 will be represented in both numeric form and string form. @@ -297,7 +303,7 @@ public: SizeType length = static_cast(end - buffer); buffer[length] = '\0'; - RAPIDJSON_IF_CONSTEXPR (sizeof(Ch) == 1) { + if (sizeof(Ch) == 1) { Token token = { reinterpret_cast(buffer), length, index }; return Append(token, allocator); } @@ -896,16 +902,10 @@ private: std::memcpy(nameBuffer_, rhs.nameBuffer_, nameBufferSize * sizeof(Ch)); } - // The names of each token point to a string in the nameBuffer_. The - // previous memcpy copied over string pointers into the rhs.nameBuffer_, - // but they should point to the strings in the new nameBuffer_. - for (size_t i = 0; i < rhs.tokenCount_; ++i) { - // The offset between the string address and the name buffer should - // still be constant, so we can just get this offset and set each new - // token name according the new buffer start + the known offset. - std::ptrdiff_t name_offset = rhs.tokens_[i].name - rhs.nameBuffer_; - tokens_[i].name = nameBuffer_ + name_offset; - } + // Adjust pointers to name buffer + std::ptrdiff_t diff = nameBuffer_ - rhs.nameBuffer_; + for (Token *t = tokens_; t != tokens_ + rhs.tokenCount_; ++t) + t->name += diff; return nameBuffer_ + nameBufferSize; } diff --git a/src/3rdparty/rapidjson/rapidjson.h b/src/3rdparty/rapidjson/rapidjson.h index fa7db400..d5f83f70 100644 --- a/src/3rdparty/rapidjson/rapidjson.h +++ b/src/3rdparty/rapidjson/rapidjson.h @@ -195,7 +195,7 @@ */ #ifndef RAPIDJSON_NO_INT64DEFINE //!@cond RAPIDJSON_HIDDEN_FROM_DOXYGEN -#if defined(_MSC_VER) && (_MSC_VER < 1800) // Visual Studio 2013 +#if defined(_MSC_VER) && (_MSC_VER < 1800) // Visual Studio 2013 #include "msinttypes/stdint.h" #include "msinttypes/inttypes.h" #else @@ -268,7 +268,7 @@ # elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) # define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN // Detect with architecture macros -# elif defined(__sparc) || defined(__sparc__) || defined(_POWER) || defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || defined(__hpux) || defined(__hppa) || defined(_MIPSEB) || defined(_POWER) || defined(__s390__) +# elif defined(__sparc) || defined(__sparc__) || defined(_POWER) || defined(__powerpc__) || defined(__ppc__) || defined(__hpux) || defined(__hppa) || defined(_MIPSEB) || defined(_POWER) || defined(__s390__) # define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN # elif defined(__i386__) || defined(__alpha__) || defined(__ia64) || defined(__ia64__) || defined(_M_IX86) || defined(_M_IA64) || defined(_M_ALPHA) || defined(__amd64) || defined(__amd64__) || defined(_M_AMD64) || defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || defined(__bfin__) # define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN diff --git a/src/3rdparty/rapidjson/reader.h b/src/3rdparty/rapidjson/reader.h index f7ef6102..542b7c00 100644 --- a/src/3rdparty/rapidjson/reader.h +++ b/src/3rdparty/rapidjson/reader.h @@ -1433,7 +1433,7 @@ private: class NumberStream : public NumberStream { typedef NumberStream Base; public: - NumberStream(GenericReader& reader, InputStream& s) : Base(reader, s), stackStream(reader.stack_) {} + NumberStream(GenericReader& reader, InputStream& is) : Base(reader, is), stackStream(reader.stack_) {} RAPIDJSON_FORCEINLINE Ch TakePush() { stackStream.Put(static_cast(Base::is.Peek())); @@ -1459,7 +1459,7 @@ private: class NumberStream : public NumberStream { typedef NumberStream Base; public: - NumberStream(GenericReader& reader, InputStream& s) : Base(reader, s) {} + NumberStream(GenericReader& reader, InputStream& is) : Base(reader, is) {} RAPIDJSON_FORCEINLINE Ch Take() { return Base::TakePush(); } }; @@ -1584,7 +1584,7 @@ private: // Parse frac = decimal-point 1*DIGIT int expFrac = 0; size_t decimalPosition; - if (!useNanOrInf && Consume(s, '.')) { + if (Consume(s, '.')) { decimalPosition = s.Length(); if (RAPIDJSON_UNLIKELY(!(s.Peek() >= '0' && s.Peek() <= '9'))) @@ -1631,7 +1631,7 @@ private: // Parse exp = e [ minus / plus ] 1*DIGIT int exp = 0; - if (!useNanOrInf && (Consume(s, 'e') || Consume(s, 'E'))) { + if (Consume(s, 'e') || Consume(s, 'E')) { if (!useDouble) { d = static_cast(use64bit ? i64 : i); useDouble = true; @@ -1694,7 +1694,7 @@ private: } else { SizeType numCharsToCopy = static_cast(s.Length()); - GenericStringStream > srcStream(s.Pop()); + GenericStringStream> srcStream(s.Pop()); StackStream dstStream(stack_); while (numCharsToCopy--) { Transcoder, TargetEncoding>::Transcode(srcStream, dstStream); diff --git a/src/3rdparty/rapidjson/schema.h b/src/3rdparty/rapidjson/schema.h index 89875d14..1db4b57c 100644 --- a/src/3rdparty/rapidjson/schema.h +++ b/src/3rdparty/rapidjson/schema.h @@ -24,9 +24,13 @@ #if !defined(RAPIDJSON_SCHEMA_USE_INTERNALREGEX) #define RAPIDJSON_SCHEMA_USE_INTERNALREGEX 1 +#else +#define RAPIDJSON_SCHEMA_USE_INTERNALREGEX 0 #endif -#if !defined(RAPIDJSON_SCHEMA_USE_STDREGEX) || !(__cplusplus >=201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)) +#if !RAPIDJSON_SCHEMA_USE_INTERNALREGEX && defined(RAPIDJSON_SCHEMA_USE_STDREGEX) && (__cplusplus >=201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)) +#define RAPIDJSON_SCHEMA_USE_STDREGEX 1 +#else #define RAPIDJSON_SCHEMA_USE_STDREGEX 0 #endif @@ -46,6 +50,10 @@ #define RAPIDJSON_SCHEMA_VERBOSE 0 #endif +#if RAPIDJSON_SCHEMA_VERBOSE +#include "stringbuffer.h" +#endif + RAPIDJSON_DIAG_PUSH #if defined(__GNUC__) @@ -70,94 +78,48 @@ RAPIDJSON_NAMESPACE_BEGIN namespace internal { -inline void PrintInvalidKeywordData(const char* keyword) { - printf(" Fail keyword: '%s'\n", keyword); +inline void PrintInvalidKeyword(const char* keyword) { + printf("Fail keyword: %s\n", keyword); } -inline void PrintInvalidKeywordData(const wchar_t* keyword) { - wprintf(L" Fail keyword: '%ls'\n", keyword); +inline void PrintInvalidKeyword(const wchar_t* keyword) { + wprintf(L"Fail keyword: %ls\n", keyword); } -inline void PrintInvalidDocumentData(const char* document) { - printf(" Fail document: '%s'\n", document); +inline void PrintInvalidDocument(const char* document) { + printf("Fail document: %s\n\n", document); } -inline void PrintInvalidDocumentData(const wchar_t* document) { - wprintf(L" Fail document: '%ls'\n", document); +inline void PrintInvalidDocument(const wchar_t* document) { + wprintf(L"Fail document: %ls\n\n", document); } -inline void PrintValidatorPointersData(const char* s, const char* d, unsigned depth) { - printf(" Sch: %*s'%s'\n Doc: %*s'%s'\n", depth * 4, " ", s, depth * 4, " ", d); +inline void PrintValidatorPointers(unsigned depth, const char* s, const char* d) { + printf("S: %*s%s\nD: %*s%s\n\n", depth * 4, " ", s, depth * 4, " ", d); } -inline void PrintValidatorPointersData(const wchar_t* s, const wchar_t* d, unsigned depth) { - wprintf(L" Sch: %*ls'%ls'\n Doc: %*ls'%ls'\n", depth * 4, L" ", s, depth * 4, L" ", d); -} - -inline void PrintSchemaIdsData(const char* base, const char* local, const char* resolved) { - printf(" Resolving id: Base: '%s', Local: '%s', Resolved: '%s'\n", base, local, resolved); -} - -inline void PrintSchemaIdsData(const wchar_t* base, const wchar_t* local, const wchar_t* resolved) { - wprintf(L" Resolving id: Base: '%ls', Local: '%ls', Resolved: '%ls'\n", base, local, resolved); -} - -inline void PrintMethodData(const char* method) { - printf("%s\n", method); -} - -inline void PrintMethodData(const char* method, bool b) { - printf("%s, Data: '%s'\n", method, b ? "true" : "false"); -} - -inline void PrintMethodData(const char* method, int64_t i) { - printf("%s, Data: '%" PRId64 "'\n", method, i); -} - -inline void PrintMethodData(const char* method, uint64_t u) { - printf("%s, Data: '%" PRIu64 "'\n", method, u); -} - -inline void PrintMethodData(const char* method, double d) { - printf("%s, Data: '%lf'\n", method, d); -} - -inline void PrintMethodData(const char* method, const char* s) { - printf("%s, Data: '%s'\n", method, s); -} - -inline void PrintMethodData(const char* method, const wchar_t* s) { - wprintf(L"%hs, Data: '%ls'\n", method, s); -} - -inline void PrintMethodData(const char* method, const char* s1, const char* s2) { - printf("%s, Data: '%s', '%s'\n", method, s1, s2); -} - -inline void PrintMethodData(const char* method, const wchar_t* s1, const wchar_t* s2) { - wprintf(L"%hs, Data: '%ls', '%ls'\n", method, s1, s2); +inline void PrintValidatorPointers(unsigned depth, const wchar_t* s, const wchar_t* d) { + wprintf(L"S: %*ls%ls\nD: %*ls%ls\n\n", depth * 4, L" ", s, depth * 4, L" ", d); } } // namespace internal #endif // RAPIDJSON_SCHEMA_VERBOSE -#ifndef RAPIDJSON_SCHEMA_PRINT -#if RAPIDJSON_SCHEMA_VERBOSE -#define RAPIDJSON_SCHEMA_PRINT(name, ...) internal::Print##name##Data(__VA_ARGS__) -#else -#define RAPIDJSON_SCHEMA_PRINT(name, ...) -#endif -#endif - /////////////////////////////////////////////////////////////////////////////// // RAPIDJSON_INVALID_KEYWORD_RETURN +#if RAPIDJSON_SCHEMA_VERBOSE +#define RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword) internal::PrintInvalidKeyword(keyword) +#else +#define RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword) +#endif + #define RAPIDJSON_INVALID_KEYWORD_RETURN(code)\ RAPIDJSON_MULTILINEMACRO_BEGIN\ context.invalidCode = code;\ context.invalidKeyword = SchemaType::GetValidateErrorKeyword(code).GetString();\ - RAPIDJSON_SCHEMA_PRINT(InvalidKeyword, context.invalidKeyword);\ + RAPIDJSON_INVALID_KEYWORD_VERBOSE(context.invalidKeyword);\ return false;\ RAPIDJSON_MULTILINEMACRO_END @@ -175,56 +137,14 @@ RAPIDJSON_MULTILINEMACRO_END #endif //! Combination of validate flags +/*! \see + */ enum ValidateFlag { kValidateNoFlags = 0, //!< No flags are set. kValidateContinueOnErrorFlag = 1, //!< Don't stop after first validation error. - kValidateReadFlag = 2, //!< Validation is for a read semantic. - kValidateWriteFlag = 4, //!< Validation is for a write semantic. kValidateDefaultFlags = RAPIDJSON_VALIDATE_DEFAULT_FLAGS //!< Default validate flags. Can be customized by defining RAPIDJSON_VALIDATE_DEFAULT_FLAGS }; -/////////////////////////////////////////////////////////////////////////////// -// Specification -enum SchemaDraft { - kDraftUnknown = -1, - kDraftNone = 0, - kDraft03 = 3, - kDraftMin = 4, //!< Current minimum supported draft - kDraft04 = 4, - kDraft05 = 5, - kDraftMax = 5, //!< Current maximum supported draft - kDraft06 = 6, - kDraft07 = 7, - kDraft2019_09 = 8, - kDraft2020_12 = 9 -}; - -enum OpenApiVersion { - kVersionUnknown = -1, - kVersionNone = 0, - kVersionMin = 2, //!< Current minimum supported version - kVersion20 = 2, - kVersion30 = 3, - kVersionMax = 3, //!< Current maximum supported version - kVersion31 = 4, -}; - -struct Specification { - Specification(SchemaDraft d) : draft(d), oapi(kVersionNone) {} - Specification(OpenApiVersion o) : oapi(o) { - if (oapi == kVersion20) draft = kDraft04; - else if (oapi == kVersion30) draft = kDraft05; - else if (oapi == kVersion31) draft = kDraft2020_12; - else draft = kDraft04; - } - ~Specification() {} - bool IsSupported() const { - return ((draft >= kDraftMin && draft <= kDraftMax) && ((oapi == kVersionNone) || (oapi >= kVersionMin && oapi <= kVersionMax))); - } - SchemaDraft draft; - OpenApiVersion oapi; -}; - /////////////////////////////////////////////////////////////////////////////// // Forward declarations @@ -314,11 +234,8 @@ public: virtual void EndDisallowedType(const typename SchemaType::ValueType& actualType) = 0; virtual void NotAllOf(ISchemaValidator** subvalidators, SizeType count) = 0; virtual void NoneOf(ISchemaValidator** subvalidators, SizeType count) = 0; - virtual void NotOneOf(ISchemaValidator** subvalidators, SizeType count) = 0; - virtual void MultipleOneOf(SizeType index1, SizeType index2) = 0; + virtual void NotOneOf(ISchemaValidator** subvalidators, SizeType count, bool matched) = 0; virtual void Disallowed() = 0; - virtual void DisallowedWhenWriting() = 0; - virtual void DisallowedWhenReading() = 0; }; @@ -363,9 +280,7 @@ public: uint64_t h = Hash(0, kObjectType); uint64_t* kv = stack_.template Pop(memberCount * 2); for (SizeType i = 0; i < memberCount; i++) - // Issue #2205 - // Hasing the key to avoid key=value cases with bug-prone zero-value hash - h ^= Hash(Hash(0, kv[i * 2]), kv[i * 2 + 1]); // Use xor to achieve member order insensitive + h ^= Hash(kv[i * 2], kv[i * 2 + 1]); // Use xor to achieve member order insensitive *stack_.template Push() = h; return true; } @@ -403,7 +318,7 @@ private: bool WriteBuffer(Type type, const void* data, size_t len) { // FNV-1a from http://isthe.com/chongo/tech/comp/fnv/ - uint64_t h = Hash(RAPIDJSON_UINT64_C2(0xcbf29ce4, 0x84222325), type); + uint64_t h = Hash(RAPIDJSON_UINT64_C2(0x84222325, 0xcbf29ce4), type); const unsigned char* d = static_cast(data); for (size_t i = 0; i < len; i++) h = Hash(h, d[i]); @@ -438,11 +353,10 @@ struct SchemaValidationContext { kPatternValidatorWithAdditionalProperty }; - SchemaValidationContext(SchemaValidatorFactoryType& f, ErrorHandlerType& eh, const SchemaType* s, unsigned fl = 0) : + SchemaValidationContext(SchemaValidatorFactoryType& f, ErrorHandlerType& eh, const SchemaType* s) : factory(f), error_handler(eh), schema(s), - flags(fl), valueSchema(), invalidKeyword(), invalidCode(), @@ -466,19 +380,13 @@ struct SchemaValidationContext { if (hasher) factory.DestroryHasher(hasher); if (validators) { - for (SizeType i = 0; i < validatorCount; i++) { - if (validators[i]) { - factory.DestroySchemaValidator(validators[i]); - } - } + for (SizeType i = 0; i < validatorCount; i++) + factory.DestroySchemaValidator(validators[i]); factory.FreeState(validators); } if (patternPropertiesValidators) { - for (SizeType i = 0; i < patternPropertiesValidatorCount; i++) { - if (patternPropertiesValidators[i]) { - factory.DestroySchemaValidator(patternPropertiesValidators[i]); - } - } + for (SizeType i = 0; i < patternPropertiesValidatorCount; i++) + factory.DestroySchemaValidator(patternPropertiesValidators[i]); factory.FreeState(patternPropertiesValidators); } if (patternPropertiesSchemas) @@ -490,7 +398,6 @@ struct SchemaValidationContext { SchemaValidatorFactoryType& factory; ErrorHandlerType& error_handler; const SchemaType* schema; - unsigned flags; const SchemaType* valueSchema; const Ch* invalidKeyword; ValidateErrorCode invalidCode; @@ -532,8 +439,7 @@ public: Schema(SchemaDocumentType* schemaDocument, const PointerType& p, const ValueType& value, const ValueType& document, AllocatorType* allocator, const UriType& id = UriType()) : allocator_(allocator), uri_(schemaDocument->GetURI(), *allocator), - id_(id, allocator), - spec_(schemaDocument->GetSpecification()), + id_(id), pointer_(p, allocator), typeless_(schemaDocument->GetTypeless()), enum_(), @@ -566,15 +472,8 @@ public: maxLength_(~SizeType(0)), exclusiveMinimum_(false), exclusiveMaximum_(false), - defaultValueLength_(0), - readOnly_(false), - writeOnly_(false), - nullable_(false) + defaultValueLength_(0) { - GenericStringBuffer sb; - p.StringifyUriFragment(sb); - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Schema", sb.GetString(), id.GetString()); - typedef typename ValueType::ConstValueIterator ConstValueIterator; typedef typename ValueType::ConstMemberIterator ConstMemberIterator; @@ -593,13 +492,10 @@ public: return; // If we have an id property, resolve it with the in-scope id - // Not supported for open api 2.0 or 3.0 - if (spec_.oapi != kVersion20 && spec_.oapi != kVersion30) if (const ValueType* v = GetMember(value, GetIdString())) { if (v->IsString()) { UriType local(*v, allocator); id_ = local.Resolve(id_, allocator); - RAPIDJSON_SCHEMA_PRINT(SchemaIds, id.GetString(), v->GetString(), id_.GetString()); } } @@ -616,9 +512,9 @@ public: if (v->IsArray() && v->Size() > 0) { enum_ = static_cast(allocator_->Malloc(sizeof(uint64_t) * v->Size())); for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr) { - typedef Hasher > EnumHasherType; + typedef Hasher > EnumHasherType; char buffer[256u + 24]; - MemoryPoolAllocator hasherAllocator(buffer, sizeof(buffer)); + MemoryPoolAllocator<> hasherAllocator(buffer, sizeof(buffer)); EnumHasherType h(&hasherAllocator, 256); itr->Accept(h); enum_[enumCount_++] = h.GetHashCode(); @@ -626,11 +522,8 @@ public: } } - if (schemaDocument) + if (schemaDocument) { AssignIfExist(allOf_, *schemaDocument, p, value, GetAllOfString(), document); - - // AnyOf, OneOf, Not not supported for open api 2.0 - if (schemaDocument && spec_.oapi != kVersion20) { AssignIfExist(anyOf_, *schemaDocument, p, value, GetAnyOfString(), document); AssignIfExist(oneOf_, *schemaDocument, p, value, GetOneOfString(), document); @@ -659,8 +552,6 @@ public: if (itr->IsString()) AddUniqueElement(allProperties, *itr); - // Dependencies not supported for open api 2.0 and 3.0 - if (spec_.oapi != kVersion20 && spec_.oapi != kVersion30) if (dependencies && dependencies->IsObject()) for (ConstMemberIterator itr = dependencies->MemberBegin(); itr != dependencies->MemberEnd(); ++itr) { AddUniqueElement(allProperties, itr->name); @@ -690,8 +581,6 @@ public: } } - // PatternProperties not supported for open api 2.0 and 3.0 - if (spec_.oapi != kVersion20 && spec_.oapi != kVersion30) if (const ValueType* v = GetMember(value, GetPatternPropertiesString())) { PointerType q = p.Append(GetPatternPropertiesString(), allocator_); patternProperties_ = static_cast(allocator_->Malloc(sizeof(PatternProperty) * v->MemberCount())); @@ -699,9 +588,8 @@ public: for (ConstMemberIterator itr = v->MemberBegin(); itr != v->MemberEnd(); ++itr) { new (&patternProperties_[patternPropertyCount_]) PatternProperty(); - PointerType r = q.Append(itr->name, allocator_); - patternProperties_[patternPropertyCount_].pattern = CreatePattern(itr->name, schemaDocument, r); - schemaDocument->CreateSchema(&patternProperties_[patternPropertyCount_].schema, r, itr->value, document, id_); + patternProperties_[patternPropertyCount_].pattern = CreatePattern(itr->name); + schemaDocument->CreateSchema(&patternProperties_[patternPropertyCount_].schema, q.Append(itr->name, allocator_), itr->value, document, id_); patternPropertyCount_++; } } @@ -716,8 +604,6 @@ public: } } - // Dependencies not supported for open api 2.0 and 3.0 - if (spec_.oapi != kVersion20 && spec_.oapi != kVersion30) if (dependencies && dependencies->IsObject()) { PointerType q = p.Append(GetDependenciesString(), allocator_); hasDependencies_ = true; @@ -769,8 +655,6 @@ public: AssignIfExist(minItems_, value, GetMinItemsString()); AssignIfExist(maxItems_, value, GetMaxItemsString()); - // AdditionalItems not supported for openapi 2.0 and 3.0 - if (spec_.oapi != kVersion20 && spec_.oapi != kVersion30) if (const ValueType* v = GetMember(value, GetAdditionalItemsString())) { if (v->IsBool()) additionalItems_ = v->GetBool(); @@ -785,7 +669,7 @@ public: AssignIfExist(maxLength_, value, GetMaxLengthString()); if (const ValueType* v = GetMember(value, GetPatternString())) - pattern_ = CreatePattern(*v, schemaDocument, p.Append(GetPatternString(), allocator_)); + pattern_ = CreatePattern(*v); // Number if (const ValueType* v = GetMember(value, GetMinimumString())) @@ -808,23 +692,6 @@ public: if (v->IsString()) defaultValueLength_ = v->GetStringLength(); - // ReadOnly - open api only (until draft 7 supported) - // WriteOnly - open api 3 only (until draft 7 supported) - // Both can't be true - if (spec_.oapi != kVersionNone) - AssignIfExist(readOnly_, value, GetReadOnlyString()); - if (spec_.oapi >= kVersion30) - AssignIfExist(writeOnly_, value, GetWriteOnlyString()); - if (readOnly_ && writeOnly_) - schemaDocument->SchemaError(kSchemaErrorReadOnlyAndWriteOnly, p); - - // Nullable - open api 3 only - // If true add 'null' as allowable type - if (spec_.oapi >= kVersion30) { - AssignIfExist(nullable_, value, GetNullableString()); - if (nullable_) - AddType(GetNullString()); - } } ~Schema() { @@ -856,16 +723,11 @@ public: return id_; } - const Specification& GetSpecification() const { - return spec_; - } - const PointerType& GetPointer() const { return pointer_; } bool BeginValue(Context& context) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::BeginValue"); if (context.inArray) { if (uniqueItems_) context.valueUniqueness = true; @@ -897,7 +759,6 @@ public: } RAPIDJSON_FORCEINLINE bool EndValue(Context& context) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::EndValue"); // Only check pattern properties if we have validators if (context.patternPropertiesValidatorCount > 0) { bool otherValid = false; @@ -961,19 +822,16 @@ public: if (oneOf_.schemas) { bool oneValid = false; - SizeType firstMatch = 0; for (SizeType i = oneOf_.begin; i < oneOf_.begin + oneOf_.count; i++) if (context.validators[i]->IsValid()) { if (oneValid) { - context.error_handler.MultipleOneOf(firstMatch, i - oneOf_.begin); + context.error_handler.NotOneOf(&context.validators[oneOf_.begin], oneOf_.count, true); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorOneOfMatch); - } else { + } else oneValid = true; - firstMatch = i - oneOf_.begin; - } } if (!oneValid) { - context.error_handler.NotOneOf(&context.validators[oneOf_.begin], oneOf_.count); + context.error_handler.NotOneOf(&context.validators[oneOf_.begin], oneOf_.count, false); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorOneOf); } } @@ -988,7 +846,6 @@ public: } bool Null(Context& context) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Null"); if (!(type_ & (1 << kNullSchemaType))) { DisallowedType(context, GetNullString()); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorType); @@ -996,43 +853,39 @@ public: return CreateParallelValidator(context); } - bool Bool(Context& context, bool b) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Bool", b); - if (!CheckBool(context, b)) - return false; + bool Bool(Context& context, bool) const { + if (!(type_ & (1 << kBooleanSchemaType))) { + DisallowedType(context, GetBooleanString()); + RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorType); + } return CreateParallelValidator(context); } bool Int(Context& context, int i) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Int", (int64_t)i); if (!CheckInt(context, i)) return false; return CreateParallelValidator(context); } bool Uint(Context& context, unsigned u) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Uint", (uint64_t)u); if (!CheckUint(context, u)) return false; return CreateParallelValidator(context); } bool Int64(Context& context, int64_t i) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Int64", i); if (!CheckInt(context, i)) return false; return CreateParallelValidator(context); } bool Uint64(Context& context, uint64_t u) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Uint64", u); if (!CheckUint(context, u)) return false; return CreateParallelValidator(context); } bool Double(Context& context, double d) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Double", d); if (!(type_ & (1 << kNumberSchemaType))) { DisallowedType(context, GetNumberString()); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorType); @@ -1051,7 +904,6 @@ public: } bool String(Context& context, const Ch* str, SizeType length, bool) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::String", str); if (!(type_ & (1 << kStringSchemaType))) { DisallowedType(context, GetStringString()); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorType); @@ -1080,7 +932,6 @@ public: } bool StartObject(Context& context) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::StartObject"); if (!(type_ & (1 << kObjectSchemaType))) { DisallowedType(context, GetObjectString()); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorType); @@ -1102,8 +953,6 @@ public: } bool Key(Context& context, const Ch* str, SizeType len, bool) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::Key", str); - if (patternProperties_) { context.patternPropertiesSchemaCount = 0; for (SizeType i = 0; i < patternPropertyCount_; i++) @@ -1155,7 +1004,6 @@ public: } bool EndObject(Context& context, SizeType memberCount) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::EndObject"); if (hasRequired_) { context.error_handler.StartMissingProperties(); for (SizeType index = 0; index < propertyCount_; index++) @@ -1203,7 +1051,6 @@ public: } bool StartArray(Context& context) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::StartArray"); context.arrayElementIndex = 0; context.inArray = true; // Ensure we note that we are in an array @@ -1216,7 +1063,6 @@ public: } bool EndArray(Context& context, SizeType elementCount) const { - RAPIDJSON_SCHEMA_PRINT(Method, "Schema::EndArray"); context.inArray = false; if (elementCount < minItems_) { @@ -1265,9 +1111,6 @@ public: case kValidateErrorAnyOf: return GetAnyOfString(); case kValidateErrorNot: return GetNotString(); - case kValidateErrorReadOnly: return GetReadOnlyString(); - case kValidateErrorWriteOnly: return GetWriteOnlyString(); - default: return GetNullString(); } } @@ -1315,14 +1158,15 @@ public: RAPIDJSON_STRING_(ExclusiveMaximum, 'e', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e', 'M', 'a', 'x', 'i', 'm', 'u', 'm') RAPIDJSON_STRING_(MultipleOf, 'm', 'u', 'l', 't', 'i', 'p', 'l', 'e', 'O', 'f') RAPIDJSON_STRING_(DefaultValue, 'd', 'e', 'f', 'a', 'u', 'l', 't') - RAPIDJSON_STRING_(Schema, '$', 's', 'c', 'h', 'e', 'm', 'a') RAPIDJSON_STRING_(Ref, '$', 'r', 'e', 'f') RAPIDJSON_STRING_(Id, 'i', 'd') - RAPIDJSON_STRING_(Swagger, 's', 'w', 'a', 'g', 'g', 'e', 'r') - RAPIDJSON_STRING_(OpenApi, 'o', 'p', 'e', 'n', 'a', 'p', 'i') - RAPIDJSON_STRING_(ReadOnly, 'r', 'e', 'a', 'd', 'O', 'n', 'l', 'y') - RAPIDJSON_STRING_(WriteOnly, 'w', 'r', 'i', 't', 'e', 'O', 'n', 'l', 'y') - RAPIDJSON_STRING_(Nullable, 'n', 'u', 'l', 'l', 'a', 'b', 'l', 'e') + + RAPIDJSON_STRING_(SchemeEnd, ':') + RAPIDJSON_STRING_(AuthStart, '/', '/') + RAPIDJSON_STRING_(QueryStart, '?') + RAPIDJSON_STRING_(FragStart, '#') + RAPIDJSON_STRING_(Slash, '/') + RAPIDJSON_STRING_(Dot, '.') #undef RAPIDJSON_STRING_ @@ -1397,11 +1241,10 @@ private: #if RAPIDJSON_SCHEMA_USE_INTERNALREGEX template - RegexType* CreatePattern(const ValueType& value, SchemaDocumentType* sd, const PointerType& p) { + RegexType* CreatePattern(const ValueType& value) { if (value.IsString()) { RegexType* r = new (allocator_->Malloc(sizeof(RegexType))) RegexType(value.GetString(), allocator_); if (!r->IsValid()) { - sd->SchemaErrorValue(kSchemaErrorRegexInvalid, p, value.GetString(), value.GetStringLength()); r->~RegexType(); AllocatorType::Free(r); r = 0; @@ -1417,14 +1260,13 @@ private: } #elif RAPIDJSON_SCHEMA_USE_STDREGEX template - RegexType* CreatePattern(const ValueType& value, SchemaDocumentType* sd, const PointerType& p) { + RegexType* CreatePattern(const ValueType& value) { if (value.IsString()) { RegexType *r = static_cast(allocator_->Malloc(sizeof(RegexType))); try { return new (r) RegexType(value.GetString(), std::size_t(value.GetStringLength()), std::regex_constants::ECMAScript); } - catch (const std::regex_error& e) { - sd->SchemaErrorValue(kSchemaErrorRegexInvalid, p, value.GetString(), value.GetStringLength()); + catch (const std::regex_error&) { AllocatorType::Free(r); } } @@ -1437,9 +1279,7 @@ private: } #else template - RegexType* CreatePattern(const ValueType&) { - return 0; - } + RegexType* CreatePattern(const ValueType&) { return 0; } static bool IsPatternMatch(const RegexType*, const Ch *, SizeType) { return true; } #endif // RAPIDJSON_SCHEMA_USE_STDREGEX @@ -1454,9 +1294,6 @@ private: else if (type == GetNumberString() ) type_ |= (1 << kNumberSchemaType) | (1 << kIntegerSchemaType); } - // Creates parallel validators for allOf, anyOf, oneOf, not and schema dependencies, if required. - // Also creates a hasher for enums and array uniqueness, if required. - // Also a useful place to add type-independent error checks. bool CreateParallelValidator(Context& context) const { if (enum_ || context.arrayUniqueness) context.hasher = context.factory.CreateHasher(); @@ -1464,7 +1301,6 @@ private: if (validatorCount_) { RAPIDJSON_ASSERT(context.validators == 0); context.validators = static_cast(context.factory.MallocState(sizeof(ISchemaValidator*) * validatorCount_)); - std::memset(context.validators, 0, sizeof(ISchemaValidator*) * validatorCount_); context.validatorCount = validatorCount_; // Always return after first failure for these sub-validators @@ -1487,16 +1323,6 @@ private: } } - // Add any other type-independent checks here - if (readOnly_ && (context.flags & kValidateWriteFlag)) { - context.error_handler.DisallowedWhenWriting(); - RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorReadOnly); - } - if (writeOnly_ && (context.flags & kValidateReadFlag)) { - context.error_handler.DisallowedWhenReading(); - RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorWriteOnly); - } - return true; } @@ -1519,14 +1345,6 @@ private: return false; } - bool CheckBool(Context& context, bool) const { - if (!(type_ & (1 << kBooleanSchemaType))) { - DisallowedType(context, GetBooleanString()); - RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorType); - } - return true; - } - bool CheckInt(Context& context, int64_t i) const { if (!(type_ & ((1 << kIntegerSchemaType) | (1 << kNumberSchemaType)))) { DisallowedType(context, GetIntegerString()); @@ -1641,12 +1459,9 @@ private: bool CheckDoubleMultipleOf(Context& context, double d) const { double a = std::abs(d), b = std::abs(multipleOf_.GetDouble()); - double q = a / b; - double qRounded = std::floor(q + 0.5); - double scaledEpsilon = (q + qRounded) * std::numeric_limits::epsilon(); - double difference = std::abs(qRounded - q); - bool isMultiple = difference <= scaledEpsilon || difference < (std::numeric_limits::min)(); - if (!isMultiple) { + double q = std::floor(a / b); + double r = a - q * b; + if (r > 0.0) { context.error_handler.NotMultipleOf(d, multipleOf_); RAPIDJSON_INVALID_KEYWORD_RETURN(kValidateErrorMultipleOf); } @@ -1695,7 +1510,6 @@ private: AllocatorType* allocator_; SValue uri_; UriType id_; - Specification spec_; PointerType pointer_; const SchemaType* typeless_; uint64_t* enum_; @@ -1740,10 +1554,6 @@ private: bool exclusiveMaximum_; SizeType defaultValueLength_; - - bool readOnly_; - bool writeOnly_; - bool nullable_; }; template @@ -1761,7 +1571,7 @@ struct TokenHelper { template struct TokenHelper { RAPIDJSON_FORCEINLINE static void AppendIndexToken(Stack& documentStack, SizeType index) { - RAPIDJSON_IF_CONSTEXPR (sizeof(SizeType) == 4) { + if (sizeof(SizeType) == 4) { char *buffer = documentStack.template Push(1 + 10); // '/' + uint *buffer++ = '/'; const char* end = internal::u32toa(index, buffer); @@ -1790,13 +1600,7 @@ public: virtual ~IGenericRemoteSchemaDocumentProvider() {} virtual const SchemaDocumentType* GetRemoteDocument(const Ch* uri, SizeType length) = 0; - virtual const SchemaDocumentType* GetRemoteDocument(const GenericUri uri, Specification& spec) { - // Default implementation just calls through for compatibility - // Following line suppresses unused parameter warning - (void)spec; - // printf("GetRemoteDocument: %d %d\n", spec.draft, spec.oapi); - return GetRemoteDocument(uri.GetBaseString(), uri.GetBaseStringLength()); - } + virtual const SchemaDocumentType* GetRemoteDocument(GenericUri uri) { return GetRemoteDocument(uri.GetBaseString(), uri.GetBaseStringLength()); } }; /////////////////////////////////////////////////////////////////////////////// @@ -1821,9 +1625,8 @@ public: typedef typename EncodingType::Ch Ch; typedef internal::Schema SchemaType; typedef GenericPointer PointerType; - typedef GenericValue GValue; + typedef GenericValue SValue; typedef GenericUri UriType; - typedef GenericStringRef StringRefType; friend class internal::Schema; template friend class GenericSchemaValidator; @@ -1838,24 +1641,18 @@ public: \param remoteProvider An optional remote schema document provider for resolving remote reference. Can be null. \param allocator An optional allocator instance for allocating memory. Can be null. \param pointer An optional JSON pointer to the start of the schema document - \param spec Optional schema draft or OpenAPI version. Used if no specification in document. Defaults to draft-04. */ explicit GenericSchemaDocument(const ValueType& document, const Ch* uri = 0, SizeType uriLength = 0, IRemoteSchemaDocumentProviderType* remoteProvider = 0, Allocator* allocator = 0, - const PointerType& pointer = PointerType(), // PR #1393 - const Specification& spec = Specification(kDraft04)) : + const PointerType& pointer = PointerType()) : // PR #1393 remoteProvider_(remoteProvider), allocator_(allocator), ownAllocator_(), root_(), typeless_(), schemaMap_(allocator, kInitialSchemaMapSize), - schemaRef_(allocator, kInitialSchemaRefSize), - spec_(spec), - error_(kObjectType), - currentError_() + schemaRef_(allocator, kInitialSchemaRefSize) { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaDocument::GenericSchemaDocument"); if (!allocator_) ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator)(); @@ -1866,10 +1663,6 @@ public: typeless_ = static_cast(allocator_->Malloc(sizeof(SchemaType))); new (typeless_) SchemaType(this, PointerType(), ValueType(kObjectType).Move(), ValueType(kObjectType).Move(), allocator_, docId_); - // Establish the schema draft or open api version. - // We only ever look for '$schema' or 'swagger' or 'openapi' at the root of the document. - SetSchemaSpecification(document); - // Generate root schema, it will call CreateSchema() to create sub-schemas, // And call HandleRefSchema() if there are $ref. // PR #1393 use input pointer if supplied @@ -1880,11 +1673,6 @@ public: else if (const ValueType* v = pointer.Get(document)) { CreateSchema(&root_, pointer, *v, document, docId_); } - else { - GenericStringBuffer sb; - pointer.StringifyUriFragment(sb); - SchemaErrorValue(kSchemaErrorStartUnknown, PointerType(), sb.GetString(), static_cast(sb.GetSize() / sizeof(Ch))); - } RAPIDJSON_ASSERT(root_ != 0); @@ -1902,10 +1690,7 @@ public: schemaMap_(std::move(rhs.schemaMap_)), schemaRef_(std::move(rhs.schemaRef_)), uri_(std::move(rhs.uri_)), - docId_(std::move(rhs.docId_)), - spec_(rhs.spec_), - error_(std::move(rhs.error_)), - currentError_(std::move(rhs.currentError_)) + docId_(rhs.docId_) { rhs.remoteProvider_ = 0; rhs.allocator_ = 0; @@ -1924,81 +1709,15 @@ public: Allocator::Free(typeless_); } - // these may contain some allocator data so clear before deleting ownAllocator_ - uri_.SetNull(); - error_.SetNull(); - currentError_.SetNull(); - RAPIDJSON_DELETE(ownAllocator_); } - const GValue& GetURI() const { return uri_; } - - const Specification& GetSpecification() const { return spec_; } - bool IsSupportedSpecification() const { return spec_.IsSupported(); } - - //! Static method to get the specification of any schema document - // Returns kDraftNone if document is silent - static const Specification GetSpecification(const ValueType& document) { - SchemaDraft draft = GetSchemaDraft(document); - if (draft != kDraftNone) - return Specification(draft); - else { - OpenApiVersion oapi = GetOpenApiVersion(document); - if (oapi != kVersionNone) - return Specification(oapi); - } - return Specification(kDraftNone); - } + const SValue& GetURI() const { return uri_; } //! Get the root schema. const SchemaType& GetRoot() const { return *root_; } - //! Gets the error object. - GValue& GetError() { return error_; } - const GValue& GetError() const { return error_; } - - static const StringRefType& GetSchemaErrorKeyword(SchemaErrorCode schemaErrorCode) { - switch (schemaErrorCode) { - case kSchemaErrorStartUnknown: return GetStartUnknownString(); - case kSchemaErrorRefPlainName: return GetRefPlainNameString(); - case kSchemaErrorRefInvalid: return GetRefInvalidString(); - case kSchemaErrorRefPointerInvalid: return GetRefPointerInvalidString(); - case kSchemaErrorRefUnknown: return GetRefUnknownString(); - case kSchemaErrorRefCyclical: return GetRefCyclicalString(); - case kSchemaErrorRefNoRemoteProvider: return GetRefNoRemoteProviderString(); - case kSchemaErrorRefNoRemoteSchema: return GetRefNoRemoteSchemaString(); - case kSchemaErrorRegexInvalid: return GetRegexInvalidString(); - case kSchemaErrorSpecUnknown: return GetSpecUnknownString(); - case kSchemaErrorSpecUnsupported: return GetSpecUnsupportedString(); - case kSchemaErrorSpecIllegal: return GetSpecIllegalString(); - case kSchemaErrorReadOnlyAndWriteOnly: return GetReadOnlyAndWriteOnlyString(); - default: return GetNullString(); - } - } - - //! Default error method - void SchemaError(const SchemaErrorCode code, const PointerType& location) { - currentError_ = GValue(kObjectType); - AddCurrentError(code, location); - } - - //! Method for error with single string value insert - void SchemaErrorValue(const SchemaErrorCode code, const PointerType& location, const Ch* value, SizeType length) { - currentError_ = GValue(kObjectType); - currentError_.AddMember(GetValueString(), GValue(value, length, *allocator_).Move(), *allocator_); - AddCurrentError(code, location); - } - - //! Method for error with invalid pointer - void SchemaErrorPointer(const SchemaErrorCode code, const PointerType& location, const Ch* value, SizeType length, const PointerType& pointer) { - currentError_ = GValue(kObjectType); - currentError_.AddMember(GetValueString(), GValue(value, length, *allocator_).Move(), *allocator_); - currentError_.AddMember(GetOffsetString(), static_cast(pointer.GetParseErrorOffset() / sizeof(Ch)), *allocator_); - AddCurrentError(code, location); - } - - private: +private: //! Prohibit copying GenericSchemaDocument(const GenericSchemaDocument&); //! Prohibit assignment @@ -2019,146 +1738,6 @@ public: bool owned; }; - void AddErrorInstanceLocation(GValue& result, const PointerType& location) { - GenericStringBuffer sb; - location.StringifyUriFragment(sb); - GValue instanceRef(sb.GetString(), static_cast(sb.GetSize() / sizeof(Ch)), *allocator_); - result.AddMember(GetInstanceRefString(), instanceRef, *allocator_); - } - - void AddError(GValue& keyword, GValue& error) { - typename GValue::MemberIterator member = error_.FindMember(keyword); - if (member == error_.MemberEnd()) - error_.AddMember(keyword, error, *allocator_); - else { - if (member->value.IsObject()) { - GValue errors(kArrayType); - errors.PushBack(member->value, *allocator_); - member->value = errors; - } - member->value.PushBack(error, *allocator_); - } - } - - void AddCurrentError(const SchemaErrorCode code, const PointerType& location) { - RAPIDJSON_SCHEMA_PRINT(InvalidKeyword, GetSchemaErrorKeyword(code)); - currentError_.AddMember(GetErrorCodeString(), code, *allocator_); - AddErrorInstanceLocation(currentError_, location); - AddError(GValue(GetSchemaErrorKeyword(code)).Move(), currentError_); - } - -#define RAPIDJSON_STRING_(name, ...) \ - static const StringRefType& Get##name##String() {\ - static const Ch s[] = { __VA_ARGS__, '\0' };\ - static const StringRefType v(s, static_cast(sizeof(s) / sizeof(Ch) - 1)); \ - return v;\ - } - - RAPIDJSON_STRING_(InstanceRef, 'i', 'n', 's', 't', 'a', 'n', 'c', 'e', 'R', 'e', 'f') - RAPIDJSON_STRING_(ErrorCode, 'e', 'r', 'r', 'o', 'r', 'C', 'o', 'd', 'e') - RAPIDJSON_STRING_(Value, 'v', 'a', 'l', 'u', 'e') - RAPIDJSON_STRING_(Offset, 'o', 'f', 'f', 's', 'e', 't') - - RAPIDJSON_STRING_(Null, 'n', 'u', 'l', 'l') - RAPIDJSON_STRING_(SpecUnknown, 'S', 'p', 'e', 'c', 'U', 'n', 'k', 'n', 'o', 'w', 'n') - RAPIDJSON_STRING_(SpecUnsupported, 'S', 'p', 'e', 'c', 'U', 'n', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd') - RAPIDJSON_STRING_(SpecIllegal, 'S', 'p', 'e', 'c', 'I', 'l', 'l', 'e', 'g', 'a', 'l') - RAPIDJSON_STRING_(StartUnknown, 'S', 't', 'a', 'r', 't', 'U', 'n', 'k', 'n', 'o', 'w', 'n') - RAPIDJSON_STRING_(RefPlainName, 'R', 'e', 'f', 'P', 'l', 'a', 'i', 'n', 'N', 'a', 'm', 'e') - RAPIDJSON_STRING_(RefInvalid, 'R', 'e', 'f', 'I', 'n', 'v', 'a', 'l', 'i', 'd') - RAPIDJSON_STRING_(RefPointerInvalid, 'R', 'e', 'f', 'P', 'o', 'i', 'n', 't', 'e', 'r', 'I', 'n', 'v', 'a', 'l', 'i', 'd') - RAPIDJSON_STRING_(RefUnknown, 'R', 'e', 'f', 'U', 'n', 'k', 'n', 'o', 'w', 'n') - RAPIDJSON_STRING_(RefCyclical, 'R', 'e', 'f', 'C', 'y', 'c', 'l', 'i', 'c', 'a', 'l') - RAPIDJSON_STRING_(RefNoRemoteProvider, 'R', 'e', 'f', 'N', 'o', 'R', 'e', 'm', 'o', 't', 'e', 'P', 'r', 'o', 'v', 'i', 'd', 'e', 'r') - RAPIDJSON_STRING_(RefNoRemoteSchema, 'R', 'e', 'f', 'N', 'o', 'R', 'e', 'm', 'o', 't', 'e', 'S', 'c', 'h', 'e', 'm', 'a') - RAPIDJSON_STRING_(ReadOnlyAndWriteOnly, 'R', 'e', 'a', 'd', 'O', 'n', 'l', 'y', 'A', 'n', 'd', 'W', 'r', 'i', 't', 'e', 'O', 'n', 'l', 'y') - RAPIDJSON_STRING_(RegexInvalid, 'R', 'e', 'g', 'e', 'x', 'I', 'n', 'v', 'a', 'l', 'i', 'd') - -#undef RAPIDJSON_STRING_ - - // Static method to get schema draft of any schema document - static SchemaDraft GetSchemaDraft(const ValueType& document) { - static const Ch kDraft03String[] = { 'h', 't', 't', 'p', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '-', '0', '3', '/', 's', 'c', 'h', 'e', 'm', 'a', '#', '\0' }; - static const Ch kDraft04String[] = { 'h', 't', 't', 'p', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '-', '0', '4', '/', 's', 'c', 'h', 'e', 'm', 'a', '#', '\0' }; - static const Ch kDraft05String[] = { 'h', 't', 't', 'p', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '-', '0', '5', '/', 's', 'c', 'h', 'e', 'm', 'a', '#', '\0' }; - static const Ch kDraft06String[] = { 'h', 't', 't', 'p', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '-', '0', '6', '/', 's', 'c', 'h', 'e', 'm', 'a', '#', '\0' }; - static const Ch kDraft07String[] = { 'h', 't', 't', 'p', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '-', '0', '7', '/', 's', 'c', 'h', 'e', 'm', 'a', '#', '\0' }; - static const Ch kDraft2019_09String[] = { 'h', 't', 't', 'p', 's', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '/', '2', '0', '1', '9', '-', '0', '9', '/', 's', 'c', 'h', 'e', 'm', 'a', '\0' }; - static const Ch kDraft2020_12String[] = { 'h', 't', 't', 'p', 's', ':', '/', '/', 'j', 's', 'o', 'n', '-', 's', 'c', 'h', 'e', 'm', 'a', '.', 'o', 'r', 'g', '/', 'd', 'r', 'a', 'f', 't', '/', '2', '0', '2', '0', '-', '1', '2', '/', 's', 'c', 'h', 'e', 'm', 'a', '\0' }; - - if (!document.IsObject()) { - return kDraftNone; - } - - // Get the schema draft from the $schema keyword at the supplied location - typename ValueType::ConstMemberIterator itr = document.FindMember(SchemaType::GetSchemaString()); - if (itr != document.MemberEnd()) { - if (!itr->value.IsString()) return kDraftUnknown; - const UriType draftUri(itr->value); - // Check base uri for match - if (draftUri.Match(UriType(kDraft04String), false)) return kDraft04; - if (draftUri.Match(UriType(kDraft05String), false)) return kDraft05; - if (draftUri.Match(UriType(kDraft06String), false)) return kDraft06; - if (draftUri.Match(UriType(kDraft07String), false)) return kDraft07; - if (draftUri.Match(UriType(kDraft03String), false)) return kDraft03; - if (draftUri.Match(UriType(kDraft2019_09String), false)) return kDraft2019_09; - if (draftUri.Match(UriType(kDraft2020_12String), false)) return kDraft2020_12; - return kDraftUnknown; - } - // $schema not found - return kDraftNone; - } - - - // Get open api version of any schema document - static OpenApiVersion GetOpenApiVersion(const ValueType& document) { - static const Ch kVersion20String[] = { '2', '.', '0', '\0' }; - static const Ch kVersion30String[] = { '3', '.', '0', '.', '\0' }; // ignore patch level - static const Ch kVersion31String[] = { '3', '.', '1', '.', '\0' }; // ignore patch level - static SizeType len = internal::StrLen(kVersion30String); - - if (!document.IsObject()) { - return kVersionNone; - } - - // Get the open api version from the swagger / openapi keyword at the supplied location - typename ValueType::ConstMemberIterator itr = document.FindMember(SchemaType::GetSwaggerString()); - if (itr == document.MemberEnd()) itr = document.FindMember(SchemaType::GetOpenApiString()); - if (itr != document.MemberEnd()) { - if (!itr->value.IsString()) return kVersionUnknown; - const ValueType kVersion20Value(kVersion20String); - if (kVersion20Value == itr->value) return kVersion20; // must match 2.0 exactly - const ValueType kVersion30Value(kVersion30String); - if (itr->value.GetStringLength() > len && kVersion30Value == ValueType(itr->value.GetString(), len)) return kVersion30; // must match 3.0.x - const ValueType kVersion31Value(kVersion31String); - if (itr->value.GetStringLength() > len && kVersion31Value == ValueType(itr->value.GetString(), len)) return kVersion31; // must match 3.1.x - return kVersionUnknown; - } - // swagger or openapi not found - return kVersionNone; - } - - // Get the draft of the schema or the open api version (which implies the draft). - // Report an error if schema draft or open api version not supported or not recognized, or both in document, and carry on. - void SetSchemaSpecification(const ValueType& document) { - // Look for '$schema', 'swagger' or 'openapi' keyword at document root - SchemaDraft docDraft = GetSchemaDraft(document); - OpenApiVersion docOapi = GetOpenApiVersion(document); - // Error if both in document - if (docDraft != kDraftNone && docOapi != kVersionNone) - SchemaError(kSchemaErrorSpecIllegal, PointerType()); - // Use document draft or open api version if present or use spec from constructor - if (docDraft != kDraftNone) - spec_ = Specification(docDraft); - else if (docOapi != kVersionNone) - spec_ = Specification(docOapi); - // Error if draft or version unknown - if (spec_.draft == kDraftUnknown || spec_.oapi == kVersionUnknown) - SchemaError(kSchemaErrorSpecUnknown, PointerType()); - else if (!spec_.IsSupported()) - SchemaError(kSchemaErrorSpecUnsupported, PointerType()); - } - // Changed by PR #1393 void CreateSchemaRecursive(const SchemaType** schema, const PointerType& pointer, const ValueType& v, const ValueType& document, const UriType& id) { if (v.GetType() == kObjectType) { @@ -2175,9 +1754,6 @@ public: // Changed by PR #1393 const UriType& CreateSchema(const SchemaType** schema, const PointerType& pointer, const ValueType& v, const ValueType& document, const UriType& id) { RAPIDJSON_ASSERT(pointer.IsValid()); - GenericStringBuffer sb; - pointer.StringifyUriFragment(sb); - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaDocument::CreateSchema", sb.GetString(), id.GetString()); if (v.IsObject()) { if (const SchemaType* sc = GetSchema(pointer)) { if (schema) @@ -2207,53 +1783,41 @@ public: if (itr == v.MemberEnd()) return false; - GenericStringBuffer sb; - source.StringifyUriFragment(sb); - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaDocument::HandleRefSchema", sb.GetString(), id.GetString()); // Resolve the source pointer to the $ref'ed schema (finally) new (schemaRef_.template Push()) SchemaRefPtr(&source); if (itr->value.IsString()) { SizeType len = itr->value.GetStringLength(); - if (len == 0) - SchemaError(kSchemaErrorRefInvalid, source); - else { + if (len > 0) { // First resolve $ref against the in-scope id UriType scopeId = UriType(id, allocator_); UriType ref = UriType(itr->value, allocator_).Resolve(scopeId, allocator_); - RAPIDJSON_SCHEMA_PRINT(SchemaIds, id.GetString(), itr->value.GetString(), ref.GetString()); // See if the resolved $ref minus the fragment matches a resolved id in this document // Search from the root. Returns the subschema in the document and its absolute JSON pointer. PointerType basePointer = PointerType(); const ValueType *base = FindId(document, ref, basePointer, docId_, false); if (!base) { // Remote reference - call the remote document provider - if (!remoteProvider_) - SchemaError(kSchemaErrorRefNoRemoteProvider, source); - else { - if (const GenericSchemaDocument* remoteDocument = remoteProvider_->GetRemoteDocument(ref, spec_)) { + if (remoteProvider_) { + if (const GenericSchemaDocument* remoteDocument = remoteProvider_->GetRemoteDocument(ref)) { const Ch* s = ref.GetFragString(); len = ref.GetFragStringLength(); if (len <= 1 || s[1] == '/') { // JSON pointer fragment, absolute in the remote schema const PointerType pointer(s, len, allocator_); - if (!pointer.IsValid()) - SchemaErrorPointer(kSchemaErrorRefPointerInvalid, source, s, len, pointer); - else { + if (pointer.IsValid()) { // Get the subschema if (const SchemaType *sc = remoteDocument->GetSchema(pointer)) { if (schema) *schema = sc; AddSchemaRefs(const_cast(sc)); return true; - } else - SchemaErrorValue(kSchemaErrorRefUnknown, source, ref.GetString(), ref.GetStringLength()); + } } - } else - // Plain name fragment, not allowed in remote schema - SchemaErrorValue(kSchemaErrorRefPlainName, source, s, len); - } else - SchemaErrorValue(kSchemaErrorRefNoRemoteSchema, source, ref.GetString(), ref.GetStringLength()); + } else { + // Plain name fragment, not allowed + } + } } } else { // Local reference @@ -2262,18 +1826,16 @@ public: if (len <= 1 || s[1] == '/') { // JSON pointer fragment, relative to the resolved URI const PointerType relPointer(s, len, allocator_); - if (!relPointer.IsValid()) - SchemaErrorPointer(kSchemaErrorRefPointerInvalid, source, s, len, relPointer); - else { + if (relPointer.IsValid()) { // Get the subschema if (const ValueType *pv = relPointer.Get(*base)) { // Now get the absolute JSON pointer by adding relative to base - PointerType pointer(basePointer, allocator_); + PointerType pointer(basePointer); for (SizeType i = 0; i < relPointer.GetTokenCount(); i++) pointer = pointer.Append(relPointer.GetTokens()[i], allocator_); - if (IsCyclicRef(pointer)) - SchemaErrorValue(kSchemaErrorRefCyclical, source, ref.GetString(), ref.GetStringLength()); - else { + //GenericStringBuffer sb; + //pointer.StringifyUriFragment(sb); + if (pointer.IsValid() && !IsCyclicRef(pointer)) { // Call CreateSchema recursively, but first compute the in-scope id for the $ref target as we have jumped there // TODO: cache pointer <-> id mapping size_t unresolvedTokenIndex; @@ -2281,21 +1843,17 @@ public: CreateSchema(schema, pointer, *pv, document, scopeId); return true; } - } else - SchemaErrorValue(kSchemaErrorRefUnknown, source, ref.GetString(), ref.GetStringLength()); + } } } else { // Plain name fragment, relative to the resolved URI - // Not supported in open api 2.0 and 3.0 - PointerType pointer(allocator_); - if (spec_.oapi == kVersion20 || spec_.oapi == kVersion30) - SchemaErrorValue(kSchemaErrorRefPlainName, source, s, len); // See if the fragment matches an id in this document. // Search from the base we just established. Returns the subschema in the document and its absolute JSON pointer. - else if (const ValueType *pv = FindId(*base, ref, pointer, UriType(ref.GetBaseString(), ref.GetBaseStringLength(), allocator_), true, basePointer)) { - if (IsCyclicRef(pointer)) - SchemaErrorValue(kSchemaErrorRefCyclical, source, ref.GetString(), ref.GetStringLength()); - else { + PointerType pointer = PointerType(); + if (const ValueType *pv = FindId(*base, ref, pointer, UriType(ref.GetBaseString(), ref.GetBaseStringLength(), allocator_), true, basePointer)) { + if (!IsCyclicRef(pointer)) { + //GenericStringBuffer sb; + //pointer.StringifyUriFragment(sb); // Call CreateSchema recursively, but first compute the in-scope id for the $ref target as we have jumped there // TODO: cache pointer <-> id mapping size_t unresolvedTokenIndex; @@ -2303,8 +1861,7 @@ public: CreateSchema(schema, pointer, *pv, document, scopeId); return true; } - } else - SchemaErrorValue(kSchemaErrorRefUnknown, source, ref.GetString(), ref.GetStringLength()); + } } } } @@ -2334,7 +1891,6 @@ public: } // See if it matches if (localuri.Match(finduri, full)) { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaDocument::FindId (match)", full ? localuri.GetString() : localuri.GetBaseString()); resval = const_cast(&doc); resptr = here; return resval; @@ -2361,7 +1917,6 @@ public: // Added by PR #1393 void AddSchemaRefs(SchemaType* schema) { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaDocument::AddSchemaRefs"); while (!schemaRef_.Empty()) { SchemaRefPtr *ref = schemaRef_.template Pop(1); SchemaEntry *entry = schemaMap_.template Push(); @@ -2403,11 +1958,8 @@ public: SchemaType* typeless_; internal::Stack schemaMap_; // Stores created Pointer -> Schemas internal::Stack schemaRef_; // Stores Pointer(s) from $ref(s) until resolved - GValue uri_; // Schema document URI + SValue uri_; // Schema document URI UriType docId_; - Specification spec_; - GValue error_; - GValue currentError_; }; //! GenericSchemaDocument using Value type. @@ -2471,10 +2023,11 @@ public: currentError_(), missingDependents_(), valid_(true), - flags_(kValidateDefaultFlags), - depth_(0) + flags_(kValidateDefaultFlags) +#if RAPIDJSON_SCHEMA_VERBOSE + , depth_(0) +#endif { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::GenericSchemaValidator"); } //! Constructor with output handler. @@ -2502,10 +2055,11 @@ public: currentError_(), missingDependents_(), valid_(true), - flags_(kValidateDefaultFlags), - depth_(0) + flags_(kValidateDefaultFlags) +#if RAPIDJSON_SCHEMA_VERBOSE + , depth_(0) +#endif { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::GenericSchemaValidator (output handler)"); } //! Destructor. @@ -2538,12 +2092,13 @@ public: return flags_; } + //! Checks whether the current state is valid. + // Implementation of ISchemaValidator virtual bool IsValid() const { if (!valid_) return false; if (GetContinueOnErrors() && !error_.ObjectEmpty()) return false; return true; } - //! End of Implementation of ISchemaValidator //! Gets the error object. ValueType& GetError() { return error_; } @@ -2559,7 +2114,7 @@ public: // If reporting all errors, the stack will be empty, so return "errors". const Ch* GetInvalidSchemaKeyword() const { if (!schemaStack_.Empty()) return CurrentContext().invalidKeyword; - if (GetContinueOnErrors() && !error_.ObjectEmpty()) return static_cast(GetErrorsString()); + if (GetContinueOnErrors() && !error_.ObjectEmpty()) return (const Ch*)GetErrorsString(); return 0; } @@ -2751,29 +2306,13 @@ public: void NoneOf(ISchemaValidator** subvalidators, SizeType count) { AddErrorArray(kValidateErrorAnyOf, subvalidators, count); } - void NotOneOf(ISchemaValidator** subvalidators, SizeType count) { - AddErrorArray(kValidateErrorOneOf, subvalidators, count); - } - void MultipleOneOf(SizeType index1, SizeType index2) { - ValueType matches(kArrayType); - matches.PushBack(index1, GetStateAllocator()); - matches.PushBack(index2, GetStateAllocator()); - currentError_.SetObject(); - currentError_.AddMember(GetMatchesString(), matches, GetStateAllocator()); - AddCurrentError(kValidateErrorOneOfMatch); + void NotOneOf(ISchemaValidator** subvalidators, SizeType count, bool matched = false) { + AddErrorArray(matched ? kValidateErrorOneOfMatch : kValidateErrorOneOf, subvalidators, count); } void Disallowed() { currentError_.SetObject(); AddCurrentError(kValidateErrorNot); } - void DisallowedWhenWriting() { - currentError_.SetObject(); - AddCurrentError(kValidateErrorReadOnly); - } - void DisallowedWhenReading() { - currentError_.SetObject(); - AddCurrentError(kValidateErrorWriteOnly); - } #define RAPIDJSON_STRING_(name, ...) \ static const StringRefType& Get##name##String() {\ @@ -2792,18 +2331,25 @@ public: RAPIDJSON_STRING_(ErrorCode, 'e', 'r', 'r', 'o', 'r', 'C', 'o', 'd', 'e') RAPIDJSON_STRING_(ErrorMessage, 'e', 'r', 'r', 'o', 'r', 'M', 'e', 's', 's', 'a', 'g', 'e') RAPIDJSON_STRING_(Duplicates, 'd', 'u', 'p', 'l', 'i', 'c', 'a', 't', 'e', 's') - RAPIDJSON_STRING_(Matches, 'm', 'a', 't', 'c', 'h', 'e', 's') #undef RAPIDJSON_STRING_ +#if RAPIDJSON_SCHEMA_VERBOSE +#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_() \ +RAPIDJSON_MULTILINEMACRO_BEGIN\ + *documentStack_.template Push() = '\0';\ + documentStack_.template Pop(1);\ + internal::PrintInvalidDocument(documentStack_.template Bottom());\ +RAPIDJSON_MULTILINEMACRO_END +#else +#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_() +#endif + #define RAPIDJSON_SCHEMA_HANDLE_BEGIN_(method, arg1)\ if (!valid_) return false; \ if ((!BeginValue() && !GetContinueOnErrors()) || (!CurrentSchema().method arg1 && !GetContinueOnErrors())) {\ - *documentStack_.template Push() = '\0';\ - documentStack_.template Pop(1);\ - RAPIDJSON_SCHEMA_PRINT(InvalidDocument, documentStack_.template Bottom());\ - valid_ = false;\ - return valid_;\ + RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_();\ + return valid_ = false;\ } #define RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(method, arg2)\ @@ -2840,68 +2386,52 @@ public: { RAPIDJSON_SCHEMA_HANDLE_VALUE_(String, (CurrentContext(), str, length, copy), (str, length, copy)); } bool StartObject() { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::StartObject"); RAPIDJSON_SCHEMA_HANDLE_BEGIN_(StartObject, (CurrentContext())); RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(StartObject, ()); - valid_ = !outputHandler_ || outputHandler_->StartObject(); - return valid_; + return valid_ = !outputHandler_ || outputHandler_->StartObject(); } bool Key(const Ch* str, SizeType len, bool copy) { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::Key", str); if (!valid_) return false; AppendToken(str, len); - if (!CurrentSchema().Key(CurrentContext(), str, len, copy) && !GetContinueOnErrors()) { - valid_ = false; - return valid_; - } + if (!CurrentSchema().Key(CurrentContext(), str, len, copy) && !GetContinueOnErrors()) return valid_ = false; RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(Key, (str, len, copy)); - valid_ = !outputHandler_ || outputHandler_->Key(str, len, copy); - return valid_; + return valid_ = !outputHandler_ || outputHandler_->Key(str, len, copy); } bool EndObject(SizeType memberCount) { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::EndObject"); if (!valid_) return false; RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(EndObject, (memberCount)); - if (!CurrentSchema().EndObject(CurrentContext(), memberCount) && !GetContinueOnErrors()) { - valid_ = false; - return valid_; - } + if (!CurrentSchema().EndObject(CurrentContext(), memberCount) && !GetContinueOnErrors()) return valid_ = false; RAPIDJSON_SCHEMA_HANDLE_END_(EndObject, (memberCount)); } bool StartArray() { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::StartArray"); RAPIDJSON_SCHEMA_HANDLE_BEGIN_(StartArray, (CurrentContext())); RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(StartArray, ()); - valid_ = !outputHandler_ || outputHandler_->StartArray(); - return valid_; + return valid_ = !outputHandler_ || outputHandler_->StartArray(); } bool EndArray(SizeType elementCount) { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::EndArray"); if (!valid_) return false; RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(EndArray, (elementCount)); - if (!CurrentSchema().EndArray(CurrentContext(), elementCount) && !GetContinueOnErrors()) { - valid_ = false; - return valid_; - } + if (!CurrentSchema().EndArray(CurrentContext(), elementCount) && !GetContinueOnErrors()) return valid_ = false; RAPIDJSON_SCHEMA_HANDLE_END_(EndArray, (elementCount)); } +#undef RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_ #undef RAPIDJSON_SCHEMA_HANDLE_BEGIN_ #undef RAPIDJSON_SCHEMA_HANDLE_PARALLEL_ #undef RAPIDJSON_SCHEMA_HANDLE_VALUE_ // Implementation of ISchemaStateFactory virtual ISchemaValidator* CreateSchemaValidator(const SchemaType& root, const bool inheritContinueOnErrors) { - *documentStack_.template Push() = '\0'; - documentStack_.template Pop(1); ISchemaValidator* sv = new (GetStateAllocator().Malloc(sizeof(GenericSchemaValidator))) GenericSchemaValidator(*schemaDocument_, root, documentStack_.template Bottom(), documentStack_.GetSize(), +#if RAPIDJSON_SCHEMA_VERBOSE depth_ + 1, +#endif &GetStateAllocator()); - sv->SetValidateFlags(inheritContinueOnErrors ? GetValidateFlags() : GetValidateFlags() & ~static_cast(kValidateContinueOnErrorFlag)); + sv->SetValidateFlags(inheritContinueOnErrors ? GetValidateFlags() : GetValidateFlags() & ~(unsigned)kValidateContinueOnErrorFlag); return sv; } @@ -2932,7 +2462,6 @@ public: virtual void FreeState(void* p) { StateAllocator::Free(p); } - // End of implementation of ISchemaStateFactory private: typedef typename SchemaType::Context Context; @@ -2943,7 +2472,9 @@ private: const SchemaDocumentType& schemaDocument, const SchemaType& root, const char* basePath, size_t basePathSize, +#if RAPIDJSON_SCHEMA_VERBOSE unsigned depth, +#endif StateAllocator* allocator = 0, size_t schemaStackCapacity = kDefaultSchemaStackCapacity, size_t documentStackCapacity = kDefaultDocumentStackCapacity) @@ -2959,10 +2490,11 @@ private: currentError_(), missingDependents_(), valid_(true), - flags_(kValidateDefaultFlags), - depth_(depth) + flags_(kValidateDefaultFlags) +#if RAPIDJSON_SCHEMA_VERBOSE + , depth_(depth) +#endif { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::GenericSchemaValidator (internal)", basePath && basePathSize ? basePath : ""); if (basePath && basePathSize) memcpy(documentStack_.template Push(basePathSize), basePath, basePathSize); } @@ -2978,7 +2510,6 @@ private: } bool BeginValue() { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::BeginValue"); if (schemaStack_.Empty()) PushSchema(root_); else { @@ -3000,7 +2531,6 @@ private: ISchemaValidator**& va = CurrentContext().patternPropertiesValidators; SizeType& validatorCount = CurrentContext().patternPropertiesValidatorCount; va = static_cast(MallocState(sizeof(ISchemaValidator*) * count)); - std::memset(va, 0, sizeof(ISchemaValidator*) * count); for (SizeType i = 0; i < count; i++) va[validatorCount++] = CreateSchemaValidator(*sa[i], true); // Inherit continueOnError } @@ -3011,15 +2541,17 @@ private: } bool EndValue() { - RAPIDJSON_SCHEMA_PRINT(Method, "GenericSchemaValidator::EndValue"); if (!CurrentSchema().EndValue(CurrentContext()) && !GetContinueOnErrors()) return false; +#if RAPIDJSON_SCHEMA_VERBOSE GenericStringBuffer sb; - schemaDocument_->GetPointer(&CurrentSchema()).StringifyUriFragment(sb); + schemaDocument_->GetPointer(&CurrentSchema()).Stringify(sb); + *documentStack_.template Push() = '\0'; documentStack_.template Pop(1); - RAPIDJSON_SCHEMA_PRINT(ValidatorPointers, sb.GetString(), documentStack_.template Bottom(), depth_); + internal::PrintValidatorPointers(depth_, sb.GetString(), documentStack_.template Bottom()); +#endif void* hasher = CurrentContext().hasher; uint64_t h = hasher && CurrentContext().arrayUniqueness ? static_cast(hasher)->GetHashCode() : 0; @@ -3070,7 +2602,7 @@ private: } } - RAPIDJSON_FORCEINLINE void PushSchema(const SchemaType& schema) { new (schemaStack_.template Push()) Context(*this, *this, &schema, flags_); } + RAPIDJSON_FORCEINLINE void PushSchema(const SchemaType& schema) { new (schemaStack_.template Push()) Context(*this, *this, &schema); } RAPIDJSON_FORCEINLINE void PopSchema() { Context* c = schemaStack_.template Pop(1); @@ -3172,7 +2704,9 @@ private: ValueType missingDependents_; bool valid_; unsigned flags_; +#if RAPIDJSON_SCHEMA_VERBOSE unsigned depth_; +#endif }; typedef GenericSchemaValidator SchemaValidator; diff --git a/src/3rdparty/rapidjson/uri.h b/src/3rdparty/rapidjson/uri.h index f93e508a..7de7b805 100644 --- a/src/3rdparty/rapidjson/uri.h +++ b/src/3rdparty/rapidjson/uri.h @@ -238,27 +238,20 @@ private: // Allocate one block containing each part of the URI (5) plus base plus full URI, all null terminated. // Order: scheme, auth, path, query, frag, base, uri - // Note need to set, increment, assign in 3 stages to avoid compiler warning bug. size_t total = (3 * len + 7) * sizeof(Ch); scheme_ = static_cast(allocator_->Malloc(total)); *scheme_ = '\0'; - auth_ = scheme_; - auth_++; + auth_ = scheme_ + 1; *auth_ = '\0'; - path_ = auth_; - path_++; + path_ = auth_ + 1; *path_ = '\0'; - query_ = path_; - query_++; + query_ = path_ + 1; *query_ = '\0'; - frag_ = query_; - frag_++; + frag_ = query_ + 1; *frag_ = '\0'; - base_ = frag_; - base_++; + base_ = frag_ + 1; *base_ = '\0'; - uri_ = base_; - uri_++; + uri_ = base_ + 1; *uri_ = '\0'; return total; } @@ -300,9 +293,7 @@ private: } } // Look for auth (//([^/?#]*))? - // Note need to set, increment, assign in 3 stages to avoid compiler warning bug. - auth_ = scheme_ + GetSchemeStringLength(); - auth_++; + auth_ = scheme_ + GetSchemeStringLength() + 1; *auth_ = '\0'; if (start < len - 1 && uri[start] == '/' && uri[start + 1] == '/') { pos2 = start + 2; @@ -317,9 +308,7 @@ private: start = pos2; } // Look for path ([^?#]*) - // Note need to set, increment, assign in 3 stages to avoid compiler warning bug. - path_ = auth_ + GetAuthStringLength(); - path_++; + path_ = auth_ + GetAuthStringLength() + 1; *path_ = '\0'; if (start < len) { pos2 = start; @@ -337,9 +326,7 @@ private: } } // Look for query (\?([^#]*))? - // Note need to set, increment, assign in 3 stages to avoid compiler warning bug. - query_ = path_ + GetPathStringLength(); - query_++; + query_ = path_ + GetPathStringLength() + 1; *query_ = '\0'; if (start < len && uri[start] == '?') { pos2 = start + 1; @@ -354,9 +341,7 @@ private: } } // Look for fragment (#(.*))? - // Note need to set, increment, assign in 3 stages to avoid compiler warning bug. - frag_ = query_ + GetQueryStringLength(); - frag_++; + frag_ = query_ + GetQueryStringLength() + 1; *frag_ = '\0'; if (start < len && uri[start] == '#') { std::memcpy(frag_, &uri[start], (len - start) * sizeof(Ch)); diff --git a/src/3rdparty/rapidjson/writer.h b/src/3rdparty/rapidjson/writer.h index 6427c3e8..f47005a1 100644 --- a/src/3rdparty/rapidjson/writer.h +++ b/src/3rdparty/rapidjson/writer.h @@ -67,7 +67,6 @@ enum WriteFlag { kWriteNoFlags = 0, //!< No flags are set. kWriteValidateEncodingFlag = 1, //!< Validate encoding of JSON strings. kWriteNanAndInfFlag = 2, //!< Allow writing of Infinity, -Infinity and NaN. - kWriteNanAndInfNullFlag = 4, //!< Allow writing of Infinity, -Infinity and NaN as null. kWriteDefaultFlags = RAPIDJSON_WRITE_DEFAULT_FLAGS //!< Default write flags. Can be customized by defining RAPIDJSON_WRITE_DEFAULT_FLAGS }; @@ -350,13 +349,8 @@ protected: bool WriteDouble(double d) { if (internal::Double(d).IsNanOrInf()) { - if (!(writeFlags & kWriteNanAndInfFlag) && !(writeFlags & kWriteNanAndInfNullFlag)) + if (!(writeFlags & kWriteNanAndInfFlag)) return false; - if (writeFlags & kWriteNanAndInfNullFlag) { - PutReserve(*os_, 4); - PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); - return true; - } if (internal::Double(d).IsNan()) { PutReserve(*os_, 3); PutUnsafe(*os_, 'N'); PutUnsafe(*os_, 'a'); PutUnsafe(*os_, 'N'); @@ -555,11 +549,6 @@ inline bool Writer::WriteDouble(double d) { // Note: This code path can only be reached if (RAPIDJSON_WRITE_DEFAULT_FLAGS & kWriteNanAndInfFlag). if (!(kWriteDefaultFlags & kWriteNanAndInfFlag)) return false; - if (kWriteDefaultFlags & kWriteNanAndInfNullFlag) { - PutReserve(*os_, 4); - PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); - return true; - } if (internal::Double(d).IsNan()) { PutReserve(*os_, 3); PutUnsafe(*os_, 'N'); PutUnsafe(*os_, 'a'); PutUnsafe(*os_, 'N'); diff --git a/src/App.cpp b/src/App.cpp index 3437525a..39ec0d62 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ * along with this program. If not, see . */ + #include #include @@ -60,13 +61,13 @@ int xmrig::App::exec() return 2; } + m_signals = std::make_shared(this); + int rc = 0; if (background(rc)) { return rc; } - m_signals = std::make_shared(this); - rc = m_controller->init(); if (rc != 0) { return rc; diff --git a/src/App_unix.cpp b/src/App_unix.cpp index 2cd40094..b0b80079 100644 --- a/src/App_unix.cpp +++ b/src/App_unix.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ * along with this program. If not, see . */ + #include #include #include @@ -52,9 +53,16 @@ bool xmrig::App::background(int &rc) return true; } - if (setsid() < 0) { + i = setsid(); + + if (i < 0) { LOG_ERR("setsid() failed (errno = %d)", errno); } + i = chdir("/"); + if (i < 0) { + LOG_ERR("chdir() failed (errno = %d)", errno); + } + return false; } diff --git a/src/Summary.cpp b/src/Summary.cpp index 7682398f..6b12e62f 100644 --- a/src/Summary.cpp +++ b/src/Summary.cpp @@ -1,6 +1,12 @@ /* XMRig - * Copyright (c) 2018-2022 SChernykh - * Copyright (c) 2016-2022 XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2019 XMR-Stak , + * Copyright 2018-2021 SChernykh + * Copyright 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,6 +22,7 @@ * along with this program. If not, see . */ + #include #include #include @@ -151,7 +158,7 @@ static void print_memory(const Config *config) "", memory.id().data(), memory.size() / oneGiB, memory.type(), memory.speed() / 1000000ULL, memory.product().data()); } else if (printEmpty) { - Log::print(WHITE_BOLD(" %-13s") "%s: " BLACK_BOLD(""), "", memory.id().data()); + Log::print(WHITE_BOLD(" %-13s") "%s: " BLACK_BOLD(""), "", memory.slot().data()); } } diff --git a/src/Summary.h b/src/Summary.h index 906aabf5..0b03f675 100644 --- a/src/Summary.h +++ b/src/Summary.h @@ -1,6 +1,12 @@ /* XMRig - * Copyright (c) 2018-2022 SChernykh - * Copyright (c) 2016-2022 XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2021 SChernykh + * Copyright 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/common/Hashrate.cpp b/src/backend/common/Hashrate.cpp index a5102fd1..2d8c8ce2 100644 --- a/src/backend/common/Hashrate.cpp +++ b/src/backend/common/Hashrate.cpp @@ -30,10 +30,10 @@ #include "base/tools/Handle.h" -inline static const char *format(std::pair h, char *buf, size_t size) +inline static const char *format(double h, char *buf, size_t size) { - if (h.first) { - snprintf(buf, size, (h.second < 100.0) ? "%04.2f" : "%03.1f", h.second); + if (std::isnormal(h)) { + snprintf(buf, size, (h < 100.0) ? "%04.2f" : "%03.1f", h); return buf; } @@ -80,16 +80,15 @@ double xmrig::Hashrate::average() const } -const char *xmrig::Hashrate::format(std::pair h, char *buf, size_t size) +const char *xmrig::Hashrate::format(double h, char *buf, size_t size) { return ::format(h, buf, size); } -rapidjson::Value xmrig::Hashrate::normalize(std::pair d) +rapidjson::Value xmrig::Hashrate::normalize(double d) { - using namespace rapidjson; - return d.first ? Value(floor(d.second * 100.0) / 100.0) : Value(kNullType); + return Json::normalize(d, false); } @@ -123,11 +122,11 @@ rapidjson::Value xmrig::Hashrate::toJSON(size_t threadId, rapidjson::Document &d #endif -std::pair xmrig::Hashrate::hashrate(size_t index, size_t ms) const +double xmrig::Hashrate::hashrate(size_t index, size_t ms) const { assert(index < m_threads); if (index >= m_threads) { - return { false, 0.0 }; + return nan(""); } uint64_t earliestHashCount = 0; @@ -158,27 +157,17 @@ std::pair xmrig::Hashrate::hashrate(size_t index, size_t ms) const } while (idx != idx_start); if (!haveFullSet || earliestStamp == 0 || lastestStamp == 0) { - return { false, 0.0 }; + return nan(""); } - if (lastestHashCnt == earliestHashCount) { - return { true, 0.0 }; - } - - if (lastestStamp == earliestStamp) { - return { false, 0.0 }; + if (lastestStamp - earliestStamp == 0) { + return nan(""); } const auto hashes = static_cast(lastestHashCnt - earliestHashCount); - const auto time = static_cast(lastestStamp - earliestStamp); + const auto time = static_cast(lastestStamp - earliestStamp) / 1000.0; - const auto hr = hashes * 1000.0 / time; - - if (!std::isnormal(hr)) { - return { false, 0.0 }; - } - - return { true, hr }; + return hashes / time; } diff --git a/src/backend/common/Hashrate.h b/src/backend/common/Hashrate.h index 10859741..7d753a3d 100644 --- a/src/backend/common/Hashrate.h +++ b/src/backend/common/Hashrate.h @@ -47,16 +47,16 @@ public: Hashrate(size_t threads); ~Hashrate(); - inline std::pair calc(size_t ms) const { return hashrate(0U, ms); } - inline std::pair calc(size_t threadId, size_t ms) const { return hashrate(threadId + 1, ms); } + inline double calc(size_t ms) const { const double data = hashrate(0U, ms); return std::isnormal(data) ? data : 0.0; } + inline double calc(size_t threadId, size_t ms) const { return hashrate(threadId + 1, ms); } inline size_t threads() const { return m_threads > 0U ? m_threads - 1U : 0U; } inline void add(size_t threadId, uint64_t count, uint64_t timestamp) { addData(threadId + 1U, count, timestamp); } inline void add(uint64_t count, uint64_t timestamp) { addData(0U, count, timestamp); } double average() const; - static const char *format(std::pair h, char *buf, size_t size); - static rapidjson::Value normalize(std::pair d); + static const char *format(double h, char *buf, size_t size); + static rapidjson::Value normalize(double d); # ifdef XMRIG_FEATURE_API rapidjson::Value toJSON(rapidjson::Document &doc) const; @@ -64,7 +64,7 @@ public: # endif private: - std::pair hashrate(size_t index, size_t ms) const; + double hashrate(size_t index, size_t ms) const; void addData(size_t index, uint64_t count, uint64_t timestamp); constexpr static size_t kBucketSize = 2 << 11; diff --git a/src/backend/common/WorkerJob.h b/src/backend/common/WorkerJob.h index b579a116..8ff3ccdc 100644 --- a/src/backend/common/WorkerJob.h +++ b/src/backend/common/WorkerJob.h @@ -30,7 +30,6 @@ #include "base/net/stratum/Job.h" -#include "base/tools/Alignment.h" #include "crypto/common/Nonce.h" @@ -78,7 +77,7 @@ public: } else { for (size_t i = 0; i < N; ++i) { - writeUnaligned(nonce(i), readUnaligned(nonce(i)) + roundSize); + *nonce(i) += roundSize; } } @@ -109,7 +108,7 @@ private: } - alignas(8) uint8_t m_blobs[2][Job::kMaxBlobSize * N]{}; + alignas(16) uint8_t m_blobs[2][Job::kMaxBlobSize * N]{}; Job m_jobs[2]; uint32_t m_rounds[2] = { 0, 0 }; uint64_t m_nonce_mask[2] = { 0, 0 }; @@ -137,11 +136,11 @@ inline bool xmrig::WorkerJob<1>::nextRound(uint32_t rounds, uint32_t roundSize) return false; } if (nonceSize() == sizeof(uint64_t)) { - writeUnaligned(m_jobs[index()].nonce() + 1, readUnaligned(n + 1)); + m_jobs[index()].nonce()[1] = n[1]; } } else { - writeUnaligned(n, readUnaligned(n) + roundSize); + *n += roundSize; } return true; diff --git a/src/backend/common/misc/PciTopology.h b/src/backend/common/misc/PciTopology.h index acef4d91..af1844c9 100644 --- a/src/backend/common/misc/PciTopology.h +++ b/src/backend/common/misc/PciTopology.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,8 +19,10 @@ #ifndef XMRIG_PCITOPOLOGY_H #define XMRIG_PCITOPOLOGY_H + #include + #include "base/tools/String.h" @@ -31,14 +33,7 @@ class PciTopology { public: PciTopology() = default; - - template - inline PciTopology(T bus, T device, T function) - : m_valid(true), - m_bus(static_cast(bus)), - m_device(static_cast(device)), - m_function(static_cast(function)) - {} + PciTopology(uint32_t bus, uint32_t device, uint32_t function) : m_valid(true), m_bus(bus), m_device(device), m_function(function) {} inline bool isEqual(const PciTopology &other) const { return m_valid == other.m_valid && toUint32() == other.toUint32(); } inline bool isValid() const { return m_valid; } @@ -75,4 +70,4 @@ private: } // namespace xmrig -#endif // XMRIG_PCITOPOLOGY_H +#endif /* XMRIG_PCITOPOLOGY_H */ diff --git a/src/backend/cpu/Cpu.h b/src/backend/cpu/Cpu.h index 3067ebcd..186063d3 100644 --- a/src/backend/cpu/Cpu.h +++ b/src/backend/cpu/Cpu.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2020 SChernykh + * Copyright (c) 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ public: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_CPU_H +#endif /* XMRIG_CPU_H */ diff --git a/src/backend/cpu/CpuBackend.cpp b/src/backend/cpu/CpuBackend.cpp index 529b14e2..10197565 100644 --- a/src/backend/cpu/CpuBackend.cpp +++ b/src/backend/cpu/CpuBackend.cpp @@ -76,13 +76,12 @@ public: { m_workersMemory.clear(); m_hugePages.reset(); - m_memory = memory; - m_started = 0; - m_totalStarted = 0; - m_errors = 0; - m_threads = threads.size(); - m_ways = 0; - m_ts = Chrono::steadyMSecs(); + m_memory = memory; + m_started = 0; + m_errors = 0; + m_threads = threads.size(); + m_ways = 0; + m_ts = Chrono::steadyMSecs(); } inline bool started(IWorker *worker, bool ready) @@ -436,6 +435,10 @@ rapidjson::Value xmrig::CpuBackend::toJSON(rapidjson::Document &doc) const out.AddMember("argon2-impl", argon2::Impl::name().toJSON(), allocator); # endif +# ifdef XMRIG_ALGO_ASTROBWT + out.AddMember("astrobwt-max-size", cpu.astrobwtMaxSize(), allocator); +# endif + out.AddMember("hugepages", d_ptr->hugePages(2, doc), allocator); out.AddMember("memory", static_cast(d_ptr->algo.isValid() ? (d_ptr->ways() * d_ptr->algo.l3()) : 0), allocator); diff --git a/src/backend/cpu/CpuConfig.cpp b/src/backend/cpu/CpuConfig.cpp index a7d5db55..e20c8e9a 100644 --- a/src/backend/cpu/CpuConfig.cpp +++ b/src/backend/cpu/CpuConfig.cpp @@ -45,6 +45,11 @@ const char *CpuConfig::kAsm = "asm"; const char *CpuConfig::kArgon2Impl = "argon2-impl"; #endif +#ifdef XMRIG_ALGO_ASTROBWT +const char *CpuConfig::kAstroBWTMaxSize = "astrobwt-max-size"; +const char *CpuConfig::kAstroBWTAVX2 = "astrobwt-avx2"; +#endif + extern template class Threads; @@ -84,6 +89,11 @@ rapidjson::Value xmrig::CpuConfig::toJSON(rapidjson::Document &doc) const obj.AddMember(StringRef(kArgon2Impl), m_argon2Impl.toJSON(), allocator); # endif +# ifdef XMRIG_ALGO_ASTROBWT + obj.AddMember(StringRef(kAstroBWTMaxSize), m_astrobwtMaxSize, allocator); + obj.AddMember(StringRef(kAstroBWTAVX2), m_astrobwtAVX2, allocator); +# endif + m_threads.toJSON(obj, doc); return obj; @@ -148,6 +158,24 @@ void xmrig::CpuConfig::read(const rapidjson::Value &value) m_argon2Impl = Json::getString(value, kArgon2Impl); # endif +# ifdef XMRIG_ALGO_ASTROBWT + const auto& astroBWTMaxSize = Json::getValue(value, kAstroBWTMaxSize); + if (astroBWTMaxSize.IsNull() || !astroBWTMaxSize.IsInt()) { + m_shouldSave = true; + } + else { + m_astrobwtMaxSize = std::min(std::max(astroBWTMaxSize.GetInt(), 400), 1200); + } + + const auto& astroBWTAVX2 = Json::getValue(value, kAstroBWTAVX2); + if (astroBWTAVX2.IsNull() || !astroBWTAVX2.IsBool()) { + m_shouldSave = true; + } + else { + m_astrobwtAVX2 = astroBWTAVX2.GetBool(); + } +# endif + m_threads.read(value); generate(); @@ -178,6 +206,7 @@ void xmrig::CpuConfig::generate() count += xmrig::generate(m_threads, m_limit); count += xmrig::generate(m_threads, m_limit); count += xmrig::generate(m_threads, m_limit); + count += xmrig::generate(m_threads, m_limit); count += xmrig::generate(m_threads, m_limit); m_shouldSave |= count > 0; diff --git a/src/backend/cpu/CpuConfig.h b/src/backend/cpu/CpuConfig.h index 4342ad89..536c221e 100644 --- a/src/backend/cpu/CpuConfig.h +++ b/src/backend/cpu/CpuConfig.h @@ -56,6 +56,11 @@ public: static const char *kArgon2Impl; # endif +# ifdef XMRIG_ALGO_ASTROBWT + static const char *kAstroBWTMaxSize; + static const char *kAstroBWTAVX2; +# endif + CpuConfig() = default; bool isHwAES() const; @@ -64,6 +69,7 @@ public: std::vector get(const Miner *miner, const Algorithm &algorithm) const; void read(const rapidjson::Value &value); + inline bool astrobwtAVX2() const { return m_astrobwtAVX2; } inline bool isEnabled() const { return m_enabled; } inline bool isHugePages() const { return m_hugePageSize > 0; } inline bool isHugePagesJit() const { return m_hugePagesJit; } @@ -72,6 +78,7 @@ public: inline const Assembly &assembly() const { return m_assembly; } inline const String &argon2Impl() const { return m_argon2Impl; } inline const Threads &threads() const { return m_threads; } + inline int astrobwtMaxSize() const { return m_astrobwtMaxSize; } inline int priority() const { return m_priority; } inline size_t hugePageSize() const { return m_hugePageSize * 1024U; } inline uint32_t limit() const { return m_limit; } @@ -89,10 +96,12 @@ private: AesMode m_aes = AES_AUTO; Assembly m_assembly; + bool m_astrobwtAVX2 = false; bool m_enabled = true; bool m_hugePagesJit = false; bool m_shouldSave = false; bool m_yield = true; + int m_astrobwtMaxSize = 550; int m_memoryPool = 0; int m_priority = -1; size_t m_hugePageSize = kDefaultHugePageSizeKb; diff --git a/src/backend/cpu/CpuConfig_gen.h b/src/backend/cpu/CpuConfig_gen.h index dd253c49..5ba10738 100644 --- a/src/backend/cpu/CpuConfig_gen.h +++ b/src/backend/cpu/CpuConfig_gen.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -122,6 +122,17 @@ size_t inline generate(Threads &threads, uint32 } } + if (!threads.isExist(Algorithm::RX_KEVA)) { + auto keva = cpuInfo->threads(Algorithm::RX_KEVA, limit); + if (keva == wow) { + threads.setAlias(Algorithm::RX_KEVA, Algorithm::kRX_WOW); + ++count; + } + else { + count += threads.move(Algorithm::kRX_KEVA, std::move(keva)); + } + } + if (!threads.isExist(Algorithm::RX_WOW)) { count += threads.move(Algorithm::kRX_WOW, std::move(wow)); } @@ -142,6 +153,14 @@ size_t inline generate(Threads &threads, uint32_t #endif +#ifdef XMRIG_ALGO_ASTROBWT +template<> +size_t inline generate(Threads& threads, uint32_t limit) +{ + return generate(Algorithm::kASTROBWT, threads, Algorithm::ASTROBWT_DERO, limit); +} +#endif + #ifdef XMRIG_ALGO_GHOSTRIDER template<> size_t inline generate(Threads& threads, uint32_t limit) diff --git a/src/backend/cpu/CpuLaunchData.cpp b/src/backend/cpu/CpuLaunchData.cpp index 7d3b08f4..9d71ad83 100644 --- a/src/backend/cpu/CpuLaunchData.cpp +++ b/src/backend/cpu/CpuLaunchData.cpp @@ -35,9 +35,11 @@ xmrig::CpuLaunchData::CpuLaunchData(const Miner *miner, const Algorithm &algorithm, const CpuConfig &config, const CpuThread &thread, size_t threads, const std::vector& affinities) : algorithm(algorithm), assembly(config.assembly()), + astrobwtAVX2(config.astrobwtAVX2()), hugePages(config.isHugePages()), hwAES(config.isHwAES()), yield(config.isYield()), + astrobwtMaxSize(config.astrobwtMaxSize()), priority(config.priority()), affinity(thread.affinity()), miner(miner), diff --git a/src/backend/cpu/CpuLaunchData.h b/src/backend/cpu/CpuLaunchData.h index 9742a1b4..b4465502 100644 --- a/src/backend/cpu/CpuLaunchData.h +++ b/src/backend/cpu/CpuLaunchData.h @@ -58,9 +58,11 @@ public: const Algorithm algorithm; const Assembly assembly; + const bool astrobwtAVX2; const bool hugePages; const bool hwAES; const bool yield; + const int astrobwtMaxSize; const int priority; const int64_t affinity; const Miner *miner; diff --git a/src/backend/cpu/CpuWorker.cpp b/src/backend/cpu/CpuWorker.cpp index bef2e898..32a7a6be 100644 --- a/src/backend/cpu/CpuWorker.cpp +++ b/src/backend/cpu/CpuWorker.cpp @@ -23,7 +23,6 @@ #include "backend/cpu/Cpu.h" #include "backend/cpu/CpuWorker.h" -#include "base/tools/Alignment.h" #include "base/tools/Chrono.h" #include "core/config/Config.h" #include "core/Miner.h" @@ -33,7 +32,6 @@ #include "crypto/common/Nonce.h" #include "crypto/common/VirtualMemory.h" #include "crypto/rx/Rx.h" -#include "crypto/rx/RxCache.h" #include "crypto/rx/RxDataset.h" #include "crypto/rx/RxVm.h" #include "crypto/ghostrider/ghostrider.h" @@ -45,6 +43,11 @@ #endif +#ifdef XMRIG_ALGO_ASTROBWT +# include "crypto/astrobwt/AstroBWT.h" +#endif + + #ifdef XMRIG_FEATURE_BENCHMARK # include "backend/common/benchmark/BenchState.h" #endif @@ -69,20 +72,19 @@ xmrig::CpuWorker::CpuWorker(size_t id, const CpuLaunchData &data) : Worker(id, data.affinity, data.priority), m_algorithm(data.algorithm), m_assembly(data.assembly), + m_astrobwtAVX2(data.astrobwtAVX2), m_hwAES(data.hwAES), m_yield(data.yield), m_av(data.av()), + m_astrobwtMaxSize(data.astrobwtMaxSize * 1000), m_miner(data.miner), m_threads(data.threads), m_ctx() { # ifdef XMRIG_ALGO_CN_HEAVY // cn-heavy optimization for Zen3 CPUs - const auto arch = Cpu::info()->arch(); - const uint32_t model = Cpu::info()->model(); - const bool is_vermeer = (arch == ICpuInfo::ARCH_ZEN3) && (model == 0x21); - const bool is_raphael = (arch == ICpuInfo::ARCH_ZEN4) && (model == 0x61); - if ((N == 1) && (m_av == CnHash::AV_SINGLE) && (m_algorithm.family() == Algorithm::CN_HEAVY) && (m_assembly != Assembly::NONE) && (is_vermeer || is_raphael)) { + const bool is_vermeer = (Cpu::info()->arch() == ICpuInfo::ARCH_ZEN3) && (Cpu::info()->model() == 0x21); + if ((N == 1) && (m_av == CnHash::AV_SINGLE) && (m_algorithm.family() == Algorithm::CN_HEAVY) && (m_assembly != Assembly::NONE) && is_vermeer) { std::lock_guard lock(cn_heavyZen3MemoryMutex); if (!cn_heavyZen3Memory) { // Round up number of threads to the multiple of 8 @@ -98,7 +100,7 @@ xmrig::CpuWorker::CpuWorker(size_t id, const CpuLaunchData &data) : } # ifdef XMRIG_ALGO_GHOSTRIDER - m_ghHelper = ghostrider::create_helper_thread(affinity(), data.priority, data.affinities); + m_ghHelper = ghostrider::create_helper_thread(affinity(), data.affinities); # endif } @@ -132,7 +134,7 @@ void xmrig::CpuWorker::allocateRandomX_VM() RxDataset *dataset = Rx::dataset(m_job.currentJob(), node()); while (dataset == nullptr) { - std::this_thread::sleep_for(std::chrono::milliseconds(20)); + std::this_thread::sleep_for(std::chrono::milliseconds(200)); if (Nonce::sequence(Nonce::CPU) == 0) { return; @@ -146,11 +148,6 @@ void xmrig::CpuWorker::allocateRandomX_VM() uint8_t* scratchpad = m_memory->isHugePages() ? m_memory->scratchpad() : dataset->tryAllocateScrathpad(); m_vm = RxVm::create(dataset, scratchpad ? scratchpad : m_memory->scratchpad(), !m_hwAES, m_assembly, node()); } - else if (!dataset->get() && (m_job.currentJob().seed() != m_seed)) { - // Update RandomX light VM with the new seed - randomx_vm_set_cache(m_vm, dataset->cache()->get()); - } - m_seed = m_job.currentJob().seed(); } #endif @@ -225,6 +222,12 @@ bool xmrig::CpuWorker::selfTest() } # endif +# ifdef XMRIG_ALGO_ASTROBWT + if (m_algorithm.family() == Algorithm::ASTROBWT) { + return verify(Algorithm::ASTROBWT_DERO, astrobwt_dero_test_out); + } +# endif + return false; } @@ -243,7 +246,7 @@ void xmrig::CpuWorker::start() while (Nonce::sequence(Nonce::CPU) > 0) { if (Nonce::isPaused()) { do { - std::this_thread::sleep_for(std::chrono::milliseconds(20)); + std::this_thread::sleep_for(std::chrono::milliseconds(200)); } while (Nonce::isPaused() && Nonce::sequence(Nonce::CPU) > 0); @@ -268,7 +271,7 @@ void xmrig::CpuWorker::start() uint32_t current_job_nonces[N]; for (size_t i = 0; i < N; ++i) { - current_job_nonces[i] = readUnaligned(m_job.nonce(i)); + current_job_nonces[i] = *m_job.nonce(i); } # ifdef XMRIG_FEATURE_BENCHMARK @@ -314,6 +317,14 @@ void xmrig::CpuWorker::start() { switch (job.algorithm().family()) { +# ifdef XMRIG_ALGO_ASTROBWT + case Algorithm::ASTROBWT: + if (!astrobwt::astrobwt_dero(m_job.blob(), job.size(), m_ctx[0]->memory, m_hash, m_astrobwtMaxSize, m_astrobwtAVX2)) { + valid = false; + } + break; +# endif + # ifdef XMRIG_ALGO_GHOSTRIDER case Algorithm::GHOSTRIDER: if (N == 8) { @@ -359,9 +370,7 @@ void xmrig::CpuWorker::start() } } - if (!Nonce::isPaused()) { - consumeJob(); - } + consumeJob(); } } diff --git a/src/backend/cpu/CpuWorker.h b/src/backend/cpu/CpuWorker.h index 18e4fed5..a15378ed 100644 --- a/src/backend/cpu/CpuWorker.h +++ b/src/backend/cpu/CpuWorker.h @@ -55,7 +55,7 @@ public: size_t threads() const override { # ifdef XMRIG_ALGO_GHOSTRIDER - return ((m_algorithm.family() == Algorithm::GHOSTRIDER) && m_ghHelper) ? 2 : 1; + return m_ghHelper ? 2 : 1; # else return 1; # endif @@ -83,12 +83,14 @@ private: void allocateCnCtx(); void consumeJob(); - alignas(8) uint8_t m_hash[N * 32]{ 0 }; + alignas(16) uint8_t m_hash[N * 32]{ 0 }; const Algorithm m_algorithm; const Assembly m_assembly; + const bool m_astrobwtAVX2; const bool m_hwAES; const bool m_yield; const CnHash::AlgoVariant m_av; + const int m_astrobwtMaxSize; const Miner *m_miner; const size_t m_threads; cryptonight_ctx *m_ctx[N]; @@ -97,7 +99,6 @@ private: # ifdef XMRIG_ALGO_RANDOMX randomx_vm *m_vm = nullptr; - Buffer m_seed; # endif # ifdef XMRIG_ALGO_GHOSTRIDER diff --git a/src/backend/cpu/cpu.cmake b/src/backend/cpu/cpu.cmake index f9a02abd..c485683a 100644 --- a/src/backend/cpu/cpu.cmake +++ b/src/backend/cpu/cpu.cmake @@ -49,15 +49,8 @@ endif() if (XMRIG_ARM) list(APPEND SOURCES_BACKEND_CPU src/backend/cpu/platform/BasicCpuInfo_arm.cpp) - if (XMRIG_OS_WIN) - list(APPEND SOURCES_BACKEND_CPU src/backend/cpu/platform/BasicCpuInfo_arm_win.cpp) - elseif(XMRIG_OS_APPLE) - list(APPEND SOURCES_BACKEND_CPU src/backend/cpu/platform/BasicCpuInfo_arm_mac.cpp) - else() - list(APPEND SOURCES_BACKEND_CPU - src/backend/cpu/platform/lscpu_arm.cpp - src/backend/cpu/platform/BasicCpuInfo_arm_unix.cpp - ) + if (XMRIG_OS_UNIX) + list(APPEND SOURCES_BACKEND_CPU src/backend/cpu/platform/lscpu_arm.cpp) endif() else() list(APPEND SOURCES_BACKEND_CPU src/backend/cpu/platform/BasicCpuInfo.cpp) diff --git a/src/backend/cpu/interfaces/ICpuInfo.h b/src/backend/cpu/interfaces/ICpuInfo.h index 8d10d4d2..f2b56009 100644 --- a/src/backend/cpu/interfaces/ICpuInfo.h +++ b/src/backend/cpu/interfaces/ICpuInfo.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,12 +26,6 @@ #include "crypto/common/Assembly.h" -#ifdef XMRIG_FEATURE_HWLOC -using hwloc_const_bitmap_t = const struct hwloc_bitmap_s *; -using hwloc_topology_t = struct hwloc_topology *; -#endif - - namespace xmrig { @@ -51,23 +45,19 @@ public: ARCH_ZEN, ARCH_ZEN_PLUS, ARCH_ZEN2, - ARCH_ZEN3, - ARCH_ZEN4, - ARCH_ZEN5 + ARCH_ZEN3 }; enum MsrMod : uint32_t { MSR_MOD_NONE, MSR_MOD_RYZEN_17H, MSR_MOD_RYZEN_19H, - MSR_MOD_RYZEN_19H_ZEN4, - MSR_MOD_RYZEN_1AH_ZEN5, MSR_MOD_INTEL, MSR_MOD_CUSTOM, MSR_MOD_MAX }; -# define MSR_NAMES_LIST "none", "ryzen_17h", "ryzen_19h", "ryzen_19h_zen4", "ryzen_1Ah_zen5", "intel", "custom" +# define MSR_NAMES_LIST "none", "ryzen_17h", "ryzen_19h", "intel", "custom" enum Flag : uint32_t { FLAG_AES, @@ -124,16 +114,10 @@ public: virtual size_t threads() const = 0; virtual Vendor vendor() const = 0; virtual uint32_t model() const = 0; - -# ifdef XMRIG_FEATURE_HWLOC - virtual bool membind(hwloc_const_bitmap_t nodeset) = 0; - virtual const std::vector &nodeset() const = 0; - virtual hwloc_topology_t topology() const = 0; -# endif }; -} // namespace xmrig +} /* namespace xmrig */ #endif // XMRIG_CPUINFO_H diff --git a/src/backend/cpu/platform/BasicCpuInfo.cpp b/src/backend/cpu/platform/BasicCpuInfo.cpp index 30a78f82..d64612e5 100644 --- a/src/backend/cpu/platform/BasicCpuInfo.cpp +++ b/src/backend/cpu/platform/BasicCpuInfo.cpp @@ -30,12 +30,6 @@ #endif -#include "crypto/cn/CryptoNight_monero.h" -#ifdef XMRIG_VAES -# include "crypto/cn/CryptoNight_x86_vaes.h" -#endif - - #include "backend/cpu/platform/BasicCpuInfo.h" #include "3rdparty/rapidjson/document.h" #include "crypto/common/Assembly.h" @@ -64,7 +58,7 @@ static_assert(kCpuFlagsSize == ICpuInfo::FLAG_MAX, "kCpuFlagsSize and FLAG_MAX m #ifdef XMRIG_FEATURE_MSR -constexpr size_t kMsrArraySize = 7; +constexpr size_t kMsrArraySize = 5; static const std::array msrNames = { MSR_NAMES_LIST }; static_assert(kMsrArraySize == ICpuInfo::MSR_MOD_MAX, "kMsrArraySize and MSR_MOD_MAX mismatch"); #endif @@ -146,7 +140,7 @@ static inline bool has_osxsave() { return has_feature(PROCESSOR_INFO, static inline bool has_aes_ni() { return has_feature(PROCESSOR_INFO, ECX_Reg, 1 << 25); } static inline bool has_avx() { return has_feature(PROCESSOR_INFO, ECX_Reg, 1 << 28) && has_osxsave() && has_xcr_avx(); } static inline bool has_avx2() { return has_feature(EXTENDED_FEATURES, EBX_Reg, 1 << 5) && has_osxsave() && has_xcr_avx(); } -static inline bool has_vaes() { return has_feature(EXTENDED_FEATURES, ECX_Reg, 1 << 9) && has_osxsave() && has_xcr_avx(); } +static inline bool has_vaes() { return has_feature(EXTENDED_FEATURES, ECX_Reg, 1 << 9); } static inline bool has_avx512f() { return has_feature(EXTENDED_FEATURES, EBX_Reg, 1 << 16) && has_osxsave() && has_xcr_avx512(); } static inline bool has_bmi2() { return has_feature(EXTENDED_FEATURES, EBX_Reg, 1 << 8); } static inline bool has_pdpe1gb() { return has_feature(PROCESSOR_EXT_INFO, EDX_Reg, 1 << 26); } @@ -250,19 +244,8 @@ xmrig::BasicCpuInfo::BasicCpuInfo() : break; case 0x19: - if (m_model == 0x61) { - m_arch = ARCH_ZEN4; - m_msrMod = MSR_MOD_RYZEN_19H_ZEN4; - } - else { - m_arch = ARCH_ZEN3; - m_msrMod = MSR_MOD_RYZEN_19H; - } - break; - - case 0x1a: - m_arch = ARCH_ZEN5; - m_msrMod = MSR_MOD_RYZEN_1AH_ZEN5; + m_arch = ARCH_ZEN3; + m_msrMod = MSR_MOD_RYZEN_19H; break; default: @@ -301,7 +284,7 @@ xmrig::BasicCpuInfo::BasicCpuInfo() : // Affected CPU models and stepping numbers are taken from https://www.intel.com/content/dam/support/us/en/documents/processors/mitigations-jump-conditional-code-erratum.pdf m_jccErratum = ((model == 0x4E) && (stepping == 0x3)) || - ((model == 0x55) && ((stepping == 0x4) || (stepping == 0x7))) || + ((model == 0x55) && (stepping == 0x4)) || ((model == 0x5E) && (stepping == 0x3)) || ((model == 0x8E) && (stepping >= 0x9) && (stepping <= 0xC)) || ((model == 0x9E) && (stepping >= 0x9) && (stepping <= 0xD)) || @@ -311,9 +294,6 @@ xmrig::BasicCpuInfo::BasicCpuInfo() : } } # endif - - cn_sse41_enabled = has(FLAG_SSE41); - cn_vaes_enabled = has(FLAG_VAES); } @@ -373,6 +353,16 @@ xmrig::CpuThreads xmrig::BasicCpuInfo::threads(const Algorithm &algorithm, uint3 } # endif +# ifdef XMRIG_ALGO_ASTROBWT + if (f == Algorithm::ASTROBWT) { + CpuThreads threads; + for (size_t i = 0; i < count; ++i) { + threads.add(i, 0); + } + return threads; + } +# endif + # ifdef XMRIG_ALGO_GHOSTRIDER if (f == Algorithm::GHOSTRIDER) { return CpuThreads(std::max(count / 2, 1), 8); diff --git a/src/backend/cpu/platform/BasicCpuInfo.h b/src/backend/cpu/platform/BasicCpuInfo.h index 5ea5661d..9405fa75 100644 --- a/src/backend/cpu/platform/BasicCpuInfo.h +++ b/src/backend/cpu/platform/BasicCpuInfo.h @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2017-2019 XMR-Stak , - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -72,10 +72,11 @@ protected: # endif } +protected: Arch m_arch = ARCH_UNKNOWN; bool m_jccErratum = false; char m_brand[64 + 6]{}; - size_t m_threads = 0; + size_t m_threads; std::vector m_units; Vendor m_vendor = VENDOR_UNKNOWN; @@ -85,8 +86,6 @@ private: uint32_t m_family = 0; uint32_t m_model = 0; uint32_t m_stepping = 0; -# else - void init_arm(); # endif Assembly m_assembly = Assembly::NONE; @@ -95,7 +94,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_BASICCPUINFO_H +#endif /* XMRIG_BASICCPUINFO_H */ diff --git a/src/backend/cpu/platform/BasicCpuInfo_arm.cpp b/src/backend/cpu/platform/BasicCpuInfo_arm.cpp index a38c5172..c21642ec 100644 --- a/src/backend/cpu/platform/BasicCpuInfo_arm.cpp +++ b/src/backend/cpu/platform/BasicCpuInfo_arm.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,15 +16,44 @@ * along with this program. If not, see . */ +#include "base/tools/String.h" + + #include #include +#include #include +#if __ARM_FEATURE_CRYPTO && !defined(__APPLE__) +# include +# ifndef __FreeBSD__ +# include +# else +# include +# include +# ifndef ID_AA64ISAR0_AES_VAL +# define ID_AA64ISAR0_AES_VAL ID_AA64ISAR0_AES +# endif +# endif +#endif + + #include "backend/cpu/platform/BasicCpuInfo.h" #include "3rdparty/rapidjson/document.h" +#if defined(XMRIG_OS_UNIX) +namespace xmrig { + +extern String cpu_name_arm(); + +} // namespace xmrig +#elif defined(XMRIG_OS_MACOS) +# include +#endif + + xmrig::BasicCpuInfo::BasicCpuInfo() : m_threads(std::thread::hardware_concurrency()) { @@ -39,7 +68,28 @@ xmrig::BasicCpuInfo::BasicCpuInfo() : memcpy(m_brand, "ARMv7", 5); # endif - init_arm(); +# if __ARM_FEATURE_CRYPTO +# if defined(__APPLE__) + m_flags.set(FLAG_AES, true); +# elif defined(__FreeBSD__) + uint64_t isar0 = READ_SPECIALREG(id_aa64isar0_el1); + m_flags.set(FLAG_AES, ID_AA64ISAR0_AES_VAL(isar0) >= ID_AA64ISAR0_AES_BASE); +# else + m_flags.set(FLAG_AES, getauxval(AT_HWCAP) & HWCAP_AES); +# endif +# endif + +# if defined(XMRIG_OS_UNIX) + auto name = cpu_name_arm(); + if (!name.isNull()) { + strncpy(m_brand, name, sizeof(m_brand) - 1); + } + + m_flags.set(FLAG_PDPE1GB, std::ifstream("/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages").good()); +# elif defined(XMRIG_OS_MACOS) + size_t buflen = sizeof(m_brand); + sysctlbyname("machdep.cpu.brand_string", &m_brand, &buflen, nullptr, 0); +# endif } diff --git a/src/backend/cpu/platform/BasicCpuInfo_arm_mac.cpp b/src/backend/cpu/platform/BasicCpuInfo_arm_mac.cpp deleted file mode 100644 index f1c35c6f..00000000 --- a/src/backend/cpu/platform/BasicCpuInfo_arm_mac.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "backend/cpu/platform/BasicCpuInfo.h" - -#include - - -void xmrig::BasicCpuInfo::init_arm() -{ -# if __ARM_FEATURE_CRYPTO - m_flags.set(FLAG_AES, true); // FIXME -# endif - - size_t buflen = sizeof(m_brand); - sysctlbyname("machdep.cpu.brand_string", &m_brand, &buflen, nullptr, 0); -} diff --git a/src/backend/cpu/platform/BasicCpuInfo_arm_unix.cpp b/src/backend/cpu/platform/BasicCpuInfo_arm_unix.cpp deleted file mode 100644 index d480e7c5..00000000 --- a/src/backend/cpu/platform/BasicCpuInfo_arm_unix.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "backend/cpu/platform/BasicCpuInfo.h" -#include "base/tools/String.h" - - -#include - - -#if __ARM_FEATURE_CRYPTO -# include -# if !defined(XMRIG_OS_FREEBSD) -# include -# else -# include -# include -# ifndef ID_AA64ISAR0_AES_VAL -# define ID_AA64ISAR0_AES_VAL ID_AA64ISAR0_AES -# endif -# endif -#endif - - -namespace xmrig { - - -extern String cpu_name_arm(); - - -} // namespace xmrig - - -void xmrig::BasicCpuInfo::init_arm() -{ -# if __ARM_FEATURE_CRYPTO -# if defined(XMRIG_OS_FREEBSD) - uint64_t isar0 = READ_SPECIALREG(id_aa64isar0_el1); - m_flags.set(FLAG_AES, ID_AA64ISAR0_AES_VAL(isar0) >= ID_AA64ISAR0_AES_BASE); -# else - m_flags.set(FLAG_AES, getauxval(AT_HWCAP) & HWCAP_AES); -# endif -# endif - -# if defined(XMRIG_OS_UNIX) - auto name = cpu_name_arm(); - if (!name.isNull()) { - strncpy(m_brand, name, sizeof(m_brand) - 1); - } - - m_flags.set(FLAG_PDPE1GB, std::ifstream("/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages").good()); -# endif -} diff --git a/src/backend/cpu/platform/BasicCpuInfo_arm_win.cpp b/src/backend/cpu/platform/BasicCpuInfo_arm_win.cpp deleted file mode 100644 index a11aa94d..00000000 --- a/src/backend/cpu/platform/BasicCpuInfo_arm_win.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "backend/cpu/platform/BasicCpuInfo.h" - -#include - - -void xmrig::BasicCpuInfo::init_arm() -{ - DWORD size = sizeof(m_brand) - 1; - const char *subkey = "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"; - - RegGetValueA(HKEY_LOCAL_MACHINE, subkey, "ProcessorNameString", RRF_RT_REG_SZ, nullptr, m_brand, &size); - - m_flags.set(FLAG_AES, IsProcessorFeaturePresent(PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE)); -} diff --git a/src/backend/cpu/platform/HwlocCpuInfo.cpp b/src/backend/cpu/platform/HwlocCpuInfo.cpp index f796416b..9a195db2 100644 --- a/src/backend/cpu/platform/HwlocCpuInfo.cpp +++ b/src/backend/cpu/platform/HwlocCpuInfo.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,22 +36,27 @@ #include "base/io/log/Log.h" -#if HWLOC_API_VERSION < 0x20000 -static inline int hwloc_obj_type_is_cache(hwloc_obj_type_t type) -{ - return type == HWLOC_OBJ_CACHE; -} -#endif - - namespace xmrig { +uint32_t HwlocCpuInfo::m_features = 0; + + +static inline bool isCacheObject(hwloc_obj_t obj) +{ +# if HWLOC_API_VERSION >= 0x20000 + return hwloc_obj_type_is_cache(obj->type); +# else + return obj->type == HWLOC_OBJ_CACHE; +# endif +} + + template static inline void findCache(hwloc_obj_t obj, unsigned min, unsigned max, func lambda) { for (size_t i = 0; i < obj->arity; i++) { - if (hwloc_obj_type_is_cache(obj->children[i]->type)) { + if (isCacheObject(obj->children[i])) { const unsigned depth = obj->children[i]->attr->cache.depth; if (depth < min || depth > max) { continue; @@ -169,6 +174,10 @@ xmrig::HwlocCpuInfo::HwlocCpuInfo() m_packages = countByType(m_topology, HWLOC_OBJ_PACKAGE); if (m_nodes > 1) { + if (hwloc_topology_get_support(m_topology)->membind->set_thisthread_membind) { + m_features |= SET_THISTHREAD_MEMBIND; + } + m_nodeset.reserve(m_nodes); hwloc_obj_t node = nullptr; @@ -289,10 +298,8 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith cores.reserve(m_cores); findByType(cache, HWLOC_OBJ_CORE, [&cores](hwloc_obj_t found) { cores.emplace_back(found); }); - const bool L3_exclusive = isCacheExclusive(cache); - # ifdef XMRIG_ALGO_GHOSTRIDER - if ((algorithm == Algorithm::GHOSTRIDER_RTM) && L3_exclusive && (PUs > cores.size()) && (PUs < cores.size() * 2)) { + if ((algorithm == Algorithm::GHOSTRIDER_RTM) && (PUs > cores.size()) && (PUs < cores.size() * 2)) { // Don't use E-cores on Alder Lake cores.erase(std::remove_if(cores.begin(), cores.end(), [](hwloc_obj_t c) { return hwloc_bitmap_weight(c->cpuset) == 1; }), cores.end()); @@ -304,48 +311,37 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith # endif size_t L3 = cache->attr->cache.size; + const bool L3_exclusive = isCacheExclusive(cache); size_t L2 = 0; int L2_associativity = 0; size_t extra = 0; size_t scratchpad = algorithm.l3(); uint32_t intensity = algorithm.maxIntensity() == 1 ? 0 : 1; +# ifdef XMRIG_ALGO_ASTROBWT + if (algorithm == Algorithm::ASTROBWT_DERO) { + // Use fake low value to force usage of all available cores for AstroBWT (taking 'limit' into account) + scratchpad = 16 * 1024; + } +# endif + if (cache->attr->cache.depth == 3) { - auto process_L2 = [&L2, &L2_associativity, L3_exclusive, this, &extra, scratchpad](hwloc_obj_t l2) { - if (!hwloc_obj_type_is_cache(l2->type) || l2->attr == nullptr) { - return; + for (size_t i = 0; i < cache->arity; ++i) { + hwloc_obj_t l2 = cache->children[i]; + if (!isCacheObject(l2) || l2->attr == nullptr) { + continue; } L2 += l2->attr->cache.size; L2_associativity = l2->attr->cache.associativity; - if (L3_exclusive) { - if ((vendor() == VENDOR_AMD) && ((arch() == ARCH_ZEN4) || (arch() == ARCH_ZEN5))) { - // Use extra L2 only on newer CPUs because older CPUs (Zen 3 and older) don't benefit from it. - // For some reason, AMD CPUs can use only half of the exclusive L2/L3 cache combo efficiently - extra += std::min(l2->attr->cache.size / 2, scratchpad); - } - else if (l2->attr->cache.size >= scratchpad) { - extra += scratchpad; - } - } - }; - - for (size_t i = 0; i < cache->arity; ++i) { - hwloc_obj_t ch = cache->children[i]; - if (ch->type == HWLOC_OBJ_GROUP) { - for (size_t j = 0; j < ch->arity; ++j) { - process_L2(ch->children[j]); - } - } - else { - process_L2(ch); + if (L3_exclusive && l2->attr->cache.size >= scratchpad) { + extra += scratchpad; } } } - // This code is supposed to run only on Intel CPUs - if ((vendor() == VENDOR_INTEL) && (scratchpad == 2 * oneMiB)) { + if (scratchpad == 2 * oneMiB) { if (L2 && (cores.size() * oneMiB) == L2 && L2_associativity == 16 && L3 >= L2) { L3 = L2; extra = L2; @@ -360,10 +356,6 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith } # ifdef XMRIG_ALGO_RANDOMX - if ((vendor() == VENDOR_INTEL) && (algorithm.family() == Algorithm::RANDOM_X) && L3_exclusive && (PUs < cores.size() * 2)) { - // Use all L3+L2 on latest Intel CPUs with P-cores, E-cores and exclusive L3 cache - cacheHashes = (L3 + L2) / scratchpad; - } if (extra == 0 && algorithm.l2() > 0) { cacheHashes = std::min(std::max(L2 / algorithm.l2(), cores.size()), cacheHashes); } diff --git a/src/backend/cpu/platform/HwlocCpuInfo.h b/src/backend/cpu/platform/HwlocCpuInfo.h index a08ea33e..390c7d3f 100644 --- a/src/backend/cpu/platform/HwlocCpuInfo.h +++ b/src/backend/cpu/platform/HwlocCpuInfo.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,9 +21,12 @@ #include "backend/cpu/platform/BasicCpuInfo.h" +#include "base/tools/Object.h" -using hwloc_obj_t = struct hwloc_obj *; +using hwloc_const_bitmap_t = const struct hwloc_bitmap_s *; +using hwloc_obj_t = struct hwloc_obj *; +using hwloc_topology_t = struct hwloc_topology *; namespace xmrig { @@ -34,27 +37,39 @@ class HwlocCpuInfo : public BasicCpuInfo public: XMRIG_DISABLE_COPY_MOVE(HwlocCpuInfo) + + enum Feature : uint32_t { + SET_THISTHREAD_MEMBIND = 1 + }; + + HwlocCpuInfo(); ~HwlocCpuInfo() override; + static inline bool hasFeature(Feature feature) { return m_features & feature; } + + inline const std::vector &nodeset() const { return m_nodeset; } + inline hwloc_topology_t topology() const { return m_topology; } + + bool membind(hwloc_const_bitmap_t nodeset); + protected: - bool membind(hwloc_const_bitmap_t nodeset) override; CpuThreads threads(const Algorithm &algorithm, uint32_t limit) const override; - inline const char *backend() const override { return m_backend; } - inline const std::vector &nodeset() const override { return m_nodeset; } - inline hwloc_topology_t topology() const override { return m_topology; } - inline size_t cores() const override { return m_cores; } - inline size_t L2() const override { return m_cache[2]; } - inline size_t L3() const override { return m_cache[3]; } - inline size_t nodes() const override { return m_nodes; } - inline size_t packages() const override { return m_packages; } + inline const char *backend() const override { return m_backend; } + inline size_t cores() const override { return m_cores; } + inline size_t L2() const override { return m_cache[2]; } + inline size_t L3() const override { return m_cache[3]; } + inline size_t nodes() const override { return m_nodes; } + inline size_t packages() const override { return m_packages; } private: CpuThreads allThreads(const Algorithm &algorithm, uint32_t limit) const; void processTopLevelCache(hwloc_obj_t cache, const Algorithm &algorithm, CpuThreads &threads, size_t limit) const; void setThreads(size_t threads); + static uint32_t m_features; + char m_backend[20] = { 0 }; hwloc_topology_t m_topology = nullptr; size_t m_cache[5] = { 0 }; @@ -65,7 +80,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_HWLOCCPUINFO_H +#endif /* XMRIG_HWLOCCPUINFO_H */ diff --git a/src/backend/cpu/platform/lscpu_arm.cpp b/src/backend/cpu/platform/lscpu_arm.cpp index 31658e17..d632ac49 100644 --- a/src/backend/cpu/platform/lscpu_arm.cpp +++ b/src/backend/cpu/platform/lscpu_arm.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2018 Riku Voipio - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ * along with this program. If not, see . */ + #include "base/tools/String.h" #include "3rdparty/fmt/core.h" @@ -83,7 +84,6 @@ static const id_part arm_part[] = { { 0xc27, "Cortex-M7" }, { 0xc60, "Cortex-M0+" }, { 0xd01, "Cortex-A32" }, - { 0xd02, "Cortex-A34" }, { 0xd03, "Cortex-A53" }, { 0xd04, "Cortex-A35" }, { 0xd05, "Cortex-A55" }, @@ -97,78 +97,43 @@ static const id_part arm_part[] = { { 0xd0d, "Cortex-A77" }, { 0xd0e, "Cortex-A76AE" }, { 0xd13, "Cortex-R52" }, - { 0xd15, "Cortex-R82" }, - { 0xd16, "Cortex-R52+" }, { 0xd20, "Cortex-M23" }, { 0xd21, "Cortex-M33" }, - { 0xd22, "Cortex-M55" }, - { 0xd23, "Cortex-M85" }, - { 0xd40, "Neoverse-V1" }, { 0xd41, "Cortex-A78" }, { 0xd42, "Cortex-A78AE" }, - { 0xd43, "Cortex-A65AE" }, - { 0xd44, "Cortex-X1" }, - { 0xd46, "Cortex-A510" }, - { 0xd47, "Cortex-A710" }, - { 0xd48, "Cortex-X2" }, - { 0xd49, "Neoverse-N2" }, { 0xd4a, "Neoverse-E1" }, { 0xd4b, "Cortex-A78C" }, - { 0xd4c, "Cortex-X1C" }, - { 0xd4d, "Cortex-A715" }, - { 0xd4e, "Cortex-X3" }, - { 0xd4f, "Neoverse-V2" }, - { 0xd80, "Cortex-A520" }, - { 0xd81, "Cortex-A720" }, - { 0xd82, "Cortex-X4" }, - { 0xd83, "Neoverse-V3AE" }, - { 0xd84, "Neoverse-V3" }, - { 0xd85, "Cortex-X925" }, - { 0xd87, "Cortex-A725" }, - { 0xd88, "Cortex-A520AE" }, - { 0xd89, "Cortex-A720AE" }, - { 0xd8e, "Neoverse-N3" }, - { 0xd8f, "Cortex-A320" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part brcm_part[] = { - { 0x0f, "Brahma-B15" }, - { 0x100, "Brahma-B53" }, + { 0x0f, "Brahma B15" }, + { 0x100, "Brahma B53" }, { 0x516, "ThunderX2" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part dec_part[] = { { 0xa10, "SA110" }, { 0xa11, "SA1100" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part cavium_part[] = { { 0x0a0, "ThunderX" }, - { 0x0a1, "ThunderX-88XX" }, - { 0x0a2, "ThunderX-81XX" }, - { 0x0a3, "ThunderX-83XX" }, - { 0x0af, "ThunderX2-99xx" }, - { 0x0b0, "OcteonTX2" }, - { 0x0b1, "OcteonTX2-98XX" }, - { 0x0b2, "OcteonTX2-96XX" }, - { 0x0b3, "OcteonTX2-95XX" }, - { 0x0b4, "OcteonTX2-95XXN" }, - { 0x0b5, "OcteonTX2-95XXMM" }, - { 0x0b6, "OcteonTX2-95XXO" }, - { 0x0b8, "ThunderX3-T110" }, - { -1, nullptr } + { 0x0a1, "ThunderX 88XX" }, + { 0x0a2, "ThunderX 81XX" }, + { 0x0a3, "ThunderX 83XX" }, + { 0x0af, "ThunderX2 99xx" }, + { -1, nullptr }, }; static const id_part apm_part[] = { { 0x000, "X-Gene" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part qcom_part[] = { - { 0x001, "Oryon" }, { 0x00f, "Scorpion" }, { 0x02d, "Scorpion" }, { 0x04d, "Krait" }, @@ -176,59 +141,36 @@ static const id_part qcom_part[] = { { 0x201, "Kryo" }, { 0x205, "Kryo" }, { 0x211, "Kryo" }, - { 0x800, "Falkor-V1/Kryo" }, - { 0x801, "Kryo-V2" }, - { 0x802, "Kryo-3XX-Gold" }, - { 0x803, "Kryo-3XX-Silver" }, - { 0x804, "Kryo-4XX-Gold" }, - { 0x805, "Kryo-4XX-Silver" }, + { 0x800, "Falkor V1/Kryo" }, + { 0x801, "Kryo V2" }, { 0xc00, "Falkor" }, { 0xc01, "Saphira" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part samsung_part[] = { { 0x001, "exynos-m1" }, - { 0x002, "exynos-m3" }, - { 0x003, "exynos-m4" }, - { 0x004, "exynos-m5" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part nvidia_part[] = { { 0x000, "Denver" }, { 0x003, "Denver 2" }, { 0x004, "Carmel" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part marvell_part[] = { - { 0x131, "Feroceon-88FR131" }, + { 0x131, "Feroceon 88FR131" }, { 0x581, "PJ4/PJ4b" }, { 0x584, "PJ4B-MP" }, - { -1, nullptr } -}; - -static const id_part apple_part[] = { - { 0x022, "M1" }, - { 0x023, "M1" }, - { 0x024, "M1-Pro" }, - { 0x025, "M1-Pro" }, - { 0x028, "M1-Max" }, - { 0x029, "M1-Max" }, - { 0x032, "M2" }, - { 0x033, "M2" }, - { 0x034, "M2-Pro" }, - { 0x035, "M2-Pro" }, - { 0x038, "M2-Max" }, - { 0x039, "M2-Max" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part faraday_part[] = { { 0x526, "FA526" }, { 0x626, "FA626" }, - { -1, nullptr } + { -1, nullptr }, }; static const id_part intel_part[] = { @@ -253,43 +195,23 @@ static const id_part intel_part[] = { { 0x689, "PXA31x" }, { 0xb11, "SA1110" }, { 0xc12, "IPX1200" }, - { -1, nullptr } + { -1, nullptr }, }; static const struct id_part fujitsu_part[] = { { 0x001, "A64FX" }, - { 0x003, "MONAKA" }, - { -1, nullptr } + { -1, "unknown" }, }; static const id_part hisi_part[] = { - { 0xd01, "TaiShan-v110" }, /* used in Kunpeng-920 SoC */ - { 0xd02, "TaiShan-v120" }, /* used in Kirin 990A and 9000S SoCs */ - { 0xd40, "Cortex-A76" }, /* HiSilicon uses this ID though advertises A76 */ - { 0xd41, "Cortex-A77" }, /* HiSilicon uses this ID though advertises A77 */ - { -1, nullptr } + { 0xd01, "Kunpeng-920" }, /* aka tsv110 */ + { -1, nullptr }, }; -static const struct id_part ampere_part[] = { - { 0xac3, "Ampere-1" }, - { 0xac4, "Ampere-1a" }, - { -1, nullptr } -}; - -static const struct id_part ft_part[] = { - { 0x303, "FTC310" }, - { 0x660, "FTC660" }, - { 0x661, "FTC661" }, - { 0x662, "FTC662" }, - { 0x663, "FTC663" }, - { 0x664, "FTC664" }, - { 0x862, "FTC862" }, - { -1, nullptr } -}; - -static const struct id_part ms_part[] = { - { 0xd49, "Azure-Cobalt-100" }, - { -1, nullptr } +static const id_part apple_part[] = { + { 0x022, "M1" }, + { 0x023, "M1" }, + { -1, nullptr }, }; @@ -300,17 +222,14 @@ static const hw_impl hw_implementer[] = { { 0x44, dec_part, "DEC" }, { 0x46, fujitsu_part, "FUJITSU" }, { 0x48, hisi_part, "HiSilicon" }, - { 0x4e, nvidia_part, "NVIDIA" }, + { 0x4e, nvidia_part, "Nvidia" }, { 0x50, apm_part, "APM" }, { 0x51, qcom_part, "Qualcomm" }, { 0x53, samsung_part, "Samsung" }, { 0x56, marvell_part, "Marvell" }, { 0x61, apple_part, "Apple" }, { 0x66, faraday_part, "Faraday" }, - { 0x69, intel_part, "Intel" }, - { 0x6d, ms_part, "Microsoft" }, - { 0x70, ft_part, "Phytium" }, - { 0xc0, ampere_part, "Ampere" } + { 0x69, intel_part, "Intel" } }; diff --git a/src/backend/cuda/CudaBackend.cpp b/src/backend/cuda/CudaBackend.cpp index 621563e1..0ef59981 100644 --- a/src/backend/cuda/CudaBackend.cpp +++ b/src/backend/cuda/CudaBackend.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,6 +40,11 @@ #include "core/Controller.h" +#ifdef XMRIG_ALGO_ASTROBWT +# include "backend/cuda/runners/CudaAstroBWTRunner.h" +#endif + + #ifdef XMRIG_ALGO_KAWPOW # include "crypto/kawpow/KPCache.h" # include "crypto/kawpow/KPHash.h" @@ -215,6 +220,12 @@ public: size_t algo_l3 = algo.l3(); +# ifdef XMRIG_ALGO_ASTROBWT + if (algo.family() == Algorithm::ASTROBWT) { + algo_l3 = CudaAstroBWTRunner::BWT_DATA_STRIDE * 17 + 1024; + } +# endif + size_t i = 0; for (const auto &data : threads) { size_t mem_used = (data.thread.threads() * data.thread.blocks()) * algo_l3 / oneMiB; @@ -227,7 +238,7 @@ public: # endif Log::print("|" CYAN_BOLD("%3zu") " |" CYAN_BOLD("%4u") " |" YELLOW(" %7s") " |" CYAN_BOLD("%10d") " |" CYAN_BOLD("%8d") " |" - CYAN_BOLD("%7d") " |" CYAN_BOLD("%3d") " |" CYAN_BOLD("%4d") " |" CYAN("%7zu") " | " GREEN_BOLD("%s"), + CYAN_BOLD("%7d") " |" CYAN_BOLD("%3d") " |" CYAN_BOLD("%4d") " |" CYAN("%7zu") " | " GREEN("%s"), i, data.thread.index(), data.device.topology().toString().data(), @@ -372,20 +383,15 @@ void xmrig::CudaBackend::printHashrate(bool details) char num[16 * 3] = { 0 }; - auto hashrate_short = hashrate()->calc(Hashrate::ShortInterval); - auto hashrate_medium = hashrate()->calc(Hashrate::MediumInterval); - auto hashrate_large = hashrate()->calc(Hashrate::LargeInterval); + const double hashrate_short = hashrate()->calc(Hashrate::ShortInterval); + const double hashrate_medium = hashrate()->calc(Hashrate::MediumInterval); + const double hashrate_large = hashrate()->calc(Hashrate::LargeInterval); double scale = 1.0; const char* h = " H/s"; - if ((hashrate_short.second >= 1e6) || (hashrate_medium.second >= 1e6) || (hashrate_large.second >= 1e6)) { + if ((hashrate_short >= 1e6) || (hashrate_medium >= 1e6) || (hashrate_large >= 1e6)) { scale = 1e-6; - - hashrate_short.second *= scale; - hashrate_medium.second *= scale; - hashrate_large.second *= scale; - h = "MH/s"; } @@ -393,20 +399,12 @@ void xmrig::CudaBackend::printHashrate(bool details) size_t i = 0; for (const auto& data : d_ptr->threads) { - auto h0 = hashrate()->calc(i, Hashrate::ShortInterval); - auto h1 = hashrate()->calc(i, Hashrate::MediumInterval); - auto h2 = hashrate()->calc(i, Hashrate::LargeInterval); - - h0.second *= scale; - h1.second *= scale; - h2.second *= scale; - - Log::print("| %8zu | %8" PRId64 " | %8s | %8s | %8s |" CYAN_BOLD(" #%u") YELLOW(" %s") GREEN(" %s"), + Log::print("| %8zu | %8" PRId64 " | %8s | %8s | %8s |" CYAN_BOLD(" #%u") YELLOW(" %s") GREEN(" %s"), i, data.thread.affinity(), - Hashrate::format(h0, num, sizeof num / 3), - Hashrate::format(h1, num + 16, sizeof num / 3), - Hashrate::format(h2, num + 16 * 2, sizeof num / 3), + Hashrate::format(hashrate()->calc(i, Hashrate::ShortInterval) * scale, num, sizeof num / 3), + Hashrate::format(hashrate()->calc(i, Hashrate::MediumInterval) * scale, num + 16, sizeof num / 3), + Hashrate::format(hashrate()->calc(i, Hashrate::LargeInterval) * scale, num + 16 * 2, sizeof num / 3), data.device.index(), data.device.topology().toString().data(), data.device.name().data() @@ -416,9 +414,9 @@ void xmrig::CudaBackend::printHashrate(bool details) } Log::print(WHITE_BOLD_S "| - | - | %8s | %8s | %8s |", - Hashrate::format(hashrate_short , num, sizeof num / 3), - Hashrate::format(hashrate_medium, num + 16, sizeof num / 3), - Hashrate::format(hashrate_large , num + 16 * 2, sizeof num / 3) + Hashrate::format(hashrate_short * scale, num, sizeof num / 3), + Hashrate::format(hashrate_medium * scale, num + 16, sizeof num / 3), + Hashrate::format(hashrate_large * scale, num + 16 * 2, sizeof num / 3) ); } diff --git a/src/backend/cuda/CudaConfig.cpp b/src/backend/cuda/CudaConfig.cpp index be8840ea..65084f24 100644 --- a/src/backend/cuda/CudaConfig.cpp +++ b/src/backend/cuda/CudaConfig.cpp @@ -174,6 +174,7 @@ void xmrig::CudaConfig::generate() count += xmrig::generate(m_threads, devices); count += xmrig::generate(m_threads, devices); count += xmrig::generate(m_threads, devices); + count += xmrig::generate(m_threads, devices); count += xmrig::generate(m_threads, devices); generated = true; diff --git a/src/backend/cuda/CudaConfig_gen.h b/src/backend/cuda/CudaConfig_gen.h index d51a27c7..d92b0526 100644 --- a/src/backend/cuda/CudaConfig_gen.h +++ b/src/backend/cuda/CudaConfig_gen.h @@ -114,6 +114,7 @@ size_t inline generate(Threads &threads, const auto rx = CudaThreads(devices, Algorithm::RX_0); auto wow = CudaThreads(devices, Algorithm::RX_WOW); auto arq = CudaThreads(devices, Algorithm::RX_ARQ); + auto kva = CudaThreads(devices, Algorithm::RX_KEVA); if (!threads.isExist(Algorithm::RX_WOW) && wow != rx) { count += threads.move(Algorithm::kRX_WOW, std::move(wow)); @@ -123,6 +124,10 @@ size_t inline generate(Threads &threads, const count += threads.move(Algorithm::kRX_ARQ, std::move(arq)); } + if (!threads.isExist(Algorithm::RX_KEVA) && kva != rx) { + count += threads.move(Algorithm::kRX_KEVA, std::move(kva)); + } + count += threads.move(Algorithm::kRX, std::move(rx)); return count; @@ -130,6 +135,15 @@ size_t inline generate(Threads &threads, const #endif +#ifdef XMRIG_ALGO_ASTROBWT +template<> +size_t inline generate(Threads &threads, const std::vector &devices) +{ + return generate(Algorithm::kASTROBWT, threads, Algorithm::ASTROBWT_DERO, devices); +} +#endif + + #ifdef XMRIG_ALGO_KAWPOW template<> size_t inline generate(Threads &threads, const std::vector &devices) diff --git a/src/backend/cuda/CudaWorker.cpp b/src/backend/cuda/CudaWorker.cpp index a3fd11ef..725d59c9 100644 --- a/src/backend/cuda/CudaWorker.cpp +++ b/src/backend/cuda/CudaWorker.cpp @@ -22,7 +22,6 @@ #include "backend/cuda/runners/CudaCnRunner.h" #include "backend/cuda/wrappers/CudaDevice.h" #include "base/io/log/Log.h" -#include "base/tools/Alignment.h" #include "base/tools/Chrono.h" #include "core/Miner.h" #include "crypto/common/Nonce.h" @@ -34,6 +33,11 @@ #endif +#ifdef XMRIG_ALGO_ASTROBWT +# include "backend/cuda/runners/CudaAstroBWTRunner.h" +#endif + + #ifdef XMRIG_ALGO_KAWPOW # include "backend/cuda/runners/CudaKawPowRunner.h" #endif @@ -71,6 +75,12 @@ xmrig::CudaWorker::CudaWorker(size_t id, const CudaLaunchData &data) : case Algorithm::ARGON2: break; + case Algorithm::ASTROBWT: +# ifdef XMRIG_ALGO_ASTROBWT + m_runner = new CudaAstroBWTRunner(id, data); +# endif + break; + case Algorithm::KAWPOW: # ifdef XMRIG_ALGO_KAWPOW m_runner = new CudaKawPowRunner(id, data); @@ -142,7 +152,7 @@ void xmrig::CudaWorker::start() uint32_t foundNonce[16] = { 0 }; uint32_t foundCount = 0; - if (!m_runner->run(readUnaligned(m_job.nonce()), &foundCount, foundNonce)) { + if (!m_runner->run(*m_job.nonce(), &foundCount, foundNonce)) { return; } @@ -158,7 +168,7 @@ void xmrig::CudaWorker::start() std::this_thread::yield(); } - if (isReady() && !consumeJob()) { + if (!consumeJob()) { return; } } diff --git a/src/backend/cuda/cuda.cmake b/src/backend/cuda/cuda.cmake index d45b2c42..6661ec83 100644 --- a/src/backend/cuda/cuda.cmake +++ b/src/backend/cuda/cuda.cmake @@ -54,6 +54,11 @@ if (WITH_CUDA) list(APPEND SOURCES_BACKEND_CUDA src/backend/cuda/runners/CudaRxRunner.cpp) endif() + if (WITH_ASTROBWT) + list(APPEND HEADERS_BACKEND_CUDA src/backend/cuda/runners/CudaAstroBWTRunner.h) + list(APPEND SOURCES_BACKEND_CUDA src/backend/cuda/runners/CudaAstroBWTRunner.cpp) + endif() + if (WITH_KAWPOW) list(APPEND HEADERS_BACKEND_CUDA src/backend/cuda/runners/CudaKawPowRunner.h) list(APPEND SOURCES_BACKEND_CUDA src/backend/cuda/runners/CudaKawPowRunner.cpp) diff --git a/src/backend/cuda/runners/CudaAstroBWTRunner.cpp b/src/backend/cuda/runners/CudaAstroBWTRunner.cpp new file mode 100644 index 00000000..43431aac --- /dev/null +++ b/src/backend/cuda/runners/CudaAstroBWTRunner.cpp @@ -0,0 +1,75 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/cuda/runners/CudaAstroBWTRunner.h" +#include "backend/cuda/CudaLaunchData.h" +#include "backend/cuda/wrappers/CudaLib.h" +#include "base/net/stratum/Job.h" + + +constexpr uint32_t xmrig::CudaAstroBWTRunner::BWT_DATA_STRIDE; + + +xmrig::CudaAstroBWTRunner::CudaAstroBWTRunner(size_t index, const CudaLaunchData &data) : + CudaBaseRunner(index, data) +{ + m_intensity = m_data.thread.threads() * m_data.thread.blocks(); + m_intensity -= m_intensity % 32; +} + + +bool xmrig::CudaAstroBWTRunner::run(uint32_t startNonce, uint32_t *rescount, uint32_t *resnonce) +{ + return callWrapper(CudaLib::astroBWTHash(m_ctx, startNonce, m_target, rescount, resnonce)); +} + + +bool xmrig::CudaAstroBWTRunner::set(const Job &job, uint8_t *blob) +{ + if (!CudaBaseRunner::set(job, blob)) { + return false; + } + + return callWrapper(CudaLib::astroBWTPrepare(m_ctx, static_cast(m_intensity))); +} + + +size_t xmrig::CudaAstroBWTRunner::roundSize() const +{ + constexpr uint32_t STAGE1_SIZE = 147253; + constexpr uint32_t STAGE1_DATA_STRIDE = (STAGE1_SIZE + 256 + 255) & ~255U; + + const uint32_t BATCH2_SIZE = m_intensity; + const uint32_t BWT_ALLOCATION_SIZE = BATCH2_SIZE * BWT_DATA_STRIDE; + const uint32_t BATCH1_SIZE = (BWT_ALLOCATION_SIZE / STAGE1_DATA_STRIDE) & ~255U; + + return BATCH1_SIZE; +} + + +size_t xmrig::CudaAstroBWTRunner::processedHashes() const +{ + return CudaLib::deviceInt(m_ctx, CudaLib::DeviceAstroBWTProcessedHashes); +} diff --git a/src/backend/cuda/runners/CudaAstroBWTRunner.h b/src/backend/cuda/runners/CudaAstroBWTRunner.h new file mode 100644 index 00000000..0afee8c1 --- /dev/null +++ b/src/backend/cuda/runners/CudaAstroBWTRunner.h @@ -0,0 +1,59 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_CUDAASTROBWTRUNNER_H +#define XMRIG_CUDAASTROBWTRUNNER_H + + +#include "backend/cuda/runners/CudaBaseRunner.h" + + +namespace xmrig { + + +class CudaAstroBWTRunner : public CudaBaseRunner +{ +public: + static constexpr uint32_t BWT_DATA_MAX_SIZE = 560 * 1024 - 256; + static constexpr uint32_t BWT_DATA_STRIDE = (BWT_DATA_MAX_SIZE + 256 + 255) & ~255U; + + CudaAstroBWTRunner(size_t index, const CudaLaunchData &data); + +protected: + inline size_t intensity() const override { return m_intensity; } + inline size_t roundSize() const override; + inline size_t processedHashes() const override; + + bool run(uint32_t startNonce, uint32_t *rescount, uint32_t *resnonce) override; + bool set(const Job &job, uint8_t *blob) override; + +private: + size_t m_intensity = 0; +}; + + +} /* namespace xmrig */ + + +#endif // XMRIG_CUDAASTROBWTRUNNER_H diff --git a/src/backend/cuda/runners/CudaRxRunner.cpp b/src/backend/cuda/runners/CudaRxRunner.cpp index 2ade7d26..dd64e865 100644 --- a/src/backend/cuda/runners/CudaRxRunner.cpp +++ b/src/backend/cuda/runners/CudaRxRunner.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2019 SChernykh + * Copyright 2016-2019 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ * along with this program. If not, see . */ + #include "backend/cuda/runners/CudaRxRunner.h" #include "backend/cuda/CudaLaunchData.h" #include "backend/cuda/wrappers/CudaLib.h" @@ -54,21 +55,12 @@ bool xmrig::CudaRxRunner::run(uint32_t startNonce, uint32_t *rescount, uint32_t bool xmrig::CudaRxRunner::set(const Job &job, uint8_t *blob) { - if (!m_datasetHost && (m_seed != job.seed())) { - m_seed = job.seed(); - - if (m_ready) { - const auto *dataset = Rx::dataset(job, 0); - callWrapper(CudaLib::rxUpdateDataset(m_ctx, dataset->raw(), dataset->size(false))); - } - } - const bool rc = CudaBaseRunner::set(job, blob); if (!rc || m_ready) { return rc; } - const auto *dataset = Rx::dataset(job, 0); + auto dataset = Rx::dataset(job, 0); m_ready = callWrapper(CudaLib::rxPrepare(m_ctx, dataset->raw(), dataset->size(false), m_datasetHost, m_intensity)); return m_ready; diff --git a/src/backend/cuda/runners/CudaRxRunner.h b/src/backend/cuda/runners/CudaRxRunner.h index 12e90783..448400bc 100644 --- a/src/backend/cuda/runners/CudaRxRunner.h +++ b/src/backend/cuda/runners/CudaRxRunner.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2019 SChernykh + * Copyright 2016-2019 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,7 +27,6 @@ #include "backend/cuda/runners/CudaBaseRunner.h" -#include "base/tools/Buffer.h" namespace xmrig { @@ -47,7 +46,6 @@ protected: private: bool m_ready = false; const bool m_datasetHost = false; - Buffer m_seed; size_t m_intensity = 0; }; diff --git a/src/backend/cuda/wrappers/CudaDevice.cpp b/src/backend/cuda/wrappers/CudaDevice.cpp index b160e428..f06fe940 100644 --- a/src/backend/cuda/wrappers/CudaDevice.cpp +++ b/src/backend/cuda/wrappers/CudaDevice.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ * along with this program. If not, see . */ + #include "backend/cuda/wrappers/CudaDevice.h" #include "3rdparty/rapidjson/document.h" #include "backend/cuda/CudaThreads.h" @@ -40,7 +41,7 @@ xmrig::CudaDevice::CudaDevice(uint32_t index, int32_t bfactor, int32_t bsleep) : m_index(index) { - auto *ctx = CudaLib::alloc(index, bfactor, bsleep); + auto ctx = CudaLib::alloc(index, bfactor, bsleep); if (!CudaLib::deviceInfo(ctx, 0, 0, Algorithm::INVALID)) { CudaLib::release(ctx); @@ -49,7 +50,7 @@ xmrig::CudaDevice::CudaDevice(uint32_t index, int32_t bfactor, int32_t bsleep) : m_ctx = ctx; m_name = CudaLib::deviceName(ctx); - m_topology = { CudaLib::deviceUint(ctx, CudaLib::DevicePciBusID), CudaLib::deviceUint(ctx, CudaLib::DevicePciDeviceID), 0U }; + m_topology = PciTopology(CudaLib::deviceUint(ctx, CudaLib::DevicePciBusID), CudaLib::deviceUint(ctx, CudaLib::DevicePciDeviceID), 0); } diff --git a/src/backend/cuda/wrappers/CudaLib.cpp b/src/backend/cuda/wrappers/CudaLib.cpp index 87501f41..4848f8c8 100644 --- a/src/backend/cuda/wrappers/CudaLib.cpp +++ b/src/backend/cuda/wrappers/CudaLib.cpp @@ -19,10 +19,10 @@ #include #include + #include "backend/cuda/wrappers/CudaLib.h" #include "base/io/Env.h" #include "base/io/log/Log.h" -#include "base/io/log/Tags.h" #include "base/kernel/Process.h" #include "crypto/rx/RxAlgo.h" @@ -50,6 +50,8 @@ static String defaultLoader = "libxmrig-cuda.so"; static const char *kAlloc = "alloc"; +static const char *kAstroBWTHash = "astroBWTHash"; +static const char *kAstroBWTPrepare = "astroBWTPrepare"; static const char *kCnHash = "cnHash"; static const char *kDeviceCount = "deviceCount"; static const char *kDeviceInfo = "deviceInfo"; @@ -68,13 +70,14 @@ static const char *kPluginVersion = "pluginVersion"; static const char *kRelease = "release"; static const char *kRxHash = "rxHash"; static const char *kRxPrepare = "rxPrepare"; -static const char *kRxUpdateDataset = "rxUpdateDataset"; static const char *kSetJob = "setJob"; static const char *kSetJob_v2 = "setJob_v2"; static const char *kVersion = "version"; using alloc_t = nvid_ctx * (*)(uint32_t, int32_t, int32_t); +using astroBWTHash_t = bool (*)(nvid_ctx *, uint32_t, uint64_t, uint32_t *, uint32_t *); +using astroBWTPrepare_t = bool (*)(nvid_ctx *, uint32_t); using cnHash_t = bool (*)(nvid_ctx *, uint32_t, uint64_t, uint64_t, uint32_t *, uint32_t *); using deviceCount_t = uint32_t (*)(); using deviceInfo_t = bool (*)(nvid_ctx *, int32_t, int32_t, uint32_t, int32_t); @@ -93,13 +96,14 @@ using pluginVersion_t = const char * (*)(); using release_t = void (*)(nvid_ctx *); using rxHash_t = bool (*)(nvid_ctx *, uint32_t, uint64_t, uint32_t *, uint32_t *); using rxPrepare_t = bool (*)(nvid_ctx *, const void *, size_t, bool, uint32_t); -using rxUpdateDataset_t = bool (*)(nvid_ctx *, const void *, size_t); using setJob_t = bool (*)(nvid_ctx *, const void *, size_t, uint32_t); using setJob_v2_t = bool (*)(nvid_ctx *, const void *, size_t, const char *); using version_t = uint32_t (*)(Version); static alloc_t pAlloc = nullptr; +static astroBWTHash_t pAstroBWTHash = nullptr; +static astroBWTPrepare_t pAstroBWTPrepare = nullptr; static cnHash_t pCnHash = nullptr; static deviceCount_t pDeviceCount = nullptr; static deviceInfo_t pDeviceInfo = nullptr; @@ -118,7 +122,6 @@ static pluginVersion_t pPluginVersion = nullptr; static release_t pRelease = nullptr; static rxHash_t pRxHash = nullptr; static rxPrepare_t pRxPrepare = nullptr; -static rxUpdateDataset_t pRxUpdateDataset = nullptr; static setJob_t pSetJob = nullptr; static setJob_v2_t pSetJob_v2 = nullptr; static version_t pVersion = nullptr; @@ -173,6 +176,18 @@ void xmrig::CudaLib::close() } +bool xmrig::CudaLib::astroBWTHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce) noexcept +{ + return pAstroBWTHash(ctx, startNonce, target, rescount, resnonce); +} + + +bool xmrig::CudaLib::astroBWTPrepare(nvid_ctx *ctx, uint32_t batchSize) noexcept +{ + return pAstroBWTPrepare(ctx, batchSize); +} + + bool xmrig::CudaLib::cnHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t height, uint64_t target, uint32_t *rescount, uint32_t *resnonce) { return pCnHash(ctx, startNonce, height, target, rescount, resnonce); @@ -205,26 +220,10 @@ bool xmrig::CudaLib::rxHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t target, bool xmrig::CudaLib::rxPrepare(nvid_ctx *ctx, const void *dataset, size_t datasetSize, bool dataset_host, uint32_t batchSize) noexcept { -# ifdef XMRIG_ALGO_RANDOMX - if (!pRxUpdateDataset) { - LOG_WARN("%s" YELLOW_BOLD("CUDA plugin is outdated. Please update to the latest version"), Tags::randomx()); - } -# endif - return pRxPrepare(ctx, dataset, datasetSize, dataset_host, batchSize); } -bool xmrig::CudaLib::rxUpdateDataset(nvid_ctx *ctx, const void *dataset, size_t datasetSize) noexcept -{ - if (pRxUpdateDataset) { - return pRxUpdateDataset(ctx, dataset, datasetSize); - } - - return true; -} - - bool xmrig::CudaLib::kawPowHash(nvid_ctx *ctx, uint8_t* job_blob, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t *skipped_hashes) noexcept { return pKawPowHash(ctx, job_blob, target, rescount, resnonce, skipped_hashes); @@ -372,9 +371,13 @@ bool xmrig::CudaLib::open() # ifdef XMRIG_OS_LINUX if (m_loader == defaultLoader) { m_loader = Process::location(Process::ExeLocation, m_loader); - if (uv_dlopen(m_loader, &cudaLib) == 0) { - return true; - } + } + else { + return false; + } + + if (uv_dlopen(m_loader, &cudaLib) == 0) { + return true; } # endif @@ -407,6 +410,8 @@ void xmrig::CudaLib::load() DLSYM(Release); DLSYM(RxHash); DLSYM(RxPrepare); + DLSYM(AstroBWTHash); + DLSYM(AstroBWTPrepare); DLSYM(KawPowHash); DLSYM(KawPowPrepare_v2); DLSYM(KawPowStopHash); @@ -420,7 +425,5 @@ void xmrig::CudaLib::load() DLSYM(SetJob_v2); } - uv_dlsym(&cudaLib, kRxUpdateDataset, reinterpret_cast(&pRxUpdateDataset)); - pInit(); } diff --git a/src/backend/cuda/wrappers/CudaLib.h b/src/backend/cuda/wrappers/CudaLib.h index ff7533ba..70b90dbf 100644 --- a/src/backend/cuda/wrappers/CudaLib.h +++ b/src/backend/cuda/wrappers/CudaLib.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -56,6 +56,7 @@ public: DevicePciDeviceID, DevicePciDomainID, DeviceDatasetHost, + DeviceAstroBWTProcessedHashes, }; static bool init(const char *fileName = nullptr); @@ -66,12 +67,13 @@ public: static inline bool isReady() noexcept { return m_ready; } static inline const String &loader() { return m_loader; } + static bool astroBWTHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce) noexcept; + static bool astroBWTPrepare(nvid_ctx *ctx, uint32_t batchSize) noexcept; static bool cnHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t height, uint64_t target, uint32_t *rescount, uint32_t *resnonce); static bool deviceInfo(nvid_ctx *ctx, int32_t blocks, int32_t threads, const Algorithm &algorithm, int32_t dataset_host = -1) noexcept; static bool deviceInit(nvid_ctx *ctx) noexcept; static bool rxHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce) noexcept; static bool rxPrepare(nvid_ctx *ctx, const void *dataset, size_t datasetSize, bool dataset_host, uint32_t batchSize) noexcept; - static bool rxUpdateDataset(nvid_ctx *ctx, const void *dataset, size_t datasetSize) noexcept; static bool kawPowHash(nvid_ctx *ctx, uint8_t* job_blob, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t *skipped_hashes) noexcept; static bool kawPowPrepare(nvid_ctx *ctx, const void* cache, size_t cache_size, const void* dag_precalc, size_t dag_size, uint32_t height, const uint64_t* dag_sizes) noexcept; static bool kawPowStopHash(nvid_ctx *ctx) noexcept; diff --git a/src/backend/opencl/OclBackend.cpp b/src/backend/opencl/OclBackend.cpp index 820c63d4..18b8892a 100644 --- a/src/backend/opencl/OclBackend.cpp +++ b/src/backend/opencl/OclBackend.cpp @@ -29,6 +29,7 @@ #include "backend/opencl/OclConfig.h" #include "backend/opencl/OclLaunchData.h" #include "backend/opencl/OclWorker.h" +#include "backend/opencl/runners/OclAstroBWTRunner.h" #include "backend/opencl/runners/tools/OclSharedState.h" #include "backend/opencl/wrappers/OclContext.h" #include "backend/opencl/wrappers/OclLib.h" @@ -203,6 +204,12 @@ public: size_t algo_l3 = algo.l3(); +# ifdef XMRIG_ALGO_ASTROBWT + if (algo.family() == Algorithm::ASTROBWT) { + algo_l3 = OclAstroBWTRunner::BWT_DATA_STRIDE * 17 + 324; + } +# endif + size_t i = 0; for (const auto &data : threads) { size_t mem_used = data.thread.intensity() * algo_l3 / oneMiB; @@ -352,20 +359,15 @@ void xmrig::OclBackend::printHashrate(bool details) char num[16 * 3] = { 0 }; - auto hashrate_short = hashrate()->calc(Hashrate::ShortInterval); - auto hashrate_medium = hashrate()->calc(Hashrate::MediumInterval); - auto hashrate_large = hashrate()->calc(Hashrate::LargeInterval); + const double hashrate_short = hashrate()->calc(Hashrate::ShortInterval); + const double hashrate_medium = hashrate()->calc(Hashrate::MediumInterval); + const double hashrate_large = hashrate()->calc(Hashrate::LargeInterval); double scale = 1.0; const char* h = " H/s"; - if ((hashrate_short.second >= 1e6) || (hashrate_medium.second >= 1e6) || (hashrate_large.second >= 1e6)) { + if ((hashrate_short >= 1e6) || (hashrate_medium >= 1e6) || (hashrate_large >= 1e6)) { scale = 1e-6; - - hashrate_short.second *= scale; - hashrate_medium.second *= scale; - hashrate_large.second *= scale; - h = "MH/s"; } @@ -373,16 +375,12 @@ void xmrig::OclBackend::printHashrate(bool details) size_t i = 0; for (const auto& data : d_ptr->threads) { - auto h0 = hashrate()->calc(i, Hashrate::ShortInterval); - auto h1 = hashrate()->calc(i, Hashrate::MediumInterval); - auto h2 = hashrate()->calc(i, Hashrate::LargeInterval); - - Log::print("| %8zu | %8" PRId64 " | %8s | %8s | %8s |" CYAN_BOLD(" #%u") YELLOW(" %s") " %s", + Log::print("| %8zu | %8" PRId64 " | %8s | %8s | %8s |" CYAN_BOLD(" #%u") YELLOW(" %s") " %s", i, data.affinity, - Hashrate::format(h0, num, sizeof num / 3), - Hashrate::format(h1, num + 16, sizeof num / 3), - Hashrate::format(h2, num + 16 * 2, sizeof num / 3), + Hashrate::format(hashrate()->calc(i, Hashrate::ShortInterval) * scale, num, sizeof num / 3), + Hashrate::format(hashrate()->calc(i, Hashrate::MediumInterval) * scale, num + 16, sizeof num / 3), + Hashrate::format(hashrate()->calc(i, Hashrate::LargeInterval) * scale, num + 16 * 2, sizeof num / 3), data.device.index(), data.device.topology().toString().data(), data.device.printableName().data() @@ -392,9 +390,9 @@ void xmrig::OclBackend::printHashrate(bool details) } Log::print(WHITE_BOLD_S "| - | - | %8s | %8s | %8s |", - Hashrate::format(hashrate_short , num, sizeof num / 3), - Hashrate::format(hashrate_medium, num + 16, sizeof num / 3), - Hashrate::format(hashrate_large , num + 16 * 2, sizeof num / 3) + Hashrate::format(hashrate_short * scale, num, sizeof num / 3), + Hashrate::format(hashrate_medium * scale, num + 16, sizeof num / 3), + Hashrate::format(hashrate_large * scale, num + 16 * 2, sizeof num / 3) ); } diff --git a/src/backend/opencl/OclConfig.cpp b/src/backend/opencl/OclConfig.cpp index 14ea7d8e..06a9b283 100644 --- a/src/backend/opencl/OclConfig.cpp +++ b/src/backend/opencl/OclConfig.cpp @@ -214,6 +214,7 @@ void xmrig::OclConfig::generate() count += xmrig::generate(m_threads, devices); count += xmrig::generate(m_threads, devices); count += xmrig::generate(m_threads, devices); + count += xmrig::generate(m_threads, devices); count += xmrig::generate(m_threads, devices); m_shouldSave = count > 0; diff --git a/src/backend/opencl/OclConfig_gen.h b/src/backend/opencl/OclConfig_gen.h index 31fa47a5..e4024ca6 100644 --- a/src/backend/opencl/OclConfig_gen.h +++ b/src/backend/opencl/OclConfig_gen.h @@ -129,6 +129,15 @@ size_t inline generate(Threads &threads, const #endif +#ifdef XMRIG_ALGO_ASTROBWT +template<> +size_t inline generate(Threads& threads, const std::vector& devices) +{ + return generate(Algorithm::kASTROBWT, threads, Algorithm::ASTROBWT_DERO, devices); +} +#endif + + #ifdef XMRIG_ALGO_KAWPOW template<> size_t inline generate(Threads& threads, const std::vector& devices) diff --git a/src/backend/opencl/OclThread.cpp b/src/backend/opencl/OclThread.cpp index 285c2b9b..c04d5e12 100644 --- a/src/backend/opencl/OclThread.cpp +++ b/src/backend/opencl/OclThread.cpp @@ -116,7 +116,9 @@ rapidjson::Value xmrig::OclThread::toJSON(rapidjson::Document &doc) const out.AddMember(StringRef(kIndex), index(), allocator); out.AddMember(StringRef(kIntensity), intensity(), allocator); - out.AddMember(StringRef(kWorksize), worksize(), allocator); + if (!m_fields.test(ASTROBWT_FIELDS)) { + out.AddMember(StringRef(kWorksize), worksize(), allocator); + } if (m_fields.test(STRIDED_INDEX_FIELD)) { Value si(kArrayType); @@ -142,7 +144,7 @@ rapidjson::Value xmrig::OclThread::toJSON(rapidjson::Document &doc) const out.AddMember(StringRef(kDatasetHost), isDatasetHost(), allocator); # endif } - else if (!m_fields.test(KAWPOW_FIELDS)) { + else if (!m_fields.test(ASTROBWT_FIELDS) && !m_fields.test(KAWPOW_FIELDS)) { out.AddMember(StringRef(kUnroll), unrollFactor(), allocator); } diff --git a/src/backend/opencl/OclThread.h b/src/backend/opencl/OclThread.h index 7152e7d3..5d2e6658 100644 --- a/src/backend/opencl/OclThread.h +++ b/src/backend/opencl/OclThread.h @@ -61,6 +61,20 @@ public: } # endif +# ifdef XMRIG_ALGO_ASTROBWT + OclThread(uint32_t index, uint32_t intensity, uint32_t threads) : + m_fields(4), + m_threads(threads, -1), + m_index(index), + m_memChunk(0), + m_stridedIndex(0), + m_unrollFactor(1), + m_worksize(1) + { + setIntensity(intensity); + } +# endif + # ifdef XMRIG_ALGO_KAWPOW OclThread(uint32_t index, uint32_t intensity, uint32_t worksize, uint32_t threads) : m_fields(8), @@ -99,6 +113,7 @@ private: enum Fields { STRIDED_INDEX_FIELD, RANDOMX_FIELDS, + ASTROBWT_FIELDS, KAWPOW_FIELDS, FIELD_MAX }; diff --git a/src/backend/opencl/OclWorker.cpp b/src/backend/opencl/OclWorker.cpp index dcac60b7..d2563d8f 100644 --- a/src/backend/opencl/OclWorker.cpp +++ b/src/backend/opencl/OclWorker.cpp @@ -23,7 +23,6 @@ #include "backend/opencl/runners/tools/OclSharedData.h" #include "backend/opencl/runners/tools/OclSharedState.h" #include "base/io/log/Log.h" -#include "base/tools/Alignment.h" #include "base/tools/Chrono.h" #include "core/Miner.h" #include "crypto/common/Nonce.h" @@ -35,6 +34,10 @@ # include "backend/opencl/runners/OclRxVmRunner.h" #endif +#ifdef XMRIG_ALGO_ASTROBWT +# include "backend/opencl/runners/OclAstroBWTRunner.h" +#endif + #ifdef XMRIG_ALGO_KAWPOW # include "backend/opencl/runners/OclKawPowRunner.h" #endif @@ -86,6 +89,12 @@ xmrig::OclWorker::OclWorker(size_t id, const OclLaunchData &data) : # endif break; + case Algorithm::ASTROBWT: +# ifdef XMRIG_ALGO_ASTROBWT + m_runner = new OclAstroBWTRunner(id, data); +# endif + break; + case Algorithm::KAWPOW: # ifdef XMRIG_ALGO_KAWPOW m_runner = new OclKawPowRunner(id, data); @@ -170,7 +179,7 @@ void xmrig::OclWorker::start() const uint64_t t = Chrono::steadyMSecs(); try { - m_runner->run(readUnaligned(m_job.nonce()), m_job.nonceOffset(), results); + m_runner->run(*m_job.nonce(), results); } catch (std::exception &ex) { printError(id(), ex.what()); @@ -190,7 +199,7 @@ void xmrig::OclWorker::start() std::this_thread::yield(); } - if (isReady() && !consumeJob()) { + if (!consumeJob()) { return; } } diff --git a/src/backend/opencl/cl/OclSource.cpp b/src/backend/opencl/cl/OclSource.cpp index cfeae81e..facb2bdc 100644 --- a/src/backend/opencl/cl/OclSource.cpp +++ b/src/backend/opencl/cl/OclSource.cpp @@ -32,6 +32,10 @@ # include "backend/opencl/cl/rx/randomx_cl.h" #endif +#ifdef XMRIG_ALGO_ASTROBWT +# include "backend/opencl/cl/astrobwt/astrobwt_cl.h" +#endif + #ifdef XMRIG_ALGO_KAWPOW # include "backend/opencl/cl/kawpow/kawpow_cl.h" # include "backend/opencl/cl/kawpow/kawpow_dag_cl.h" @@ -46,6 +50,12 @@ const char *xmrig::OclSource::get(const Algorithm &algorithm) } # endif +# ifdef XMRIG_ALGO_ASTROBWT + if (algorithm.family() == Algorithm::ASTROBWT) { + return astrobwt_cl; + } +# endif + # ifdef XMRIG_ALGO_KAWPOW if (algorithm.family() == Algorithm::KAWPOW) { return kawpow_dag_cl; diff --git a/src/backend/opencl/cl/astrobwt/BWT.cl b/src/backend/opencl/cl/astrobwt/BWT.cl new file mode 100644 index 00000000..e68fb71e --- /dev/null +++ b/src/backend/opencl/cl/astrobwt/BWT.cl @@ -0,0 +1,206 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#define STAGE1_SIZE 147253 + +#define COUNTING_SORT_BITS 11 +#define COUNTING_SORT_SIZE (1 << COUNTING_SORT_BITS) + +__attribute__((reqd_work_group_size(BWT_GROUP_SIZE, 1, 1))) +__kernel void BWT(__global uint8_t* datas, __global uint32_t* data_sizes, uint32_t data_stride, __global uint64_t* indices, __global uint64_t* tmp_indices) +{ + const uint32_t tid = get_local_id(0); + const uint32_t gid = get_group_id(0); + + __local int counters[COUNTING_SORT_SIZE][2]; + + for (uint32_t i = tid; i < COUNTING_SORT_SIZE * 2; i += BWT_GROUP_SIZE) + ((__local int*)counters)[i] = 0; + + barrier(CLK_LOCAL_MEM_FENCE); + + const uint64_t data_offset = (uint64_t)(gid) * data_stride; + + __global uint8_t* input = datas + data_offset + 128; + const uint32_t N = data_sizes[gid] + 1; + + __global uint64_t* p = (__global uint64_t*)(input); + volatile __local uint8_t* counters_atomic = (volatile __local uint8_t*)(counters); + + indices += data_offset; + tmp_indices += data_offset; + + for (uint32_t i = tid; i < N; i += BWT_GROUP_SIZE) + { + const uint32_t index = i >> 3; + const uint32_t bit_offset = (i & 7) << 3; + + const uint64_t a = p[index]; + uint64_t b = p[index + 1]; + if (bit_offset == 0) + b = 0; + + uint64_t value = (a >> bit_offset) | (b << (64 - bit_offset)); + + uint2 tmp; + const uchar4 mask = (uchar4)(3, 2, 1, 0); + + tmp.x = as_uint(shuffle(as_uchar4(as_uint2(value).y), mask)); + tmp.y = as_uint(shuffle(as_uchar4(as_uint2(value).x), mask)); + + value = as_ulong(tmp); + + indices[i] = (value & ((uint64_t)(-1) << 21)) | i; + atomic_add((volatile __local int*)(counters_atomic + (((value >> (64 - COUNTING_SORT_BITS * 2)) & (COUNTING_SORT_SIZE - 1)) << 3)), 1); + atomic_add((volatile __local int*)(counters_atomic + ((value >> (64 - COUNTING_SORT_BITS)) << 3) + 4), 1); + } + + barrier(CLK_LOCAL_MEM_FENCE); + + if (tid == 0) + { + int t0 = counters[0][0]; + int t1 = counters[0][1]; + counters[0][0] = t0 - 1; + counters[0][1] = t1 - 1; + for (uint32_t i = 1; i < COUNTING_SORT_SIZE; ++i) + { + t0 += counters[i][0]; + t1 += counters[i][1]; + counters[i][0] = t0 - 1; + counters[i][1] = t1 - 1; + } + } + + barrier(CLK_LOCAL_MEM_FENCE); + + for (int i = tid; i < N; i += BWT_GROUP_SIZE) + { + const uint64_t data = indices[i]; + const int k = atomic_sub((volatile __local int*)(counters_atomic + (((data >> (64 - COUNTING_SORT_BITS * 2)) & (COUNTING_SORT_SIZE - 1)) << 3)), 1); + tmp_indices[k] = data; + } + + barrier(CLK_GLOBAL_MEM_FENCE); + + if (tid == 0) + { + for (int i = N - 1; i >= 0; --i) + { + const uint64_t data = tmp_indices[i]; + const int k = atomic_sub((volatile __local int*)(counters_atomic + ((data >> (64 - COUNTING_SORT_BITS)) << 3) + 4), 1); + indices[k] = data; + } + } + + barrier(CLK_GLOBAL_MEM_FENCE); + + const uint32_t N1 = N - 1; + __global uint32_t* indices32 = (__global uint32_t*)(indices); + for (uint32_t i = tid; i < N1; i += BWT_GROUP_SIZE) + { + const uint32_t value = indices32[i * 2 + 1] >> (32 - COUNTING_SORT_BITS * 2); + if (value != (indices32[i * 2 + 3] >> (32 - COUNTING_SORT_BITS * 2))) + continue; + + if ((i > 0) && ((indices32[i * 2 - 1] >> (32 - COUNTING_SORT_BITS * 2)) == value)) + continue; + + uint32_t i1 = i + 2; + while ((i1 < N) && ((indices32[i1 * 2 + 1] >> (32 - COUNTING_SORT_BITS * 2)) == value)) + ++i1; + + for (uint32_t j = i; j < i1; ++j) + { + uint64_t t = indices[j]; + for (uint32_t k = j + 1; k < i1; ++k) + { + if (t > indices[k]) + { + const uint64_t t1 = t; + t = indices[k]; + indices[k] = t1; + } + } + indices[j] = t; + } + } + + barrier(CLK_GLOBAL_MEM_FENCE); + + --input; + __global uint8_t* output = (__global uint8_t*)(tmp_indices); + for (int i = tid; i <= N; i += BWT_GROUP_SIZE) + output[i] = input[indices[i] & ((1 << 21) - 1)]; +} + +__kernel void filter(uint32_t nonce, uint32_t bwt_max_size, __global const uint32_t* hashes, __global uint32_t* filtered_hashes) +{ + const uint32_t global_id = get_global_id(0); + + __global const uint32_t* hash = hashes + global_id * (32 / sizeof(uint32_t)); + const uint32_t stage2_size = STAGE1_SIZE + (*hash & 0xfffff); + + if (stage2_size < bwt_max_size) + { + const int index = atomic_add((volatile __global int*)(filtered_hashes), 1) * (36 / sizeof(uint32_t)) + 1; + + filtered_hashes[index] = nonce + global_id; + + #pragma unroll 8 + for (uint32_t i = 0; i < 8; ++i) + filtered_hashes[index + i + 1] = hash[i]; + } +} + +__kernel void prepare_batch2(__global uint32_t* hashes, __global uint32_t* filtered_hashes, __global uint32_t* data_sizes) +{ + const uint32_t global_id = get_global_id(0); + const uint32_t N = filtered_hashes[0] - get_global_size(0); + + if (global_id == 0) + filtered_hashes[0] = N; + + __global uint32_t* hash = hashes + global_id * 8; + __global uint32_t* filtered_hash = filtered_hashes + (global_id + N) * 9 + 1; + + const uint32_t stage2_size = STAGE1_SIZE + (filtered_hash[1] & 0xfffff); + data_sizes[global_id] = stage2_size; + + #pragma unroll 8 + for (uint32_t i = 0; i < 8; ++i) + hash[i] = filtered_hash[i + 1]; +} + +__kernel void find_shares(__global const uint64_t* hashes, __global const uint32_t* filtered_hashes, uint64_t target, __global uint32_t* shares) +{ + const uint32_t global_index = get_global_id(0); + + if (hashes[global_index * 4 + 3] < target) + { + const uint32_t idx = atomic_inc(shares + 0xFF); + if (idx < 0xFF) + shares[idx] = filtered_hashes[(filtered_hashes[0] + global_index) * 9 + 1]; + } +} diff --git a/src/backend/opencl/cl/astrobwt/astrobwt.cl b/src/backend/opencl/cl/astrobwt/astrobwt.cl new file mode 100644 index 00000000..476366c8 --- /dev/null +++ b/src/backend/opencl/cl/astrobwt/astrobwt.cl @@ -0,0 +1,35 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +typedef uchar uint8_t; +typedef ushort uint16_t; +typedef uint uint32_t; +typedef ulong uint64_t; + +typedef int int32_t; +typedef long int64_t; + +#include "BWT.cl" +#include "salsa20.cl" +#include "sha3.cl" diff --git a/src/backend/opencl/cl/astrobwt/astrobwt_cl.h b/src/backend/opencl/cl/astrobwt/astrobwt_cl.h new file mode 100644 index 00000000..3d65f0ce --- /dev/null +++ b/src/backend/opencl/cl/astrobwt/astrobwt_cl.h @@ -0,0 +1,399 @@ +#pragma once + +namespace xmrig { + +static const char astrobwt_cl[12489] = { + 0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75, + 0x73,0x68,0x6f,0x72,0x74,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x3b,0x0a,0x74, + 0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x69,0x6e,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x6c,0x6f,0x6e,0x67, + 0x20,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x47,0x45,0x31,0x5f,0x53,0x49,0x5a,0x45,0x20,0x31,0x34, + 0x37,0x32,0x35,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x20, + 0x31,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31, + 0x20,0x3c,0x3c,0x20,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62, + 0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x42,0x57,0x54,0x5f, + 0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20, + 0x42,0x57,0x54,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x64,0x61,0x74,0x61,0x73,0x2c,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x64,0x61,0x74,0x61,0x5f,0x73,0x69,0x7a,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x5f,0x73,0x74,0x72,0x69,0x64,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, + 0x2a,0x20,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x74,0x6d,0x70, + 0x5f,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x69,0x64,0x3d,0x67, + 0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67, + 0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x69,0x6e,0x74,0x20, + 0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x53,0x49,0x5a,0x45,0x5d,0x5b,0x32,0x5d,0x3b, + 0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x74,0x69,0x64,0x3b,0x20,0x69,0x3c,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47, + 0x5f,0x53,0x4f,0x52,0x54,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x32,0x3b,0x20,0x69,0x2b,0x3d,0x42,0x57,0x54,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x29, + 0x0a,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x29,0x5b,0x69,0x5d,0x3d,0x30,0x3b,0x0a, + 0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x29,0x28,0x67,0x69,0x64,0x29,0x2a,0x64,0x61,0x74,0x61,0x5f,0x73,0x74,0x72,0x69,0x64,0x65,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x3d,0x64,0x61,0x74,0x61,0x73,0x2b,0x64,0x61,0x74,0x61,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b, + 0x31,0x32,0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x4e,0x3d,0x64,0x61,0x74,0x61,0x5f,0x73,0x69,0x7a,0x65,0x73, + 0x5b,0x67,0x69,0x64,0x5d,0x2b,0x31,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x70,0x3d,0x28,0x5f, + 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x69,0x6e,0x70,0x75,0x74,0x29,0x3b,0x0a,0x76,0x6f,0x6c,0x61,0x74, + 0x69,0x6c,0x65,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5f,0x61,0x74, + 0x6f,0x6d,0x69,0x63,0x3d,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29, + 0x28,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x29,0x3b,0x0a,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x2b,0x3d,0x64,0x61,0x74,0x61,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74, + 0x3b,0x0a,0x74,0x6d,0x70,0x5f,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x2b,0x3d,0x64,0x61,0x74,0x61,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x66,0x6f,0x72,0x20, + 0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x74,0x69,0x64,0x3b,0x20,0x69,0x3c,0x4e,0x3b,0x20,0x69,0x2b,0x3d,0x42,0x57,0x54,0x5f,0x47,0x52,0x4f, + 0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x64,0x65,0x78,0x3d, + 0x69,0x3e,0x3e,0x33,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x69,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d, + 0x28,0x69,0x26,0x37,0x29,0x3c,0x3c,0x33,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x3d,0x70,0x5b,0x69,0x6e,0x64, + 0x65,0x78,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x62,0x3d,0x70,0x5b,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x62, + 0x69,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x3d,0x30,0x29,0x0a,0x62,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75, + 0x65,0x3d,0x28,0x61,0x3e,0x3e,0x62,0x69,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x7c,0x28,0x62,0x3c,0x3c,0x28,0x36,0x34,0x2d,0x62,0x69,0x74,0x5f,0x6f,0x66, + 0x66,0x73,0x65,0x74,0x29,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x63,0x68,0x61,0x72,0x34,0x20, + 0x6d,0x61,0x73,0x6b,0x3d,0x28,0x75,0x63,0x68,0x61,0x72,0x34,0x29,0x28,0x33,0x2c,0x32,0x2c,0x31,0x2c,0x30,0x29,0x3b,0x0a,0x74,0x6d,0x70,0x2e,0x78,0x3d,0x61,0x73, + 0x5f,0x75,0x69,0x6e,0x74,0x28,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x61,0x73,0x5f,0x75,0x63,0x68,0x61,0x72,0x34,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32, + 0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x2e,0x79,0x29,0x2c,0x6d,0x61,0x73,0x6b,0x29,0x29,0x3b,0x0a,0x74,0x6d,0x70,0x2e,0x79,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74, + 0x28,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x61,0x73,0x5f,0x75,0x63,0x68,0x61,0x72,0x34,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x76,0x61,0x6c,0x75, + 0x65,0x29,0x2e,0x78,0x29,0x2c,0x6d,0x61,0x73,0x6b,0x29,0x29,0x3b,0x0a,0x76,0x61,0x6c,0x75,0x65,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x74,0x6d,0x70, + 0x29,0x3b,0x0a,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x69,0x5d,0x3d,0x28,0x76,0x61,0x6c,0x75,0x65,0x26,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29, + 0x28,0x2d,0x31,0x29,0x3c,0x3c,0x32,0x31,0x29,0x29,0x7c,0x69,0x3b,0x0a,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x61,0x64,0x64,0x28,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69, + 0x6c,0x65,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x28,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5f,0x61,0x74,0x6f,0x6d,0x69,0x63, + 0x2b,0x28,0x28,0x28,0x76,0x61,0x6c,0x75,0x65,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54, + 0x53,0x2a,0x32,0x29,0x29,0x26,0x28,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x53,0x49,0x5a,0x45,0x2d,0x31,0x29,0x29,0x3c,0x3c,0x33, + 0x29,0x29,0x2c,0x31,0x29,0x3b,0x0a,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x61,0x64,0x64,0x28,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x28,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5f,0x61,0x74,0x6f,0x6d,0x69,0x63,0x2b,0x28,0x28,0x76,0x61,0x6c,0x75, + 0x65,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x29,0x29,0x3c,0x3c,0x33,0x29,0x2b, + 0x34,0x29,0x2c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46, + 0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x69,0x66,0x28,0x74,0x69,0x64,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x20,0x74,0x30,0x3d,0x63,0x6f,0x75,0x6e,0x74, + 0x65,0x72,0x73,0x5b,0x30,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x74,0x31,0x3d,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b,0x30,0x5d,0x5b,0x31,0x5d, + 0x3b,0x0a,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b,0x30,0x5d,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x2d,0x31,0x3b,0x0a,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b, + 0x30,0x5d,0x5b,0x31,0x5d,0x3d,0x74,0x31,0x2d,0x31,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x31,0x3b,0x20,0x69, + 0x3c,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x74,0x30,0x2b,0x3d, + 0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b,0x69,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x74,0x31,0x2b,0x3d,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b,0x69,0x5d,0x5b, + 0x31,0x5d,0x3b,0x0a,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5b,0x69,0x5d,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x2d,0x31,0x3b,0x0a,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72, + 0x73,0x5b,0x69,0x5d,0x5b,0x31,0x5d,0x3d,0x74,0x31,0x2d,0x31,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f, + 0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x74,0x69,0x64,0x3b,0x20, + 0x69,0x3c,0x4e,0x3b,0x20,0x69,0x2b,0x3d,0x42,0x57,0x54,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x3d,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x69,0x6e,0x74,0x20,0x6b,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x73,0x75,0x62,0x28,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x6c,0x6f,0x63, + 0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x28,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5f,0x61,0x74,0x6f,0x6d,0x69,0x63,0x2b,0x28,0x28,0x28,0x64,0x61,0x74,0x61, + 0x3e,0x3e,0x28,0x36,0x34,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x2a,0x32,0x29,0x29,0x26,0x28,0x43,0x4f, + 0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x53,0x49,0x5a,0x45,0x2d,0x31,0x29,0x29,0x3c,0x3c,0x33,0x29,0x29,0x2c,0x31,0x29,0x3b,0x0a,0x74,0x6d, + 0x70,0x5f,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6b,0x5d,0x3d,0x64,0x61,0x74,0x61,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b, + 0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x69,0x66,0x28,0x74,0x69,0x64,0x3d,0x3d,0x30,0x29,0x0a,0x7b, + 0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x4e,0x2d,0x31,0x3b,0x20,0x69,0x3e,0x3d,0x30,0x3b,0x20,0x2d,0x2d,0x69,0x29,0x0a,0x7b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x3d,0x74,0x6d,0x70,0x5f,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x69,0x5d, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x6b,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x73,0x75,0x62,0x28,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69, + 0x6c,0x65,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x28,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x73,0x5f,0x61,0x74,0x6f,0x6d,0x69,0x63, + 0x2b,0x28,0x28,0x64,0x61,0x74,0x61,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x29, + 0x29,0x3c,0x3c,0x33,0x29,0x2b,0x34,0x29,0x2c,0x31,0x29,0x3b,0x0a,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6b,0x5d,0x3d,0x64,0x61,0x74,0x61,0x3b,0x0a,0x7d,0x0a, + 0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x4e,0x31,0x3d,0x4e,0x2d,0x31,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x33,0x32,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x69,0x3d,0x74,0x69,0x64,0x3b,0x20,0x69,0x3c,0x4e,0x31,0x3b,0x20,0x69,0x2b,0x3d,0x42,0x57,0x54,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45, + 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x69,0x6e,0x64,0x69,0x63,0x65,0x73, + 0x33,0x32,0x5b,0x69,0x2a,0x32,0x2b,0x31,0x5d,0x3e,0x3e,0x28,0x33,0x32,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54, + 0x53,0x2a,0x32,0x29,0x3b,0x0a,0x69,0x66,0x28,0x76,0x61,0x6c,0x75,0x65,0x21,0x3d,0x28,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x33,0x32,0x5b,0x69,0x2a,0x32,0x2b,0x33, + 0x5d,0x3e,0x3e,0x28,0x33,0x32,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x2a,0x32,0x29,0x29,0x29,0x0a,0x63, + 0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x69,0x66,0x28,0x28,0x69,0x3e,0x30,0x29,0x26,0x26,0x28,0x28,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x33,0x32,0x5b,0x69, + 0x2a,0x32,0x2d,0x31,0x5d,0x3e,0x3e,0x28,0x33,0x32,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53,0x2a,0x32,0x29, + 0x29,0x3d,0x3d,0x76,0x61,0x6c,0x75,0x65,0x29,0x29,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x31, + 0x3d,0x69,0x2b,0x32,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x28,0x69,0x31,0x3c,0x4e,0x29,0x26,0x26,0x28,0x28,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x33,0x32, + 0x5b,0x69,0x31,0x2a,0x32,0x2b,0x31,0x5d,0x3e,0x3e,0x28,0x33,0x32,0x2d,0x43,0x4f,0x55,0x4e,0x54,0x49,0x4e,0x47,0x5f,0x53,0x4f,0x52,0x54,0x5f,0x42,0x49,0x54,0x53, + 0x2a,0x32,0x29,0x29,0x3d,0x3d,0x76,0x61,0x6c,0x75,0x65,0x29,0x29,0x0a,0x2b,0x2b,0x69,0x31,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x6a,0x3d,0x69,0x3b,0x20,0x6a,0x3c,0x69,0x31,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x3d,0x69, + 0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6a,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x3d,0x6a,0x2b,0x31,0x3b,0x20, + 0x6b,0x3c,0x69,0x31,0x3b,0x20,0x2b,0x2b,0x6b,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x74,0x3e,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6b,0x5d,0x29,0x0a,0x7b,0x0a, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x31,0x3d,0x74,0x3b,0x0a,0x74,0x3d,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6b, + 0x5d,0x3b,0x0a,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6b,0x5d,0x3d,0x74,0x31,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x6a,0x5d, + 0x3d,0x74,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46, + 0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x2d,0x2d,0x69,0x6e,0x70,0x75,0x74,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74, + 0x2a,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x28,0x74,0x6d,0x70, + 0x5f,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x74,0x69,0x64,0x3b,0x20,0x69,0x3c,0x3d,0x4e,0x3b, + 0x20,0x69,0x2b,0x3d,0x42,0x57,0x54,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x69,0x5d,0x3d,0x69,0x6e, + 0x70,0x75,0x74,0x5b,0x69,0x6e,0x64,0x69,0x63,0x65,0x73,0x5b,0x69,0x5d,0x26,0x28,0x28,0x31,0x3c,0x3c,0x32,0x31,0x29,0x2d,0x31,0x29,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f, + 0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6c,0x74,0x65,0x72,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x6f,0x6e, + 0x63,0x65,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x77,0x74,0x5f,0x6d,0x61,0x78,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x68,0x61,0x73,0x68,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x2a,0x20,0x68,0x61,0x73,0x68,0x3d,0x68,0x61,0x73,0x68,0x65,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x2a,0x28,0x33,0x32,0x2f,0x73,0x69,0x7a, + 0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73, + 0x74,0x61,0x67,0x65,0x32,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x53,0x54,0x41,0x47,0x45,0x31,0x5f,0x53,0x49,0x5a,0x45,0x2b,0x28,0x2a,0x68,0x61,0x73,0x68,0x26,0x30,0x78, + 0x66,0x66,0x66,0x66,0x66,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x74,0x61,0x67,0x65,0x32,0x5f,0x73,0x69,0x7a,0x65,0x3c,0x62,0x77,0x74,0x5f,0x6d,0x61,0x78,0x5f,0x73, + 0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x69,0x6e,0x64,0x65,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x61,0x64, + 0x64,0x28,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x28,0x66,0x69,0x6c,0x74,0x65, + 0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x29,0x2c,0x31,0x29,0x2a,0x28,0x33,0x36,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x29,0x29,0x2b,0x31,0x3b,0x0a,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x6e, + 0x6f,0x6e,0x63,0x65,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x38, + 0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x66,0x69, + 0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x69,0x6e,0x64,0x65,0x78,0x2b,0x69,0x2b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x69,0x5d, + 0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x70,0x72,0x65,0x70,0x61,0x72,0x65,0x5f,0x62,0x61,0x74,0x63, + 0x68,0x32,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x68,0x61,0x73,0x68,0x65,0x73,0x2c,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x2c, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x64,0x61,0x74,0x61,0x5f,0x73,0x69,0x7a,0x65,0x73,0x29,0x0a,0x7b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x4e,0x3d,0x66,0x69,0x6c, + 0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x30,0x5d,0x2d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28, + 0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x3d,0x3d,0x30,0x29,0x0a,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61, + 0x73,0x68,0x65,0x73,0x5b,0x30,0x5d,0x3d,0x4e,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x68,0x61, + 0x73,0x68,0x3d,0x68,0x61,0x73,0x68,0x65,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x2a,0x38,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x3d,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64, + 0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x2b,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x2b,0x4e,0x29,0x2a,0x39,0x2b,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x67,0x65,0x32,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x53,0x54,0x41,0x47,0x45,0x31,0x5f,0x53,0x49,0x5a, + 0x45,0x2b,0x28,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x26,0x30,0x78,0x66,0x66,0x66,0x66,0x66,0x29,0x3b,0x0a,0x64,0x61, + 0x74,0x61,0x5f,0x73,0x69,0x7a,0x65,0x73,0x5b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x5d,0x3d,0x73,0x74,0x61,0x67,0x65,0x32,0x5f,0x73,0x69,0x7a,0x65,0x3b, + 0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x38,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x68,0x61,0x73,0x68,0x5b,0x69,0x5d,0x3d,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f, + 0x68,0x61,0x73,0x68,0x5b,0x69,0x2b,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6e,0x64,0x5f, + 0x73,0x68,0x61,0x72,0x65,0x73,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20, + 0x68,0x61,0x73,0x68,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20, + 0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x2c, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x68,0x61,0x72,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x2a,0x34,0x2b,0x33,0x5d,0x3c,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x69,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x73,0x68,0x61,0x72,0x65,0x73,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28, + 0x69,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x0a,0x73,0x68,0x61,0x72,0x65,0x73,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68, + 0x61,0x73,0x68,0x65,0x73,0x5b,0x28,0x66,0x69,0x6c,0x74,0x65,0x72,0x65,0x64,0x5f,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x30,0x5d,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x29,0x2a,0x39,0x2b,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x54,0x41,0x54,0x45, + 0x28,0x76,0x2c,0x63,0x29,0x20,0x28,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x2c,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x63,0x29,0x29,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x58,0x4f,0x52,0x28,0x76,0x2c,0x77,0x29,0x20,0x28,0x28,0x76,0x29,0x20,0x5e,0x20,0x28,0x77,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x50,0x4c,0x55,0x53,0x28,0x76,0x2c,0x77,0x29,0x20,0x28,0x28,0x76,0x29,0x20,0x2b,0x20,0x28,0x77,0x29,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69, + 0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x53,0x41,0x4c, + 0x53,0x41,0x32,0x30,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20, + 0x76,0x6f,0x69,0x64,0x20,0x53,0x61,0x6c,0x73,0x61,0x32,0x30,0x5f,0x58,0x4f,0x52,0x4b,0x65,0x79,0x53,0x74,0x72,0x65,0x61,0x6d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x6b,0x65,0x79,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x2a,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x75,0x74,0x70, + 0x75,0x74,0x5f,0x73,0x74,0x72,0x69,0x64,0x65,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x67,0x65, + 0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x3d, + 0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20, + 0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x67,0x2a,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x6f,0x75,0x74,0x70,0x75, + 0x74,0x5f,0x73,0x74,0x72,0x69,0x64,0x65,0x29,0x2b,0x31,0x32,0x38,0x3b,0x0a,0x7b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x2a,0x20,0x70,0x3d,0x6f,0x75,0x74,0x70,0x75,0x74,0x73,0x2b,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2d,0x31,0x32,0x38, + 0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x69,0x3d,0x74,0x3b,0x20,0x69,0x3c,0x31,0x32,0x38,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x20,0x69, + 0x2b,0x3d,0x53,0x41,0x4c,0x53,0x41,0x32,0x30,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x70,0x5b,0x69,0x5d,0x3d,0x30,0x3b,0x0a,0x7d,0x0a, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x6b,0x3d,0x6b,0x65,0x79,0x73,0x2b, + 0x67,0x2a,0x38,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x3d,0x6f, + 0x75,0x74,0x70,0x75,0x74,0x73,0x2b,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x28,0x74,0x2a,0x36,0x34,0x29,0x29,0x2f,0x73,0x69, + 0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f, + 0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x73,0x5b,0x67,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x31,0x3d,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x6a,0x32,0x3d,0x6b,0x5b,0x31,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x33,0x3d,0x6b,0x5b, + 0x32,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x34,0x3d,0x6b,0x5b,0x33,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x31,0x31,0x3d,0x6b,0x5b,0x34,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x6a,0x31,0x32,0x3d,0x6b,0x5b,0x35,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x31,0x33, + 0x3d,0x6b,0x5b,0x36,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x31,0x34,0x3d,0x6b,0x5b,0x37,0x5d,0x3b,0x0a, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x30,0x3d,0x30,0x78,0x36,0x31,0x37,0x30,0x37,0x38,0x36,0x35,0x55,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x35,0x3d,0x30,0x78,0x33,0x33,0x32,0x30,0x36,0x34,0x36,0x45,0x55,0x3b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x31,0x30,0x3d,0x30,0x78,0x37,0x39,0x36,0x32,0x32,0x44,0x33,0x32,0x55,0x3b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x31,0x35,0x3d,0x30,0x78,0x36,0x42,0x32,0x30,0x36,0x35,0x37,0x34,0x55,0x3b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x36,0x3d,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x6a,0x37,0x3d,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x38,0x3d,0x30,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x39,0x3d,0x30,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x69,0x3d,0x74,0x2a,0x36,0x34,0x3b,0x20,0x69,0x3c,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x3b,0x20,0x69,0x2b,0x3d,0x53,0x41,0x4c,0x53,0x41,0x32, + 0x30,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x36,0x34,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x6a,0x38,0x5f,0x31,0x3d,0x6a,0x38,0x2b,0x28,0x69,0x2f,0x36,0x34,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x30,0x3d,0x6a,0x30, + 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x31,0x3d,0x6a,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x32,0x3d,0x6a,0x32, + 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x33,0x3d,0x6a,0x33,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x34,0x3d,0x6a,0x34, + 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x35,0x3d,0x6a,0x35,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x36,0x3d,0x6a,0x36, + 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x37,0x3d,0x6a,0x37,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x38,0x3d,0x6a,0x38, + 0x5f,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x39,0x3d,0x6a,0x39,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x31,0x30, + 0x3d,0x6a,0x31,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x31,0x31,0x3d,0x6a,0x31,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x78,0x31,0x32,0x3d,0x6a,0x31,0x32,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x31,0x33,0x3d,0x6a,0x31,0x33,0x3b,0x0a,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x78,0x31,0x34,0x3d,0x6a,0x31,0x34,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x78,0x31,0x35,0x3d,0x6a,0x31,0x35,0x3b,0x0a, + 0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x35,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a, + 0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a,0x78,0x34,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x34,0x2c,0x52,0x4f,0x54,0x41, + 0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x30,0x2c,0x78,0x31,0x32,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x38,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x38, + 0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x34,0x2c,0x78,0x30,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78,0x31,0x32,0x3d,0x58,0x4f, + 0x52,0x28,0x78,0x31,0x32,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x38,0x2c,0x78,0x34,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a, + 0x78,0x30,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x30,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x32,0x2c,0x78,0x38,0x29,0x2c,0x31, + 0x38,0x29,0x29,0x3b,0x0a,0x78,0x39,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x39,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x35,0x2c, + 0x78,0x31,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x31,0x33,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x33,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53, + 0x28,0x20,0x78,0x39,0x2c,0x78,0x35,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78,0x31,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x31,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28, + 0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x33,0x2c,0x78,0x39,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a,0x78,0x35,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x35,0x2c,0x52,0x4f, + 0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x31,0x2c,0x78,0x31,0x33,0x29,0x2c,0x31,0x38,0x29,0x29,0x3b,0x0a,0x78,0x31,0x34,0x3d,0x58,0x4f,0x52, + 0x28,0x78,0x31,0x34,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x30,0x2c,0x78,0x36,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x32, + 0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x32,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x34,0x2c,0x78,0x31,0x30,0x29,0x2c,0x39,0x29, + 0x29,0x3b,0x0a,0x78,0x36,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x36,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x32,0x2c,0x78,0x31, + 0x34,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a,0x78,0x31,0x30,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x30,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53, + 0x28,0x20,0x78,0x36,0x2c,0x78,0x32,0x29,0x2c,0x31,0x38,0x29,0x29,0x3b,0x0a,0x78,0x33,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x33,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45, + 0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x35,0x2c,0x78,0x31,0x31,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x37,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x37,0x2c,0x52, + 0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x33,0x2c,0x78,0x31,0x35,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78,0x31,0x31,0x3d,0x58,0x4f,0x52, + 0x28,0x78,0x31,0x31,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x37,0x2c,0x78,0x33,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a,0x78, + 0x31,0x35,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x35,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x31,0x2c,0x78,0x37,0x29,0x2c,0x31, + 0x38,0x29,0x29,0x3b,0x0a,0x78,0x31,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x31,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x30,0x2c, + 0x78,0x33,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x32,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x32,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28, + 0x20,0x78,0x31,0x2c,0x78,0x30,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78,0x33,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x33,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50, + 0x4c,0x55,0x53,0x28,0x20,0x78,0x32,0x2c,0x78,0x31,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a,0x78,0x30,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x30,0x2c,0x52,0x4f,0x54, + 0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x33,0x2c,0x78,0x32,0x29,0x2c,0x31,0x38,0x29,0x29,0x3b,0x0a,0x78,0x36,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78, + 0x36,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x35,0x2c,0x78,0x34,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x37,0x3d,0x58,0x4f, + 0x52,0x28,0x20,0x78,0x37,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x36,0x2c,0x78,0x35,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78, + 0x34,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x34,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x37,0x2c,0x78,0x36,0x29,0x2c,0x31,0x33, + 0x29,0x29,0x3b,0x0a,0x78,0x35,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x35,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x34,0x2c,0x78, + 0x37,0x29,0x2c,0x31,0x38,0x29,0x29,0x3b,0x0a,0x78,0x31,0x31,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x31,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53, + 0x28,0x78,0x31,0x30,0x2c,0x78,0x39,0x29,0x2c,0x37,0x29,0x29,0x3b,0x0a,0x78,0x38,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x38,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28, + 0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x31,0x2c,0x78,0x31,0x30,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78,0x39,0x3d,0x58,0x4f,0x52,0x28,0x20,0x78,0x39,0x2c,0x52,0x4f, + 0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x38,0x2c,0x78,0x31,0x31,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a,0x78,0x31,0x30,0x3d,0x58,0x4f,0x52, + 0x28,0x78,0x31,0x30,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x20,0x78,0x39,0x2c,0x78,0x38,0x29,0x2c,0x31,0x38,0x29,0x29,0x3b,0x0a,0x78, + 0x31,0x32,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x32,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x35,0x2c,0x78,0x31,0x34,0x29,0x2c, + 0x37,0x29,0x29,0x3b,0x0a,0x78,0x31,0x33,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x33,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x32, + 0x2c,0x78,0x31,0x35,0x29,0x2c,0x39,0x29,0x29,0x3b,0x0a,0x78,0x31,0x34,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x34,0x2c,0x52,0x4f,0x54,0x41,0x54,0x45,0x28,0x50,0x4c, + 0x55,0x53,0x28,0x78,0x31,0x33,0x2c,0x78,0x31,0x32,0x29,0x2c,0x31,0x33,0x29,0x29,0x3b,0x0a,0x78,0x31,0x35,0x3d,0x58,0x4f,0x52,0x28,0x78,0x31,0x35,0x2c,0x52,0x4f, + 0x54,0x41,0x54,0x45,0x28,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x34,0x2c,0x78,0x31,0x33,0x29,0x2c,0x31,0x38,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x6f,0x75,0x74,0x70,0x75, + 0x74,0x5b,0x30,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x30,0x2c,0x6a,0x30,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x31,0x5d,0x3d,0x50,0x4c,0x55,0x53, + 0x28,0x78,0x31,0x2c,0x6a,0x31,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x32,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x32,0x2c,0x6a,0x32,0x29,0x3b,0x0a, + 0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x33,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x33,0x2c,0x6a,0x33,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x34,0x5d, + 0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x34,0x2c,0x6a,0x34,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x35,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x35,0x2c, + 0x6a,0x35,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x36,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x36,0x2c,0x6a,0x36,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70, + 0x75,0x74,0x5b,0x37,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x37,0x2c,0x6a,0x37,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x38,0x5d,0x3d,0x50,0x4c,0x55, + 0x53,0x28,0x78,0x38,0x2c,0x6a,0x38,0x5f,0x31,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x39,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x39,0x2c,0x6a,0x39, + 0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x31,0x30,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x30,0x2c,0x6a,0x31,0x30,0x29,0x3b,0x0a,0x6f,0x75,0x74, + 0x70,0x75,0x74,0x5b,0x31,0x31,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x31,0x2c,0x6a,0x31,0x31,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x31,0x32, + 0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x32,0x2c,0x6a,0x31,0x32,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x31,0x33,0x5d,0x3d,0x50,0x4c,0x55,0x53, + 0x28,0x78,0x31,0x33,0x2c,0x6a,0x31,0x33,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x31,0x34,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x34,0x2c,0x6a, + 0x31,0x34,0x29,0x3b,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x5b,0x31,0x35,0x5d,0x3d,0x50,0x4c,0x55,0x53,0x28,0x78,0x31,0x35,0x2c,0x6a,0x31,0x35,0x29,0x3b,0x0a,0x6f, + 0x75,0x74,0x70,0x75,0x74,0x2b,0x3d,0x28,0x53,0x41,0x4c,0x53,0x41,0x32,0x30,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x36,0x34,0x29,0x2f,0x73, + 0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x47, + 0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x69,0x66,0x28,0x74,0x3c,0x31,0x36,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x70,0x3d,0x6f,0x75,0x74,0x70,0x75,0x74,0x73,0x2b,0x28,0x6f,0x75,0x74,0x70,0x75, + 0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x2b,0x33,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x70,0x5b,0x74,0x5d,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x28,0x74,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28, + 0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x26,0x33,0x29,0x29,0x0a,0x6f,0x75,0x74,0x70,0x75,0x74,0x73,0x5b,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f, + 0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x29,0x5d,0x20,0x26,0x3d,0x20,0x30,0x78,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x55,0x3e,0x3e,0x28,0x28,0x34,0x2d,0x28,0x6f,0x75,0x74,0x70,0x75, + 0x74,0x5f,0x73,0x69,0x7a,0x65,0x26,0x33,0x29,0x29,0x3c,0x3c,0x33,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x53, + 0x20,0x32,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x36,0x34,0x28,0x61,0x2c,0x62,0x2c,0x63,0x29,0x20,0x28,0x28,0x28,0x61,0x29,0x20,0x3c,0x3c,0x20, + 0x62,0x29,0x20,0x7c,0x20,0x28,0x28,0x61,0x29,0x20,0x3e,0x3e,0x20,0x63,0x29,0x29,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x63,0x5b,0x32,0x5d,0x5b,0x52,0x4f,0x55,0x4e,0x44,0x53,0x5d,0x3d,0x7b,0x0a,0x7b,0x30,0x78,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38, + 0x30,0x38,0x32,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38, + 0x30,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x31,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38, + 0x30,0x30,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38, + 0x30,0x30,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x33,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38, + 0x30,0x30,0x32,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x41,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30, + 0x30,0x30,0x41,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30, + 0x30,0x30,0x31,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x38,0x55,0x4c,0x7d,0x2c,0x0a,0x7b,0x30,0x55, + 0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x0a,0x30, + 0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x0a, + 0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x7d, + 0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x72,0x6f,0x5b,0x32,0x35,0x5d,0x5b, + 0x32,0x5d,0x3d,0x7b,0x0a,0x7b,0x20,0x30,0x2c,0x36,0x34,0x7d,0x2c,0x7b,0x34,0x34,0x2c,0x32,0x30,0x7d,0x2c,0x7b,0x34,0x33,0x2c,0x32,0x31,0x7d,0x2c,0x7b,0x32,0x31, + 0x2c,0x34,0x33,0x7d,0x2c,0x7b,0x31,0x34,0x2c,0x35,0x30,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x2c,0x36,0x33,0x7d,0x2c,0x7b,0x20,0x36,0x2c,0x35,0x38,0x7d,0x2c,0x7b,0x32, + 0x35,0x2c,0x33,0x39,0x7d,0x2c,0x7b,0x20,0x38,0x2c,0x35,0x36,0x7d,0x2c,0x7b,0x31,0x38,0x2c,0x34,0x36,0x7d,0x2c,0x0a,0x7b,0x36,0x32,0x2c,0x32,0x7d,0x2c,0x7b,0x35, + 0x35,0x2c,0x39,0x7d,0x2c,0x7b,0x33,0x39,0x2c,0x32,0x35,0x7d,0x2c,0x7b,0x34,0x31,0x2c,0x32,0x33,0x7d,0x2c,0x7b,0x20,0x32,0x2c,0x36,0x32,0x7d,0x2c,0x0a,0x7b,0x32, + 0x38,0x2c,0x33,0x36,0x7d,0x2c,0x7b,0x32,0x30,0x2c,0x34,0x34,0x7d,0x2c,0x7b,0x20,0x33,0x2c,0x36,0x31,0x7d,0x2c,0x7b,0x34,0x35,0x2c,0x31,0x39,0x7d,0x2c,0x7b,0x36, + 0x31,0x2c,0x33,0x7d,0x2c,0x0a,0x7b,0x32,0x37,0x2c,0x33,0x37,0x7d,0x2c,0x7b,0x33,0x36,0x2c,0x32,0x38,0x7d,0x2c,0x7b,0x31,0x30,0x2c,0x35,0x34,0x7d,0x2c,0x7b,0x31, + 0x35,0x2c,0x34,0x39,0x7d,0x2c,0x7b,0x35,0x36,0x2c,0x38,0x7d,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x69,0x6e,0x74,0x20,0x61,0x5b,0x32,0x35,0x5d,0x3d,0x7b,0x0a,0x30,0x2c,0x36,0x2c,0x31,0x32,0x2c,0x31,0x38,0x2c,0x32,0x34,0x2c,0x0a,0x31,0x2c,0x37,0x2c,0x31, + 0x33,0x2c,0x31,0x39,0x2c,0x32,0x30,0x2c,0x0a,0x32,0x2c,0x38,0x2c,0x31,0x34,0x2c,0x31,0x35,0x2c,0x32,0x31,0x2c,0x0a,0x33,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x36, + 0x2c,0x32,0x32,0x2c,0x0a,0x34,0x2c,0x35,0x2c,0x31,0x31,0x2c,0x31,0x37,0x2c,0x32,0x33,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x62,0x5b,0x32,0x35,0x5d,0x3d,0x7b,0x0a,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x0a,0x31,0x2c,0x32, + 0x2c,0x33,0x2c,0x34,0x2c,0x30,0x2c,0x0a,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x30,0x2c,0x31,0x2c,0x0a,0x33,0x2c,0x34,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x0a,0x34,0x2c, + 0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20, + 0x63,0x5b,0x32,0x35,0x5d,0x5b,0x33,0x5d,0x3d,0x7b,0x0a,0x7b,0x20,0x30,0x2c,0x31,0x2c,0x32,0x7d,0x2c,0x7b,0x20,0x31,0x2c,0x32,0x2c,0x33,0x7d,0x2c,0x7b,0x20,0x32, + 0x2c,0x33,0x2c,0x34,0x7d,0x2c,0x7b,0x20,0x33,0x2c,0x34,0x2c,0x30,0x7d,0x2c,0x7b,0x20,0x34,0x2c,0x30,0x2c,0x31,0x7d,0x2c,0x0a,0x7b,0x20,0x35,0x2c,0x36,0x2c,0x37, + 0x7d,0x2c,0x7b,0x20,0x36,0x2c,0x37,0x2c,0x38,0x7d,0x2c,0x7b,0x20,0x37,0x2c,0x38,0x2c,0x39,0x7d,0x2c,0x7b,0x20,0x38,0x2c,0x39,0x2c,0x35,0x7d,0x2c,0x7b,0x20,0x39, + 0x2c,0x35,0x2c,0x36,0x7d,0x2c,0x0a,0x7b,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32,0x7d,0x2c,0x7b,0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x7d,0x2c,0x7b,0x31,0x32, + 0x2c,0x31,0x33,0x2c,0x31,0x34,0x7d,0x2c,0x7b,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x30,0x7d,0x2c,0x7b,0x31,0x34,0x2c,0x31,0x30,0x2c,0x31,0x31,0x7d,0x2c,0x0a,0x7b, + 0x31,0x35,0x2c,0x31,0x36,0x2c,0x31,0x37,0x7d,0x2c,0x7b,0x31,0x36,0x2c,0x31,0x37,0x2c,0x31,0x38,0x7d,0x2c,0x7b,0x31,0x37,0x2c,0x31,0x38,0x2c,0x31,0x39,0x7d,0x2c, + 0x7b,0x31,0x38,0x2c,0x31,0x39,0x2c,0x31,0x35,0x7d,0x2c,0x7b,0x31,0x39,0x2c,0x31,0x35,0x2c,0x31,0x36,0x7d,0x2c,0x0a,0x7b,0x32,0x30,0x2c,0x32,0x31,0x2c,0x32,0x32, + 0x7d,0x2c,0x7b,0x32,0x31,0x2c,0x32,0x32,0x2c,0x32,0x33,0x7d,0x2c,0x7b,0x32,0x32,0x2c,0x32,0x33,0x2c,0x32,0x34,0x7d,0x2c,0x7b,0x32,0x33,0x2c,0x32,0x34,0x2c,0x32, + 0x30,0x7d,0x2c,0x7b,0x32,0x34,0x2c,0x32,0x30,0x2c,0x32,0x31,0x7d,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x69,0x6e,0x74,0x20,0x64,0x5b,0x32,0x35,0x5d,0x3d,0x7b,0x0a,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x0a,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31, + 0x32,0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x0a,0x32,0x30,0x2c,0x32,0x31,0x2c,0x32,0x32,0x2c,0x32,0x33,0x2c,0x32,0x34,0x2c,0x0a,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38, + 0x2c,0x39,0x2c,0x0a,0x31,0x35,0x2c,0x31,0x36,0x2c,0x31,0x37,0x2c,0x31,0x38,0x2c,0x31,0x39,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74, + 0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x33,0x32,0x2c,0x31,0x2c,0x31, + 0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x73,0x68,0x61,0x33,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x74,0x72,0x69,0x64,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x2a,0x20,0x68,0x61,0x73,0x68,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x67, + 0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67, + 0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x74,0x3e,0x3d,0x32,0x35,0x29,0x0a,0x72,0x65,0x74,0x75, + 0x72,0x6e,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x3d,0x74,0x20,0x25,0x20,0x35,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x70,0x75,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x29,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x74,0x72,0x69,0x64,0x65,0x29,0x2a,0x67,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, + 0x29,0x28,0x69,0x6e,0x70,0x75,0x74,0x73,0x2b,0x69,0x6e,0x70,0x75,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x73,0x5b,0x67,0x5d, + 0x2b,0x31,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x41,0x5b,0x32,0x35,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x43,0x5b,0x32,0x35,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x20,0x44,0x5b,0x32,0x35,0x5d,0x3b,0x0a,0x41,0x5b,0x74,0x5d,0x3d,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x77,0x6f,0x72,0x64,0x73,0x3d,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36, + 0x34,0x5f,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x61,0x69,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x69, + 0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64,0x65,0x78,0x3d,0x30,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x77,0x6f,0x72,0x64,0x73,0x3b,0x20,0x2b,0x2b,0x69,0x2c,0x2b,0x2b,0x69,0x6e,0x70,0x75,0x74,0x29,0x0a,0x7b,0x0a,0x41, + 0x5b,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64,0x65,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x3b,0x0a,0x2b,0x2b,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64, + 0x65,0x78,0x3b,0x0a,0x69,0x66,0x28,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64,0x65,0x78,0x3d,0x3d,0x31,0x37,0x29,0x0a,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20, + 0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x52,0x4f,0x55,0x4e,0x44,0x53,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x4f, + 0x55,0x4e,0x44,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x43,0x5b,0x74,0x5d,0x3d,0x41,0x5b,0x73,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x35,0x5d,0x5e,0x41,0x5b, + 0x73,0x2b,0x31,0x30,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x31,0x35,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x32,0x30,0x5d,0x3b,0x0a,0x44,0x5b,0x74,0x5d,0x3d,0x43,0x5b,0x62,0x5b, + 0x32,0x30,0x2b,0x73,0x5d,0x5d,0x5e,0x52,0x36,0x34,0x28,0x43,0x5b,0x62,0x5b,0x35,0x2b,0x73,0x5d,0x5d,0x2c,0x31,0x2c,0x36,0x33,0x29,0x3b,0x0a,0x43,0x5b,0x74,0x5d, + 0x3d,0x52,0x36,0x34,0x28,0x41,0x5b,0x61,0x5b,0x74,0x5d,0x5d,0x5e,0x44,0x5b,0x62,0x5b,0x74,0x5d,0x5d,0x2c,0x72,0x6f,0x5b,0x74,0x5d,0x5b,0x30,0x5d,0x2c,0x72,0x6f, + 0x5b,0x74,0x5d,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x64,0x5b,0x74,0x5d,0x5d,0x3d,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x30,0x5d,0x5d,0x5e,0x28,0x28,0x7e,0x43, + 0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x31,0x5d,0x5d,0x29,0x26,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x32,0x5d,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x74,0x5d,0x20,0x5e,0x3d,0x20, + 0x72,0x63,0x5b,0x28,0x74,0x3d,0x3d,0x30,0x29,0x3f,0x30,0x3a,0x31,0x5d,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64,0x65,0x78,0x3d,0x30, + 0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x61,0x69,0x6c,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x70,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x69,0x6e,0x70,0x75,0x74,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69, + 0x3d,0x30,0x3b,0x20,0x69,0x3c,0x74,0x61,0x69,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x74,0x61,0x69,0x6c,0x7c,0x3d,0x28,0x75, + 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x70,0x5b,0x69,0x5d,0x29,0x3c,0x3c,0x28,0x69,0x2a,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x41,0x5b,0x77,0x6f,0x72,0x64,0x49, + 0x6e,0x64,0x65,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x61,0x69,0x6c,0x5e,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x28,0x28,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x29,0x28,0x30,0x78,0x30,0x32,0x7c,0x28,0x31,0x3c,0x3c,0x32,0x29,0x29,0x29,0x3c,0x3c,0x28,0x74,0x61,0x69,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x2a, + 0x38,0x29,0x29,0x29,0x3b,0x0a,0x41,0x5b,0x31,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x55,0x4c,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69, + 0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x4f,0x55,0x4e,0x44,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x43,0x5b,0x74,0x5d,0x3d,0x41,0x5b,0x73,0x5d,0x5e,0x41, + 0x5b,0x73,0x2b,0x35,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x31,0x30,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x31,0x35,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x32,0x30,0x5d,0x3b,0x0a,0x44, + 0x5b,0x74,0x5d,0x3d,0x43,0x5b,0x62,0x5b,0x32,0x30,0x2b,0x73,0x5d,0x5d,0x5e,0x52,0x36,0x34,0x28,0x43,0x5b,0x62,0x5b,0x35,0x2b,0x73,0x5d,0x5d,0x2c,0x31,0x2c,0x36, + 0x33,0x29,0x3b,0x0a,0x43,0x5b,0x74,0x5d,0x3d,0x52,0x36,0x34,0x28,0x41,0x5b,0x61,0x5b,0x74,0x5d,0x5d,0x5e,0x44,0x5b,0x62,0x5b,0x74,0x5d,0x5d,0x2c,0x72,0x6f,0x5b, + 0x74,0x5d,0x5b,0x30,0x5d,0x2c,0x72,0x6f,0x5b,0x74,0x5d,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x64,0x5b,0x74,0x5d,0x5d,0x3d,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b, + 0x30,0x5d,0x5d,0x5e,0x28,0x28,0x7e,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x31,0x5d,0x5d,0x29,0x26,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x32,0x5d,0x5d,0x29,0x3b,0x0a, + 0x41,0x5b,0x74,0x5d,0x20,0x5e,0x3d,0x20,0x72,0x63,0x5b,0x28,0x74,0x3d,0x3d,0x30,0x29,0x3f,0x30,0x3a,0x31,0x5d,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28, + 0x74,0x3c,0x34,0x29,0x0a,0x7b,0x0a,0x68,0x61,0x73,0x68,0x65,0x73,0x2b,0x3d,0x67,0x2a,0x28,0x33,0x32,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x74,0x5d,0x3d,0x41,0x5b,0x74,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74, + 0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28, + 0x33,0x32,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x73,0x68,0x61,0x33,0x5f,0x69,0x6e,0x69, + 0x74,0x69,0x61,0x6c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x70, + 0x75,0x74,0x5f,0x64,0x61,0x74,0x61,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x68,0x61, + 0x73,0x68,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63, + 0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x3d,0x67,0x65,0x74,0x5f,0x67, + 0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x74,0x3e,0x3d,0x32,0x35,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x3d,0x74,0x20,0x25,0x20,0x35,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x2a,0x29,0x28,0x69,0x6e,0x70,0x75,0x74,0x5f,0x64,0x61,0x74,0x61,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x20,0x41,0x5b,0x32,0x35,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x43,0x5b,0x32,0x35,0x5d,0x3b, + 0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x44,0x5b,0x32,0x35,0x5d,0x3b,0x0a,0x41,0x5b,0x74,0x5d,0x3d,0x28,0x74, + 0x3c,0x31,0x36,0x29,0x3f,0x69,0x6e,0x70,0x75,0x74,0x5b,0x74,0x5d,0x3a,0x30,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x2a,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x70,0x6f,0x73,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29, + 0x28,0x41,0x29,0x2b,0x39,0x3b,0x0a,0x6e,0x6f,0x6e,0x63,0x65,0x2b,0x3d,0x67,0x3b,0x0a,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x70,0x6f,0x73,0x5b,0x30,0x5d,0x3d,0x28,0x6e, + 0x6f,0x6e,0x63,0x65,0x5f,0x70,0x6f,0x73,0x5b,0x30,0x5d,0x26,0x30,0x78,0x46,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x26,0x30, + 0x78,0x46,0x46,0x29,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x70,0x6f,0x73,0x5b,0x31,0x5d,0x3d,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x70, + 0x6f,0x73,0x5b,0x31,0x5d,0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x29,0x7c,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x38,0x29,0x3b,0x0a,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64,0x65,0x78,0x3d,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x2f,0x73,0x69,0x7a, + 0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x61, + 0x69,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x69,0x6e,0x70,0x75,0x74,0x5f,0x73,0x69,0x7a,0x65,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x41,0x5b,0x77,0x6f,0x72,0x64,0x49,0x6e,0x64,0x65,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, + 0x29,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x30,0x78,0x30,0x32,0x7c,0x28,0x31,0x3c,0x3c,0x32,0x29,0x29,0x29,0x3c,0x3c,0x28,0x74,0x61, + 0x69,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x41,0x5b,0x31,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x52,0x4f,0x55,0x4e,0x44, + 0x53,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x4f,0x55,0x4e,0x44,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b, + 0x0a,0x43,0x5b,0x74,0x5d,0x3d,0x41,0x5b,0x73,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x35,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x31,0x30,0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x31,0x35, + 0x5d,0x5e,0x41,0x5b,0x73,0x2b,0x32,0x30,0x5d,0x3b,0x0a,0x44,0x5b,0x74,0x5d,0x3d,0x43,0x5b,0x62,0x5b,0x32,0x30,0x2b,0x73,0x5d,0x5d,0x5e,0x52,0x36,0x34,0x28,0x43, + 0x5b,0x62,0x5b,0x35,0x2b,0x73,0x5d,0x5d,0x2c,0x31,0x2c,0x36,0x33,0x29,0x3b,0x0a,0x43,0x5b,0x74,0x5d,0x3d,0x52,0x36,0x34,0x28,0x41,0x5b,0x61,0x5b,0x74,0x5d,0x5d, + 0x5e,0x44,0x5b,0x62,0x5b,0x74,0x5d,0x5d,0x2c,0x72,0x6f,0x5b,0x74,0x5d,0x5b,0x30,0x5d,0x2c,0x72,0x6f,0x5b,0x74,0x5d,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x64, + 0x5b,0x74,0x5d,0x5d,0x3d,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x30,0x5d,0x5d,0x5e,0x28,0x28,0x7e,0x43,0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x31,0x5d,0x5d,0x29,0x26,0x43, + 0x5b,0x63,0x5b,0x74,0x5d,0x5b,0x32,0x5d,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x74,0x5d,0x20,0x5e,0x3d,0x20,0x72,0x63,0x5b,0x28,0x74,0x3d,0x3d,0x30,0x29,0x3f,0x30,0x3a, + 0x31,0x5d,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x74,0x3c,0x34,0x29,0x0a,0x7b,0x0a,0x68,0x61,0x73,0x68,0x65,0x73,0x2b,0x3d,0x67,0x2a,0x28,0x33,0x32, + 0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x74,0x5d,0x3d,0x41,0x5b, + 0x74,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x00 +}; + +} // namespace xmrig diff --git a/src/backend/opencl/cl/astrobwt/salsa20.cl b/src/backend/opencl/cl/astrobwt/salsa20.cl new file mode 100644 index 00000000..12a68321 --- /dev/null +++ b/src/backend/opencl/cl/astrobwt/salsa20.cl @@ -0,0 +1,153 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#define ROTATE(v,c) (rotate(v,(uint32_t)c)) +#define XOR(v,w) ((v) ^ (w)) +#define PLUS(v,w) ((v) + (w)) + +__attribute__((reqd_work_group_size(SALSA20_GROUP_SIZE, 1, 1))) +__kernel void Salsa20_XORKeyStream(__global const uint32_t* keys, __global uint32_t* outputs, __global uint32_t* output_sizes, uint32_t output_stride) +{ + const uint32_t t = get_local_id(0); + const uint32_t g = get_group_id(0); + + // Put zeroes in the beginning + const uint64_t output_offset = g * ((uint64_t)output_stride) + 128; + { + __global uint32_t* p = outputs + (output_offset - 128) / sizeof(uint32_t); + for (uint32_t i = t; i < 128 / sizeof(uint32_t); i += SALSA20_GROUP_SIZE) + p[i] = 0; + } + + __global const uint32_t* k = keys + g * 8; + __global uint32_t* output = outputs + (output_offset + (t * 64)) / sizeof(uint32_t); + const uint32_t output_size = output_sizes[g]; + + const uint32_t j1 = k[0]; + const uint32_t j2 = k[1]; + const uint32_t j3 = k[2]; + const uint32_t j4 = k[3]; + const uint32_t j11 = k[4]; + const uint32_t j12 = k[5]; + const uint32_t j13 = k[6]; + const uint32_t j14 = k[7]; + const uint32_t j0 = 0x61707865U; + const uint32_t j5 = 0x3320646EU; + const uint32_t j10 = 0x79622D32U; + const uint32_t j15 = 0x6B206574U; + const uint32_t j6 = 0; + const uint32_t j7 = 0; + const uint32_t j8 = 0; + const uint32_t j9 = 0; + + for (uint32_t i = t * 64; i < output_size; i += SALSA20_GROUP_SIZE * 64) + { + const uint32_t j8_1 = j8 + (i / 64); + + uint32_t x0 = j0; + uint32_t x1 = j1; + uint32_t x2 = j2; + uint32_t x3 = j3; + uint32_t x4 = j4; + uint32_t x5 = j5; + uint32_t x6 = j6; + uint32_t x7 = j7; + uint32_t x8 = j8_1; + uint32_t x9 = j9; + uint32_t x10 = j10; + uint32_t x11 = j11; + uint32_t x12 = j12; + uint32_t x13 = j13; + uint32_t x14 = j14; + uint32_t x15 = j15; + + #pragma unroll 5 + for (uint32_t j = 0; j < 10; ++j) + { + x4 = XOR( x4,ROTATE(PLUS( x0,x12), 7)); + x8 = XOR( x8,ROTATE(PLUS( x4, x0), 9)); + x12 = XOR(x12,ROTATE(PLUS( x8, x4),13)); + x0 = XOR( x0,ROTATE(PLUS(x12, x8),18)); + x9 = XOR( x9,ROTATE(PLUS( x5, x1), 7)); + x13 = XOR(x13,ROTATE(PLUS( x9, x5), 9)); + x1 = XOR( x1,ROTATE(PLUS(x13, x9),13)); + x5 = XOR( x5,ROTATE(PLUS( x1,x13),18)); + x14 = XOR(x14,ROTATE(PLUS(x10, x6), 7)); + x2 = XOR( x2,ROTATE(PLUS(x14,x10), 9)); + x6 = XOR( x6,ROTATE(PLUS( x2,x14),13)); + x10 = XOR(x10,ROTATE(PLUS( x6, x2),18)); + x3 = XOR( x3,ROTATE(PLUS(x15,x11), 7)); + x7 = XOR( x7,ROTATE(PLUS( x3,x15), 9)); + x11 = XOR(x11,ROTATE(PLUS( x7, x3),13)); + x15 = XOR(x15,ROTATE(PLUS(x11, x7),18)); + x1 = XOR( x1,ROTATE(PLUS( x0, x3), 7)); + x2 = XOR( x2,ROTATE(PLUS( x1, x0), 9)); + x3 = XOR( x3,ROTATE(PLUS( x2, x1),13)); + x0 = XOR( x0,ROTATE(PLUS( x3, x2),18)); + x6 = XOR( x6,ROTATE(PLUS( x5, x4), 7)); + x7 = XOR( x7,ROTATE(PLUS( x6, x5), 9)); + x4 = XOR( x4,ROTATE(PLUS( x7, x6),13)); + x5 = XOR( x5,ROTATE(PLUS( x4, x7),18)); + x11 = XOR(x11,ROTATE(PLUS(x10, x9), 7)); + x8 = XOR( x8,ROTATE(PLUS(x11,x10), 9)); + x9 = XOR( x9,ROTATE(PLUS( x8,x11),13)); + x10 = XOR(x10,ROTATE(PLUS( x9, x8),18)); + x12 = XOR(x12,ROTATE(PLUS(x15,x14), 7)); + x13 = XOR(x13,ROTATE(PLUS(x12,x15), 9)); + x14 = XOR(x14,ROTATE(PLUS(x13,x12),13)); + x15 = XOR(x15,ROTATE(PLUS(x14,x13),18)); + } + + output[0] = PLUS(x0, j0); + output[1] = PLUS(x1, j1); + output[2] = PLUS(x2, j2); + output[3] = PLUS(x3, j3); + output[4] = PLUS(x4, j4); + output[5] = PLUS(x5, j5); + output[6] = PLUS(x6, j6); + output[7] = PLUS(x7, j7); + output[8] = PLUS(x8, j8_1); + output[9] = PLUS(x9, j9); + output[10] = PLUS(x10,j10); + output[11] = PLUS(x11,j11); + output[12] = PLUS(x12,j12); + output[13] = PLUS(x13,j13); + output[14] = PLUS(x14,j14); + output[15] = PLUS(x15,j15); + + output += (SALSA20_GROUP_SIZE * 64) / sizeof(uint32_t); + } + + barrier(CLK_GLOBAL_MEM_FENCE); + + // Put zeroes after output's end + if (t < 16) + { + __global uint32_t* p = outputs + (output_offset + output_size + 3) / sizeof(uint32_t); + p[t] = 0; + } + + if ((t == 0) && (output_size & 3)) + outputs[(output_offset + output_size) / sizeof(uint32_t)] &= 0xFFFFFFFFU >> ((4 - (output_size & 3)) << 3); +} diff --git a/src/backend/opencl/cl/astrobwt/sha3.cl b/src/backend/opencl/cl/astrobwt/sha3.cl new file mode 100644 index 00000000..52cec28e --- /dev/null +++ b/src/backend/opencl/cl/astrobwt/sha3.cl @@ -0,0 +1,198 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#define ROUNDS 24 +#define R64(a,b,c) (((a) << b) | ((a) >> c)) + +__constant const uint64_t rc[2][ROUNDS] = { + {0x0000000000000001UL, 0x0000000000008082UL, 0x800000000000808AUL, + 0x8000000080008000UL, 0x000000000000808BUL, 0x0000000080000001UL, + 0x8000000080008081UL, 0x8000000000008009UL, 0x000000000000008AUL, + 0x0000000000000088UL, 0x0000000080008009UL, 0x000000008000000AUL, + 0x000000008000808BUL, 0x800000000000008BUL, 0x8000000000008089UL, + 0x8000000000008003UL, 0x8000000000008002UL, 0x8000000000000080UL, + 0x000000000000800AUL, 0x800000008000000AUL, 0x8000000080008081UL, + 0x8000000000008080UL, 0x0000000080000001UL, 0x8000000080008008UL}, + {0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, + 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, + 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL} +}; + + +__constant const int ro[25][2] = { + { 0,64}, {44,20}, {43,21}, {21,43}, {14,50}, + { 1,63}, { 6,58}, {25,39}, { 8,56}, {18,46}, + {62, 2}, {55, 9}, {39,25}, {41,23}, { 2,62}, + {28,36}, {20,44}, { 3,61}, {45,19}, {61, 3}, + {27,37}, {36,28}, {10,54}, {15,49}, {56, 8} +}; + +__constant const int a[25] = { + 0, 6, 12, 18, 24, + 1, 7, 13, 19, 20, + 2, 8, 14, 15, 21, + 3, 9, 10, 16, 22, + 4, 5, 11, 17, 23 +}; + +__constant const int b[25] = { + 0, 1, 2, 3, 4, + 1, 2, 3, 4, 0, + 2, 3, 4, 0, 1, + 3, 4, 0, 1, 2, + 4, 0, 1, 2, 3 +}; + +__constant const int c[25][3] = { + { 0, 1, 2}, { 1, 2, 3}, { 2, 3, 4}, { 3, 4, 0}, { 4, 0, 1}, + { 5, 6, 7}, { 6, 7, 8}, { 7, 8, 9}, { 8, 9, 5}, { 9, 5, 6}, + {10,11,12}, {11,12,13}, {12,13,14}, {13,14,10}, {14,10,11}, + {15,16,17}, {16,17,18}, {17,18,19}, {18,19,15}, {19,15,16}, + {20,21,22}, {21,22,23}, {22,23,24}, {23,24,20}, {24,20,21} +}; + +__constant const int d[25] = { + 0, 1, 2, 3, 4, + 10, 11, 12, 13, 14, + 20, 21, 22, 23, 24, + 5, 6, 7, 8, 9, + 15, 16, 17, 18, 19 +}; + +__attribute__((reqd_work_group_size(32, 1, 1))) +__kernel void sha3(__global const uint8_t* inputs, __global const uint32_t* input_sizes, uint32_t input_stride, __global uint64_t* hashes) +{ + const uint32_t t = get_local_id(0); + const uint32_t g = get_group_id(0); + + if (t >= 25) + return; + + const uint32_t s = t % 5; + + const uint64_t input_offset = ((uint64_t)input_stride) * g; + __global uint64_t* input = (__global uint64_t*)(inputs + input_offset); + const uint32_t input_size = input_sizes[g] + 1; + + __local uint64_t A[25]; + __local uint64_t C[25]; + __local uint64_t D[25]; + + A[t] = 0; + + const uint32_t words = input_size / sizeof(uint64_t); + const uint32_t tail_size = input_size % sizeof(uint64_t); + + uint32_t wordIndex = 0; + for (uint32_t i = 0; i < words; ++i, ++input) + { + A[wordIndex] ^= *input; + ++wordIndex; + if (wordIndex == 17) + { + #pragma unroll ROUNDS + for (int i = 0; i < ROUNDS; ++i) + { + C[t] = A[s] ^ A[s+5] ^ A[s+10] ^ A[s+15] ^ A[s+20]; + D[t] = C[b[20+s]] ^ R64(C[b[5+s]], 1, 63); + C[t] = R64(A[a[t]] ^ D[b[t]], ro[t][0], ro[t][1]); + A[d[t]] = C[c[t][0]] ^ ((~C[c[t][1]]) & C[c[t][2]]); + A[t] ^= rc[(t == 0) ? 0 : 1][i]; + } + wordIndex = 0; + } + } + + uint64_t tail = 0; + __global const uint8_t* p = (__global const uint8_t*)input; + for (uint32_t i = 0; i < tail_size; ++i) + { + tail |= (uint64_t)(p[i]) << (i * 8); + } + A[wordIndex] ^= tail ^ ((uint64_t)(((uint64_t)(0x02 | (1 << 2))) << (tail_size * 8))); + A[16] ^= 0x8000000000000000UL; + + #pragma unroll 1 + for (int i = 0; i < ROUNDS; ++i) + { + C[t] = A[s] ^ A[s+5] ^ A[s+10] ^ A[s+15] ^ A[s+20]; + D[t] = C[b[20+s]] ^ R64(C[b[5+s]], 1, 63); + C[t] = R64(A[a[t]] ^ D[b[t]], ro[t][0], ro[t][1]); + A[d[t]] = C[c[t][0]] ^ ((~C[c[t][1]]) & C[c[t][2]]); + A[t] ^= rc[(t == 0) ? 0 : 1][i]; + } + + if (t < 4) + { + hashes += g * (32 / sizeof(uint64_t)); + hashes[t] = A[t]; + } +} + +__attribute__((reqd_work_group_size(32, 1, 1))) +__kernel void sha3_initial(__global const uint8_t* input_data, uint32_t input_size, uint32_t nonce, __global uint64_t* hashes) +{ + const uint32_t t = get_local_id(0); + const uint32_t g = get_group_id(0); + + if (t >= 25) + return; + + const uint32_t s = t % 5; + + __global uint64_t* input = (__global uint64_t*)(input_data); + + __local uint64_t A[25]; + __local uint64_t C[25]; + __local uint64_t D[25]; + + A[t] = (t < 16) ? input[t] : 0; + + __local uint32_t* nonce_pos = (__local uint32_t*)(A) + 9; + nonce += g; + nonce_pos[0] = (nonce_pos[0] & 0xFFFFFFU) | ((nonce & 0xFF) << 24); + nonce_pos[1] = (nonce_pos[1] & 0xFF000000U) | (nonce >> 8); + + uint32_t wordIndex = input_size / sizeof(uint64_t); + const uint32_t tail_size = input_size % sizeof(uint64_t); + + A[wordIndex] ^= (uint64_t)(((uint64_t)(0x02 | (1 << 2))) << (tail_size * 8)); + A[16] ^= 0x8000000000000000UL; + + #pragma unroll ROUNDS + for (int i = 0; i < ROUNDS; ++i) + { + C[t] = A[s] ^ A[s+5] ^ A[s+10] ^ A[s+15] ^ A[s+20]; + D[t] = C[b[20+s]] ^ R64(C[b[5+s]], 1, 63); + C[t] = R64(A[a[t]] ^ D[b[t]], ro[t][0], ro[t][1]); + A[d[t]] = C[c[t][0]] ^ ((~C[c[t][1]]) & C[c[t][2]]); + A[t] ^= rc[(t == 0) ? 0 : 1][i]; + } + + if (t < 4) + { + hashes += g * (32 / sizeof(uint64_t)); + hashes[t] = A[t]; + } +} diff --git a/src/backend/opencl/cl/cn/algorithm.cl b/src/backend/opencl/cl/cn/algorithm.cl index ddcc9448..7258479d 100644 --- a/src/backend/opencl/cl/cn/algorithm.cl +++ b/src/backend/opencl/cl/cn/algorithm.cl @@ -22,11 +22,12 @@ #define ALGO_RX_WOW 0x72141177 #define ALGO_RX_ARQMA 0x72121061 #define ALGO_RX_SFX 0x72151273 +#define ALGO_RX_KEVA 0x7214116b #define ALGO_RX_GRAFT 0x72151267 -#define ALGO_RX_YADA 0x72151279 #define ALGO_AR2_CHUKWA 0x61130000 #define ALGO_AR2_CHUKWA_V2 0x61140000 #define ALGO_AR2_WRKZ 0x61120000 +#define ALGO_ASTROBWT_DERO 0x41000000 #define ALGO_KAWPOW_RVN 0x6b0f0000 #define FAMILY_UNKNOWN 0 @@ -37,4 +38,5 @@ #define FAMILY_CN_FEMTO 0x63110000 #define FAMILY_RANDOM_X 0x72000000 #define FAMILY_ARGON2 0x61000000 +#define FAMILY_ASTROBWT 0x41000000 #define FAMILY_KAWPOW 0x6b000000 diff --git a/src/backend/opencl/cl/cn/cryptonight_cl.h b/src/backend/opencl/cl/cn/cryptonight_cl.h index 3e803a6a..791d088b 100644 --- a/src/backend/opencl/cl/cn/cryptonight_cl.h +++ b/src/backend/opencl/cl/cn/cryptonight_cl.h @@ -2,7 +2,7 @@ namespace xmrig { -static const char cryptonight_cl[61447] = { +static const char cryptonight_cl[61520] = { 0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x65,0x6e,0x64, 0x69,0x66,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x0a,0x23,0x64,0x65,0x66,0x69, 0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53, @@ -34,1896 +34,1898 @@ static const char cryptonight_cl[61447] = { 0x31,0x35,0x31,0x32,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x57,0x4f,0x57,0x20,0x30,0x78,0x37,0x32,0x31, 0x34,0x31,0x31,0x37,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x41,0x52,0x51,0x4d,0x41,0x20,0x30,0x78,0x37,0x32, 0x31,0x32,0x31,0x30,0x36,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x53,0x46,0x58,0x20,0x30,0x78,0x37,0x32,0x31, - 0x35,0x31,0x32,0x37,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x47,0x52,0x41,0x46,0x54,0x20,0x30,0x78,0x37,0x32, - 0x31,0x35,0x31,0x32,0x36,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x59,0x41,0x44,0x41,0x20,0x30,0x78,0x37,0x32, - 0x31,0x35,0x31,0x32,0x37,0x39,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f,0x43,0x48,0x55,0x4b,0x57,0x41,0x20,0x30, + 0x35,0x31,0x32,0x37,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x4b,0x45,0x56,0x41,0x20,0x30,0x78,0x37,0x32,0x31, + 0x34,0x31,0x31,0x36,0x62,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x47,0x52,0x41,0x46,0x54,0x20,0x30,0x78,0x37,0x32, + 0x31,0x35,0x31,0x32,0x36,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f,0x43,0x48,0x55,0x4b,0x57,0x41,0x20,0x30, 0x78,0x36,0x31,0x31,0x33,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f,0x43,0x48,0x55,0x4b,0x57, 0x41,0x5f,0x56,0x32,0x20,0x30,0x78,0x36,0x31,0x31,0x34,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32, - 0x5f,0x57,0x52,0x4b,0x5a,0x20,0x30,0x78,0x36,0x31,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x4b,0x41, - 0x57,0x50,0x4f,0x57,0x5f,0x52,0x56,0x4e,0x20,0x30,0x78,0x36,0x62,0x30,0x66,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49, - 0x4c,0x59,0x5f,0x55,0x4e,0x4b,0x4e,0x4f,0x57,0x4e,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x20,0x30, - 0x78,0x36,0x33,0x31,0x35,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x4c,0x49,0x54,0x45, - 0x20,0x30,0x78,0x36,0x33,0x31,0x34,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45, - 0x41,0x56,0x59,0x20,0x30,0x78,0x36,0x33,0x31,0x36,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e, - 0x5f,0x50,0x49,0x43,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f, - 0x43,0x4e,0x5f,0x46,0x45,0x4d,0x54,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x31,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49, - 0x4c,0x59,0x5f,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x5f,0x58,0x20,0x30,0x78,0x37,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46, - 0x41,0x4d,0x49,0x4c,0x59,0x5f,0x41,0x52,0x47,0x4f,0x4e,0x32,0x20,0x30,0x78,0x36,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x4b,0x41,0x57,0x50,0x4f,0x57,0x20,0x30,0x78,0x36,0x62,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66, - 0x20,0x57,0x4f,0x4c,0x46,0x5f,0x41,0x45,0x53,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x4f,0x4c,0x46,0x5f,0x41,0x45,0x53,0x5f,0x43,0x4c, - 0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x65,0x6e, - 0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x32,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x4f,0x50,0x45,0x4e,0x43, - 0x4c,0x20,0x45,0x58,0x54,0x45,0x4e,0x53,0x49,0x4f,0x4e,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x32,0x20,0x3a,0x20, - 0x65,0x6e,0x61,0x62,0x6c,0x65,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x69,0x6e,0x6c,0x69, - 0x6e,0x65,0x20,0x69,0x6e,0x74,0x20,0x61,0x6d,0x64,0x5f,0x62,0x66,0x65,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x30,0x2c,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x77,0x69,0x64,0x74, - 0x68,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x77,0x69,0x64,0x74,0x68,0x29,0x3c,0x33,0x32,0x75,0x29,0x20,0x7b,0x0a,0x72,0x65, - 0x74,0x75,0x72,0x6e,0x20,0x28,0x73,0x72,0x63,0x30,0x3c,0x3c,0x28,0x33,0x32,0x75,0x2d,0x6f,0x66,0x66,0x73,0x65,0x74,0x2d,0x77,0x69,0x64,0x74,0x68,0x29,0x29,0x3e, - 0x3e,0x28,0x33,0x32,0x75,0x2d,0x77,0x69,0x64,0x74,0x68,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x73,0x72,0x63,0x30,0x3e,0x3e,0x6f,0x66,0x66, - 0x73,0x65,0x74,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e, - 0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x32,0x35,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x41,0x35,0x36, - 0x33,0x36,0x33,0x43,0x36,0x55,0x2c,0x30,0x78,0x38,0x34,0x37,0x43,0x37,0x43,0x46,0x38,0x55,0x2c,0x30,0x78,0x39,0x39,0x37,0x37,0x37,0x37,0x45,0x45,0x55,0x2c,0x30, - 0x78,0x38,0x44,0x37,0x42,0x37,0x42,0x46,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x44,0x46,0x32,0x46,0x32,0x46,0x46,0x55,0x2c,0x30,0x78,0x42,0x44,0x36,0x42,0x36,0x42, - 0x44,0x36,0x55,0x2c,0x30,0x78,0x42,0x31,0x36,0x46,0x36,0x46,0x44,0x45,0x55,0x2c,0x30,0x78,0x35,0x34,0x43,0x35,0x43,0x35,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x35, - 0x30,0x33,0x30,0x33,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x31,0x30,0x31,0x30,0x32,0x55,0x2c,0x30,0x78,0x41,0x39,0x36,0x37,0x36,0x37,0x43,0x45,0x55, - 0x2c,0x30,0x78,0x37,0x44,0x32,0x42,0x32,0x42,0x35,0x36,0x55,0x2c,0x0a,0x30,0x78,0x31,0x39,0x46,0x45,0x46,0x45,0x45,0x37,0x55,0x2c,0x30,0x78,0x36,0x32,0x44,0x37, - 0x44,0x37,0x42,0x35,0x55,0x2c,0x30,0x78,0x45,0x36,0x41,0x42,0x41,0x42,0x34,0x44,0x55,0x2c,0x30,0x78,0x39,0x41,0x37,0x36,0x37,0x36,0x45,0x43,0x55,0x2c,0x0a,0x30, - 0x78,0x34,0x35,0x43,0x41,0x43,0x41,0x38,0x46,0x55,0x2c,0x30,0x78,0x39,0x44,0x38,0x32,0x38,0x32,0x31,0x46,0x55,0x2c,0x30,0x78,0x34,0x30,0x43,0x39,0x43,0x39,0x38, - 0x39,0x55,0x2c,0x30,0x78,0x38,0x37,0x37,0x44,0x37,0x44,0x46,0x41,0x55,0x2c,0x0a,0x30,0x78,0x31,0x35,0x46,0x41,0x46,0x41,0x45,0x46,0x55,0x2c,0x30,0x78,0x45,0x42, - 0x35,0x39,0x35,0x39,0x42,0x32,0x55,0x2c,0x30,0x78,0x43,0x39,0x34,0x37,0x34,0x37,0x38,0x45,0x55,0x2c,0x30,0x78,0x30,0x42,0x46,0x30,0x46,0x30,0x46,0x42,0x55,0x2c, - 0x0a,0x30,0x78,0x45,0x43,0x41,0x44,0x41,0x44,0x34,0x31,0x55,0x2c,0x30,0x78,0x36,0x37,0x44,0x34,0x44,0x34,0x42,0x33,0x55,0x2c,0x30,0x78,0x46,0x44,0x41,0x32,0x41, - 0x32,0x35,0x46,0x55,0x2c,0x30,0x78,0x45,0x41,0x41,0x46,0x41,0x46,0x34,0x35,0x55,0x2c,0x0a,0x30,0x78,0x42,0x46,0x39,0x43,0x39,0x43,0x32,0x33,0x55,0x2c,0x30,0x78, - 0x46,0x37,0x41,0x34,0x41,0x34,0x35,0x33,0x55,0x2c,0x30,0x78,0x39,0x36,0x37,0x32,0x37,0x32,0x45,0x34,0x55,0x2c,0x30,0x78,0x35,0x42,0x43,0x30,0x43,0x30,0x39,0x42, - 0x55,0x2c,0x0a,0x30,0x78,0x43,0x32,0x42,0x37,0x42,0x37,0x37,0x35,0x55,0x2c,0x30,0x78,0x31,0x43,0x46,0x44,0x46,0x44,0x45,0x31,0x55,0x2c,0x30,0x78,0x41,0x45,0x39, - 0x33,0x39,0x33,0x33,0x44,0x55,0x2c,0x30,0x78,0x36,0x41,0x32,0x36,0x32,0x36,0x34,0x43,0x55,0x2c,0x0a,0x30,0x78,0x35,0x41,0x33,0x36,0x33,0x36,0x36,0x43,0x55,0x2c, - 0x30,0x78,0x34,0x31,0x33,0x46,0x33,0x46,0x37,0x45,0x55,0x2c,0x30,0x78,0x30,0x32,0x46,0x37,0x46,0x37,0x46,0x35,0x55,0x2c,0x30,0x78,0x34,0x46,0x43,0x43,0x43,0x43, - 0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x43,0x33,0x34,0x33,0x34,0x36,0x38,0x55,0x2c,0x30,0x78,0x46,0x34,0x41,0x35,0x41,0x35,0x35,0x31,0x55,0x2c,0x30,0x78,0x33, - 0x34,0x45,0x35,0x45,0x35,0x44,0x31,0x55,0x2c,0x30,0x78,0x30,0x38,0x46,0x31,0x46,0x31,0x46,0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x33,0x37,0x31,0x37,0x31,0x45,0x32, - 0x55,0x2c,0x30,0x78,0x37,0x33,0x44,0x38,0x44,0x38,0x41,0x42,0x55,0x2c,0x30,0x78,0x35,0x33,0x33,0x31,0x33,0x31,0x36,0x32,0x55,0x2c,0x30,0x78,0x33,0x46,0x31,0x35, - 0x31,0x35,0x32,0x41,0x55,0x2c,0x0a,0x30,0x78,0x30,0x43,0x30,0x34,0x30,0x34,0x30,0x38,0x55,0x2c,0x30,0x78,0x35,0x32,0x43,0x37,0x43,0x37,0x39,0x35,0x55,0x2c,0x30, - 0x78,0x36,0x35,0x32,0x33,0x32,0x33,0x34,0x36,0x55,0x2c,0x30,0x78,0x35,0x45,0x43,0x33,0x43,0x33,0x39,0x44,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38,0x31,0x38,0x31,0x38, - 0x33,0x30,0x55,0x2c,0x30,0x78,0x41,0x31,0x39,0x36,0x39,0x36,0x33,0x37,0x55,0x2c,0x30,0x78,0x30,0x46,0x30,0x35,0x30,0x35,0x30,0x41,0x55,0x2c,0x30,0x78,0x42,0x35, - 0x39,0x41,0x39,0x41,0x32,0x46,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x37,0x30,0x37,0x30,0x45,0x55,0x2c,0x30,0x78,0x33,0x36,0x31,0x32,0x31,0x32,0x32,0x34,0x55, - 0x2c,0x30,0x78,0x39,0x42,0x38,0x30,0x38,0x30,0x31,0x42,0x55,0x2c,0x30,0x78,0x33,0x44,0x45,0x32,0x45,0x32,0x44,0x46,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x45,0x42, - 0x45,0x42,0x43,0x44,0x55,0x2c,0x30,0x78,0x36,0x39,0x32,0x37,0x32,0x37,0x34,0x45,0x55,0x2c,0x30,0x78,0x43,0x44,0x42,0x32,0x42,0x32,0x37,0x46,0x55,0x2c,0x30,0x78, - 0x39,0x46,0x37,0x35,0x37,0x35,0x45,0x41,0x55,0x2c,0x0a,0x30,0x78,0x31,0x42,0x30,0x39,0x30,0x39,0x31,0x32,0x55,0x2c,0x30,0x78,0x39,0x45,0x38,0x33,0x38,0x33,0x31, - 0x44,0x55,0x2c,0x30,0x78,0x37,0x34,0x32,0x43,0x32,0x43,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x45,0x31,0x41,0x31,0x41,0x33,0x34,0x55,0x2c,0x0a,0x30,0x78,0x32,0x44, - 0x31,0x42,0x31,0x42,0x33,0x36,0x55,0x2c,0x30,0x78,0x42,0x32,0x36,0x45,0x36,0x45,0x44,0x43,0x55,0x2c,0x30,0x78,0x45,0x45,0x35,0x41,0x35,0x41,0x42,0x34,0x55,0x2c, - 0x30,0x78,0x46,0x42,0x41,0x30,0x41,0x30,0x35,0x42,0x55,0x2c,0x0a,0x30,0x78,0x46,0x36,0x35,0x32,0x35,0x32,0x41,0x34,0x55,0x2c,0x30,0x78,0x34,0x44,0x33,0x42,0x33, - 0x42,0x37,0x36,0x55,0x2c,0x30,0x78,0x36,0x31,0x44,0x36,0x44,0x36,0x42,0x37,0x55,0x2c,0x30,0x78,0x43,0x45,0x42,0x33,0x42,0x33,0x37,0x44,0x55,0x2c,0x0a,0x30,0x78, - 0x37,0x42,0x32,0x39,0x32,0x39,0x35,0x32,0x55,0x2c,0x30,0x78,0x33,0x45,0x45,0x33,0x45,0x33,0x44,0x44,0x55,0x2c,0x30,0x78,0x37,0x31,0x32,0x46,0x32,0x46,0x35,0x45, - 0x55,0x2c,0x30,0x78,0x39,0x37,0x38,0x34,0x38,0x34,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x46,0x35,0x35,0x33,0x35,0x33,0x41,0x36,0x55,0x2c,0x30,0x78,0x36,0x38,0x44, - 0x31,0x44,0x31,0x42,0x39,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x30,0x78,0x32,0x43,0x45,0x44,0x45,0x44,0x43,0x31,0x55,0x2c,0x0a, - 0x30,0x78,0x36,0x30,0x32,0x30,0x32,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x31,0x46,0x46,0x43,0x46,0x43,0x45,0x33,0x55,0x2c,0x30,0x78,0x43,0x38,0x42,0x31,0x42,0x31, - 0x37,0x39,0x55,0x2c,0x30,0x78,0x45,0x44,0x35,0x42,0x35,0x42,0x42,0x36,0x55,0x2c,0x0a,0x30,0x78,0x42,0x45,0x36,0x41,0x36,0x41,0x44,0x34,0x55,0x2c,0x30,0x78,0x34, - 0x36,0x43,0x42,0x43,0x42,0x38,0x44,0x55,0x2c,0x30,0x78,0x44,0x39,0x42,0x45,0x42,0x45,0x36,0x37,0x55,0x2c,0x30,0x78,0x34,0x42,0x33,0x39,0x33,0x39,0x37,0x32,0x55, - 0x2c,0x0a,0x30,0x78,0x44,0x45,0x34,0x41,0x34,0x41,0x39,0x34,0x55,0x2c,0x30,0x78,0x44,0x34,0x34,0x43,0x34,0x43,0x39,0x38,0x55,0x2c,0x30,0x78,0x45,0x38,0x35,0x38, - 0x35,0x38,0x42,0x30,0x55,0x2c,0x30,0x78,0x34,0x41,0x43,0x46,0x43,0x46,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x42,0x44,0x30,0x44,0x30,0x42,0x42,0x55,0x2c,0x30, - 0x78,0x32,0x41,0x45,0x46,0x45,0x46,0x43,0x35,0x55,0x2c,0x30,0x78,0x45,0x35,0x41,0x41,0x41,0x41,0x34,0x46,0x55,0x2c,0x30,0x78,0x31,0x36,0x46,0x42,0x46,0x42,0x45, - 0x44,0x55,0x2c,0x0a,0x30,0x78,0x43,0x35,0x34,0x33,0x34,0x33,0x38,0x36,0x55,0x2c,0x30,0x78,0x44,0x37,0x34,0x44,0x34,0x44,0x39,0x41,0x55,0x2c,0x30,0x78,0x35,0x35, - 0x33,0x33,0x33,0x33,0x36,0x36,0x55,0x2c,0x30,0x78,0x39,0x34,0x38,0x35,0x38,0x35,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x43,0x46,0x34,0x35,0x34,0x35,0x38,0x41,0x55, - 0x2c,0x30,0x78,0x31,0x30,0x46,0x39,0x46,0x39,0x45,0x39,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x32,0x30,0x32,0x30,0x34,0x55,0x2c,0x30,0x78,0x38,0x31,0x37,0x46,0x37, - 0x46,0x46,0x45,0x55,0x2c,0x0a,0x30,0x78,0x46,0x30,0x35,0x30,0x35,0x30,0x41,0x30,0x55,0x2c,0x30,0x78,0x34,0x34,0x33,0x43,0x33,0x43,0x37,0x38,0x55,0x2c,0x30,0x78, - 0x42,0x41,0x39,0x46,0x39,0x46,0x32,0x35,0x55,0x2c,0x30,0x78,0x45,0x33,0x41,0x38,0x41,0x38,0x34,0x42,0x55,0x2c,0x0a,0x30,0x78,0x46,0x33,0x35,0x31,0x35,0x31,0x41, - 0x32,0x55,0x2c,0x30,0x78,0x46,0x45,0x41,0x33,0x41,0x33,0x35,0x44,0x55,0x2c,0x30,0x78,0x43,0x30,0x34,0x30,0x34,0x30,0x38,0x30,0x55,0x2c,0x30,0x78,0x38,0x41,0x38, - 0x46,0x38,0x46,0x30,0x35,0x55,0x2c,0x0a,0x30,0x78,0x41,0x44,0x39,0x32,0x39,0x32,0x33,0x46,0x55,0x2c,0x30,0x78,0x42,0x43,0x39,0x44,0x39,0x44,0x32,0x31,0x55,0x2c, - 0x30,0x78,0x34,0x38,0x33,0x38,0x33,0x38,0x37,0x30,0x55,0x2c,0x30,0x78,0x30,0x34,0x46,0x35,0x46,0x35,0x46,0x31,0x55,0x2c,0x0a,0x30,0x78,0x44,0x46,0x42,0x43,0x42, - 0x43,0x36,0x33,0x55,0x2c,0x30,0x78,0x43,0x31,0x42,0x36,0x42,0x36,0x37,0x37,0x55,0x2c,0x30,0x78,0x37,0x35,0x44,0x41,0x44,0x41,0x41,0x46,0x55,0x2c,0x30,0x78,0x36, - 0x33,0x32,0x31,0x32,0x31,0x34,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x31,0x30,0x31,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x31,0x41,0x46,0x46,0x46,0x46,0x45,0x35, - 0x55,0x2c,0x30,0x78,0x30,0x45,0x46,0x33,0x46,0x33,0x46,0x44,0x55,0x2c,0x30,0x78,0x36,0x44,0x44,0x32,0x44,0x32,0x42,0x46,0x55,0x2c,0x0a,0x30,0x78,0x34,0x43,0x43, - 0x44,0x43,0x44,0x38,0x31,0x55,0x2c,0x30,0x78,0x31,0x34,0x30,0x43,0x30,0x43,0x31,0x38,0x55,0x2c,0x30,0x78,0x33,0x35,0x31,0x33,0x31,0x33,0x32,0x36,0x55,0x2c,0x30, - 0x78,0x32,0x46,0x45,0x43,0x45,0x43,0x43,0x33,0x55,0x2c,0x0a,0x30,0x78,0x45,0x31,0x35,0x46,0x35,0x46,0x42,0x45,0x55,0x2c,0x30,0x78,0x41,0x32,0x39,0x37,0x39,0x37, - 0x33,0x35,0x55,0x2c,0x30,0x78,0x43,0x43,0x34,0x34,0x34,0x34,0x38,0x38,0x55,0x2c,0x30,0x78,0x33,0x39,0x31,0x37,0x31,0x37,0x32,0x45,0x55,0x2c,0x0a,0x30,0x78,0x35, - 0x37,0x43,0x34,0x43,0x34,0x39,0x33,0x55,0x2c,0x30,0x78,0x46,0x32,0x41,0x37,0x41,0x37,0x35,0x35,0x55,0x2c,0x30,0x78,0x38,0x32,0x37,0x45,0x37,0x45,0x46,0x43,0x55, - 0x2c,0x30,0x78,0x34,0x37,0x33,0x44,0x33,0x44,0x37,0x41,0x55,0x2c,0x0a,0x30,0x78,0x41,0x43,0x36,0x34,0x36,0x34,0x43,0x38,0x55,0x2c,0x30,0x78,0x45,0x37,0x35,0x44, - 0x35,0x44,0x42,0x41,0x55,0x2c,0x30,0x78,0x32,0x42,0x31,0x39,0x31,0x39,0x33,0x32,0x55,0x2c,0x30,0x78,0x39,0x35,0x37,0x33,0x37,0x33,0x45,0x36,0x55,0x2c,0x0a,0x30, - 0x78,0x41,0x30,0x36,0x30,0x36,0x30,0x43,0x30,0x55,0x2c,0x30,0x78,0x39,0x38,0x38,0x31,0x38,0x31,0x31,0x39,0x55,0x2c,0x30,0x78,0x44,0x31,0x34,0x46,0x34,0x46,0x39, - 0x45,0x55,0x2c,0x30,0x78,0x37,0x46,0x44,0x43,0x44,0x43,0x41,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x36,0x32,0x32,0x32,0x32,0x34,0x34,0x55,0x2c,0x30,0x78,0x37,0x45, - 0x32,0x41,0x32,0x41,0x35,0x34,0x55,0x2c,0x30,0x78,0x41,0x42,0x39,0x30,0x39,0x30,0x33,0x42,0x55,0x2c,0x30,0x78,0x38,0x33,0x38,0x38,0x38,0x38,0x30,0x42,0x55,0x2c, - 0x0a,0x30,0x78,0x43,0x41,0x34,0x36,0x34,0x36,0x38,0x43,0x55,0x2c,0x30,0x78,0x32,0x39,0x45,0x45,0x45,0x45,0x43,0x37,0x55,0x2c,0x30,0x78,0x44,0x33,0x42,0x38,0x42, - 0x38,0x36,0x42,0x55,0x2c,0x30,0x78,0x33,0x43,0x31,0x34,0x31,0x34,0x32,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x39,0x44,0x45,0x44,0x45,0x41,0x37,0x55,0x2c,0x30,0x78, - 0x45,0x32,0x35,0x45,0x35,0x45,0x42,0x43,0x55,0x2c,0x30,0x78,0x31,0x44,0x30,0x42,0x30,0x42,0x31,0x36,0x55,0x2c,0x30,0x78,0x37,0x36,0x44,0x42,0x44,0x42,0x41,0x44, - 0x55,0x2c,0x0a,0x30,0x78,0x33,0x42,0x45,0x30,0x45,0x30,0x44,0x42,0x55,0x2c,0x30,0x78,0x35,0x36,0x33,0x32,0x33,0x32,0x36,0x34,0x55,0x2c,0x30,0x78,0x34,0x45,0x33, - 0x41,0x33,0x41,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x45,0x30,0x41,0x30,0x41,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x44,0x42,0x34,0x39,0x34,0x39,0x39,0x32,0x55,0x2c, - 0x30,0x78,0x30,0x41,0x30,0x36,0x30,0x36,0x30,0x43,0x55,0x2c,0x30,0x78,0x36,0x43,0x32,0x34,0x32,0x34,0x34,0x38,0x55,0x2c,0x30,0x78,0x45,0x34,0x35,0x43,0x35,0x43, - 0x42,0x38,0x55,0x2c,0x0a,0x30,0x78,0x35,0x44,0x43,0x32,0x43,0x32,0x39,0x46,0x55,0x2c,0x30,0x78,0x36,0x45,0x44,0x33,0x44,0x33,0x42,0x44,0x55,0x2c,0x30,0x78,0x45, - 0x46,0x41,0x43,0x41,0x43,0x34,0x33,0x55,0x2c,0x30,0x78,0x41,0x36,0x36,0x32,0x36,0x32,0x43,0x34,0x55,0x2c,0x0a,0x30,0x78,0x41,0x38,0x39,0x31,0x39,0x31,0x33,0x39, - 0x55,0x2c,0x30,0x78,0x41,0x34,0x39,0x35,0x39,0x35,0x33,0x31,0x55,0x2c,0x30,0x78,0x33,0x37,0x45,0x34,0x45,0x34,0x44,0x33,0x55,0x2c,0x30,0x78,0x38,0x42,0x37,0x39, - 0x37,0x39,0x46,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x32,0x45,0x37,0x45,0x37,0x44,0x35,0x55,0x2c,0x30,0x78,0x34,0x33,0x43,0x38,0x43,0x38,0x38,0x42,0x55,0x2c,0x30, - 0x78,0x35,0x39,0x33,0x37,0x33,0x37,0x36,0x45,0x55,0x2c,0x30,0x78,0x42,0x37,0x36,0x44,0x36,0x44,0x44,0x41,0x55,0x2c,0x0a,0x30,0x78,0x38,0x43,0x38,0x44,0x38,0x44, - 0x30,0x31,0x55,0x2c,0x30,0x78,0x36,0x34,0x44,0x35,0x44,0x35,0x42,0x31,0x55,0x2c,0x30,0x78,0x44,0x32,0x34,0x45,0x34,0x45,0x39,0x43,0x55,0x2c,0x30,0x78,0x45,0x30, - 0x41,0x39,0x41,0x39,0x34,0x39,0x55,0x2c,0x0a,0x30,0x78,0x42,0x34,0x36,0x43,0x36,0x43,0x44,0x38,0x55,0x2c,0x30,0x78,0x46,0x41,0x35,0x36,0x35,0x36,0x41,0x43,0x55, - 0x2c,0x30,0x78,0x30,0x37,0x46,0x34,0x46,0x34,0x46,0x33,0x55,0x2c,0x30,0x78,0x32,0x35,0x45,0x41,0x45,0x41,0x43,0x46,0x55,0x2c,0x0a,0x30,0x78,0x41,0x46,0x36,0x35, - 0x36,0x35,0x43,0x41,0x55,0x2c,0x30,0x78,0x38,0x45,0x37,0x41,0x37,0x41,0x46,0x34,0x55,0x2c,0x30,0x78,0x45,0x39,0x41,0x45,0x41,0x45,0x34,0x37,0x55,0x2c,0x30,0x78, - 0x31,0x38,0x30,0x38,0x30,0x38,0x31,0x30,0x55,0x2c,0x0a,0x30,0x78,0x44,0x35,0x42,0x41,0x42,0x41,0x36,0x46,0x55,0x2c,0x30,0x78,0x38,0x38,0x37,0x38,0x37,0x38,0x46, - 0x30,0x55,0x2c,0x30,0x78,0x36,0x46,0x32,0x35,0x32,0x35,0x34,0x41,0x55,0x2c,0x30,0x78,0x37,0x32,0x32,0x45,0x32,0x45,0x35,0x43,0x55,0x2c,0x0a,0x30,0x78,0x32,0x34, - 0x31,0x43,0x31,0x43,0x33,0x38,0x55,0x2c,0x30,0x78,0x46,0x31,0x41,0x36,0x41,0x36,0x35,0x37,0x55,0x2c,0x30,0x78,0x43,0x37,0x42,0x34,0x42,0x34,0x37,0x33,0x55,0x2c, - 0x30,0x78,0x35,0x31,0x43,0x36,0x43,0x36,0x39,0x37,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x45,0x38,0x45,0x38,0x43,0x42,0x55,0x2c,0x30,0x78,0x37,0x43,0x44,0x44,0x44, - 0x44,0x41,0x31,0x55,0x2c,0x30,0x78,0x39,0x43,0x37,0x34,0x37,0x34,0x45,0x38,0x55,0x2c,0x30,0x78,0x32,0x31,0x31,0x46,0x31,0x46,0x33,0x45,0x55,0x2c,0x0a,0x30,0x78, - 0x44,0x44,0x34,0x42,0x34,0x42,0x39,0x36,0x55,0x2c,0x30,0x78,0x44,0x43,0x42,0x44,0x42,0x44,0x36,0x31,0x55,0x2c,0x30,0x78,0x38,0x36,0x38,0x42,0x38,0x42,0x30,0x44, - 0x55,0x2c,0x30,0x78,0x38,0x35,0x38,0x41,0x38,0x41,0x30,0x46,0x55,0x2c,0x0a,0x30,0x78,0x39,0x30,0x37,0x30,0x37,0x30,0x45,0x30,0x55,0x2c,0x30,0x78,0x34,0x32,0x33, - 0x45,0x33,0x45,0x37,0x43,0x55,0x2c,0x30,0x78,0x43,0x34,0x42,0x35,0x42,0x35,0x37,0x31,0x55,0x2c,0x30,0x78,0x41,0x41,0x36,0x36,0x36,0x36,0x43,0x43,0x55,0x2c,0x0a, - 0x30,0x78,0x44,0x38,0x34,0x38,0x34,0x38,0x39,0x30,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x33,0x30,0x33,0x30,0x36,0x55,0x2c,0x30,0x78,0x30,0x31,0x46,0x36,0x46,0x36, - 0x46,0x37,0x55,0x2c,0x30,0x78,0x31,0x32,0x30,0x45,0x30,0x45,0x31,0x43,0x55,0x2c,0x0a,0x30,0x78,0x41,0x33,0x36,0x31,0x36,0x31,0x43,0x32,0x55,0x2c,0x30,0x78,0x35, - 0x46,0x33,0x35,0x33,0x35,0x36,0x41,0x55,0x2c,0x30,0x78,0x46,0x39,0x35,0x37,0x35,0x37,0x41,0x45,0x55,0x2c,0x30,0x78,0x44,0x30,0x42,0x39,0x42,0x39,0x36,0x39,0x55, - 0x2c,0x0a,0x30,0x78,0x39,0x31,0x38,0x36,0x38,0x36,0x31,0x37,0x55,0x2c,0x30,0x78,0x35,0x38,0x43,0x31,0x43,0x31,0x39,0x39,0x55,0x2c,0x30,0x78,0x32,0x37,0x31,0x44, - 0x31,0x44,0x33,0x41,0x55,0x2c,0x30,0x78,0x42,0x39,0x39,0x45,0x39,0x45,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x38,0x45,0x31,0x45,0x31,0x44,0x39,0x55,0x2c,0x30, - 0x78,0x31,0x33,0x46,0x38,0x46,0x38,0x45,0x42,0x55,0x2c,0x30,0x78,0x42,0x33,0x39,0x38,0x39,0x38,0x32,0x42,0x55,0x2c,0x30,0x78,0x33,0x33,0x31,0x31,0x31,0x31,0x32, - 0x32,0x55,0x2c,0x0a,0x30,0x78,0x42,0x42,0x36,0x39,0x36,0x39,0x44,0x32,0x55,0x2c,0x30,0x78,0x37,0x30,0x44,0x39,0x44,0x39,0x41,0x39,0x55,0x2c,0x30,0x78,0x38,0x39, - 0x38,0x45,0x38,0x45,0x30,0x37,0x55,0x2c,0x30,0x78,0x41,0x37,0x39,0x34,0x39,0x34,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x42,0x36,0x39,0x42,0x39,0x42,0x32,0x44,0x55, - 0x2c,0x30,0x78,0x32,0x32,0x31,0x45,0x31,0x45,0x33,0x43,0x55,0x2c,0x30,0x78,0x39,0x32,0x38,0x37,0x38,0x37,0x31,0x35,0x55,0x2c,0x30,0x78,0x32,0x30,0x45,0x39,0x45, - 0x39,0x43,0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x43,0x45,0x43,0x45,0x38,0x37,0x55,0x2c,0x30,0x78,0x46,0x46,0x35,0x35,0x35,0x35,0x41,0x41,0x55,0x2c,0x30,0x78, - 0x37,0x38,0x32,0x38,0x32,0x38,0x35,0x30,0x55,0x2c,0x30,0x78,0x37,0x41,0x44,0x46,0x44,0x46,0x41,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x46,0x38,0x43,0x38,0x43,0x30, - 0x33,0x55,0x2c,0x30,0x78,0x46,0x38,0x41,0x31,0x41,0x31,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x30,0x38,0x39,0x38,0x39,0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x37,0x30, - 0x44,0x30,0x44,0x31,0x41,0x55,0x2c,0x0a,0x30,0x78,0x44,0x41,0x42,0x46,0x42,0x46,0x36,0x35,0x55,0x2c,0x30,0x78,0x33,0x31,0x45,0x36,0x45,0x36,0x44,0x37,0x55,0x2c, - 0x30,0x78,0x43,0x36,0x34,0x32,0x34,0x32,0x38,0x34,0x55,0x2c,0x30,0x78,0x42,0x38,0x36,0x38,0x36,0x38,0x44,0x30,0x55,0x2c,0x0a,0x30,0x78,0x43,0x33,0x34,0x31,0x34, - 0x31,0x38,0x32,0x55,0x2c,0x30,0x78,0x42,0x30,0x39,0x39,0x39,0x39,0x32,0x39,0x55,0x2c,0x30,0x78,0x37,0x37,0x32,0x44,0x32,0x44,0x35,0x41,0x55,0x2c,0x30,0x78,0x31, - 0x31,0x30,0x46,0x30,0x46,0x31,0x45,0x55,0x2c,0x0a,0x30,0x78,0x43,0x42,0x42,0x30,0x42,0x30,0x37,0x42,0x55,0x2c,0x30,0x78,0x46,0x43,0x35,0x34,0x35,0x34,0x41,0x38, - 0x55,0x2c,0x30,0x78,0x44,0x36,0x42,0x42,0x42,0x42,0x36,0x44,0x55,0x2c,0x30,0x78,0x33,0x41,0x31,0x36,0x31,0x36,0x32,0x43,0x55,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x42,0x59,0x54,0x45,0x28,0x78,0x2c,0x20,0x79,0x29,0x20,0x28,0x61,0x6d,0x64,0x5f,0x62,0x66,0x65,0x28,0x28,0x78,0x29,0x2c,0x20,0x28,0x79, - 0x29,0x20,0x3c,0x3c,0x20,0x33,0x55,0x2c,0x20,0x38,0x55,0x29,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f, - 0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x41,0x45,0x53,0x5f, - 0x52,0x6f,0x75,0x6e,0x64,0x5f,0x62,0x69,0x74,0x74,0x75,0x62,0x65,0x32,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x20,0x2a,0x41,0x45,0x53,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x31, - 0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x78,0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x6b,0x29,0x0a,0x7b,0x0a,0x78,0x3d,0x7e,0x78,0x3b,0x0a,0x6b,0x2e,0x73,0x30,0x20,0x5e, - 0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78, - 0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x32,0x29, - 0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x78,0x2e,0x73,0x30,0x20, - 0x5e,0x3d,0x20,0x6b,0x2e,0x73,0x30,0x3b,0x0a,0x6b,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c, - 0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45, - 0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c, - 0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x78,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x6b,0x2e,0x73,0x31,0x3b,0x0a,0x6b,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20, - 0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73, - 0x33,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e, - 0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x78,0x2e,0x73,0x32,0x20,0x5e,0x3d, - 0x20,0x6b,0x2e,0x73,0x32,0x3b,0x0a,0x6b,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x30,0x29, - 0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30, - 0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x33,0x29, - 0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6b,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x34, - 0x20,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41, - 0x45,0x53,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x31,0x2c,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x32,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f, - 0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x33,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x58,0x2c,0x75,0x69,0x6e, - 0x74,0x34,0x20,0x6b,0x65,0x79,0x29,0x0a,0x7b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e, - 0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42, - 0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x3b, - 0x0a,0x6b,0x65,0x79,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45, - 0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c, - 0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x32,0x20,0x5e, - 0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58, - 0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b, - 0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59, - 0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x41, - 0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32, - 0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6b,0x65,0x79,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x41,0x45,0x53,0x5f,0x52,0x6f, - 0x75,0x6e,0x64,0x5f,0x54,0x77,0x6f,0x5f,0x54,0x61,0x62,0x6c,0x65,0x73,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x20,0x2a,0x41,0x45,0x53,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x31, - 0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x58,0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x6b,0x65,0x79,0x29,0x0a,0x7b,0x0a,0x6b,0x65,0x79,0x2e, - 0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59, - 0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73, - 0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x6b, - 0x65,0x79,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31, - 0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28, - 0x58,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29, - 0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41, - 0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59, - 0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x2c,0x31, - 0x36,0x55,0x29,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x30,0x29, - 0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30, - 0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x33,0x29, - 0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6b,0x65,0x79,0x3b,0x0a,0x7d,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x72,0x63,0x6f,0x6e,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x30,0x78, - 0x38,0x64,0x2c,0x30,0x78,0x30,0x31,0x2c,0x30,0x78,0x30,0x32,0x2c,0x30,0x78,0x30,0x34,0x2c,0x30,0x78,0x30,0x38,0x2c,0x30,0x78,0x31,0x30,0x2c,0x30,0x78,0x32,0x30, - 0x2c,0x30,0x78,0x34,0x30,0x20,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74, - 0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x73,0x62,0x6f,0x78,0x5b,0x32,0x35,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x36,0x33,0x2c,0x30,0x78,0x37,0x43,0x2c,0x30, - 0x78,0x37,0x37,0x2c,0x30,0x78,0x37,0x42,0x2c,0x30,0x78,0x46,0x32,0x2c,0x30,0x78,0x36,0x42,0x2c,0x30,0x78,0x36,0x46,0x2c,0x30,0x78,0x43,0x35,0x2c,0x30,0x78,0x33, - 0x30,0x2c,0x30,0x78,0x30,0x31,0x2c,0x30,0x78,0x36,0x37,0x2c,0x30,0x78,0x32,0x42,0x2c,0x30,0x78,0x46,0x45,0x2c,0x30,0x78,0x44,0x37,0x2c,0x30,0x78,0x41,0x42,0x2c, - 0x30,0x78,0x37,0x36,0x2c,0x0a,0x30,0x78,0x43,0x41,0x2c,0x30,0x78,0x38,0x32,0x2c,0x30,0x78,0x43,0x39,0x2c,0x30,0x78,0x37,0x44,0x2c,0x30,0x78,0x46,0x41,0x2c,0x30, - 0x78,0x35,0x39,0x2c,0x30,0x78,0x34,0x37,0x2c,0x30,0x78,0x46,0x30,0x2c,0x30,0x78,0x41,0x44,0x2c,0x30,0x78,0x44,0x34,0x2c,0x30,0x78,0x41,0x32,0x2c,0x30,0x78,0x41, - 0x46,0x2c,0x30,0x78,0x39,0x43,0x2c,0x30,0x78,0x41,0x34,0x2c,0x30,0x78,0x37,0x32,0x2c,0x30,0x78,0x43,0x30,0x2c,0x0a,0x30,0x78,0x42,0x37,0x2c,0x30,0x78,0x46,0x44, - 0x2c,0x30,0x78,0x39,0x33,0x2c,0x30,0x78,0x32,0x36,0x2c,0x30,0x78,0x33,0x36,0x2c,0x30,0x78,0x33,0x46,0x2c,0x30,0x78,0x46,0x37,0x2c,0x30,0x78,0x43,0x43,0x2c,0x30, - 0x78,0x33,0x34,0x2c,0x30,0x78,0x41,0x35,0x2c,0x30,0x78,0x45,0x35,0x2c,0x30,0x78,0x46,0x31,0x2c,0x30,0x78,0x37,0x31,0x2c,0x30,0x78,0x44,0x38,0x2c,0x30,0x78,0x33, - 0x31,0x2c,0x30,0x78,0x31,0x35,0x2c,0x0a,0x30,0x78,0x30,0x34,0x2c,0x30,0x78,0x43,0x37,0x2c,0x30,0x78,0x32,0x33,0x2c,0x30,0x78,0x43,0x33,0x2c,0x30,0x78,0x31,0x38, - 0x2c,0x30,0x78,0x39,0x36,0x2c,0x30,0x78,0x30,0x35,0x2c,0x30,0x78,0x39,0x41,0x2c,0x30,0x78,0x30,0x37,0x2c,0x30,0x78,0x31,0x32,0x2c,0x30,0x78,0x38,0x30,0x2c,0x30, - 0x78,0x45,0x32,0x2c,0x30,0x78,0x45,0x42,0x2c,0x30,0x78,0x32,0x37,0x2c,0x30,0x78,0x42,0x32,0x2c,0x30,0x78,0x37,0x35,0x2c,0x0a,0x30,0x78,0x30,0x39,0x2c,0x30,0x78, - 0x38,0x33,0x2c,0x30,0x78,0x32,0x43,0x2c,0x30,0x78,0x31,0x41,0x2c,0x30,0x78,0x31,0x42,0x2c,0x30,0x78,0x36,0x45,0x2c,0x30,0x78,0x35,0x41,0x2c,0x30,0x78,0x41,0x30, - 0x2c,0x30,0x78,0x35,0x32,0x2c,0x30,0x78,0x33,0x42,0x2c,0x30,0x78,0x44,0x36,0x2c,0x30,0x78,0x42,0x33,0x2c,0x30,0x78,0x32,0x39,0x2c,0x30,0x78,0x45,0x33,0x2c,0x30, - 0x78,0x32,0x46,0x2c,0x30,0x78,0x38,0x34,0x2c,0x0a,0x30,0x78,0x35,0x33,0x2c,0x30,0x78,0x44,0x31,0x2c,0x30,0x78,0x30,0x30,0x2c,0x30,0x78,0x45,0x44,0x2c,0x30,0x78, - 0x32,0x30,0x2c,0x30,0x78,0x46,0x43,0x2c,0x30,0x78,0x42,0x31,0x2c,0x30,0x78,0x35,0x42,0x2c,0x30,0x78,0x36,0x41,0x2c,0x30,0x78,0x43,0x42,0x2c,0x30,0x78,0x42,0x45, - 0x2c,0x30,0x78,0x33,0x39,0x2c,0x30,0x78,0x34,0x41,0x2c,0x30,0x78,0x34,0x43,0x2c,0x30,0x78,0x35,0x38,0x2c,0x30,0x78,0x43,0x46,0x2c,0x0a,0x30,0x78,0x44,0x30,0x2c, - 0x30,0x78,0x45,0x46,0x2c,0x30,0x78,0x41,0x41,0x2c,0x30,0x78,0x46,0x42,0x2c,0x30,0x78,0x34,0x33,0x2c,0x30,0x78,0x34,0x44,0x2c,0x30,0x78,0x33,0x33,0x2c,0x30,0x78, - 0x38,0x35,0x2c,0x30,0x78,0x34,0x35,0x2c,0x30,0x78,0x46,0x39,0x2c,0x30,0x78,0x30,0x32,0x2c,0x30,0x78,0x37,0x46,0x2c,0x30,0x78,0x35,0x30,0x2c,0x30,0x78,0x33,0x43, - 0x2c,0x30,0x78,0x39,0x46,0x2c,0x30,0x78,0x41,0x38,0x2c,0x0a,0x30,0x78,0x35,0x31,0x2c,0x30,0x78,0x41,0x33,0x2c,0x30,0x78,0x34,0x30,0x2c,0x30,0x78,0x38,0x46,0x2c, - 0x30,0x78,0x39,0x32,0x2c,0x30,0x78,0x39,0x44,0x2c,0x30,0x78,0x33,0x38,0x2c,0x30,0x78,0x46,0x35,0x2c,0x30,0x78,0x42,0x43,0x2c,0x30,0x78,0x42,0x36,0x2c,0x30,0x78, - 0x44,0x41,0x2c,0x30,0x78,0x32,0x31,0x2c,0x30,0x78,0x31,0x30,0x2c,0x30,0x78,0x46,0x46,0x2c,0x30,0x78,0x46,0x33,0x2c,0x30,0x78,0x44,0x32,0x2c,0x0a,0x30,0x78,0x43, - 0x44,0x2c,0x30,0x78,0x30,0x43,0x2c,0x30,0x78,0x31,0x33,0x2c,0x30,0x78,0x45,0x43,0x2c,0x30,0x78,0x35,0x46,0x2c,0x30,0x78,0x39,0x37,0x2c,0x30,0x78,0x34,0x34,0x2c, - 0x30,0x78,0x31,0x37,0x2c,0x30,0x78,0x43,0x34,0x2c,0x30,0x78,0x41,0x37,0x2c,0x30,0x78,0x37,0x45,0x2c,0x30,0x78,0x33,0x44,0x2c,0x30,0x78,0x36,0x34,0x2c,0x30,0x78, - 0x35,0x44,0x2c,0x30,0x78,0x31,0x39,0x2c,0x30,0x78,0x37,0x33,0x2c,0x0a,0x30,0x78,0x36,0x30,0x2c,0x30,0x78,0x38,0x31,0x2c,0x30,0x78,0x34,0x46,0x2c,0x30,0x78,0x44, - 0x43,0x2c,0x30,0x78,0x32,0x32,0x2c,0x30,0x78,0x32,0x41,0x2c,0x30,0x78,0x39,0x30,0x2c,0x30,0x78,0x38,0x38,0x2c,0x30,0x78,0x34,0x36,0x2c,0x30,0x78,0x45,0x45,0x2c, - 0x30,0x78,0x42,0x38,0x2c,0x30,0x78,0x31,0x34,0x2c,0x30,0x78,0x44,0x45,0x2c,0x30,0x78,0x35,0x45,0x2c,0x30,0x78,0x30,0x42,0x2c,0x30,0x78,0x44,0x42,0x2c,0x0a,0x30, - 0x78,0x45,0x30,0x2c,0x30,0x78,0x33,0x32,0x2c,0x30,0x78,0x33,0x41,0x2c,0x30,0x78,0x30,0x41,0x2c,0x30,0x78,0x34,0x39,0x2c,0x30,0x78,0x30,0x36,0x2c,0x30,0x78,0x32, - 0x34,0x2c,0x30,0x78,0x35,0x43,0x2c,0x30,0x78,0x43,0x32,0x2c,0x30,0x78,0x44,0x33,0x2c,0x30,0x78,0x41,0x43,0x2c,0x30,0x78,0x36,0x32,0x2c,0x30,0x78,0x39,0x31,0x2c, - 0x30,0x78,0x39,0x35,0x2c,0x30,0x78,0x45,0x34,0x2c,0x30,0x78,0x37,0x39,0x2c,0x0a,0x30,0x78,0x45,0x37,0x2c,0x30,0x78,0x43,0x38,0x2c,0x30,0x78,0x33,0x37,0x2c,0x30, - 0x78,0x36,0x44,0x2c,0x30,0x78,0x38,0x44,0x2c,0x30,0x78,0x44,0x35,0x2c,0x30,0x78,0x34,0x45,0x2c,0x30,0x78,0x41,0x39,0x2c,0x30,0x78,0x36,0x43,0x2c,0x30,0x78,0x35, - 0x36,0x2c,0x30,0x78,0x46,0x34,0x2c,0x30,0x78,0x45,0x41,0x2c,0x30,0x78,0x36,0x35,0x2c,0x30,0x78,0x37,0x41,0x2c,0x30,0x78,0x41,0x45,0x2c,0x30,0x78,0x30,0x38,0x2c, - 0x0a,0x30,0x78,0x42,0x41,0x2c,0x30,0x78,0x37,0x38,0x2c,0x30,0x78,0x32,0x35,0x2c,0x30,0x78,0x32,0x45,0x2c,0x30,0x78,0x31,0x43,0x2c,0x30,0x78,0x41,0x36,0x2c,0x30, - 0x78,0x42,0x34,0x2c,0x30,0x78,0x43,0x36,0x2c,0x30,0x78,0x45,0x38,0x2c,0x30,0x78,0x44,0x44,0x2c,0x30,0x78,0x37,0x34,0x2c,0x30,0x78,0x31,0x46,0x2c,0x30,0x78,0x34, - 0x42,0x2c,0x30,0x78,0x42,0x44,0x2c,0x30,0x78,0x38,0x42,0x2c,0x30,0x78,0x38,0x41,0x2c,0x0a,0x30,0x78,0x37,0x30,0x2c,0x30,0x78,0x33,0x45,0x2c,0x30,0x78,0x42,0x35, - 0x2c,0x30,0x78,0x36,0x36,0x2c,0x30,0x78,0x34,0x38,0x2c,0x30,0x78,0x30,0x33,0x2c,0x30,0x78,0x46,0x36,0x2c,0x30,0x78,0x30,0x45,0x2c,0x30,0x78,0x36,0x31,0x2c,0x30, - 0x78,0x33,0x35,0x2c,0x30,0x78,0x35,0x37,0x2c,0x30,0x78,0x42,0x39,0x2c,0x30,0x78,0x38,0x36,0x2c,0x30,0x78,0x43,0x31,0x2c,0x30,0x78,0x31,0x44,0x2c,0x30,0x78,0x39, - 0x45,0x2c,0x0a,0x30,0x78,0x45,0x31,0x2c,0x30,0x78,0x46,0x38,0x2c,0x30,0x78,0x39,0x38,0x2c,0x30,0x78,0x31,0x31,0x2c,0x30,0x78,0x36,0x39,0x2c,0x30,0x78,0x44,0x39, - 0x2c,0x30,0x78,0x38,0x45,0x2c,0x30,0x78,0x39,0x34,0x2c,0x30,0x78,0x39,0x42,0x2c,0x30,0x78,0x31,0x45,0x2c,0x30,0x78,0x38,0x37,0x2c,0x30,0x78,0x45,0x39,0x2c,0x30, - 0x78,0x43,0x45,0x2c,0x30,0x78,0x35,0x35,0x2c,0x30,0x78,0x32,0x38,0x2c,0x30,0x78,0x44,0x46,0x2c,0x0a,0x30,0x78,0x38,0x43,0x2c,0x30,0x78,0x41,0x31,0x2c,0x30,0x78, - 0x38,0x39,0x2c,0x30,0x78,0x30,0x44,0x2c,0x30,0x78,0x42,0x46,0x2c,0x30,0x78,0x45,0x36,0x2c,0x30,0x78,0x34,0x32,0x2c,0x30,0x78,0x36,0x38,0x2c,0x30,0x78,0x34,0x31, - 0x2c,0x30,0x78,0x39,0x39,0x2c,0x30,0x78,0x32,0x44,0x2c,0x30,0x78,0x30,0x46,0x2c,0x30,0x78,0x42,0x30,0x2c,0x30,0x78,0x35,0x34,0x2c,0x30,0x78,0x42,0x42,0x2c,0x30, - 0x78,0x31,0x36,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x75,0x62,0x57,0x6f,0x72,0x64,0x28,0x69,0x6e,0x77,0x29,0x20,0x28,0x28,0x73,0x62, - 0x6f,0x78,0x5b,0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x33,0x29,0x5d,0x20,0x3c,0x3c,0x20,0x32,0x34,0x29,0x20,0x7c,0x20,0x28,0x73,0x62,0x6f,0x78,0x5b, - 0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x32,0x29,0x5d,0x20,0x3c,0x3c,0x20,0x31,0x36,0x29,0x20,0x7c,0x20,0x28,0x73,0x62,0x6f,0x78,0x5b,0x42,0x59,0x54, - 0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x31,0x29,0x5d,0x20,0x3c,0x3c,0x20,0x38,0x29,0x20,0x7c,0x20,0x73,0x62,0x6f,0x78,0x5b,0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77, - 0x2c,0x20,0x30,0x29,0x5d,0x29,0x0a,0x76,0x6f,0x69,0x64,0x20,0x41,0x45,0x53,0x45,0x78,0x70,0x61,0x6e,0x64,0x4b,0x65,0x79,0x32,0x35,0x36,0x28,0x75,0x69,0x6e,0x74, - 0x20,0x2a,0x6b,0x65,0x79,0x62,0x75,0x66,0x29,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x63,0x3d,0x38,0x2c,0x69,0x3d,0x31,0x3b,0x20,0x63, - 0x3c,0x34,0x30,0x3b,0x20,0x2b,0x2b,0x63,0x29,0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x74,0x3d,0x28,0x28,0x21,0x28,0x63,0x26,0x37,0x29,0x29,0x7c,0x7c,0x28,0x28, - 0x63,0x26,0x37,0x29,0x3d,0x3d,0x34,0x29,0x29,0x3f,0x53,0x75,0x62,0x57,0x6f,0x72,0x64,0x28,0x6b,0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x2d,0x31,0x5d,0x29,0x3a,0x6b, - 0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x2d,0x31,0x5d,0x3b,0x0a,0x6b,0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x5d,0x3d,0x6b,0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x2d,0x38, - 0x5d,0x5e,0x28,0x28,0x21,0x28,0x63,0x26,0x37,0x29,0x29,0x3f,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x2c,0x32,0x34,0x55,0x29,0x5e,0x61,0x73,0x5f,0x75,0x69,0x6e, - 0x74,0x28,0x28,0x75,0x63,0x68,0x61,0x72,0x34,0x29,0x28,0x72,0x63,0x6f,0x6e,0x5b,0x69,0x2b,0x2b,0x5d,0x2c,0x30,0x55,0x2c,0x30,0x55,0x2c,0x30,0x55,0x29,0x29,0x3a, - 0x74,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20,0x57,0x4f,0x4c,0x46,0x5f,0x53,0x4b,0x45,0x49, - 0x4e,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x4f,0x4c,0x46,0x5f,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x43,0x4c,0x0a,0x23,0x69,0x66,0x64,0x65, - 0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69, - 0x66,0x64,0x65,0x66,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54, - 0x41,0x54,0x49,0x43,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x4f,0x50,0x45,0x4e,0x43,0x4c,0x20,0x45,0x58,0x54,0x45,0x4e, - 0x53,0x49,0x4f,0x4e,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x20,0x3a,0x20,0x65,0x6e,0x61,0x62,0x6c,0x65,0x0a,0x23, - 0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x32, - 0x20,0x61,0x6d,0x64,0x5f,0x62,0x69,0x74,0x61,0x6c,0x69,0x67,0x6e,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x73,0x72,0x63,0x30,0x2c,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x73,0x72,0x63,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x32,0x29, - 0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74,0x2e,0x73,0x30,0x3d,0x28,0x75,0x69,0x6e,0x74, - 0x29,0x20,0x28,0x28,0x28,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x73,0x72,0x63,0x30,0x2e,0x73,0x30,0x29,0x3c,0x3c,0x33,0x32,0x29,0x7c,0x28,0x6c,0x6f,0x6e,0x67,0x29, - 0x73,0x72,0x63,0x31,0x2e,0x73,0x30,0x29,0x3e,0x3e,0x28,0x73,0x72,0x63,0x32,0x29,0x29,0x3b,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74,0x2e,0x73,0x31,0x3d,0x28,0x75,0x69, - 0x6e,0x74,0x29,0x20,0x28,0x28,0x28,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x73,0x72,0x63,0x30,0x2e,0x73,0x31,0x29,0x3c,0x3c,0x33,0x32,0x29,0x7c,0x28,0x6c,0x6f,0x6e, - 0x67,0x29,0x73,0x72,0x63,0x31,0x2e,0x73,0x31,0x29,0x3e,0x3e,0x28,0x73,0x72,0x63,0x32,0x29,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x72,0x65,0x73,0x75, - 0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x4b,0x53,0x5f,0x50,0x41, - 0x52,0x49,0x54,0x59,0x20,0x30,0x78,0x31,0x42,0x44,0x31,0x31,0x42,0x44,0x41,0x41,0x39,0x46,0x43,0x31,0x41,0x32,0x32,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x4b,0x45,0x49,0x4e,0x32,0x35,0x36,0x5f,0x49, - 0x56,0x5b,0x38,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x43,0x43,0x44,0x30,0x34,0x34,0x41,0x31,0x32,0x46,0x44,0x42,0x33,0x45,0x31,0x33,0x55,0x4c,0x2c,0x30,0x78, - 0x45,0x38,0x33,0x35,0x39,0x30,0x33,0x30,0x31,0x41,0x37,0x39,0x41,0x39,0x45,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x35,0x41,0x45,0x41,0x30,0x36,0x31,0x34,0x46, - 0x38,0x31,0x36,0x45,0x36,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x32,0x37,0x36,0x37,0x41,0x34,0x41,0x45,0x39,0x42,0x39,0x34,0x44,0x42,0x55,0x4c,0x2c,0x0a,0x30, - 0x78,0x45,0x43,0x30,0x36,0x30,0x32,0x35,0x45,0x37,0x34,0x44,0x44,0x37,0x36,0x38,0x33,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x41,0x34,0x33,0x36,0x43,0x44,0x43,0x34, - 0x37,0x34,0x36,0x32,0x35,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x33,0x36,0x46,0x42,0x41,0x46,0x39,0x33,0x39,0x33,0x41,0x44,0x31,0x38,0x35,0x55,0x4c,0x2c,0x30, - 0x78,0x33,0x45,0x45,0x44,0x42,0x41,0x31,0x38,0x33,0x33,0x45,0x44,0x46,0x43,0x31,0x33,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x4b,0x45,0x49,0x4e,0x35,0x31,0x32,0x5f,0x32,0x35, - 0x36,0x5f,0x49,0x56,0x5b,0x38,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x43,0x43,0x44,0x30,0x34,0x34,0x41,0x31,0x32,0x46,0x44,0x42,0x33,0x45,0x31,0x33,0x55,0x4c, - 0x2c,0x30,0x78,0x45,0x38,0x33,0x35,0x39,0x30,0x33,0x30,0x31,0x41,0x37,0x39,0x41,0x39,0x45,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x35,0x41,0x45,0x41,0x30,0x36, - 0x31,0x34,0x46,0x38,0x31,0x36,0x45,0x36,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x32,0x37,0x36,0x37,0x41,0x34,0x41,0x45,0x39,0x42,0x39,0x34,0x44,0x42,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x45,0x43,0x30,0x36,0x30,0x32,0x35,0x45,0x37,0x34,0x44,0x44,0x37,0x36,0x38,0x33,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x41,0x34,0x33,0x36,0x43, - 0x44,0x43,0x34,0x37,0x34,0x36,0x32,0x35,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x33,0x36,0x46,0x42,0x41,0x46,0x39,0x33,0x39,0x33,0x41,0x44,0x31,0x38,0x35,0x55, - 0x4c,0x2c,0x30,0x78,0x33,0x45,0x45,0x44,0x42,0x41,0x31,0x38,0x33,0x33,0x45,0x44,0x46,0x43,0x31,0x33,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f,0x4b,0x45,0x59,0x28,0x70,0x2c,0x20,0x73,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a, - 0x70,0x2b,0x3d,0x68,0x3b,0x20,0x5c,0x0a,0x70,0x2e,0x73,0x35,0x2b,0x3d,0x74,0x5b,0x73,0x20,0x25,0x20,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x70,0x2e,0x73,0x36,0x2b,0x3d, - 0x74,0x5b,0x28,0x73,0x2b,0x31,0x29,0x20,0x25,0x20,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x70,0x2e,0x73,0x37,0x2b,0x3d,0x73,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69, - 0x6c,0x65,0x28,0x30,0x29,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x32,0x20,0x78,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x79,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x79,0x3c,0x33,0x32,0x29,0x20,0x7b,0x0a,0x72, - 0x65,0x74,0x75,0x72,0x6e,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x6d,0x64,0x5f,0x62,0x69,0x74,0x61,0x6c,0x69,0x67,0x6e,0x28,0x78,0x2c,0x78,0x2e, - 0x73,0x31,0x30,0x2c,0x33,0x32,0x2d,0x79,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x28,0x61,0x73,0x5f, - 0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x6d,0x64,0x5f,0x62,0x69,0x74,0x61,0x6c,0x69,0x67,0x6e,0x28,0x78,0x2e,0x73,0x31,0x30,0x2c,0x78,0x2c,0x33,0x32,0x2d,0x28,0x79, - 0x2d,0x33,0x32,0x29,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x75,0x6c,0x6f,0x6e, - 0x67,0x34,0x20,0x2a,0x70,0x76,0x30,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x2a,0x70,0x76,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72, - 0x63,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x32, - 0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x33,0x29,0x0a,0x7b,0x0a,0x2a,0x70,0x76,0x30,0x2b,0x3d,0x2a,0x70,0x76,0x31,0x3b,0x0a,0x28, - 0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x30,0x3d,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76, - 0x31,0x29,0x2e,0x73,0x30,0x29,0x2c,0x72,0x63,0x30,0x29,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x31,0x3d,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54, - 0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x31,0x29,0x2c,0x72,0x63,0x31,0x29,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31, - 0x29,0x2e,0x73,0x32,0x3d,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73, - 0x32,0x29,0x2c,0x72,0x63,0x32,0x29,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x33,0x3d,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f, - 0x75,0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x33,0x29,0x2c,0x72,0x63,0x33,0x29,0x3b,0x0a,0x2a,0x70,0x76,0x31,0x20,0x5e,0x3d,0x20,0x2a, - 0x70,0x76,0x30,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x53,0x6b,0x65,0x69,0x6e,0x45,0x76,0x65,0x6e,0x52,0x6f,0x75,0x6e,0x64,0x28,0x75,0x6c,0x6f, - 0x6e,0x67,0x38,0x20,0x70,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67, - 0x20,0x2a,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x29,0x0a,0x7b,0x0a,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54, - 0x5f,0x4b,0x45,0x59,0x28,0x70,0x2c,0x73,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x70,0x76,0x30,0x3d,0x70,0x2e,0x65,0x76,0x65,0x6e,0x2c,0x70,0x76,0x31, - 0x3d,0x70,0x2e,0x6f,0x64,0x64,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x34,0x36,0x2c,0x33, - 0x36,0x2c,0x31,0x39,0x2c,0x33,0x37,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67, - 0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75, - 0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30, - 0x2c,0x26,0x70,0x76,0x31,0x2c,0x33,0x33,0x2c,0x32,0x37,0x2c,0x31,0x34,0x2c,0x34,0x32,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28, - 0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66, - 0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69, - 0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x31,0x37,0x2c,0x34,0x39,0x2c,0x33,0x36,0x2c,0x33,0x39,0x29,0x3b,0x0a,0x70,0x76, - 0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29, - 0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32, - 0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x34,0x34,0x2c,0x39,0x2c,0x35, - 0x34,0x2c,0x35,0x36,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x28,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x32,0x28,0x70,0x76,0x30,0x2c,0x70,0x76,0x31,0x2c,0x28, - 0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x31,0x2c,0x34,0x2c,0x32,0x2c,0x37,0x2c,0x33,0x2c,0x36,0x2c,0x30,0x2c,0x35,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x6c, - 0x6f,0x6e,0x67,0x38,0x20,0x53,0x6b,0x65,0x69,0x6e,0x4f,0x64,0x64,0x52,0x6f,0x75,0x6e,0x64,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x70,0x2c,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x20,0x73,0x29,0x0a,0x7b,0x0a,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f,0x4b,0x45,0x59,0x28,0x70,0x2c,0x73,0x29,0x3b, - 0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x70,0x76,0x30,0x3d,0x70,0x2e,0x65,0x76,0x65,0x6e,0x2c,0x70,0x76,0x31,0x3d,0x70,0x2e,0x6f,0x64,0x64,0x3b,0x0a,0x53,0x6b, - 0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x33,0x39,0x2c,0x33,0x30,0x2c,0x33,0x34,0x2c,0x32,0x34,0x29,0x3b,0x0a, - 0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30, - 0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33, - 0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x31,0x33,0x2c,0x35, - 0x30,0x2c,0x31,0x30,0x2c,0x31,0x37,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67, - 0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75, - 0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30, - 0x2c,0x26,0x70,0x76,0x31,0x2c,0x32,0x35,0x2c,0x32,0x39,0x2c,0x33,0x39,0x2c,0x34,0x33,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28, - 0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66, - 0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69, - 0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x38,0x2c,0x33,0x35,0x2c,0x35,0x36,0x2c,0x32,0x32,0x29,0x3b,0x0a,0x72,0x65,0x74, - 0x75,0x72,0x6e,0x28,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x32,0x28,0x70,0x76,0x30,0x2c,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x31,0x2c, - 0x34,0x2c,0x32,0x2c,0x37,0x2c,0x33,0x2c,0x36,0x2c,0x30,0x2c,0x35,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x53,0x6b,0x65,0x69,0x6e, - 0x35,0x31,0x32,0x42,0x6c,0x6f,0x63,0x6b,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x70,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x2c,0x75,0x6c,0x6f,0x6e,0x67, - 0x20,0x68,0x38,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x74,0x29,0x0a,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e, - 0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x70, - 0x3d,0x53,0x6b,0x65,0x69,0x6e,0x45,0x76,0x65,0x6e,0x52,0x6f,0x75,0x6e,0x64,0x28,0x70,0x2c,0x68,0x2c,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x2b,0x2b,0x69,0x3b,0x0a,0x75, - 0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x3d,0x68,0x2e,0x73,0x30,0x3b,0x0a,0x68,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x68,0x2c,0x28,0x75,0x6c,0x6f,0x6e, - 0x67,0x38,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x68,0x2e,0x73,0x37,0x3d,0x68,0x38,0x3b,0x0a, - 0x68,0x38,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x70,0x3d,0x53,0x6b,0x65,0x69,0x6e,0x4f,0x64,0x64,0x52,0x6f,0x75,0x6e,0x64,0x28,0x70,0x2c,0x68,0x2c,0x74,0x2c,0x69,0x29, - 0x3b,0x0a,0x74,0x6d,0x70,0x3d,0x68,0x2e,0x73,0x30,0x3b,0x0a,0x68,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x68,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29, - 0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x68,0x2e,0x73,0x37,0x3d,0x68,0x38,0x3b,0x0a,0x68,0x38,0x3d, - 0x74,0x6d,0x70,0x3b,0x0a,0x7d,0x0a,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f,0x4b,0x45,0x59,0x28,0x70,0x2c,0x31,0x38,0x29,0x3b,0x0a,0x72, - 0x65,0x74,0x75,0x72,0x6e,0x28,0x70,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x4a, - 0x48,0x5f,0x36,0x34,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x4c,0x49,0x54,0x54,0x4c,0x45,0x5f,0x45,0x4e,0x44,0x49,0x41,0x4e, - 0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x09,0x78,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x09,0x78,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33, - 0x32,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x3b,0x0a,0x23,0x69,0x66,0x20,0x53,0x50, - 0x48,0x5f,0x4c,0x49,0x54,0x54,0x4c,0x45,0x5f,0x45,0x4e,0x44,0x49,0x41,0x4e,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x33,0x32,0x65,0x28,0x78,0x29,0x20, - 0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32,0x34,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33, - 0x32,0x28,0x78,0x29,0x3e,0x3e,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a, - 0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x30,0x78,0x30,0x30,0x46, - 0x46,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x53,0x50, - 0x48,0x5f,0x43,0x33,0x32,0x28,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x33, - 0x32,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x33,0x32,0x6c,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63,0x33,0x32,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x33,0x32,0x6c,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x43,0x36,0x34,0x65,0x28,0x78,0x29,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x35,0x36,0x29,0x20,0x5c,0x0a, - 0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x34,0x30,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78, - 0x29,0x3e,0x3e,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30, - 0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34, - 0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f, - 0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x53,0x50, - 0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28, - 0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x34,0x30,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c, - 0x35,0x36,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29, - 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x36,0x34,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63, - 0x36,0x34,0x6c,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63,0x36,0x34,0x65,0x20,0x73,0x70,0x68,0x5f, - 0x65,0x6e,0x63,0x36,0x34,0x6c,0x65,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x33,0x32,0x65,0x28,0x78,0x29,0x20,0x53,0x50, - 0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x33,0x32,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x20, - 0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x33,0x32,0x62,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63,0x33, - 0x32,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x33,0x32,0x62,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x36,0x34,0x65,0x28,0x78,0x29,0x20,0x53, - 0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x36,0x34,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64, - 0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x36,0x34,0x62,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63, - 0x36,0x34,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x36,0x34,0x62,0x65,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53, - 0x62,0x28,0x78,0x30,0x2c,0x20,0x78,0x31,0x2c,0x20,0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x63,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x78,0x33,0x3d,0x7e, - 0x78,0x33,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x28,0x63,0x29,0x26,0x7e,0x78,0x32,0x3b,0x20,0x5c,0x0a,0x74,0x6d,0x70,0x3d,0x28,0x63,0x29,0x5e,0x28, - 0x78,0x30,0x26,0x78,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x78,0x32,0x26,0x78,0x33,0x3b,0x20,0x5c,0x0a,0x78,0x33,0x20,0x5e,0x3d,0x20,0x7e, - 0x78,0x31,0x26,0x78,0x32,0x3b,0x20,0x5c,0x0a,0x78,0x31,0x20,0x5e,0x3d,0x20,0x78,0x30,0x26,0x78,0x32,0x3b,0x20,0x5c,0x0a,0x78,0x32,0x20,0x5e,0x3d,0x20,0x78,0x30, - 0x26,0x7e,0x78,0x33,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x78,0x31,0x7c,0x78,0x33,0x3b,0x20,0x5c,0x0a,0x78,0x33,0x20,0x5e,0x3d,0x20,0x78,0x31,0x26, - 0x78,0x32,0x3b,0x20,0x5c,0x0a,0x78,0x31,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x26,0x78,0x30,0x3b,0x20,0x5c,0x0a,0x78,0x32,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b, - 0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x62,0x28,0x78,0x30,0x2c,0x20,0x78,0x31, - 0x2c,0x20,0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x78,0x34,0x2c,0x20,0x78,0x35,0x2c,0x20,0x78,0x36,0x2c,0x20,0x78,0x37,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c, - 0x0a,0x78,0x34,0x20,0x5e,0x3d,0x20,0x78,0x31,0x3b,0x20,0x5c,0x0a,0x78,0x35,0x20,0x5e,0x3d,0x20,0x78,0x32,0x3b,0x20,0x5c,0x0a,0x78,0x36,0x20,0x5e,0x3d,0x20,0x78, - 0x33,0x5e,0x78,0x30,0x3b,0x20,0x5c,0x0a,0x78,0x37,0x20,0x5e,0x3d,0x20,0x78,0x30,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x78,0x35,0x3b,0x20,0x5c,0x0a, - 0x78,0x31,0x20,0x5e,0x3d,0x20,0x78,0x36,0x3b,0x20,0x5c,0x0a,0x78,0x32,0x20,0x5e,0x3d,0x20,0x78,0x37,0x5e,0x78,0x34,0x3b,0x20,0x5c,0x0a,0x78,0x33,0x20,0x5e,0x3d, - 0x20,0x78,0x34,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x43,0x5b,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x36,0x37,0x46,0x38,0x31, - 0x35,0x44,0x46,0x41,0x32,0x44,0x45,0x44,0x35,0x37,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35,0x37,0x31,0x35,0x32,0x33,0x42,0x37,0x30,0x41,0x31,0x35,0x38,0x34,0x37,0x42, - 0x55,0x4c,0x2c,0x30,0x78,0x46,0x36,0x38,0x37,0x35,0x41,0x34,0x44,0x39,0x30,0x44,0x36,0x41,0x42,0x38,0x31,0x55,0x4c,0x2c,0x30,0x78,0x34,0x30,0x32,0x42,0x44,0x31, - 0x43,0x33,0x43,0x35,0x34,0x46,0x39,0x46,0x34,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x43,0x46,0x41,0x34,0x35,0x35,0x43,0x45,0x30,0x33,0x41,0x39,0x38,0x45,0x41, - 0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x39,0x39,0x42,0x32,0x36,0x36,0x39,0x39,0x44,0x32,0x43,0x35,0x30,0x33,0x55,0x4c,0x2c,0x30,0x78,0x38,0x41,0x35,0x33,0x42,0x42, - 0x46,0x32,0x42,0x34,0x39,0x36,0x30,0x32,0x36,0x36,0x55,0x4c,0x2c,0x30,0x78,0x33,0x31,0x41,0x32,0x44,0x42,0x38,0x38,0x31,0x41,0x31,0x34,0x35,0x36,0x42,0x35,0x55, - 0x4c,0x2c,0x0a,0x30,0x78,0x44,0x42,0x30,0x45,0x31,0x39,0x39,0x41,0x35,0x43,0x35,0x41,0x41,0x33,0x30,0x33,0x55,0x4c,0x2c,0x30,0x78,0x31,0x30,0x34,0x34,0x43,0x31, - 0x38,0x37,0x30,0x41,0x42,0x32,0x33,0x46,0x34,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x44,0x39,0x35,0x39,0x45,0x38,0x34,0x38,0x30,0x31,0x39,0x30,0x35,0x31,0x43,0x55, - 0x4c,0x2c,0x30,0x78,0x44,0x43,0x43,0x44,0x45,0x37,0x35,0x45,0x41,0x44,0x45,0x42,0x33,0x33,0x36,0x46,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x31,0x36,0x42,0x42,0x46, - 0x30,0x32,0x39,0x32,0x31,0x33,0x42,0x41,0x31,0x30,0x55,0x4c,0x2c,0x30,0x78,0x44,0x30,0x32,0x37,0x42,0x42,0x46,0x37,0x31,0x35,0x36,0x35,0x37,0x38,0x44,0x43,0x55, - 0x4c,0x2c,0x30,0x78,0x35,0x30,0x37,0x38,0x41,0x41,0x33,0x37,0x33,0x39,0x38,0x31,0x32,0x43,0x30,0x41,0x55,0x4c,0x2c,0x30,0x78,0x44,0x33,0x39,0x31,0x30,0x30,0x34, - 0x31,0x44,0x32,0x42,0x46,0x31,0x41,0x33,0x46,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x30,0x37,0x45,0x43,0x43,0x46,0x36,0x30,0x44,0x35,0x41,0x32,0x44,0x34,0x32,0x55, - 0x4c,0x2c,0x30,0x78,0x43,0x45,0x39,0x37,0x43,0x30,0x39,0x32,0x39,0x43,0x39,0x46,0x36,0x32,0x44,0x44,0x55,0x4c,0x2c,0x30,0x78,0x41,0x43,0x34,0x34,0x32,0x42,0x43, - 0x37,0x30,0x42,0x41,0x37,0x35,0x43,0x31,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x33,0x46,0x43,0x43,0x36,0x36,0x33,0x44,0x36,0x36,0x35,0x44,0x46,0x44,0x31,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x31,0x41,0x42,0x38,0x45,0x30,0x39,0x45,0x30,0x33,0x36,0x43,0x36,0x45,0x39,0x37,0x55,0x4c,0x2c,0x30,0x78,0x41,0x38,0x45,0x43,0x36,0x43,0x34, - 0x34,0x37,0x45,0x34,0x35,0x30,0x35,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x46,0x41,0x36,0x31,0x38,0x45,0x35,0x44,0x42,0x42,0x30,0x33,0x46,0x31,0x45,0x45,0x55,0x4c, - 0x2c,0x30,0x78,0x39,0x37,0x38,0x31,0x38,0x33,0x39,0x34,0x42,0x32,0x39,0x37,0x39,0x36,0x46,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x46,0x33,0x30,0x30,0x33,0x44, - 0x42,0x33,0x37,0x38,0x35,0x38,0x45,0x34,0x41,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x36,0x41,0x39,0x46,0x46,0x42,0x32,0x44,0x38,0x44,0x36,0x37,0x32,0x41,0x55,0x4c, - 0x2c,0x30,0x78,0x36,0x43,0x36,0x39,0x42,0x38,0x46,0x38,0x38,0x31,0x37,0x33,0x46,0x45,0x38,0x41,0x55,0x4c,0x2c,0x30,0x78,0x31,0x34,0x34,0x32,0x37,0x46,0x43,0x30, - 0x34,0x36,0x37,0x32,0x43,0x37,0x38,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x34,0x35,0x45,0x43,0x37,0x42,0x44,0x38,0x46,0x31,0x35,0x46,0x34,0x43,0x35,0x55,0x4c, - 0x2c,0x30,0x78,0x38,0x30,0x42,0x42,0x31,0x31,0x38,0x46,0x41,0x37,0x36,0x46,0x34,0x34,0x37,0x35,0x55,0x4c,0x2c,0x30,0x78,0x42,0x43,0x38,0x38,0x45,0x34,0x41,0x45, - 0x42,0x37,0x37,0x35,0x44,0x45,0x35,0x32,0x55,0x4c,0x2c,0x30,0x78,0x46,0x34,0x41,0x33,0x41,0x36,0x39,0x38,0x31,0x45,0x30,0x30,0x42,0x38,0x38,0x32,0x55,0x4c,0x2c, - 0x0a,0x30,0x78,0x31,0x35,0x36,0x33,0x41,0x33,0x41,0x39,0x33,0x33,0x38,0x46,0x46,0x34,0x38,0x45,0x55,0x4c,0x2c,0x30,0x78,0x38,0x39,0x46,0x39,0x42,0x37,0x44,0x35, - 0x32,0x34,0x35,0x36,0x35,0x46,0x41,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x44,0x45,0x30,0x35,0x41,0x37,0x43,0x32,0x30,0x45,0x44,0x46,0x31,0x42,0x36,0x55,0x4c,0x2c, - 0x30,0x78,0x33,0x36,0x32,0x43,0x34,0x32,0x30,0x36,0x35,0x41,0x45,0x39,0x43,0x41,0x33,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x44,0x39,0x38,0x46,0x45,0x34,0x45, - 0x34,0x33,0x33,0x35,0x32,0x39,0x43,0x45,0x55,0x4c,0x2c,0x30,0x78,0x41,0x37,0x34,0x42,0x39,0x41,0x37,0x33,0x37,0x34,0x46,0x39,0x33,0x41,0x35,0x33,0x55,0x4c,0x2c, - 0x30,0x78,0x38,0x36,0x38,0x31,0x34,0x45,0x36,0x46,0x35,0x39,0x31,0x46,0x46,0x35,0x44,0x30,0x55,0x4c,0x2c,0x30,0x78,0x39,0x46,0x35,0x41,0x44,0x38,0x41,0x46,0x38, - 0x31,0x41,0x44,0x39,0x44,0x30,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x41,0x36,0x32,0x33,0x34,0x45,0x45,0x36,0x37,0x30,0x36,0x30,0x35,0x41,0x37,0x55,0x4c,0x2c, - 0x30,0x78,0x32,0x37,0x31,0x37,0x42,0x39,0x36,0x45,0x42,0x45,0x32,0x38,0x30,0x42,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x33,0x46,0x31,0x30,0x38,0x30,0x43,0x36,0x32, - 0x36,0x30,0x37,0x37,0x34,0x34,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x42,0x34,0x38,0x37,0x45,0x43,0x36,0x36,0x46,0x37,0x45,0x41,0x30,0x45,0x30,0x55,0x4c,0x2c,0x0a, - 0x30,0x78,0x43,0x30,0x41,0x34,0x46,0x38,0x34,0x41,0x41,0x35,0x30,0x41,0x35,0x35,0x30,0x44,0x55,0x4c,0x2c,0x30,0x78,0x39,0x45,0x46,0x31,0x38,0x45,0x39,0x37,0x39, - 0x46,0x45,0x37,0x45,0x33,0x39,0x31,0x55,0x4c,0x2c,0x30,0x78,0x44,0x34,0x38,0x44,0x36,0x30,0x35,0x30,0x38,0x31,0x37,0x32,0x37,0x36,0x38,0x36,0x55,0x4c,0x2c,0x30, - 0x78,0x36,0x32,0x42,0x30,0x45,0x35,0x46,0x33,0x34,0x31,0x35,0x41,0x39,0x45,0x37,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x41,0x32,0x30,0x35,0x34,0x34,0x30,0x45, - 0x43,0x31,0x46,0x39,0x46,0x46,0x43,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x43,0x39,0x46,0x34,0x43,0x45,0x30,0x30,0x31,0x41,0x45,0x34,0x45,0x33,0x55,0x4c,0x2c,0x30, - 0x78,0x44,0x38,0x39,0x35,0x46,0x41,0x39,0x44,0x46,0x35,0x39,0x34,0x44,0x37,0x34,0x46,0x55,0x4c,0x2c,0x30,0x78,0x41,0x35,0x35,0x34,0x43,0x33,0x32,0x34,0x31,0x31, - 0x37,0x45,0x32,0x45,0x35,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x38,0x36,0x45,0x46,0x45,0x42,0x44,0x32,0x38,0x37,0x32,0x44,0x46,0x35,0x42,0x55,0x4c,0x2c,0x30, - 0x78,0x42,0x32,0x43,0x34,0x41,0x35,0x30,0x46,0x45,0x32,0x37,0x46,0x46,0x35,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x45,0x44,0x33,0x34,0x39,0x45,0x45,0x45,0x46, - 0x37,0x43,0x38,0x39,0x30,0x35,0x55,0x4c,0x2c,0x30,0x78,0x37,0x46,0x35,0x39,0x32,0x38,0x45,0x42,0x38,0x35,0x39,0x33,0x37,0x45,0x34,0x34,0x55,0x4c,0x2c,0x0a,0x30, - 0x78,0x34,0x41,0x33,0x31,0x32,0x34,0x42,0x33,0x33,0x37,0x36,0x39,0x35,0x46,0x37,0x30,0x55,0x4c,0x2c,0x30,0x78,0x36,0x35,0x45,0x34,0x44,0x36,0x31,0x44,0x46,0x31, - 0x32,0x38,0x38,0x36,0x35,0x45,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x32,0x30,0x42,0x39,0x35,0x31,0x30,0x34,0x37,0x37,0x31,0x42,0x43,0x37,0x55,0x4c,0x2c,0x30,0x78, - 0x38,0x41,0x38,0x37,0x44,0x34,0x32,0x33,0x45,0x38,0x34,0x33,0x46,0x45,0x37,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x32,0x39,0x34,0x37,0x36,0x39,0x32,0x41,0x33, - 0x45,0x38,0x32,0x39,0x37,0x44,0x55,0x4c,0x2c,0x30,0x78,0x43,0x31,0x44,0x39,0x33,0x30,0x39,0x42,0x30,0x39,0x37,0x41,0x43,0x42,0x44,0x44,0x55,0x4c,0x2c,0x30,0x78, - 0x45,0x30,0x31,0x42,0x44,0x43,0x35,0x42,0x46,0x42,0x33,0x30,0x31,0x42,0x31,0x44,0x55,0x4c,0x2c,0x30,0x78,0x42,0x46,0x38,0x32,0x39,0x43,0x46,0x32,0x34,0x46,0x34, - 0x39,0x32,0x34,0x44,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x46,0x42,0x46,0x37,0x30,0x42,0x34,0x33,0x31,0x42,0x41,0x45,0x37,0x41,0x34,0x55,0x4c,0x2c,0x30,0x78, - 0x34,0x38,0x42,0x43,0x46,0x38,0x44,0x45,0x30,0x35,0x34,0x34,0x33,0x32,0x30,0x44,0x55,0x4c,0x2c,0x30,0x78,0x33,0x39,0x44,0x33,0x42,0x42,0x35,0x33,0x33,0x32,0x46, - 0x43,0x41,0x45,0x33,0x42,0x55,0x4c,0x2c,0x30,0x78,0x41,0x30,0x38,0x42,0x32,0x39,0x45,0x30,0x43,0x31,0x43,0x33,0x39,0x46,0x34,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78, - 0x30,0x46,0x30,0x39,0x41,0x45,0x46,0x37,0x46,0x44,0x30,0x35,0x43,0x39,0x45,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x34,0x46,0x31,0x39,0x30,0x34,0x32,0x31,0x32,0x33, - 0x34,0x37,0x30,0x39,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x45,0x44,0x34,0x34,0x45,0x33,0x30,0x31,0x42,0x37,0x37,0x31,0x41,0x32,0x55,0x4c,0x2c,0x30,0x78,0x34, - 0x41,0x39,0x38,0x32,0x46,0x34,0x46,0x33,0x36,0x38,0x45,0x33,0x42,0x45,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x35,0x46,0x36,0x36,0x43,0x41,0x30,0x36,0x33,0x31, - 0x44,0x34,0x30,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x46,0x46,0x41,0x46,0x35,0x32,0x38,0x37,0x34,0x42,0x34,0x34,0x43,0x31,0x34,0x37,0x55,0x4c,0x2c,0x30,0x78,0x33, - 0x30,0x43,0x36,0x30,0x41,0x45,0x32,0x46,0x31,0x34,0x41,0x42,0x42,0x37,0x45,0x55,0x4c,0x2c,0x30,0x78,0x45,0x36,0x38,0x43,0x36,0x45,0x43,0x43,0x43,0x35,0x42,0x36, - 0x37,0x30,0x34,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x30,0x43,0x41,0x34,0x46,0x42,0x44,0x35,0x36,0x41,0x34,0x44,0x35,0x41,0x34,0x55,0x4c,0x2c,0x30,0x78,0x41, - 0x45,0x31,0x38,0x33,0x45,0x43,0x38,0x34,0x42,0x38,0x34,0x39,0x44,0x44,0x41,0x55,0x4c,0x2c,0x30,0x78,0x41,0x44,0x44,0x31,0x36,0x34,0x33,0x30,0x34,0x35,0x43,0x45, - 0x35,0x37,0x37,0x33,0x55,0x4c,0x2c,0x30,0x78,0x36,0x37,0x32,0x35,0x35,0x43,0x31,0x34,0x36,0x38,0x43,0x45,0x41,0x36,0x45,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31, - 0x36,0x45,0x31,0x30,0x45,0x43,0x42,0x46,0x32,0x38,0x43,0x44,0x41,0x41,0x33,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x39,0x39,0x39,0x34,0x39,0x41,0x35,0x38,0x30,0x36, - 0x45,0x39,0x33,0x33,0x55,0x4c,0x2c,0x30,0x78,0x37,0x42,0x38,0x34,0x36,0x46,0x43,0x32,0x32,0x30,0x42,0x32,0x36,0x30,0x31,0x46,0x55,0x4c,0x2c,0x30,0x78,0x31,0x38, - 0x38,0x35,0x44,0x31,0x41,0x30,0x37,0x46,0x41,0x43,0x43,0x45,0x44,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x33,0x31,0x39,0x44,0x44,0x38,0x44,0x41,0x31,0x35,0x42, - 0x35,0x39,0x33,0x32,0x55,0x4c,0x2c,0x30,0x78,0x34,0x36,0x42,0x34,0x41,0x35,0x41,0x41,0x43,0x30,0x31,0x43,0x39,0x41,0x35,0x30,0x55,0x4c,0x2c,0x30,0x78,0x42,0x41, - 0x36,0x42,0x30,0x34,0x45,0x34,0x36,0x37,0x36,0x33,0x33,0x44,0x39,0x46,0x55,0x4c,0x2c,0x30,0x78,0x37,0x45,0x45,0x45,0x35,0x36,0x30,0x42,0x41,0x42,0x31,0x39,0x43, - 0x41,0x46,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x34,0x32,0x31,0x32,0x38,0x41,0x39,0x45,0x41,0x37,0x39,0x42,0x31,0x31,0x46,0x55,0x4c,0x2c,0x30,0x78,0x45,0x45, - 0x35,0x31,0x33,0x36,0x33,0x42,0x33,0x35,0x46,0x37,0x42,0x44,0x45,0x39,0x55,0x4c,0x2c,0x30,0x78,0x37,0x36,0x44,0x33,0x35,0x30,0x37,0x35,0x35,0x41,0x41,0x43,0x35, - 0x37,0x31,0x44,0x55,0x4c,0x2c,0x30,0x78,0x30,0x31,0x37,0x30,0x37,0x44,0x41,0x33,0x46,0x45,0x43,0x32,0x34,0x36,0x33,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x32, - 0x44,0x38,0x41,0x34,0x39,0x38,0x41,0x46,0x43,0x31,0x33,0x35,0x46,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x39,0x36,0x37,0x36,0x42,0x39,0x45,0x32,0x30,0x45,0x43,0x45, - 0x44,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x41,0x38,0x44,0x42,0x33,0x41,0x45,0x41,0x31,0x35,0x36,0x33,0x38,0x33,0x34,0x31,0x55,0x4c,0x2c,0x30,0x78,0x38,0x33,0x32, - 0x43,0x38,0x33,0x33,0x32,0x34,0x44,0x33,0x42,0x43,0x33,0x46,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x33,0x34,0x37,0x32,0x37,0x31,0x43,0x31,0x46,0x33,0x42,0x34, - 0x30,0x41,0x37,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x37,0x36,0x32,0x44,0x42,0x37,0x33,0x34,0x46,0x30,0x34,0x30,0x35,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x44,0x34, - 0x46,0x32,0x31,0x44,0x32,0x36,0x43,0x34,0x45,0x33,0x45,0x45,0x37,0x55,0x4c,0x2c,0x30,0x78,0x45,0x46,0x35,0x39,0x35,0x37,0x44,0x43,0x33,0x39,0x38,0x44,0x46,0x44, - 0x42,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x41,0x45,0x42,0x34,0x39,0x32,0x42,0x34,0x39,0x30,0x43,0x39,0x42,0x38,0x44,0x55,0x4c,0x2c,0x30,0x78,0x30,0x44,0x37, - 0x30,0x46,0x33,0x36,0x38,0x34,0x39,0x44,0x37,0x41,0x32,0x35,0x42,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x35,0x35,0x38,0x44,0x37,0x41,0x44,0x30,0x41,0x45,0x33,0x42, - 0x37,0x44,0x55,0x4c,0x2c,0x30,0x78,0x36,0x35,0x38,0x45,0x46,0x38,0x45,0x34,0x46,0x30,0x45,0x39,0x41,0x35,0x46,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x33,0x33, - 0x42,0x31,0x30,0x33,0x36,0x46,0x34,0x41,0x32,0x42,0x38,0x41,0x30,0x55,0x4c,0x2c,0x30,0x78,0x35,0x41,0x45,0x43,0x33,0x45,0x37,0x35,0x39,0x45,0x30,0x37,0x41,0x38, - 0x30,0x43,0x55,0x4c,0x2c,0x30,0x78,0x34,0x46,0x38,0x38,0x45,0x38,0x35,0x36,0x39,0x32,0x39,0x34,0x36,0x38,0x39,0x31,0x55,0x4c,0x2c,0x30,0x78,0x34,0x43,0x42,0x43, - 0x42,0x41,0x46,0x38,0x35,0x35,0x35,0x43,0x42,0x30,0x35,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x42,0x39,0x34,0x38,0x37,0x46,0x33,0x39,0x39,0x33,0x42,0x42,0x42, - 0x45,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x44,0x31,0x43,0x36,0x42,0x37,0x32,0x44,0x36,0x46,0x34,0x44,0x41,0x37,0x35,0x55,0x4c,0x2c,0x30,0x78,0x36,0x44,0x42,0x33, - 0x33,0x34,0x44,0x43,0x32,0x38,0x41,0x43,0x41,0x45,0x36,0x34,0x55,0x4c,0x2c,0x30,0x78,0x37,0x31,0x44,0x42,0x32,0x38,0x42,0x38,0x35,0x30,0x41,0x35,0x33,0x34,0x36, - 0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x41,0x35,0x31,0x38,0x44,0x31,0x30,0x46,0x32,0x45,0x32,0x36,0x31,0x46,0x38,0x55,0x4c,0x2c,0x30,0x78,0x46,0x43,0x37,0x35, - 0x44,0x44,0x35,0x39,0x33,0x33,0x36,0x34,0x44,0x42,0x45,0x33,0x55,0x4c,0x2c,0x30,0x78,0x41,0x32,0x33,0x46,0x43,0x45,0x34,0x33,0x46,0x31,0x42,0x43,0x41,0x43,0x31, - 0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x30,0x34,0x33,0x45,0x38,0x30,0x32,0x33,0x43,0x44,0x31,0x42,0x42,0x36,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x35,0x41,0x31, - 0x32,0x39,0x38,0x38,0x43,0x41,0x35,0x42,0x30,0x41,0x33,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x43,0x35,0x33,0x31,0x36,0x42,0x34,0x34,0x44,0x31,0x39,0x33,0x34,0x37, - 0x46,0x55,0x4c,0x2c,0x30,0x78,0x31,0x45,0x34,0x44,0x37,0x39,0x30,0x45,0x43,0x33,0x39,0x34,0x33,0x42,0x39,0x32,0x55,0x4c,0x2c,0x30,0x78,0x33,0x46,0x41,0x46,0x45, - 0x45,0x42,0x36,0x44,0x37,0x37,0x35,0x37,0x34,0x37,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x31,0x33,0x39,0x31,0x41,0x42,0x45,0x46,0x37,0x44,0x34,0x41,0x38,0x45, - 0x41,0x55,0x4c,0x2c,0x30,0x78,0x35,0x31,0x32,0x37,0x32,0x33,0x34,0x43,0x30,0x39,0x37,0x45,0x46,0x34,0x35,0x43,0x55,0x4c,0x2c,0x30,0x78,0x44,0x32,0x33,0x43,0x33, - 0x32,0x42,0x41,0x35,0x33,0x32,0x34,0x41,0x33,0x32,0x36,0x55,0x4c,0x2c,0x30,0x78,0x41,0x44,0x44,0x35,0x41,0x36,0x36,0x44,0x34,0x41,0x31,0x37,0x41,0x33,0x34,0x34, - 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x38,0x43,0x39,0x46,0x32,0x41,0x46,0x41,0x36,0x33,0x45,0x31,0x44,0x42,0x35,0x55,0x4c,0x2c,0x30,0x78,0x35,0x36,0x33,0x43,0x36, - 0x42,0x39,0x31,0x39,0x38,0x33,0x44,0x35,0x39,0x38,0x33,0x55,0x4c,0x2c,0x30,0x78,0x34,0x44,0x36,0x30,0x38,0x36,0x37,0x32,0x41,0x31,0x37,0x43,0x46,0x38,0x34,0x43, - 0x55,0x4c,0x2c,0x30,0x78,0x46,0x36,0x43,0x37,0x36,0x45,0x30,0x38,0x43,0x43,0x33,0x45,0x45,0x32,0x34,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x45,0x37,0x36,0x42, - 0x43,0x42,0x31,0x42,0x33,0x33,0x33,0x39,0x38,0x32,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x45,0x36,0x43,0x34,0x45,0x46,0x41,0x35,0x36,0x36,0x44,0x36,0x32,0x42, - 0x55,0x4c,0x2c,0x30,0x78,0x33,0x36,0x44,0x34,0x43,0x31,0x42,0x45,0x45,0x38,0x42,0x36,0x46,0x34,0x30,0x36,0x55,0x4c,0x2c,0x30,0x78,0x36,0x33,0x32,0x31,0x45,0x46, - 0x42,0x43,0x31,0x35,0x38,0x32,0x45,0x45,0x37,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x39,0x43,0x39,0x35,0x33,0x46,0x34,0x30,0x44,0x34,0x45,0x43,0x31,0x46,0x44, - 0x55,0x4c,0x2c,0x30,0x78,0x32,0x36,0x35,0x38,0x35,0x38,0x30,0x36,0x43,0x34,0x35,0x41,0x37,0x44,0x41,0x37,0x55,0x4c,0x2c,0x30,0x78,0x31,0x36,0x46,0x41,0x45,0x30, - 0x30,0x36,0x31,0x36,0x31,0x34,0x43,0x31,0x37,0x45,0x55,0x4c,0x2c,0x30,0x78,0x33,0x46,0x39,0x44,0x36,0x33,0x32,0x38,0x33,0x44,0x41,0x46,0x39,0x30,0x37,0x45,0x55, - 0x4c,0x2c,0x0a,0x30,0x78,0x30,0x43,0x44,0x32,0x39,0x42,0x30,0x30,0x45,0x33,0x46,0x32,0x43,0x39,0x44,0x32,0x55,0x4c,0x2c,0x30,0x78,0x33,0x30,0x30,0x43,0x44,0x34, - 0x42,0x37,0x33,0x30,0x43,0x45,0x41,0x41,0x35,0x46,0x55,0x4c,0x2c,0x30,0x78,0x39,0x38,0x33,0x32,0x45,0x30,0x46,0x32,0x31,0x36,0x35,0x31,0x32,0x41,0x37,0x34,0x55, - 0x4c,0x2c,0x30,0x78,0x39,0x41,0x46,0x38,0x43,0x45,0x45,0x33,0x44,0x38,0x33,0x30,0x45,0x42,0x30,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x32,0x37,0x39,0x46,0x31, - 0x42,0x35,0x37,0x42,0x39,0x45,0x43,0x35,0x34,0x42,0x55,0x4c,0x2c,0x30,0x78,0x44,0x33,0x36,0x38,0x38,0x36,0x30,0x34,0x36,0x45,0x45,0x36,0x35,0x31,0x46,0x46,0x55, - 0x4c,0x2c,0x30,0x78,0x33,0x31,0x36,0x37,0x39,0x36,0x45,0x36,0x35,0x37,0x34,0x44,0x32,0x33,0x39,0x42,0x55,0x4c,0x2c,0x30,0x78,0x30,0x35,0x37,0x35,0x30,0x41,0x31, - 0x37,0x46,0x33,0x41,0x36,0x45,0x36,0x43,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x45,0x36,0x43,0x33,0x32,0x31,0x33,0x44,0x39,0x38,0x31,0x37,0x36,0x42,0x31,0x55, - 0x4c,0x2c,0x30,0x78,0x36,0x32,0x41,0x32,0x30,0x35,0x46,0x38,0x38,0x34,0x35,0x32,0x31,0x37,0x33,0x43,0x55,0x4c,0x2c,0x30,0x78,0x34,0x37,0x31,0x35,0x34,0x37,0x37, - 0x38,0x42,0x33,0x43,0x42,0x32,0x42,0x46,0x34,0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x36,0x41,0x39,0x33,0x32,0x33,0x38,0x32,0x35,0x34,0x34,0x36,0x46,0x46,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x36,0x35,0x36,0x35,0x35,0x45,0x34,0x45,0x30,0x37,0x35,0x38,0x44,0x46,0x33,0x38,0x55,0x4c,0x2c,0x30,0x78,0x38,0x45,0x35,0x30,0x38,0x36,0x46, - 0x43,0x38,0x39,0x37,0x43,0x46,0x43,0x46,0x32,0x55,0x4c,0x2c,0x30,0x78,0x38,0x36,0x43,0x41,0x30,0x42,0x44,0x30,0x34,0x34,0x32,0x45,0x37,0x30,0x33,0x31,0x55,0x4c, - 0x2c,0x30,0x78,0x34,0x45,0x34,0x37,0x37,0x38,0x33,0x30,0x41,0x32,0x30,0x39,0x34,0x30,0x46,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x33,0x33,0x38,0x46,0x37,0x44, - 0x31,0x33,0x39,0x45,0x45,0x41,0x30,0x36,0x35,0x55,0x4c,0x2c,0x30,0x78,0x42,0x44,0x33,0x41,0x32,0x43,0x45,0x34,0x33,0x37,0x45,0x39,0x35,0x45,0x46,0x37,0x55,0x4c, - 0x2c,0x30,0x78,0x36,0x46,0x46,0x38,0x31,0x33,0x30,0x31,0x32,0x36,0x42,0x32,0x39,0x37,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x44,0x45,0x39,0x46,0x45,0x46, - 0x44,0x31,0x45,0x44,0x34,0x34,0x41,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x39,0x39,0x32,0x32,0x35,0x37,0x36,0x31,0x35,0x44,0x46,0x41,0x30,0x38,0x42,0x55,0x4c, - 0x2c,0x30,0x78,0x42,0x45,0x34,0x32,0x44,0x43,0x31,0x32,0x46,0x36,0x46,0x37,0x38,0x35,0x33,0x43,0x55,0x4c,0x2c,0x30,0x78,0x37,0x45,0x42,0x30,0x32,0x37,0x41,0x42, - 0x37,0x43,0x45,0x43,0x41,0x37,0x44,0x38,0x55,0x4c,0x2c,0x30,0x78,0x44,0x45,0x41,0x38,0x33,0x45,0x41,0x41,0x44,0x41,0x37,0x44,0x38,0x44,0x35,0x33,0x55,0x4c,0x2c, - 0x0a,0x30,0x78,0x44,0x38,0x36,0x39,0x30,0x32,0x42,0x44,0x39,0x33,0x43,0x45,0x32,0x35,0x41,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x39,0x30,0x38,0x37,0x33,0x31,0x41, - 0x46,0x44,0x34,0x33,0x46,0x36,0x35,0x41,0x55,0x4c,0x2c,0x30,0x78,0x41,0x35,0x31,0x39,0x34,0x41,0x31,0x37,0x44,0x41,0x45,0x46,0x35,0x46,0x43,0x30,0x55,0x4c,0x2c, - 0x30,0x78,0x36,0x41,0x32,0x31,0x46,0x44,0x34,0x43,0x33,0x33,0x36,0x36,0x34,0x44,0x39,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x30,0x31,0x35,0x34,0x31,0x44,0x42, - 0x33,0x31,0x39,0x38,0x42,0x34,0x33,0x35,0x55,0x4c,0x2c,0x30,0x78,0x39,0x42,0x35,0x34,0x43,0x44,0x45,0x44,0x42,0x42,0x30,0x46,0x31,0x45,0x45,0x41,0x55,0x4c,0x2c, - 0x30,0x78,0x37,0x32,0x34,0x30,0x39,0x37,0x35,0x31,0x41,0x31,0x36,0x33,0x44,0x30,0x39,0x41,0x55,0x4c,0x2c,0x30,0x78,0x45,0x32,0x36,0x46,0x34,0x37,0x39,0x31,0x42, - 0x46,0x39,0x44,0x37,0x35,0x46,0x36,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x65,0x76,0x65,0x6e,0x5f,0x68,0x69,0x28,0x72,0x29, - 0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x32,0x29,0x20,0x2b,0x20,0x30,0x5d,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x65,0x76, - 0x65,0x6e,0x5f,0x6c,0x6f,0x28,0x72,0x29,0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x32,0x29,0x20,0x2b,0x20,0x31,0x5d,0x29,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x64,0x64,0x5f,0x68,0x69,0x28,0x72,0x29,0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x32,0x29,0x20,0x2b,0x20, - 0x32,0x5d,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x64,0x64,0x5f,0x6c,0x6f,0x28,0x72,0x29,0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c, - 0x3c,0x20,0x32,0x29,0x20,0x2b,0x20,0x33,0x5d,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x28,0x78,0x30,0x2c,0x20,0x78,0x31,0x2c,0x20,0x78,0x32,0x2c, - 0x20,0x78,0x33,0x2c,0x20,0x63,0x62,0x2c,0x20,0x72,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x31, - 0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x33,0x20,0x23,0x23,0x20,0x68,0x2c,0x63,0x62,0x20,0x23,0x23,0x20,0x68,0x69,0x28,0x72, - 0x29,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x31,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x6c, - 0x2c,0x78,0x33,0x20,0x23,0x23,0x20,0x6c,0x2c,0x63,0x62,0x20,0x23,0x23,0x20,0x6c,0x6f,0x28,0x72,0x29,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65, - 0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x28,0x78,0x30,0x2c,0x20,0x78,0x31,0x2c,0x20,0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x78, - 0x34,0x2c,0x20,0x78,0x35,0x2c,0x20,0x78,0x36,0x2c,0x20,0x78,0x37,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x4c,0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x68, - 0x2c,0x78,0x31,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x33,0x20,0x23,0x23,0x20,0x68,0x2c,0x5c,0x0a,0x78,0x34,0x20,0x23,0x23, - 0x20,0x68,0x2c,0x78,0x35,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x36,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x37,0x20,0x23,0x23,0x20,0x68,0x29,0x3b,0x20,0x5c,0x0a,0x4c, - 0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x31,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x33,0x20,0x23,0x23,0x20, - 0x6c,0x2c,0x5c,0x0a,0x78,0x34,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x35,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x36,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x37,0x20,0x23, - 0x23,0x20,0x6c,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x7a,0x28,0x78, - 0x2c,0x20,0x63,0x2c,0x20,0x6e,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x74,0x3d,0x28,0x78,0x20,0x23,0x23,0x20,0x68, - 0x26,0x28,0x63,0x29,0x29,0x3c,0x3c,0x28,0x6e,0x29,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x68,0x3d,0x28,0x28,0x78,0x20,0x23,0x23,0x20,0x68,0x3e,0x3e,0x28, - 0x6e,0x29,0x29,0x26,0x28,0x63,0x29,0x29,0x7c,0x74,0x3b,0x20,0x5c,0x0a,0x74,0x3d,0x28,0x78,0x20,0x23,0x23,0x20,0x6c,0x26,0x28,0x63,0x29,0x29,0x3c,0x3c,0x28,0x6e, - 0x29,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x6c,0x3d,0x28,0x28,0x78,0x20,0x23,0x23,0x20,0x6c,0x3e,0x3e,0x28,0x6e,0x29,0x29,0x26,0x28,0x63,0x29,0x29,0x7c, - 0x74,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x30,0x28,0x78,0x29,0x20,0x57, - 0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x29, - 0x2c,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x31,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34, - 0x28,0x30,0x78,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x29,0x2c,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x57,0x32,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x30, - 0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x29,0x2c,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x33,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c, - 0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x46,0x46,0x30,0x30,0x46,0x46,0x30,0x30,0x46,0x46,0x29,0x2c,0x20,0x38,0x29, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x34,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30, - 0x30,0x30,0x30,0x46,0x46,0x46,0x46,0x30,0x30,0x30,0x30,0x46,0x46,0x46,0x46,0x29,0x2c,0x20,0x31,0x36,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x35, - 0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x46,0x46, - 0x46,0x46,0x46,0x46,0x29,0x2c,0x20,0x33,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x36,0x28,0x78,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a, - 0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x74,0x3d,0x78,0x20,0x23,0x23,0x20,0x68,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x68,0x3d,0x78,0x20,0x23,0x23,0x20, - 0x6c,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x6c,0x3d,0x74,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x53,0x4c,0x28,0x72,0x6f,0x29,0x20,0x53,0x4c,0x75,0x28,0x72,0x20,0x2b,0x20,0x72,0x6f,0x2c,0x20,0x72,0x6f,0x29,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x53,0x4c,0x75,0x28,0x72,0x2c,0x20,0x72,0x6f,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x28,0x68,0x30,0x2c,0x68,0x32,0x2c,0x68,0x34, - 0x2c,0x68,0x36,0x2c,0x43,0x65,0x76,0x65,0x6e,0x5f,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x28,0x68,0x31,0x2c,0x68,0x33,0x2c,0x68,0x35,0x2c,0x68,0x37,0x2c,0x43, - 0x6f,0x64,0x64,0x5f,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x4c,0x28,0x68,0x30,0x2c,0x68,0x32,0x2c,0x68,0x34,0x2c,0x68,0x36,0x2c,0x68,0x31,0x2c,0x68,0x33,0x2c,0x68, - 0x35,0x2c,0x68,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28, - 0x68,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x37, - 0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x69,0x66,0x20,0x53,0x50,0x48,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x46, - 0x4f,0x4f,0x54,0x50,0x52,0x49,0x4e,0x54,0x5f,0x4a,0x48,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x38,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x75,0x6e, - 0x73,0x69,0x67,0x6e,0x65,0x64,0x20,0x72,0x3b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x34,0x32,0x3b,0x20,0x72,0x2b,0x3d,0x37, - 0x29,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x32,0x29,0x3b,0x20,0x5c, - 0x0a,0x53,0x4c,0x28,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x36, - 0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x45,0x38,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x30,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x31, - 0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x32,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x33,0x2c,0x33,0x29,0x3b,0x20,0x5c, - 0x0a,0x53,0x4c,0x75,0x28,0x20,0x34,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x35,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20, - 0x36,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x37,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x38,0x2c,0x31,0x29,0x3b,0x20, - 0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x39,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x30,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28, - 0x31,0x31,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x32,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x33,0x2c,0x36,0x29,0x3b, - 0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x34,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x35,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75, - 0x28,0x31,0x36,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x37,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x38,0x2c,0x34,0x29, - 0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x39,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x30,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c, - 0x75,0x28,0x32,0x31,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x32,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x33,0x2c,0x32, - 0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x34,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x35,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53, - 0x4c,0x75,0x28,0x32,0x36,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x37,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x38,0x2c, - 0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x39,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x30,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a, - 0x53,0x4c,0x75,0x28,0x33,0x31,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x32,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x33, - 0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x34,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x35,0x2c,0x30,0x29,0x3b,0x20,0x5c, - 0x0a,0x53,0x4c,0x75,0x28,0x33,0x36,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x37,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33, - 0x38,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x39,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x34,0x30,0x2c,0x35,0x29,0x3b,0x20, - 0x5c,0x0a,0x53,0x4c,0x75,0x28,0x34,0x31,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69, - 0x66,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x73,0x69, - 0x67,0x6d,0x61,0x5b,0x31,0x36,0x5d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x7b,0x20,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c, - 0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x35,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x34,0x2c,0x31,0x30, - 0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33, - 0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x31,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x35,0x2c,0x32,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x31,0x30,0x2c,0x31,0x34,0x2c, - 0x33,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x39,0x2c,0x34,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x37,0x2c,0x39,0x2c,0x33,0x2c,0x31,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x31, - 0x31,0x2c,0x31,0x34,0x2c,0x32,0x2c,0x36,0x2c,0x35,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x38,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x39,0x2c,0x30,0x2c, - 0x35,0x2c,0x37,0x2c,0x32,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x38,0x2c,0x33,0x2c,0x31, - 0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x32,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x31,0x31,0x2c,0x38,0x2c,0x33,0x2c,0x34,0x2c,0x31,0x33,0x2c,0x37, - 0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x39,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x32,0x2c,0x35,0x2c,0x31,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31, - 0x33,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x37,0x2c,0x36,0x2c,0x33,0x2c,0x39,0x2c,0x32,0x2c,0x38,0x2c,0x31,0x31,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x33,0x2c, - 0x31,0x31,0x2c,0x37,0x2c,0x31,0x34,0x2c,0x31,0x32,0x2c,0x31,0x2c,0x33,0x2c,0x39,0x2c,0x35,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x34,0x2c,0x38,0x2c,0x36,0x2c,0x32,0x2c, - 0x31,0x30,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x36,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x39,0x2c,0x31,0x31,0x2c,0x33,0x2c,0x30,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x32,0x2c, - 0x31,0x33,0x2c,0x37,0x2c,0x31,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x35,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x30,0x2c,0x32,0x2c,0x38,0x2c,0x34,0x2c,0x37,0x2c,0x36,0x2c, - 0x31,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x31,0x2c,0x39,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x30,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x30,0x2c, - 0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34, - 0x2c,0x31,0x35,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31, - 0x32,0x2c,0x30,0x2c,0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x31,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x35,0x2c, - 0x32,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x31,0x30,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x39,0x2c,0x34,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x37, - 0x2c,0x39,0x2c,0x33,0x2c,0x31,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x31,0x31,0x2c,0x31,0x34,0x2c,0x32,0x2c,0x36,0x2c,0x35,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x30,0x2c, - 0x31,0x35,0x2c,0x38,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x39,0x2c,0x30,0x2c,0x35,0x2c,0x37,0x2c,0x32,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31, - 0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x38,0x2c,0x33,0x2c,0x31,0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x32,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x30, - 0x2c,0x31,0x31,0x2c,0x38,0x2c,0x33,0x2c,0x34,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x39,0x20,0x7d,0x0a,0x7d,0x3b,0x0a, - 0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20, - 0x63,0x5f,0x49,0x56,0x32,0x35,0x36,0x5b,0x38,0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x36,0x41,0x30,0x39,0x45,0x36,0x36,0x37,0x2c,0x30,0x78,0x42,0x42,0x36,0x37,0x41,0x45, - 0x38,0x35,0x2c,0x0a,0x30,0x78,0x33,0x43,0x36,0x45,0x46,0x33,0x37,0x32,0x2c,0x30,0x78,0x41,0x35,0x34,0x46,0x46,0x35,0x33,0x41,0x2c,0x0a,0x30,0x78,0x35,0x31,0x30, - 0x45,0x35,0x32,0x37,0x46,0x2c,0x30,0x78,0x39,0x42,0x30,0x35,0x36,0x38,0x38,0x43,0x2c,0x0a,0x30,0x78,0x31,0x46,0x38,0x33,0x44,0x39,0x41,0x42,0x2c,0x30,0x78,0x35, - 0x42,0x45,0x30,0x43,0x44,0x31,0x39,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x63,0x5f,0x50,0x61,0x64,0x64,0x69,0x6e,0x67,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x2c,0x30,0x2c,0x30, - 0x2c,0x30,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x0a,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x0a,0x30, - 0x2c,0x31,0x2c,0x30,0x2c,0x36,0x34,0x30,0x2c,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x63,0x5f,0x75,0x32,0x35,0x36,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x32,0x34,0x33,0x46, - 0x36,0x41,0x38,0x38,0x2c,0x30,0x78,0x38,0x35,0x41,0x33,0x30,0x38,0x44,0x33,0x2c,0x0a,0x30,0x78,0x31,0x33,0x31,0x39,0x38,0x41,0x32,0x45,0x2c,0x30,0x78,0x30,0x33, - 0x37,0x30,0x37,0x33,0x34,0x34,0x2c,0x0a,0x30,0x78,0x41,0x34,0x30,0x39,0x33,0x38,0x32,0x32,0x2c,0x30,0x78,0x32,0x39,0x39,0x46,0x33,0x31,0x44,0x30,0x2c,0x0a,0x30, - 0x78,0x30,0x38,0x32,0x45,0x46,0x41,0x39,0x38,0x2c,0x30,0x78,0x45,0x43,0x34,0x45,0x36,0x43,0x38,0x39,0x2c,0x0a,0x30,0x78,0x34,0x35,0x32,0x38,0x32,0x31,0x45,0x36, - 0x2c,0x30,0x78,0x33,0x38,0x44,0x30,0x31,0x33,0x37,0x37,0x2c,0x0a,0x30,0x78,0x42,0x45,0x35,0x34,0x36,0x36,0x43,0x46,0x2c,0x30,0x78,0x33,0x34,0x45,0x39,0x30,0x43, - 0x36,0x43,0x2c,0x0a,0x30,0x78,0x43,0x30,0x41,0x43,0x32,0x39,0x42,0x37,0x2c,0x30,0x78,0x43,0x39,0x37,0x43,0x35,0x30,0x44,0x44,0x2c,0x0a,0x30,0x78,0x33,0x46,0x38, - 0x34,0x44,0x35,0x42,0x35,0x2c,0x30,0x78,0x42,0x35,0x34,0x37,0x30,0x39,0x31,0x37,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x53,0x28,0x61, - 0x2c,0x62,0x2c,0x63,0x2c,0x64,0x2c,0x78,0x29,0x20,0x7b,0x20,0x5c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x69,0x64,0x78,0x31, - 0x3d,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x5d,0x5b,0x78,0x5d,0x3b,0x20,0x5c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x69,0x64, - 0x78,0x32,0x3d,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x5d,0x5b,0x78,0x2b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x61,0x5d,0x2b,0x3d,0x28,0x6d,0x5b,0x69,0x64,0x78, - 0x31,0x5d,0x5e,0x63,0x5f,0x75,0x32,0x35,0x36,0x5b,0x69,0x64,0x78,0x32,0x5d,0x29,0x2b,0x76,0x5b,0x62,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x20,0x5e,0x3d, - 0x20,0x76,0x5b,0x61,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x64,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x20, - 0x5c,0x0a,0x76,0x5b,0x63,0x5d,0x2b,0x3d,0x76,0x5b,0x64,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x62,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x63,0x5d,0x3b,0x20,0x5c,0x0a, - 0x76,0x5b,0x62,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x62,0x5d,0x2c,0x32,0x30,0x55,0x29,0x3b,0x20,0x5c,0x0a,0x5c,0x0a,0x76,0x5b,0x61,0x5d,0x2b, - 0x3d,0x28,0x6d,0x5b,0x69,0x64,0x78,0x32,0x5d,0x5e,0x63,0x5f,0x75,0x32,0x35,0x36,0x5b,0x69,0x64,0x78,0x31,0x5d,0x29,0x2b,0x76,0x5b,0x62,0x5d,0x3b,0x20,0x5c,0x0a, - 0x76,0x5b,0x64,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x61,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x64,0x5d, - 0x2c,0x32,0x34,0x55,0x29,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x63,0x5d,0x2b,0x3d,0x76,0x5b,0x64,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x62,0x5d,0x20,0x5e,0x3d,0x20,0x76, - 0x5b,0x63,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x62,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x62,0x5d,0x2c,0x32,0x35,0x55,0x29,0x3b,0x20,0x5c,0x0a, - 0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x09,0x78,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53, - 0x50,0x48,0x5f,0x52,0x4f,0x54,0x4c,0x36,0x34,0x28,0x78,0x2c,0x20,0x79,0x29,0x09,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x28,0x78,0x29,0x2c,0x20,0x28,0x75,0x6c,0x6f, - 0x6e,0x67,0x29,0x28,0x79,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x36,0x34,0x65,0x28,0x78,0x29,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36, - 0x34,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x35,0x36,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x34,0x30, - 0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x29,0x29,0x20,0x5c, - 0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28, - 0x78,0x29,0x3e,0x3e,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30, - 0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34, - 0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f, - 0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x34,0x30,0x29,0x26,0x53, - 0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20, - 0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x35,0x36,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x46,0x46,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x30,0x28,0x78,0x29, - 0x20,0x28,0x28,0x78,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x31,0x28,0x78,0x29,0x20,0x28, - 0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x32, - 0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x31,0x36,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x42,0x36,0x34,0x5f,0x33,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32,0x34,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x34,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x33,0x32,0x29,0x20,0x26,0x20,0x30, - 0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x35,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x34, - 0x30,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x36,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78, - 0x29,0x20,0x3e,0x3e,0x20,0x34,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x37,0x28,0x78, - 0x29,0x20,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x35,0x36,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x36,0x34,0x20,0x53,0x50,0x48,0x5f,0x52,0x4f, - 0x54,0x4c,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x43,0x36,0x34,0x28,0x6a,0x2c,0x20,0x72,0x29,0x20,0x28,0x28,0x73,0x70,0x68,0x5f,0x75,0x36, - 0x34,0x29,0x28,0x28,0x6a,0x29,0x20,0x2b,0x20,0x28,0x72,0x29,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x51,0x43,0x36,0x34,0x28,0x6a,0x2c,0x20,0x72, - 0x29,0x20,0x28,0x28,0x28,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x29,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x35,0x36,0x29,0x20,0x5e,0x20,0x28,0x7e,0x28,0x28,0x73,0x70, - 0x68,0x5f,0x75,0x36,0x34,0x29,0x28,0x6a,0x29,0x20,0x3c,0x3c,0x20,0x35,0x36,0x29,0x29,0x29,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x30,0x5f,0x47,0x5b,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x63,0x36, - 0x61,0x35,0x39,0x37,0x66,0x34,0x61,0x35,0x66,0x34,0x33,0x32,0x63,0x36,0x55,0x4c,0x2c,0x30,0x78,0x66,0x38,0x38,0x34,0x65,0x62,0x39,0x37,0x38,0x34,0x39,0x37,0x36, - 0x66,0x66,0x38,0x55,0x4c,0x2c,0x30,0x78,0x65,0x65,0x39,0x39,0x63,0x37,0x62,0x30,0x39,0x39,0x62,0x30,0x35,0x65,0x65,0x65,0x55,0x4c,0x2c,0x30,0x78,0x66,0x36,0x38, - 0x64,0x66,0x37,0x38,0x63,0x38,0x64,0x38,0x63,0x37,0x61,0x66,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x66,0x66,0x30,0x64,0x65,0x35,0x31,0x37,0x30,0x64,0x31,0x37,0x65, - 0x38,0x66,0x66,0x55,0x4c,0x2c,0x30,0x78,0x64,0x36,0x62,0x64,0x62,0x37,0x64,0x63,0x62,0x64,0x64,0x63,0x30,0x61,0x64,0x36,0x55,0x4c,0x2c,0x30,0x78,0x64,0x65,0x62, - 0x31,0x61,0x37,0x63,0x38,0x62,0x31,0x63,0x38,0x31,0x36,0x64,0x65,0x55,0x4c,0x2c,0x30,0x78,0x39,0x31,0x35,0x34,0x33,0x39,0x66,0x63,0x35,0x34,0x66,0x63,0x36,0x64, - 0x39,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x30,0x35,0x30,0x63,0x30,0x66,0x30,0x35,0x30,0x66,0x30,0x39,0x30,0x36,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x32,0x30, - 0x33,0x30,0x34,0x30,0x35,0x30,0x33,0x30,0x35,0x30,0x37,0x30,0x32,0x55,0x4c,0x2c,0x30,0x78,0x63,0x65,0x61,0x39,0x38,0x37,0x65,0x30,0x61,0x39,0x65,0x30,0x32,0x65, - 0x63,0x65,0x55,0x4c,0x2c,0x30,0x78,0x35,0x36,0x37,0x64,0x61,0x63,0x38,0x37,0x37,0x64,0x38,0x37,0x64,0x31,0x35,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x65,0x37,0x31, - 0x39,0x64,0x35,0x32,0x62,0x31,0x39,0x32,0x62,0x63,0x63,0x65,0x37,0x55,0x4c,0x2c,0x30,0x78,0x62,0x35,0x36,0x32,0x37,0x31,0x61,0x36,0x36,0x32,0x61,0x36,0x31,0x33, - 0x62,0x35,0x55,0x4c,0x2c,0x30,0x78,0x34,0x64,0x65,0x36,0x39,0x61,0x33,0x31,0x65,0x36,0x33,0x31,0x37,0x63,0x34,0x64,0x55,0x4c,0x2c,0x30,0x78,0x65,0x63,0x39,0x61, - 0x63,0x33,0x62,0x35,0x39,0x61,0x62,0x35,0x35,0x39,0x65,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x66,0x34,0x35,0x30,0x35,0x63,0x66,0x34,0x35,0x63,0x66,0x34,0x30, - 0x38,0x66,0x55,0x4c,0x2c,0x30,0x78,0x31,0x66,0x39,0x64,0x33,0x65,0x62,0x63,0x39,0x64,0x62,0x63,0x61,0x33,0x31,0x66,0x55,0x4c,0x2c,0x30,0x78,0x38,0x39,0x34,0x30, - 0x30,0x39,0x63,0x30,0x34,0x30,0x63,0x30,0x34,0x39,0x38,0x39,0x55,0x4c,0x2c,0x30,0x78,0x66,0x61,0x38,0x37,0x65,0x66,0x39,0x32,0x38,0x37,0x39,0x32,0x36,0x38,0x66, - 0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x65,0x66,0x31,0x35,0x63,0x35,0x33,0x66,0x31,0x35,0x33,0x66,0x64,0x30,0x65,0x66,0x55,0x4c,0x2c,0x30,0x78,0x62,0x32,0x65,0x62, - 0x37,0x66,0x32,0x36,0x65,0x62,0x32,0x36,0x39,0x34,0x62,0x32,0x55,0x4c,0x2c,0x30,0x78,0x38,0x65,0x63,0x39,0x30,0x37,0x34,0x30,0x63,0x39,0x34,0x30,0x63,0x65,0x38, - 0x65,0x55,0x4c,0x2c,0x30,0x78,0x66,0x62,0x30,0x62,0x65,0x64,0x31,0x64,0x30,0x62,0x31,0x64,0x65,0x36,0x66,0x62,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x31,0x65,0x63, - 0x38,0x32,0x32,0x66,0x65,0x63,0x32,0x66,0x36,0x65,0x34,0x31,0x55,0x4c,0x2c,0x30,0x78,0x62,0x33,0x36,0x37,0x37,0x64,0x61,0x39,0x36,0x37,0x61,0x39,0x31,0x61,0x62, - 0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x66,0x66,0x64,0x62,0x65,0x31,0x63,0x66,0x64,0x31,0x63,0x34,0x33,0x35,0x66,0x55,0x4c,0x2c,0x30,0x78,0x34,0x35,0x65,0x61,0x38, - 0x61,0x32,0x35,0x65,0x61,0x32,0x35,0x36,0x30,0x34,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x33,0x62,0x66,0x34,0x36,0x64,0x61,0x62,0x66,0x64,0x61,0x66,0x39,0x32, - 0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x33,0x66,0x37,0x61,0x36,0x30,0x32,0x66,0x37,0x30,0x32,0x35,0x31,0x35,0x33,0x55,0x4c,0x2c,0x30,0x78,0x65,0x34,0x39,0x36,0x64, - 0x33,0x61,0x31,0x39,0x36,0x61,0x31,0x34,0x35,0x65,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x62,0x35,0x62,0x32,0x64,0x65,0x64,0x35,0x62,0x65,0x64,0x37,0x36,0x39,0x62, - 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x35,0x63,0x32,0x65,0x61,0x35,0x64,0x63,0x32,0x35,0x64,0x32,0x38,0x37,0x35,0x55,0x4c,0x2c,0x30,0x78,0x65,0x31,0x31,0x63,0x64, - 0x39,0x32,0x34,0x31,0x63,0x32,0x34,0x63,0x35,0x65,0x31,0x55,0x4c,0x2c,0x30,0x78,0x33,0x64,0x61,0x65,0x37,0x61,0x65,0x39,0x61,0x65,0x65,0x39,0x64,0x34,0x33,0x64, - 0x55,0x4c,0x2c,0x30,0x78,0x34,0x63,0x36,0x61,0x39,0x38,0x62,0x65,0x36,0x61,0x62,0x65,0x66,0x32,0x34,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x63,0x35,0x61,0x64, - 0x38,0x65,0x65,0x35,0x61,0x65,0x65,0x38,0x32,0x36,0x63,0x55,0x4c,0x2c,0x30,0x78,0x37,0x65,0x34,0x31,0x66,0x63,0x63,0x33,0x34,0x31,0x63,0x33,0x62,0x64,0x37,0x65, - 0x55,0x4c,0x2c,0x30,0x78,0x66,0x35,0x30,0x32,0x66,0x31,0x30,0x36,0x30,0x32,0x30,0x36,0x66,0x33,0x66,0x35,0x55,0x4c,0x2c,0x30,0x78,0x38,0x33,0x34,0x66,0x31,0x64, - 0x64,0x31,0x34,0x66,0x64,0x31,0x35,0x32,0x38,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x38,0x35,0x63,0x64,0x30,0x65,0x34,0x35,0x63,0x65,0x34,0x38,0x63,0x36,0x38, - 0x55,0x4c,0x2c,0x30,0x78,0x35,0x31,0x66,0x34,0x61,0x32,0x30,0x37,0x66,0x34,0x30,0x37,0x35,0x36,0x35,0x31,0x55,0x4c,0x2c,0x30,0x78,0x64,0x31,0x33,0x34,0x62,0x39, - 0x35,0x63,0x33,0x34,0x35,0x63,0x38,0x64,0x64,0x31,0x55,0x4c,0x2c,0x30,0x78,0x66,0x39,0x30,0x38,0x65,0x39,0x31,0x38,0x30,0x38,0x31,0x38,0x65,0x31,0x66,0x39,0x55, - 0x4c,0x2c,0x0a,0x30,0x78,0x65,0x32,0x39,0x33,0x64,0x66,0x61,0x65,0x39,0x33,0x61,0x65,0x34,0x63,0x65,0x32,0x55,0x4c,0x2c,0x30,0x78,0x61,0x62,0x37,0x33,0x34,0x64, - 0x39,0x35,0x37,0x33,0x39,0x35,0x33,0x65,0x61,0x62,0x55,0x4c,0x2c,0x30,0x78,0x36,0x32,0x35,0x33,0x63,0x34,0x66,0x35,0x35,0x33,0x66,0x35,0x39,0x37,0x36,0x32,0x55, - 0x4c,0x2c,0x30,0x78,0x32,0x61,0x33,0x66,0x35,0x34,0x34,0x31,0x33,0x66,0x34,0x31,0x36,0x62,0x32,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x38,0x30,0x63,0x31,0x30, - 0x31,0x34,0x30,0x63,0x31,0x34,0x31,0x63,0x30,0x38,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x35,0x32,0x33,0x31,0x66,0x36,0x35,0x32,0x66,0x36,0x36,0x33,0x39,0x35,0x55, - 0x4c,0x2c,0x30,0x78,0x34,0x36,0x36,0x35,0x38,0x63,0x61,0x66,0x36,0x35,0x61,0x66,0x65,0x39,0x34,0x36,0x55,0x4c,0x2c,0x30,0x78,0x39,0x64,0x35,0x65,0x32,0x31,0x65, - 0x32,0x35,0x65,0x65,0x32,0x37,0x66,0x39,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x30,0x32,0x38,0x36,0x30,0x37,0x38,0x32,0x38,0x37,0x38,0x34,0x38,0x33,0x30,0x55, - 0x4c,0x2c,0x30,0x78,0x33,0x37,0x61,0x31,0x36,0x65,0x66,0x38,0x61,0x31,0x66,0x38,0x63,0x66,0x33,0x37,0x55,0x4c,0x2c,0x30,0x78,0x30,0x61,0x30,0x66,0x31,0x34,0x31, - 0x31,0x30,0x66,0x31,0x31,0x31,0x62,0x30,0x61,0x55,0x4c,0x2c,0x30,0x78,0x32,0x66,0x62,0x35,0x35,0x65,0x63,0x34,0x62,0x35,0x63,0x34,0x65,0x62,0x32,0x66,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x30,0x65,0x30,0x39,0x31,0x63,0x31,0x62,0x30,0x39,0x31,0x62,0x31,0x35,0x30,0x65,0x55,0x4c,0x2c,0x30,0x78,0x32,0x34,0x33,0x36,0x34,0x38,0x35, - 0x61,0x33,0x36,0x35,0x61,0x37,0x65,0x32,0x34,0x55,0x4c,0x2c,0x30,0x78,0x31,0x62,0x39,0x62,0x33,0x36,0x62,0x36,0x39,0x62,0x62,0x36,0x61,0x64,0x31,0x62,0x55,0x4c, - 0x2c,0x30,0x78,0x64,0x66,0x33,0x64,0x61,0x35,0x34,0x37,0x33,0x64,0x34,0x37,0x39,0x38,0x64,0x66,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x64,0x32,0x36,0x38,0x31,0x36, - 0x61,0x32,0x36,0x36,0x61,0x61,0x37,0x63,0x64,0x55,0x4c,0x2c,0x30,0x78,0x34,0x65,0x36,0x39,0x39,0x63,0x62,0x62,0x36,0x39,0x62,0x62,0x66,0x35,0x34,0x65,0x55,0x4c, - 0x2c,0x30,0x78,0x37,0x66,0x63,0x64,0x66,0x65,0x34,0x63,0x63,0x64,0x34,0x63,0x33,0x33,0x37,0x66,0x55,0x4c,0x2c,0x30,0x78,0x65,0x61,0x39,0x66,0x63,0x66,0x62,0x61, - 0x39,0x66,0x62,0x61,0x35,0x30,0x65,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x32,0x31,0x62,0x32,0x34,0x32,0x64,0x31,0x62,0x32,0x64,0x33,0x66,0x31,0x32,0x55,0x4c, - 0x2c,0x30,0x78,0x31,0x64,0x39,0x65,0x33,0x61,0x62,0x39,0x39,0x65,0x62,0x39,0x61,0x34,0x31,0x64,0x55,0x4c,0x2c,0x30,0x78,0x35,0x38,0x37,0x34,0x62,0x30,0x39,0x63, - 0x37,0x34,0x39,0x63,0x63,0x34,0x35,0x38,0x55,0x4c,0x2c,0x30,0x78,0x33,0x34,0x32,0x65,0x36,0x38,0x37,0x32,0x32,0x65,0x37,0x32,0x34,0x36,0x33,0x34,0x55,0x4c,0x2c, - 0x0a,0x30,0x78,0x33,0x36,0x32,0x64,0x36,0x63,0x37,0x37,0x32,0x64,0x37,0x37,0x34,0x31,0x33,0x36,0x55,0x4c,0x2c,0x30,0x78,0x64,0x63,0x62,0x32,0x61,0x33,0x63,0x64, - 0x62,0x32,0x63,0x64,0x31,0x31,0x64,0x63,0x55,0x4c,0x2c,0x30,0x78,0x62,0x34,0x65,0x65,0x37,0x33,0x32,0x39,0x65,0x65,0x32,0x39,0x39,0x64,0x62,0x34,0x55,0x4c,0x2c, - 0x30,0x78,0x35,0x62,0x66,0x62,0x62,0x36,0x31,0x36,0x66,0x62,0x31,0x36,0x34,0x64,0x35,0x62,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x34,0x66,0x36,0x35,0x33,0x30,0x31, - 0x66,0x36,0x30,0x31,0x61,0x35,0x61,0x34,0x55,0x4c,0x2c,0x30,0x78,0x37,0x36,0x34,0x64,0x65,0x63,0x64,0x37,0x34,0x64,0x64,0x37,0x61,0x31,0x37,0x36,0x55,0x4c,0x2c, - 0x30,0x78,0x62,0x37,0x36,0x31,0x37,0x35,0x61,0x33,0x36,0x31,0x61,0x33,0x31,0x34,0x62,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x64,0x63,0x65,0x66,0x61,0x34,0x39,0x63, - 0x65,0x34,0x39,0x33,0x34,0x37,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x32,0x37,0x62,0x61,0x34,0x38,0x64,0x37,0x62,0x38,0x64,0x64,0x66,0x35,0x32,0x55,0x4c,0x2c, - 0x30,0x78,0x64,0x64,0x33,0x65,0x61,0x31,0x34,0x32,0x33,0x65,0x34,0x32,0x39,0x66,0x64,0x64,0x55,0x4c,0x2c,0x30,0x78,0x35,0x65,0x37,0x31,0x62,0x63,0x39,0x33,0x37, - 0x31,0x39,0x33,0x63,0x64,0x35,0x65,0x55,0x4c,0x2c,0x30,0x78,0x31,0x33,0x39,0x37,0x32,0x36,0x61,0x32,0x39,0x37,0x61,0x32,0x62,0x31,0x31,0x33,0x55,0x4c,0x2c,0x0a, - 0x30,0x78,0x61,0x36,0x66,0x35,0x35,0x37,0x30,0x34,0x66,0x35,0x30,0x34,0x61,0x32,0x61,0x36,0x55,0x4c,0x2c,0x30,0x78,0x62,0x39,0x36,0x38,0x36,0x39,0x62,0x38,0x36, - 0x38,0x62,0x38,0x30,0x31,0x62,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30, - 0x78,0x63,0x31,0x32,0x63,0x39,0x39,0x37,0x34,0x32,0x63,0x37,0x34,0x62,0x35,0x63,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x30,0x36,0x30,0x38,0x30,0x61,0x30,0x36, - 0x30,0x61,0x30,0x65,0x30,0x34,0x30,0x55,0x4c,0x2c,0x30,0x78,0x65,0x33,0x31,0x66,0x64,0x64,0x32,0x31,0x31,0x66,0x32,0x31,0x63,0x32,0x65,0x33,0x55,0x4c,0x2c,0x30, - 0x78,0x37,0x39,0x63,0x38,0x66,0x32,0x34,0x33,0x63,0x38,0x34,0x33,0x33,0x61,0x37,0x39,0x55,0x4c,0x2c,0x30,0x78,0x62,0x36,0x65,0x64,0x37,0x37,0x32,0x63,0x65,0x64, - 0x32,0x63,0x39,0x61,0x62,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x34,0x62,0x65,0x62,0x33,0x64,0x39,0x62,0x65,0x64,0x39,0x30,0x64,0x64,0x34,0x55,0x4c,0x2c,0x30, - 0x78,0x38,0x64,0x34,0x36,0x30,0x31,0x63,0x61,0x34,0x36,0x63,0x61,0x34,0x37,0x38,0x64,0x55,0x4c,0x2c,0x30,0x78,0x36,0x37,0x64,0x39,0x63,0x65,0x37,0x30,0x64,0x39, - 0x37,0x30,0x31,0x37,0x36,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x32,0x34,0x62,0x65,0x34,0x64,0x64,0x34,0x62,0x64,0x64,0x61,0x66,0x37,0x32,0x55,0x4c,0x2c,0x0a,0x30, - 0x78,0x39,0x34,0x64,0x65,0x33,0x33,0x37,0x39,0x64,0x65,0x37,0x39,0x65,0x64,0x39,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x38,0x64,0x34,0x32,0x62,0x36,0x37,0x64,0x34, - 0x36,0x37,0x66,0x66,0x39,0x38,0x55,0x4c,0x2c,0x30,0x78,0x62,0x30,0x65,0x38,0x37,0x62,0x32,0x33,0x65,0x38,0x32,0x33,0x39,0x33,0x62,0x30,0x55,0x4c,0x2c,0x30,0x78, - 0x38,0x35,0x34,0x61,0x31,0x31,0x64,0x65,0x34,0x61,0x64,0x65,0x35,0x62,0x38,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x62,0x62,0x36,0x62,0x36,0x64,0x62,0x64,0x36,0x62, - 0x62,0x64,0x30,0x36,0x62,0x62,0x55,0x4c,0x2c,0x30,0x78,0x63,0x35,0x32,0x61,0x39,0x31,0x37,0x65,0x32,0x61,0x37,0x65,0x62,0x62,0x63,0x35,0x55,0x4c,0x2c,0x30,0x78, - 0x34,0x66,0x65,0x35,0x39,0x65,0x33,0x34,0x65,0x35,0x33,0x34,0x37,0x62,0x34,0x66,0x55,0x4c,0x2c,0x30,0x78,0x65,0x64,0x31,0x36,0x63,0x31,0x33,0x61,0x31,0x36,0x33, - 0x61,0x64,0x37,0x65,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x36,0x63,0x35,0x31,0x37,0x35,0x34,0x63,0x35,0x35,0x34,0x64,0x32,0x38,0x36,0x55,0x4c,0x2c,0x30,0x78, - 0x39,0x61,0x64,0x37,0x32,0x66,0x36,0x32,0x64,0x37,0x36,0x32,0x66,0x38,0x39,0x61,0x55,0x4c,0x2c,0x30,0x78,0x36,0x36,0x35,0x35,0x63,0x63,0x66,0x66,0x35,0x35,0x66, - 0x66,0x39,0x39,0x36,0x36,0x55,0x4c,0x2c,0x30,0x78,0x31,0x31,0x39,0x34,0x32,0x32,0x61,0x37,0x39,0x34,0x61,0x37,0x62,0x36,0x31,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78, - 0x38,0x61,0x63,0x66,0x30,0x66,0x34,0x61,0x63,0x66,0x34,0x61,0x63,0x30,0x38,0x61,0x55,0x4c,0x2c,0x30,0x78,0x65,0x39,0x31,0x30,0x63,0x39,0x33,0x30,0x31,0x30,0x33, - 0x30,0x64,0x39,0x65,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x34,0x30,0x36,0x30,0x38,0x30,0x61,0x30,0x36,0x30,0x61,0x30,0x65,0x30,0x34,0x55,0x4c,0x2c,0x30,0x78,0x66, - 0x65,0x38,0x31,0x65,0x37,0x39,0x38,0x38,0x31,0x39,0x38,0x36,0x36,0x66,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x30,0x66,0x30,0x35,0x62,0x30,0x62,0x66,0x30,0x30, - 0x62,0x61,0x62,0x61,0x30,0x55,0x4c,0x2c,0x30,0x78,0x37,0x38,0x34,0x34,0x66,0x30,0x63,0x63,0x34,0x34,0x63,0x63,0x62,0x34,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32, - 0x35,0x62,0x61,0x34,0x61,0x64,0x35,0x62,0x61,0x64,0x35,0x66,0x30,0x32,0x35,0x55,0x4c,0x2c,0x30,0x78,0x34,0x62,0x65,0x33,0x39,0x36,0x33,0x65,0x65,0x33,0x33,0x65, - 0x37,0x35,0x34,0x62,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x32,0x66,0x33,0x35,0x66,0x30,0x65,0x66,0x33,0x30,0x65,0x61,0x63,0x61,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35, - 0x64,0x66,0x65,0x62,0x61,0x31,0x39,0x66,0x65,0x31,0x39,0x34,0x34,0x35,0x64,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x63,0x30,0x31,0x62,0x35,0x62,0x63,0x30,0x35,0x62, - 0x64,0x62,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x35,0x38,0x61,0x30,0x61,0x38,0x35,0x38,0x61,0x38,0x35,0x38,0x30,0x30,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33, - 0x66,0x61,0x64,0x37,0x65,0x65,0x63,0x61,0x64,0x65,0x63,0x64,0x33,0x33,0x66,0x55,0x4c,0x2c,0x30,0x78,0x32,0x31,0x62,0x63,0x34,0x32,0x64,0x66,0x62,0x63,0x64,0x66, - 0x66,0x65,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x37,0x30,0x34,0x38,0x65,0x30,0x64,0x38,0x34,0x38,0x64,0x38,0x61,0x38,0x37,0x30,0x55,0x4c,0x2c,0x30,0x78,0x66,0x31, - 0x30,0x34,0x66,0x39,0x30,0x63,0x30,0x34,0x30,0x63,0x66,0x64,0x66,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x33,0x64,0x66,0x63,0x36,0x37,0x61,0x64,0x66,0x37,0x61, - 0x31,0x39,0x36,0x33,0x55,0x4c,0x2c,0x30,0x78,0x37,0x37,0x63,0x31,0x65,0x65,0x35,0x38,0x63,0x31,0x35,0x38,0x32,0x66,0x37,0x37,0x55,0x4c,0x2c,0x30,0x78,0x61,0x66, - 0x37,0x35,0x34,0x35,0x39,0x66,0x37,0x35,0x39,0x66,0x33,0x30,0x61,0x66,0x55,0x4c,0x2c,0x30,0x78,0x34,0x32,0x36,0x33,0x38,0x34,0x61,0x35,0x36,0x33,0x61,0x35,0x65, - 0x37,0x34,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x30,0x33,0x30,0x34,0x30,0x35,0x30,0x33,0x30,0x35,0x30,0x37,0x30,0x32,0x30,0x55,0x4c,0x2c,0x30,0x78,0x65,0x35, - 0x31,0x61,0x64,0x31,0x32,0x65,0x31,0x61,0x32,0x65,0x63,0x62,0x65,0x35,0x55,0x4c,0x2c,0x30,0x78,0x66,0x64,0x30,0x65,0x65,0x31,0x31,0x32,0x30,0x65,0x31,0x32,0x65, - 0x66,0x66,0x64,0x55,0x4c,0x2c,0x30,0x78,0x62,0x66,0x36,0x64,0x36,0x35,0x62,0x37,0x36,0x64,0x62,0x37,0x30,0x38,0x62,0x66,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x31, - 0x34,0x63,0x31,0x39,0x64,0x34,0x34,0x63,0x64,0x34,0x35,0x35,0x38,0x31,0x55,0x4c,0x2c,0x30,0x78,0x31,0x38,0x31,0x34,0x33,0x30,0x33,0x63,0x31,0x34,0x33,0x63,0x32, - 0x34,0x31,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x36,0x33,0x35,0x34,0x63,0x35,0x66,0x33,0x35,0x35,0x66,0x37,0x39,0x32,0x36,0x55,0x4c,0x2c,0x30,0x78,0x63,0x33,0x32, - 0x66,0x39,0x64,0x37,0x31,0x32,0x66,0x37,0x31,0x62,0x32,0x63,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x62,0x65,0x65,0x31,0x36,0x37,0x33,0x38,0x65,0x31,0x33,0x38,0x38, - 0x36,0x62,0x65,0x55,0x4c,0x2c,0x30,0x78,0x33,0x35,0x61,0x32,0x36,0x61,0x66,0x64,0x61,0x32,0x66,0x64,0x63,0x38,0x33,0x35,0x55,0x4c,0x2c,0x30,0x78,0x38,0x38,0x63, - 0x63,0x30,0x62,0x34,0x66,0x63,0x63,0x34,0x66,0x63,0x37,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x65,0x33,0x39,0x35,0x63,0x34,0x62,0x33,0x39,0x34,0x62,0x36,0x35, - 0x32,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x33,0x35,0x37,0x33,0x64,0x66,0x39,0x35,0x37,0x66,0x39,0x36,0x61,0x39,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x35,0x66, - 0x32,0x61,0x61,0x30,0x64,0x66,0x32,0x30,0x64,0x35,0x38,0x35,0x35,0x55,0x4c,0x2c,0x30,0x78,0x66,0x63,0x38,0x32,0x65,0x33,0x39,0x64,0x38,0x32,0x39,0x64,0x36,0x31, - 0x66,0x63,0x55,0x4c,0x2c,0x30,0x78,0x37,0x61,0x34,0x37,0x66,0x34,0x63,0x39,0x34,0x37,0x63,0x39,0x62,0x33,0x37,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x38,0x61, - 0x63,0x38,0x62,0x65,0x66,0x61,0x63,0x65,0x66,0x32,0x37,0x63,0x38,0x55,0x4c,0x2c,0x30,0x78,0x62,0x61,0x65,0x37,0x36,0x66,0x33,0x32,0x65,0x37,0x33,0x32,0x38,0x38, - 0x62,0x61,0x55,0x4c,0x2c,0x30,0x78,0x33,0x32,0x32,0x62,0x36,0x34,0x37,0x64,0x32,0x62,0x37,0x64,0x34,0x66,0x33,0x32,0x55,0x4c,0x2c,0x30,0x78,0x65,0x36,0x39,0x35, - 0x64,0x37,0x61,0x34,0x39,0x35,0x61,0x34,0x34,0x32,0x65,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x30,0x61,0x30,0x39,0x62,0x66,0x62,0x61,0x30,0x66,0x62,0x33,0x62, - 0x63,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x39,0x39,0x38,0x33,0x32,0x62,0x33,0x39,0x38,0x62,0x33,0x61,0x61,0x31,0x39,0x55,0x4c,0x2c,0x30,0x78,0x39,0x65,0x64,0x31, - 0x32,0x37,0x36,0x38,0x64,0x31,0x36,0x38,0x66,0x36,0x39,0x65,0x55,0x4c,0x2c,0x30,0x78,0x61,0x33,0x37,0x66,0x35,0x64,0x38,0x31,0x37,0x66,0x38,0x31,0x32,0x32,0x61, - 0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x34,0x36,0x36,0x38,0x38,0x61,0x61,0x36,0x36,0x61,0x61,0x65,0x65,0x34,0x34,0x55,0x4c,0x2c,0x30,0x78,0x35,0x34,0x37,0x65, - 0x61,0x38,0x38,0x32,0x37,0x65,0x38,0x32,0x64,0x36,0x35,0x34,0x55,0x4c,0x2c,0x30,0x78,0x33,0x62,0x61,0x62,0x37,0x36,0x65,0x36,0x61,0x62,0x65,0x36,0x64,0x64,0x33, - 0x62,0x55,0x4c,0x2c,0x30,0x78,0x30,0x62,0x38,0x33,0x31,0x36,0x39,0x65,0x38,0x33,0x39,0x65,0x39,0x35,0x30,0x62,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x63,0x63,0x61, - 0x30,0x33,0x34,0x35,0x63,0x61,0x34,0x35,0x63,0x39,0x38,0x63,0x55,0x4c,0x2c,0x30,0x78,0x63,0x37,0x32,0x39,0x39,0x35,0x37,0x62,0x32,0x39,0x37,0x62,0x62,0x63,0x63, - 0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x62,0x64,0x33,0x64,0x36,0x36,0x65,0x64,0x33,0x36,0x65,0x30,0x35,0x36,0x62,0x55,0x4c,0x2c,0x30,0x78,0x32,0x38,0x33,0x63,0x35, - 0x30,0x34,0x34,0x33,0x63,0x34,0x34,0x36,0x63,0x32,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x37,0x37,0x39,0x35,0x35,0x38,0x62,0x37,0x39,0x38,0x62,0x32,0x63,0x61, - 0x37,0x55,0x4c,0x2c,0x30,0x78,0x62,0x63,0x65,0x32,0x36,0x33,0x33,0x64,0x65,0x32,0x33,0x64,0x38,0x31,0x62,0x63,0x55,0x4c,0x2c,0x30,0x78,0x31,0x36,0x31,0x64,0x32, - 0x63,0x32,0x37,0x31,0x64,0x32,0x37,0x33,0x31,0x31,0x36,0x55,0x4c,0x2c,0x30,0x78,0x61,0x64,0x37,0x36,0x34,0x31,0x39,0x61,0x37,0x36,0x39,0x61,0x33,0x37,0x61,0x64, - 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x62,0x33,0x62,0x61,0x64,0x34,0x64,0x33,0x62,0x34,0x64,0x39,0x36,0x64,0x62,0x55,0x4c,0x2c,0x30,0x78,0x36,0x34,0x35,0x36,0x63, - 0x38,0x66,0x61,0x35,0x36,0x66,0x61,0x39,0x65,0x36,0x34,0x55,0x4c,0x2c,0x30,0x78,0x37,0x34,0x34,0x65,0x65,0x38,0x64,0x32,0x34,0x65,0x64,0x32,0x61,0x36,0x37,0x34, - 0x55,0x4c,0x2c,0x30,0x78,0x31,0x34,0x31,0x65,0x32,0x38,0x32,0x32,0x31,0x65,0x32,0x32,0x33,0x36,0x31,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x32,0x64,0x62,0x33, - 0x66,0x37,0x36,0x64,0x62,0x37,0x36,0x65,0x34,0x39,0x32,0x55,0x4c,0x2c,0x30,0x78,0x30,0x63,0x30,0x61,0x31,0x38,0x31,0x65,0x30,0x61,0x31,0x65,0x31,0x32,0x30,0x63, - 0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x36,0x63,0x39,0x30,0x62,0x34,0x36,0x63,0x62,0x34,0x66,0x63,0x34,0x38,0x55,0x4c,0x2c,0x30,0x78,0x62,0x38,0x65,0x34,0x36,0x62, - 0x33,0x37,0x65,0x34,0x33,0x37,0x38,0x66,0x62,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x66,0x35,0x64,0x32,0x35,0x65,0x37,0x35,0x64,0x65,0x37,0x37,0x38,0x39,0x66, - 0x55,0x4c,0x2c,0x30,0x78,0x62,0x64,0x36,0x65,0x36,0x31,0x62,0x32,0x36,0x65,0x62,0x32,0x30,0x66,0x62,0x64,0x55,0x4c,0x2c,0x30,0x78,0x34,0x33,0x65,0x66,0x38,0x36, - 0x32,0x61,0x65,0x66,0x32,0x61,0x36,0x39,0x34,0x33,0x55,0x4c,0x2c,0x30,0x78,0x63,0x34,0x61,0x36,0x39,0x33,0x66,0x31,0x61,0x36,0x66,0x31,0x33,0x35,0x63,0x34,0x55, - 0x4c,0x2c,0x0a,0x30,0x78,0x33,0x39,0x61,0x38,0x37,0x32,0x65,0x33,0x61,0x38,0x65,0x33,0x64,0x61,0x33,0x39,0x55,0x4c,0x2c,0x30,0x78,0x33,0x31,0x61,0x34,0x36,0x32, - 0x66,0x37,0x61,0x34,0x66,0x37,0x63,0x36,0x33,0x31,0x55,0x4c,0x2c,0x30,0x78,0x64,0x33,0x33,0x37,0x62,0x64,0x35,0x39,0x33,0x37,0x35,0x39,0x38,0x61,0x64,0x33,0x55, - 0x4c,0x2c,0x30,0x78,0x66,0x32,0x38,0x62,0x66,0x66,0x38,0x36,0x38,0x62,0x38,0x36,0x37,0x34,0x66,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x35,0x33,0x32,0x62,0x31, - 0x35,0x36,0x33,0x32,0x35,0x36,0x38,0x33,0x64,0x35,0x55,0x4c,0x2c,0x30,0x78,0x38,0x62,0x34,0x33,0x30,0x64,0x63,0x35,0x34,0x33,0x63,0x35,0x34,0x65,0x38,0x62,0x55, - 0x4c,0x2c,0x30,0x78,0x36,0x65,0x35,0x39,0x64,0x63,0x65,0x62,0x35,0x39,0x65,0x62,0x38,0x35,0x36,0x65,0x55,0x4c,0x2c,0x30,0x78,0x64,0x61,0x62,0x37,0x61,0x66,0x63, - 0x32,0x62,0x37,0x63,0x32,0x31,0x38,0x64,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x31,0x38,0x63,0x30,0x32,0x38,0x66,0x38,0x63,0x38,0x66,0x38,0x65,0x30,0x31,0x55, - 0x4c,0x2c,0x30,0x78,0x62,0x31,0x36,0x34,0x37,0x39,0x61,0x63,0x36,0x34,0x61,0x63,0x31,0x64,0x62,0x31,0x55,0x4c,0x2c,0x30,0x78,0x39,0x63,0x64,0x32,0x32,0x33,0x36, - 0x64,0x64,0x32,0x36,0x64,0x66,0x31,0x39,0x63,0x55,0x4c,0x2c,0x30,0x78,0x34,0x39,0x65,0x30,0x39,0x32,0x33,0x62,0x65,0x30,0x33,0x62,0x37,0x32,0x34,0x39,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x64,0x38,0x62,0x34,0x61,0x62,0x63,0x37,0x62,0x34,0x63,0x37,0x31,0x66,0x64,0x38,0x55,0x4c,0x2c,0x30,0x78,0x61,0x63,0x66,0x61,0x34,0x33,0x31, - 0x35,0x66,0x61,0x31,0x35,0x62,0x39,0x61,0x63,0x55,0x4c,0x2c,0x30,0x78,0x66,0x33,0x30,0x37,0x66,0x64,0x30,0x39,0x30,0x37,0x30,0x39,0x66,0x61,0x66,0x33,0x55,0x4c, - 0x2c,0x30,0x78,0x63,0x66,0x32,0x35,0x38,0x35,0x36,0x66,0x32,0x35,0x36,0x66,0x61,0x30,0x63,0x66,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x61,0x61,0x66,0x38,0x66,0x65, - 0x61,0x61,0x66,0x65,0x61,0x32,0x30,0x63,0x61,0x55,0x4c,0x2c,0x30,0x78,0x66,0x34,0x38,0x65,0x66,0x33,0x38,0x39,0x38,0x65,0x38,0x39,0x37,0x64,0x66,0x34,0x55,0x4c, - 0x2c,0x30,0x78,0x34,0x37,0x65,0x39,0x38,0x65,0x32,0x30,0x65,0x39,0x32,0x30,0x36,0x37,0x34,0x37,0x55,0x4c,0x2c,0x30,0x78,0x31,0x30,0x31,0x38,0x32,0x30,0x32,0x38, - 0x31,0x38,0x32,0x38,0x33,0x38,0x31,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x66,0x64,0x35,0x64,0x65,0x36,0x34,0x64,0x35,0x36,0x34,0x30,0x62,0x36,0x66,0x55,0x4c, - 0x2c,0x30,0x78,0x66,0x30,0x38,0x38,0x66,0x62,0x38,0x33,0x38,0x38,0x38,0x33,0x37,0x33,0x66,0x30,0x55,0x4c,0x2c,0x30,0x78,0x34,0x61,0x36,0x66,0x39,0x34,0x62,0x31, - 0x36,0x66,0x62,0x31,0x66,0x62,0x34,0x61,0x55,0x4c,0x2c,0x30,0x78,0x35,0x63,0x37,0x32,0x62,0x38,0x39,0x36,0x37,0x32,0x39,0x36,0x63,0x61,0x35,0x63,0x55,0x4c,0x2c, - 0x0a,0x30,0x78,0x33,0x38,0x32,0x34,0x37,0x30,0x36,0x63,0x32,0x34,0x36,0x63,0x35,0x34,0x33,0x38,0x55,0x4c,0x2c,0x30,0x78,0x35,0x37,0x66,0x31,0x61,0x65,0x30,0x38, - 0x66,0x31,0x30,0x38,0x35,0x66,0x35,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x33,0x63,0x37,0x65,0x36,0x35,0x32,0x63,0x37,0x35,0x32,0x32,0x31,0x37,0x33,0x55,0x4c,0x2c, - 0x30,0x78,0x39,0x37,0x35,0x31,0x33,0x35,0x66,0x33,0x35,0x31,0x66,0x33,0x36,0x34,0x39,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x62,0x32,0x33,0x38,0x64,0x36,0x35, - 0x32,0x33,0x36,0x35,0x61,0x65,0x63,0x62,0x55,0x4c,0x2c,0x30,0x78,0x61,0x31,0x37,0x63,0x35,0x39,0x38,0x34,0x37,0x63,0x38,0x34,0x32,0x35,0x61,0x31,0x55,0x4c,0x2c, - 0x30,0x78,0x65,0x38,0x39,0x63,0x63,0x62,0x62,0x66,0x39,0x63,0x62,0x66,0x35,0x37,0x65,0x38,0x55,0x4c,0x2c,0x30,0x78,0x33,0x65,0x32,0x31,0x37,0x63,0x36,0x33,0x32, - 0x31,0x36,0x33,0x35,0x64,0x33,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x36,0x64,0x64,0x33,0x37,0x37,0x63,0x64,0x64,0x37,0x63,0x65,0x61,0x39,0x36,0x55,0x4c,0x2c, - 0x30,0x78,0x36,0x31,0x64,0x63,0x63,0x32,0x37,0x66,0x64,0x63,0x37,0x66,0x31,0x65,0x36,0x31,0x55,0x4c,0x2c,0x30,0x78,0x30,0x64,0x38,0x36,0x31,0x61,0x39,0x31,0x38, - 0x36,0x39,0x31,0x39,0x63,0x30,0x64,0x55,0x4c,0x2c,0x30,0x78,0x30,0x66,0x38,0x35,0x31,0x65,0x39,0x34,0x38,0x35,0x39,0x34,0x39,0x62,0x30,0x66,0x55,0x4c,0x2c,0x0a, - 0x30,0x78,0x65,0x30,0x39,0x30,0x64,0x62,0x61,0x62,0x39,0x30,0x61,0x62,0x34,0x62,0x65,0x30,0x55,0x4c,0x2c,0x30,0x78,0x37,0x63,0x34,0x32,0x66,0x38,0x63,0x36,0x34, - 0x32,0x63,0x36,0x62,0x61,0x37,0x63,0x55,0x4c,0x2c,0x30,0x78,0x37,0x31,0x63,0x34,0x65,0x32,0x35,0x37,0x63,0x34,0x35,0x37,0x32,0x36,0x37,0x31,0x55,0x4c,0x2c,0x30, - 0x78,0x63,0x63,0x61,0x61,0x38,0x33,0x65,0x35,0x61,0x61,0x65,0x35,0x32,0x39,0x63,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x30,0x64,0x38,0x33,0x62,0x37,0x33,0x64, - 0x38,0x37,0x33,0x65,0x33,0x39,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x36,0x30,0x35,0x30,0x63,0x30,0x66,0x30,0x35,0x30,0x66,0x30,0x39,0x30,0x36,0x55,0x4c,0x2c,0x30, - 0x78,0x66,0x37,0x30,0x31,0x66,0x35,0x30,0x33,0x30,0x31,0x30,0x33,0x66,0x34,0x66,0x37,0x55,0x4c,0x2c,0x30,0x78,0x31,0x63,0x31,0x32,0x33,0x38,0x33,0x36,0x31,0x32, - 0x33,0x36,0x32,0x61,0x31,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x32,0x61,0x33,0x39,0x66,0x66,0x65,0x61,0x33,0x66,0x65,0x33,0x63,0x63,0x32,0x55,0x4c,0x2c,0x30, - 0x78,0x36,0x61,0x35,0x66,0x64,0x34,0x65,0x31,0x35,0x66,0x65,0x31,0x38,0x62,0x36,0x61,0x55,0x4c,0x2c,0x30,0x78,0x61,0x65,0x66,0x39,0x34,0x37,0x31,0x30,0x66,0x39, - 0x31,0x30,0x62,0x65,0x61,0x65,0x55,0x4c,0x2c,0x30,0x78,0x36,0x39,0x64,0x30,0x64,0x32,0x36,0x62,0x64,0x30,0x36,0x62,0x30,0x32,0x36,0x39,0x55,0x4c,0x2c,0x0a,0x30, - 0x78,0x31,0x37,0x39,0x31,0x32,0x65,0x61,0x38,0x39,0x31,0x61,0x38,0x62,0x66,0x31,0x37,0x55,0x4c,0x2c,0x30,0x78,0x39,0x39,0x35,0x38,0x32,0x39,0x65,0x38,0x35,0x38, - 0x65,0x38,0x37,0x31,0x39,0x39,0x55,0x4c,0x2c,0x30,0x78,0x33,0x61,0x32,0x37,0x37,0x34,0x36,0x39,0x32,0x37,0x36,0x39,0x35,0x33,0x33,0x61,0x55,0x4c,0x2c,0x30,0x78, - 0x32,0x37,0x62,0x39,0x34,0x65,0x64,0x30,0x62,0x39,0x64,0x30,0x66,0x37,0x32,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x39,0x33,0x38,0x61,0x39,0x34,0x38,0x33,0x38, - 0x34,0x38,0x39,0x31,0x64,0x39,0x55,0x4c,0x2c,0x30,0x78,0x65,0x62,0x31,0x33,0x63,0x64,0x33,0x35,0x31,0x33,0x33,0x35,0x64,0x65,0x65,0x62,0x55,0x4c,0x2c,0x30,0x78, - 0x32,0x62,0x62,0x33,0x35,0x36,0x63,0x65,0x62,0x33,0x63,0x65,0x65,0x35,0x32,0x62,0x55,0x4c,0x2c,0x30,0x78,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x33,0x33,0x35, - 0x35,0x37,0x37,0x32,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x32,0x62,0x62,0x62,0x66,0x64,0x36,0x62,0x62,0x64,0x36,0x30,0x34,0x64,0x32,0x55,0x4c,0x2c,0x30,0x78, - 0x61,0x39,0x37,0x30,0x34,0x39,0x39,0x30,0x37,0x30,0x39,0x30,0x33,0x39,0x61,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x37,0x38,0x39,0x30,0x65,0x38,0x30,0x38,0x39,0x38, - 0x30,0x38,0x37,0x30,0x37,0x55,0x4c,0x2c,0x30,0x78,0x33,0x33,0x61,0x37,0x36,0x36,0x66,0x32,0x61,0x37,0x66,0x32,0x63,0x31,0x33,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78, - 0x32,0x64,0x62,0x36,0x35,0x61,0x63,0x31,0x62,0x36,0x63,0x31,0x65,0x63,0x32,0x64,0x55,0x4c,0x2c,0x30,0x78,0x33,0x63,0x32,0x32,0x37,0x38,0x36,0x36,0x32,0x32,0x36, - 0x36,0x35,0x61,0x33,0x63,0x55,0x4c,0x2c,0x30,0x78,0x31,0x35,0x39,0x32,0x32,0x61,0x61,0x64,0x39,0x32,0x61,0x64,0x62,0x38,0x31,0x35,0x55,0x4c,0x2c,0x30,0x78,0x63, - 0x39,0x32,0x30,0x38,0x39,0x36,0x30,0x32,0x30,0x36,0x30,0x61,0x39,0x63,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x37,0x34,0x39,0x31,0x35,0x64,0x62,0x34,0x39,0x64, - 0x62,0x35,0x63,0x38,0x37,0x55,0x4c,0x2c,0x30,0x78,0x61,0x61,0x66,0x66,0x34,0x66,0x31,0x61,0x66,0x66,0x31,0x61,0x62,0x30,0x61,0x61,0x55,0x4c,0x2c,0x30,0x78,0x35, - 0x30,0x37,0x38,0x61,0x30,0x38,0x38,0x37,0x38,0x38,0x38,0x64,0x38,0x35,0x30,0x55,0x4c,0x2c,0x30,0x78,0x61,0x35,0x37,0x61,0x35,0x31,0x38,0x65,0x37,0x61,0x38,0x65, - 0x32,0x62,0x61,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x33,0x38,0x66,0x30,0x36,0x38,0x61,0x38,0x66,0x38,0x61,0x38,0x39,0x30,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35, - 0x39,0x66,0x38,0x62,0x32,0x31,0x33,0x66,0x38,0x31,0x33,0x34,0x61,0x35,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x39,0x38,0x30,0x31,0x32,0x39,0x62,0x38,0x30,0x39,0x62, - 0x39,0x32,0x30,0x39,0x55,0x4c,0x2c,0x30,0x78,0x31,0x61,0x31,0x37,0x33,0x34,0x33,0x39,0x31,0x37,0x33,0x39,0x32,0x33,0x31,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36, - 0x35,0x64,0x61,0x63,0x61,0x37,0x35,0x64,0x61,0x37,0x35,0x31,0x30,0x36,0x35,0x55,0x4c,0x2c,0x30,0x78,0x64,0x37,0x33,0x31,0x62,0x35,0x35,0x33,0x33,0x31,0x35,0x33, - 0x38,0x34,0x64,0x37,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x63,0x36,0x31,0x33,0x35,0x31,0x63,0x36,0x35,0x31,0x64,0x35,0x38,0x34,0x55,0x4c,0x2c,0x30,0x78,0x64,0x30, - 0x62,0x38,0x62,0x62,0x64,0x33,0x62,0x38,0x64,0x33,0x30,0x33,0x64,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x32,0x63,0x33,0x31,0x66,0x35,0x65,0x63,0x33,0x35,0x65, - 0x64,0x63,0x38,0x32,0x55,0x4c,0x2c,0x30,0x78,0x32,0x39,0x62,0x30,0x35,0x32,0x63,0x62,0x62,0x30,0x63,0x62,0x65,0x32,0x32,0x39,0x55,0x4c,0x2c,0x30,0x78,0x35,0x61, - 0x37,0x37,0x62,0x34,0x39,0x39,0x37,0x37,0x39,0x39,0x63,0x33,0x35,0x61,0x55,0x4c,0x2c,0x30,0x78,0x31,0x65,0x31,0x31,0x33,0x63,0x33,0x33,0x31,0x31,0x33,0x33,0x32, - 0x64,0x31,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x62,0x63,0x62,0x66,0x36,0x34,0x36,0x63,0x62,0x34,0x36,0x33,0x64,0x37,0x62,0x55,0x4c,0x2c,0x30,0x78,0x61,0x38, - 0x66,0x63,0x34,0x62,0x31,0x66,0x66,0x63,0x31,0x66,0x62,0x37,0x61,0x38,0x55,0x4c,0x2c,0x30,0x78,0x36,0x64,0x64,0x36,0x64,0x61,0x36,0x31,0x64,0x36,0x36,0x31,0x30, - 0x63,0x36,0x64,0x55,0x4c,0x2c,0x30,0x78,0x32,0x63,0x33,0x61,0x35,0x38,0x34,0x65,0x33,0x61,0x34,0x65,0x36,0x32,0x32,0x63,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x53,0x54, - 0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x34,0x5f,0x47, - 0x5b,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x41,0x35,0x46,0x34,0x33,0x32,0x43,0x36,0x43,0x36,0x41,0x35,0x39,0x37,0x46,0x34,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34, - 0x39,0x37,0x36,0x46,0x46,0x38,0x46,0x38,0x38,0x34,0x45,0x42,0x39,0x37,0x55,0x4c,0x2c,0x30,0x78,0x39,0x39,0x42,0x30,0x35,0x45,0x45,0x45,0x45,0x45,0x39,0x39,0x43, - 0x37,0x42,0x30,0x55,0x4c,0x2c,0x30,0x78,0x38,0x44,0x38,0x43,0x37,0x41,0x46,0x36,0x46,0x36,0x38,0x44,0x46,0x37,0x38,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x44, - 0x31,0x37,0x45,0x38,0x46,0x46,0x46,0x46,0x30,0x44,0x45,0x35,0x31,0x37,0x55,0x4c,0x2c,0x30,0x78,0x42,0x44,0x44,0x43,0x30,0x41,0x44,0x36,0x44,0x36,0x42,0x44,0x42, - 0x37,0x44,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x31,0x43,0x38,0x31,0x36,0x44,0x45,0x44,0x45,0x42,0x31,0x41,0x37,0x43,0x38,0x55,0x4c,0x2c,0x30,0x78,0x35,0x34,0x46, - 0x43,0x36,0x44,0x39,0x31,0x39,0x31,0x35,0x34,0x33,0x39,0x46,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x30,0x46,0x30,0x39,0x30,0x36,0x30,0x36,0x30,0x35,0x30,0x43, - 0x30,0x46,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x33,0x30,0x35,0x30,0x37,0x30,0x32,0x30,0x32,0x30,0x33,0x30,0x34,0x30,0x35,0x55,0x4c,0x2c,0x30,0x78,0x41,0x39,0x45, - 0x30,0x32,0x45,0x43,0x45,0x43,0x45,0x41,0x39,0x38,0x37,0x45,0x30,0x55,0x4c,0x2c,0x30,0x78,0x37,0x44,0x38,0x37,0x44,0x31,0x35,0x36,0x35,0x36,0x37,0x44,0x41,0x43, - 0x38,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x39,0x32,0x42,0x43,0x43,0x45,0x37,0x45,0x37,0x31,0x39,0x44,0x35,0x32,0x42,0x55,0x4c,0x2c,0x30,0x78,0x36,0x32,0x41, - 0x36,0x31,0x33,0x42,0x35,0x42,0x35,0x36,0x32,0x37,0x31,0x41,0x36,0x55,0x4c,0x2c,0x30,0x78,0x45,0x36,0x33,0x31,0x37,0x43,0x34,0x44,0x34,0x44,0x45,0x36,0x39,0x41, - 0x33,0x31,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x42,0x35,0x35,0x39,0x45,0x43,0x45,0x43,0x39,0x41,0x43,0x33,0x42,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x35,0x43, - 0x46,0x34,0x30,0x38,0x46,0x38,0x46,0x34,0x35,0x30,0x35,0x43,0x46,0x55,0x4c,0x2c,0x30,0x78,0x39,0x44,0x42,0x43,0x41,0x33,0x31,0x46,0x31,0x46,0x39,0x44,0x33,0x45, - 0x42,0x43,0x55,0x4c,0x2c,0x30,0x78,0x34,0x30,0x43,0x30,0x34,0x39,0x38,0x39,0x38,0x39,0x34,0x30,0x30,0x39,0x43,0x30,0x55,0x4c,0x2c,0x30,0x78,0x38,0x37,0x39,0x32, - 0x36,0x38,0x46,0x41,0x46,0x41,0x38,0x37,0x45,0x46,0x39,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x35,0x33,0x46,0x44,0x30,0x45,0x46,0x45,0x46,0x31,0x35,0x43,0x35, - 0x33,0x46,0x55,0x4c,0x2c,0x30,0x78,0x45,0x42,0x32,0x36,0x39,0x34,0x42,0x32,0x42,0x32,0x45,0x42,0x37,0x46,0x32,0x36,0x55,0x4c,0x2c,0x30,0x78,0x43,0x39,0x34,0x30, - 0x43,0x45,0x38,0x45,0x38,0x45,0x43,0x39,0x30,0x37,0x34,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x42,0x31,0x44,0x45,0x36,0x46,0x42,0x46,0x42,0x30,0x42,0x45,0x44,0x31, - 0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x45,0x43,0x32,0x46,0x36,0x45,0x34,0x31,0x34,0x31,0x45,0x43,0x38,0x32,0x32,0x46,0x55,0x4c,0x2c,0x30,0x78,0x36,0x37,0x41,0x39, - 0x31,0x41,0x42,0x33,0x42,0x33,0x36,0x37,0x37,0x44,0x41,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x44,0x31,0x43,0x34,0x33,0x35,0x46,0x35,0x46,0x46,0x44,0x42,0x45,0x31, - 0x43,0x55,0x4c,0x2c,0x30,0x78,0x45,0x41,0x32,0x35,0x36,0x30,0x34,0x35,0x34,0x35,0x45,0x41,0x38,0x41,0x32,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x46,0x44,0x41, - 0x46,0x39,0x32,0x33,0x32,0x33,0x42,0x46,0x34,0x36,0x44,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x37,0x30,0x32,0x35,0x31,0x35,0x33,0x35,0x33,0x46,0x37,0x41,0x36,0x30, - 0x32,0x55,0x4c,0x2c,0x30,0x78,0x39,0x36,0x41,0x31,0x34,0x35,0x45,0x34,0x45,0x34,0x39,0x36,0x44,0x33,0x41,0x31,0x55,0x4c,0x2c,0x30,0x78,0x35,0x42,0x45,0x44,0x37, - 0x36,0x39,0x42,0x39,0x42,0x35,0x42,0x32,0x44,0x45,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x32,0x35,0x44,0x32,0x38,0x37,0x35,0x37,0x35,0x43,0x32,0x45,0x41,0x35, - 0x44,0x55,0x4c,0x2c,0x30,0x78,0x31,0x43,0x32,0x34,0x43,0x35,0x45,0x31,0x45,0x31,0x31,0x43,0x44,0x39,0x32,0x34,0x55,0x4c,0x2c,0x30,0x78,0x41,0x45,0x45,0x39,0x44, - 0x34,0x33,0x44,0x33,0x44,0x41,0x45,0x37,0x41,0x45,0x39,0x55,0x4c,0x2c,0x30,0x78,0x36,0x41,0x42,0x45,0x46,0x32,0x34,0x43,0x34,0x43,0x36,0x41,0x39,0x38,0x42,0x45, - 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x41,0x45,0x45,0x38,0x32,0x36,0x43,0x36,0x43,0x35,0x41,0x44,0x38,0x45,0x45,0x55,0x4c,0x2c,0x30,0x78,0x34,0x31,0x43,0x33,0x42, - 0x44,0x37,0x45,0x37,0x45,0x34,0x31,0x46,0x43,0x43,0x33,0x55,0x4c,0x2c,0x30,0x78,0x30,0x32,0x30,0x36,0x46,0x33,0x46,0x35,0x46,0x35,0x30,0x32,0x46,0x31,0x30,0x36, - 0x55,0x4c,0x2c,0x30,0x78,0x34,0x46,0x44,0x31,0x35,0x32,0x38,0x33,0x38,0x33,0x34,0x46,0x31,0x44,0x44,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x43,0x45,0x34,0x38, - 0x43,0x36,0x38,0x36,0x38,0x35,0x43,0x44,0x30,0x45,0x34,0x55,0x4c,0x2c,0x30,0x78,0x46,0x34,0x30,0x37,0x35,0x36,0x35,0x31,0x35,0x31,0x46,0x34,0x41,0x32,0x30,0x37, - 0x55,0x4c,0x2c,0x30,0x78,0x33,0x34,0x35,0x43,0x38,0x44,0x44,0x31,0x44,0x31,0x33,0x34,0x42,0x39,0x35,0x43,0x55,0x4c,0x2c,0x30,0x78,0x30,0x38,0x31,0x38,0x45,0x31, - 0x46,0x39,0x46,0x39,0x30,0x38,0x45,0x39,0x31,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x33,0x41,0x45,0x34,0x43,0x45,0x32,0x45,0x32,0x39,0x33,0x44,0x46,0x41,0x45, - 0x55,0x4c,0x2c,0x30,0x78,0x37,0x33,0x39,0x35,0x33,0x45,0x41,0x42,0x41,0x42,0x37,0x33,0x34,0x44,0x39,0x35,0x55,0x4c,0x2c,0x30,0x78,0x35,0x33,0x46,0x35,0x39,0x37, - 0x36,0x32,0x36,0x32,0x35,0x33,0x43,0x34,0x46,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x46,0x34,0x31,0x36,0x42,0x32,0x41,0x32,0x41,0x33,0x46,0x35,0x34,0x34,0x31,0x55, - 0x4c,0x2c,0x0a,0x30,0x78,0x30,0x43,0x31,0x34,0x31,0x43,0x30,0x38,0x30,0x38,0x30,0x43,0x31,0x30,0x31,0x34,0x55,0x4c,0x2c,0x30,0x78,0x35,0x32,0x46,0x36,0x36,0x33, - 0x39,0x35,0x39,0x35,0x35,0x32,0x33,0x31,0x46,0x36,0x55,0x4c,0x2c,0x30,0x78,0x36,0x35,0x41,0x46,0x45,0x39,0x34,0x36,0x34,0x36,0x36,0x35,0x38,0x43,0x41,0x46,0x55, - 0x4c,0x2c,0x30,0x78,0x35,0x45,0x45,0x32,0x37,0x46,0x39,0x44,0x39,0x44,0x35,0x45,0x32,0x31,0x45,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x38,0x37,0x38,0x34,0x38, - 0x33,0x30,0x33,0x30,0x32,0x38,0x36,0x30,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x41,0x31,0x46,0x38,0x43,0x46,0x33,0x37,0x33,0x37,0x41,0x31,0x36,0x45,0x46,0x38,0x55, - 0x4c,0x2c,0x30,0x78,0x30,0x46,0x31,0x31,0x31,0x42,0x30,0x41,0x30,0x41,0x30,0x46,0x31,0x34,0x31,0x31,0x55,0x4c,0x2c,0x30,0x78,0x42,0x35,0x43,0x34,0x45,0x42,0x32, - 0x46,0x32,0x46,0x42,0x35,0x35,0x45,0x43,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x39,0x31,0x42,0x31,0x35,0x30,0x45,0x30,0x45,0x30,0x39,0x31,0x43,0x31,0x42,0x55, - 0x4c,0x2c,0x30,0x78,0x33,0x36,0x35,0x41,0x37,0x45,0x32,0x34,0x32,0x34,0x33,0x36,0x34,0x38,0x35,0x41,0x55,0x4c,0x2c,0x30,0x78,0x39,0x42,0x42,0x36,0x41,0x44,0x31, - 0x42,0x31,0x42,0x39,0x42,0x33,0x36,0x42,0x36,0x55,0x4c,0x2c,0x30,0x78,0x33,0x44,0x34,0x37,0x39,0x38,0x44,0x46,0x44,0x46,0x33,0x44,0x41,0x35,0x34,0x37,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x32,0x36,0x36,0x41,0x41,0x37,0x43,0x44,0x43,0x44,0x32,0x36,0x38,0x31,0x36,0x41,0x55,0x4c,0x2c,0x30,0x78,0x36,0x39,0x42,0x42,0x46,0x35,0x34, - 0x45,0x34,0x45,0x36,0x39,0x39,0x43,0x42,0x42,0x55,0x4c,0x2c,0x30,0x78,0x43,0x44,0x34,0x43,0x33,0x33,0x37,0x46,0x37,0x46,0x43,0x44,0x46,0x45,0x34,0x43,0x55,0x4c, - 0x2c,0x30,0x78,0x39,0x46,0x42,0x41,0x35,0x30,0x45,0x41,0x45,0x41,0x39,0x46,0x43,0x46,0x42,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x42,0x32,0x44,0x33,0x46,0x31, - 0x32,0x31,0x32,0x31,0x42,0x32,0x34,0x32,0x44,0x55,0x4c,0x2c,0x30,0x78,0x39,0x45,0x42,0x39,0x41,0x34,0x31,0x44,0x31,0x44,0x39,0x45,0x33,0x41,0x42,0x39,0x55,0x4c, - 0x2c,0x30,0x78,0x37,0x34,0x39,0x43,0x43,0x34,0x35,0x38,0x35,0x38,0x37,0x34,0x42,0x30,0x39,0x43,0x55,0x4c,0x2c,0x30,0x78,0x32,0x45,0x37,0x32,0x34,0x36,0x33,0x34, - 0x33,0x34,0x32,0x45,0x36,0x38,0x37,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x44,0x37,0x37,0x34,0x31,0x33,0x36,0x33,0x36,0x32,0x44,0x36,0x43,0x37,0x37,0x55,0x4c, - 0x2c,0x30,0x78,0x42,0x32,0x43,0x44,0x31,0x31,0x44,0x43,0x44,0x43,0x42,0x32,0x41,0x33,0x43,0x44,0x55,0x4c,0x2c,0x30,0x78,0x45,0x45,0x32,0x39,0x39,0x44,0x42,0x34, - 0x42,0x34,0x45,0x45,0x37,0x33,0x32,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x42,0x31,0x36,0x34,0x44,0x35,0x42,0x35,0x42,0x46,0x42,0x42,0x36,0x31,0x36,0x55,0x4c,0x2c, - 0x0a,0x30,0x78,0x46,0x36,0x30,0x31,0x41,0x35,0x41,0x34,0x41,0x34,0x46,0x36,0x35,0x33,0x30,0x31,0x55,0x4c,0x2c,0x30,0x78,0x34,0x44,0x44,0x37,0x41,0x31,0x37,0x36, - 0x37,0x36,0x34,0x44,0x45,0x43,0x44,0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x31,0x41,0x33,0x31,0x34,0x42,0x37,0x42,0x37,0x36,0x31,0x37,0x35,0x41,0x33,0x55,0x4c,0x2c, - 0x30,0x78,0x43,0x45,0x34,0x39,0x33,0x34,0x37,0x44,0x37,0x44,0x43,0x45,0x46,0x41,0x34,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x42,0x38,0x44,0x44,0x46,0x35,0x32, - 0x35,0x32,0x37,0x42,0x41,0x34,0x38,0x44,0x55,0x4c,0x2c,0x30,0x78,0x33,0x45,0x34,0x32,0x39,0x46,0x44,0x44,0x44,0x44,0x33,0x45,0x41,0x31,0x34,0x32,0x55,0x4c,0x2c, - 0x30,0x78,0x37,0x31,0x39,0x33,0x43,0x44,0x35,0x45,0x35,0x45,0x37,0x31,0x42,0x43,0x39,0x33,0x55,0x4c,0x2c,0x30,0x78,0x39,0x37,0x41,0x32,0x42,0x31,0x31,0x33,0x31, - 0x33,0x39,0x37,0x32,0x36,0x41,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x35,0x30,0x34,0x41,0x32,0x41,0x36,0x41,0x36,0x46,0x35,0x35,0x37,0x30,0x34,0x55,0x4c,0x2c, - 0x30,0x78,0x36,0x38,0x42,0x38,0x30,0x31,0x42,0x39,0x42,0x39,0x36,0x38,0x36,0x39,0x42,0x38,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x32,0x43,0x37,0x34,0x42,0x35,0x43,0x31,0x43,0x31,0x32,0x43,0x39,0x39,0x37,0x34,0x55,0x4c,0x2c,0x0a, - 0x30,0x78,0x36,0x30,0x41,0x30,0x45,0x30,0x34,0x30,0x34,0x30,0x36,0x30,0x38,0x30,0x41,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x46,0x32,0x31,0x43,0x32,0x45,0x33,0x45, - 0x33,0x31,0x46,0x44,0x44,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x43,0x38,0x34,0x33,0x33,0x41,0x37,0x39,0x37,0x39,0x43,0x38,0x46,0x32,0x34,0x33,0x55,0x4c,0x2c,0x30, - 0x78,0x45,0x44,0x32,0x43,0x39,0x41,0x42,0x36,0x42,0x36,0x45,0x44,0x37,0x37,0x32,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x45,0x44,0x39,0x30,0x44,0x44,0x34,0x44, - 0x34,0x42,0x45,0x42,0x33,0x44,0x39,0x55,0x4c,0x2c,0x30,0x78,0x34,0x36,0x43,0x41,0x34,0x37,0x38,0x44,0x38,0x44,0x34,0x36,0x30,0x31,0x43,0x41,0x55,0x4c,0x2c,0x30, - 0x78,0x44,0x39,0x37,0x30,0x31,0x37,0x36,0x37,0x36,0x37,0x44,0x39,0x43,0x45,0x37,0x30,0x55,0x4c,0x2c,0x30,0x78,0x34,0x42,0x44,0x44,0x41,0x46,0x37,0x32,0x37,0x32, - 0x34,0x42,0x45,0x34,0x44,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x45,0x37,0x39,0x45,0x44,0x39,0x34,0x39,0x34,0x44,0x45,0x33,0x33,0x37,0x39,0x55,0x4c,0x2c,0x30, - 0x78,0x44,0x34,0x36,0x37,0x46,0x46,0x39,0x38,0x39,0x38,0x44,0x34,0x32,0x42,0x36,0x37,0x55,0x4c,0x2c,0x30,0x78,0x45,0x38,0x32,0x33,0x39,0x33,0x42,0x30,0x42,0x30, - 0x45,0x38,0x37,0x42,0x32,0x33,0x55,0x4c,0x2c,0x30,0x78,0x34,0x41,0x44,0x45,0x35,0x42,0x38,0x35,0x38,0x35,0x34,0x41,0x31,0x31,0x44,0x45,0x55,0x4c,0x2c,0x0a,0x30, - 0x78,0x36,0x42,0x42,0x44,0x30,0x36,0x42,0x42,0x42,0x42,0x36,0x42,0x36,0x44,0x42,0x44,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x37,0x45,0x42,0x42,0x43,0x35,0x43,0x35, - 0x32,0x41,0x39,0x31,0x37,0x45,0x55,0x4c,0x2c,0x30,0x78,0x45,0x35,0x33,0x34,0x37,0x42,0x34,0x46,0x34,0x46,0x45,0x35,0x39,0x45,0x33,0x34,0x55,0x4c,0x2c,0x30,0x78, - 0x31,0x36,0x33,0x41,0x44,0x37,0x45,0x44,0x45,0x44,0x31,0x36,0x43,0x31,0x33,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x35,0x35,0x34,0x44,0x32,0x38,0x36,0x38,0x36, - 0x43,0x35,0x31,0x37,0x35,0x34,0x55,0x4c,0x2c,0x30,0x78,0x44,0x37,0x36,0x32,0x46,0x38,0x39,0x41,0x39,0x41,0x44,0x37,0x32,0x46,0x36,0x32,0x55,0x4c,0x2c,0x30,0x78, - 0x35,0x35,0x46,0x46,0x39,0x39,0x36,0x36,0x36,0x36,0x35,0x35,0x43,0x43,0x46,0x46,0x55,0x4c,0x2c,0x30,0x78,0x39,0x34,0x41,0x37,0x42,0x36,0x31,0x31,0x31,0x31,0x39, - 0x34,0x32,0x32,0x41,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x46,0x34,0x41,0x43,0x30,0x38,0x41,0x38,0x41,0x43,0x46,0x30,0x46,0x34,0x41,0x55,0x4c,0x2c,0x30,0x78, - 0x31,0x30,0x33,0x30,0x44,0x39,0x45,0x39,0x45,0x39,0x31,0x30,0x43,0x39,0x33,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x36,0x30,0x41,0x30,0x45,0x30,0x34,0x30,0x34,0x30, - 0x36,0x30,0x38,0x30,0x41,0x55,0x4c,0x2c,0x30,0x78,0x38,0x31,0x39,0x38,0x36,0x36,0x46,0x45,0x46,0x45,0x38,0x31,0x45,0x37,0x39,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78, - 0x46,0x30,0x30,0x42,0x41,0x42,0x41,0x30,0x41,0x30,0x46,0x30,0x35,0x42,0x30,0x42,0x55,0x4c,0x2c,0x30,0x78,0x34,0x34,0x43,0x43,0x42,0x34,0x37,0x38,0x37,0x38,0x34, - 0x34,0x46,0x30,0x43,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x41,0x44,0x35,0x46,0x30,0x32,0x35,0x32,0x35,0x42,0x41,0x34,0x41,0x44,0x35,0x55,0x4c,0x2c,0x30,0x78,0x45, - 0x33,0x33,0x45,0x37,0x35,0x34,0x42,0x34,0x42,0x45,0x33,0x39,0x36,0x33,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x33,0x30,0x45,0x41,0x43,0x41,0x32,0x41,0x32,0x46, - 0x33,0x35,0x46,0x30,0x45,0x55,0x4c,0x2c,0x30,0x78,0x46,0x45,0x31,0x39,0x34,0x34,0x35,0x44,0x35,0x44,0x46,0x45,0x42,0x41,0x31,0x39,0x55,0x4c,0x2c,0x30,0x78,0x43, - 0x30,0x35,0x42,0x44,0x42,0x38,0x30,0x38,0x30,0x43,0x30,0x31,0x42,0x35,0x42,0x55,0x4c,0x2c,0x30,0x78,0x38,0x41,0x38,0x35,0x38,0x30,0x30,0x35,0x30,0x35,0x38,0x41, - 0x30,0x41,0x38,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x44,0x45,0x43,0x44,0x33,0x33,0x46,0x33,0x46,0x41,0x44,0x37,0x45,0x45,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42, - 0x43,0x44,0x46,0x46,0x45,0x32,0x31,0x32,0x31,0x42,0x43,0x34,0x32,0x44,0x46,0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x44,0x38,0x41,0x38,0x37,0x30,0x37,0x30,0x34,0x38, - 0x45,0x30,0x44,0x38,0x55,0x4c,0x2c,0x30,0x78,0x30,0x34,0x30,0x43,0x46,0x44,0x46,0x31,0x46,0x31,0x30,0x34,0x46,0x39,0x30,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44, - 0x46,0x37,0x41,0x31,0x39,0x36,0x33,0x36,0x33,0x44,0x46,0x43,0x36,0x37,0x41,0x55,0x4c,0x2c,0x30,0x78,0x43,0x31,0x35,0x38,0x32,0x46,0x37,0x37,0x37,0x37,0x43,0x31, - 0x45,0x45,0x35,0x38,0x55,0x4c,0x2c,0x30,0x78,0x37,0x35,0x39,0x46,0x33,0x30,0x41,0x46,0x41,0x46,0x37,0x35,0x34,0x35,0x39,0x46,0x55,0x4c,0x2c,0x30,0x78,0x36,0x33, - 0x41,0x35,0x45,0x37,0x34,0x32,0x34,0x32,0x36,0x33,0x38,0x34,0x41,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x30,0x35,0x30,0x37,0x30,0x32,0x30,0x32,0x30,0x33,0x30, - 0x34,0x30,0x35,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x41,0x32,0x45,0x43,0x42,0x45,0x35,0x45,0x35,0x31,0x41,0x44,0x31,0x32,0x45,0x55,0x4c,0x2c,0x30,0x78,0x30,0x45, - 0x31,0x32,0x45,0x46,0x46,0x44,0x46,0x44,0x30,0x45,0x45,0x31,0x31,0x32,0x55,0x4c,0x2c,0x30,0x78,0x36,0x44,0x42,0x37,0x30,0x38,0x42,0x46,0x42,0x46,0x36,0x44,0x36, - 0x35,0x42,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x43,0x44,0x34,0x35,0x35,0x38,0x31,0x38,0x31,0x34,0x43,0x31,0x39,0x44,0x34,0x55,0x4c,0x2c,0x30,0x78,0x31,0x34, - 0x33,0x43,0x32,0x34,0x31,0x38,0x31,0x38,0x31,0x34,0x33,0x30,0x33,0x43,0x55,0x4c,0x2c,0x30,0x78,0x33,0x35,0x35,0x46,0x37,0x39,0x32,0x36,0x32,0x36,0x33,0x35,0x34, - 0x43,0x35,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x46,0x37,0x31,0x42,0x32,0x43,0x33,0x43,0x33,0x32,0x46,0x39,0x44,0x37,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x45,0x31, - 0x33,0x38,0x38,0x36,0x42,0x45,0x42,0x45,0x45,0x31,0x36,0x37,0x33,0x38,0x55,0x4c,0x2c,0x30,0x78,0x41,0x32,0x46,0x44,0x43,0x38,0x33,0x35,0x33,0x35,0x41,0x32,0x36, - 0x41,0x46,0x44,0x55,0x4c,0x2c,0x30,0x78,0x43,0x43,0x34,0x46,0x43,0x37,0x38,0x38,0x38,0x38,0x43,0x43,0x30,0x42,0x34,0x46,0x55,0x4c,0x2c,0x30,0x78,0x33,0x39,0x34, - 0x42,0x36,0x35,0x32,0x45,0x32,0x45,0x33,0x39,0x35,0x43,0x34,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x37,0x46,0x39,0x36,0x41,0x39,0x33,0x39,0x33,0x35,0x37,0x33, - 0x44,0x46,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x32,0x30,0x44,0x35,0x38,0x35,0x35,0x35,0x35,0x46,0x32,0x41,0x41,0x30,0x44,0x55,0x4c,0x2c,0x30,0x78,0x38,0x32,0x39, - 0x44,0x36,0x31,0x46,0x43,0x46,0x43,0x38,0x32,0x45,0x33,0x39,0x44,0x55,0x4c,0x2c,0x30,0x78,0x34,0x37,0x43,0x39,0x42,0x33,0x37,0x41,0x37,0x41,0x34,0x37,0x46,0x34, - 0x43,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x43,0x45,0x46,0x32,0x37,0x43,0x38,0x43,0x38,0x41,0x43,0x38,0x42,0x45,0x46,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x33, - 0x32,0x38,0x38,0x42,0x41,0x42,0x41,0x45,0x37,0x36,0x46,0x33,0x32,0x55,0x4c,0x2c,0x30,0x78,0x32,0x42,0x37,0x44,0x34,0x46,0x33,0x32,0x33,0x32,0x32,0x42,0x36,0x34, - 0x37,0x44,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x41,0x34,0x34,0x32,0x45,0x36,0x45,0x36,0x39,0x35,0x44,0x37,0x41,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x30,0x46, - 0x42,0x33,0x42,0x43,0x30,0x43,0x30,0x41,0x30,0x39,0x42,0x46,0x42,0x55,0x4c,0x2c,0x30,0x78,0x39,0x38,0x42,0x33,0x41,0x41,0x31,0x39,0x31,0x39,0x39,0x38,0x33,0x32, - 0x42,0x33,0x55,0x4c,0x2c,0x30,0x78,0x44,0x31,0x36,0x38,0x46,0x36,0x39,0x45,0x39,0x45,0x44,0x31,0x32,0x37,0x36,0x38,0x55,0x4c,0x2c,0x30,0x78,0x37,0x46,0x38,0x31, - 0x32,0x32,0x41,0x33,0x41,0x33,0x37,0x46,0x35,0x44,0x38,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x36,0x41,0x41,0x45,0x45,0x34,0x34,0x34,0x34,0x36,0x36,0x38,0x38, - 0x41,0x41,0x55,0x4c,0x2c,0x30,0x78,0x37,0x45,0x38,0x32,0x44,0x36,0x35,0x34,0x35,0x34,0x37,0x45,0x41,0x38,0x38,0x32,0x55,0x4c,0x2c,0x30,0x78,0x41,0x42,0x45,0x36, - 0x44,0x44,0x33,0x42,0x33,0x42,0x41,0x42,0x37,0x36,0x45,0x36,0x55,0x4c,0x2c,0x30,0x78,0x38,0x33,0x39,0x45,0x39,0x35,0x30,0x42,0x30,0x42,0x38,0x33,0x31,0x36,0x39, - 0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x41,0x34,0x35,0x43,0x39,0x38,0x43,0x38,0x43,0x43,0x41,0x30,0x33,0x34,0x35,0x55,0x4c,0x2c,0x30,0x78,0x32,0x39,0x37,0x42, - 0x42,0x43,0x43,0x37,0x43,0x37,0x32,0x39,0x39,0x35,0x37,0x42,0x55,0x4c,0x2c,0x30,0x78,0x44,0x33,0x36,0x45,0x30,0x35,0x36,0x42,0x36,0x42,0x44,0x33,0x44,0x36,0x36, - 0x45,0x55,0x4c,0x2c,0x30,0x78,0x33,0x43,0x34,0x34,0x36,0x43,0x32,0x38,0x32,0x38,0x33,0x43,0x35,0x30,0x34,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x39,0x38,0x42, - 0x32,0x43,0x41,0x37,0x41,0x37,0x37,0x39,0x35,0x35,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x45,0x32,0x33,0x44,0x38,0x31,0x42,0x43,0x42,0x43,0x45,0x32,0x36,0x33,0x33, - 0x44,0x55,0x4c,0x2c,0x30,0x78,0x31,0x44,0x32,0x37,0x33,0x31,0x31,0x36,0x31,0x36,0x31,0x44,0x32,0x43,0x32,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x36,0x39,0x41,0x33, - 0x37,0x41,0x44,0x41,0x44,0x37,0x36,0x34,0x31,0x39,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x42,0x34,0x44,0x39,0x36,0x44,0x42,0x44,0x42,0x33,0x42,0x41,0x44,0x34, - 0x44,0x55,0x4c,0x2c,0x30,0x78,0x35,0x36,0x46,0x41,0x39,0x45,0x36,0x34,0x36,0x34,0x35,0x36,0x43,0x38,0x46,0x41,0x55,0x4c,0x2c,0x30,0x78,0x34,0x45,0x44,0x32,0x41, - 0x36,0x37,0x34,0x37,0x34,0x34,0x45,0x45,0x38,0x44,0x32,0x55,0x4c,0x2c,0x30,0x78,0x31,0x45,0x32,0x32,0x33,0x36,0x31,0x34,0x31,0x34,0x31,0x45,0x32,0x38,0x32,0x32, - 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x42,0x37,0x36,0x45,0x34,0x39,0x32,0x39,0x32,0x44,0x42,0x33,0x46,0x37,0x36,0x55,0x4c,0x2c,0x30,0x78,0x30,0x41,0x31,0x45,0x31, - 0x32,0x30,0x43,0x30,0x43,0x30,0x41,0x31,0x38,0x31,0x45,0x55,0x4c,0x2c,0x30,0x78,0x36,0x43,0x42,0x34,0x46,0x43,0x34,0x38,0x34,0x38,0x36,0x43,0x39,0x30,0x42,0x34, - 0x55,0x4c,0x2c,0x30,0x78,0x45,0x34,0x33,0x37,0x38,0x46,0x42,0x38,0x42,0x38,0x45,0x34,0x36,0x42,0x33,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x44,0x45,0x37,0x37, - 0x38,0x39,0x46,0x39,0x46,0x35,0x44,0x32,0x35,0x45,0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x45,0x42,0x32,0x30,0x46,0x42,0x44,0x42,0x44,0x36,0x45,0x36,0x31,0x42,0x32, - 0x55,0x4c,0x2c,0x30,0x78,0x45,0x46,0x32,0x41,0x36,0x39,0x34,0x33,0x34,0x33,0x45,0x46,0x38,0x36,0x32,0x41,0x55,0x4c,0x2c,0x30,0x78,0x41,0x36,0x46,0x31,0x33,0x35, - 0x43,0x34,0x43,0x34,0x41,0x36,0x39,0x33,0x46,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x38,0x45,0x33,0x44,0x41,0x33,0x39,0x33,0x39,0x41,0x38,0x37,0x32,0x45,0x33, - 0x55,0x4c,0x2c,0x30,0x78,0x41,0x34,0x46,0x37,0x43,0x36,0x33,0x31,0x33,0x31,0x41,0x34,0x36,0x32,0x46,0x37,0x55,0x4c,0x2c,0x30,0x78,0x33,0x37,0x35,0x39,0x38,0x41, - 0x44,0x33,0x44,0x33,0x33,0x37,0x42,0x44,0x35,0x39,0x55,0x4c,0x2c,0x30,0x78,0x38,0x42,0x38,0x36,0x37,0x34,0x46,0x32,0x46,0x32,0x38,0x42,0x46,0x46,0x38,0x36,0x55, - 0x4c,0x2c,0x0a,0x30,0x78,0x33,0x32,0x35,0x36,0x38,0x33,0x44,0x35,0x44,0x35,0x33,0x32,0x42,0x31,0x35,0x36,0x55,0x4c,0x2c,0x30,0x78,0x34,0x33,0x43,0x35,0x34,0x45, - 0x38,0x42,0x38,0x42,0x34,0x33,0x30,0x44,0x43,0x35,0x55,0x4c,0x2c,0x30,0x78,0x35,0x39,0x45,0x42,0x38,0x35,0x36,0x45,0x36,0x45,0x35,0x39,0x44,0x43,0x45,0x42,0x55, - 0x4c,0x2c,0x30,0x78,0x42,0x37,0x43,0x32,0x31,0x38,0x44,0x41,0x44,0x41,0x42,0x37,0x41,0x46,0x43,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x43,0x38,0x46,0x38,0x45, - 0x30,0x31,0x30,0x31,0x38,0x43,0x30,0x32,0x38,0x46,0x55,0x4c,0x2c,0x30,0x78,0x36,0x34,0x41,0x43,0x31,0x44,0x42,0x31,0x42,0x31,0x36,0x34,0x37,0x39,0x41,0x43,0x55, - 0x4c,0x2c,0x30,0x78,0x44,0x32,0x36,0x44,0x46,0x31,0x39,0x43,0x39,0x43,0x44,0x32,0x32,0x33,0x36,0x44,0x55,0x4c,0x2c,0x30,0x78,0x45,0x30,0x33,0x42,0x37,0x32,0x34, - 0x39,0x34,0x39,0x45,0x30,0x39,0x32,0x33,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x34,0x43,0x37,0x31,0x46,0x44,0x38,0x44,0x38,0x42,0x34,0x41,0x42,0x43,0x37,0x55, - 0x4c,0x2c,0x30,0x78,0x46,0x41,0x31,0x35,0x42,0x39,0x41,0x43,0x41,0x43,0x46,0x41,0x34,0x33,0x31,0x35,0x55,0x4c,0x2c,0x30,0x78,0x30,0x37,0x30,0x39,0x46,0x41,0x46, - 0x33,0x46,0x33,0x30,0x37,0x46,0x44,0x30,0x39,0x55,0x4c,0x2c,0x30,0x78,0x32,0x35,0x36,0x46,0x41,0x30,0x43,0x46,0x43,0x46,0x32,0x35,0x38,0x35,0x36,0x46,0x55,0x4c, - 0x2c,0x0a,0x30,0x78,0x41,0x46,0x45,0x41,0x32,0x30,0x43,0x41,0x43,0x41,0x41,0x46,0x38,0x46,0x45,0x41,0x55,0x4c,0x2c,0x30,0x78,0x38,0x45,0x38,0x39,0x37,0x44,0x46, - 0x34,0x46,0x34,0x38,0x45,0x46,0x33,0x38,0x39,0x55,0x4c,0x2c,0x30,0x78,0x45,0x39,0x32,0x30,0x36,0x37,0x34,0x37,0x34,0x37,0x45,0x39,0x38,0x45,0x32,0x30,0x55,0x4c, - 0x2c,0x30,0x78,0x31,0x38,0x32,0x38,0x33,0x38,0x31,0x30,0x31,0x30,0x31,0x38,0x32,0x30,0x32,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x35,0x36,0x34,0x30,0x42,0x36, - 0x46,0x36,0x46,0x44,0x35,0x44,0x45,0x36,0x34,0x55,0x4c,0x2c,0x30,0x78,0x38,0x38,0x38,0x33,0x37,0x33,0x46,0x30,0x46,0x30,0x38,0x38,0x46,0x42,0x38,0x33,0x55,0x4c, - 0x2c,0x30,0x78,0x36,0x46,0x42,0x31,0x46,0x42,0x34,0x41,0x34,0x41,0x36,0x46,0x39,0x34,0x42,0x31,0x55,0x4c,0x2c,0x30,0x78,0x37,0x32,0x39,0x36,0x43,0x41,0x35,0x43, - 0x35,0x43,0x37,0x32,0x42,0x38,0x39,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x34,0x36,0x43,0x35,0x34,0x33,0x38,0x33,0x38,0x32,0x34,0x37,0x30,0x36,0x43,0x55,0x4c, - 0x2c,0x30,0x78,0x46,0x31,0x30,0x38,0x35,0x46,0x35,0x37,0x35,0x37,0x46,0x31,0x41,0x45,0x30,0x38,0x55,0x4c,0x2c,0x30,0x78,0x43,0x37,0x35,0x32,0x32,0x31,0x37,0x33, - 0x37,0x33,0x43,0x37,0x45,0x36,0x35,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35,0x31,0x46,0x33,0x36,0x34,0x39,0x37,0x39,0x37,0x35,0x31,0x33,0x35,0x46,0x33,0x55,0x4c,0x2c, - 0x0a,0x30,0x78,0x32,0x33,0x36,0x35,0x41,0x45,0x43,0x42,0x43,0x42,0x32,0x33,0x38,0x44,0x36,0x35,0x55,0x4c,0x2c,0x30,0x78,0x37,0x43,0x38,0x34,0x32,0x35,0x41,0x31, - 0x41,0x31,0x37,0x43,0x35,0x39,0x38,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x43,0x42,0x46,0x35,0x37,0x45,0x38,0x45,0x38,0x39,0x43,0x43,0x42,0x42,0x46,0x55,0x4c,0x2c, - 0x30,0x78,0x32,0x31,0x36,0x33,0x35,0x44,0x33,0x45,0x33,0x45,0x32,0x31,0x37,0x43,0x36,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x44,0x37,0x43,0x45,0x41,0x39,0x36, - 0x39,0x36,0x44,0x44,0x33,0x37,0x37,0x43,0x55,0x4c,0x2c,0x30,0x78,0x44,0x43,0x37,0x46,0x31,0x45,0x36,0x31,0x36,0x31,0x44,0x43,0x43,0x32,0x37,0x46,0x55,0x4c,0x2c, - 0x30,0x78,0x38,0x36,0x39,0x31,0x39,0x43,0x30,0x44,0x30,0x44,0x38,0x36,0x31,0x41,0x39,0x31,0x55,0x4c,0x2c,0x30,0x78,0x38,0x35,0x39,0x34,0x39,0x42,0x30,0x46,0x30, - 0x46,0x38,0x35,0x31,0x45,0x39,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x30,0x41,0x42,0x34,0x42,0x45,0x30,0x45,0x30,0x39,0x30,0x44,0x42,0x41,0x42,0x55,0x4c,0x2c, - 0x30,0x78,0x34,0x32,0x43,0x36,0x42,0x41,0x37,0x43,0x37,0x43,0x34,0x32,0x46,0x38,0x43,0x36,0x55,0x4c,0x2c,0x30,0x78,0x43,0x34,0x35,0x37,0x32,0x36,0x37,0x31,0x37, - 0x31,0x43,0x34,0x45,0x32,0x35,0x37,0x55,0x4c,0x2c,0x30,0x78,0x41,0x41,0x45,0x35,0x32,0x39,0x43,0x43,0x43,0x43,0x41,0x41,0x38,0x33,0x45,0x35,0x55,0x4c,0x2c,0x0a, - 0x30,0x78,0x44,0x38,0x37,0x33,0x45,0x33,0x39,0x30,0x39,0x30,0x44,0x38,0x33,0x42,0x37,0x33,0x55,0x4c,0x2c,0x30,0x78,0x30,0x35,0x30,0x46,0x30,0x39,0x30,0x36,0x30, - 0x36,0x30,0x35,0x30,0x43,0x30,0x46,0x55,0x4c,0x2c,0x30,0x78,0x30,0x31,0x30,0x33,0x46,0x34,0x46,0x37,0x46,0x37,0x30,0x31,0x46,0x35,0x30,0x33,0x55,0x4c,0x2c,0x30, - 0x78,0x31,0x32,0x33,0x36,0x32,0x41,0x31,0x43,0x31,0x43,0x31,0x32,0x33,0x38,0x33,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x33,0x46,0x45,0x33,0x43,0x43,0x32,0x43, - 0x32,0x41,0x33,0x39,0x46,0x46,0x45,0x55,0x4c,0x2c,0x30,0x78,0x35,0x46,0x45,0x31,0x38,0x42,0x36,0x41,0x36,0x41,0x35,0x46,0x44,0x34,0x45,0x31,0x55,0x4c,0x2c,0x30, - 0x78,0x46,0x39,0x31,0x30,0x42,0x45,0x41,0x45,0x41,0x45,0x46,0x39,0x34,0x37,0x31,0x30,0x55,0x4c,0x2c,0x30,0x78,0x44,0x30,0x36,0x42,0x30,0x32,0x36,0x39,0x36,0x39, - 0x44,0x30,0x44,0x32,0x36,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x31,0x41,0x38,0x42,0x46,0x31,0x37,0x31,0x37,0x39,0x31,0x32,0x45,0x41,0x38,0x55,0x4c,0x2c,0x30, - 0x78,0x35,0x38,0x45,0x38,0x37,0x31,0x39,0x39,0x39,0x39,0x35,0x38,0x32,0x39,0x45,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x37,0x36,0x39,0x35,0x33,0x33,0x41,0x33,0x41, - 0x32,0x37,0x37,0x34,0x36,0x39,0x55,0x4c,0x2c,0x30,0x78,0x42,0x39,0x44,0x30,0x46,0x37,0x32,0x37,0x32,0x37,0x42,0x39,0x34,0x45,0x44,0x30,0x55,0x4c,0x2c,0x0a,0x30, - 0x78,0x33,0x38,0x34,0x38,0x39,0x31,0x44,0x39,0x44,0x39,0x33,0x38,0x41,0x39,0x34,0x38,0x55,0x4c,0x2c,0x30,0x78,0x31,0x33,0x33,0x35,0x44,0x45,0x45,0x42,0x45,0x42, - 0x31,0x33,0x43,0x44,0x33,0x35,0x55,0x4c,0x2c,0x30,0x78,0x42,0x33,0x43,0x45,0x45,0x35,0x32,0x42,0x32,0x42,0x42,0x33,0x35,0x36,0x43,0x45,0x55,0x4c,0x2c,0x30,0x78, - 0x33,0x33,0x35,0x35,0x37,0x37,0x32,0x32,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x42,0x44,0x36,0x30,0x34,0x44,0x32,0x44,0x32, - 0x42,0x42,0x42,0x46,0x44,0x36,0x55,0x4c,0x2c,0x30,0x78,0x37,0x30,0x39,0x30,0x33,0x39,0x41,0x39,0x41,0x39,0x37,0x30,0x34,0x39,0x39,0x30,0x55,0x4c,0x2c,0x30,0x78, - 0x38,0x39,0x38,0x30,0x38,0x37,0x30,0x37,0x30,0x37,0x38,0x39,0x30,0x45,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x41,0x37,0x46,0x32,0x43,0x31,0x33,0x33,0x33,0x33,0x41, - 0x37,0x36,0x36,0x46,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x36,0x43,0x31,0x45,0x43,0x32,0x44,0x32,0x44,0x42,0x36,0x35,0x41,0x43,0x31,0x55,0x4c,0x2c,0x30,0x78, - 0x32,0x32,0x36,0x36,0x35,0x41,0x33,0x43,0x33,0x43,0x32,0x32,0x37,0x38,0x36,0x36,0x55,0x4c,0x2c,0x30,0x78,0x39,0x32,0x41,0x44,0x42,0x38,0x31,0x35,0x31,0x35,0x39, - 0x32,0x32,0x41,0x41,0x44,0x55,0x4c,0x2c,0x30,0x78,0x32,0x30,0x36,0x30,0x41,0x39,0x43,0x39,0x43,0x39,0x32,0x30,0x38,0x39,0x36,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78, - 0x34,0x39,0x44,0x42,0x35,0x43,0x38,0x37,0x38,0x37,0x34,0x39,0x31,0x35,0x44,0x42,0x55,0x4c,0x2c,0x30,0x78,0x46,0x46,0x31,0x41,0x42,0x30,0x41,0x41,0x41,0x41,0x46, - 0x46,0x34,0x46,0x31,0x41,0x55,0x4c,0x2c,0x30,0x78,0x37,0x38,0x38,0x38,0x44,0x38,0x35,0x30,0x35,0x30,0x37,0x38,0x41,0x30,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x37, - 0x41,0x38,0x45,0x32,0x42,0x41,0x35,0x41,0x35,0x37,0x41,0x35,0x31,0x38,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x46,0x38,0x41,0x38,0x39,0x30,0x33,0x30,0x33,0x38, - 0x46,0x30,0x36,0x38,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x38,0x31,0x33,0x34,0x41,0x35,0x39,0x35,0x39,0x46,0x38,0x42,0x32,0x31,0x33,0x55,0x4c,0x2c,0x30,0x78,0x38, - 0x30,0x39,0x42,0x39,0x32,0x30,0x39,0x30,0x39,0x38,0x30,0x31,0x32,0x39,0x42,0x55,0x4c,0x2c,0x30,0x78,0x31,0x37,0x33,0x39,0x32,0x33,0x31,0x41,0x31,0x41,0x31,0x37, - 0x33,0x34,0x33,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x41,0x37,0x35,0x31,0x30,0x36,0x35,0x36,0x35,0x44,0x41,0x43,0x41,0x37,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33, - 0x31,0x35,0x33,0x38,0x34,0x44,0x37,0x44,0x37,0x33,0x31,0x42,0x35,0x35,0x33,0x55,0x4c,0x2c,0x30,0x78,0x43,0x36,0x35,0x31,0x44,0x35,0x38,0x34,0x38,0x34,0x43,0x36, - 0x31,0x33,0x35,0x31,0x55,0x4c,0x2c,0x30,0x78,0x42,0x38,0x44,0x33,0x30,0x33,0x44,0x30,0x44,0x30,0x42,0x38,0x42,0x42,0x44,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43, - 0x33,0x35,0x45,0x44,0x43,0x38,0x32,0x38,0x32,0x43,0x33,0x31,0x46,0x35,0x45,0x55,0x4c,0x2c,0x30,0x78,0x42,0x30,0x43,0x42,0x45,0x32,0x32,0x39,0x32,0x39,0x42,0x30, - 0x35,0x32,0x43,0x42,0x55,0x4c,0x2c,0x30,0x78,0x37,0x37,0x39,0x39,0x43,0x33,0x35,0x41,0x35,0x41,0x37,0x37,0x42,0x34,0x39,0x39,0x55,0x4c,0x2c,0x30,0x78,0x31,0x31, - 0x33,0x33,0x32,0x44,0x31,0x45,0x31,0x45,0x31,0x31,0x33,0x43,0x33,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x42,0x34,0x36,0x33,0x44,0x37,0x42,0x37,0x42,0x43,0x42, - 0x46,0x36,0x34,0x36,0x55,0x4c,0x2c,0x30,0x78,0x46,0x43,0x31,0x46,0x42,0x37,0x41,0x38,0x41,0x38,0x46,0x43,0x34,0x42,0x31,0x46,0x55,0x4c,0x2c,0x30,0x78,0x44,0x36, - 0x36,0x31,0x30,0x43,0x36,0x44,0x36,0x44,0x44,0x36,0x44,0x41,0x36,0x31,0x55,0x4c,0x2c,0x30,0x78,0x33,0x41,0x34,0x45,0x36,0x32,0x32,0x43,0x32,0x43,0x33,0x41,0x35, - 0x38,0x34,0x45,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x53,0x54,0x54,0x28,0x64,0x2c,0x20,0x61,0x2c,0x20,0x62,0x30,0x2c,0x20, - 0x62,0x31,0x2c,0x20,0x62,0x32,0x2c,0x20,0x62,0x33,0x2c,0x20,0x62,0x34,0x2c,0x20,0x62,0x35,0x2c,0x20,0x62,0x36,0x2c,0x20,0x62,0x37,0x29,0x20,0x64,0x6f,0x20,0x7b, - 0x20,0x5c,0x0a,0x74,0x5b,0x64,0x5d,0x3d,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x30,0x28,0x61,0x5b,0x62,0x30,0x5d,0x29,0x5d,0x20,0x5c,0x0a,0x5e,0x20,0x52, - 0x36,0x34,0x28,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x31,0x28,0x61,0x5b,0x62,0x31,0x5d,0x29,0x5d,0x2c,0x38,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34, - 0x28,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x32,0x28,0x61,0x5b,0x62,0x32,0x5d,0x29,0x5d,0x2c,0x31,0x36,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28, - 0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x33,0x28,0x61,0x5b,0x62,0x33,0x5d,0x29,0x5d,0x2c,0x32,0x34,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x54,0x34,0x5f,0x47,0x5b, - 0x42,0x36,0x34,0x5f,0x34,0x28,0x61,0x5b,0x62,0x34,0x5d,0x29,0x5d,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x34,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x35, - 0x28,0x61,0x5b,0x62,0x35,0x5d,0x29,0x5d,0x2c,0x38,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x34,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x36,0x28,0x61, - 0x5b,0x62,0x36,0x5d,0x29,0x5d,0x2c,0x31,0x36,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x34,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x37,0x28,0x61,0x5b, - 0x62,0x37,0x5d,0x29,0x5d,0x2c,0x32,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x2c,0x20,0x72,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x75,0x6c,0x6f,0x6e, - 0x67,0x20,0x74,0x5b,0x38,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x2c,0x72,0x29,0x3b,0x20, - 0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x31,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x20,0x5e, - 0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x32,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30, - 0x78,0x33,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x34,0x30,0x2c,0x72,0x29,0x3b,0x20, - 0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x20,0x5e, - 0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x36,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30, - 0x78,0x37,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x30,0x2c,0x61,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36, - 0x2c,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x31,0x2c,0x61,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x29, - 0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x32,0x2c,0x61,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x29,0x3b,0x20,0x5c, - 0x0a,0x52,0x53,0x54,0x54,0x28,0x33,0x2c,0x61,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53, - 0x54,0x54,0x28,0x34,0x2c,0x61,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28, - 0x35,0x2c,0x61,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x36,0x2c,0x61, - 0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x37,0x2c,0x61,0x2c,0x37,0x2c, - 0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x61, - 0x5b,0x31,0x5d,0x3d,0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x3d,0x74,0x5b, - 0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x3d,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x3d,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a, - 0x61,0x5b,0x36,0x5d,0x3d,0x74,0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x3d,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c, - 0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x66,0x28,0x61,0x2c,0x72, - 0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c, - 0x0a,0x61,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x31,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x20,0x5e,0x3d, - 0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x32,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78, - 0x33,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x34,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c, - 0x0a,0x61,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x20,0x5e,0x3d, - 0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x36,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78, - 0x37,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x37,0x2c,0x61,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c, - 0x36,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x3d,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x61,0x2c,0x20,0x72,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20, - 0x5c,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x5b,0x38,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x30, - 0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x31,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a, - 0x61,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x32,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x20,0x5e,0x3d,0x20, - 0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x33,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x34, - 0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a, - 0x61,0x5b,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x36,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x20,0x5e,0x3d,0x20, - 0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x37,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x30,0x2c,0x61,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x2c,0x37, - 0x2c,0x30,0x2c,0x32,0x2c,0x34,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x31,0x2c,0x61,0x2c,0x32,0x2c,0x34,0x2c,0x36,0x2c,0x30,0x2c,0x31,0x2c, - 0x33,0x2c,0x35,0x2c,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x32,0x2c,0x61,0x2c,0x33,0x2c,0x35,0x2c,0x37,0x2c,0x31,0x2c,0x32,0x2c,0x34,0x2c,0x36, - 0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x33,0x2c,0x61,0x2c,0x34,0x2c,0x36,0x2c,0x30,0x2c,0x32,0x2c,0x33,0x2c,0x35,0x2c,0x37,0x2c,0x31,0x29, - 0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x34,0x2c,0x61,0x2c,0x35,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x2c,0x34,0x2c,0x36,0x2c,0x30,0x2c,0x32,0x29,0x3b,0x20,0x5c, - 0x0a,0x52,0x53,0x54,0x54,0x28,0x35,0x2c,0x61,0x2c,0x36,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x2c,0x35,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53, - 0x54,0x54,0x28,0x36,0x2c,0x61,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x2c,0x36,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28, - 0x37,0x2c,0x61,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x74,0x5b,0x30, - 0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x61, - 0x5b,0x33,0x5d,0x3d,0x74,0x5b,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x3d,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x3d,0x74,0x5b, - 0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x3d,0x74,0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x3d,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a, - 0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50, - 0x28,0x61,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x31,0x30,0x3b,0x20,0x72, - 0x20,0x2b,0x2b,0x29,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77, - 0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x66,0x28,0x61, - 0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x39,0x3b,0x20,0x72,0x20,0x2b,0x2b, - 0x29,0x20,0x7b,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x2c,0x72,0x29,0x3b,0x7d,0x20,0x5c,0x0a,0x52,0x4f,0x55, - 0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x66,0x28,0x61,0x2c,0x39,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x61,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x66, - 0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x31,0x30,0x3b,0x20,0x72,0x20,0x2b,0x2b,0x29,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44, - 0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x61,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x69,0x66, - 0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x32,0x29,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65, - 0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x65,0x74,0x5f,0x72,0x65,0x63,0x69,0x70,0x72,0x6f,0x63,0x61,0x6c,0x28,0x75,0x69,0x6e,0x74,0x20,0x61,0x29,0x0a,0x7b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x61,0x5f,0x68,0x69,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x61,0x3e,0x3e,0x38,0x29,0x2b, - 0x28,0x28,0x31,0x32,0x36,0x55,0x2b,0x33,0x31,0x55,0x29,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x61, - 0x5f,0x6c,0x6f,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x26,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x72,0x65,0x63,0x69,0x70,0x28,0x61,0x5f,0x68,0x69,0x29,0x3b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x5f,0x73,0x63,0x61,0x6c,0x65,0x64,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61, - 0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x72,0x29,0x2b,0x28,0x36,0x34,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61, - 0x74,0x20,0x68,0x3d,0x66,0x6d,0x61,0x28,0x61,0x5f,0x6c,0x6f,0x2c,0x72,0x2c,0x66,0x6d,0x61,0x28,0x61,0x5f,0x68,0x69,0x2c,0x72,0x2c,0x2d,0x31,0x2e,0x30,0x66,0x29, - 0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x72,0x29,0x3c,0x3c,0x39,0x29,0x2d,0x63,0x6f,0x6e,0x76,0x65,0x72, - 0x74,0x5f,0x69,0x6e,0x74,0x5f,0x72,0x74,0x65,0x28,0x68,0x2a,0x72,0x5f,0x73,0x63,0x61,0x6c,0x65,0x64,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20, - 0x75,0x69,0x6e,0x74,0x32,0x20,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x76,0x32,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62, - 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x3d,0x67,0x65,0x74,0x5f,0x72,0x65,0x63,0x69,0x70,0x72,0x6f,0x63,0x61,0x6c,0x28, - 0x62,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6b,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74, - 0x32,0x28,0x61,0x29,0x2e,0x73,0x30,0x2c,0x72,0x29,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x72,0x29,0x2a,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28, - 0x61,0x29,0x2e,0x73,0x31,0x29,0x2b,0x61,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x71,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28, - 0x6b,0x29,0x2e,0x73,0x31,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x3d,0x61,0x2d,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x71,0x29,0x2a,0x62,0x29, - 0x3b,0x0a,0x28,0x28,0x69,0x6e,0x74,0x2a,0x29,0x26,0x74,0x6d,0x70,0x29,0x5b,0x31,0x5d,0x2d,0x3d,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x6b,0x29,0x2e, - 0x73,0x31,0x3c,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x31,0x29,0x3f,0x62,0x3a,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e, - 0x74,0x20,0x6f,0x76,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x3d,0x28,0x28,0x69,0x6e,0x74,0x2a,0x29,0x26,0x74,0x6d,0x70,0x29,0x5b,0x31,0x5d,0x3e,0x3e,0x33,0x31,0x3b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x75,0x6e,0x64,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x3d,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x61,0x73, - 0x5f,0x75,0x69,0x6e,0x74,0x28,0x62,0x2d,0x31,0x29,0x2d,0x74,0x6d,0x70,0x29,0x2e,0x73,0x31,0x3e,0x3e,0x33,0x31,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28, - 0x75,0x69,0x6e,0x74,0x32,0x29,0x28,0x71,0x2b,0x6f,0x76,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x2d,0x75,0x6e,0x64,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x2c,0x61,0x73, - 0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x2b,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x6f,0x76,0x65,0x72,0x73,0x68,0x6f,0x6f, - 0x74,0x29,0x26,0x62,0x29,0x2d,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x75,0x6e,0x64,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x29,0x26,0x62,0x29,0x29,0x3b,0x0a, - 0x7d,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x20,0x66,0x61,0x73,0x74,0x5f,0x73,0x71,0x72,0x74,0x5f,0x76,0x32,0x28,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6e,0x31,0x29,0x0a,0x7b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x78,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x61, - 0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x6e,0x31,0x29,0x2e,0x73,0x31,0x3e,0x3e,0x39,0x29,0x2b,0x28,0x28,0x36,0x34,0x55,0x2b,0x31,0x32,0x37,0x55,0x29,0x3c,0x3c, - 0x32,0x33,0x29,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x78,0x31,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x72,0x73,0x71,0x72,0x74,0x28,0x78,0x29,0x3b,0x0a, - 0x78,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x73,0x71,0x72,0x74,0x28,0x78,0x29,0x3b,0x0a,0x78,0x31,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73, - 0x5f,0x75,0x69,0x6e,0x74,0x28,0x78,0x31,0x29,0x2b,0x28,0x33,0x32,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x20,0x78,0x30,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x78,0x29,0x2d,0x28,0x31,0x35,0x38,0x55,0x3c,0x3c,0x32,0x33,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x6c,0x6f,0x6e,0x67,0x20,0x64,0x65,0x6c,0x74,0x61,0x30,0x3d,0x6e,0x31,0x2d,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x28,0x75,0x69,0x6e,0x74,0x32, - 0x29,0x28,0x6d,0x75,0x6c,0x32,0x34,0x28,0x78,0x30,0x2c,0x78,0x30,0x29,0x2c,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x78,0x30,0x2c,0x78,0x30,0x29,0x29,0x29,0x3c,0x3c, - 0x31,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x64,0x65,0x6c,0x74,0x61,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66, - 0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x64,0x65,0x6c,0x74,0x61,0x30,0x29,0x2e,0x73,0x31,0x29,0x2a,0x78,0x31,0x3b, - 0x0a,0x75,0x69,0x6e,0x74,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x28,0x78,0x30,0x3c,0x3c,0x31,0x30,0x29,0x2b,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x69,0x6e, - 0x74,0x5f,0x72,0x74,0x65,0x28,0x64,0x65,0x6c,0x74,0x61,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x3d,0x72,0x65,0x73,0x75,0x6c, - 0x74,0x3e,0x3e,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x62,0x3d,0x72,0x65,0x73,0x75,0x6c,0x74,0x26,0x31,0x3b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x78,0x32,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x73,0x29,0x2a,0x28,0x73,0x2b,0x62,0x29,0x2b,0x28,0x28,0x75, - 0x6c,0x6f,0x6e,0x67,0x29,0x28,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3c,0x3c,0x33,0x32,0x29,0x2d,0x6e,0x31,0x3b,0x0a,0x69,0x66,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29, - 0x28,0x78,0x32,0x2b,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x62,0x2d,0x31,0x29,0x29,0x3e,0x3d,0x30,0x29,0x20,0x2d,0x2d,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x69, - 0x66,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x78,0x32,0x2b,0x30,0x78,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2b,0x73,0x29,0x3c,0x30,0x29,0x20, - 0x2b,0x2b,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69, - 0x66,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20,0x46,0x41,0x53,0x54,0x5f,0x44,0x49,0x56,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x46,0x41,0x53,0x54,0x5f,0x44,0x49,0x56,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x43,0x4c,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f, - 0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x69,0x6e,0x6c,0x69,0x6e, - 0x65,0x20,0x6c,0x6f,0x6e,0x67,0x20,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x68,0x65,0x61,0x76,0x79,0x28,0x6c,0x6f,0x6e,0x67,0x20,0x5f,0x61,0x2c,0x69,0x6e, - 0x74,0x20,0x5f,0x62,0x29,0x0a,0x7b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x3d,0x61,0x62,0x73,0x28,0x5f,0x61,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x62,0x3d,0x61,0x62, - 0x73,0x28,0x5f,0x62,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x63,0x70,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x72,0x65,0x63,0x69,0x70,0x28,0x63,0x6f, - 0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x62,0x29,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x63,0x70,0x32,0x3d, - 0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x72,0x63,0x70,0x29,0x2b,0x28,0x33,0x32,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29, - 0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x31,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74, - 0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x31,0x29,0x2a,0x72,0x63,0x70,0x32,0x29,0x3b, - 0x0a,0x61,0x2d,0x3d,0x71,0x31,0x2a,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x62,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x71,0x32,0x66,0x3d,0x63,0x6f,0x6e, - 0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x61,0x3e,0x3e,0x31,0x32,0x29,0x2e,0x73,0x30, - 0x29,0x2a,0x72,0x63,0x70,0x3b,0x0a,0x71,0x32,0x66,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x71,0x32,0x66,0x29, - 0x2b,0x28,0x31,0x32,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x32,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x6c,0x6f,0x6e, - 0x67,0x5f,0x72,0x74,0x65,0x28,0x71,0x32,0x66,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x61,0x32,0x3d,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x30, - 0x2d,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x71,0x32,0x29,0x2e,0x73,0x30,0x2a,0x62,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x71,0x33,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72, - 0x74,0x5f,0x69,0x6e,0x74,0x5f,0x72,0x74,0x65,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x32,0x29,0x2a, - 0x72,0x63,0x70,0x29,0x3b,0x0a,0x71,0x33,0x2b,0x3d,0x28,0x61,0x32,0x2d,0x71,0x33,0x2a,0x62,0x29,0x3e,0x3e,0x33,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x6c, - 0x6f,0x6e,0x67,0x20,0x71,0x3d,0x71,0x31,0x2b,0x71,0x32,0x2b,0x71,0x33,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32, - 0x28,0x5f,0x61,0x29,0x2e,0x73,0x31,0x5e,0x5f,0x62,0x29,0x3c,0x30,0x29,0x3f,0x2d,0x71,0x3a,0x71,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65, - 0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20,0x58,0x4d,0x52,0x49,0x47,0x5f,0x4b,0x45,0x43,0x43,0x41,0x4b,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x58,0x4d,0x52,0x49,0x47,0x5f,0x4b,0x45,0x43,0x43,0x41,0x4b,0x5f,0x43,0x4c,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6e,0x64,0x63,0x5b, - 0x32,0x34,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x2c,0x30,0x78,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x32,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x61, - 0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x38,0x30,0x38,0x62,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x2c,0x0a,0x30,0x78,0x38,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x31,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30, - 0x39,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x61,0x2c,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x38,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x39,0x2c,0x30,0x78,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x61,0x2c,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30, - 0x38,0x62,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x62,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x39,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x33,0x2c,0x30,0x78,0x38, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x32,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, - 0x38,0x30,0x2c,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x61,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30, - 0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x61,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x31,0x2c,0x0a,0x30,0x78, - 0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x30,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30, - 0x30,0x30,0x31,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x38,0x0a,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43, - 0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72, - 0x6f,0x74,0x63,0x5b,0x32,0x34,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x31,0x2c,0x33,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x31,0x35,0x2c,0x32,0x31,0x2c,0x32,0x38,0x2c,0x33,0x36, - 0x2c,0x34,0x35,0x2c,0x35,0x35,0x2c,0x32,0x2c,0x31,0x34,0x2c,0x0a,0x32,0x37,0x2c,0x34,0x31,0x2c,0x35,0x36,0x2c,0x38,0x2c,0x32,0x35,0x2c,0x34,0x33,0x2c,0x36,0x32, - 0x2c,0x31,0x38,0x2c,0x33,0x39,0x2c,0x36,0x31,0x2c,0x32,0x30,0x2c,0x34,0x34,0x0a,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x32,0x34,0x5d, - 0x20,0x3d,0x0a,0x7b,0x0a,0x31,0x30,0x2c,0x37,0x2c,0x31,0x31,0x2c,0x31,0x37,0x2c,0x31,0x38,0x2c,0x33,0x2c,0x35,0x2c,0x31,0x36,0x2c,0x38,0x2c,0x32,0x31,0x2c,0x32, - 0x34,0x2c,0x34,0x2c,0x0a,0x31,0x35,0x2c,0x32,0x33,0x2c,0x31,0x39,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x32,0x2c,0x32,0x30,0x2c,0x31,0x34,0x2c,0x32,0x32,0x2c,0x39, - 0x2c,0x36,0x2c,0x31,0x0a,0x7d,0x3b,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x31,0x28,0x75,0x6c,0x6f,0x6e,0x67, - 0x20,0x2a,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x20,0x69,0x2c,0x72,0x6f,0x75,0x6e,0x64,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x2c,0x62,0x63,0x5b, - 0x35,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x72,0x6f,0x75,0x6e,0x64,0x3d, - 0x30,0x3b,0x20,0x72,0x6f,0x75,0x6e,0x64,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x72,0x6f,0x75,0x6e,0x64,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74, - 0x5b,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x30,0x5d,0x3b,0x0a, - 0x62,0x63,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x36,0x5d,0x5e, - 0x73,0x74,0x5b,0x32,0x31,0x5d,0x3b,0x0a,0x62,0x63,0x5b,0x32,0x5d,0x3d,0x73,0x74,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x32,0x5d, - 0x5e,0x73,0x74,0x5b,0x31,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x32,0x5d,0x3b,0x0a,0x62,0x63,0x5b,0x33,0x5d,0x3d,0x73,0x74,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x38, - 0x5d,0x5e,0x73,0x74,0x5b,0x31,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x33,0x5d,0x3b,0x0a,0x62,0x63,0x5b,0x34,0x5d,0x3d,0x73,0x74, - 0x5b,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x34,0x5d,0x3b,0x0a, - 0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x35,0x3b,0x20, - 0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x74,0x3d,0x62,0x63,0x5b,0x28,0x69,0x2b,0x34,0x29,0x20,0x25,0x20,0x35,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x62,0x63, - 0x5b,0x28,0x69,0x2b,0x31,0x29,0x20,0x25,0x20,0x35,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x20,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73, - 0x74,0x5b,0x69,0x2b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x31,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69, - 0x2b,0x31,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x32,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x7d,0x0a,0x74,0x3d,0x73,0x74, - 0x5b,0x31,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x3d,0x30,0x3b,0x20, - 0x69,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69, - 0x6c,0x6e,0x5b,0x69,0x5d,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x69,0x5d,0x5d,0x3d,0x72,0x6f,0x74,0x61, - 0x74,0x65,0x28,0x74,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6f,0x74,0x63,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x74,0x3d, - 0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69, - 0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x3d,0x35,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x5b, - 0x35,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x78,0x3d, - 0x30,0x3b,0x20,0x78,0x3c,0x35,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x74,0x6d,0x70,0x5b,0x78,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28, - 0x73,0x74,0x5b,0x69,0x2b,0x78,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x28,0x28,0x78,0x2b,0x32,0x29,0x20,0x25,0x20,0x35,0x29,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x78, - 0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x28,0x28,0x78,0x2b,0x31,0x29,0x20,0x25,0x20,0x35,0x29,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20, - 0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x35,0x3b,0x20,0x2b,0x2b,0x78,0x29, - 0x20,0x7b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x78,0x5d,0x3d,0x74,0x6d,0x70,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x73,0x74,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20, - 0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x72,0x6f,0x75,0x6e,0x64,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6b,0x65, - 0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x32,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x29,0x0a,0x7b, - 0x0a,0x69,0x6e,0x74,0x20,0x69,0x2c,0x72,0x6f,0x75,0x6e,0x64,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x2c,0x62,0x63,0x5b,0x35,0x5d,0x3b,0x0a,0x23,0x70,0x72, - 0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x30,0x3b,0x20,0x72,0x6f,0x75,0x6e, - 0x64,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x72,0x6f,0x75,0x6e,0x64,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x5b, - 0x35,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x30,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73, - 0x74,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x32,0x5d,0x2c, - 0x31,0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x31,0x5d,0x5e,0x73, - 0x74,0x5b,0x31,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x31,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x38,0x5d,0x5e, - 0x73,0x74,0x5b,0x31,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x33,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x32,0x5d, - 0x3d,0x73,0x74,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x32, - 0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x31, - 0x39,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x34,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x33,0x5d,0x3d,0x73,0x74,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x38, - 0x5d,0x5e,0x73,0x74,0x5b,0x31,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x33,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74, - 0x5b,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x30,0x5d,0x2c,0x31, - 0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x34,0x5d,0x3d,0x73,0x74,0x5b,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x34,0x5d,0x5e,0x73,0x74, - 0x5b,0x31,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x34,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x36,0x5d,0x5e,0x73, - 0x74,0x5b,0x31,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x31,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x30,0x5d,0x20, - 0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x30,0x5d, - 0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32, - 0x30,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b, - 0x36,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74, - 0x5b,0x31,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a, - 0x73,0x74,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x37,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a, - 0x73,0x74,0x5b,0x31,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x37,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d, - 0x3b,0x0a,0x73,0x74,0x5b,0x32,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32, - 0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x38,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b, - 0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x38,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62, - 0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x39,0x5d,0x20,0x5e,0x3d,0x20,0x62, - 0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x39,0x5d,0x20,0x5e,0x3d, - 0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x74,0x3d,0x73,0x74,0x5b,0x31,0x5d, - 0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32, - 0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b, - 0x69,0x5d,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x69,0x5d,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28, - 0x74,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6f,0x74,0x63,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x74,0x3d,0x62,0x63,0x5b, - 0x30,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20, - 0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x3d,0x35,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x31,0x3d,0x73,0x74, - 0x5b,0x69,0x5d,0x2c,0x74,0x6d,0x70,0x32,0x3d,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63, - 0x74,0x28,0x73,0x74,0x5b,0x69,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x29,0x3b,0x0a, - 0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x33, - 0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x3d,0x62,0x69,0x74,0x73, - 0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x2c,0x73,0x74, - 0x5b,0x69,0x2b,0x33,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x33, - 0x5d,0x5e,0x74,0x6d,0x70,0x31,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d, - 0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x5e,0x74,0x6d,0x70,0x32,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x2c, - 0x74,0x6d,0x70,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x73,0x74,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x72, - 0x6f,0x75,0x6e,0x64,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x20,0x28,0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f, - 0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x29,0x20,0x7c,0x7c,0x20,0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x41, - 0x50,0x50,0x4c,0x45,0x5f,0x5f,0x29,0x29,0x20,0x26,0x26,0x20,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x21,0x3d,0x20,0x30,0x0a,0x23, - 0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x52,0x49, - 0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x30,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4d,0x45,0x4d,0x5f,0x43, - 0x48,0x55,0x4e,0x4b,0x20,0x28,0x31,0x20,0x3c,0x3c,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x5f,0x45,0x58,0x50,0x4f,0x4e,0x45,0x4e,0x54,0x29,0x0a,0x23, - 0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x49,0x44,0x58,0x28,0x78,0x29,0x20,0x28,0x78,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20, - 0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59, - 0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x28,0x78,0x29,0x20,0x28,0x28,0x78,0x29,0x20,0x2a, - 0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x28,0x78,0x29,0x20, - 0x6d,0x75,0x6c,0x32,0x34,0x28,0x28,0x78,0x29,0x2c,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66, - 0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44, - 0x58,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x25,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x29,0x20,0x2b,0x20,0x28,0x28,0x78,0x29,0x20,0x2f, - 0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x29,0x20,0x2a,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55, - 0x4e,0x4b,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29, - 0x0a,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2d,0x67,0x65,0x74,0x5f,0x67, - 0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x69,0x78,0x5f,0x61, - 0x6e,0x64,0x5f,0x70,0x72,0x6f,0x70,0x61,0x67,0x61,0x74,0x65,0x28,0x78,0x69,0x6e,0x29,0x20,0x28,0x78,0x69,0x6e,0x29,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63, - 0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x29,0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x20, - 0x5e,0x20,0x28,0x78,0x69,0x6e,0x29,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x20,0x2b,0x20,0x31,0x29,0x20,0x25,0x20, - 0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f, - 0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x38,0x2c,0x38,0x2c,0x31,0x29,0x29,0x29, - 0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x30,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e, - 0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x69,0x6e,0x74,0x20,0x69,0x6e,0x6c,0x65,0x6e,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74, - 0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x45,0x78,0x70,0x61,0x6e,0x64, - 0x65,0x64,0x4b,0x65,0x79,0x31,0x5b,0x34,0x30,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35, - 0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x32,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x33,0x5b,0x32,0x35,0x36,0x5d, - 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x65,0x78,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65, - 0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, - 0x31,0x29,0x2a,0x38,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d, - 0x38,0x2a,0x38,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b, - 0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70, - 0x2c,0x38,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x32,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x41, - 0x45,0x53,0x33,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x32,0x34,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65, - 0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, - 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x74,0x61,0x74,0x65,0x5f,0x62,0x75,0x66,0x5b,0x38,0x2a,0x32,0x35,0x5d,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b, - 0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20, - 0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b, - 0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20, + 0x5f,0x57,0x52,0x4b,0x5a,0x20,0x30,0x78,0x36,0x31,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x53, + 0x54,0x52,0x4f,0x42,0x57,0x54,0x5f,0x44,0x45,0x52,0x4f,0x20,0x30,0x78,0x34,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41, + 0x4c,0x47,0x4f,0x5f,0x4b,0x41,0x57,0x50,0x4f,0x57,0x5f,0x52,0x56,0x4e,0x20,0x30,0x78,0x36,0x62,0x30,0x66,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x55,0x4e,0x4b,0x4e,0x4f,0x57,0x4e,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c, + 0x59,0x5f,0x43,0x4e,0x20,0x30,0x78,0x36,0x33,0x31,0x35,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43, + 0x4e,0x5f,0x4c,0x49,0x54,0x45,0x20,0x30,0x78,0x36,0x33,0x31,0x34,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59, + 0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x20,0x30,0x78,0x36,0x33,0x31,0x36,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d, + 0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x50,0x49,0x43,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46, + 0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x46,0x45,0x4d,0x54,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x31,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x5f,0x58,0x20,0x30,0x78,0x37,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x41,0x52,0x47,0x4f,0x4e,0x32,0x20,0x30,0x78,0x36,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x41,0x53,0x54,0x52,0x4f,0x42,0x57,0x54,0x20,0x30,0x78,0x34,0x31,0x30,0x30,0x30,0x30,0x30,0x30, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x4b,0x41,0x57,0x50,0x4f,0x57,0x20,0x30,0x78,0x36,0x62,0x30,0x30,0x30,0x30,0x30, + 0x30,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20,0x57,0x4f,0x4c,0x46,0x5f,0x41,0x45,0x53,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x4f, + 0x4c,0x46,0x5f,0x41,0x45,0x53,0x5f,0x43,0x4c,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53, + 0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61, + 0x5f,0x6f,0x70,0x73,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x0a,0x23,0x70,0x72,0x61, + 0x67,0x6d,0x61,0x20,0x4f,0x50,0x45,0x4e,0x43,0x4c,0x20,0x45,0x58,0x54,0x45,0x4e,0x53,0x49,0x4f,0x4e,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69, + 0x61,0x5f,0x6f,0x70,0x73,0x32,0x20,0x3a,0x20,0x65,0x6e,0x61,0x62,0x6c,0x65,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54, + 0x41,0x54,0x49,0x43,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x69,0x6e,0x74,0x20,0x61,0x6d,0x64,0x5f,0x62,0x66,0x65,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x20,0x73,0x72,0x63,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x20,0x77,0x69,0x64,0x74,0x68,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x77,0x69,0x64,0x74,0x68,0x29,0x3c, + 0x33,0x32,0x75,0x29,0x20,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x73,0x72,0x63,0x30,0x3c,0x3c,0x28,0x33,0x32,0x75,0x2d,0x6f,0x66,0x66,0x73,0x65,0x74, + 0x2d,0x77,0x69,0x64,0x74,0x68,0x29,0x29,0x3e,0x3e,0x28,0x33,0x32,0x75,0x2d,0x77,0x69,0x64,0x74,0x68,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, + 0x73,0x72,0x63,0x30,0x3e,0x3e,0x6f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x32,0x35,0x36,0x5d,0x20, + 0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x41,0x35,0x36,0x33,0x36,0x33,0x43,0x36,0x55,0x2c,0x30,0x78,0x38,0x34,0x37,0x43,0x37,0x43,0x46,0x38,0x55,0x2c,0x30,0x78,0x39,0x39, + 0x37,0x37,0x37,0x37,0x45,0x45,0x55,0x2c,0x30,0x78,0x38,0x44,0x37,0x42,0x37,0x42,0x46,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x44,0x46,0x32,0x46,0x32,0x46,0x46,0x55, + 0x2c,0x30,0x78,0x42,0x44,0x36,0x42,0x36,0x42,0x44,0x36,0x55,0x2c,0x30,0x78,0x42,0x31,0x36,0x46,0x36,0x46,0x44,0x45,0x55,0x2c,0x30,0x78,0x35,0x34,0x43,0x35,0x43, + 0x35,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x33,0x30,0x33,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x31,0x30,0x31,0x30,0x32,0x55,0x2c,0x30,0x78, + 0x41,0x39,0x36,0x37,0x36,0x37,0x43,0x45,0x55,0x2c,0x30,0x78,0x37,0x44,0x32,0x42,0x32,0x42,0x35,0x36,0x55,0x2c,0x0a,0x30,0x78,0x31,0x39,0x46,0x45,0x46,0x45,0x45, + 0x37,0x55,0x2c,0x30,0x78,0x36,0x32,0x44,0x37,0x44,0x37,0x42,0x35,0x55,0x2c,0x30,0x78,0x45,0x36,0x41,0x42,0x41,0x42,0x34,0x44,0x55,0x2c,0x30,0x78,0x39,0x41,0x37, + 0x36,0x37,0x36,0x45,0x43,0x55,0x2c,0x0a,0x30,0x78,0x34,0x35,0x43,0x41,0x43,0x41,0x38,0x46,0x55,0x2c,0x30,0x78,0x39,0x44,0x38,0x32,0x38,0x32,0x31,0x46,0x55,0x2c, + 0x30,0x78,0x34,0x30,0x43,0x39,0x43,0x39,0x38,0x39,0x55,0x2c,0x30,0x78,0x38,0x37,0x37,0x44,0x37,0x44,0x46,0x41,0x55,0x2c,0x0a,0x30,0x78,0x31,0x35,0x46,0x41,0x46, + 0x41,0x45,0x46,0x55,0x2c,0x30,0x78,0x45,0x42,0x35,0x39,0x35,0x39,0x42,0x32,0x55,0x2c,0x30,0x78,0x43,0x39,0x34,0x37,0x34,0x37,0x38,0x45,0x55,0x2c,0x30,0x78,0x30, + 0x42,0x46,0x30,0x46,0x30,0x46,0x42,0x55,0x2c,0x0a,0x30,0x78,0x45,0x43,0x41,0x44,0x41,0x44,0x34,0x31,0x55,0x2c,0x30,0x78,0x36,0x37,0x44,0x34,0x44,0x34,0x42,0x33, + 0x55,0x2c,0x30,0x78,0x46,0x44,0x41,0x32,0x41,0x32,0x35,0x46,0x55,0x2c,0x30,0x78,0x45,0x41,0x41,0x46,0x41,0x46,0x34,0x35,0x55,0x2c,0x0a,0x30,0x78,0x42,0x46,0x39, + 0x43,0x39,0x43,0x32,0x33,0x55,0x2c,0x30,0x78,0x46,0x37,0x41,0x34,0x41,0x34,0x35,0x33,0x55,0x2c,0x30,0x78,0x39,0x36,0x37,0x32,0x37,0x32,0x45,0x34,0x55,0x2c,0x30, + 0x78,0x35,0x42,0x43,0x30,0x43,0x30,0x39,0x42,0x55,0x2c,0x0a,0x30,0x78,0x43,0x32,0x42,0x37,0x42,0x37,0x37,0x35,0x55,0x2c,0x30,0x78,0x31,0x43,0x46,0x44,0x46,0x44, + 0x45,0x31,0x55,0x2c,0x30,0x78,0x41,0x45,0x39,0x33,0x39,0x33,0x33,0x44,0x55,0x2c,0x30,0x78,0x36,0x41,0x32,0x36,0x32,0x36,0x34,0x43,0x55,0x2c,0x0a,0x30,0x78,0x35, + 0x41,0x33,0x36,0x33,0x36,0x36,0x43,0x55,0x2c,0x30,0x78,0x34,0x31,0x33,0x46,0x33,0x46,0x37,0x45,0x55,0x2c,0x30,0x78,0x30,0x32,0x46,0x37,0x46,0x37,0x46,0x35,0x55, + 0x2c,0x30,0x78,0x34,0x46,0x43,0x43,0x43,0x43,0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x43,0x33,0x34,0x33,0x34,0x36,0x38,0x55,0x2c,0x30,0x78,0x46,0x34,0x41,0x35, + 0x41,0x35,0x35,0x31,0x55,0x2c,0x30,0x78,0x33,0x34,0x45,0x35,0x45,0x35,0x44,0x31,0x55,0x2c,0x30,0x78,0x30,0x38,0x46,0x31,0x46,0x31,0x46,0x39,0x55,0x2c,0x0a,0x30, + 0x78,0x39,0x33,0x37,0x31,0x37,0x31,0x45,0x32,0x55,0x2c,0x30,0x78,0x37,0x33,0x44,0x38,0x44,0x38,0x41,0x42,0x55,0x2c,0x30,0x78,0x35,0x33,0x33,0x31,0x33,0x31,0x36, + 0x32,0x55,0x2c,0x30,0x78,0x33,0x46,0x31,0x35,0x31,0x35,0x32,0x41,0x55,0x2c,0x0a,0x30,0x78,0x30,0x43,0x30,0x34,0x30,0x34,0x30,0x38,0x55,0x2c,0x30,0x78,0x35,0x32, + 0x43,0x37,0x43,0x37,0x39,0x35,0x55,0x2c,0x30,0x78,0x36,0x35,0x32,0x33,0x32,0x33,0x34,0x36,0x55,0x2c,0x30,0x78,0x35,0x45,0x43,0x33,0x43,0x33,0x39,0x44,0x55,0x2c, + 0x0a,0x30,0x78,0x32,0x38,0x31,0x38,0x31,0x38,0x33,0x30,0x55,0x2c,0x30,0x78,0x41,0x31,0x39,0x36,0x39,0x36,0x33,0x37,0x55,0x2c,0x30,0x78,0x30,0x46,0x30,0x35,0x30, + 0x35,0x30,0x41,0x55,0x2c,0x30,0x78,0x42,0x35,0x39,0x41,0x39,0x41,0x32,0x46,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x37,0x30,0x37,0x30,0x45,0x55,0x2c,0x30,0x78, + 0x33,0x36,0x31,0x32,0x31,0x32,0x32,0x34,0x55,0x2c,0x30,0x78,0x39,0x42,0x38,0x30,0x38,0x30,0x31,0x42,0x55,0x2c,0x30,0x78,0x33,0x44,0x45,0x32,0x45,0x32,0x44,0x46, + 0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x45,0x42,0x45,0x42,0x43,0x44,0x55,0x2c,0x30,0x78,0x36,0x39,0x32,0x37,0x32,0x37,0x34,0x45,0x55,0x2c,0x30,0x78,0x43,0x44,0x42, + 0x32,0x42,0x32,0x37,0x46,0x55,0x2c,0x30,0x78,0x39,0x46,0x37,0x35,0x37,0x35,0x45,0x41,0x55,0x2c,0x0a,0x30,0x78,0x31,0x42,0x30,0x39,0x30,0x39,0x31,0x32,0x55,0x2c, + 0x30,0x78,0x39,0x45,0x38,0x33,0x38,0x33,0x31,0x44,0x55,0x2c,0x30,0x78,0x37,0x34,0x32,0x43,0x32,0x43,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x45,0x31,0x41,0x31,0x41, + 0x33,0x34,0x55,0x2c,0x0a,0x30,0x78,0x32,0x44,0x31,0x42,0x31,0x42,0x33,0x36,0x55,0x2c,0x30,0x78,0x42,0x32,0x36,0x45,0x36,0x45,0x44,0x43,0x55,0x2c,0x30,0x78,0x45, + 0x45,0x35,0x41,0x35,0x41,0x42,0x34,0x55,0x2c,0x30,0x78,0x46,0x42,0x41,0x30,0x41,0x30,0x35,0x42,0x55,0x2c,0x0a,0x30,0x78,0x46,0x36,0x35,0x32,0x35,0x32,0x41,0x34, + 0x55,0x2c,0x30,0x78,0x34,0x44,0x33,0x42,0x33,0x42,0x37,0x36,0x55,0x2c,0x30,0x78,0x36,0x31,0x44,0x36,0x44,0x36,0x42,0x37,0x55,0x2c,0x30,0x78,0x43,0x45,0x42,0x33, + 0x42,0x33,0x37,0x44,0x55,0x2c,0x0a,0x30,0x78,0x37,0x42,0x32,0x39,0x32,0x39,0x35,0x32,0x55,0x2c,0x30,0x78,0x33,0x45,0x45,0x33,0x45,0x33,0x44,0x44,0x55,0x2c,0x30, + 0x78,0x37,0x31,0x32,0x46,0x32,0x46,0x35,0x45,0x55,0x2c,0x30,0x78,0x39,0x37,0x38,0x34,0x38,0x34,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x46,0x35,0x35,0x33,0x35,0x33, + 0x41,0x36,0x55,0x2c,0x30,0x78,0x36,0x38,0x44,0x31,0x44,0x31,0x42,0x39,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x30,0x78,0x32,0x43, + 0x45,0x44,0x45,0x44,0x43,0x31,0x55,0x2c,0x0a,0x30,0x78,0x36,0x30,0x32,0x30,0x32,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x31,0x46,0x46,0x43,0x46,0x43,0x45,0x33,0x55, + 0x2c,0x30,0x78,0x43,0x38,0x42,0x31,0x42,0x31,0x37,0x39,0x55,0x2c,0x30,0x78,0x45,0x44,0x35,0x42,0x35,0x42,0x42,0x36,0x55,0x2c,0x0a,0x30,0x78,0x42,0x45,0x36,0x41, + 0x36,0x41,0x44,0x34,0x55,0x2c,0x30,0x78,0x34,0x36,0x43,0x42,0x43,0x42,0x38,0x44,0x55,0x2c,0x30,0x78,0x44,0x39,0x42,0x45,0x42,0x45,0x36,0x37,0x55,0x2c,0x30,0x78, + 0x34,0x42,0x33,0x39,0x33,0x39,0x37,0x32,0x55,0x2c,0x0a,0x30,0x78,0x44,0x45,0x34,0x41,0x34,0x41,0x39,0x34,0x55,0x2c,0x30,0x78,0x44,0x34,0x34,0x43,0x34,0x43,0x39, + 0x38,0x55,0x2c,0x30,0x78,0x45,0x38,0x35,0x38,0x35,0x38,0x42,0x30,0x55,0x2c,0x30,0x78,0x34,0x41,0x43,0x46,0x43,0x46,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x42, + 0x44,0x30,0x44,0x30,0x42,0x42,0x55,0x2c,0x30,0x78,0x32,0x41,0x45,0x46,0x45,0x46,0x43,0x35,0x55,0x2c,0x30,0x78,0x45,0x35,0x41,0x41,0x41,0x41,0x34,0x46,0x55,0x2c, + 0x30,0x78,0x31,0x36,0x46,0x42,0x46,0x42,0x45,0x44,0x55,0x2c,0x0a,0x30,0x78,0x43,0x35,0x34,0x33,0x34,0x33,0x38,0x36,0x55,0x2c,0x30,0x78,0x44,0x37,0x34,0x44,0x34, + 0x44,0x39,0x41,0x55,0x2c,0x30,0x78,0x35,0x35,0x33,0x33,0x33,0x33,0x36,0x36,0x55,0x2c,0x30,0x78,0x39,0x34,0x38,0x35,0x38,0x35,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78, + 0x43,0x46,0x34,0x35,0x34,0x35,0x38,0x41,0x55,0x2c,0x30,0x78,0x31,0x30,0x46,0x39,0x46,0x39,0x45,0x39,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x32,0x30,0x32,0x30,0x34, + 0x55,0x2c,0x30,0x78,0x38,0x31,0x37,0x46,0x37,0x46,0x46,0x45,0x55,0x2c,0x0a,0x30,0x78,0x46,0x30,0x35,0x30,0x35,0x30,0x41,0x30,0x55,0x2c,0x30,0x78,0x34,0x34,0x33, + 0x43,0x33,0x43,0x37,0x38,0x55,0x2c,0x30,0x78,0x42,0x41,0x39,0x46,0x39,0x46,0x32,0x35,0x55,0x2c,0x30,0x78,0x45,0x33,0x41,0x38,0x41,0x38,0x34,0x42,0x55,0x2c,0x0a, + 0x30,0x78,0x46,0x33,0x35,0x31,0x35,0x31,0x41,0x32,0x55,0x2c,0x30,0x78,0x46,0x45,0x41,0x33,0x41,0x33,0x35,0x44,0x55,0x2c,0x30,0x78,0x43,0x30,0x34,0x30,0x34,0x30, + 0x38,0x30,0x55,0x2c,0x30,0x78,0x38,0x41,0x38,0x46,0x38,0x46,0x30,0x35,0x55,0x2c,0x0a,0x30,0x78,0x41,0x44,0x39,0x32,0x39,0x32,0x33,0x46,0x55,0x2c,0x30,0x78,0x42, + 0x43,0x39,0x44,0x39,0x44,0x32,0x31,0x55,0x2c,0x30,0x78,0x34,0x38,0x33,0x38,0x33,0x38,0x37,0x30,0x55,0x2c,0x30,0x78,0x30,0x34,0x46,0x35,0x46,0x35,0x46,0x31,0x55, + 0x2c,0x0a,0x30,0x78,0x44,0x46,0x42,0x43,0x42,0x43,0x36,0x33,0x55,0x2c,0x30,0x78,0x43,0x31,0x42,0x36,0x42,0x36,0x37,0x37,0x55,0x2c,0x30,0x78,0x37,0x35,0x44,0x41, + 0x44,0x41,0x41,0x46,0x55,0x2c,0x30,0x78,0x36,0x33,0x32,0x31,0x32,0x31,0x34,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x31,0x30,0x31,0x30,0x32,0x30,0x55,0x2c,0x30, + 0x78,0x31,0x41,0x46,0x46,0x46,0x46,0x45,0x35,0x55,0x2c,0x30,0x78,0x30,0x45,0x46,0x33,0x46,0x33,0x46,0x44,0x55,0x2c,0x30,0x78,0x36,0x44,0x44,0x32,0x44,0x32,0x42, + 0x46,0x55,0x2c,0x0a,0x30,0x78,0x34,0x43,0x43,0x44,0x43,0x44,0x38,0x31,0x55,0x2c,0x30,0x78,0x31,0x34,0x30,0x43,0x30,0x43,0x31,0x38,0x55,0x2c,0x30,0x78,0x33,0x35, + 0x31,0x33,0x31,0x33,0x32,0x36,0x55,0x2c,0x30,0x78,0x32,0x46,0x45,0x43,0x45,0x43,0x43,0x33,0x55,0x2c,0x0a,0x30,0x78,0x45,0x31,0x35,0x46,0x35,0x46,0x42,0x45,0x55, + 0x2c,0x30,0x78,0x41,0x32,0x39,0x37,0x39,0x37,0x33,0x35,0x55,0x2c,0x30,0x78,0x43,0x43,0x34,0x34,0x34,0x34,0x38,0x38,0x55,0x2c,0x30,0x78,0x33,0x39,0x31,0x37,0x31, + 0x37,0x32,0x45,0x55,0x2c,0x0a,0x30,0x78,0x35,0x37,0x43,0x34,0x43,0x34,0x39,0x33,0x55,0x2c,0x30,0x78,0x46,0x32,0x41,0x37,0x41,0x37,0x35,0x35,0x55,0x2c,0x30,0x78, + 0x38,0x32,0x37,0x45,0x37,0x45,0x46,0x43,0x55,0x2c,0x30,0x78,0x34,0x37,0x33,0x44,0x33,0x44,0x37,0x41,0x55,0x2c,0x0a,0x30,0x78,0x41,0x43,0x36,0x34,0x36,0x34,0x43, + 0x38,0x55,0x2c,0x30,0x78,0x45,0x37,0x35,0x44,0x35,0x44,0x42,0x41,0x55,0x2c,0x30,0x78,0x32,0x42,0x31,0x39,0x31,0x39,0x33,0x32,0x55,0x2c,0x30,0x78,0x39,0x35,0x37, + 0x33,0x37,0x33,0x45,0x36,0x55,0x2c,0x0a,0x30,0x78,0x41,0x30,0x36,0x30,0x36,0x30,0x43,0x30,0x55,0x2c,0x30,0x78,0x39,0x38,0x38,0x31,0x38,0x31,0x31,0x39,0x55,0x2c, + 0x30,0x78,0x44,0x31,0x34,0x46,0x34,0x46,0x39,0x45,0x55,0x2c,0x30,0x78,0x37,0x46,0x44,0x43,0x44,0x43,0x41,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x36,0x32,0x32,0x32, + 0x32,0x34,0x34,0x55,0x2c,0x30,0x78,0x37,0x45,0x32,0x41,0x32,0x41,0x35,0x34,0x55,0x2c,0x30,0x78,0x41,0x42,0x39,0x30,0x39,0x30,0x33,0x42,0x55,0x2c,0x30,0x78,0x38, + 0x33,0x38,0x38,0x38,0x38,0x30,0x42,0x55,0x2c,0x0a,0x30,0x78,0x43,0x41,0x34,0x36,0x34,0x36,0x38,0x43,0x55,0x2c,0x30,0x78,0x32,0x39,0x45,0x45,0x45,0x45,0x43,0x37, + 0x55,0x2c,0x30,0x78,0x44,0x33,0x42,0x38,0x42,0x38,0x36,0x42,0x55,0x2c,0x30,0x78,0x33,0x43,0x31,0x34,0x31,0x34,0x32,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x39,0x44, + 0x45,0x44,0x45,0x41,0x37,0x55,0x2c,0x30,0x78,0x45,0x32,0x35,0x45,0x35,0x45,0x42,0x43,0x55,0x2c,0x30,0x78,0x31,0x44,0x30,0x42,0x30,0x42,0x31,0x36,0x55,0x2c,0x30, + 0x78,0x37,0x36,0x44,0x42,0x44,0x42,0x41,0x44,0x55,0x2c,0x0a,0x30,0x78,0x33,0x42,0x45,0x30,0x45,0x30,0x44,0x42,0x55,0x2c,0x30,0x78,0x35,0x36,0x33,0x32,0x33,0x32, + 0x36,0x34,0x55,0x2c,0x30,0x78,0x34,0x45,0x33,0x41,0x33,0x41,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x45,0x30,0x41,0x30,0x41,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x44, + 0x42,0x34,0x39,0x34,0x39,0x39,0x32,0x55,0x2c,0x30,0x78,0x30,0x41,0x30,0x36,0x30,0x36,0x30,0x43,0x55,0x2c,0x30,0x78,0x36,0x43,0x32,0x34,0x32,0x34,0x34,0x38,0x55, + 0x2c,0x30,0x78,0x45,0x34,0x35,0x43,0x35,0x43,0x42,0x38,0x55,0x2c,0x0a,0x30,0x78,0x35,0x44,0x43,0x32,0x43,0x32,0x39,0x46,0x55,0x2c,0x30,0x78,0x36,0x45,0x44,0x33, + 0x44,0x33,0x42,0x44,0x55,0x2c,0x30,0x78,0x45,0x46,0x41,0x43,0x41,0x43,0x34,0x33,0x55,0x2c,0x30,0x78,0x41,0x36,0x36,0x32,0x36,0x32,0x43,0x34,0x55,0x2c,0x0a,0x30, + 0x78,0x41,0x38,0x39,0x31,0x39,0x31,0x33,0x39,0x55,0x2c,0x30,0x78,0x41,0x34,0x39,0x35,0x39,0x35,0x33,0x31,0x55,0x2c,0x30,0x78,0x33,0x37,0x45,0x34,0x45,0x34,0x44, + 0x33,0x55,0x2c,0x30,0x78,0x38,0x42,0x37,0x39,0x37,0x39,0x46,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x32,0x45,0x37,0x45,0x37,0x44,0x35,0x55,0x2c,0x30,0x78,0x34,0x33, + 0x43,0x38,0x43,0x38,0x38,0x42,0x55,0x2c,0x30,0x78,0x35,0x39,0x33,0x37,0x33,0x37,0x36,0x45,0x55,0x2c,0x30,0x78,0x42,0x37,0x36,0x44,0x36,0x44,0x44,0x41,0x55,0x2c, + 0x0a,0x30,0x78,0x38,0x43,0x38,0x44,0x38,0x44,0x30,0x31,0x55,0x2c,0x30,0x78,0x36,0x34,0x44,0x35,0x44,0x35,0x42,0x31,0x55,0x2c,0x30,0x78,0x44,0x32,0x34,0x45,0x34, + 0x45,0x39,0x43,0x55,0x2c,0x30,0x78,0x45,0x30,0x41,0x39,0x41,0x39,0x34,0x39,0x55,0x2c,0x0a,0x30,0x78,0x42,0x34,0x36,0x43,0x36,0x43,0x44,0x38,0x55,0x2c,0x30,0x78, + 0x46,0x41,0x35,0x36,0x35,0x36,0x41,0x43,0x55,0x2c,0x30,0x78,0x30,0x37,0x46,0x34,0x46,0x34,0x46,0x33,0x55,0x2c,0x30,0x78,0x32,0x35,0x45,0x41,0x45,0x41,0x43,0x46, + 0x55,0x2c,0x0a,0x30,0x78,0x41,0x46,0x36,0x35,0x36,0x35,0x43,0x41,0x55,0x2c,0x30,0x78,0x38,0x45,0x37,0x41,0x37,0x41,0x46,0x34,0x55,0x2c,0x30,0x78,0x45,0x39,0x41, + 0x45,0x41,0x45,0x34,0x37,0x55,0x2c,0x30,0x78,0x31,0x38,0x30,0x38,0x30,0x38,0x31,0x30,0x55,0x2c,0x0a,0x30,0x78,0x44,0x35,0x42,0x41,0x42,0x41,0x36,0x46,0x55,0x2c, + 0x30,0x78,0x38,0x38,0x37,0x38,0x37,0x38,0x46,0x30,0x55,0x2c,0x30,0x78,0x36,0x46,0x32,0x35,0x32,0x35,0x34,0x41,0x55,0x2c,0x30,0x78,0x37,0x32,0x32,0x45,0x32,0x45, + 0x35,0x43,0x55,0x2c,0x0a,0x30,0x78,0x32,0x34,0x31,0x43,0x31,0x43,0x33,0x38,0x55,0x2c,0x30,0x78,0x46,0x31,0x41,0x36,0x41,0x36,0x35,0x37,0x55,0x2c,0x30,0x78,0x43, + 0x37,0x42,0x34,0x42,0x34,0x37,0x33,0x55,0x2c,0x30,0x78,0x35,0x31,0x43,0x36,0x43,0x36,0x39,0x37,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x45,0x38,0x45,0x38,0x43,0x42, + 0x55,0x2c,0x30,0x78,0x37,0x43,0x44,0x44,0x44,0x44,0x41,0x31,0x55,0x2c,0x30,0x78,0x39,0x43,0x37,0x34,0x37,0x34,0x45,0x38,0x55,0x2c,0x30,0x78,0x32,0x31,0x31,0x46, + 0x31,0x46,0x33,0x45,0x55,0x2c,0x0a,0x30,0x78,0x44,0x44,0x34,0x42,0x34,0x42,0x39,0x36,0x55,0x2c,0x30,0x78,0x44,0x43,0x42,0x44,0x42,0x44,0x36,0x31,0x55,0x2c,0x30, + 0x78,0x38,0x36,0x38,0x42,0x38,0x42,0x30,0x44,0x55,0x2c,0x30,0x78,0x38,0x35,0x38,0x41,0x38,0x41,0x30,0x46,0x55,0x2c,0x0a,0x30,0x78,0x39,0x30,0x37,0x30,0x37,0x30, + 0x45,0x30,0x55,0x2c,0x30,0x78,0x34,0x32,0x33,0x45,0x33,0x45,0x37,0x43,0x55,0x2c,0x30,0x78,0x43,0x34,0x42,0x35,0x42,0x35,0x37,0x31,0x55,0x2c,0x30,0x78,0x41,0x41, + 0x36,0x36,0x36,0x36,0x43,0x43,0x55,0x2c,0x0a,0x30,0x78,0x44,0x38,0x34,0x38,0x34,0x38,0x39,0x30,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x33,0x30,0x33,0x30,0x36,0x55, + 0x2c,0x30,0x78,0x30,0x31,0x46,0x36,0x46,0x36,0x46,0x37,0x55,0x2c,0x30,0x78,0x31,0x32,0x30,0x45,0x30,0x45,0x31,0x43,0x55,0x2c,0x0a,0x30,0x78,0x41,0x33,0x36,0x31, + 0x36,0x31,0x43,0x32,0x55,0x2c,0x30,0x78,0x35,0x46,0x33,0x35,0x33,0x35,0x36,0x41,0x55,0x2c,0x30,0x78,0x46,0x39,0x35,0x37,0x35,0x37,0x41,0x45,0x55,0x2c,0x30,0x78, + 0x44,0x30,0x42,0x39,0x42,0x39,0x36,0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x38,0x36,0x38,0x36,0x31,0x37,0x55,0x2c,0x30,0x78,0x35,0x38,0x43,0x31,0x43,0x31,0x39, + 0x39,0x55,0x2c,0x30,0x78,0x32,0x37,0x31,0x44,0x31,0x44,0x33,0x41,0x55,0x2c,0x30,0x78,0x42,0x39,0x39,0x45,0x39,0x45,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x38, + 0x45,0x31,0x45,0x31,0x44,0x39,0x55,0x2c,0x30,0x78,0x31,0x33,0x46,0x38,0x46,0x38,0x45,0x42,0x55,0x2c,0x30,0x78,0x42,0x33,0x39,0x38,0x39,0x38,0x32,0x42,0x55,0x2c, + 0x30,0x78,0x33,0x33,0x31,0x31,0x31,0x31,0x32,0x32,0x55,0x2c,0x0a,0x30,0x78,0x42,0x42,0x36,0x39,0x36,0x39,0x44,0x32,0x55,0x2c,0x30,0x78,0x37,0x30,0x44,0x39,0x44, + 0x39,0x41,0x39,0x55,0x2c,0x30,0x78,0x38,0x39,0x38,0x45,0x38,0x45,0x30,0x37,0x55,0x2c,0x30,0x78,0x41,0x37,0x39,0x34,0x39,0x34,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78, + 0x42,0x36,0x39,0x42,0x39,0x42,0x32,0x44,0x55,0x2c,0x30,0x78,0x32,0x32,0x31,0x45,0x31,0x45,0x33,0x43,0x55,0x2c,0x30,0x78,0x39,0x32,0x38,0x37,0x38,0x37,0x31,0x35, + 0x55,0x2c,0x30,0x78,0x32,0x30,0x45,0x39,0x45,0x39,0x43,0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x43,0x45,0x43,0x45,0x38,0x37,0x55,0x2c,0x30,0x78,0x46,0x46,0x35, + 0x35,0x35,0x35,0x41,0x41,0x55,0x2c,0x30,0x78,0x37,0x38,0x32,0x38,0x32,0x38,0x35,0x30,0x55,0x2c,0x30,0x78,0x37,0x41,0x44,0x46,0x44,0x46,0x41,0x35,0x55,0x2c,0x0a, + 0x30,0x78,0x38,0x46,0x38,0x43,0x38,0x43,0x30,0x33,0x55,0x2c,0x30,0x78,0x46,0x38,0x41,0x31,0x41,0x31,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x30,0x38,0x39,0x38,0x39, + 0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x37,0x30,0x44,0x30,0x44,0x31,0x41,0x55,0x2c,0x0a,0x30,0x78,0x44,0x41,0x42,0x46,0x42,0x46,0x36,0x35,0x55,0x2c,0x30,0x78,0x33, + 0x31,0x45,0x36,0x45,0x36,0x44,0x37,0x55,0x2c,0x30,0x78,0x43,0x36,0x34,0x32,0x34,0x32,0x38,0x34,0x55,0x2c,0x30,0x78,0x42,0x38,0x36,0x38,0x36,0x38,0x44,0x30,0x55, + 0x2c,0x0a,0x30,0x78,0x43,0x33,0x34,0x31,0x34,0x31,0x38,0x32,0x55,0x2c,0x30,0x78,0x42,0x30,0x39,0x39,0x39,0x39,0x32,0x39,0x55,0x2c,0x30,0x78,0x37,0x37,0x32,0x44, + 0x32,0x44,0x35,0x41,0x55,0x2c,0x30,0x78,0x31,0x31,0x30,0x46,0x30,0x46,0x31,0x45,0x55,0x2c,0x0a,0x30,0x78,0x43,0x42,0x42,0x30,0x42,0x30,0x37,0x42,0x55,0x2c,0x30, + 0x78,0x46,0x43,0x35,0x34,0x35,0x34,0x41,0x38,0x55,0x2c,0x30,0x78,0x44,0x36,0x42,0x42,0x42,0x42,0x36,0x44,0x55,0x2c,0x30,0x78,0x33,0x41,0x31,0x36,0x31,0x36,0x32, + 0x43,0x55,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x59,0x54,0x45,0x28,0x78,0x2c,0x20,0x79,0x29,0x20,0x28,0x61,0x6d,0x64,0x5f,0x62,0x66, + 0x65,0x28,0x28,0x78,0x29,0x2c,0x20,0x28,0x79,0x29,0x20,0x3c,0x3c,0x20,0x33,0x55,0x2c,0x20,0x38,0x55,0x29,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f, + 0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75, + 0x69,0x6e,0x74,0x34,0x20,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x62,0x69,0x74,0x74,0x75,0x62,0x65,0x32,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x31,0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x78,0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x6b,0x29,0x0a,0x7b,0x0a,0x78,0x3d,0x7e, + 0x78,0x3b,0x0a,0x6b,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45, + 0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54, + 0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36, + 0x55,0x29,0x3b,0x0a,0x78,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x6b,0x2e,0x73,0x30,0x3b,0x0a,0x6b,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42, + 0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e, + 0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42, + 0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x78,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x6b,0x2e,0x73,0x31,0x3b, + 0x0a,0x6b,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31, + 0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28, + 0x78,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29, + 0x3b,0x0a,0x78,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x6b,0x2e,0x73,0x32,0x3b,0x0a,0x6b,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54, + 0x45,0x28,0x78,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f, + 0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x78,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54, + 0x45,0x28,0x78,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6b,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20, + 0x2a,0x41,0x45,0x53,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x32,0x2c,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x33,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x34,0x20,0x58,0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x6b,0x65,0x79,0x29,0x0a,0x7b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53, + 0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x31, + 0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28, + 0x58,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e, + 0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42, + 0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x3b, + 0x0a,0x6b,0x65,0x79,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45, + 0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c, + 0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x33,0x20,0x5e, + 0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58, + 0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b, + 0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6b,0x65,0x79,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e, + 0x74,0x34,0x20,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x54,0x77,0x6f,0x5f,0x54,0x61,0x62,0x6c,0x65,0x73,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x2a,0x41,0x45,0x53,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x58,0x2c,0x75,0x69,0x6e,0x74,0x34,0x20,0x6b,0x65, + 0x79,0x29,0x0a,0x7b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x30,0x29, + 0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30, + 0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x33,0x29, + 0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31, + 0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x41, + 0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30, + 0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58, + 0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74, + 0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58, + 0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x6b,0x65,0x79,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54, + 0x45,0x28,0x58,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x72,0x6f, + 0x74,0x61,0x74,0x65,0x28,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x58,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54, + 0x45,0x28,0x58,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6b,0x65,0x79,0x3b,0x0a,0x7d,0x0a,0x53, + 0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x72,0x63,0x6f, + 0x6e,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x30,0x78,0x38,0x64,0x2c,0x30,0x78,0x30,0x31,0x2c,0x30,0x78,0x30,0x32,0x2c,0x30,0x78,0x30,0x34,0x2c,0x30,0x78,0x30,0x38,0x2c, + 0x30,0x78,0x31,0x30,0x2c,0x30,0x78,0x32,0x30,0x2c,0x30,0x78,0x34,0x30,0x20,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f, + 0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x73,0x62,0x6f,0x78,0x5b,0x32,0x35,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78, + 0x36,0x33,0x2c,0x30,0x78,0x37,0x43,0x2c,0x30,0x78,0x37,0x37,0x2c,0x30,0x78,0x37,0x42,0x2c,0x30,0x78,0x46,0x32,0x2c,0x30,0x78,0x36,0x42,0x2c,0x30,0x78,0x36,0x46, + 0x2c,0x30,0x78,0x43,0x35,0x2c,0x30,0x78,0x33,0x30,0x2c,0x30,0x78,0x30,0x31,0x2c,0x30,0x78,0x36,0x37,0x2c,0x30,0x78,0x32,0x42,0x2c,0x30,0x78,0x46,0x45,0x2c,0x30, + 0x78,0x44,0x37,0x2c,0x30,0x78,0x41,0x42,0x2c,0x30,0x78,0x37,0x36,0x2c,0x0a,0x30,0x78,0x43,0x41,0x2c,0x30,0x78,0x38,0x32,0x2c,0x30,0x78,0x43,0x39,0x2c,0x30,0x78, + 0x37,0x44,0x2c,0x30,0x78,0x46,0x41,0x2c,0x30,0x78,0x35,0x39,0x2c,0x30,0x78,0x34,0x37,0x2c,0x30,0x78,0x46,0x30,0x2c,0x30,0x78,0x41,0x44,0x2c,0x30,0x78,0x44,0x34, + 0x2c,0x30,0x78,0x41,0x32,0x2c,0x30,0x78,0x41,0x46,0x2c,0x30,0x78,0x39,0x43,0x2c,0x30,0x78,0x41,0x34,0x2c,0x30,0x78,0x37,0x32,0x2c,0x30,0x78,0x43,0x30,0x2c,0x0a, + 0x30,0x78,0x42,0x37,0x2c,0x30,0x78,0x46,0x44,0x2c,0x30,0x78,0x39,0x33,0x2c,0x30,0x78,0x32,0x36,0x2c,0x30,0x78,0x33,0x36,0x2c,0x30,0x78,0x33,0x46,0x2c,0x30,0x78, + 0x46,0x37,0x2c,0x30,0x78,0x43,0x43,0x2c,0x30,0x78,0x33,0x34,0x2c,0x30,0x78,0x41,0x35,0x2c,0x30,0x78,0x45,0x35,0x2c,0x30,0x78,0x46,0x31,0x2c,0x30,0x78,0x37,0x31, + 0x2c,0x30,0x78,0x44,0x38,0x2c,0x30,0x78,0x33,0x31,0x2c,0x30,0x78,0x31,0x35,0x2c,0x0a,0x30,0x78,0x30,0x34,0x2c,0x30,0x78,0x43,0x37,0x2c,0x30,0x78,0x32,0x33,0x2c, + 0x30,0x78,0x43,0x33,0x2c,0x30,0x78,0x31,0x38,0x2c,0x30,0x78,0x39,0x36,0x2c,0x30,0x78,0x30,0x35,0x2c,0x30,0x78,0x39,0x41,0x2c,0x30,0x78,0x30,0x37,0x2c,0x30,0x78, + 0x31,0x32,0x2c,0x30,0x78,0x38,0x30,0x2c,0x30,0x78,0x45,0x32,0x2c,0x30,0x78,0x45,0x42,0x2c,0x30,0x78,0x32,0x37,0x2c,0x30,0x78,0x42,0x32,0x2c,0x30,0x78,0x37,0x35, + 0x2c,0x0a,0x30,0x78,0x30,0x39,0x2c,0x30,0x78,0x38,0x33,0x2c,0x30,0x78,0x32,0x43,0x2c,0x30,0x78,0x31,0x41,0x2c,0x30,0x78,0x31,0x42,0x2c,0x30,0x78,0x36,0x45,0x2c, + 0x30,0x78,0x35,0x41,0x2c,0x30,0x78,0x41,0x30,0x2c,0x30,0x78,0x35,0x32,0x2c,0x30,0x78,0x33,0x42,0x2c,0x30,0x78,0x44,0x36,0x2c,0x30,0x78,0x42,0x33,0x2c,0x30,0x78, + 0x32,0x39,0x2c,0x30,0x78,0x45,0x33,0x2c,0x30,0x78,0x32,0x46,0x2c,0x30,0x78,0x38,0x34,0x2c,0x0a,0x30,0x78,0x35,0x33,0x2c,0x30,0x78,0x44,0x31,0x2c,0x30,0x78,0x30, + 0x30,0x2c,0x30,0x78,0x45,0x44,0x2c,0x30,0x78,0x32,0x30,0x2c,0x30,0x78,0x46,0x43,0x2c,0x30,0x78,0x42,0x31,0x2c,0x30,0x78,0x35,0x42,0x2c,0x30,0x78,0x36,0x41,0x2c, + 0x30,0x78,0x43,0x42,0x2c,0x30,0x78,0x42,0x45,0x2c,0x30,0x78,0x33,0x39,0x2c,0x30,0x78,0x34,0x41,0x2c,0x30,0x78,0x34,0x43,0x2c,0x30,0x78,0x35,0x38,0x2c,0x30,0x78, + 0x43,0x46,0x2c,0x0a,0x30,0x78,0x44,0x30,0x2c,0x30,0x78,0x45,0x46,0x2c,0x30,0x78,0x41,0x41,0x2c,0x30,0x78,0x46,0x42,0x2c,0x30,0x78,0x34,0x33,0x2c,0x30,0x78,0x34, + 0x44,0x2c,0x30,0x78,0x33,0x33,0x2c,0x30,0x78,0x38,0x35,0x2c,0x30,0x78,0x34,0x35,0x2c,0x30,0x78,0x46,0x39,0x2c,0x30,0x78,0x30,0x32,0x2c,0x30,0x78,0x37,0x46,0x2c, + 0x30,0x78,0x35,0x30,0x2c,0x30,0x78,0x33,0x43,0x2c,0x30,0x78,0x39,0x46,0x2c,0x30,0x78,0x41,0x38,0x2c,0x0a,0x30,0x78,0x35,0x31,0x2c,0x30,0x78,0x41,0x33,0x2c,0x30, + 0x78,0x34,0x30,0x2c,0x30,0x78,0x38,0x46,0x2c,0x30,0x78,0x39,0x32,0x2c,0x30,0x78,0x39,0x44,0x2c,0x30,0x78,0x33,0x38,0x2c,0x30,0x78,0x46,0x35,0x2c,0x30,0x78,0x42, + 0x43,0x2c,0x30,0x78,0x42,0x36,0x2c,0x30,0x78,0x44,0x41,0x2c,0x30,0x78,0x32,0x31,0x2c,0x30,0x78,0x31,0x30,0x2c,0x30,0x78,0x46,0x46,0x2c,0x30,0x78,0x46,0x33,0x2c, + 0x30,0x78,0x44,0x32,0x2c,0x0a,0x30,0x78,0x43,0x44,0x2c,0x30,0x78,0x30,0x43,0x2c,0x30,0x78,0x31,0x33,0x2c,0x30,0x78,0x45,0x43,0x2c,0x30,0x78,0x35,0x46,0x2c,0x30, + 0x78,0x39,0x37,0x2c,0x30,0x78,0x34,0x34,0x2c,0x30,0x78,0x31,0x37,0x2c,0x30,0x78,0x43,0x34,0x2c,0x30,0x78,0x41,0x37,0x2c,0x30,0x78,0x37,0x45,0x2c,0x30,0x78,0x33, + 0x44,0x2c,0x30,0x78,0x36,0x34,0x2c,0x30,0x78,0x35,0x44,0x2c,0x30,0x78,0x31,0x39,0x2c,0x30,0x78,0x37,0x33,0x2c,0x0a,0x30,0x78,0x36,0x30,0x2c,0x30,0x78,0x38,0x31, + 0x2c,0x30,0x78,0x34,0x46,0x2c,0x30,0x78,0x44,0x43,0x2c,0x30,0x78,0x32,0x32,0x2c,0x30,0x78,0x32,0x41,0x2c,0x30,0x78,0x39,0x30,0x2c,0x30,0x78,0x38,0x38,0x2c,0x30, + 0x78,0x34,0x36,0x2c,0x30,0x78,0x45,0x45,0x2c,0x30,0x78,0x42,0x38,0x2c,0x30,0x78,0x31,0x34,0x2c,0x30,0x78,0x44,0x45,0x2c,0x30,0x78,0x35,0x45,0x2c,0x30,0x78,0x30, + 0x42,0x2c,0x30,0x78,0x44,0x42,0x2c,0x0a,0x30,0x78,0x45,0x30,0x2c,0x30,0x78,0x33,0x32,0x2c,0x30,0x78,0x33,0x41,0x2c,0x30,0x78,0x30,0x41,0x2c,0x30,0x78,0x34,0x39, + 0x2c,0x30,0x78,0x30,0x36,0x2c,0x30,0x78,0x32,0x34,0x2c,0x30,0x78,0x35,0x43,0x2c,0x30,0x78,0x43,0x32,0x2c,0x30,0x78,0x44,0x33,0x2c,0x30,0x78,0x41,0x43,0x2c,0x30, + 0x78,0x36,0x32,0x2c,0x30,0x78,0x39,0x31,0x2c,0x30,0x78,0x39,0x35,0x2c,0x30,0x78,0x45,0x34,0x2c,0x30,0x78,0x37,0x39,0x2c,0x0a,0x30,0x78,0x45,0x37,0x2c,0x30,0x78, + 0x43,0x38,0x2c,0x30,0x78,0x33,0x37,0x2c,0x30,0x78,0x36,0x44,0x2c,0x30,0x78,0x38,0x44,0x2c,0x30,0x78,0x44,0x35,0x2c,0x30,0x78,0x34,0x45,0x2c,0x30,0x78,0x41,0x39, + 0x2c,0x30,0x78,0x36,0x43,0x2c,0x30,0x78,0x35,0x36,0x2c,0x30,0x78,0x46,0x34,0x2c,0x30,0x78,0x45,0x41,0x2c,0x30,0x78,0x36,0x35,0x2c,0x30,0x78,0x37,0x41,0x2c,0x30, + 0x78,0x41,0x45,0x2c,0x30,0x78,0x30,0x38,0x2c,0x0a,0x30,0x78,0x42,0x41,0x2c,0x30,0x78,0x37,0x38,0x2c,0x30,0x78,0x32,0x35,0x2c,0x30,0x78,0x32,0x45,0x2c,0x30,0x78, + 0x31,0x43,0x2c,0x30,0x78,0x41,0x36,0x2c,0x30,0x78,0x42,0x34,0x2c,0x30,0x78,0x43,0x36,0x2c,0x30,0x78,0x45,0x38,0x2c,0x30,0x78,0x44,0x44,0x2c,0x30,0x78,0x37,0x34, + 0x2c,0x30,0x78,0x31,0x46,0x2c,0x30,0x78,0x34,0x42,0x2c,0x30,0x78,0x42,0x44,0x2c,0x30,0x78,0x38,0x42,0x2c,0x30,0x78,0x38,0x41,0x2c,0x0a,0x30,0x78,0x37,0x30,0x2c, + 0x30,0x78,0x33,0x45,0x2c,0x30,0x78,0x42,0x35,0x2c,0x30,0x78,0x36,0x36,0x2c,0x30,0x78,0x34,0x38,0x2c,0x30,0x78,0x30,0x33,0x2c,0x30,0x78,0x46,0x36,0x2c,0x30,0x78, + 0x30,0x45,0x2c,0x30,0x78,0x36,0x31,0x2c,0x30,0x78,0x33,0x35,0x2c,0x30,0x78,0x35,0x37,0x2c,0x30,0x78,0x42,0x39,0x2c,0x30,0x78,0x38,0x36,0x2c,0x30,0x78,0x43,0x31, + 0x2c,0x30,0x78,0x31,0x44,0x2c,0x30,0x78,0x39,0x45,0x2c,0x0a,0x30,0x78,0x45,0x31,0x2c,0x30,0x78,0x46,0x38,0x2c,0x30,0x78,0x39,0x38,0x2c,0x30,0x78,0x31,0x31,0x2c, + 0x30,0x78,0x36,0x39,0x2c,0x30,0x78,0x44,0x39,0x2c,0x30,0x78,0x38,0x45,0x2c,0x30,0x78,0x39,0x34,0x2c,0x30,0x78,0x39,0x42,0x2c,0x30,0x78,0x31,0x45,0x2c,0x30,0x78, + 0x38,0x37,0x2c,0x30,0x78,0x45,0x39,0x2c,0x30,0x78,0x43,0x45,0x2c,0x30,0x78,0x35,0x35,0x2c,0x30,0x78,0x32,0x38,0x2c,0x30,0x78,0x44,0x46,0x2c,0x0a,0x30,0x78,0x38, + 0x43,0x2c,0x30,0x78,0x41,0x31,0x2c,0x30,0x78,0x38,0x39,0x2c,0x30,0x78,0x30,0x44,0x2c,0x30,0x78,0x42,0x46,0x2c,0x30,0x78,0x45,0x36,0x2c,0x30,0x78,0x34,0x32,0x2c, + 0x30,0x78,0x36,0x38,0x2c,0x30,0x78,0x34,0x31,0x2c,0x30,0x78,0x39,0x39,0x2c,0x30,0x78,0x32,0x44,0x2c,0x30,0x78,0x30,0x46,0x2c,0x30,0x78,0x42,0x30,0x2c,0x30,0x78, + 0x35,0x34,0x2c,0x30,0x78,0x42,0x42,0x2c,0x30,0x78,0x31,0x36,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x75,0x62,0x57,0x6f,0x72,0x64,0x28, + 0x69,0x6e,0x77,0x29,0x20,0x28,0x28,0x73,0x62,0x6f,0x78,0x5b,0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x33,0x29,0x5d,0x20,0x3c,0x3c,0x20,0x32,0x34,0x29, + 0x20,0x7c,0x20,0x28,0x73,0x62,0x6f,0x78,0x5b,0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x32,0x29,0x5d,0x20,0x3c,0x3c,0x20,0x31,0x36,0x29,0x20,0x7c,0x20, + 0x28,0x73,0x62,0x6f,0x78,0x5b,0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x31,0x29,0x5d,0x20,0x3c,0x3c,0x20,0x38,0x29,0x20,0x7c,0x20,0x73,0x62,0x6f,0x78, + 0x5b,0x42,0x59,0x54,0x45,0x28,0x69,0x6e,0x77,0x2c,0x20,0x30,0x29,0x5d,0x29,0x0a,0x76,0x6f,0x69,0x64,0x20,0x41,0x45,0x53,0x45,0x78,0x70,0x61,0x6e,0x64,0x4b,0x65, + 0x79,0x32,0x35,0x36,0x28,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6b,0x65,0x79,0x62,0x75,0x66,0x29,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x63, + 0x3d,0x38,0x2c,0x69,0x3d,0x31,0x3b,0x20,0x63,0x3c,0x34,0x30,0x3b,0x20,0x2b,0x2b,0x63,0x29,0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x74,0x3d,0x28,0x28,0x21,0x28, + 0x63,0x26,0x37,0x29,0x29,0x7c,0x7c,0x28,0x28,0x63,0x26,0x37,0x29,0x3d,0x3d,0x34,0x29,0x29,0x3f,0x53,0x75,0x62,0x57,0x6f,0x72,0x64,0x28,0x6b,0x65,0x79,0x62,0x75, + 0x66,0x5b,0x63,0x2d,0x31,0x5d,0x29,0x3a,0x6b,0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x2d,0x31,0x5d,0x3b,0x0a,0x6b,0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x5d,0x3d,0x6b, + 0x65,0x79,0x62,0x75,0x66,0x5b,0x63,0x2d,0x38,0x5d,0x5e,0x28,0x28,0x21,0x28,0x63,0x26,0x37,0x29,0x29,0x3f,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x2c,0x32,0x34, + 0x55,0x29,0x5e,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x28,0x75,0x63,0x68,0x61,0x72,0x34,0x29,0x28,0x72,0x63,0x6f,0x6e,0x5b,0x69,0x2b,0x2b,0x5d,0x2c,0x30,0x55, + 0x2c,0x30,0x55,0x2c,0x30,0x55,0x29,0x29,0x3a,0x74,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20, + 0x57,0x4f,0x4c,0x46,0x5f,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x4f,0x4c,0x46,0x5f,0x53,0x4b,0x45,0x49,0x4e, + 0x5f,0x43,0x4c,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a, + 0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x4f,0x50,0x45, + 0x4e,0x43,0x4c,0x20,0x45,0x58,0x54,0x45,0x4e,0x53,0x49,0x4f,0x4e,0x20,0x63,0x6c,0x5f,0x61,0x6d,0x64,0x5f,0x6d,0x65,0x64,0x69,0x61,0x5f,0x6f,0x70,0x73,0x20,0x3a, + 0x20,0x65,0x6e,0x61,0x62,0x6c,0x65,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x0a,0x69,0x6e,0x6c, + 0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x61,0x6d,0x64,0x5f,0x62,0x69,0x74,0x61,0x6c,0x69,0x67,0x6e,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x32,0x20,0x73,0x72,0x63,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x73,0x72,0x63,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x32,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x2e,0x73,0x30,0x3d,0x28,0x75,0x69,0x6e,0x74,0x29,0x20,0x28,0x28,0x28,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x73,0x72,0x63,0x30,0x2e,0x73,0x30,0x29,0x3c,0x3c,0x33, + 0x32,0x29,0x7c,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x73,0x72,0x63,0x31,0x2e,0x73,0x30,0x29,0x3e,0x3e,0x28,0x73,0x72,0x63,0x32,0x29,0x29,0x3b,0x0a,0x72,0x65,0x73,0x75, + 0x6c,0x74,0x2e,0x73,0x31,0x3d,0x28,0x75,0x69,0x6e,0x74,0x29,0x20,0x28,0x28,0x28,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x73,0x72,0x63,0x30,0x2e,0x73,0x31,0x29,0x3c, + 0x3c,0x33,0x32,0x29,0x7c,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x73,0x72,0x63,0x31,0x2e,0x73,0x31,0x29,0x3e,0x3e,0x28,0x73,0x72,0x63,0x32,0x29,0x29,0x3b,0x0a,0x72,0x65, + 0x74,0x75,0x72,0x6e,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x4b, + 0x45,0x49,0x4e,0x5f,0x4b,0x53,0x5f,0x50,0x41,0x52,0x49,0x54,0x59,0x20,0x30,0x78,0x31,0x42,0x44,0x31,0x31,0x42,0x44,0x41,0x41,0x39,0x46,0x43,0x31,0x41,0x32,0x32, + 0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53, + 0x4b,0x45,0x49,0x4e,0x32,0x35,0x36,0x5f,0x49,0x56,0x5b,0x38,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x43,0x43,0x44,0x30,0x34,0x34,0x41,0x31,0x32,0x46,0x44,0x42, + 0x33,0x45,0x31,0x33,0x55,0x4c,0x2c,0x30,0x78,0x45,0x38,0x33,0x35,0x39,0x30,0x33,0x30,0x31,0x41,0x37,0x39,0x41,0x39,0x45,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35, + 0x35,0x41,0x45,0x41,0x30,0x36,0x31,0x34,0x46,0x38,0x31,0x36,0x45,0x36,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x32,0x37,0x36,0x37,0x41,0x34,0x41,0x45,0x39,0x42, + 0x39,0x34,0x44,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x45,0x43,0x30,0x36,0x30,0x32,0x35,0x45,0x37,0x34,0x44,0x44,0x37,0x36,0x38,0x33,0x55,0x4c,0x2c,0x30,0x78,0x45, + 0x37,0x41,0x34,0x33,0x36,0x43,0x44,0x43,0x34,0x37,0x34,0x36,0x32,0x35,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x33,0x36,0x46,0x42,0x41,0x46,0x39,0x33,0x39,0x33, + 0x41,0x44,0x31,0x38,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x45,0x45,0x44,0x42,0x41,0x31,0x38,0x33,0x33,0x45,0x44,0x46,0x43,0x31,0x33,0x55,0x4c,0x0a,0x7d,0x3b,0x0a, + 0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x4b, + 0x45,0x49,0x4e,0x35,0x31,0x32,0x5f,0x32,0x35,0x36,0x5f,0x49,0x56,0x5b,0x38,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x43,0x43,0x44,0x30,0x34,0x34,0x41,0x31,0x32, + 0x46,0x44,0x42,0x33,0x45,0x31,0x33,0x55,0x4c,0x2c,0x30,0x78,0x45,0x38,0x33,0x35,0x39,0x30,0x33,0x30,0x31,0x41,0x37,0x39,0x41,0x39,0x45,0x42,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x35,0x35,0x41,0x45,0x41,0x30,0x36,0x31,0x34,0x46,0x38,0x31,0x36,0x45,0x36,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x32,0x37,0x36,0x37,0x41,0x34,0x41, + 0x45,0x39,0x42,0x39,0x34,0x44,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x45,0x43,0x30,0x36,0x30,0x32,0x35,0x45,0x37,0x34,0x44,0x44,0x37,0x36,0x38,0x33,0x55,0x4c,0x2c, + 0x30,0x78,0x45,0x37,0x41,0x34,0x33,0x36,0x43,0x44,0x43,0x34,0x37,0x34,0x36,0x32,0x35,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x33,0x36,0x46,0x42,0x41,0x46,0x39, + 0x33,0x39,0x33,0x41,0x44,0x31,0x38,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x45,0x45,0x44,0x42,0x41,0x31,0x38,0x33,0x33,0x45,0x44,0x46,0x43,0x31,0x33,0x55,0x4c,0x0a, + 0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f,0x4b,0x45,0x59,0x28,0x70,0x2c,0x20,0x73, + 0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x70,0x2b,0x3d,0x68,0x3b,0x20,0x5c,0x0a,0x70,0x2e,0x73,0x35,0x2b,0x3d,0x74,0x5b,0x73,0x20,0x25,0x20,0x33,0x5d,0x3b, + 0x20,0x5c,0x0a,0x70,0x2e,0x73,0x36,0x2b,0x3d,0x74,0x5b,0x28,0x73,0x2b,0x31,0x29,0x20,0x25,0x20,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x70,0x2e,0x73,0x37,0x2b,0x3d,0x73, + 0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x28,0x30,0x29,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x78,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x79,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28, + 0x79,0x3c,0x33,0x32,0x29,0x20,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x6d,0x64,0x5f,0x62,0x69,0x74,0x61, + 0x6c,0x69,0x67,0x6e,0x28,0x78,0x2c,0x78,0x2e,0x73,0x31,0x30,0x2c,0x33,0x32,0x2d,0x79,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0a,0x72, + 0x65,0x74,0x75,0x72,0x6e,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x6d,0x64,0x5f,0x62,0x69,0x74,0x61,0x6c,0x69,0x67,0x6e,0x28,0x78,0x2e,0x73,0x31, + 0x30,0x2c,0x78,0x2c,0x33,0x32,0x2d,0x28,0x79,0x2d,0x33,0x32,0x29,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x53,0x6b,0x65,0x69,0x6e, + 0x4d,0x69,0x78,0x38,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x2a,0x70,0x76,0x30,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x2a,0x70,0x76,0x31,0x2c,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x30,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x31,0x2c,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x32,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x63,0x33,0x29,0x0a,0x7b,0x0a,0x2a,0x70,0x76,0x30, + 0x2b,0x3d,0x2a,0x70,0x76,0x31,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x30,0x3d,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f,0x75, + 0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x30,0x29,0x2c,0x72,0x63,0x30,0x29,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x31,0x3d, + 0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x31,0x29,0x2c,0x72,0x63, + 0x31,0x29,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x32,0x3d,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32, + 0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x32,0x29,0x2c,0x72,0x63,0x32,0x29,0x3b,0x0a,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x33,0x3d,0x53,0x4b,0x45,0x49, + 0x4e,0x5f,0x52,0x4f,0x54,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x28,0x2a,0x70,0x76,0x31,0x29,0x2e,0x73,0x33,0x29,0x2c,0x72,0x63,0x33,0x29,0x3b,0x0a, + 0x2a,0x70,0x76,0x31,0x20,0x5e,0x3d,0x20,0x2a,0x70,0x76,0x30,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x53,0x6b,0x65,0x69,0x6e,0x45,0x76,0x65,0x6e, + 0x52,0x6f,0x75,0x6e,0x64,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x70,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x2c,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x29,0x0a,0x7b,0x0a,0x53,0x4b,0x45, + 0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f,0x4b,0x45,0x59,0x28,0x70,0x2c,0x73,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x70,0x76,0x30,0x3d,0x70, + 0x2e,0x65,0x76,0x65,0x6e,0x2c,0x70,0x76,0x31,0x3d,0x70,0x2e,0x6f,0x64,0x64,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c, + 0x26,0x70,0x76,0x31,0x2c,0x34,0x36,0x2c,0x33,0x36,0x2c,0x31,0x39,0x2c,0x33,0x37,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70, + 0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66, + 0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e, + 0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x33,0x33,0x2c,0x32,0x37,0x2c,0x31,0x34,0x2c,0x34,0x32,0x29,0x3b,0x0a,0x70,0x76,0x30, + 0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b, + 0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c, + 0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x31,0x37,0x2c,0x34,0x39,0x2c,0x33, + 0x36,0x2c,0x33,0x39,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28, + 0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e, + 0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70, + 0x76,0x31,0x2c,0x34,0x34,0x2c,0x39,0x2c,0x35,0x34,0x2c,0x35,0x36,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x28,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x32,0x28, + 0x70,0x76,0x30,0x2c,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x31,0x2c,0x34,0x2c,0x32,0x2c,0x37,0x2c,0x33,0x2c,0x36,0x2c,0x30,0x2c,0x35, + 0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x53,0x6b,0x65,0x69,0x6e,0x4f,0x64,0x64,0x52,0x6f,0x75,0x6e,0x64,0x28,0x75,0x6c,0x6f,0x6e, + 0x67,0x38,0x20,0x70,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20, + 0x2a,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x29,0x0a,0x7b,0x0a,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f, + 0x4b,0x45,0x59,0x28,0x70,0x2c,0x73,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x20,0x70,0x76,0x30,0x3d,0x70,0x2e,0x65,0x76,0x65,0x6e,0x2c,0x70,0x76,0x31,0x3d, + 0x70,0x2e,0x6f,0x64,0x64,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x33,0x39,0x2c,0x33,0x30, + 0x2c,0x33,0x34,0x2c,0x32,0x34,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34, + 0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c, + 0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c, + 0x26,0x70,0x76,0x31,0x2c,0x31,0x33,0x2c,0x35,0x30,0x2c,0x31,0x30,0x2c,0x31,0x37,0x29,0x3b,0x0a,0x70,0x76,0x30,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70, + 0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66, + 0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c,0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e, + 0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x32,0x35,0x2c,0x32,0x39,0x2c,0x33,0x39,0x2c,0x34,0x33,0x29,0x3b,0x0a,0x70,0x76,0x30, + 0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x30,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x30,0x29,0x29,0x3b, + 0x0a,0x70,0x76,0x31,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x70,0x76,0x31,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x34,0x29,0x28,0x30,0x2c,0x33,0x2c,0x32,0x2c, + 0x31,0x29,0x29,0x3b,0x0a,0x53,0x6b,0x65,0x69,0x6e,0x4d,0x69,0x78,0x38,0x28,0x26,0x70,0x76,0x30,0x2c,0x26,0x70,0x76,0x31,0x2c,0x38,0x2c,0x33,0x35,0x2c,0x35,0x36, + 0x2c,0x32,0x32,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x28,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x32,0x28,0x70,0x76,0x30,0x2c,0x70,0x76,0x31,0x2c,0x28,0x75, + 0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x31,0x2c,0x34,0x2c,0x32,0x2c,0x37,0x2c,0x33,0x2c,0x36,0x2c,0x30,0x2c,0x35,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f, + 0x6e,0x67,0x38,0x20,0x53,0x6b,0x65,0x69,0x6e,0x35,0x31,0x32,0x42,0x6c,0x6f,0x63,0x6b,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x70,0x2c,0x75,0x6c,0x6f,0x6e,0x67, + 0x38,0x20,0x68,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x38,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x74,0x29,0x0a,0x7b,0x0a,0x23, + 0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x38,0x3b, + 0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x53,0x6b,0x65,0x69,0x6e,0x45,0x76,0x65,0x6e,0x52,0x6f,0x75,0x6e,0x64,0x28,0x70,0x2c,0x68,0x2c,0x74,0x2c,0x69, + 0x29,0x3b,0x0a,0x2b,0x2b,0x69,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x3d,0x68,0x2e,0x73,0x30,0x3b,0x0a,0x68,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c, + 0x65,0x28,0x68,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x29,0x29,0x3b,0x0a, + 0x68,0x2e,0x73,0x37,0x3d,0x68,0x38,0x3b,0x0a,0x68,0x38,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x70,0x3d,0x53,0x6b,0x65,0x69,0x6e,0x4f,0x64,0x64,0x52,0x6f,0x75,0x6e,0x64, + 0x28,0x70,0x2c,0x68,0x2c,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x74,0x6d,0x70,0x3d,0x68,0x2e,0x73,0x30,0x3b,0x0a,0x68,0x3d,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x28,0x68, + 0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x29,0x29,0x3b,0x0a,0x68,0x2e,0x73, + 0x37,0x3d,0x68,0x38,0x3b,0x0a,0x68,0x38,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x7d,0x0a,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x49,0x4e,0x4a,0x45,0x43,0x54,0x5f,0x4b,0x45,0x59, + 0x28,0x70,0x2c,0x31,0x38,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x28,0x70,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x4a,0x48,0x5f,0x36,0x34,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x4c,0x49,0x54,0x54, + 0x4c,0x45,0x5f,0x45,0x4e,0x44,0x49,0x41,0x4e,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x09,0x78, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x09,0x78,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69, + 0x6e,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x73,0x70,0x68,0x5f,0x75,0x36, + 0x34,0x3b,0x0a,0x23,0x69,0x66,0x20,0x53,0x50,0x48,0x5f,0x4c,0x49,0x54,0x54,0x4c,0x45,0x5f,0x45,0x4e,0x44,0x49,0x41,0x4e,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x43,0x33,0x32,0x65,0x28,0x78,0x29,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32,0x34,0x29,0x20,0x5c,0x0a,0x7c, + 0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x3e,0x3e,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x30,0x78,0x30,0x30,0x30,0x30, + 0x46,0x46,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26,0x53,0x50,0x48,0x5f, + 0x43,0x33,0x32,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78, + 0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x29,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x33,0x32,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x33,0x32,0x6c,0x65,0x5f, + 0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63,0x33,0x32,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x33,0x32, + 0x6c,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x36,0x34,0x65,0x28,0x78,0x29,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x20, + 0x3e,0x3e,0x20,0x35,0x36,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x34,0x30,0x29,0x26,0x53,0x50,0x48, + 0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28, + 0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x38, + 0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c, + 0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30, + 0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78, + 0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x34,0x30,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36, + 0x34,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48, + 0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x35,0x36,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x36,0x34,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65, + 0x64,0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x36,0x34,0x6c,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e, + 0x63,0x36,0x34,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x36,0x34,0x6c,0x65,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43, + 0x33,0x32,0x65,0x28,0x78,0x29,0x20,0x53,0x50,0x48,0x5f,0x43,0x33,0x32,0x28,0x78,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x33,0x32,0x65, + 0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x33,0x32,0x62,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63,0x33,0x32,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x33,0x32,0x62,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x43,0x36,0x34,0x65,0x28,0x78,0x29,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x65,0x63,0x36,0x34, + 0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x20,0x73,0x70,0x68,0x5f,0x64,0x65,0x63,0x36,0x34,0x62,0x65,0x5f,0x61,0x6c,0x69,0x67,0x6e,0x65,0x64,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x6e,0x63,0x36,0x34,0x65,0x20,0x73,0x70,0x68,0x5f,0x65,0x6e,0x63,0x36,0x34,0x62,0x65,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x62,0x28,0x78,0x30,0x2c,0x20,0x78,0x31,0x2c,0x20,0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x63,0x29,0x20,0x64,0x6f, + 0x20,0x7b,0x20,0x5c,0x0a,0x78,0x33,0x3d,0x7e,0x78,0x33,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x28,0x63,0x29,0x26,0x7e,0x78,0x32,0x3b,0x20,0x5c,0x0a, + 0x74,0x6d,0x70,0x3d,0x28,0x63,0x29,0x5e,0x28,0x78,0x30,0x26,0x78,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x78,0x32,0x26,0x78,0x33,0x3b,0x20, + 0x5c,0x0a,0x78,0x33,0x20,0x5e,0x3d,0x20,0x7e,0x78,0x31,0x26,0x78,0x32,0x3b,0x20,0x5c,0x0a,0x78,0x31,0x20,0x5e,0x3d,0x20,0x78,0x30,0x26,0x78,0x32,0x3b,0x20,0x5c, + 0x0a,0x78,0x32,0x20,0x5e,0x3d,0x20,0x78,0x30,0x26,0x7e,0x78,0x33,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20,0x5e,0x3d,0x20,0x78,0x31,0x7c,0x78,0x33,0x3b,0x20,0x5c,0x0a, + 0x78,0x33,0x20,0x5e,0x3d,0x20,0x78,0x31,0x26,0x78,0x32,0x3b,0x20,0x5c,0x0a,0x78,0x31,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x26,0x78,0x30,0x3b,0x20,0x5c,0x0a,0x78, + 0x32,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x4c,0x62,0x28,0x78,0x30,0x2c,0x20,0x78,0x31,0x2c,0x20,0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x78,0x34,0x2c,0x20,0x78,0x35,0x2c,0x20,0x78,0x36,0x2c,0x20,0x78, + 0x37,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x78,0x34,0x20,0x5e,0x3d,0x20,0x78,0x31,0x3b,0x20,0x5c,0x0a,0x78,0x35,0x20,0x5e,0x3d,0x20,0x78,0x32,0x3b,0x20, + 0x5c,0x0a,0x78,0x36,0x20,0x5e,0x3d,0x20,0x78,0x33,0x5e,0x78,0x30,0x3b,0x20,0x5c,0x0a,0x78,0x37,0x20,0x5e,0x3d,0x20,0x78,0x30,0x3b,0x20,0x5c,0x0a,0x78,0x30,0x20, + 0x5e,0x3d,0x20,0x78,0x35,0x3b,0x20,0x5c,0x0a,0x78,0x31,0x20,0x5e,0x3d,0x20,0x78,0x36,0x3b,0x20,0x5c,0x0a,0x78,0x32,0x20,0x5e,0x3d,0x20,0x78,0x37,0x5e,0x78,0x34, + 0x3b,0x20,0x5c,0x0a,0x78,0x33,0x20,0x5e,0x3d,0x20,0x78,0x34,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x53,0x54,0x41,0x54, + 0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x43,0x5b,0x5d,0x20,0x3d,0x0a, + 0x7b,0x0a,0x30,0x78,0x36,0x37,0x46,0x38,0x31,0x35,0x44,0x46,0x41,0x32,0x44,0x45,0x44,0x35,0x37,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35,0x37,0x31,0x35,0x32,0x33,0x42, + 0x37,0x30,0x41,0x31,0x35,0x38,0x34,0x37,0x42,0x55,0x4c,0x2c,0x30,0x78,0x46,0x36,0x38,0x37,0x35,0x41,0x34,0x44,0x39,0x30,0x44,0x36,0x41,0x42,0x38,0x31,0x55,0x4c, + 0x2c,0x30,0x78,0x34,0x30,0x32,0x42,0x44,0x31,0x43,0x33,0x43,0x35,0x34,0x46,0x39,0x46,0x34,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x43,0x46,0x41,0x34,0x35,0x35, + 0x43,0x45,0x30,0x33,0x41,0x39,0x38,0x45,0x41,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x39,0x39,0x42,0x32,0x36,0x36,0x39,0x39,0x44,0x32,0x43,0x35,0x30,0x33,0x55,0x4c, + 0x2c,0x30,0x78,0x38,0x41,0x35,0x33,0x42,0x42,0x46,0x32,0x42,0x34,0x39,0x36,0x30,0x32,0x36,0x36,0x55,0x4c,0x2c,0x30,0x78,0x33,0x31,0x41,0x32,0x44,0x42,0x38,0x38, + 0x31,0x41,0x31,0x34,0x35,0x36,0x42,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x42,0x30,0x45,0x31,0x39,0x39,0x41,0x35,0x43,0x35,0x41,0x41,0x33,0x30,0x33,0x55,0x4c, + 0x2c,0x30,0x78,0x31,0x30,0x34,0x34,0x43,0x31,0x38,0x37,0x30,0x41,0x42,0x32,0x33,0x46,0x34,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x44,0x39,0x35,0x39,0x45,0x38,0x34, + 0x38,0x30,0x31,0x39,0x30,0x35,0x31,0x43,0x55,0x4c,0x2c,0x30,0x78,0x44,0x43,0x43,0x44,0x45,0x37,0x35,0x45,0x41,0x44,0x45,0x42,0x33,0x33,0x36,0x46,0x55,0x4c,0x2c, + 0x0a,0x30,0x78,0x34,0x31,0x36,0x42,0x42,0x46,0x30,0x32,0x39,0x32,0x31,0x33,0x42,0x41,0x31,0x30,0x55,0x4c,0x2c,0x30,0x78,0x44,0x30,0x32,0x37,0x42,0x42,0x46,0x37, + 0x31,0x35,0x36,0x35,0x37,0x38,0x44,0x43,0x55,0x4c,0x2c,0x30,0x78,0x35,0x30,0x37,0x38,0x41,0x41,0x33,0x37,0x33,0x39,0x38,0x31,0x32,0x43,0x30,0x41,0x55,0x4c,0x2c, + 0x30,0x78,0x44,0x33,0x39,0x31,0x30,0x30,0x34,0x31,0x44,0x32,0x42,0x46,0x31,0x41,0x33,0x46,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x30,0x37,0x45,0x43,0x43,0x46,0x36, + 0x30,0x44,0x35,0x41,0x32,0x44,0x34,0x32,0x55,0x4c,0x2c,0x30,0x78,0x43,0x45,0x39,0x37,0x43,0x30,0x39,0x32,0x39,0x43,0x39,0x46,0x36,0x32,0x44,0x44,0x55,0x4c,0x2c, + 0x30,0x78,0x41,0x43,0x34,0x34,0x32,0x42,0x43,0x37,0x30,0x42,0x41,0x37,0x35,0x43,0x31,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x33,0x46,0x43,0x43,0x36,0x36,0x33,0x44, + 0x36,0x36,0x35,0x44,0x46,0x44,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x41,0x42,0x38,0x45,0x30,0x39,0x45,0x30,0x33,0x36,0x43,0x36,0x45,0x39,0x37,0x55,0x4c,0x2c, + 0x30,0x78,0x41,0x38,0x45,0x43,0x36,0x43,0x34,0x34,0x37,0x45,0x34,0x35,0x30,0x35,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x46,0x41,0x36,0x31,0x38,0x45,0x35,0x44,0x42, + 0x42,0x30,0x33,0x46,0x31,0x45,0x45,0x55,0x4c,0x2c,0x30,0x78,0x39,0x37,0x38,0x31,0x38,0x33,0x39,0x34,0x42,0x32,0x39,0x37,0x39,0x36,0x46,0x44,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x32,0x46,0x33,0x30,0x30,0x33,0x44,0x42,0x33,0x37,0x38,0x35,0x38,0x45,0x34,0x41,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x36,0x41,0x39,0x46,0x46,0x42,0x32, + 0x44,0x38,0x44,0x36,0x37,0x32,0x41,0x55,0x4c,0x2c,0x30,0x78,0x36,0x43,0x36,0x39,0x42,0x38,0x46,0x38,0x38,0x31,0x37,0x33,0x46,0x45,0x38,0x41,0x55,0x4c,0x2c,0x30, + 0x78,0x31,0x34,0x34,0x32,0x37,0x46,0x43,0x30,0x34,0x36,0x37,0x32,0x43,0x37,0x38,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x34,0x35,0x45,0x43,0x37,0x42,0x44,0x38, + 0x46,0x31,0x35,0x46,0x34,0x43,0x35,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x42,0x42,0x31,0x31,0x38,0x46,0x41,0x37,0x36,0x46,0x34,0x34,0x37,0x35,0x55,0x4c,0x2c,0x30, + 0x78,0x42,0x43,0x38,0x38,0x45,0x34,0x41,0x45,0x42,0x37,0x37,0x35,0x44,0x45,0x35,0x32,0x55,0x4c,0x2c,0x30,0x78,0x46,0x34,0x41,0x33,0x41,0x36,0x39,0x38,0x31,0x45, + 0x30,0x30,0x42,0x38,0x38,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x35,0x36,0x33,0x41,0x33,0x41,0x39,0x33,0x33,0x38,0x46,0x46,0x34,0x38,0x45,0x55,0x4c,0x2c,0x30, + 0x78,0x38,0x39,0x46,0x39,0x42,0x37,0x44,0x35,0x32,0x34,0x35,0x36,0x35,0x46,0x41,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x44,0x45,0x30,0x35,0x41,0x37,0x43,0x32,0x30, + 0x45,0x44,0x46,0x31,0x42,0x36,0x55,0x4c,0x2c,0x30,0x78,0x33,0x36,0x32,0x43,0x34,0x32,0x30,0x36,0x35,0x41,0x45,0x39,0x43,0x41,0x33,0x36,0x55,0x4c,0x2c,0x0a,0x30, + 0x78,0x33,0x44,0x39,0x38,0x46,0x45,0x34,0x45,0x34,0x33,0x33,0x35,0x32,0x39,0x43,0x45,0x55,0x4c,0x2c,0x30,0x78,0x41,0x37,0x34,0x42,0x39,0x41,0x37,0x33,0x37,0x34, + 0x46,0x39,0x33,0x41,0x35,0x33,0x55,0x4c,0x2c,0x30,0x78,0x38,0x36,0x38,0x31,0x34,0x45,0x36,0x46,0x35,0x39,0x31,0x46,0x46,0x35,0x44,0x30,0x55,0x4c,0x2c,0x30,0x78, + 0x39,0x46,0x35,0x41,0x44,0x38,0x41,0x46,0x38,0x31,0x41,0x44,0x39,0x44,0x30,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x41,0x36,0x32,0x33,0x34,0x45,0x45,0x36,0x37, + 0x30,0x36,0x30,0x35,0x41,0x37,0x55,0x4c,0x2c,0x30,0x78,0x32,0x37,0x31,0x37,0x42,0x39,0x36,0x45,0x42,0x45,0x32,0x38,0x30,0x42,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78, + 0x33,0x46,0x31,0x30,0x38,0x30,0x43,0x36,0x32,0x36,0x30,0x37,0x37,0x34,0x34,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x42,0x34,0x38,0x37,0x45,0x43,0x36,0x36,0x46,0x37, + 0x45,0x41,0x30,0x45,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x30,0x41,0x34,0x46,0x38,0x34,0x41,0x41,0x35,0x30,0x41,0x35,0x35,0x30,0x44,0x55,0x4c,0x2c,0x30,0x78, + 0x39,0x45,0x46,0x31,0x38,0x45,0x39,0x37,0x39,0x46,0x45,0x37,0x45,0x33,0x39,0x31,0x55,0x4c,0x2c,0x30,0x78,0x44,0x34,0x38,0x44,0x36,0x30,0x35,0x30,0x38,0x31,0x37, + 0x32,0x37,0x36,0x38,0x36,0x55,0x4c,0x2c,0x30,0x78,0x36,0x32,0x42,0x30,0x45,0x35,0x46,0x33,0x34,0x31,0x35,0x41,0x39,0x45,0x37,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78, + 0x37,0x41,0x32,0x30,0x35,0x34,0x34,0x30,0x45,0x43,0x31,0x46,0x39,0x46,0x46,0x43,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x43,0x39,0x46,0x34,0x43,0x45,0x30,0x30,0x31, + 0x41,0x45,0x34,0x45,0x33,0x55,0x4c,0x2c,0x30,0x78,0x44,0x38,0x39,0x35,0x46,0x41,0x39,0x44,0x46,0x35,0x39,0x34,0x44,0x37,0x34,0x46,0x55,0x4c,0x2c,0x30,0x78,0x41, + 0x35,0x35,0x34,0x43,0x33,0x32,0x34,0x31,0x31,0x37,0x45,0x32,0x45,0x35,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x38,0x36,0x45,0x46,0x45,0x42,0x44,0x32,0x38,0x37, + 0x32,0x44,0x46,0x35,0x42,0x55,0x4c,0x2c,0x30,0x78,0x42,0x32,0x43,0x34,0x41,0x35,0x30,0x46,0x45,0x32,0x37,0x46,0x46,0x35,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32, + 0x45,0x44,0x33,0x34,0x39,0x45,0x45,0x45,0x46,0x37,0x43,0x38,0x39,0x30,0x35,0x55,0x4c,0x2c,0x30,0x78,0x37,0x46,0x35,0x39,0x32,0x38,0x45,0x42,0x38,0x35,0x39,0x33, + 0x37,0x45,0x34,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x41,0x33,0x31,0x32,0x34,0x42,0x33,0x33,0x37,0x36,0x39,0x35,0x46,0x37,0x30,0x55,0x4c,0x2c,0x30,0x78,0x36, + 0x35,0x45,0x34,0x44,0x36,0x31,0x44,0x46,0x31,0x32,0x38,0x38,0x36,0x35,0x45,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x32,0x30,0x42,0x39,0x35,0x31,0x30,0x34,0x37,0x37, + 0x31,0x42,0x43,0x37,0x55,0x4c,0x2c,0x30,0x78,0x38,0x41,0x38,0x37,0x44,0x34,0x32,0x33,0x45,0x38,0x34,0x33,0x46,0x45,0x37,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46, + 0x32,0x39,0x34,0x37,0x36,0x39,0x32,0x41,0x33,0x45,0x38,0x32,0x39,0x37,0x44,0x55,0x4c,0x2c,0x30,0x78,0x43,0x31,0x44,0x39,0x33,0x30,0x39,0x42,0x30,0x39,0x37,0x41, + 0x43,0x42,0x44,0x44,0x55,0x4c,0x2c,0x30,0x78,0x45,0x30,0x31,0x42,0x44,0x43,0x35,0x42,0x46,0x42,0x33,0x30,0x31,0x42,0x31,0x44,0x55,0x4c,0x2c,0x30,0x78,0x42,0x46, + 0x38,0x32,0x39,0x43,0x46,0x32,0x34,0x46,0x34,0x39,0x32,0x34,0x44,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x46,0x42,0x46,0x37,0x30,0x42,0x34,0x33,0x31,0x42,0x41, + 0x45,0x37,0x41,0x34,0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x42,0x43,0x46,0x38,0x44,0x45,0x30,0x35,0x34,0x34,0x33,0x32,0x30,0x44,0x55,0x4c,0x2c,0x30,0x78,0x33,0x39, + 0x44,0x33,0x42,0x42,0x35,0x33,0x33,0x32,0x46,0x43,0x41,0x45,0x33,0x42,0x55,0x4c,0x2c,0x30,0x78,0x41,0x30,0x38,0x42,0x32,0x39,0x45,0x30,0x43,0x31,0x43,0x33,0x39, + 0x46,0x34,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x46,0x30,0x39,0x41,0x45,0x46,0x37,0x46,0x44,0x30,0x35,0x43,0x39,0x45,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x34, + 0x46,0x31,0x39,0x30,0x34,0x32,0x31,0x32,0x33,0x34,0x37,0x30,0x39,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x45,0x44,0x34,0x34,0x45,0x33,0x30,0x31,0x42,0x37,0x37, + 0x31,0x41,0x32,0x55,0x4c,0x2c,0x30,0x78,0x34,0x41,0x39,0x38,0x32,0x46,0x34,0x46,0x33,0x36,0x38,0x45,0x33,0x42,0x45,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x35, + 0x46,0x36,0x36,0x43,0x41,0x30,0x36,0x33,0x31,0x44,0x34,0x30,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x46,0x46,0x41,0x46,0x35,0x32,0x38,0x37,0x34,0x42,0x34,0x34,0x43, + 0x31,0x34,0x37,0x55,0x4c,0x2c,0x30,0x78,0x33,0x30,0x43,0x36,0x30,0x41,0x45,0x32,0x46,0x31,0x34,0x41,0x42,0x42,0x37,0x45,0x55,0x4c,0x2c,0x30,0x78,0x45,0x36,0x38, + 0x43,0x36,0x45,0x43,0x43,0x43,0x35,0x42,0x36,0x37,0x30,0x34,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x30,0x43,0x41,0x34,0x46,0x42,0x44,0x35,0x36,0x41,0x34,0x44, + 0x35,0x41,0x34,0x55,0x4c,0x2c,0x30,0x78,0x41,0x45,0x31,0x38,0x33,0x45,0x43,0x38,0x34,0x42,0x38,0x34,0x39,0x44,0x44,0x41,0x55,0x4c,0x2c,0x30,0x78,0x41,0x44,0x44, + 0x31,0x36,0x34,0x33,0x30,0x34,0x35,0x43,0x45,0x35,0x37,0x37,0x33,0x55,0x4c,0x2c,0x30,0x78,0x36,0x37,0x32,0x35,0x35,0x43,0x31,0x34,0x36,0x38,0x43,0x45,0x41,0x36, + 0x45,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x36,0x45,0x31,0x30,0x45,0x43,0x42,0x46,0x32,0x38,0x43,0x44,0x41,0x41,0x33,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x39, + 0x39,0x39,0x34,0x39,0x41,0x35,0x38,0x30,0x36,0x45,0x39,0x33,0x33,0x55,0x4c,0x2c,0x30,0x78,0x37,0x42,0x38,0x34,0x36,0x46,0x43,0x32,0x32,0x30,0x42,0x32,0x36,0x30, + 0x31,0x46,0x55,0x4c,0x2c,0x30,0x78,0x31,0x38,0x38,0x35,0x44,0x31,0x41,0x30,0x37,0x46,0x41,0x43,0x43,0x45,0x44,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x33,0x31, + 0x39,0x44,0x44,0x38,0x44,0x41,0x31,0x35,0x42,0x35,0x39,0x33,0x32,0x55,0x4c,0x2c,0x30,0x78,0x34,0x36,0x42,0x34,0x41,0x35,0x41,0x41,0x43,0x30,0x31,0x43,0x39,0x41, + 0x35,0x30,0x55,0x4c,0x2c,0x30,0x78,0x42,0x41,0x36,0x42,0x30,0x34,0x45,0x34,0x36,0x37,0x36,0x33,0x33,0x44,0x39,0x46,0x55,0x4c,0x2c,0x30,0x78,0x37,0x45,0x45,0x45, + 0x35,0x36,0x30,0x42,0x41,0x42,0x31,0x39,0x43,0x41,0x46,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x34,0x32,0x31,0x32,0x38,0x41,0x39,0x45,0x41,0x37,0x39,0x42,0x31, + 0x31,0x46,0x55,0x4c,0x2c,0x30,0x78,0x45,0x45,0x35,0x31,0x33,0x36,0x33,0x42,0x33,0x35,0x46,0x37,0x42,0x44,0x45,0x39,0x55,0x4c,0x2c,0x30,0x78,0x37,0x36,0x44,0x33, + 0x35,0x30,0x37,0x35,0x35,0x41,0x41,0x43,0x35,0x37,0x31,0x44,0x55,0x4c,0x2c,0x30,0x78,0x30,0x31,0x37,0x30,0x37,0x44,0x41,0x33,0x46,0x45,0x43,0x32,0x34,0x36,0x33, + 0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x32,0x44,0x38,0x41,0x34,0x39,0x38,0x41,0x46,0x43,0x31,0x33,0x35,0x46,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x39,0x36,0x37, + 0x36,0x42,0x39,0x45,0x32,0x30,0x45,0x43,0x45,0x44,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x41,0x38,0x44,0x42,0x33,0x41,0x45,0x41,0x31,0x35,0x36,0x33,0x38,0x33,0x34, + 0x31,0x55,0x4c,0x2c,0x30,0x78,0x38,0x33,0x32,0x43,0x38,0x33,0x33,0x32,0x34,0x44,0x33,0x42,0x43,0x33,0x46,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x33,0x34,0x37, + 0x32,0x37,0x31,0x43,0x31,0x46,0x33,0x42,0x34,0x30,0x41,0x37,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x37,0x36,0x32,0x44,0x42,0x37,0x33,0x34,0x46,0x30,0x34,0x30,0x35, + 0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x44,0x34,0x46,0x32,0x31,0x44,0x32,0x36,0x43,0x34,0x45,0x33,0x45,0x45,0x37,0x55,0x4c,0x2c,0x30,0x78,0x45,0x46,0x35,0x39,0x35, + 0x37,0x44,0x43,0x33,0x39,0x38,0x44,0x46,0x44,0x42,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x41,0x45,0x42,0x34,0x39,0x32,0x42,0x34,0x39,0x30,0x43,0x39,0x42,0x38, + 0x44,0x55,0x4c,0x2c,0x30,0x78,0x30,0x44,0x37,0x30,0x46,0x33,0x36,0x38,0x34,0x39,0x44,0x37,0x41,0x32,0x35,0x42,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x35,0x35,0x38, + 0x44,0x37,0x41,0x44,0x30,0x41,0x45,0x33,0x42,0x37,0x44,0x55,0x4c,0x2c,0x30,0x78,0x36,0x35,0x38,0x45,0x46,0x38,0x45,0x34,0x46,0x30,0x45,0x39,0x41,0x35,0x46,0x35, + 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x33,0x33,0x42,0x31,0x30,0x33,0x36,0x46,0x34,0x41,0x32,0x42,0x38,0x41,0x30,0x55,0x4c,0x2c,0x30,0x78,0x35,0x41,0x45,0x43,0x33, + 0x45,0x37,0x35,0x39,0x45,0x30,0x37,0x41,0x38,0x30,0x43,0x55,0x4c,0x2c,0x30,0x78,0x34,0x46,0x38,0x38,0x45,0x38,0x35,0x36,0x39,0x32,0x39,0x34,0x36,0x38,0x39,0x31, + 0x55,0x4c,0x2c,0x30,0x78,0x34,0x43,0x42,0x43,0x42,0x41,0x46,0x38,0x35,0x35,0x35,0x43,0x42,0x30,0x35,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x42,0x39,0x34,0x38, + 0x37,0x46,0x33,0x39,0x39,0x33,0x42,0x42,0x42,0x45,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x44,0x31,0x43,0x36,0x42,0x37,0x32,0x44,0x36,0x46,0x34,0x44,0x41,0x37,0x35, + 0x55,0x4c,0x2c,0x30,0x78,0x36,0x44,0x42,0x33,0x33,0x34,0x44,0x43,0x32,0x38,0x41,0x43,0x41,0x45,0x36,0x34,0x55,0x4c,0x2c,0x30,0x78,0x37,0x31,0x44,0x42,0x32,0x38, + 0x42,0x38,0x35,0x30,0x41,0x35,0x33,0x34,0x36,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x41,0x35,0x31,0x38,0x44,0x31,0x30,0x46,0x32,0x45,0x32,0x36,0x31,0x46,0x38, + 0x55,0x4c,0x2c,0x30,0x78,0x46,0x43,0x37,0x35,0x44,0x44,0x35,0x39,0x33,0x33,0x36,0x34,0x44,0x42,0x45,0x33,0x55,0x4c,0x2c,0x30,0x78,0x41,0x32,0x33,0x46,0x43,0x45, + 0x34,0x33,0x46,0x31,0x42,0x43,0x41,0x43,0x31,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x30,0x34,0x33,0x45,0x38,0x30,0x32,0x33,0x43,0x44,0x31,0x42,0x42,0x36,0x37,0x55, + 0x4c,0x2c,0x0a,0x30,0x78,0x37,0x35,0x41,0x31,0x32,0x39,0x38,0x38,0x43,0x41,0x35,0x42,0x30,0x41,0x33,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x43,0x35,0x33,0x31,0x36, + 0x42,0x34,0x34,0x44,0x31,0x39,0x33,0x34,0x37,0x46,0x55,0x4c,0x2c,0x30,0x78,0x31,0x45,0x34,0x44,0x37,0x39,0x30,0x45,0x43,0x33,0x39,0x34,0x33,0x42,0x39,0x32,0x55, + 0x4c,0x2c,0x30,0x78,0x33,0x46,0x41,0x46,0x45,0x45,0x42,0x36,0x44,0x37,0x37,0x35,0x37,0x34,0x37,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x31,0x33,0x39,0x31,0x41, + 0x42,0x45,0x46,0x37,0x44,0x34,0x41,0x38,0x45,0x41,0x55,0x4c,0x2c,0x30,0x78,0x35,0x31,0x32,0x37,0x32,0x33,0x34,0x43,0x30,0x39,0x37,0x45,0x46,0x34,0x35,0x43,0x55, + 0x4c,0x2c,0x30,0x78,0x44,0x32,0x33,0x43,0x33,0x32,0x42,0x41,0x35,0x33,0x32,0x34,0x41,0x33,0x32,0x36,0x55,0x4c,0x2c,0x30,0x78,0x41,0x44,0x44,0x35,0x41,0x36,0x36, + 0x44,0x34,0x41,0x31,0x37,0x41,0x33,0x34,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x38,0x43,0x39,0x46,0x32,0x41,0x46,0x41,0x36,0x33,0x45,0x31,0x44,0x42,0x35,0x55, + 0x4c,0x2c,0x30,0x78,0x35,0x36,0x33,0x43,0x36,0x42,0x39,0x31,0x39,0x38,0x33,0x44,0x35,0x39,0x38,0x33,0x55,0x4c,0x2c,0x30,0x78,0x34,0x44,0x36,0x30,0x38,0x36,0x37, + 0x32,0x41,0x31,0x37,0x43,0x46,0x38,0x34,0x43,0x55,0x4c,0x2c,0x30,0x78,0x46,0x36,0x43,0x37,0x36,0x45,0x30,0x38,0x43,0x43,0x33,0x45,0x45,0x32,0x34,0x36,0x55,0x4c, + 0x2c,0x0a,0x30,0x78,0x35,0x45,0x37,0x36,0x42,0x43,0x42,0x31,0x42,0x33,0x33,0x33,0x39,0x38,0x32,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x41,0x45,0x36,0x43,0x34,0x45, + 0x46,0x41,0x35,0x36,0x36,0x44,0x36,0x32,0x42,0x55,0x4c,0x2c,0x30,0x78,0x33,0x36,0x44,0x34,0x43,0x31,0x42,0x45,0x45,0x38,0x42,0x36,0x46,0x34,0x30,0x36,0x55,0x4c, + 0x2c,0x30,0x78,0x36,0x33,0x32,0x31,0x45,0x46,0x42,0x43,0x31,0x35,0x38,0x32,0x45,0x45,0x37,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x39,0x43,0x39,0x35,0x33,0x46, + 0x34,0x30,0x44,0x34,0x45,0x43,0x31,0x46,0x44,0x55,0x4c,0x2c,0x30,0x78,0x32,0x36,0x35,0x38,0x35,0x38,0x30,0x36,0x43,0x34,0x35,0x41,0x37,0x44,0x41,0x37,0x55,0x4c, + 0x2c,0x30,0x78,0x31,0x36,0x46,0x41,0x45,0x30,0x30,0x36,0x31,0x36,0x31,0x34,0x43,0x31,0x37,0x45,0x55,0x4c,0x2c,0x30,0x78,0x33,0x46,0x39,0x44,0x36,0x33,0x32,0x38, + 0x33,0x44,0x41,0x46,0x39,0x30,0x37,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x43,0x44,0x32,0x39,0x42,0x30,0x30,0x45,0x33,0x46,0x32,0x43,0x39,0x44,0x32,0x55,0x4c, + 0x2c,0x30,0x78,0x33,0x30,0x30,0x43,0x44,0x34,0x42,0x37,0x33,0x30,0x43,0x45,0x41,0x41,0x35,0x46,0x55,0x4c,0x2c,0x30,0x78,0x39,0x38,0x33,0x32,0x45,0x30,0x46,0x32, + 0x31,0x36,0x35,0x31,0x32,0x41,0x37,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x46,0x38,0x43,0x45,0x45,0x33,0x44,0x38,0x33,0x30,0x45,0x42,0x30,0x44,0x55,0x4c,0x2c, + 0x0a,0x30,0x78,0x39,0x32,0x37,0x39,0x46,0x31,0x42,0x35,0x37,0x42,0x39,0x45,0x43,0x35,0x34,0x42,0x55,0x4c,0x2c,0x30,0x78,0x44,0x33,0x36,0x38,0x38,0x36,0x30,0x34, + 0x36,0x45,0x45,0x36,0x35,0x31,0x46,0x46,0x55,0x4c,0x2c,0x30,0x78,0x33,0x31,0x36,0x37,0x39,0x36,0x45,0x36,0x35,0x37,0x34,0x44,0x32,0x33,0x39,0x42,0x55,0x4c,0x2c, + 0x30,0x78,0x30,0x35,0x37,0x35,0x30,0x41,0x31,0x37,0x46,0x33,0x41,0x36,0x45,0x36,0x43,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x45,0x36,0x43,0x33,0x32,0x31,0x33, + 0x44,0x39,0x38,0x31,0x37,0x36,0x42,0x31,0x55,0x4c,0x2c,0x30,0x78,0x36,0x32,0x41,0x32,0x30,0x35,0x46,0x38,0x38,0x34,0x35,0x32,0x31,0x37,0x33,0x43,0x55,0x4c,0x2c, + 0x30,0x78,0x34,0x37,0x31,0x35,0x34,0x37,0x37,0x38,0x42,0x33,0x43,0x42,0x32,0x42,0x46,0x34,0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x36,0x41,0x39,0x33,0x32,0x33,0x38, + 0x32,0x35,0x34,0x34,0x36,0x46,0x46,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x35,0x36,0x35,0x35,0x45,0x34,0x45,0x30,0x37,0x35,0x38,0x44,0x46,0x33,0x38,0x55,0x4c,0x2c, + 0x30,0x78,0x38,0x45,0x35,0x30,0x38,0x36,0x46,0x43,0x38,0x39,0x37,0x43,0x46,0x43,0x46,0x32,0x55,0x4c,0x2c,0x30,0x78,0x38,0x36,0x43,0x41,0x30,0x42,0x44,0x30,0x34, + 0x34,0x32,0x45,0x37,0x30,0x33,0x31,0x55,0x4c,0x2c,0x30,0x78,0x34,0x45,0x34,0x37,0x37,0x38,0x33,0x30,0x41,0x32,0x30,0x39,0x34,0x30,0x46,0x30,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x38,0x33,0x33,0x38,0x46,0x37,0x44,0x31,0x33,0x39,0x45,0x45,0x41,0x30,0x36,0x35,0x55,0x4c,0x2c,0x30,0x78,0x42,0x44,0x33,0x41,0x32,0x43,0x45,0x34,0x33, + 0x37,0x45,0x39,0x35,0x45,0x46,0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x46,0x46,0x38,0x31,0x33,0x30,0x31,0x32,0x36,0x42,0x32,0x39,0x37,0x32,0x31,0x55,0x4c,0x2c,0x30, + 0x78,0x45,0x37,0x44,0x45,0x39,0x46,0x45,0x46,0x44,0x31,0x45,0x44,0x34,0x34,0x41,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x39,0x39,0x32,0x32,0x35,0x37,0x36,0x31, + 0x35,0x44,0x46,0x41,0x30,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x42,0x45,0x34,0x32,0x44,0x43,0x31,0x32,0x46,0x36,0x46,0x37,0x38,0x35,0x33,0x43,0x55,0x4c,0x2c,0x30, + 0x78,0x37,0x45,0x42,0x30,0x32,0x37,0x41,0x42,0x37,0x43,0x45,0x43,0x41,0x37,0x44,0x38,0x55,0x4c,0x2c,0x30,0x78,0x44,0x45,0x41,0x38,0x33,0x45,0x41,0x41,0x44,0x41, + 0x37,0x44,0x38,0x44,0x35,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x38,0x36,0x39,0x30,0x32,0x42,0x44,0x39,0x33,0x43,0x45,0x32,0x35,0x41,0x41,0x55,0x4c,0x2c,0x30, + 0x78,0x46,0x39,0x30,0x38,0x37,0x33,0x31,0x41,0x46,0x44,0x34,0x33,0x46,0x36,0x35,0x41,0x55,0x4c,0x2c,0x30,0x78,0x41,0x35,0x31,0x39,0x34,0x41,0x31,0x37,0x44,0x41, + 0x45,0x46,0x35,0x46,0x43,0x30,0x55,0x4c,0x2c,0x30,0x78,0x36,0x41,0x32,0x31,0x46,0x44,0x34,0x43,0x33,0x33,0x36,0x36,0x34,0x44,0x39,0x37,0x55,0x4c,0x2c,0x0a,0x30, + 0x78,0x37,0x30,0x31,0x35,0x34,0x31,0x44,0x42,0x33,0x31,0x39,0x38,0x42,0x34,0x33,0x35,0x55,0x4c,0x2c,0x30,0x78,0x39,0x42,0x35,0x34,0x43,0x44,0x45,0x44,0x42,0x42, + 0x30,0x46,0x31,0x45,0x45,0x41,0x55,0x4c,0x2c,0x30,0x78,0x37,0x32,0x34,0x30,0x39,0x37,0x35,0x31,0x41,0x31,0x36,0x33,0x44,0x30,0x39,0x41,0x55,0x4c,0x2c,0x30,0x78, + 0x45,0x32,0x36,0x46,0x34,0x37,0x39,0x31,0x42,0x46,0x39,0x44,0x37,0x35,0x46,0x36,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x65, + 0x76,0x65,0x6e,0x5f,0x68,0x69,0x28,0x72,0x29,0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x32,0x29,0x20,0x2b,0x20,0x30,0x5d,0x29,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x65,0x76,0x65,0x6e,0x5f,0x6c,0x6f,0x28,0x72,0x29,0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x32,0x29,0x20, + 0x2b,0x20,0x31,0x5d,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x64,0x64,0x5f,0x68,0x69,0x28,0x72,0x29,0x20,0x28,0x43,0x5b,0x28,0x28,0x72,0x29, + 0x20,0x3c,0x3c,0x20,0x32,0x29,0x20,0x2b,0x20,0x32,0x5d,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x64,0x64,0x5f,0x6c,0x6f,0x28,0x72,0x29,0x20, + 0x28,0x43,0x5b,0x28,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x32,0x29,0x20,0x2b,0x20,0x33,0x5d,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x28,0x78,0x30, + 0x2c,0x20,0x78,0x31,0x2c,0x20,0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x63,0x62,0x2c,0x20,0x72,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x62,0x28,0x78, + 0x30,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x31,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x33,0x20,0x23,0x23,0x20,0x68,0x2c,0x63, + 0x62,0x20,0x23,0x23,0x20,0x68,0x69,0x28,0x72,0x29,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x31,0x20,0x23,0x23,0x20, + 0x6c,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x33,0x20,0x23,0x23,0x20,0x6c,0x2c,0x63,0x62,0x20,0x23,0x23,0x20,0x6c,0x6f,0x28,0x72,0x29,0x29,0x3b,0x20, + 0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x28,0x78,0x30,0x2c,0x20,0x78,0x31,0x2c,0x20, + 0x78,0x32,0x2c,0x20,0x78,0x33,0x2c,0x20,0x78,0x34,0x2c,0x20,0x78,0x35,0x2c,0x20,0x78,0x36,0x2c,0x20,0x78,0x37,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x4c, + 0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x31,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x32,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x33,0x20,0x23,0x23,0x20, + 0x68,0x2c,0x5c,0x0a,0x78,0x34,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x35,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x36,0x20,0x23,0x23,0x20,0x68,0x2c,0x78,0x37,0x20,0x23, + 0x23,0x20,0x68,0x29,0x3b,0x20,0x5c,0x0a,0x4c,0x62,0x28,0x78,0x30,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x31,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x32,0x20,0x23,0x23, + 0x20,0x6c,0x2c,0x78,0x33,0x20,0x23,0x23,0x20,0x6c,0x2c,0x5c,0x0a,0x78,0x34,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x35,0x20,0x23,0x23,0x20,0x6c,0x2c,0x78,0x36,0x20, + 0x23,0x23,0x20,0x6c,0x2c,0x78,0x37,0x20,0x23,0x23,0x20,0x6c,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x63,0x2c,0x20,0x6e,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20, + 0x74,0x3d,0x28,0x78,0x20,0x23,0x23,0x20,0x68,0x26,0x28,0x63,0x29,0x29,0x3c,0x3c,0x28,0x6e,0x29,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x68,0x3d,0x28,0x28, + 0x78,0x20,0x23,0x23,0x20,0x68,0x3e,0x3e,0x28,0x6e,0x29,0x29,0x26,0x28,0x63,0x29,0x29,0x7c,0x74,0x3b,0x20,0x5c,0x0a,0x74,0x3d,0x28,0x78,0x20,0x23,0x23,0x20,0x6c, + 0x26,0x28,0x63,0x29,0x29,0x3c,0x3c,0x28,0x6e,0x29,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x6c,0x3d,0x28,0x28,0x78,0x20,0x23,0x23,0x20,0x6c,0x3e,0x3e,0x28, + 0x6e,0x29,0x29,0x26,0x28,0x63,0x29,0x29,0x7c,0x74,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x57,0x30,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35, + 0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x29,0x2c,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x31,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78, + 0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x29,0x2c,0x20,0x32, + 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x32,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78, + 0x30,0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x30,0x46,0x29,0x2c,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x33, + 0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x46,0x46,0x30,0x30,0x46,0x46, + 0x30,0x30,0x46,0x46,0x29,0x2c,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x34,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50, + 0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x46,0x46,0x30,0x30,0x30,0x30,0x46,0x46,0x46,0x46,0x29,0x2c,0x20,0x31,0x36,0x29,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x35,0x28,0x78,0x29,0x20,0x57,0x7a,0x28,0x78,0x2c,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x29,0x2c,0x20,0x33,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x57,0x36,0x28,0x78, + 0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x74,0x3d,0x78,0x20,0x23,0x23,0x20,0x68,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23, + 0x23,0x20,0x68,0x3d,0x78,0x20,0x23,0x23,0x20,0x6c,0x3b,0x20,0x5c,0x0a,0x78,0x20,0x23,0x23,0x20,0x6c,0x3d,0x74,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c, + 0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x4c,0x28,0x72,0x6f,0x29,0x20,0x53,0x4c,0x75,0x28,0x72,0x20,0x2b,0x20,0x72,0x6f,0x2c, + 0x20,0x72,0x6f,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x4c,0x75,0x28,0x72,0x2c,0x20,0x72,0x6f,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x53, + 0x28,0x68,0x30,0x2c,0x68,0x32,0x2c,0x68,0x34,0x2c,0x68,0x36,0x2c,0x43,0x65,0x76,0x65,0x6e,0x5f,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x28,0x68,0x31,0x2c,0x68, + 0x33,0x2c,0x68,0x35,0x2c,0x68,0x37,0x2c,0x43,0x6f,0x64,0x64,0x5f,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x4c,0x28,0x68,0x30,0x2c,0x68,0x32,0x2c,0x68,0x34,0x2c,0x68, + 0x36,0x2c,0x68,0x31,0x2c,0x68,0x33,0x2c,0x68,0x35,0x2c,0x68,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x31,0x29,0x3b,0x20,0x5c, + 0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x57,0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x57, + 0x20,0x23,0x23,0x20,0x72,0x6f,0x28,0x68,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x69,0x66,0x20,0x53,0x50, + 0x48,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x46,0x4f,0x4f,0x54,0x50,0x52,0x49,0x4e,0x54,0x5f,0x4a,0x48,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x38,0x20, + 0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,0x20,0x72,0x3b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x72,0x3d,0x30,0x3b,0x20,0x72, + 0x3c,0x34,0x32,0x3b,0x20,0x72,0x2b,0x3d,0x37,0x29,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x31,0x29,0x3b,0x20,0x5c, + 0x0a,0x53,0x4c,0x28,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x35, + 0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x28,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x65, + 0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x38,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x30,0x2c,0x30,0x29,0x3b, + 0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x31,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x32,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75, + 0x28,0x20,0x33,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x34,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x35,0x2c,0x35,0x29, + 0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x36,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x37,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c, + 0x75,0x28,0x20,0x38,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x20,0x39,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x30,0x2c,0x33, + 0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x31,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x32,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53, + 0x4c,0x75,0x28,0x31,0x33,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x34,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x35,0x2c, + 0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x36,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x37,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a, + 0x53,0x4c,0x75,0x28,0x31,0x38,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x31,0x39,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x30, + 0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x31,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x32,0x2c,0x31,0x29,0x3b,0x20,0x5c, + 0x0a,0x53,0x4c,0x75,0x28,0x32,0x33,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x34,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32, + 0x35,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x36,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x37,0x2c,0x36,0x29,0x3b,0x20, + 0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x38,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x32,0x39,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28, + 0x33,0x30,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x31,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x32,0x2c,0x34,0x29,0x3b, + 0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x33,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x34,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75, + 0x28,0x33,0x35,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x36,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x37,0x2c,0x32,0x29, + 0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x38,0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x33,0x39,0x2c,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c, + 0x75,0x28,0x34,0x30,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x53,0x4c,0x75,0x28,0x34,0x31,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20, + 0x28,0x30,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x73,0x69,0x67,0x6d,0x61,0x5b,0x31,0x36,0x5d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x7b,0x20,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33, + 0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x35,0x20,0x7d, + 0x2c,0x0a,0x7b,0x20,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x32, + 0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x31,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x35,0x2c,0x32,0x2c,0x31,0x35,0x2c, + 0x31,0x33,0x2c,0x31,0x30,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x39,0x2c,0x34,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x37,0x2c,0x39,0x2c,0x33,0x2c, + 0x31,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x31,0x31,0x2c,0x31,0x34,0x2c,0x32,0x2c,0x36,0x2c,0x35,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x38,0x20, + 0x7d,0x2c,0x0a,0x7b,0x20,0x39,0x2c,0x30,0x2c,0x35,0x2c,0x37,0x2c,0x32,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x31,0x31,0x2c,0x31, + 0x32,0x2c,0x36,0x2c,0x38,0x2c,0x33,0x2c,0x31,0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x32,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x31,0x31,0x2c,0x38, + 0x2c,0x33,0x2c,0x34,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x39,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x32,0x2c,0x35,0x2c, + 0x31,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x33,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x37,0x2c,0x36,0x2c,0x33,0x2c,0x39,0x2c,0x32,0x2c,0x38,0x2c,0x31,0x31, + 0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x33,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x31,0x34,0x2c,0x31,0x32,0x2c,0x31,0x2c,0x33,0x2c,0x39,0x2c,0x35,0x2c,0x30,0x2c,0x31,0x35, + 0x2c,0x34,0x2c,0x38,0x2c,0x36,0x2c,0x32,0x2c,0x31,0x30,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x36,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x39,0x2c,0x31,0x31,0x2c,0x33,0x2c, + 0x30,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x32,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x31,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x35,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x30,0x2c,0x32, + 0x2c,0x38,0x2c,0x34,0x2c,0x37,0x2c,0x36,0x2c,0x31,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x31,0x2c,0x39,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c, + 0x30,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31, + 0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x35,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35, + 0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x31,0x31,0x2c, + 0x38,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x35,0x2c,0x32,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x31,0x30,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x39, + 0x2c,0x34,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x37,0x2c,0x39,0x2c,0x33,0x2c,0x31,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x31,0x31,0x2c,0x31,0x34,0x2c,0x32,0x2c,0x36,0x2c, + 0x35,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x38,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x39,0x2c,0x30,0x2c,0x35,0x2c,0x37,0x2c,0x32,0x2c,0x34,0x2c,0x31, + 0x30,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x38,0x2c,0x33,0x2c,0x31,0x33,0x20,0x7d,0x2c,0x0a,0x7b,0x20,0x32,0x2c, + 0x31,0x32,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x31,0x31,0x2c,0x38,0x2c,0x33,0x2c,0x34,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c, + 0x31,0x2c,0x39,0x20,0x7d,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x63,0x5f,0x49,0x56,0x32,0x35,0x36,0x5b,0x38,0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x36,0x41,0x30,0x39,0x45,0x36,0x36,0x37, + 0x2c,0x30,0x78,0x42,0x42,0x36,0x37,0x41,0x45,0x38,0x35,0x2c,0x0a,0x30,0x78,0x33,0x43,0x36,0x45,0x46,0x33,0x37,0x32,0x2c,0x30,0x78,0x41,0x35,0x34,0x46,0x46,0x35, + 0x33,0x41,0x2c,0x0a,0x30,0x78,0x35,0x31,0x30,0x45,0x35,0x32,0x37,0x46,0x2c,0x30,0x78,0x39,0x42,0x30,0x35,0x36,0x38,0x38,0x43,0x2c,0x0a,0x30,0x78,0x31,0x46,0x38, + 0x33,0x44,0x39,0x41,0x42,0x2c,0x30,0x78,0x35,0x42,0x45,0x30,0x43,0x44,0x31,0x39,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x53, + 0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x63,0x5f,0x50,0x61,0x64,0x64,0x69,0x6e,0x67,0x5b,0x31,0x36, + 0x5d,0x3d,0x7b,0x0a,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x0a,0x30, + 0x2c,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x0a,0x30,0x2c,0x31,0x2c,0x30,0x2c,0x36,0x34,0x30,0x2c,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74, + 0x20,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x63,0x5f,0x75,0x32,0x35,0x36,0x5b,0x31,0x36,0x5d, + 0x3d,0x7b,0x0a,0x30,0x78,0x32,0x34,0x33,0x46,0x36,0x41,0x38,0x38,0x2c,0x30,0x78,0x38,0x35,0x41,0x33,0x30,0x38,0x44,0x33,0x2c,0x0a,0x30,0x78,0x31,0x33,0x31,0x39, + 0x38,0x41,0x32,0x45,0x2c,0x30,0x78,0x30,0x33,0x37,0x30,0x37,0x33,0x34,0x34,0x2c,0x0a,0x30,0x78,0x41,0x34,0x30,0x39,0x33,0x38,0x32,0x32,0x2c,0x30,0x78,0x32,0x39, + 0x39,0x46,0x33,0x31,0x44,0x30,0x2c,0x0a,0x30,0x78,0x30,0x38,0x32,0x45,0x46,0x41,0x39,0x38,0x2c,0x30,0x78,0x45,0x43,0x34,0x45,0x36,0x43,0x38,0x39,0x2c,0x0a,0x30, + 0x78,0x34,0x35,0x32,0x38,0x32,0x31,0x45,0x36,0x2c,0x30,0x78,0x33,0x38,0x44,0x30,0x31,0x33,0x37,0x37,0x2c,0x0a,0x30,0x78,0x42,0x45,0x35,0x34,0x36,0x36,0x43,0x46, + 0x2c,0x30,0x78,0x33,0x34,0x45,0x39,0x30,0x43,0x36,0x43,0x2c,0x0a,0x30,0x78,0x43,0x30,0x41,0x43,0x32,0x39,0x42,0x37,0x2c,0x30,0x78,0x43,0x39,0x37,0x43,0x35,0x30, + 0x44,0x44,0x2c,0x0a,0x30,0x78,0x33,0x46,0x38,0x34,0x44,0x35,0x42,0x35,0x2c,0x30,0x78,0x42,0x35,0x34,0x37,0x30,0x39,0x31,0x37,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x47,0x53,0x28,0x61,0x2c,0x62,0x2c,0x63,0x2c,0x64,0x2c,0x78,0x29,0x20,0x7b,0x20,0x5c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73,0x70,0x68, + 0x5f,0x75,0x33,0x32,0x20,0x69,0x64,0x78,0x31,0x3d,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x5d,0x5b,0x78,0x5d,0x3b,0x20,0x5c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x73, + 0x70,0x68,0x5f,0x75,0x33,0x32,0x20,0x69,0x64,0x78,0x32,0x3d,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x5d,0x5b,0x78,0x2b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x61, + 0x5d,0x2b,0x3d,0x28,0x6d,0x5b,0x69,0x64,0x78,0x31,0x5d,0x5e,0x63,0x5f,0x75,0x32,0x35,0x36,0x5b,0x69,0x64,0x78,0x32,0x5d,0x29,0x2b,0x76,0x5b,0x62,0x5d,0x3b,0x20, + 0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x61,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b, + 0x64,0x5d,0x2c,0x31,0x36,0x55,0x29,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x63,0x5d,0x2b,0x3d,0x76,0x5b,0x64,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x62,0x5d,0x20,0x5e,0x3d, + 0x20,0x76,0x5b,0x63,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x62,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x62,0x5d,0x2c,0x32,0x30,0x55,0x29,0x3b,0x20, + 0x5c,0x0a,0x5c,0x0a,0x76,0x5b,0x61,0x5d,0x2b,0x3d,0x28,0x6d,0x5b,0x69,0x64,0x78,0x32,0x5d,0x5e,0x63,0x5f,0x75,0x32,0x35,0x36,0x5b,0x69,0x64,0x78,0x31,0x5d,0x29, + 0x2b,0x76,0x5b,0x62,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x61,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x64,0x5d,0x3d,0x72,0x6f, + 0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x64,0x5d,0x2c,0x32,0x34,0x55,0x29,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x63,0x5d,0x2b,0x3d,0x76,0x5b,0x64,0x5d,0x3b,0x20,0x5c,0x0a, + 0x76,0x5b,0x62,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x63,0x5d,0x3b,0x20,0x5c,0x0a,0x76,0x5b,0x62,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x76,0x5b,0x62,0x5d, + 0x2c,0x32,0x35,0x55,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x09,0x78,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x50,0x48,0x5f,0x52,0x4f,0x54,0x4c,0x36,0x34,0x28,0x78,0x2c,0x20,0x79,0x29,0x09,0x72,0x6f,0x74,0x61,0x74,0x65,0x28, + 0x28,0x78,0x29,0x2c,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x79,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x36,0x34,0x65,0x28,0x78,0x29, + 0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x35,0x36,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43, + 0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x34,0x30,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x46,0x46,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x32,0x34,0x29,0x26,0x53,0x50, + 0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28, + 0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3e,0x3e,0x38,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x38, + 0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c, + 0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30, + 0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28, + 0x78,0x29,0x3c,0x3c,0x34,0x30,0x29,0x26,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x29,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x53,0x50,0x48,0x5f,0x43,0x36,0x34,0x28,0x78,0x29,0x3c,0x3c,0x35,0x36,0x29,0x26,0x53,0x50,0x48,0x5f,0x43, + 0x36,0x34,0x28,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x29,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x42,0x36,0x34,0x5f,0x30,0x28,0x78,0x29,0x20,0x28,0x28,0x78,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42, + 0x36,0x34,0x5f,0x31,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x32,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x31,0x36,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46, + 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x33,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32,0x34,0x29,0x20, + 0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x34,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e, + 0x3e,0x20,0x33,0x32,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f,0x35,0x28,0x78,0x29,0x20,0x28, + 0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x34,0x30,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x36,0x34,0x5f, + 0x36,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x34,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x42,0x36,0x34,0x5f,0x37,0x28,0x78,0x29,0x20,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x35,0x36,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, + 0x36,0x34,0x20,0x53,0x50,0x48,0x5f,0x52,0x4f,0x54,0x4c,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x43,0x36,0x34,0x28,0x6a,0x2c,0x20,0x72,0x29, + 0x20,0x28,0x28,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x29,0x28,0x28,0x6a,0x29,0x20,0x2b,0x20,0x28,0x72,0x29,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x51,0x43,0x36,0x34,0x28,0x6a,0x2c,0x20,0x72,0x29,0x20,0x28,0x28,0x28,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x29,0x28,0x72,0x29,0x20,0x3c,0x3c,0x20,0x35,0x36,0x29, + 0x20,0x5e,0x20,0x28,0x7e,0x28,0x28,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x29,0x28,0x6a,0x29,0x20,0x3c,0x3c,0x20,0x35,0x36,0x29,0x29,0x29,0x0a,0x53,0x54,0x41,0x54, + 0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x30,0x5f,0x47,0x5b,0x5d, + 0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x63,0x36,0x61,0x35,0x39,0x37,0x66,0x34,0x61,0x35,0x66,0x34,0x33,0x32,0x63,0x36,0x55,0x4c,0x2c,0x30,0x78,0x66,0x38,0x38,0x34, + 0x65,0x62,0x39,0x37,0x38,0x34,0x39,0x37,0x36,0x66,0x66,0x38,0x55,0x4c,0x2c,0x30,0x78,0x65,0x65,0x39,0x39,0x63,0x37,0x62,0x30,0x39,0x39,0x62,0x30,0x35,0x65,0x65, + 0x65,0x55,0x4c,0x2c,0x30,0x78,0x66,0x36,0x38,0x64,0x66,0x37,0x38,0x63,0x38,0x64,0x38,0x63,0x37,0x61,0x66,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x66,0x66,0x30,0x64, + 0x65,0x35,0x31,0x37,0x30,0x64,0x31,0x37,0x65,0x38,0x66,0x66,0x55,0x4c,0x2c,0x30,0x78,0x64,0x36,0x62,0x64,0x62,0x37,0x64,0x63,0x62,0x64,0x64,0x63,0x30,0x61,0x64, + 0x36,0x55,0x4c,0x2c,0x30,0x78,0x64,0x65,0x62,0x31,0x61,0x37,0x63,0x38,0x62,0x31,0x63,0x38,0x31,0x36,0x64,0x65,0x55,0x4c,0x2c,0x30,0x78,0x39,0x31,0x35,0x34,0x33, + 0x39,0x66,0x63,0x35,0x34,0x66,0x63,0x36,0x64,0x39,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x30,0x35,0x30,0x63,0x30,0x66,0x30,0x35,0x30,0x66,0x30,0x39,0x30,0x36, + 0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x32,0x30,0x33,0x30,0x34,0x30,0x35,0x30,0x33,0x30,0x35,0x30,0x37,0x30,0x32,0x55,0x4c,0x2c,0x30,0x78,0x63,0x65,0x61,0x39,0x38, + 0x37,0x65,0x30,0x61,0x39,0x65,0x30,0x32,0x65,0x63,0x65,0x55,0x4c,0x2c,0x30,0x78,0x35,0x36,0x37,0x64,0x61,0x63,0x38,0x37,0x37,0x64,0x38,0x37,0x64,0x31,0x35,0x36, + 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x65,0x37,0x31,0x39,0x64,0x35,0x32,0x62,0x31,0x39,0x32,0x62,0x63,0x63,0x65,0x37,0x55,0x4c,0x2c,0x30,0x78,0x62,0x35,0x36,0x32,0x37, + 0x31,0x61,0x36,0x36,0x32,0x61,0x36,0x31,0x33,0x62,0x35,0x55,0x4c,0x2c,0x30,0x78,0x34,0x64,0x65,0x36,0x39,0x61,0x33,0x31,0x65,0x36,0x33,0x31,0x37,0x63,0x34,0x64, + 0x55,0x4c,0x2c,0x30,0x78,0x65,0x63,0x39,0x61,0x63,0x33,0x62,0x35,0x39,0x61,0x62,0x35,0x35,0x39,0x65,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x66,0x34,0x35,0x30, + 0x35,0x63,0x66,0x34,0x35,0x63,0x66,0x34,0x30,0x38,0x66,0x55,0x4c,0x2c,0x30,0x78,0x31,0x66,0x39,0x64,0x33,0x65,0x62,0x63,0x39,0x64,0x62,0x63,0x61,0x33,0x31,0x66, + 0x55,0x4c,0x2c,0x30,0x78,0x38,0x39,0x34,0x30,0x30,0x39,0x63,0x30,0x34,0x30,0x63,0x30,0x34,0x39,0x38,0x39,0x55,0x4c,0x2c,0x30,0x78,0x66,0x61,0x38,0x37,0x65,0x66, + 0x39,0x32,0x38,0x37,0x39,0x32,0x36,0x38,0x66,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x65,0x66,0x31,0x35,0x63,0x35,0x33,0x66,0x31,0x35,0x33,0x66,0x64,0x30,0x65,0x66, + 0x55,0x4c,0x2c,0x30,0x78,0x62,0x32,0x65,0x62,0x37,0x66,0x32,0x36,0x65,0x62,0x32,0x36,0x39,0x34,0x62,0x32,0x55,0x4c,0x2c,0x30,0x78,0x38,0x65,0x63,0x39,0x30,0x37, + 0x34,0x30,0x63,0x39,0x34,0x30,0x63,0x65,0x38,0x65,0x55,0x4c,0x2c,0x30,0x78,0x66,0x62,0x30,0x62,0x65,0x64,0x31,0x64,0x30,0x62,0x31,0x64,0x65,0x36,0x66,0x62,0x55, + 0x4c,0x2c,0x0a,0x30,0x78,0x34,0x31,0x65,0x63,0x38,0x32,0x32,0x66,0x65,0x63,0x32,0x66,0x36,0x65,0x34,0x31,0x55,0x4c,0x2c,0x30,0x78,0x62,0x33,0x36,0x37,0x37,0x64, + 0x61,0x39,0x36,0x37,0x61,0x39,0x31,0x61,0x62,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x66,0x66,0x64,0x62,0x65,0x31,0x63,0x66,0x64,0x31,0x63,0x34,0x33,0x35,0x66,0x55, + 0x4c,0x2c,0x30,0x78,0x34,0x35,0x65,0x61,0x38,0x61,0x32,0x35,0x65,0x61,0x32,0x35,0x36,0x30,0x34,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x33,0x62,0x66,0x34,0x36, + 0x64,0x61,0x62,0x66,0x64,0x61,0x66,0x39,0x32,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x33,0x66,0x37,0x61,0x36,0x30,0x32,0x66,0x37,0x30,0x32,0x35,0x31,0x35,0x33,0x55, + 0x4c,0x2c,0x30,0x78,0x65,0x34,0x39,0x36,0x64,0x33,0x61,0x31,0x39,0x36,0x61,0x31,0x34,0x35,0x65,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x62,0x35,0x62,0x32,0x64,0x65, + 0x64,0x35,0x62,0x65,0x64,0x37,0x36,0x39,0x62,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x35,0x63,0x32,0x65,0x61,0x35,0x64,0x63,0x32,0x35,0x64,0x32,0x38,0x37,0x35,0x55, + 0x4c,0x2c,0x30,0x78,0x65,0x31,0x31,0x63,0x64,0x39,0x32,0x34,0x31,0x63,0x32,0x34,0x63,0x35,0x65,0x31,0x55,0x4c,0x2c,0x30,0x78,0x33,0x64,0x61,0x65,0x37,0x61,0x65, + 0x39,0x61,0x65,0x65,0x39,0x64,0x34,0x33,0x64,0x55,0x4c,0x2c,0x30,0x78,0x34,0x63,0x36,0x61,0x39,0x38,0x62,0x65,0x36,0x61,0x62,0x65,0x66,0x32,0x34,0x63,0x55,0x4c, + 0x2c,0x0a,0x30,0x78,0x36,0x63,0x35,0x61,0x64,0x38,0x65,0x65,0x35,0x61,0x65,0x65,0x38,0x32,0x36,0x63,0x55,0x4c,0x2c,0x30,0x78,0x37,0x65,0x34,0x31,0x66,0x63,0x63, + 0x33,0x34,0x31,0x63,0x33,0x62,0x64,0x37,0x65,0x55,0x4c,0x2c,0x30,0x78,0x66,0x35,0x30,0x32,0x66,0x31,0x30,0x36,0x30,0x32,0x30,0x36,0x66,0x33,0x66,0x35,0x55,0x4c, + 0x2c,0x30,0x78,0x38,0x33,0x34,0x66,0x31,0x64,0x64,0x31,0x34,0x66,0x64,0x31,0x35,0x32,0x38,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x38,0x35,0x63,0x64,0x30,0x65, + 0x34,0x35,0x63,0x65,0x34,0x38,0x63,0x36,0x38,0x55,0x4c,0x2c,0x30,0x78,0x35,0x31,0x66,0x34,0x61,0x32,0x30,0x37,0x66,0x34,0x30,0x37,0x35,0x36,0x35,0x31,0x55,0x4c, + 0x2c,0x30,0x78,0x64,0x31,0x33,0x34,0x62,0x39,0x35,0x63,0x33,0x34,0x35,0x63,0x38,0x64,0x64,0x31,0x55,0x4c,0x2c,0x30,0x78,0x66,0x39,0x30,0x38,0x65,0x39,0x31,0x38, + 0x30,0x38,0x31,0x38,0x65,0x31,0x66,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x65,0x32,0x39,0x33,0x64,0x66,0x61,0x65,0x39,0x33,0x61,0x65,0x34,0x63,0x65,0x32,0x55,0x4c, + 0x2c,0x30,0x78,0x61,0x62,0x37,0x33,0x34,0x64,0x39,0x35,0x37,0x33,0x39,0x35,0x33,0x65,0x61,0x62,0x55,0x4c,0x2c,0x30,0x78,0x36,0x32,0x35,0x33,0x63,0x34,0x66,0x35, + 0x35,0x33,0x66,0x35,0x39,0x37,0x36,0x32,0x55,0x4c,0x2c,0x30,0x78,0x32,0x61,0x33,0x66,0x35,0x34,0x34,0x31,0x33,0x66,0x34,0x31,0x36,0x62,0x32,0x61,0x55,0x4c,0x2c, + 0x0a,0x30,0x78,0x30,0x38,0x30,0x63,0x31,0x30,0x31,0x34,0x30,0x63,0x31,0x34,0x31,0x63,0x30,0x38,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x35,0x32,0x33,0x31,0x66,0x36, + 0x35,0x32,0x66,0x36,0x36,0x33,0x39,0x35,0x55,0x4c,0x2c,0x30,0x78,0x34,0x36,0x36,0x35,0x38,0x63,0x61,0x66,0x36,0x35,0x61,0x66,0x65,0x39,0x34,0x36,0x55,0x4c,0x2c, + 0x30,0x78,0x39,0x64,0x35,0x65,0x32,0x31,0x65,0x32,0x35,0x65,0x65,0x32,0x37,0x66,0x39,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x30,0x32,0x38,0x36,0x30,0x37,0x38, + 0x32,0x38,0x37,0x38,0x34,0x38,0x33,0x30,0x55,0x4c,0x2c,0x30,0x78,0x33,0x37,0x61,0x31,0x36,0x65,0x66,0x38,0x61,0x31,0x66,0x38,0x63,0x66,0x33,0x37,0x55,0x4c,0x2c, + 0x30,0x78,0x30,0x61,0x30,0x66,0x31,0x34,0x31,0x31,0x30,0x66,0x31,0x31,0x31,0x62,0x30,0x61,0x55,0x4c,0x2c,0x30,0x78,0x32,0x66,0x62,0x35,0x35,0x65,0x63,0x34,0x62, + 0x35,0x63,0x34,0x65,0x62,0x32,0x66,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x65,0x30,0x39,0x31,0x63,0x31,0x62,0x30,0x39,0x31,0x62,0x31,0x35,0x30,0x65,0x55,0x4c,0x2c, + 0x30,0x78,0x32,0x34,0x33,0x36,0x34,0x38,0x35,0x61,0x33,0x36,0x35,0x61,0x37,0x65,0x32,0x34,0x55,0x4c,0x2c,0x30,0x78,0x31,0x62,0x39,0x62,0x33,0x36,0x62,0x36,0x39, + 0x62,0x62,0x36,0x61,0x64,0x31,0x62,0x55,0x4c,0x2c,0x30,0x78,0x64,0x66,0x33,0x64,0x61,0x35,0x34,0x37,0x33,0x64,0x34,0x37,0x39,0x38,0x64,0x66,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x63,0x64,0x32,0x36,0x38,0x31,0x36,0x61,0x32,0x36,0x36,0x61,0x61,0x37,0x63,0x64,0x55,0x4c,0x2c,0x30,0x78,0x34,0x65,0x36,0x39,0x39,0x63,0x62,0x62,0x36, + 0x39,0x62,0x62,0x66,0x35,0x34,0x65,0x55,0x4c,0x2c,0x30,0x78,0x37,0x66,0x63,0x64,0x66,0x65,0x34,0x63,0x63,0x64,0x34,0x63,0x33,0x33,0x37,0x66,0x55,0x4c,0x2c,0x30, + 0x78,0x65,0x61,0x39,0x66,0x63,0x66,0x62,0x61,0x39,0x66,0x62,0x61,0x35,0x30,0x65,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x32,0x31,0x62,0x32,0x34,0x32,0x64,0x31, + 0x62,0x32,0x64,0x33,0x66,0x31,0x32,0x55,0x4c,0x2c,0x30,0x78,0x31,0x64,0x39,0x65,0x33,0x61,0x62,0x39,0x39,0x65,0x62,0x39,0x61,0x34,0x31,0x64,0x55,0x4c,0x2c,0x30, + 0x78,0x35,0x38,0x37,0x34,0x62,0x30,0x39,0x63,0x37,0x34,0x39,0x63,0x63,0x34,0x35,0x38,0x55,0x4c,0x2c,0x30,0x78,0x33,0x34,0x32,0x65,0x36,0x38,0x37,0x32,0x32,0x65, + 0x37,0x32,0x34,0x36,0x33,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x36,0x32,0x64,0x36,0x63,0x37,0x37,0x32,0x64,0x37,0x37,0x34,0x31,0x33,0x36,0x55,0x4c,0x2c,0x30, + 0x78,0x64,0x63,0x62,0x32,0x61,0x33,0x63,0x64,0x62,0x32,0x63,0x64,0x31,0x31,0x64,0x63,0x55,0x4c,0x2c,0x30,0x78,0x62,0x34,0x65,0x65,0x37,0x33,0x32,0x39,0x65,0x65, + 0x32,0x39,0x39,0x64,0x62,0x34,0x55,0x4c,0x2c,0x30,0x78,0x35,0x62,0x66,0x62,0x62,0x36,0x31,0x36,0x66,0x62,0x31,0x36,0x34,0x64,0x35,0x62,0x55,0x4c,0x2c,0x0a,0x30, + 0x78,0x61,0x34,0x66,0x36,0x35,0x33,0x30,0x31,0x66,0x36,0x30,0x31,0x61,0x35,0x61,0x34,0x55,0x4c,0x2c,0x30,0x78,0x37,0x36,0x34,0x64,0x65,0x63,0x64,0x37,0x34,0x64, + 0x64,0x37,0x61,0x31,0x37,0x36,0x55,0x4c,0x2c,0x30,0x78,0x62,0x37,0x36,0x31,0x37,0x35,0x61,0x33,0x36,0x31,0x61,0x33,0x31,0x34,0x62,0x37,0x55,0x4c,0x2c,0x30,0x78, + 0x37,0x64,0x63,0x65,0x66,0x61,0x34,0x39,0x63,0x65,0x34,0x39,0x33,0x34,0x37,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x32,0x37,0x62,0x61,0x34,0x38,0x64,0x37,0x62, + 0x38,0x64,0x64,0x66,0x35,0x32,0x55,0x4c,0x2c,0x30,0x78,0x64,0x64,0x33,0x65,0x61,0x31,0x34,0x32,0x33,0x65,0x34,0x32,0x39,0x66,0x64,0x64,0x55,0x4c,0x2c,0x30,0x78, + 0x35,0x65,0x37,0x31,0x62,0x63,0x39,0x33,0x37,0x31,0x39,0x33,0x63,0x64,0x35,0x65,0x55,0x4c,0x2c,0x30,0x78,0x31,0x33,0x39,0x37,0x32,0x36,0x61,0x32,0x39,0x37,0x61, + 0x32,0x62,0x31,0x31,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x36,0x66,0x35,0x35,0x37,0x30,0x34,0x66,0x35,0x30,0x34,0x61,0x32,0x61,0x36,0x55,0x4c,0x2c,0x30,0x78, + 0x62,0x39,0x36,0x38,0x36,0x39,0x62,0x38,0x36,0x38,0x62,0x38,0x30,0x31,0x62,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x63,0x31,0x32,0x63,0x39,0x39,0x37,0x34,0x32,0x63,0x37,0x34,0x62,0x35,0x63,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78, + 0x34,0x30,0x36,0x30,0x38,0x30,0x61,0x30,0x36,0x30,0x61,0x30,0x65,0x30,0x34,0x30,0x55,0x4c,0x2c,0x30,0x78,0x65,0x33,0x31,0x66,0x64,0x64,0x32,0x31,0x31,0x66,0x32, + 0x31,0x63,0x32,0x65,0x33,0x55,0x4c,0x2c,0x30,0x78,0x37,0x39,0x63,0x38,0x66,0x32,0x34,0x33,0x63,0x38,0x34,0x33,0x33,0x61,0x37,0x39,0x55,0x4c,0x2c,0x30,0x78,0x62, + 0x36,0x65,0x64,0x37,0x37,0x32,0x63,0x65,0x64,0x32,0x63,0x39,0x61,0x62,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x34,0x62,0x65,0x62,0x33,0x64,0x39,0x62,0x65,0x64, + 0x39,0x30,0x64,0x64,0x34,0x55,0x4c,0x2c,0x30,0x78,0x38,0x64,0x34,0x36,0x30,0x31,0x63,0x61,0x34,0x36,0x63,0x61,0x34,0x37,0x38,0x64,0x55,0x4c,0x2c,0x30,0x78,0x36, + 0x37,0x64,0x39,0x63,0x65,0x37,0x30,0x64,0x39,0x37,0x30,0x31,0x37,0x36,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x32,0x34,0x62,0x65,0x34,0x64,0x64,0x34,0x62,0x64,0x64, + 0x61,0x66,0x37,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x34,0x64,0x65,0x33,0x33,0x37,0x39,0x64,0x65,0x37,0x39,0x65,0x64,0x39,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39, + 0x38,0x64,0x34,0x32,0x62,0x36,0x37,0x64,0x34,0x36,0x37,0x66,0x66,0x39,0x38,0x55,0x4c,0x2c,0x30,0x78,0x62,0x30,0x65,0x38,0x37,0x62,0x32,0x33,0x65,0x38,0x32,0x33, + 0x39,0x33,0x62,0x30,0x55,0x4c,0x2c,0x30,0x78,0x38,0x35,0x34,0x61,0x31,0x31,0x64,0x65,0x34,0x61,0x64,0x65,0x35,0x62,0x38,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x62, + 0x62,0x36,0x62,0x36,0x64,0x62,0x64,0x36,0x62,0x62,0x64,0x30,0x36,0x62,0x62,0x55,0x4c,0x2c,0x30,0x78,0x63,0x35,0x32,0x61,0x39,0x31,0x37,0x65,0x32,0x61,0x37,0x65, + 0x62,0x62,0x63,0x35,0x55,0x4c,0x2c,0x30,0x78,0x34,0x66,0x65,0x35,0x39,0x65,0x33,0x34,0x65,0x35,0x33,0x34,0x37,0x62,0x34,0x66,0x55,0x4c,0x2c,0x30,0x78,0x65,0x64, + 0x31,0x36,0x63,0x31,0x33,0x61,0x31,0x36,0x33,0x61,0x64,0x37,0x65,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x36,0x63,0x35,0x31,0x37,0x35,0x34,0x63,0x35,0x35,0x34, + 0x64,0x32,0x38,0x36,0x55,0x4c,0x2c,0x30,0x78,0x39,0x61,0x64,0x37,0x32,0x66,0x36,0x32,0x64,0x37,0x36,0x32,0x66,0x38,0x39,0x61,0x55,0x4c,0x2c,0x30,0x78,0x36,0x36, + 0x35,0x35,0x63,0x63,0x66,0x66,0x35,0x35,0x66,0x66,0x39,0x39,0x36,0x36,0x55,0x4c,0x2c,0x30,0x78,0x31,0x31,0x39,0x34,0x32,0x32,0x61,0x37,0x39,0x34,0x61,0x37,0x62, + 0x36,0x31,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x61,0x63,0x66,0x30,0x66,0x34,0x61,0x63,0x66,0x34,0x61,0x63,0x30,0x38,0x61,0x55,0x4c,0x2c,0x30,0x78,0x65,0x39, + 0x31,0x30,0x63,0x39,0x33,0x30,0x31,0x30,0x33,0x30,0x64,0x39,0x65,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x34,0x30,0x36,0x30,0x38,0x30,0x61,0x30,0x36,0x30,0x61,0x30, + 0x65,0x30,0x34,0x55,0x4c,0x2c,0x30,0x78,0x66,0x65,0x38,0x31,0x65,0x37,0x39,0x38,0x38,0x31,0x39,0x38,0x36,0x36,0x66,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x30, + 0x66,0x30,0x35,0x62,0x30,0x62,0x66,0x30,0x30,0x62,0x61,0x62,0x61,0x30,0x55,0x4c,0x2c,0x30,0x78,0x37,0x38,0x34,0x34,0x66,0x30,0x63,0x63,0x34,0x34,0x63,0x63,0x62, + 0x34,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x35,0x62,0x61,0x34,0x61,0x64,0x35,0x62,0x61,0x64,0x35,0x66,0x30,0x32,0x35,0x55,0x4c,0x2c,0x30,0x78,0x34,0x62,0x65, + 0x33,0x39,0x36,0x33,0x65,0x65,0x33,0x33,0x65,0x37,0x35,0x34,0x62,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x32,0x66,0x33,0x35,0x66,0x30,0x65,0x66,0x33,0x30,0x65,0x61, + 0x63,0x61,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35,0x64,0x66,0x65,0x62,0x61,0x31,0x39,0x66,0x65,0x31,0x39,0x34,0x34,0x35,0x64,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x63, + 0x30,0x31,0x62,0x35,0x62,0x63,0x30,0x35,0x62,0x64,0x62,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x35,0x38,0x61,0x30,0x61,0x38,0x35,0x38,0x61,0x38,0x35,0x38,0x30, + 0x30,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x66,0x61,0x64,0x37,0x65,0x65,0x63,0x61,0x64,0x65,0x63,0x64,0x33,0x33,0x66,0x55,0x4c,0x2c,0x30,0x78,0x32,0x31,0x62, + 0x63,0x34,0x32,0x64,0x66,0x62,0x63,0x64,0x66,0x66,0x65,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x37,0x30,0x34,0x38,0x65,0x30,0x64,0x38,0x34,0x38,0x64,0x38,0x61,0x38, + 0x37,0x30,0x55,0x4c,0x2c,0x30,0x78,0x66,0x31,0x30,0x34,0x66,0x39,0x30,0x63,0x30,0x34,0x30,0x63,0x66,0x64,0x66,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x33,0x64, + 0x66,0x63,0x36,0x37,0x61,0x64,0x66,0x37,0x61,0x31,0x39,0x36,0x33,0x55,0x4c,0x2c,0x30,0x78,0x37,0x37,0x63,0x31,0x65,0x65,0x35,0x38,0x63,0x31,0x35,0x38,0x32,0x66, + 0x37,0x37,0x55,0x4c,0x2c,0x30,0x78,0x61,0x66,0x37,0x35,0x34,0x35,0x39,0x66,0x37,0x35,0x39,0x66,0x33,0x30,0x61,0x66,0x55,0x4c,0x2c,0x30,0x78,0x34,0x32,0x36,0x33, + 0x38,0x34,0x61,0x35,0x36,0x33,0x61,0x35,0x65,0x37,0x34,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x30,0x33,0x30,0x34,0x30,0x35,0x30,0x33,0x30,0x35,0x30,0x37,0x30, + 0x32,0x30,0x55,0x4c,0x2c,0x30,0x78,0x65,0x35,0x31,0x61,0x64,0x31,0x32,0x65,0x31,0x61,0x32,0x65,0x63,0x62,0x65,0x35,0x55,0x4c,0x2c,0x30,0x78,0x66,0x64,0x30,0x65, + 0x65,0x31,0x31,0x32,0x30,0x65,0x31,0x32,0x65,0x66,0x66,0x64,0x55,0x4c,0x2c,0x30,0x78,0x62,0x66,0x36,0x64,0x36,0x35,0x62,0x37,0x36,0x64,0x62,0x37,0x30,0x38,0x62, + 0x66,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x31,0x34,0x63,0x31,0x39,0x64,0x34,0x34,0x63,0x64,0x34,0x35,0x35,0x38,0x31,0x55,0x4c,0x2c,0x30,0x78,0x31,0x38,0x31,0x34, + 0x33,0x30,0x33,0x63,0x31,0x34,0x33,0x63,0x32,0x34,0x31,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x36,0x33,0x35,0x34,0x63,0x35,0x66,0x33,0x35,0x35,0x66,0x37,0x39,0x32, + 0x36,0x55,0x4c,0x2c,0x30,0x78,0x63,0x33,0x32,0x66,0x39,0x64,0x37,0x31,0x32,0x66,0x37,0x31,0x62,0x32,0x63,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x62,0x65,0x65,0x31, + 0x36,0x37,0x33,0x38,0x65,0x31,0x33,0x38,0x38,0x36,0x62,0x65,0x55,0x4c,0x2c,0x30,0x78,0x33,0x35,0x61,0x32,0x36,0x61,0x66,0x64,0x61,0x32,0x66,0x64,0x63,0x38,0x33, + 0x35,0x55,0x4c,0x2c,0x30,0x78,0x38,0x38,0x63,0x63,0x30,0x62,0x34,0x66,0x63,0x63,0x34,0x66,0x63,0x37,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32,0x65,0x33,0x39,0x35, + 0x63,0x34,0x62,0x33,0x39,0x34,0x62,0x36,0x35,0x32,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x33,0x35,0x37,0x33,0x64,0x66,0x39,0x35,0x37,0x66,0x39,0x36,0x61,0x39, + 0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x35,0x66,0x32,0x61,0x61,0x30,0x64,0x66,0x32,0x30,0x64,0x35,0x38,0x35,0x35,0x55,0x4c,0x2c,0x30,0x78,0x66,0x63,0x38,0x32,0x65, + 0x33,0x39,0x64,0x38,0x32,0x39,0x64,0x36,0x31,0x66,0x63,0x55,0x4c,0x2c,0x30,0x78,0x37,0x61,0x34,0x37,0x66,0x34,0x63,0x39,0x34,0x37,0x63,0x39,0x62,0x33,0x37,0x61, + 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x38,0x61,0x63,0x38,0x62,0x65,0x66,0x61,0x63,0x65,0x66,0x32,0x37,0x63,0x38,0x55,0x4c,0x2c,0x30,0x78,0x62,0x61,0x65,0x37,0x36, + 0x66,0x33,0x32,0x65,0x37,0x33,0x32,0x38,0x38,0x62,0x61,0x55,0x4c,0x2c,0x30,0x78,0x33,0x32,0x32,0x62,0x36,0x34,0x37,0x64,0x32,0x62,0x37,0x64,0x34,0x66,0x33,0x32, + 0x55,0x4c,0x2c,0x30,0x78,0x65,0x36,0x39,0x35,0x64,0x37,0x61,0x34,0x39,0x35,0x61,0x34,0x34,0x32,0x65,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x30,0x61,0x30,0x39, + 0x62,0x66,0x62,0x61,0x30,0x66,0x62,0x33,0x62,0x63,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x39,0x39,0x38,0x33,0x32,0x62,0x33,0x39,0x38,0x62,0x33,0x61,0x61,0x31,0x39, + 0x55,0x4c,0x2c,0x30,0x78,0x39,0x65,0x64,0x31,0x32,0x37,0x36,0x38,0x64,0x31,0x36,0x38,0x66,0x36,0x39,0x65,0x55,0x4c,0x2c,0x30,0x78,0x61,0x33,0x37,0x66,0x35,0x64, + 0x38,0x31,0x37,0x66,0x38,0x31,0x32,0x32,0x61,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x34,0x36,0x36,0x38,0x38,0x61,0x61,0x36,0x36,0x61,0x61,0x65,0x65,0x34,0x34, + 0x55,0x4c,0x2c,0x30,0x78,0x35,0x34,0x37,0x65,0x61,0x38,0x38,0x32,0x37,0x65,0x38,0x32,0x64,0x36,0x35,0x34,0x55,0x4c,0x2c,0x30,0x78,0x33,0x62,0x61,0x62,0x37,0x36, + 0x65,0x36,0x61,0x62,0x65,0x36,0x64,0x64,0x33,0x62,0x55,0x4c,0x2c,0x30,0x78,0x30,0x62,0x38,0x33,0x31,0x36,0x39,0x65,0x38,0x33,0x39,0x65,0x39,0x35,0x30,0x62,0x55, + 0x4c,0x2c,0x0a,0x30,0x78,0x38,0x63,0x63,0x61,0x30,0x33,0x34,0x35,0x63,0x61,0x34,0x35,0x63,0x39,0x38,0x63,0x55,0x4c,0x2c,0x30,0x78,0x63,0x37,0x32,0x39,0x39,0x35, + 0x37,0x62,0x32,0x39,0x37,0x62,0x62,0x63,0x63,0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x62,0x64,0x33,0x64,0x36,0x36,0x65,0x64,0x33,0x36,0x65,0x30,0x35,0x36,0x62,0x55, + 0x4c,0x2c,0x30,0x78,0x32,0x38,0x33,0x63,0x35,0x30,0x34,0x34,0x33,0x63,0x34,0x34,0x36,0x63,0x32,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x61,0x37,0x37,0x39,0x35,0x35, + 0x38,0x62,0x37,0x39,0x38,0x62,0x32,0x63,0x61,0x37,0x55,0x4c,0x2c,0x30,0x78,0x62,0x63,0x65,0x32,0x36,0x33,0x33,0x64,0x65,0x32,0x33,0x64,0x38,0x31,0x62,0x63,0x55, + 0x4c,0x2c,0x30,0x78,0x31,0x36,0x31,0x64,0x32,0x63,0x32,0x37,0x31,0x64,0x32,0x37,0x33,0x31,0x31,0x36,0x55,0x4c,0x2c,0x30,0x78,0x61,0x64,0x37,0x36,0x34,0x31,0x39, + 0x61,0x37,0x36,0x39,0x61,0x33,0x37,0x61,0x64,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x62,0x33,0x62,0x61,0x64,0x34,0x64,0x33,0x62,0x34,0x64,0x39,0x36,0x64,0x62,0x55, + 0x4c,0x2c,0x30,0x78,0x36,0x34,0x35,0x36,0x63,0x38,0x66,0x61,0x35,0x36,0x66,0x61,0x39,0x65,0x36,0x34,0x55,0x4c,0x2c,0x30,0x78,0x37,0x34,0x34,0x65,0x65,0x38,0x64, + 0x32,0x34,0x65,0x64,0x32,0x61,0x36,0x37,0x34,0x55,0x4c,0x2c,0x30,0x78,0x31,0x34,0x31,0x65,0x32,0x38,0x32,0x32,0x31,0x65,0x32,0x32,0x33,0x36,0x31,0x34,0x55,0x4c, + 0x2c,0x0a,0x30,0x78,0x39,0x32,0x64,0x62,0x33,0x66,0x37,0x36,0x64,0x62,0x37,0x36,0x65,0x34,0x39,0x32,0x55,0x4c,0x2c,0x30,0x78,0x30,0x63,0x30,0x61,0x31,0x38,0x31, + 0x65,0x30,0x61,0x31,0x65,0x31,0x32,0x30,0x63,0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x36,0x63,0x39,0x30,0x62,0x34,0x36,0x63,0x62,0x34,0x66,0x63,0x34,0x38,0x55,0x4c, + 0x2c,0x30,0x78,0x62,0x38,0x65,0x34,0x36,0x62,0x33,0x37,0x65,0x34,0x33,0x37,0x38,0x66,0x62,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x66,0x35,0x64,0x32,0x35,0x65, + 0x37,0x35,0x64,0x65,0x37,0x37,0x38,0x39,0x66,0x55,0x4c,0x2c,0x30,0x78,0x62,0x64,0x36,0x65,0x36,0x31,0x62,0x32,0x36,0x65,0x62,0x32,0x30,0x66,0x62,0x64,0x55,0x4c, + 0x2c,0x30,0x78,0x34,0x33,0x65,0x66,0x38,0x36,0x32,0x61,0x65,0x66,0x32,0x61,0x36,0x39,0x34,0x33,0x55,0x4c,0x2c,0x30,0x78,0x63,0x34,0x61,0x36,0x39,0x33,0x66,0x31, + 0x61,0x36,0x66,0x31,0x33,0x35,0x63,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x39,0x61,0x38,0x37,0x32,0x65,0x33,0x61,0x38,0x65,0x33,0x64,0x61,0x33,0x39,0x55,0x4c, + 0x2c,0x30,0x78,0x33,0x31,0x61,0x34,0x36,0x32,0x66,0x37,0x61,0x34,0x66,0x37,0x63,0x36,0x33,0x31,0x55,0x4c,0x2c,0x30,0x78,0x64,0x33,0x33,0x37,0x62,0x64,0x35,0x39, + 0x33,0x37,0x35,0x39,0x38,0x61,0x64,0x33,0x55,0x4c,0x2c,0x30,0x78,0x66,0x32,0x38,0x62,0x66,0x66,0x38,0x36,0x38,0x62,0x38,0x36,0x37,0x34,0x66,0x32,0x55,0x4c,0x2c, + 0x0a,0x30,0x78,0x64,0x35,0x33,0x32,0x62,0x31,0x35,0x36,0x33,0x32,0x35,0x36,0x38,0x33,0x64,0x35,0x55,0x4c,0x2c,0x30,0x78,0x38,0x62,0x34,0x33,0x30,0x64,0x63,0x35, + 0x34,0x33,0x63,0x35,0x34,0x65,0x38,0x62,0x55,0x4c,0x2c,0x30,0x78,0x36,0x65,0x35,0x39,0x64,0x63,0x65,0x62,0x35,0x39,0x65,0x62,0x38,0x35,0x36,0x65,0x55,0x4c,0x2c, + 0x30,0x78,0x64,0x61,0x62,0x37,0x61,0x66,0x63,0x32,0x62,0x37,0x63,0x32,0x31,0x38,0x64,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x31,0x38,0x63,0x30,0x32,0x38,0x66, + 0x38,0x63,0x38,0x66,0x38,0x65,0x30,0x31,0x55,0x4c,0x2c,0x30,0x78,0x62,0x31,0x36,0x34,0x37,0x39,0x61,0x63,0x36,0x34,0x61,0x63,0x31,0x64,0x62,0x31,0x55,0x4c,0x2c, + 0x30,0x78,0x39,0x63,0x64,0x32,0x32,0x33,0x36,0x64,0x64,0x32,0x36,0x64,0x66,0x31,0x39,0x63,0x55,0x4c,0x2c,0x30,0x78,0x34,0x39,0x65,0x30,0x39,0x32,0x33,0x62,0x65, + 0x30,0x33,0x62,0x37,0x32,0x34,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x38,0x62,0x34,0x61,0x62,0x63,0x37,0x62,0x34,0x63,0x37,0x31,0x66,0x64,0x38,0x55,0x4c,0x2c, + 0x30,0x78,0x61,0x63,0x66,0x61,0x34,0x33,0x31,0x35,0x66,0x61,0x31,0x35,0x62,0x39,0x61,0x63,0x55,0x4c,0x2c,0x30,0x78,0x66,0x33,0x30,0x37,0x66,0x64,0x30,0x39,0x30, + 0x37,0x30,0x39,0x66,0x61,0x66,0x33,0x55,0x4c,0x2c,0x30,0x78,0x63,0x66,0x32,0x35,0x38,0x35,0x36,0x66,0x32,0x35,0x36,0x66,0x61,0x30,0x63,0x66,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x63,0x61,0x61,0x66,0x38,0x66,0x65,0x61,0x61,0x66,0x65,0x61,0x32,0x30,0x63,0x61,0x55,0x4c,0x2c,0x30,0x78,0x66,0x34,0x38,0x65,0x66,0x33,0x38,0x39,0x38, + 0x65,0x38,0x39,0x37,0x64,0x66,0x34,0x55,0x4c,0x2c,0x30,0x78,0x34,0x37,0x65,0x39,0x38,0x65,0x32,0x30,0x65,0x39,0x32,0x30,0x36,0x37,0x34,0x37,0x55,0x4c,0x2c,0x30, + 0x78,0x31,0x30,0x31,0x38,0x32,0x30,0x32,0x38,0x31,0x38,0x32,0x38,0x33,0x38,0x31,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x66,0x64,0x35,0x64,0x65,0x36,0x34,0x64, + 0x35,0x36,0x34,0x30,0x62,0x36,0x66,0x55,0x4c,0x2c,0x30,0x78,0x66,0x30,0x38,0x38,0x66,0x62,0x38,0x33,0x38,0x38,0x38,0x33,0x37,0x33,0x66,0x30,0x55,0x4c,0x2c,0x30, + 0x78,0x34,0x61,0x36,0x66,0x39,0x34,0x62,0x31,0x36,0x66,0x62,0x31,0x66,0x62,0x34,0x61,0x55,0x4c,0x2c,0x30,0x78,0x35,0x63,0x37,0x32,0x62,0x38,0x39,0x36,0x37,0x32, + 0x39,0x36,0x63,0x61,0x35,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x38,0x32,0x34,0x37,0x30,0x36,0x63,0x32,0x34,0x36,0x63,0x35,0x34,0x33,0x38,0x55,0x4c,0x2c,0x30, + 0x78,0x35,0x37,0x66,0x31,0x61,0x65,0x30,0x38,0x66,0x31,0x30,0x38,0x35,0x66,0x35,0x37,0x55,0x4c,0x2c,0x30,0x78,0x37,0x33,0x63,0x37,0x65,0x36,0x35,0x32,0x63,0x37, + 0x35,0x32,0x32,0x31,0x37,0x33,0x55,0x4c,0x2c,0x30,0x78,0x39,0x37,0x35,0x31,0x33,0x35,0x66,0x33,0x35,0x31,0x66,0x33,0x36,0x34,0x39,0x37,0x55,0x4c,0x2c,0x0a,0x30, + 0x78,0x63,0x62,0x32,0x33,0x38,0x64,0x36,0x35,0x32,0x33,0x36,0x35,0x61,0x65,0x63,0x62,0x55,0x4c,0x2c,0x30,0x78,0x61,0x31,0x37,0x63,0x35,0x39,0x38,0x34,0x37,0x63, + 0x38,0x34,0x32,0x35,0x61,0x31,0x55,0x4c,0x2c,0x30,0x78,0x65,0x38,0x39,0x63,0x63,0x62,0x62,0x66,0x39,0x63,0x62,0x66,0x35,0x37,0x65,0x38,0x55,0x4c,0x2c,0x30,0x78, + 0x33,0x65,0x32,0x31,0x37,0x63,0x36,0x33,0x32,0x31,0x36,0x33,0x35,0x64,0x33,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x36,0x64,0x64,0x33,0x37,0x37,0x63,0x64,0x64, + 0x37,0x63,0x65,0x61,0x39,0x36,0x55,0x4c,0x2c,0x30,0x78,0x36,0x31,0x64,0x63,0x63,0x32,0x37,0x66,0x64,0x63,0x37,0x66,0x31,0x65,0x36,0x31,0x55,0x4c,0x2c,0x30,0x78, + 0x30,0x64,0x38,0x36,0x31,0x61,0x39,0x31,0x38,0x36,0x39,0x31,0x39,0x63,0x30,0x64,0x55,0x4c,0x2c,0x30,0x78,0x30,0x66,0x38,0x35,0x31,0x65,0x39,0x34,0x38,0x35,0x39, + 0x34,0x39,0x62,0x30,0x66,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x65,0x30,0x39,0x30,0x64,0x62,0x61,0x62,0x39,0x30,0x61,0x62,0x34,0x62,0x65,0x30,0x55,0x4c,0x2c,0x30,0x78, + 0x37,0x63,0x34,0x32,0x66,0x38,0x63,0x36,0x34,0x32,0x63,0x36,0x62,0x61,0x37,0x63,0x55,0x4c,0x2c,0x30,0x78,0x37,0x31,0x63,0x34,0x65,0x32,0x35,0x37,0x63,0x34,0x35, + 0x37,0x32,0x36,0x37,0x31,0x55,0x4c,0x2c,0x30,0x78,0x63,0x63,0x61,0x61,0x38,0x33,0x65,0x35,0x61,0x61,0x65,0x35,0x32,0x39,0x63,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78, + 0x39,0x30,0x64,0x38,0x33,0x62,0x37,0x33,0x64,0x38,0x37,0x33,0x65,0x33,0x39,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x36,0x30,0x35,0x30,0x63,0x30,0x66,0x30,0x35,0x30, + 0x66,0x30,0x39,0x30,0x36,0x55,0x4c,0x2c,0x30,0x78,0x66,0x37,0x30,0x31,0x66,0x35,0x30,0x33,0x30,0x31,0x30,0x33,0x66,0x34,0x66,0x37,0x55,0x4c,0x2c,0x30,0x78,0x31, + 0x63,0x31,0x32,0x33,0x38,0x33,0x36,0x31,0x32,0x33,0x36,0x32,0x61,0x31,0x63,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x63,0x32,0x61,0x33,0x39,0x66,0x66,0x65,0x61,0x33,0x66, + 0x65,0x33,0x63,0x63,0x32,0x55,0x4c,0x2c,0x30,0x78,0x36,0x61,0x35,0x66,0x64,0x34,0x65,0x31,0x35,0x66,0x65,0x31,0x38,0x62,0x36,0x61,0x55,0x4c,0x2c,0x30,0x78,0x61, + 0x65,0x66,0x39,0x34,0x37,0x31,0x30,0x66,0x39,0x31,0x30,0x62,0x65,0x61,0x65,0x55,0x4c,0x2c,0x30,0x78,0x36,0x39,0x64,0x30,0x64,0x32,0x36,0x62,0x64,0x30,0x36,0x62, + 0x30,0x32,0x36,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x37,0x39,0x31,0x32,0x65,0x61,0x38,0x39,0x31,0x61,0x38,0x62,0x66,0x31,0x37,0x55,0x4c,0x2c,0x30,0x78,0x39, + 0x39,0x35,0x38,0x32,0x39,0x65,0x38,0x35,0x38,0x65,0x38,0x37,0x31,0x39,0x39,0x55,0x4c,0x2c,0x30,0x78,0x33,0x61,0x32,0x37,0x37,0x34,0x36,0x39,0x32,0x37,0x36,0x39, + 0x35,0x33,0x33,0x61,0x55,0x4c,0x2c,0x30,0x78,0x32,0x37,0x62,0x39,0x34,0x65,0x64,0x30,0x62,0x39,0x64,0x30,0x66,0x37,0x32,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64, + 0x39,0x33,0x38,0x61,0x39,0x34,0x38,0x33,0x38,0x34,0x38,0x39,0x31,0x64,0x39,0x55,0x4c,0x2c,0x30,0x78,0x65,0x62,0x31,0x33,0x63,0x64,0x33,0x35,0x31,0x33,0x33,0x35, + 0x64,0x65,0x65,0x62,0x55,0x4c,0x2c,0x30,0x78,0x32,0x62,0x62,0x33,0x35,0x36,0x63,0x65,0x62,0x33,0x63,0x65,0x65,0x35,0x32,0x62,0x55,0x4c,0x2c,0x30,0x78,0x32,0x32, + 0x33,0x33,0x34,0x34,0x35,0x35,0x33,0x33,0x35,0x35,0x37,0x37,0x32,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x64,0x32,0x62,0x62,0x62,0x66,0x64,0x36,0x62,0x62,0x64,0x36, + 0x30,0x34,0x64,0x32,0x55,0x4c,0x2c,0x30,0x78,0x61,0x39,0x37,0x30,0x34,0x39,0x39,0x30,0x37,0x30,0x39,0x30,0x33,0x39,0x61,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x37, + 0x38,0x39,0x30,0x65,0x38,0x30,0x38,0x39,0x38,0x30,0x38,0x37,0x30,0x37,0x55,0x4c,0x2c,0x30,0x78,0x33,0x33,0x61,0x37,0x36,0x36,0x66,0x32,0x61,0x37,0x66,0x32,0x63, + 0x31,0x33,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x64,0x62,0x36,0x35,0x61,0x63,0x31,0x62,0x36,0x63,0x31,0x65,0x63,0x32,0x64,0x55,0x4c,0x2c,0x30,0x78,0x33,0x63, + 0x32,0x32,0x37,0x38,0x36,0x36,0x32,0x32,0x36,0x36,0x35,0x61,0x33,0x63,0x55,0x4c,0x2c,0x30,0x78,0x31,0x35,0x39,0x32,0x32,0x61,0x61,0x64,0x39,0x32,0x61,0x64,0x62, + 0x38,0x31,0x35,0x55,0x4c,0x2c,0x30,0x78,0x63,0x39,0x32,0x30,0x38,0x39,0x36,0x30,0x32,0x30,0x36,0x30,0x61,0x39,0x63,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x37, + 0x34,0x39,0x31,0x35,0x64,0x62,0x34,0x39,0x64,0x62,0x35,0x63,0x38,0x37,0x55,0x4c,0x2c,0x30,0x78,0x61,0x61,0x66,0x66,0x34,0x66,0x31,0x61,0x66,0x66,0x31,0x61,0x62, + 0x30,0x61,0x61,0x55,0x4c,0x2c,0x30,0x78,0x35,0x30,0x37,0x38,0x61,0x30,0x38,0x38,0x37,0x38,0x38,0x38,0x64,0x38,0x35,0x30,0x55,0x4c,0x2c,0x30,0x78,0x61,0x35,0x37, + 0x61,0x35,0x31,0x38,0x65,0x37,0x61,0x38,0x65,0x32,0x62,0x61,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x33,0x38,0x66,0x30,0x36,0x38,0x61,0x38,0x66,0x38,0x61,0x38, + 0x39,0x30,0x33,0x55,0x4c,0x2c,0x30,0x78,0x35,0x39,0x66,0x38,0x62,0x32,0x31,0x33,0x66,0x38,0x31,0x33,0x34,0x61,0x35,0x39,0x55,0x4c,0x2c,0x30,0x78,0x30,0x39,0x38, + 0x30,0x31,0x32,0x39,0x62,0x38,0x30,0x39,0x62,0x39,0x32,0x30,0x39,0x55,0x4c,0x2c,0x30,0x78,0x31,0x61,0x31,0x37,0x33,0x34,0x33,0x39,0x31,0x37,0x33,0x39,0x32,0x33, + 0x31,0x61,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x35,0x64,0x61,0x63,0x61,0x37,0x35,0x64,0x61,0x37,0x35,0x31,0x30,0x36,0x35,0x55,0x4c,0x2c,0x30,0x78,0x64,0x37,0x33, + 0x31,0x62,0x35,0x35,0x33,0x33,0x31,0x35,0x33,0x38,0x34,0x64,0x37,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x63,0x36,0x31,0x33,0x35,0x31,0x63,0x36,0x35,0x31,0x64,0x35, + 0x38,0x34,0x55,0x4c,0x2c,0x30,0x78,0x64,0x30,0x62,0x38,0x62,0x62,0x64,0x33,0x62,0x38,0x64,0x33,0x30,0x33,0x64,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x32,0x63, + 0x33,0x31,0x66,0x35,0x65,0x63,0x33,0x35,0x65,0x64,0x63,0x38,0x32,0x55,0x4c,0x2c,0x30,0x78,0x32,0x39,0x62,0x30,0x35,0x32,0x63,0x62,0x62,0x30,0x63,0x62,0x65,0x32, + 0x32,0x39,0x55,0x4c,0x2c,0x30,0x78,0x35,0x61,0x37,0x37,0x62,0x34,0x39,0x39,0x37,0x37,0x39,0x39,0x63,0x33,0x35,0x61,0x55,0x4c,0x2c,0x30,0x78,0x31,0x65,0x31,0x31, + 0x33,0x63,0x33,0x33,0x31,0x31,0x33,0x33,0x32,0x64,0x31,0x65,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x37,0x62,0x63,0x62,0x66,0x36,0x34,0x36,0x63,0x62,0x34,0x36,0x33,0x64, + 0x37,0x62,0x55,0x4c,0x2c,0x30,0x78,0x61,0x38,0x66,0x63,0x34,0x62,0x31,0x66,0x66,0x63,0x31,0x66,0x62,0x37,0x61,0x38,0x55,0x4c,0x2c,0x30,0x78,0x36,0x64,0x64,0x36, + 0x64,0x61,0x36,0x31,0x64,0x36,0x36,0x31,0x30,0x63,0x36,0x64,0x55,0x4c,0x2c,0x30,0x78,0x32,0x63,0x33,0x61,0x35,0x38,0x34,0x65,0x33,0x61,0x34,0x65,0x36,0x32,0x32, + 0x63,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75, + 0x6c,0x6f,0x6e,0x67,0x20,0x54,0x34,0x5f,0x47,0x5b,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x41,0x35,0x46,0x34,0x33,0x32,0x43,0x36,0x43,0x36,0x41,0x35,0x39,0x37, + 0x46,0x34,0x55,0x4c,0x2c,0x30,0x78,0x38,0x34,0x39,0x37,0x36,0x46,0x46,0x38,0x46,0x38,0x38,0x34,0x45,0x42,0x39,0x37,0x55,0x4c,0x2c,0x30,0x78,0x39,0x39,0x42,0x30, + 0x35,0x45,0x45,0x45,0x45,0x45,0x39,0x39,0x43,0x37,0x42,0x30,0x55,0x4c,0x2c,0x30,0x78,0x38,0x44,0x38,0x43,0x37,0x41,0x46,0x36,0x46,0x36,0x38,0x44,0x46,0x37,0x38, + 0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x44,0x31,0x37,0x45,0x38,0x46,0x46,0x46,0x46,0x30,0x44,0x45,0x35,0x31,0x37,0x55,0x4c,0x2c,0x30,0x78,0x42,0x44,0x44,0x43, + 0x30,0x41,0x44,0x36,0x44,0x36,0x42,0x44,0x42,0x37,0x44,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x31,0x43,0x38,0x31,0x36,0x44,0x45,0x44,0x45,0x42,0x31,0x41,0x37,0x43, + 0x38,0x55,0x4c,0x2c,0x30,0x78,0x35,0x34,0x46,0x43,0x36,0x44,0x39,0x31,0x39,0x31,0x35,0x34,0x33,0x39,0x46,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x30,0x46,0x30, + 0x39,0x30,0x36,0x30,0x36,0x30,0x35,0x30,0x43,0x30,0x46,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x33,0x30,0x35,0x30,0x37,0x30,0x32,0x30,0x32,0x30,0x33,0x30,0x34,0x30, + 0x35,0x55,0x4c,0x2c,0x30,0x78,0x41,0x39,0x45,0x30,0x32,0x45,0x43,0x45,0x43,0x45,0x41,0x39,0x38,0x37,0x45,0x30,0x55,0x4c,0x2c,0x30,0x78,0x37,0x44,0x38,0x37,0x44, + 0x31,0x35,0x36,0x35,0x36,0x37,0x44,0x41,0x43,0x38,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x39,0x32,0x42,0x43,0x43,0x45,0x37,0x45,0x37,0x31,0x39,0x44,0x35,0x32, + 0x42,0x55,0x4c,0x2c,0x30,0x78,0x36,0x32,0x41,0x36,0x31,0x33,0x42,0x35,0x42,0x35,0x36,0x32,0x37,0x31,0x41,0x36,0x55,0x4c,0x2c,0x30,0x78,0x45,0x36,0x33,0x31,0x37, + 0x43,0x34,0x44,0x34,0x44,0x45,0x36,0x39,0x41,0x33,0x31,0x55,0x4c,0x2c,0x30,0x78,0x39,0x41,0x42,0x35,0x35,0x39,0x45,0x43,0x45,0x43,0x39,0x41,0x43,0x33,0x42,0x35, + 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x35,0x43,0x46,0x34,0x30,0x38,0x46,0x38,0x46,0x34,0x35,0x30,0x35,0x43,0x46,0x55,0x4c,0x2c,0x30,0x78,0x39,0x44,0x42,0x43,0x41, + 0x33,0x31,0x46,0x31,0x46,0x39,0x44,0x33,0x45,0x42,0x43,0x55,0x4c,0x2c,0x30,0x78,0x34,0x30,0x43,0x30,0x34,0x39,0x38,0x39,0x38,0x39,0x34,0x30,0x30,0x39,0x43,0x30, + 0x55,0x4c,0x2c,0x30,0x78,0x38,0x37,0x39,0x32,0x36,0x38,0x46,0x41,0x46,0x41,0x38,0x37,0x45,0x46,0x39,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x31,0x35,0x33,0x46,0x44, + 0x30,0x45,0x46,0x45,0x46,0x31,0x35,0x43,0x35,0x33,0x46,0x55,0x4c,0x2c,0x30,0x78,0x45,0x42,0x32,0x36,0x39,0x34,0x42,0x32,0x42,0x32,0x45,0x42,0x37,0x46,0x32,0x36, + 0x55,0x4c,0x2c,0x30,0x78,0x43,0x39,0x34,0x30,0x43,0x45,0x38,0x45,0x38,0x45,0x43,0x39,0x30,0x37,0x34,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x42,0x31,0x44,0x45,0x36, + 0x46,0x42,0x46,0x42,0x30,0x42,0x45,0x44,0x31,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x45,0x43,0x32,0x46,0x36,0x45,0x34,0x31,0x34,0x31,0x45,0x43,0x38,0x32,0x32,0x46, + 0x55,0x4c,0x2c,0x30,0x78,0x36,0x37,0x41,0x39,0x31,0x41,0x42,0x33,0x42,0x33,0x36,0x37,0x37,0x44,0x41,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x44,0x31,0x43,0x34,0x33, + 0x35,0x46,0x35,0x46,0x46,0x44,0x42,0x45,0x31,0x43,0x55,0x4c,0x2c,0x30,0x78,0x45,0x41,0x32,0x35,0x36,0x30,0x34,0x35,0x34,0x35,0x45,0x41,0x38,0x41,0x32,0x35,0x55, + 0x4c,0x2c,0x0a,0x30,0x78,0x42,0x46,0x44,0x41,0x46,0x39,0x32,0x33,0x32,0x33,0x42,0x46,0x34,0x36,0x44,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x37,0x30,0x32,0x35,0x31, + 0x35,0x33,0x35,0x33,0x46,0x37,0x41,0x36,0x30,0x32,0x55,0x4c,0x2c,0x30,0x78,0x39,0x36,0x41,0x31,0x34,0x35,0x45,0x34,0x45,0x34,0x39,0x36,0x44,0x33,0x41,0x31,0x55, + 0x4c,0x2c,0x30,0x78,0x35,0x42,0x45,0x44,0x37,0x36,0x39,0x42,0x39,0x42,0x35,0x42,0x32,0x44,0x45,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x32,0x35,0x44,0x32,0x38, + 0x37,0x35,0x37,0x35,0x43,0x32,0x45,0x41,0x35,0x44,0x55,0x4c,0x2c,0x30,0x78,0x31,0x43,0x32,0x34,0x43,0x35,0x45,0x31,0x45,0x31,0x31,0x43,0x44,0x39,0x32,0x34,0x55, + 0x4c,0x2c,0x30,0x78,0x41,0x45,0x45,0x39,0x44,0x34,0x33,0x44,0x33,0x44,0x41,0x45,0x37,0x41,0x45,0x39,0x55,0x4c,0x2c,0x30,0x78,0x36,0x41,0x42,0x45,0x46,0x32,0x34, + 0x43,0x34,0x43,0x36,0x41,0x39,0x38,0x42,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x41,0x45,0x45,0x38,0x32,0x36,0x43,0x36,0x43,0x35,0x41,0x44,0x38,0x45,0x45,0x55, + 0x4c,0x2c,0x30,0x78,0x34,0x31,0x43,0x33,0x42,0x44,0x37,0x45,0x37,0x45,0x34,0x31,0x46,0x43,0x43,0x33,0x55,0x4c,0x2c,0x30,0x78,0x30,0x32,0x30,0x36,0x46,0x33,0x46, + 0x35,0x46,0x35,0x30,0x32,0x46,0x31,0x30,0x36,0x55,0x4c,0x2c,0x30,0x78,0x34,0x46,0x44,0x31,0x35,0x32,0x38,0x33,0x38,0x33,0x34,0x46,0x31,0x44,0x44,0x31,0x55,0x4c, + 0x2c,0x0a,0x30,0x78,0x35,0x43,0x45,0x34,0x38,0x43,0x36,0x38,0x36,0x38,0x35,0x43,0x44,0x30,0x45,0x34,0x55,0x4c,0x2c,0x30,0x78,0x46,0x34,0x30,0x37,0x35,0x36,0x35, + 0x31,0x35,0x31,0x46,0x34,0x41,0x32,0x30,0x37,0x55,0x4c,0x2c,0x30,0x78,0x33,0x34,0x35,0x43,0x38,0x44,0x44,0x31,0x44,0x31,0x33,0x34,0x42,0x39,0x35,0x43,0x55,0x4c, + 0x2c,0x30,0x78,0x30,0x38,0x31,0x38,0x45,0x31,0x46,0x39,0x46,0x39,0x30,0x38,0x45,0x39,0x31,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x33,0x41,0x45,0x34,0x43,0x45, + 0x32,0x45,0x32,0x39,0x33,0x44,0x46,0x41,0x45,0x55,0x4c,0x2c,0x30,0x78,0x37,0x33,0x39,0x35,0x33,0x45,0x41,0x42,0x41,0x42,0x37,0x33,0x34,0x44,0x39,0x35,0x55,0x4c, + 0x2c,0x30,0x78,0x35,0x33,0x46,0x35,0x39,0x37,0x36,0x32,0x36,0x32,0x35,0x33,0x43,0x34,0x46,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x46,0x34,0x31,0x36,0x42,0x32,0x41, + 0x32,0x41,0x33,0x46,0x35,0x34,0x34,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x43,0x31,0x34,0x31,0x43,0x30,0x38,0x30,0x38,0x30,0x43,0x31,0x30,0x31,0x34,0x55,0x4c, + 0x2c,0x30,0x78,0x35,0x32,0x46,0x36,0x36,0x33,0x39,0x35,0x39,0x35,0x35,0x32,0x33,0x31,0x46,0x36,0x55,0x4c,0x2c,0x30,0x78,0x36,0x35,0x41,0x46,0x45,0x39,0x34,0x36, + 0x34,0x36,0x36,0x35,0x38,0x43,0x41,0x46,0x55,0x4c,0x2c,0x30,0x78,0x35,0x45,0x45,0x32,0x37,0x46,0x39,0x44,0x39,0x44,0x35,0x45,0x32,0x31,0x45,0x32,0x55,0x4c,0x2c, + 0x0a,0x30,0x78,0x32,0x38,0x37,0x38,0x34,0x38,0x33,0x30,0x33,0x30,0x32,0x38,0x36,0x30,0x37,0x38,0x55,0x4c,0x2c,0x30,0x78,0x41,0x31,0x46,0x38,0x43,0x46,0x33,0x37, + 0x33,0x37,0x41,0x31,0x36,0x45,0x46,0x38,0x55,0x4c,0x2c,0x30,0x78,0x30,0x46,0x31,0x31,0x31,0x42,0x30,0x41,0x30,0x41,0x30,0x46,0x31,0x34,0x31,0x31,0x55,0x4c,0x2c, + 0x30,0x78,0x42,0x35,0x43,0x34,0x45,0x42,0x32,0x46,0x32,0x46,0x42,0x35,0x35,0x45,0x43,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x30,0x39,0x31,0x42,0x31,0x35,0x30,0x45, + 0x30,0x45,0x30,0x39,0x31,0x43,0x31,0x42,0x55,0x4c,0x2c,0x30,0x78,0x33,0x36,0x35,0x41,0x37,0x45,0x32,0x34,0x32,0x34,0x33,0x36,0x34,0x38,0x35,0x41,0x55,0x4c,0x2c, + 0x30,0x78,0x39,0x42,0x42,0x36,0x41,0x44,0x31,0x42,0x31,0x42,0x39,0x42,0x33,0x36,0x42,0x36,0x55,0x4c,0x2c,0x30,0x78,0x33,0x44,0x34,0x37,0x39,0x38,0x44,0x46,0x44, + 0x46,0x33,0x44,0x41,0x35,0x34,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x36,0x36,0x41,0x41,0x37,0x43,0x44,0x43,0x44,0x32,0x36,0x38,0x31,0x36,0x41,0x55,0x4c,0x2c, + 0x30,0x78,0x36,0x39,0x42,0x42,0x46,0x35,0x34,0x45,0x34,0x45,0x36,0x39,0x39,0x43,0x42,0x42,0x55,0x4c,0x2c,0x30,0x78,0x43,0x44,0x34,0x43,0x33,0x33,0x37,0x46,0x37, + 0x46,0x43,0x44,0x46,0x45,0x34,0x43,0x55,0x4c,0x2c,0x30,0x78,0x39,0x46,0x42,0x41,0x35,0x30,0x45,0x41,0x45,0x41,0x39,0x46,0x43,0x46,0x42,0x41,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x31,0x42,0x32,0x44,0x33,0x46,0x31,0x32,0x31,0x32,0x31,0x42,0x32,0x34,0x32,0x44,0x55,0x4c,0x2c,0x30,0x78,0x39,0x45,0x42,0x39,0x41,0x34,0x31,0x44,0x31, + 0x44,0x39,0x45,0x33,0x41,0x42,0x39,0x55,0x4c,0x2c,0x30,0x78,0x37,0x34,0x39,0x43,0x43,0x34,0x35,0x38,0x35,0x38,0x37,0x34,0x42,0x30,0x39,0x43,0x55,0x4c,0x2c,0x30, + 0x78,0x32,0x45,0x37,0x32,0x34,0x36,0x33,0x34,0x33,0x34,0x32,0x45,0x36,0x38,0x37,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x44,0x37,0x37,0x34,0x31,0x33,0x36,0x33, + 0x36,0x32,0x44,0x36,0x43,0x37,0x37,0x55,0x4c,0x2c,0x30,0x78,0x42,0x32,0x43,0x44,0x31,0x31,0x44,0x43,0x44,0x43,0x42,0x32,0x41,0x33,0x43,0x44,0x55,0x4c,0x2c,0x30, + 0x78,0x45,0x45,0x32,0x39,0x39,0x44,0x42,0x34,0x42,0x34,0x45,0x45,0x37,0x33,0x32,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x42,0x31,0x36,0x34,0x44,0x35,0x42,0x35,0x42, + 0x46,0x42,0x42,0x36,0x31,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x36,0x30,0x31,0x41,0x35,0x41,0x34,0x41,0x34,0x46,0x36,0x35,0x33,0x30,0x31,0x55,0x4c,0x2c,0x30, + 0x78,0x34,0x44,0x44,0x37,0x41,0x31,0x37,0x36,0x37,0x36,0x34,0x44,0x45,0x43,0x44,0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x31,0x41,0x33,0x31,0x34,0x42,0x37,0x42,0x37, + 0x36,0x31,0x37,0x35,0x41,0x33,0x55,0x4c,0x2c,0x30,0x78,0x43,0x45,0x34,0x39,0x33,0x34,0x37,0x44,0x37,0x44,0x43,0x45,0x46,0x41,0x34,0x39,0x55,0x4c,0x2c,0x0a,0x30, + 0x78,0x37,0x42,0x38,0x44,0x44,0x46,0x35,0x32,0x35,0x32,0x37,0x42,0x41,0x34,0x38,0x44,0x55,0x4c,0x2c,0x30,0x78,0x33,0x45,0x34,0x32,0x39,0x46,0x44,0x44,0x44,0x44, + 0x33,0x45,0x41,0x31,0x34,0x32,0x55,0x4c,0x2c,0x30,0x78,0x37,0x31,0x39,0x33,0x43,0x44,0x35,0x45,0x35,0x45,0x37,0x31,0x42,0x43,0x39,0x33,0x55,0x4c,0x2c,0x30,0x78, + 0x39,0x37,0x41,0x32,0x42,0x31,0x31,0x33,0x31,0x33,0x39,0x37,0x32,0x36,0x41,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x35,0x30,0x34,0x41,0x32,0x41,0x36,0x41,0x36, + 0x46,0x35,0x35,0x37,0x30,0x34,0x55,0x4c,0x2c,0x30,0x78,0x36,0x38,0x42,0x38,0x30,0x31,0x42,0x39,0x42,0x39,0x36,0x38,0x36,0x39,0x42,0x38,0x55,0x4c,0x2c,0x30,0x78, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x32,0x43,0x37,0x34,0x42,0x35,0x43,0x31,0x43,0x31,0x32, + 0x43,0x39,0x39,0x37,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x30,0x41,0x30,0x45,0x30,0x34,0x30,0x34,0x30,0x36,0x30,0x38,0x30,0x41,0x30,0x55,0x4c,0x2c,0x30,0x78, + 0x31,0x46,0x32,0x31,0x43,0x32,0x45,0x33,0x45,0x33,0x31,0x46,0x44,0x44,0x32,0x31,0x55,0x4c,0x2c,0x30,0x78,0x43,0x38,0x34,0x33,0x33,0x41,0x37,0x39,0x37,0x39,0x43, + 0x38,0x46,0x32,0x34,0x33,0x55,0x4c,0x2c,0x30,0x78,0x45,0x44,0x32,0x43,0x39,0x41,0x42,0x36,0x42,0x36,0x45,0x44,0x37,0x37,0x32,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78, + 0x42,0x45,0x44,0x39,0x30,0x44,0x44,0x34,0x44,0x34,0x42,0x45,0x42,0x33,0x44,0x39,0x55,0x4c,0x2c,0x30,0x78,0x34,0x36,0x43,0x41,0x34,0x37,0x38,0x44,0x38,0x44,0x34, + 0x36,0x30,0x31,0x43,0x41,0x55,0x4c,0x2c,0x30,0x78,0x44,0x39,0x37,0x30,0x31,0x37,0x36,0x37,0x36,0x37,0x44,0x39,0x43,0x45,0x37,0x30,0x55,0x4c,0x2c,0x30,0x78,0x34, + 0x42,0x44,0x44,0x41,0x46,0x37,0x32,0x37,0x32,0x34,0x42,0x45,0x34,0x44,0x44,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x45,0x37,0x39,0x45,0x44,0x39,0x34,0x39,0x34,0x44, + 0x45,0x33,0x33,0x37,0x39,0x55,0x4c,0x2c,0x30,0x78,0x44,0x34,0x36,0x37,0x46,0x46,0x39,0x38,0x39,0x38,0x44,0x34,0x32,0x42,0x36,0x37,0x55,0x4c,0x2c,0x30,0x78,0x45, + 0x38,0x32,0x33,0x39,0x33,0x42,0x30,0x42,0x30,0x45,0x38,0x37,0x42,0x32,0x33,0x55,0x4c,0x2c,0x30,0x78,0x34,0x41,0x44,0x45,0x35,0x42,0x38,0x35,0x38,0x35,0x34,0x41, + 0x31,0x31,0x44,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x42,0x42,0x44,0x30,0x36,0x42,0x42,0x42,0x42,0x36,0x42,0x36,0x44,0x42,0x44,0x55,0x4c,0x2c,0x30,0x78,0x32, + 0x41,0x37,0x45,0x42,0x42,0x43,0x35,0x43,0x35,0x32,0x41,0x39,0x31,0x37,0x45,0x55,0x4c,0x2c,0x30,0x78,0x45,0x35,0x33,0x34,0x37,0x42,0x34,0x46,0x34,0x46,0x45,0x35, + 0x39,0x45,0x33,0x34,0x55,0x4c,0x2c,0x30,0x78,0x31,0x36,0x33,0x41,0x44,0x37,0x45,0x44,0x45,0x44,0x31,0x36,0x43,0x31,0x33,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43, + 0x35,0x35,0x34,0x44,0x32,0x38,0x36,0x38,0x36,0x43,0x35,0x31,0x37,0x35,0x34,0x55,0x4c,0x2c,0x30,0x78,0x44,0x37,0x36,0x32,0x46,0x38,0x39,0x41,0x39,0x41,0x44,0x37, + 0x32,0x46,0x36,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35,0x35,0x46,0x46,0x39,0x39,0x36,0x36,0x36,0x36,0x35,0x35,0x43,0x43,0x46,0x46,0x55,0x4c,0x2c,0x30,0x78,0x39,0x34, + 0x41,0x37,0x42,0x36,0x31,0x31,0x31,0x31,0x39,0x34,0x32,0x32,0x41,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x46,0x34,0x41,0x43,0x30,0x38,0x41,0x38,0x41,0x43,0x46, + 0x30,0x46,0x34,0x41,0x55,0x4c,0x2c,0x30,0x78,0x31,0x30,0x33,0x30,0x44,0x39,0x45,0x39,0x45,0x39,0x31,0x30,0x43,0x39,0x33,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x36, + 0x30,0x41,0x30,0x45,0x30,0x34,0x30,0x34,0x30,0x36,0x30,0x38,0x30,0x41,0x55,0x4c,0x2c,0x30,0x78,0x38,0x31,0x39,0x38,0x36,0x36,0x46,0x45,0x46,0x45,0x38,0x31,0x45, + 0x37,0x39,0x38,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x30,0x30,0x42,0x41,0x42,0x41,0x30,0x41,0x30,0x46,0x30,0x35,0x42,0x30,0x42,0x55,0x4c,0x2c,0x30,0x78,0x34,0x34, + 0x43,0x43,0x42,0x34,0x37,0x38,0x37,0x38,0x34,0x34,0x46,0x30,0x43,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x41,0x44,0x35,0x46,0x30,0x32,0x35,0x32,0x35,0x42,0x41,0x34, + 0x41,0x44,0x35,0x55,0x4c,0x2c,0x30,0x78,0x45,0x33,0x33,0x45,0x37,0x35,0x34,0x42,0x34,0x42,0x45,0x33,0x39,0x36,0x33,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x46,0x33, + 0x30,0x45,0x41,0x43,0x41,0x32,0x41,0x32,0x46,0x33,0x35,0x46,0x30,0x45,0x55,0x4c,0x2c,0x30,0x78,0x46,0x45,0x31,0x39,0x34,0x34,0x35,0x44,0x35,0x44,0x46,0x45,0x42, + 0x41,0x31,0x39,0x55,0x4c,0x2c,0x30,0x78,0x43,0x30,0x35,0x42,0x44,0x42,0x38,0x30,0x38,0x30,0x43,0x30,0x31,0x42,0x35,0x42,0x55,0x4c,0x2c,0x30,0x78,0x38,0x41,0x38, + 0x35,0x38,0x30,0x30,0x35,0x30,0x35,0x38,0x41,0x30,0x41,0x38,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x44,0x45,0x43,0x44,0x33,0x33,0x46,0x33,0x46,0x41,0x44,0x37, + 0x45,0x45,0x43,0x55,0x4c,0x2c,0x30,0x78,0x42,0x43,0x44,0x46,0x46,0x45,0x32,0x31,0x32,0x31,0x42,0x43,0x34,0x32,0x44,0x46,0x55,0x4c,0x2c,0x30,0x78,0x34,0x38,0x44, + 0x38,0x41,0x38,0x37,0x30,0x37,0x30,0x34,0x38,0x45,0x30,0x44,0x38,0x55,0x4c,0x2c,0x30,0x78,0x30,0x34,0x30,0x43,0x46,0x44,0x46,0x31,0x46,0x31,0x30,0x34,0x46,0x39, + 0x30,0x43,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x46,0x37,0x41,0x31,0x39,0x36,0x33,0x36,0x33,0x44,0x46,0x43,0x36,0x37,0x41,0x55,0x4c,0x2c,0x30,0x78,0x43,0x31,0x35, + 0x38,0x32,0x46,0x37,0x37,0x37,0x37,0x43,0x31,0x45,0x45,0x35,0x38,0x55,0x4c,0x2c,0x30,0x78,0x37,0x35,0x39,0x46,0x33,0x30,0x41,0x46,0x41,0x46,0x37,0x35,0x34,0x35, + 0x39,0x46,0x55,0x4c,0x2c,0x30,0x78,0x36,0x33,0x41,0x35,0x45,0x37,0x34,0x32,0x34,0x32,0x36,0x33,0x38,0x34,0x41,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x30,0x35, + 0x30,0x37,0x30,0x32,0x30,0x32,0x30,0x33,0x30,0x34,0x30,0x35,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x41,0x32,0x45,0x43,0x42,0x45,0x35,0x45,0x35,0x31,0x41,0x44,0x31, + 0x32,0x45,0x55,0x4c,0x2c,0x30,0x78,0x30,0x45,0x31,0x32,0x45,0x46,0x46,0x44,0x46,0x44,0x30,0x45,0x45,0x31,0x31,0x32,0x55,0x4c,0x2c,0x30,0x78,0x36,0x44,0x42,0x37, + 0x30,0x38,0x42,0x46,0x42,0x46,0x36,0x44,0x36,0x35,0x42,0x37,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x43,0x44,0x34,0x35,0x35,0x38,0x31,0x38,0x31,0x34,0x43,0x31,0x39, + 0x44,0x34,0x55,0x4c,0x2c,0x30,0x78,0x31,0x34,0x33,0x43,0x32,0x34,0x31,0x38,0x31,0x38,0x31,0x34,0x33,0x30,0x33,0x43,0x55,0x4c,0x2c,0x30,0x78,0x33,0x35,0x35,0x46, + 0x37,0x39,0x32,0x36,0x32,0x36,0x33,0x35,0x34,0x43,0x35,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x46,0x37,0x31,0x42,0x32,0x43,0x33,0x43,0x33,0x32,0x46,0x39,0x44,0x37, + 0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x45,0x31,0x33,0x38,0x38,0x36,0x42,0x45,0x42,0x45,0x45,0x31,0x36,0x37,0x33,0x38,0x55,0x4c,0x2c,0x30,0x78,0x41,0x32,0x46,0x44, + 0x43,0x38,0x33,0x35,0x33,0x35,0x41,0x32,0x36,0x41,0x46,0x44,0x55,0x4c,0x2c,0x30,0x78,0x43,0x43,0x34,0x46,0x43,0x37,0x38,0x38,0x38,0x38,0x43,0x43,0x30,0x42,0x34, + 0x46,0x55,0x4c,0x2c,0x30,0x78,0x33,0x39,0x34,0x42,0x36,0x35,0x32,0x45,0x32,0x45,0x33,0x39,0x35,0x43,0x34,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x35,0x37,0x46,0x39, + 0x36,0x41,0x39,0x33,0x39,0x33,0x35,0x37,0x33,0x44,0x46,0x39,0x55,0x4c,0x2c,0x30,0x78,0x46,0x32,0x30,0x44,0x35,0x38,0x35,0x35,0x35,0x35,0x46,0x32,0x41,0x41,0x30, + 0x44,0x55,0x4c,0x2c,0x30,0x78,0x38,0x32,0x39,0x44,0x36,0x31,0x46,0x43,0x46,0x43,0x38,0x32,0x45,0x33,0x39,0x44,0x55,0x4c,0x2c,0x30,0x78,0x34,0x37,0x43,0x39,0x42, + 0x33,0x37,0x41,0x37,0x41,0x34,0x37,0x46,0x34,0x43,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x43,0x45,0x46,0x32,0x37,0x43,0x38,0x43,0x38,0x41,0x43,0x38,0x42,0x45, + 0x46,0x55,0x4c,0x2c,0x30,0x78,0x45,0x37,0x33,0x32,0x38,0x38,0x42,0x41,0x42,0x41,0x45,0x37,0x36,0x46,0x33,0x32,0x55,0x4c,0x2c,0x30,0x78,0x32,0x42,0x37,0x44,0x34, + 0x46,0x33,0x32,0x33,0x32,0x32,0x42,0x36,0x34,0x37,0x44,0x55,0x4c,0x2c,0x30,0x78,0x39,0x35,0x41,0x34,0x34,0x32,0x45,0x36,0x45,0x36,0x39,0x35,0x44,0x37,0x41,0x34, + 0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x30,0x46,0x42,0x33,0x42,0x43,0x30,0x43,0x30,0x41,0x30,0x39,0x42,0x46,0x42,0x55,0x4c,0x2c,0x30,0x78,0x39,0x38,0x42,0x33,0x41, + 0x41,0x31,0x39,0x31,0x39,0x39,0x38,0x33,0x32,0x42,0x33,0x55,0x4c,0x2c,0x30,0x78,0x44,0x31,0x36,0x38,0x46,0x36,0x39,0x45,0x39,0x45,0x44,0x31,0x32,0x37,0x36,0x38, + 0x55,0x4c,0x2c,0x30,0x78,0x37,0x46,0x38,0x31,0x32,0x32,0x41,0x33,0x41,0x33,0x37,0x46,0x35,0x44,0x38,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x36,0x36,0x41,0x41,0x45, + 0x45,0x34,0x34,0x34,0x34,0x36,0x36,0x38,0x38,0x41,0x41,0x55,0x4c,0x2c,0x30,0x78,0x37,0x45,0x38,0x32,0x44,0x36,0x35,0x34,0x35,0x34,0x37,0x45,0x41,0x38,0x38,0x32, + 0x55,0x4c,0x2c,0x30,0x78,0x41,0x42,0x45,0x36,0x44,0x44,0x33,0x42,0x33,0x42,0x41,0x42,0x37,0x36,0x45,0x36,0x55,0x4c,0x2c,0x30,0x78,0x38,0x33,0x39,0x45,0x39,0x35, + 0x30,0x42,0x30,0x42,0x38,0x33,0x31,0x36,0x39,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x41,0x34,0x35,0x43,0x39,0x38,0x43,0x38,0x43,0x43,0x41,0x30,0x33,0x34,0x35, + 0x55,0x4c,0x2c,0x30,0x78,0x32,0x39,0x37,0x42,0x42,0x43,0x43,0x37,0x43,0x37,0x32,0x39,0x39,0x35,0x37,0x42,0x55,0x4c,0x2c,0x30,0x78,0x44,0x33,0x36,0x45,0x30,0x35, + 0x36,0x42,0x36,0x42,0x44,0x33,0x44,0x36,0x36,0x45,0x55,0x4c,0x2c,0x30,0x78,0x33,0x43,0x34,0x34,0x36,0x43,0x32,0x38,0x32,0x38,0x33,0x43,0x35,0x30,0x34,0x34,0x55, + 0x4c,0x2c,0x0a,0x30,0x78,0x37,0x39,0x38,0x42,0x32,0x43,0x41,0x37,0x41,0x37,0x37,0x39,0x35,0x35,0x38,0x42,0x55,0x4c,0x2c,0x30,0x78,0x45,0x32,0x33,0x44,0x38,0x31, + 0x42,0x43,0x42,0x43,0x45,0x32,0x36,0x33,0x33,0x44,0x55,0x4c,0x2c,0x30,0x78,0x31,0x44,0x32,0x37,0x33,0x31,0x31,0x36,0x31,0x36,0x31,0x44,0x32,0x43,0x32,0x37,0x55, + 0x4c,0x2c,0x30,0x78,0x37,0x36,0x39,0x41,0x33,0x37,0x41,0x44,0x41,0x44,0x37,0x36,0x34,0x31,0x39,0x41,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x42,0x34,0x44,0x39,0x36, + 0x44,0x42,0x44,0x42,0x33,0x42,0x41,0x44,0x34,0x44,0x55,0x4c,0x2c,0x30,0x78,0x35,0x36,0x46,0x41,0x39,0x45,0x36,0x34,0x36,0x34,0x35,0x36,0x43,0x38,0x46,0x41,0x55, + 0x4c,0x2c,0x30,0x78,0x34,0x45,0x44,0x32,0x41,0x36,0x37,0x34,0x37,0x34,0x34,0x45,0x45,0x38,0x44,0x32,0x55,0x4c,0x2c,0x30,0x78,0x31,0x45,0x32,0x32,0x33,0x36,0x31, + 0x34,0x31,0x34,0x31,0x45,0x32,0x38,0x32,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x42,0x37,0x36,0x45,0x34,0x39,0x32,0x39,0x32,0x44,0x42,0x33,0x46,0x37,0x36,0x55, + 0x4c,0x2c,0x30,0x78,0x30,0x41,0x31,0x45,0x31,0x32,0x30,0x43,0x30,0x43,0x30,0x41,0x31,0x38,0x31,0x45,0x55,0x4c,0x2c,0x30,0x78,0x36,0x43,0x42,0x34,0x46,0x43,0x34, + 0x38,0x34,0x38,0x36,0x43,0x39,0x30,0x42,0x34,0x55,0x4c,0x2c,0x30,0x78,0x45,0x34,0x33,0x37,0x38,0x46,0x42,0x38,0x42,0x38,0x45,0x34,0x36,0x42,0x33,0x37,0x55,0x4c, + 0x2c,0x0a,0x30,0x78,0x35,0x44,0x45,0x37,0x37,0x38,0x39,0x46,0x39,0x46,0x35,0x44,0x32,0x35,0x45,0x37,0x55,0x4c,0x2c,0x30,0x78,0x36,0x45,0x42,0x32,0x30,0x46,0x42, + 0x44,0x42,0x44,0x36,0x45,0x36,0x31,0x42,0x32,0x55,0x4c,0x2c,0x30,0x78,0x45,0x46,0x32,0x41,0x36,0x39,0x34,0x33,0x34,0x33,0x45,0x46,0x38,0x36,0x32,0x41,0x55,0x4c, + 0x2c,0x30,0x78,0x41,0x36,0x46,0x31,0x33,0x35,0x43,0x34,0x43,0x34,0x41,0x36,0x39,0x33,0x46,0x31,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x38,0x45,0x33,0x44,0x41,0x33, + 0x39,0x33,0x39,0x41,0x38,0x37,0x32,0x45,0x33,0x55,0x4c,0x2c,0x30,0x78,0x41,0x34,0x46,0x37,0x43,0x36,0x33,0x31,0x33,0x31,0x41,0x34,0x36,0x32,0x46,0x37,0x55,0x4c, + 0x2c,0x30,0x78,0x33,0x37,0x35,0x39,0x38,0x41,0x44,0x33,0x44,0x33,0x33,0x37,0x42,0x44,0x35,0x39,0x55,0x4c,0x2c,0x30,0x78,0x38,0x42,0x38,0x36,0x37,0x34,0x46,0x32, + 0x46,0x32,0x38,0x42,0x46,0x46,0x38,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x32,0x35,0x36,0x38,0x33,0x44,0x35,0x44,0x35,0x33,0x32,0x42,0x31,0x35,0x36,0x55,0x4c, + 0x2c,0x30,0x78,0x34,0x33,0x43,0x35,0x34,0x45,0x38,0x42,0x38,0x42,0x34,0x33,0x30,0x44,0x43,0x35,0x55,0x4c,0x2c,0x30,0x78,0x35,0x39,0x45,0x42,0x38,0x35,0x36,0x45, + 0x36,0x45,0x35,0x39,0x44,0x43,0x45,0x42,0x55,0x4c,0x2c,0x30,0x78,0x42,0x37,0x43,0x32,0x31,0x38,0x44,0x41,0x44,0x41,0x42,0x37,0x41,0x46,0x43,0x32,0x55,0x4c,0x2c, + 0x0a,0x30,0x78,0x38,0x43,0x38,0x46,0x38,0x45,0x30,0x31,0x30,0x31,0x38,0x43,0x30,0x32,0x38,0x46,0x55,0x4c,0x2c,0x30,0x78,0x36,0x34,0x41,0x43,0x31,0x44,0x42,0x31, + 0x42,0x31,0x36,0x34,0x37,0x39,0x41,0x43,0x55,0x4c,0x2c,0x30,0x78,0x44,0x32,0x36,0x44,0x46,0x31,0x39,0x43,0x39,0x43,0x44,0x32,0x32,0x33,0x36,0x44,0x55,0x4c,0x2c, + 0x30,0x78,0x45,0x30,0x33,0x42,0x37,0x32,0x34,0x39,0x34,0x39,0x45,0x30,0x39,0x32,0x33,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x34,0x43,0x37,0x31,0x46,0x44,0x38, + 0x44,0x38,0x42,0x34,0x41,0x42,0x43,0x37,0x55,0x4c,0x2c,0x30,0x78,0x46,0x41,0x31,0x35,0x42,0x39,0x41,0x43,0x41,0x43,0x46,0x41,0x34,0x33,0x31,0x35,0x55,0x4c,0x2c, + 0x30,0x78,0x30,0x37,0x30,0x39,0x46,0x41,0x46,0x33,0x46,0x33,0x30,0x37,0x46,0x44,0x30,0x39,0x55,0x4c,0x2c,0x30,0x78,0x32,0x35,0x36,0x46,0x41,0x30,0x43,0x46,0x43, + 0x46,0x32,0x35,0x38,0x35,0x36,0x46,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x41,0x46,0x45,0x41,0x32,0x30,0x43,0x41,0x43,0x41,0x41,0x46,0x38,0x46,0x45,0x41,0x55,0x4c,0x2c, + 0x30,0x78,0x38,0x45,0x38,0x39,0x37,0x44,0x46,0x34,0x46,0x34,0x38,0x45,0x46,0x33,0x38,0x39,0x55,0x4c,0x2c,0x30,0x78,0x45,0x39,0x32,0x30,0x36,0x37,0x34,0x37,0x34, + 0x37,0x45,0x39,0x38,0x45,0x32,0x30,0x55,0x4c,0x2c,0x30,0x78,0x31,0x38,0x32,0x38,0x33,0x38,0x31,0x30,0x31,0x30,0x31,0x38,0x32,0x30,0x32,0x38,0x55,0x4c,0x2c,0x0a, + 0x30,0x78,0x44,0x35,0x36,0x34,0x30,0x42,0x36,0x46,0x36,0x46,0x44,0x35,0x44,0x45,0x36,0x34,0x55,0x4c,0x2c,0x30,0x78,0x38,0x38,0x38,0x33,0x37,0x33,0x46,0x30,0x46, + 0x30,0x38,0x38,0x46,0x42,0x38,0x33,0x55,0x4c,0x2c,0x30,0x78,0x36,0x46,0x42,0x31,0x46,0x42,0x34,0x41,0x34,0x41,0x36,0x46,0x39,0x34,0x42,0x31,0x55,0x4c,0x2c,0x30, + 0x78,0x37,0x32,0x39,0x36,0x43,0x41,0x35,0x43,0x35,0x43,0x37,0x32,0x42,0x38,0x39,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x34,0x36,0x43,0x35,0x34,0x33,0x38,0x33, + 0x38,0x32,0x34,0x37,0x30,0x36,0x43,0x55,0x4c,0x2c,0x30,0x78,0x46,0x31,0x30,0x38,0x35,0x46,0x35,0x37,0x35,0x37,0x46,0x31,0x41,0x45,0x30,0x38,0x55,0x4c,0x2c,0x30, + 0x78,0x43,0x37,0x35,0x32,0x32,0x31,0x37,0x33,0x37,0x33,0x43,0x37,0x45,0x36,0x35,0x32,0x55,0x4c,0x2c,0x30,0x78,0x35,0x31,0x46,0x33,0x36,0x34,0x39,0x37,0x39,0x37, + 0x35,0x31,0x33,0x35,0x46,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x32,0x33,0x36,0x35,0x41,0x45,0x43,0x42,0x43,0x42,0x32,0x33,0x38,0x44,0x36,0x35,0x55,0x4c,0x2c,0x30, + 0x78,0x37,0x43,0x38,0x34,0x32,0x35,0x41,0x31,0x41,0x31,0x37,0x43,0x35,0x39,0x38,0x34,0x55,0x4c,0x2c,0x30,0x78,0x39,0x43,0x42,0x46,0x35,0x37,0x45,0x38,0x45,0x38, + 0x39,0x43,0x43,0x42,0x42,0x46,0x55,0x4c,0x2c,0x30,0x78,0x32,0x31,0x36,0x33,0x35,0x44,0x33,0x45,0x33,0x45,0x32,0x31,0x37,0x43,0x36,0x33,0x55,0x4c,0x2c,0x0a,0x30, + 0x78,0x44,0x44,0x37,0x43,0x45,0x41,0x39,0x36,0x39,0x36,0x44,0x44,0x33,0x37,0x37,0x43,0x55,0x4c,0x2c,0x30,0x78,0x44,0x43,0x37,0x46,0x31,0x45,0x36,0x31,0x36,0x31, + 0x44,0x43,0x43,0x32,0x37,0x46,0x55,0x4c,0x2c,0x30,0x78,0x38,0x36,0x39,0x31,0x39,0x43,0x30,0x44,0x30,0x44,0x38,0x36,0x31,0x41,0x39,0x31,0x55,0x4c,0x2c,0x30,0x78, + 0x38,0x35,0x39,0x34,0x39,0x42,0x30,0x46,0x30,0x46,0x38,0x35,0x31,0x45,0x39,0x34,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x30,0x41,0x42,0x34,0x42,0x45,0x30,0x45,0x30, + 0x39,0x30,0x44,0x42,0x41,0x42,0x55,0x4c,0x2c,0x30,0x78,0x34,0x32,0x43,0x36,0x42,0x41,0x37,0x43,0x37,0x43,0x34,0x32,0x46,0x38,0x43,0x36,0x55,0x4c,0x2c,0x30,0x78, + 0x43,0x34,0x35,0x37,0x32,0x36,0x37,0x31,0x37,0x31,0x43,0x34,0x45,0x32,0x35,0x37,0x55,0x4c,0x2c,0x30,0x78,0x41,0x41,0x45,0x35,0x32,0x39,0x43,0x43,0x43,0x43,0x41, + 0x41,0x38,0x33,0x45,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x38,0x37,0x33,0x45,0x33,0x39,0x30,0x39,0x30,0x44,0x38,0x33,0x42,0x37,0x33,0x55,0x4c,0x2c,0x30,0x78, + 0x30,0x35,0x30,0x46,0x30,0x39,0x30,0x36,0x30,0x36,0x30,0x35,0x30,0x43,0x30,0x46,0x55,0x4c,0x2c,0x30,0x78,0x30,0x31,0x30,0x33,0x46,0x34,0x46,0x37,0x46,0x37,0x30, + 0x31,0x46,0x35,0x30,0x33,0x55,0x4c,0x2c,0x30,0x78,0x31,0x32,0x33,0x36,0x32,0x41,0x31,0x43,0x31,0x43,0x31,0x32,0x33,0x38,0x33,0x36,0x55,0x4c,0x2c,0x0a,0x30,0x78, + 0x41,0x33,0x46,0x45,0x33,0x43,0x43,0x32,0x43,0x32,0x41,0x33,0x39,0x46,0x46,0x45,0x55,0x4c,0x2c,0x30,0x78,0x35,0x46,0x45,0x31,0x38,0x42,0x36,0x41,0x36,0x41,0x35, + 0x46,0x44,0x34,0x45,0x31,0x55,0x4c,0x2c,0x30,0x78,0x46,0x39,0x31,0x30,0x42,0x45,0x41,0x45,0x41,0x45,0x46,0x39,0x34,0x37,0x31,0x30,0x55,0x4c,0x2c,0x30,0x78,0x44, + 0x30,0x36,0x42,0x30,0x32,0x36,0x39,0x36,0x39,0x44,0x30,0x44,0x32,0x36,0x42,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x39,0x31,0x41,0x38,0x42,0x46,0x31,0x37,0x31,0x37,0x39, + 0x31,0x32,0x45,0x41,0x38,0x55,0x4c,0x2c,0x30,0x78,0x35,0x38,0x45,0x38,0x37,0x31,0x39,0x39,0x39,0x39,0x35,0x38,0x32,0x39,0x45,0x38,0x55,0x4c,0x2c,0x30,0x78,0x32, + 0x37,0x36,0x39,0x35,0x33,0x33,0x41,0x33,0x41,0x32,0x37,0x37,0x34,0x36,0x39,0x55,0x4c,0x2c,0x30,0x78,0x42,0x39,0x44,0x30,0x46,0x37,0x32,0x37,0x32,0x37,0x42,0x39, + 0x34,0x45,0x44,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x33,0x38,0x34,0x38,0x39,0x31,0x44,0x39,0x44,0x39,0x33,0x38,0x41,0x39,0x34,0x38,0x55,0x4c,0x2c,0x30,0x78,0x31, + 0x33,0x33,0x35,0x44,0x45,0x45,0x42,0x45,0x42,0x31,0x33,0x43,0x44,0x33,0x35,0x55,0x4c,0x2c,0x30,0x78,0x42,0x33,0x43,0x45,0x45,0x35,0x32,0x42,0x32,0x42,0x42,0x33, + 0x35,0x36,0x43,0x45,0x55,0x4c,0x2c,0x30,0x78,0x33,0x33,0x35,0x35,0x37,0x37,0x32,0x32,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42, + 0x42,0x44,0x36,0x30,0x34,0x44,0x32,0x44,0x32,0x42,0x42,0x42,0x46,0x44,0x36,0x55,0x4c,0x2c,0x30,0x78,0x37,0x30,0x39,0x30,0x33,0x39,0x41,0x39,0x41,0x39,0x37,0x30, + 0x34,0x39,0x39,0x30,0x55,0x4c,0x2c,0x30,0x78,0x38,0x39,0x38,0x30,0x38,0x37,0x30,0x37,0x30,0x37,0x38,0x39,0x30,0x45,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x41,0x37, + 0x46,0x32,0x43,0x31,0x33,0x33,0x33,0x33,0x41,0x37,0x36,0x36,0x46,0x32,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x42,0x36,0x43,0x31,0x45,0x43,0x32,0x44,0x32,0x44,0x42,0x36, + 0x35,0x41,0x43,0x31,0x55,0x4c,0x2c,0x30,0x78,0x32,0x32,0x36,0x36,0x35,0x41,0x33,0x43,0x33,0x43,0x32,0x32,0x37,0x38,0x36,0x36,0x55,0x4c,0x2c,0x30,0x78,0x39,0x32, + 0x41,0x44,0x42,0x38,0x31,0x35,0x31,0x35,0x39,0x32,0x32,0x41,0x41,0x44,0x55,0x4c,0x2c,0x30,0x78,0x32,0x30,0x36,0x30,0x41,0x39,0x43,0x39,0x43,0x39,0x32,0x30,0x38, + 0x39,0x36,0x30,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x34,0x39,0x44,0x42,0x35,0x43,0x38,0x37,0x38,0x37,0x34,0x39,0x31,0x35,0x44,0x42,0x55,0x4c,0x2c,0x30,0x78,0x46,0x46, + 0x31,0x41,0x42,0x30,0x41,0x41,0x41,0x41,0x46,0x46,0x34,0x46,0x31,0x41,0x55,0x4c,0x2c,0x30,0x78,0x37,0x38,0x38,0x38,0x44,0x38,0x35,0x30,0x35,0x30,0x37,0x38,0x41, + 0x30,0x38,0x38,0x55,0x4c,0x2c,0x30,0x78,0x37,0x41,0x38,0x45,0x32,0x42,0x41,0x35,0x41,0x35,0x37,0x41,0x35,0x31,0x38,0x45,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x38,0x46, + 0x38,0x41,0x38,0x39,0x30,0x33,0x30,0x33,0x38,0x46,0x30,0x36,0x38,0x41,0x55,0x4c,0x2c,0x30,0x78,0x46,0x38,0x31,0x33,0x34,0x41,0x35,0x39,0x35,0x39,0x46,0x38,0x42, + 0x32,0x31,0x33,0x55,0x4c,0x2c,0x30,0x78,0x38,0x30,0x39,0x42,0x39,0x32,0x30,0x39,0x30,0x39,0x38,0x30,0x31,0x32,0x39,0x42,0x55,0x4c,0x2c,0x30,0x78,0x31,0x37,0x33, + 0x39,0x32,0x33,0x31,0x41,0x31,0x41,0x31,0x37,0x33,0x34,0x33,0x39,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x44,0x41,0x37,0x35,0x31,0x30,0x36,0x35,0x36,0x35,0x44,0x41,0x43, + 0x41,0x37,0x35,0x55,0x4c,0x2c,0x30,0x78,0x33,0x31,0x35,0x33,0x38,0x34,0x44,0x37,0x44,0x37,0x33,0x31,0x42,0x35,0x35,0x33,0x55,0x4c,0x2c,0x30,0x78,0x43,0x36,0x35, + 0x31,0x44,0x35,0x38,0x34,0x38,0x34,0x43,0x36,0x31,0x33,0x35,0x31,0x55,0x4c,0x2c,0x30,0x78,0x42,0x38,0x44,0x33,0x30,0x33,0x44,0x30,0x44,0x30,0x42,0x38,0x42,0x42, + 0x44,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x33,0x35,0x45,0x44,0x43,0x38,0x32,0x38,0x32,0x43,0x33,0x31,0x46,0x35,0x45,0x55,0x4c,0x2c,0x30,0x78,0x42,0x30,0x43, + 0x42,0x45,0x32,0x32,0x39,0x32,0x39,0x42,0x30,0x35,0x32,0x43,0x42,0x55,0x4c,0x2c,0x30,0x78,0x37,0x37,0x39,0x39,0x43,0x33,0x35,0x41,0x35,0x41,0x37,0x37,0x42,0x34, + 0x39,0x39,0x55,0x4c,0x2c,0x30,0x78,0x31,0x31,0x33,0x33,0x32,0x44,0x31,0x45,0x31,0x45,0x31,0x31,0x33,0x43,0x33,0x33,0x55,0x4c,0x2c,0x0a,0x30,0x78,0x43,0x42,0x34, + 0x36,0x33,0x44,0x37,0x42,0x37,0x42,0x43,0x42,0x46,0x36,0x34,0x36,0x55,0x4c,0x2c,0x30,0x78,0x46,0x43,0x31,0x46,0x42,0x37,0x41,0x38,0x41,0x38,0x46,0x43,0x34,0x42, + 0x31,0x46,0x55,0x4c,0x2c,0x30,0x78,0x44,0x36,0x36,0x31,0x30,0x43,0x36,0x44,0x36,0x44,0x44,0x36,0x44,0x41,0x36,0x31,0x55,0x4c,0x2c,0x30,0x78,0x33,0x41,0x34,0x45, + 0x36,0x32,0x32,0x43,0x32,0x43,0x33,0x41,0x35,0x38,0x34,0x45,0x55,0x4c,0x0a,0x7d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x53,0x54,0x54,0x28,0x64, + 0x2c,0x20,0x61,0x2c,0x20,0x62,0x30,0x2c,0x20,0x62,0x31,0x2c,0x20,0x62,0x32,0x2c,0x20,0x62,0x33,0x2c,0x20,0x62,0x34,0x2c,0x20,0x62,0x35,0x2c,0x20,0x62,0x36,0x2c, + 0x20,0x62,0x37,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x74,0x5b,0x64,0x5d,0x3d,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x30,0x28,0x61,0x5b,0x62,0x30, + 0x5d,0x29,0x5d,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x31,0x28,0x61,0x5b,0x62,0x31,0x5d,0x29,0x5d,0x2c,0x38, + 0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x32,0x28,0x61,0x5b,0x62,0x32,0x5d,0x29,0x5d,0x2c,0x31,0x36,0x29, + 0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x30,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x33,0x28,0x61,0x5b,0x62,0x33,0x5d,0x29,0x5d,0x2c,0x32,0x34,0x29,0x20, + 0x5c,0x0a,0x5e,0x20,0x54,0x34,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x34,0x28,0x61,0x5b,0x62,0x34,0x5d,0x29,0x5d,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54, + 0x34,0x5f,0x47,0x5b,0x42,0x36,0x34,0x5f,0x35,0x28,0x61,0x5b,0x62,0x35,0x5d,0x29,0x5d,0x2c,0x38,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x34,0x5f, + 0x47,0x5b,0x42,0x36,0x34,0x5f,0x36,0x28,0x61,0x5b,0x62,0x36,0x5d,0x29,0x5d,0x2c,0x31,0x36,0x29,0x20,0x5c,0x0a,0x5e,0x20,0x52,0x36,0x34,0x28,0x54,0x34,0x5f,0x47, + 0x5b,0x42,0x36,0x34,0x5f,0x37,0x28,0x61,0x5b,0x62,0x37,0x5d,0x29,0x5d,0x2c,0x32,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30, + 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x2c,0x20,0x72,0x29,0x20,0x64,0x6f, + 0x20,0x7b,0x20,0x5c,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x5b,0x38,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28, + 0x30,0x78,0x30,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x31,0x30,0x2c,0x72,0x29,0x3b, + 0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x32,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x20, + 0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x33,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28, + 0x30,0x78,0x34,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x30,0x2c,0x72,0x29,0x3b, + 0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x36,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x20, + 0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x37,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x30,0x2c,0x61,0x2c,0x30,0x2c,0x31,0x2c, + 0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x31,0x2c,0x61,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34, + 0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x32,0x2c,0x61,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c, + 0x37,0x2c,0x30,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x33,0x2c,0x61,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31, + 0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x34,0x2c,0x61,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x29, + 0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x35,0x2c,0x61,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x29,0x3b,0x20,0x5c, + 0x0a,0x52,0x53,0x54,0x54,0x28,0x36,0x2c,0x61,0x2c,0x36,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53, + 0x54,0x54,0x28,0x37,0x2c,0x61,0x2c,0x37,0x2c,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x3d, + 0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x32,0x5d,0x3b,0x20, + 0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x3d,0x74,0x5b,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x3d,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d, + 0x3d,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x3d,0x74,0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x3d,0x74,0x5b,0x37,0x5d,0x3b, + 0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41, + 0x4c,0x4c,0x5f,0x50,0x66,0x28,0x61,0x2c,0x72,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30, + 0x78,0x30,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x31,0x30,0x2c,0x72,0x29,0x3b,0x20, + 0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x32,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x20,0x5e, + 0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x33,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30, + 0x78,0x34,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x35,0x30,0x2c,0x72,0x29,0x3b,0x20, + 0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x36,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x20,0x5e, + 0x3d,0x20,0x50,0x43,0x36,0x34,0x28,0x30,0x78,0x37,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x37,0x2c,0x61,0x2c,0x37,0x2c,0x30,0x2c,0x31, + 0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d,0x3d,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68, + 0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x61,0x2c, + 0x20,0x72,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x5b,0x38,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x30,0x5d,0x20,0x5e,0x3d, + 0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x30,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78, + 0x31,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x32,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c, + 0x0a,0x61,0x5b,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x33,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x20,0x5e,0x3d, + 0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x34,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78, + 0x35,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x36,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c, + 0x0a,0x61,0x5b,0x37,0x5d,0x20,0x5e,0x3d,0x20,0x51,0x43,0x36,0x34,0x28,0x30,0x78,0x37,0x30,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x30,0x2c, + 0x61,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x2c,0x37,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x2c,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x31,0x2c,0x61,0x2c,0x32, + 0x2c,0x34,0x2c,0x36,0x2c,0x30,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x2c,0x37,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x32,0x2c,0x61,0x2c,0x33,0x2c,0x35,0x2c, + 0x37,0x2c,0x31,0x2c,0x32,0x2c,0x34,0x2c,0x36,0x2c,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x33,0x2c,0x61,0x2c,0x34,0x2c,0x36,0x2c,0x30,0x2c,0x32, + 0x2c,0x33,0x2c,0x35,0x2c,0x37,0x2c,0x31,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x34,0x2c,0x61,0x2c,0x35,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x2c,0x34,0x2c, + 0x36,0x2c,0x30,0x2c,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x35,0x2c,0x61,0x2c,0x36,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x2c,0x35,0x2c,0x37,0x2c,0x31, + 0x2c,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x36,0x2c,0x61,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x2c,0x36,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x29, + 0x3b,0x20,0x5c,0x0a,0x52,0x53,0x54,0x54,0x28,0x37,0x2c,0x61,0x2c,0x30,0x2c,0x32,0x2c,0x34,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x33,0x2c,0x35,0x29,0x3b,0x20,0x5c, + 0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x32,0x5d,0x3d, + 0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x33,0x5d,0x3d,0x74,0x5b,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x34,0x5d,0x3d,0x74,0x5b,0x34,0x5d,0x3b,0x20, + 0x5c,0x0a,0x61,0x5b,0x35,0x5d,0x3d,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x36,0x5d,0x3d,0x74,0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x61,0x5b,0x37,0x5d, + 0x3d,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x45,0x52, + 0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30, + 0x3b,0x20,0x72,0x3c,0x31,0x30,0x3b,0x20,0x72,0x20,0x2b,0x2b,0x29,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x2c, + 0x72,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x45,0x52,0x4d,0x5f,0x53, + 0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x66,0x28,0x61,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20, + 0x72,0x3c,0x39,0x3b,0x20,0x72,0x20,0x2b,0x2b,0x29,0x20,0x7b,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x61,0x2c,0x72, + 0x29,0x3b,0x7d,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x66,0x28,0x61,0x2c,0x39,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77, + 0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x61,0x29, + 0x20,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x31,0x30,0x3b,0x20,0x72,0x20,0x2b,0x2b, + 0x29,0x20,0x5c,0x0a,0x52,0x4f,0x55,0x4e,0x44,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x61,0x2c,0x72,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c, + 0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f, + 0x32,0x29,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x65,0x74,0x5f,0x72,0x65,0x63,0x69,0x70,0x72,0x6f,0x63,0x61,0x6c,0x28,0x75,0x69, + 0x6e,0x74,0x20,0x61,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x61,0x5f,0x68,0x69,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61, + 0x74,0x28,0x28,0x61,0x3e,0x3e,0x38,0x29,0x2b,0x28,0x28,0x31,0x32,0x36,0x55,0x2b,0x33,0x31,0x55,0x29,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x61,0x5f,0x6c,0x6f,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61, + 0x26,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x72,0x65,0x63, + 0x69,0x70,0x28,0x61,0x5f,0x68,0x69,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x5f,0x73,0x63,0x61,0x6c,0x65,0x64,0x3d,0x61, + 0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x72,0x29,0x2b,0x28,0x36,0x34,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x68,0x3d,0x66,0x6d,0x61,0x28,0x61,0x5f,0x6c,0x6f,0x2c,0x72,0x2c,0x66,0x6d,0x61,0x28,0x61,0x5f,0x68,0x69, + 0x2c,0x72,0x2c,0x2d,0x31,0x2e,0x30,0x66,0x29,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x72,0x29,0x3c,0x3c, + 0x39,0x29,0x2d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x69,0x6e,0x74,0x5f,0x72,0x74,0x65,0x28,0x68,0x2a,0x72,0x5f,0x73,0x63,0x61,0x6c,0x65,0x64,0x29,0x3b,0x0a, + 0x7d,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x76,0x32,0x28,0x75,0x6c,0x6f,0x6e,0x67, + 0x20,0x61,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x72,0x3d,0x67,0x65,0x74,0x5f,0x72,0x65, + 0x63,0x69,0x70,0x72,0x6f,0x63,0x61,0x6c,0x28,0x62,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6b,0x3d,0x6d,0x75,0x6c,0x5f,0x68, + 0x69,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x30,0x2c,0x72,0x29,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x72,0x29,0x2a, + 0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x31,0x29,0x2b,0x61,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x71,0x3d, + 0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x6b,0x29,0x2e,0x73,0x31,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x3d,0x61,0x2d,0x28,0x28,0x75,0x6c,0x6f, + 0x6e,0x67,0x29,0x28,0x71,0x29,0x2a,0x62,0x29,0x3b,0x0a,0x28,0x28,0x69,0x6e,0x74,0x2a,0x29,0x26,0x74,0x6d,0x70,0x29,0x5b,0x31,0x5d,0x2d,0x3d,0x28,0x61,0x73,0x5f, + 0x75,0x69,0x6e,0x74,0x32,0x28,0x6b,0x29,0x2e,0x73,0x31,0x3c,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x31,0x29,0x3f,0x62,0x3a,0x30,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x6f,0x76,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x3d,0x28,0x28,0x69,0x6e,0x74,0x2a,0x29,0x26,0x74,0x6d,0x70, + 0x29,0x5b,0x31,0x5d,0x3e,0x3e,0x33,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x75,0x6e,0x64,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x3d,0x61, + 0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x62,0x2d,0x31,0x29,0x2d,0x74,0x6d,0x70,0x29,0x2e,0x73,0x31,0x3e,0x3e,0x33,0x31,0x3b, + 0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x75,0x69,0x6e,0x74,0x32,0x29,0x28,0x71,0x2b,0x6f,0x76,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x2d,0x75,0x6e,0x64,0x65, + 0x72,0x73,0x68,0x6f,0x6f,0x74,0x2c,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x2b,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74, + 0x28,0x6f,0x76,0x65,0x72,0x73,0x68,0x6f,0x6f,0x74,0x29,0x26,0x62,0x29,0x2d,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x75,0x6e,0x64,0x65,0x72,0x73,0x68,0x6f, + 0x6f,0x74,0x29,0x26,0x62,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x69,0x6e,0x74,0x20,0x66,0x61,0x73,0x74,0x5f,0x73,0x71,0x72,0x74, + 0x5f,0x76,0x32,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6e,0x31,0x29,0x0a,0x7b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x78,0x3d,0x61,0x73, + 0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x6e,0x31,0x29,0x2e,0x73,0x31,0x3e,0x3e,0x39,0x29,0x2b,0x28,0x28,0x36,0x34, + 0x55,0x2b,0x31,0x32,0x37,0x55,0x29,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x78,0x31,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x72, + 0x73,0x71,0x72,0x74,0x28,0x78,0x29,0x3b,0x0a,0x78,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65,0x5f,0x73,0x71,0x72,0x74,0x28,0x78,0x29,0x3b,0x0a,0x78,0x31,0x3d,0x61,0x73, + 0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x78,0x31,0x29,0x2b,0x28,0x33,0x32,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x78,0x30,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x78,0x29,0x2d,0x28,0x31,0x35,0x38,0x55,0x3c,0x3c,0x32, + 0x33,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x6c,0x6f,0x6e,0x67,0x20,0x64,0x65,0x6c,0x74,0x61,0x30,0x3d,0x6e,0x31,0x2d,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f, + 0x6e,0x67,0x28,0x28,0x75,0x69,0x6e,0x74,0x32,0x29,0x28,0x6d,0x75,0x6c,0x32,0x34,0x28,0x78,0x30,0x2c,0x78,0x30,0x29,0x2c,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x78, + 0x30,0x2c,0x78,0x30,0x29,0x29,0x29,0x3c,0x3c,0x31,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x64,0x65,0x6c,0x74,0x61,0x3d, + 0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x64,0x65,0x6c,0x74,0x61,0x30, + 0x29,0x2e,0x73,0x31,0x29,0x2a,0x78,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x28,0x78,0x30,0x3c,0x3c,0x31,0x30,0x29,0x2b,0x63, + 0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x69,0x6e,0x74,0x5f,0x72,0x74,0x65,0x28,0x64,0x65,0x6c,0x74,0x61,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x20,0x73,0x3d,0x72,0x65,0x73,0x75,0x6c,0x74,0x3e,0x3e,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x62,0x3d,0x72,0x65,0x73,0x75, + 0x6c,0x74,0x26,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x78,0x32,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x73,0x29,0x2a, + 0x28,0x73,0x2b,0x62,0x29,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3c,0x3c,0x33,0x32,0x29,0x2d,0x6e,0x31,0x3b,0x0a, + 0x69,0x66,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x78,0x32,0x2b,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x62,0x2d,0x31,0x29,0x29,0x3e,0x3d,0x30,0x29,0x20,0x2d,0x2d, + 0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x69,0x66,0x28,0x28,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x78,0x32,0x2b,0x30,0x78,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x55,0x4c,0x2b,0x73,0x29,0x3c,0x30,0x29,0x20,0x2b,0x2b,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20,0x46,0x41,0x53,0x54,0x5f,0x44,0x49,0x56,0x5f,0x48,0x45,0x41,0x56, + 0x59,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x53,0x54,0x5f,0x44,0x49,0x56,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x43,0x4c,0x0a,0x23, + 0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41, + 0x56,0x59,0x29,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x6c,0x6f,0x6e,0x67,0x20,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x68,0x65,0x61,0x76,0x79,0x28,0x6c, + 0x6f,0x6e,0x67,0x20,0x5f,0x61,0x2c,0x69,0x6e,0x74,0x20,0x5f,0x62,0x29,0x0a,0x7b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x3d,0x61,0x62,0x73,0x28,0x5f,0x61,0x29,0x3b, + 0x0a,0x69,0x6e,0x74,0x20,0x62,0x3d,0x61,0x62,0x73,0x28,0x5f,0x62,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x72,0x63,0x70,0x3d,0x6e,0x61,0x74,0x69,0x76,0x65, + 0x5f,0x72,0x65,0x63,0x69,0x70,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x62,0x29,0x29,0x3b,0x0a,0x66,0x6c, + 0x6f,0x61,0x74,0x20,0x72,0x63,0x70,0x32,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x72,0x63,0x70,0x29,0x2b,0x28, + 0x33,0x32,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x31,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x75,0x6c,0x6f,0x6e, + 0x67,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73, + 0x31,0x29,0x2a,0x72,0x63,0x70,0x32,0x29,0x3b,0x0a,0x61,0x2d,0x3d,0x71,0x31,0x2a,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x62,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61, + 0x74,0x20,0x71,0x32,0x66,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x5f,0x72,0x74,0x65,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28, + 0x61,0x3e,0x3e,0x31,0x32,0x29,0x2e,0x73,0x30,0x29,0x2a,0x72,0x63,0x70,0x3b,0x0a,0x71,0x32,0x66,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x28,0x61,0x73,0x5f, + 0x75,0x69,0x6e,0x74,0x28,0x71,0x32,0x66,0x29,0x2b,0x28,0x31,0x32,0x55,0x3c,0x3c,0x32,0x33,0x29,0x29,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x32,0x3d,0x63,0x6f, + 0x6e,0x76,0x65,0x72,0x74,0x5f,0x6c,0x6f,0x6e,0x67,0x5f,0x72,0x74,0x65,0x28,0x71,0x32,0x66,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x61,0x32,0x3d,0x61,0x73,0x5f,0x69, + 0x6e,0x74,0x32,0x28,0x61,0x29,0x2e,0x73,0x30,0x2d,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x71,0x32,0x29,0x2e,0x73,0x30,0x2a,0x62,0x3b,0x0a,0x69,0x6e,0x74,0x20, + 0x71,0x33,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x69,0x6e,0x74,0x5f,0x72,0x74,0x65,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74, + 0x5f,0x72,0x74,0x65,0x28,0x61,0x32,0x29,0x2a,0x72,0x63,0x70,0x29,0x3b,0x0a,0x71,0x33,0x2b,0x3d,0x28,0x61,0x32,0x2d,0x71,0x33,0x2a,0x62,0x29,0x3e,0x3e,0x33,0x31, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x3d,0x71,0x31,0x2b,0x71,0x32,0x2b,0x71,0x33,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, + 0x28,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x32,0x28,0x5f,0x61,0x29,0x2e,0x73,0x31,0x5e,0x5f,0x62,0x29,0x3c,0x30,0x29,0x3f,0x2d,0x71,0x3a,0x71,0x3b,0x0a,0x7d,0x0a, + 0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x6e,0x64,0x65,0x66,0x20,0x58,0x4d,0x52,0x49,0x47,0x5f,0x4b,0x45,0x43,0x43, + 0x41,0x4b,0x5f,0x43,0x4c,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x58,0x4d,0x52,0x49,0x47,0x5f,0x4b,0x45,0x43,0x43,0x41,0x4b,0x5f,0x43,0x4c,0x0a,0x53,0x54, + 0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6b,0x65,0x63,0x63, + 0x61,0x6b,0x66,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x32,0x34,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x31,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x32,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x61,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x2c,0x30,0x78, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x62,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30, + 0x30,0x30,0x31,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x31,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x39,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x61,0x2c,0x0a,0x30, + 0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x38,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30, + 0x38,0x30,0x30,0x39,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x61,0x2c,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x38,0x62,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x62,0x2c,0x30, + 0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x39,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x38,0x30,0x30,0x33,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x32,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x2c,0x0a,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x61,0x2c, + 0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x61,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30, + 0x30,0x38,0x30,0x38,0x31,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x38,0x30,0x2c,0x30,0x78,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x2c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x38,0x30,0x30,0x30,0x38,0x30,0x30,0x38,0x0a, + 0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54,0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, + 0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6f,0x74,0x63,0x5b,0x32,0x34,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x31,0x2c,0x33,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x31,0x35, + 0x2c,0x32,0x31,0x2c,0x32,0x38,0x2c,0x33,0x36,0x2c,0x34,0x35,0x2c,0x35,0x35,0x2c,0x32,0x2c,0x31,0x34,0x2c,0x0a,0x32,0x37,0x2c,0x34,0x31,0x2c,0x35,0x36,0x2c,0x38, + 0x2c,0x32,0x35,0x2c,0x34,0x33,0x2c,0x36,0x32,0x2c,0x31,0x38,0x2c,0x33,0x39,0x2c,0x36,0x31,0x2c,0x32,0x30,0x2c,0x34,0x34,0x0a,0x7d,0x3b,0x0a,0x53,0x54,0x41,0x54, + 0x49,0x43,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66, + 0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x32,0x34,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x31,0x30,0x2c,0x37,0x2c,0x31,0x31,0x2c,0x31,0x37,0x2c,0x31,0x38,0x2c,0x33,0x2c,0x35,0x2c, + 0x31,0x36,0x2c,0x38,0x2c,0x32,0x31,0x2c,0x32,0x34,0x2c,0x34,0x2c,0x0a,0x31,0x35,0x2c,0x32,0x33,0x2c,0x31,0x39,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x32,0x2c,0x32, + 0x30,0x2c,0x31,0x34,0x2c,0x32,0x32,0x2c,0x39,0x2c,0x36,0x2c,0x31,0x0a,0x7d,0x3b,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30, + 0x30,0x5f,0x31,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x20,0x69,0x2c,0x72,0x6f,0x75,0x6e,0x64,0x3b,0x0a,0x75,0x6c, + 0x6f,0x6e,0x67,0x20,0x74,0x2c,0x62,0x63,0x5b,0x35,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f, + 0x72,0x20,0x28,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x30,0x3b,0x20,0x72,0x6f,0x75,0x6e,0x64,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x72,0x6f,0x75,0x6e,0x64,0x29,0x20,0x7b, + 0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x35,0x5d, + 0x5e,0x73,0x74,0x5b,0x32,0x30,0x5d,0x3b,0x0a,0x62,0x63,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x31, + 0x5d,0x5e,0x73,0x74,0x5b,0x31,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x31,0x5d,0x3b,0x0a,0x62,0x63,0x5b,0x32,0x5d,0x3d,0x73,0x74,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x5b, + 0x37,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x32,0x5d,0x3b,0x0a,0x62,0x63,0x5b,0x33,0x5d,0x3d,0x73, + 0x74,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x33,0x5d,0x3b, + 0x0a,0x62,0x63,0x5b,0x34,0x5d,0x3d,0x73,0x74,0x5b,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x39,0x5d, + 0x5e,0x73,0x74,0x5b,0x32,0x34,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69, + 0x3d,0x30,0x3b,0x20,0x69,0x3c,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x74,0x3d,0x62,0x63,0x5b,0x28,0x69,0x2b,0x34,0x29,0x20,0x25,0x20,0x35,0x5d,0x5e, + 0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x62,0x63,0x5b,0x28,0x69,0x2b,0x31,0x29,0x20,0x25,0x20,0x35,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x20, + 0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x31,0x30,0x5d,0x20,0x5e, + 0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x31,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x32,0x30,0x5d,0x20,0x5e,0x3d,0x20, + 0x74,0x3b,0x0a,0x7d,0x0a,0x74,0x3d,0x73,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66, + 0x6f,0x72,0x20,0x28,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x5b,0x6b, + 0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x69,0x5d,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e, + 0x5b,0x69,0x5d,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6f,0x74, + 0x63,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x74,0x3d,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c, + 0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x3d,0x35,0x29,0x20,0x7b,0x0a,0x75, + 0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x5b,0x35,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f, + 0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x35,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x74,0x6d,0x70,0x5b,0x78,0x5d,0x3d,0x62, + 0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x78,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x28,0x28,0x78,0x2b,0x32,0x29,0x20,0x25,0x20,0x35, + 0x29,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x78,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x28,0x28,0x78,0x2b,0x31,0x29,0x20,0x25,0x20,0x35,0x29,0x5d,0x29,0x3b,0x0a,0x7d, + 0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20, + 0x78,0x3c,0x35,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x78,0x5d,0x3d,0x74,0x6d,0x70,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a, + 0x73,0x74,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x72,0x6f,0x75,0x6e,0x64,0x5d,0x3b,0x0a,0x7d,0x0a, + 0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x32,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f, + 0x6e,0x67,0x20,0x2a,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x20,0x69,0x2c,0x72,0x6f,0x75,0x6e,0x64,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x2c,0x62, + 0x63,0x5b,0x35,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x72,0x6f,0x75,0x6e, + 0x64,0x3d,0x30,0x3b,0x20,0x72,0x6f,0x75,0x6e,0x64,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x72,0x6f,0x75,0x6e,0x64,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d, + 0x73,0x74,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x30,0x5d, + 0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x37, + 0x5d,0x5e,0x73,0x74,0x5b,0x32,0x32,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x36,0x5d, + 0x5e,0x73,0x74,0x5b,0x31,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x31,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b, + 0x33,0x5d,0x5e,0x73,0x74,0x5b,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x33,0x5d,0x2c,0x31,0x55, + 0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x32,0x5d,0x3d,0x73,0x74,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x32,0x5d,0x5e,0x73,0x74,0x5b, + 0x31,0x37,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x32,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x39,0x5d,0x5e,0x73,0x74, + 0x5b,0x31,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x34,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x33,0x5d,0x3d,0x73, + 0x74,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x33,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x38,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x33,0x5d,0x5e, + 0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x35,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x30,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x35,0x5d, + 0x5e,0x73,0x74,0x5b,0x32,0x30,0x5d,0x2c,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x62,0x63,0x5b,0x34,0x5d,0x3d,0x73,0x74,0x5b,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x39,0x5d,0x5e, + 0x73,0x74,0x5b,0x31,0x34,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x39,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x34,0x5d,0x5e,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x73,0x74,0x5b,0x31, + 0x5d,0x5e,0x73,0x74,0x5b,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x31,0x5d,0x5e,0x73,0x74,0x5b,0x31,0x36,0x5d,0x5e,0x73,0x74,0x5b,0x32,0x31,0x5d,0x2c,0x31,0x55,0x4c, + 0x29,0x3b,0x0a,0x73,0x74,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34, + 0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63, + 0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x34,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x5d,0x20,0x5e,0x3d,0x20,0x62, + 0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x31,0x5d,0x20,0x5e,0x3d,0x20, + 0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x31,0x5d,0x20,0x5e, + 0x3d,0x20,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x37,0x5d,0x20,0x5e, + 0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x37,0x5d, + 0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x33, + 0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x38,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31, + 0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x38,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74, + 0x5b,0x32,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73, + 0x74,0x5b,0x39,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x31,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a, + 0x73,0x74,0x5b,0x31,0x39,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x32,0x34,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x63,0x5b,0x33,0x5d, + 0x3b,0x0a,0x74,0x3d,0x73,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20, + 0x28,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x62,0x63,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63, + 0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x69,0x5d,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x70,0x69,0x6c,0x6e,0x5b,0x69,0x5d, + 0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x2c,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f,0x72,0x6f,0x74,0x63,0x5b,0x69, + 0x5d,0x29,0x3b,0x0a,0x74,0x3d,0x62,0x63,0x5b,0x30,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a, + 0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x3d,0x35,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e, + 0x67,0x20,0x74,0x6d,0x70,0x31,0x3d,0x73,0x74,0x5b,0x69,0x5d,0x2c,0x74,0x6d,0x70,0x32,0x3d,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x5d, + 0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x5d,0x2c,0x73, + 0x74,0x5b,0x69,0x2b,0x31,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b, + 0x31,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x31,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x5b, + 0x69,0x2b,0x32,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x32,0x5d,0x5e,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x2c,0x73, + 0x74,0x5b,0x69,0x2b,0x32,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65, + 0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x5e,0x74,0x6d,0x70,0x31,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x33,0x5d,0x2c,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x29, + 0x3b,0x0a,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x3d,0x62,0x69,0x74,0x73,0x65,0x6c,0x65,0x63,0x74,0x28,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x5e,0x74,0x6d,0x70,0x32, + 0x2c,0x73,0x74,0x5b,0x69,0x2b,0x34,0x5d,0x2c,0x74,0x6d,0x70,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x73,0x74,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x6b,0x65,0x63,0x63,0x61, + 0x6b,0x66,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x72,0x6f,0x75,0x6e,0x64,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x20,0x28, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x29,0x20,0x7c,0x7c,0x20,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x41,0x50,0x50,0x4c,0x45,0x5f,0x5f,0x29,0x29,0x20,0x26,0x26,0x20,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44, + 0x45,0x58,0x20,0x21,0x3d,0x20,0x30,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x30,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x28,0x31,0x20,0x3c,0x3c,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x5f,0x45,0x58, + 0x50,0x4f,0x4e,0x45,0x4e,0x54,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x28,0x78,0x29,0x20,0x28,0x78,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44, + 0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20, + 0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x28, + 0x78,0x29,0x20,0x28,0x28,0x78,0x29,0x20,0x2a,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x49,0x44,0x58,0x28,0x78,0x29,0x20,0x6d,0x75,0x6c,0x32,0x34,0x28,0x28,0x78,0x29,0x2c,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x25,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x29, + 0x20,0x2b,0x20,0x28,0x28,0x78,0x29,0x20,0x2f,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x29,0x20,0x2a,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x20, + 0x2a,0x20,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x75,0x6c,0x6f,0x6e,0x67, + 0x20,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x0a,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64, + 0x28,0x30,0x29,0x2d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x6d,0x69,0x78,0x5f,0x61,0x6e,0x64,0x5f,0x70,0x72,0x6f,0x70,0x61,0x67,0x61,0x74,0x65,0x28,0x78,0x69,0x6e,0x29,0x20,0x28,0x78,0x69,0x6e,0x29, + 0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x29,0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61, + 0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x20,0x5e,0x20,0x28,0x78,0x69,0x6e,0x29,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31, + 0x29,0x20,0x2b,0x20,0x31,0x29,0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x0a,0x5f,0x5f,0x61, + 0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65, + 0x28,0x38,0x2c,0x38,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x30,0x28,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x69,0x6e,0x74,0x20,0x69,0x6e,0x6c,0x65,0x6e,0x2c,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x69, + 0x6e,0x74,0x20,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x5b,0x34,0x30,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x32,0x5b,0x32,0x35,0x36,0x5d,0x2c, + 0x41,0x45,0x53,0x33,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x65,0x78,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2a,0x38,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69, + 0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x38,0x2a,0x38,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d,0x41, + 0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d,0x72, + 0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x32,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d, + 0x70,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x33,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x32,0x34,0x55,0x29,0x3b, + 0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b, + 0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x74,0x61,0x74,0x65,0x5f,0x62,0x75,0x66,0x5b,0x38,0x2a,0x32,0x35,0x5d,0x3b,0x0a, + 0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f, + 0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45, + 0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d, + 0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f, + 0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b, + 0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x28,0x67,0x49,0x64,0x78, + 0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d, + 0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45, + 0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b,0x53,0x49, + 0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55, + 0x4e,0x4b,0x2a,0x28,0x67,0x49,0x64,0x78,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28, + 0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x3d,0x3d,0x30,0x29,0x20,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c, + 0x6f,0x6e,0x67,0x2a,0x20,0x53,0x74,0x61,0x74,0x65,0x3d,0x53,0x74,0x61,0x74,0x65,0x5f,0x62,0x75,0x66,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69, + 0x64,0x28,0x30,0x29,0x2a,0x32,0x35,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74, + 0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x30,0x3b,0x0a,0x7d, + 0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x6e,0x6c,0x65,0x6e,0x3e,0x30,0x3b,0x20,0x69,0x2b,0x3d,0x31,0x37,0x2c,0x69,0x6e, + 0x6c,0x65,0x6e,0x2d,0x3d,0x31,0x33,0x36,0x29,0x20,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28, + 0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x37,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x6a,0x5d,0x20,0x5e, + 0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x69,0x2b,0x6a,0x5d,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x3d,0x3d,0x30,0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x6c, + 0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x39,0x5d,0x20,0x26,0x3d,0x20,0x30,0x78,0x30,0x30,0x46,0x46,0x46, + 0x46,0x46,0x46,0x55,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x39,0x5d, + 0x7c,0x3d,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x29,0x26,0x30,0x78,0x46,0x46, + 0x29,0x3c,0x3c,0x32,0x34,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x31, + 0x30,0x5d,0x20,0x26,0x3d,0x20,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x31,0x30,0x5d,0x7c,0x3d,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3e,0x3e,0x38,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x32,0x28,0x53, + 0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69, + 0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x5d,0x3d,0x53, + 0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41, + 0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x34,0x28,0x67,0x65,0x74,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x34,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x28, + 0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e, + 0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x29,0x45,0x78,0x70, + 0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x29,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x41,0x45,0x53,0x45,0x78, + 0x70,0x61,0x6e,0x64,0x4b,0x65,0x79,0x32,0x35,0x36,0x28,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f, + 0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20, 0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29, - 0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45, - 0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x28,0x67,0x49,0x64,0x78,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49, - 0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6e, - 0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f, - 0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x2a,0x28,0x67,0x49,0x64,0x78,0x20, - 0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c, - 0x5f,0x69,0x64,0x28,0x31,0x29,0x3d,0x3d,0x30,0x29,0x20,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x53,0x74,0x61,0x74, - 0x65,0x3d,0x53,0x74,0x61,0x74,0x65,0x5f,0x62,0x75,0x66,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x32,0x35,0x3b,0x0a, - 0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32, - 0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74, - 0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x6e,0x6c,0x65,0x6e,0x3e,0x30,0x3b,0x20,0x69,0x2b,0x3d,0x31,0x37,0x2c,0x69,0x6e,0x6c,0x65,0x6e,0x2d,0x3d,0x31,0x33,0x36,0x29, - 0x20,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20, - 0x6a,0x3c,0x31,0x37,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x6a,0x5d,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x69, - 0x2b,0x6a,0x5d,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x3d,0x3d,0x30,0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x39,0x5d,0x20,0x26,0x3d,0x20,0x30,0x78,0x30,0x30,0x46,0x46,0x46,0x46,0x46,0x46,0x55,0x3b,0x0a,0x28,0x28,0x5f, - 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x39,0x5d,0x7c,0x3d,0x28,0x28,0x28,0x75,0x69,0x6e,0x74, - 0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x3c,0x3c,0x32,0x34,0x3b,0x0a,0x28,0x28, - 0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65,0x29,0x5b,0x31,0x30,0x5d,0x20,0x26,0x3d,0x20,0x30,0x78,0x46, - 0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x53,0x74,0x61,0x74,0x65, - 0x29,0x5b,0x31,0x30,0x5d,0x7c,0x3d,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3e, - 0x3e,0x38,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x32,0x28,0x53,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x7d,0x0a, - 0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69, - 0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x5d,0x3d,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3b,0x0a, - 0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e, - 0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x34,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, - 0x31,0x29,0x2b,0x34,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x29,0x3b, - 0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c, - 0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31, - 0x29,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x41,0x45,0x53,0x45,0x78,0x70,0x61,0x6e,0x64,0x4b,0x65,0x79,0x32,0x35, - 0x36,0x28,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b, - 0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d, - 0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x34,0x20,0x78,0x69,0x6e,0x5b,0x38,0x5d,0x5b,0x38,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20, - 0x31,0x36,0x0a,0x66,0x6f,0x72,0x20,0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x36,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x20,0x7b, - 0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b, - 0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29, - 0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x29,0x5b,0x6a,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42, - 0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73, - 0x31,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33, - 0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b, - 0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e, - 0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53, - 0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30, - 0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74, - 0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45, - 0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53, - 0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78, - 0x74,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41, - 0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x74,0x3b,0x0a,0x7d,0x0a, - 0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x78,0x69, - 0x6e,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, - 0x30,0x29,0x5d,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f, - 0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x6d,0x69,0x78,0x5f,0x61,0x6e,0x64,0x5f,0x70,0x72,0x6f,0x70,0x61,0x67,0x61,0x74,0x65,0x28,0x78, - 0x69,0x6e,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6c,0x6f,0x63,0x61,0x6c, - 0x5f,0x69,0x64,0x31,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e, - 0x72,0x6f,0x6c,0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e, - 0x34,0x29,0x3b,0x20,0x69,0x2b,0x3d,0x38,0x29,0x20,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f, - 0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20, - 0x74,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x29,0x5b,0x6a,0x5d,0x3b,0x0a,0x74,0x2e, - 0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31, - 0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74, - 0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74, - 0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53, - 0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78, - 0x74,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x3b,0x0a, - 0x74,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45, - 0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65, - 0x78,0x74,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x3b, - 0x0a,0x74,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41, - 0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74, - 0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d, - 0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x74,0x3b,0x0a,0x7d,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x69,0x2b,0x6c,0x6f,0x63, - 0x61,0x6c,0x5f,0x69,0x64,0x31,0x29,0x5d,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b, - 0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f, - 0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x30,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f, - 0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2c, - 0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x31,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73, - 0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x5b,0x32,0x5d,0x2c,0x62,0x5b,0x32,0x5d, - 0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35, - 0x36,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66, - 0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x35,0x36, - 0x3b,0x20,0x69,0x2b,0x3d,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d, - 0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d, - 0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f, - 0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x62,0x5f,0x78,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61, - 0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58, - 0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e, - 0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a, - 0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45, - 0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29, - 0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f, - 0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23, - 0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29, - 0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45, - 0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x2a,0x67,0x65,0x74,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b, - 0x30,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x34,0x5d,0x3b,0x0a,0x62,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x61, - 0x74,0x65,0x73,0x5b,0x36,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x35,0x5d, - 0x3b,0x0a,0x62,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x37,0x5d,0x3b,0x0a,0x62,0x5f,0x78,0x3d, - 0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x62,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b, - 0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x30,0x3d,0x61, - 0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x43,0x43,0x58,0x29,0x0a,0x66, - 0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x3d,0x28,0x66,0x6c,0x6f,0x61,0x74,0x34,0x29,0x28,0x30,0x2e,0x30,0x66,0x29,0x3b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x6f,0x6e,0x63,0x5f,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x28,0x30,0x78,0x38,0x30,0x37,0x46, - 0x46,0x46,0x46,0x46,0x55,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x6f,0x6e,0x63,0x5f,0x75,0x3d,0x28,0x75,0x69,0x6e,0x74, - 0x34,0x29,0x28,0x30,0x78,0x34,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x6f,0x6e, - 0x63,0x5f,0x76,0x3d,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x28,0x30,0x78,0x34,0x44,0x46,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66, - 0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x43,0x4e,0x5f,0x55,0x4e,0x52,0x4f,0x4c,0x4c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69, - 0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f, - 0x6e,0x67,0x20,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68, - 0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41, - 0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x43,0x43,0x58,0x29,0x0a,0x7b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x72,0x3d,0x63, - 0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x5f,0x72,0x74,0x65,0x28,0x28,0x28,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d, - 0x29,0x2b,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x3b,0x0a,0x72,0x3d,0x72,0x2a,0x72,0x2a,0x72,0x3b,0x0a,0x72,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34, - 0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x72,0x29,0x26,0x63,0x6f,0x6e,0x63,0x5f,0x74,0x29,0x7c,0x63,0x6f,0x6e,0x63,0x5f,0x75,0x29,0x3b,0x0a,0x66, - 0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x5f,0x6f,0x6c,0x64,0x3d,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x3b,0x0a,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x2b,0x3d, - 0x72,0x3b,0x0a,0x63,0x5f,0x6f,0x6c,0x64,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x5f,0x6f, - 0x6c,0x64,0x29,0x26,0x63,0x6f,0x6e,0x63,0x5f,0x74,0x29,0x7c,0x63,0x6f,0x6e,0x63,0x5f,0x75,0x29,0x3b,0x0a,0x28,0x28,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29, - 0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x69,0x6e,0x74,0x34,0x5f,0x72,0x74,0x7a,0x28,0x63,0x5f,0x6f,0x6c,0x64,0x2a,0x61,0x73, - 0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x28,0x28,0x75,0x69,0x6e, - 0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x54,0x77,0x6f,0x5f,0x54,0x61,0x62,0x6c,0x65,0x73,0x28, - 0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74, - 0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30, - 0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x62,0x5f,0x78,0x5e,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3b, - 0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x74,0x6d,0x70,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28, - 0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3b,0x0a,0x61,0x5b, - 0x31,0x5d,0x2b,0x3d,0x63,0x5b,0x30,0x5d,0x2a,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x3b,0x0a,0x61,0x5b,0x30,0x5d, - 0x2b,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x63,0x5b,0x30,0x5d,0x2c,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x29, - 0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29, - 0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x3b,0x0a, - 0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x69,0x64,0x78,0x30,0x3d,0x61,0x5b,0x30, - 0x5d,0x3b,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47, - 0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x7b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x6e,0x3d,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29, - 0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29, - 0x29,0x29,0x29,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x3d,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x68,0x65,0x61,0x76,0x79,0x28,0x6e,0x2e,0x73,0x30,0x2c, - 0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x7c,0x30,0x78,0x35,0x29,0x3b,0x0a,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53, - 0x4b,0x29,0x3e,0x3e,0x34,0x29,0x29,0x29,0x29,0x3d,0x6e,0x2e,0x73,0x30,0x5e,0x71,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41, - 0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x58,0x48,0x56,0x29,0x0a,0x69,0x64,0x78,0x30,0x3d,0x28,0x7e,0x61,0x73,0x5f,0x69,0x6e,0x74,0x34, - 0x28,0x6e,0x29,0x2e,0x73,0x32,0x29,0x5e,0x71,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x69,0x64,0x78,0x30,0x3d,0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29, - 0x2e,0x73,0x32,0x5e,0x71,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66, - 0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65, - 0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x31,0x29,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x31,0x28,0x70,0x29,0x20,0x5c,0x0a,0x75,0x69,0x6e,0x74,0x20,0x74,0x61,0x62,0x6c,0x65,0x3d, - 0x30,0x78,0x37,0x35,0x33,0x31,0x30,0x55,0x3b,0x20,0x5c,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x6e,0x64,0x65,0x78,0x3d,0x28,0x28,0x28,0x70,0x29,0x2e,0x73,0x32,0x3e, - 0x3e,0x32,0x36,0x29,0x26,0x31,0x32,0x29,0x7c,0x28,0x28,0x28,0x70,0x29,0x2e,0x73,0x32,0x3e,0x3e,0x32,0x33,0x29,0x26,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x28,0x70,0x29, - 0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x28,0x28,0x74,0x61,0x62,0x6c,0x65,0x3e,0x3e,0x69,0x6e,0x64,0x65,0x78,0x29,0x26,0x30,0x78,0x33,0x30,0x55,0x29,0x3c,0x3c,0x32, - 0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x32,0x28,0x70,0x29,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x32,0x20, - 0x2a,0x29,0x26,0x28,0x70,0x29,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x5f,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x49,0x4e,0x49,0x54,0x28,0x29,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x3d,0x61,0x73,0x5f,0x75, - 0x69,0x6e,0x74,0x32,0x28,0x69,0x6e,0x70,0x75,0x74,0x5b,0x34,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x30,0x20,0x3e,0x3e, - 0x3d,0x20,0x32,0x34,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x30,0x7c,0x3d,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x31, - 0x3c,0x3c,0x38,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x31,0x3d,0x28,0x75,0x69,0x6e,0x74,0x29,0x20,0x67,0x65,0x74,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x20,0x5e,0x3d,0x20,0x61,0x73,0x5f,0x75,0x69,0x6e, - 0x74,0x32,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65, - 0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29, - 0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x31,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c, - 0x6f,0x6e,0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e, - 0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x5b,0x32,0x5d,0x2c,0x62,0x5b,0x32,0x5d,0x3b,0x0a,0x5f,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28, - 0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b, - 0x3d,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30, - 0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61, - 0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f, - 0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x3b,0x0a,0x75,0x69,0x6e,0x74, - 0x34,0x20,0x62,0x5f,0x78,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53, - 0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67, - 0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f, - 0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20, - 0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74, - 0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a, - 0x45,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68, - 0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44, - 0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f, - 0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45, - 0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x2a,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, - 0x61,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x34,0x5d,0x3b,0x0a,0x62,0x5b,0x30,0x5d,0x3d,0x73, - 0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x36,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b, - 0x31,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x35,0x5d,0x3b,0x0a,0x62,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x61, - 0x74,0x65,0x73,0x5b,0x37,0x5d,0x3b,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x62,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x56,0x41,0x52, - 0x49,0x41,0x4e,0x54,0x31,0x5f,0x49,0x4e,0x49,0x54,0x28,0x29,0x3b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f, - 0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41, - 0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x30,0x3d,0x61,0x5b,0x30, - 0x5d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x5f,0x30,0x20,0x69,0x64,0x78,0x30,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x5f,0x30,0x20,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x0a,0x23,0x65,0x6e,0x64, - 0x69,0x66,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x43,0x4e,0x5f,0x55,0x4e,0x52,0x4f,0x4c,0x4c,0x0a,0x66,0x6f,0x72,0x20, - 0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x75, - 0x6c,0x6f,0x6e,0x67,0x20,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x53,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x49,0x44,0x58,0x5f,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3b,0x0a,0x23,0x69,0x66, - 0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x28,0x28, - 0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x62,0x69,0x74,0x74,0x75,0x62,0x65,0x32, - 0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x2c,0x28,0x28,0x75,0x69,0x6e, - 0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b, - 0x30,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x54,0x77,0x6f,0x5f,0x54,0x61,0x62,0x6c,0x65,0x73,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53, - 0x31,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30, - 0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x62,0x5f,0x78,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30, - 0x5d,0x3b,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x31,0x28,0x62,0x5f,0x78,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49, - 0x44,0x58,0x28,0x28,0x49,0x44,0x58,0x5f,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x62,0x5f,0x78,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20, - 0x74,0x6d,0x70,0x3b,0x0a,0x74,0x6d,0x70,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74, - 0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d,0x2b,0x3d,0x63,0x5b,0x30, - 0x5d,0x2a,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x3b,0x0a,0x61,0x5b,0x30,0x5d,0x2b,0x3d,0x6d,0x75,0x6c,0x5f,0x68, - 0x69,0x28,0x63,0x5b,0x30,0x5d,0x2c,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32, - 0x20,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x5f,0x30,0x3d,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20, - 0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x52,0x54,0x4f,0x20,0x7c,0x7c,0x20,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43, - 0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x5f,0x30,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69, - 0x6e,0x74,0x32,0x20,0x2a,0x29,0x26,0x28,0x61,0x5b,0x30,0x5d,0x29,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e, - 0x54,0x31,0x5f,0x32,0x28,0x61,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x61,0x73,0x5f,0x75, - 0x69,0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34, - 0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x32,0x28,0x61,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x28,0x28,0x75,0x69, - 0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d, - 0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x69,0x64,0x78,0x30,0x3d,0x61,0x5b,0x30,0x5d,0x3b,0x0a, - 0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20, - 0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x7b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x6e,0x3d,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29, - 0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29, - 0x29,0x29,0x29,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x3d,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x68,0x65,0x61,0x76,0x79,0x28,0x6e,0x2e,0x73,0x30,0x2c, - 0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x7c,0x30,0x78,0x35,0x29,0x3b,0x0a,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53, - 0x4b,0x29,0x3e,0x3e,0x34,0x29,0x29,0x29,0x29,0x3d,0x6e,0x2e,0x73,0x30,0x5e,0x71,0x3b,0x0a,0x69,0x64,0x78,0x30,0x3d,0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e, - 0x29,0x2e,0x73,0x32,0x5e,0x71,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43, - 0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x49, - 0x44,0x58,0x5f,0x30,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e, - 0x5f,0x32,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f, - 0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c, - 0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x31,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a, - 0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x5b,0x32,0x5d,0x2c,0x62,0x5b,0x34,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x32,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45, - 0x53,0x33,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78, - 0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69, - 0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31, - 0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x32,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61, - 0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x33,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c, - 0x32,0x34,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45, - 0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70, - 0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3e,0x3e,0x32,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a, - 0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68, - 0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54, - 0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49, - 0x64,0x78,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f, - 0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x2a,0x67,0x65,0x74,0x5f,0x6c,0x6f, - 0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x73,0x74, - 0x61,0x74,0x65,0x73,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x34,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31, - 0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x35,0x5d,0x3b,0x0a,0x62,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x61,0x74, - 0x65,0x73,0x5b,0x36,0x5d,0x3b,0x0a,0x62,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x37,0x5d,0x3b, - 0x0a,0x62,0x5b,0x32,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x38,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x62,0x5b,0x33,0x5d, - 0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x39,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20, - 0x62,0x78,0x30,0x3d,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x62,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x62,0x78,0x31, - 0x3d,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x62,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b, - 0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43, - 0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x73,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x62,0x75,0x66,0x5b,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61, - 0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3d,0x73,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x62,0x75,0x66,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29,0x20,0x28,0x2a,0x28,0x5f,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x73, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x29,0x20,0x2b,0x20,0x28,0x69,0x64,0x78,0x31,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20, - 0x34,0x29,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d, - 0x3d,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29, - 0x20,0x28,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, - 0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x20,0x2b,0x20,0x28,0x69,0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c, - 0x3c,0x20,0x34,0x29,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20, - 0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29,0x20,0x28, - 0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68, - 0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x20,0x2b,0x20,0x6d,0x75,0x6c,0x32,0x34,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74, - 0x28,0x69,0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x2c,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c, - 0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29,0x20,0x28,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x29,0x20,0x2b,0x20,0x28,0x28,0x28,0x69,0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x20,0x25,0x20,0x28,0x4d,0x45, - 0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x20,0x2b,0x20,0x28,0x28,0x69,0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34, - 0x29,0x29,0x20,0x2f,0x20,0x28,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x20,0x2a,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a, - 0x45,0x20,0x2a,0x20,0x28,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x29,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23, - 0x65,0x6e,0x64,0x69,0x66,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73, - 0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x71,0x72,0x74,0x5f,0x72,0x65, - 0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x33,0x5d,0x29,0x2e,0x73,0x30,0x3b,0x0a,0x23,0x70, - 0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x43,0x4e,0x5f,0x55,0x4e,0x52,0x4f,0x4c,0x4c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20, - 0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x23,0x69,0x66,0x64,0x65,0x66, - 0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x61,0x5b,0x30,0x5d, - 0x26,0x30,0x78,0x31,0x46,0x46,0x46,0x43,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x31,0x3d,0x61,0x5b,0x30,0x5d,0x26,0x30,0x78,0x33,0x30,0x3b,0x0a, - 0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, - 0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x61,0x5b,0x30,0x5d,0x26,0x4d,0x41,0x53, - 0x4b,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x3d,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55, - 0x4e,0x4b,0x28,0x30,0x29,0x3b,0x0a,0x63,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53, - 0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x63,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x7b,0x0a,0x23,0x69,0x66, - 0x20,0x28,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x52,0x57,0x5a,0x29,0x20,0x7c,0x7c,0x20,0x28,0x41,0x4c,0x47,0x4f, - 0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x55,0x50,0x58,0x32,0x29,0x29,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20, - 0x63,0x68,0x75,0x6e,0x6b,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e, - 0x4b,0x28,0x33,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x32,0x3d,0x61,0x73,0x5f,0x75,0x6c, - 0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x33,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48, - 0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67, - 0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48, - 0x55,0x4e,0x4b,0x28,0x31,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x32,0x3d,0x61,0x73,0x5f, - 0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x33,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54, - 0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50, - 0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x33,0x2b,0x62,0x78,0x31,0x29, - 0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63, - 0x68,0x75,0x6e,0x6b,0x31,0x2b,0x62,0x78,0x30,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x3d, - 0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x32,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d, - 0x29,0x3b,0x0a,0x7d,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74, - 0x34,0x28,0x62,0x78,0x30,0x29,0x5e,0x63,0x3b,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49, - 0x4f,0x4e,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3d,0x2a,0x73,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3b,0x0a,0x69,0x64,0x78,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x26, - 0x30,0x78,0x31,0x46,0x46,0x46,0x43,0x30,0x3b,0x0a,0x69,0x64,0x78,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x26,0x30, - 0x78,0x33,0x30,0x3b,0x0a,0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61, - 0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x69,0x64,0x78,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67, - 0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x6d,0x70,0x3d,0x53, - 0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30,0x29,0x3b,0x0a,0x7b,0x0a,0x74,0x6d,0x70,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20, - 0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2e,0x73,0x30,0x3b,0x0a,0x74,0x6d,0x70,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x64,0x69, - 0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2e,0x73,0x31,0x5e,0x73,0x71,0x72,0x74,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x64,0x69, - 0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x76,0x32,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f, - 0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x31,0x2c,0x28,0x63,0x2e,0x73,0x30,0x2b,0x28,0x73,0x71,0x72,0x74,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3c,0x3c,0x31,0x29, - 0x29,0x7c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x73,0x71,0x72,0x74,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x66,0x61,0x73, - 0x74,0x5f,0x73,0x71,0x72,0x74,0x5f,0x76,0x32,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x2b,0x61,0x73,0x5f,0x75,0x6c,0x6f, - 0x6e,0x67,0x28,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x74, - 0x3b,0x0a,0x74,0x2e,0x73,0x30,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x2c,0x61,0x73, - 0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x29,0x3b,0x0a,0x74,0x2e,0x73,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32, - 0x28,0x63,0x29,0x2e,0x73,0x30,0x2a,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x3b,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43, - 0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x29,0x5e,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63, - 0x68,0x75,0x6e,0x6b,0x32,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b, - 0x28,0x32,0x29,0x29,0x3b,0x0a,0x74,0x20,0x5e,0x3d,0x20,0x63,0x68,0x75,0x6e,0x6b,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20, - 0x63,0x68,0x75,0x6e,0x6b,0x33,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e, - 0x4b,0x28,0x33,0x29,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x52,0x57,0x5a, - 0x29,0x20,0x7c,0x7c,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x55,0x50,0x58,0x32,0x29,0x29,0x0a,0x53,0x43,0x52, - 0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x31, - 0x2b,0x62,0x78,0x31,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69, - 0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x33,0x2b,0x62,0x78,0x30,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e, - 0x4b,0x28,0x33,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x32,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29, - 0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31, - 0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x33,0x2b,0x62,0x78,0x31,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50, - 0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x31,0x2b,0x62,0x78,0x30,0x29, - 0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63, - 0x68,0x75,0x6e,0x6b,0x32,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, - 0x7d,0x0a,0x61,0x5b,0x31,0x5d,0x2b,0x3d,0x74,0x2e,0x73,0x31,0x3b,0x0a,0x61,0x5b,0x30,0x5d,0x2b,0x3d,0x74,0x2e,0x73,0x30,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43, - 0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30,0x29,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x23, - 0x69,0x66,0x64,0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62, - 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63, - 0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3d,0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3b, - 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b,0x0a, - 0x62,0x78,0x31,0x3d,0x62,0x78,0x30,0x3b,0x0a,0x62,0x78,0x30,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e, - 0x64,0x65,0x66,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65, - 0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66, - 0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f, - 0x73,0x69,0x7a,0x65,0x28,0x38,0x2c,0x38,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x32,0x28, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x30,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x31,0x2c, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x33,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x5f,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41, - 0x45,0x53,0x32,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x33,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x45,0x78,0x70,0x61,0x6e,0x64,0x65, - 0x64,0x4b,0x65,0x79,0x32,0x5b,0x34,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x65,0x78,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f, - 0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74, - 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2a,0x38,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20, - 0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x38,0x2a,0x38,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d, - 0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d, - 0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x32,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74, - 0x6d,0x70,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x33,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x32,0x34,0x55,0x29, - 0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29, - 0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45, - 0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28, - 0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58, - 0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c, - 0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f, - 0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x28,0x67,0x49, - 0x64,0x78,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x78,0x69,0x6e,0x5b,0x38,0x5d,0x5b,0x38,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d, + 0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x36,0x0a,0x66,0x6f,0x72,0x20,0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31, + 0x36,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x20,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x20, + 0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x3d,0x28, + 0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x31,0x29,0x5b,0x6a,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x30,0x20, + 0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59, + 0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32, + 0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x31, + 0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42, + 0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73, + 0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73, + 0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b, + 0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e, + 0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e, + 0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31, + 0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74, + 0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74, + 0x65,0x78,0x74,0x3d,0x74,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46, + 0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x78,0x69,0x6e,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x5d,0x5b,0x67,0x65,0x74,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c, + 0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x6d,0x69,0x78,0x5f,0x61,0x6e,0x64,0x5f,0x70,0x72, + 0x6f,0x70,0x61,0x67,0x61,0x74,0x65,0x28,0x78,0x69,0x6e,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x31,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x3b,0x0a,0x23, + 0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c, + 0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x20,0x69,0x2b,0x3d,0x38,0x29,0x20,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72, + 0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29, + 0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79, + 0x31,0x29,0x5b,0x6a,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30, + 0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32,0x5b, + 0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e, + 0x73,0x33,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73, + 0x31,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x32,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53,0x32, + 0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74, + 0x2e,0x73,0x30,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e, + 0x73,0x32,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x33,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45,0x53, + 0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78, + 0x74,0x2e,0x73,0x31,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x2e,0x73,0x33,0x20,0x5e,0x3d,0x20,0x41,0x45,0x53,0x30,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74, + 0x2e,0x73,0x33,0x2c,0x30,0x29,0x5d,0x5e,0x41,0x45,0x53,0x31,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x30,0x2c,0x31,0x29,0x5d,0x5e,0x41,0x45, + 0x53,0x32,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65,0x78,0x74,0x2e,0x73,0x31,0x2c,0x32,0x29,0x5d,0x5e,0x41,0x45,0x53,0x33,0x5b,0x42,0x59,0x54,0x45,0x28,0x74,0x65, + 0x78,0x74,0x2e,0x73,0x32,0x2c,0x33,0x29,0x5d,0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x74,0x3b,0x0a,0x7d,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b, + 0x49,0x44,0x58,0x28,0x69,0x2b,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x31,0x29,0x5d,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f, + 0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23, + 0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x30,0x29,0x0a,0x5f,0x5f,0x61,0x74, + 0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28, + 0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e, + 0x31,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e, + 0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20, + 0x61,0x5b,0x32,0x5d,0x2c,0x62,0x5b,0x32,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36, + 0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65, + 0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, + 0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b, + 0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69, + 0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x62, + 0x5f,0x78,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49, + 0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78, + 0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44, + 0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d, + 0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72, + 0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x67, + 0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, 0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e, - 0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b, - 0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43, - 0x48,0x55,0x4e,0x4b,0x2a,0x28,0x67,0x49,0x64,0x78,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23, - 0x69,0x66,0x20,0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x54,0x61,0x68,0x69,0x74,0x69,0x5f,0x5f,0x29,0x20,0x7c,0x7c,0x20,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x64,0x28,0x5f,0x5f,0x50,0x69,0x74,0x63,0x61,0x69,0x72,0x6e,0x5f,0x5f,0x29,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x34, - 0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x69, - 0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x2b,0x34,0x5d,0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x34,0x28,0x67,0x65,0x74,0x5f,0x6c, - 0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x34,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74, - 0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x74,0x65,0x78,0x74,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x34,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63, - 0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x34,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74, - 0x65,0x73,0x29,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x30,0x5d,0x3d, - 0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x31,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73, - 0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x41,0x45,0x53,0x45,0x78,0x70,0x61,0x6e,0x64,0x4b,0x65,0x79,0x32,0x35,0x36,0x28,0x45,0x78,0x70,0x61,0x6e,0x64, - 0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d, - 0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d, - 0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x78,0x69,0x6e,0x31, - 0x5b,0x38,0x5d,0x5b,0x38,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x78,0x69,0x6e,0x32,0x5b,0x38,0x5d,0x5b,0x38,0x5d, - 0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69,0x6e,0x31,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x26,0x78,0x69,0x6e, - 0x31,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, - 0x30,0x29,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69,0x6e,0x31,0x5f,0x6c,0x6f,0x61,0x64,0x3d,0x26,0x78, - 0x69,0x6e,0x31,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x31,0x29,0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74, - 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69, - 0x6e,0x32,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x26,0x78,0x69,0x6e,0x32,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x5d,0x5b, - 0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a, - 0x20,0x78,0x69,0x6e,0x32,0x5f,0x6c,0x6f,0x61,0x64,0x3d,0x26,0x78,0x69,0x6e,0x32,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31, - 0x29,0x2b,0x31,0x29,0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3b,0x0a,0x2a,0x78,0x69,0x6e, - 0x32,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x28,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66, - 0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e, - 0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74, - 0x20,0x69,0x3d,0x30,0x2c,0x69,0x31,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x3b,0x20,0x69,0x3c,0x28,0x4d,0x45,0x4d,0x4f, - 0x52,0x59,0x3e,0x3e,0x37,0x29,0x3b,0x20,0x2b,0x2b,0x69,0x2c,0x69,0x31,0x3d,0x28,0x69,0x31,0x2b,0x31,0x36,0x29,0x20,0x25,0x20,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59, - 0x3e,0x3e,0x34,0x29,0x29,0x0a,0x7b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x69, - 0x31,0x29,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45, - 0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x32,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75, - 0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29, - 0x0a,0x74,0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41, - 0x45,0x53,0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29, - 0x5b,0x6a,0x5d,0x29,0x3b,0x0a,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20, - 0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x69,0x31,0x2b,0x38,0x29,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43, - 0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69, - 0x6e,0x31,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x28,0x69, - 0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x74,0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e, - 0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e, - 0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a,0x5d,0x29,0x3b,0x0a,0x2a,0x78,0x69,0x6e,0x32,0x5f,0x73,0x74, - 0x6f,0x72,0x65,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45, - 0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x32,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x23,0x65, - 0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x31,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63, - 0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x20,0x28, - 0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x37,0x29,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a, - 0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x69,0x3c,0x3c,0x33,0x29,0x2b,0x6c,0x6f, - 0x63,0x61,0x6c,0x5f,0x69,0x64,0x31,0x29,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72, - 0x28,0x75,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x74,0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52, - 0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28, - 0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e, - 0x64,0x69,0x66,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59, - 0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x36,0x0a,0x66,0x6f,0x72, - 0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x36,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d, - 0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20, - 0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c, - 0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65, - 0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f, - 0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x62,0x61, - 0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74, - 0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7b,0x0a,0x76,0x73,0x74,0x6f,0x72, - 0x65,0x32,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x65,0x78,0x74,0x29,0x2c,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, - 0x31,0x29,0x2b,0x34,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42, - 0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x74,0x61, - 0x74,0x65,0x5f,0x62,0x75,0x66,0x5b,0x38,0x2a,0x32,0x35,0x5d,0x3b,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x21,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64, - 0x28,0x31,0x29,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x53,0x74,0x61,0x74,0x65,0x3d,0x53,0x74,0x61,0x74, - 0x65,0x5f,0x62,0x75,0x66,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x32,0x35,0x3b,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e, - 0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65, - 0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x32,0x28,0x53,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x28, - 0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x5d,0x3d,0x53,0x74, - 0x61,0x74,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3d,0x53,0x74,0x61,0x74,0x65,0x5b,0x30, - 0x5d,0x26,0x33,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42, - 0x72,0x61,0x6e,0x63,0x68,0x31,0x3d,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3d,0x3d,0x30,0x3f,0x42,0x72,0x61,0x6e,0x63,0x68,0x30,0x3a,0x42,0x72, - 0x61,0x6e,0x63,0x68,0x31,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f, - 0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x3d,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3d,0x3d,0x32,0x3f,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x3a, - 0x42,0x72,0x61,0x6e,0x63,0x68,0x33,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74, - 0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x3d,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3c,0x32,0x3f,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74, - 0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x31,0x3a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x3b,0x0a,0x64, - 0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x5b,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x64,0x65,0x73,0x74, - 0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x2b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x5d,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x7d,0x0a, - 0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45, - 0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x53,0x57,0x41,0x50,0x38,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20, - 0x35,0x36,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x34,0x30,0x29,0x20,0x26,0x20,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x55,0x4c,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32,0x34,0x29,0x20,0x26,0x20,0x30,0x78,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x3e,0x3e,0x38,0x29,0x26, - 0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x7c,0x28,0x28,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26, - 0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x3c, - 0x3c,0x32,0x34,0x29,0x26,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x7c,0x28,0x28,0x28,0x78,0x29, - 0x3c,0x3c,0x34,0x30,0x29,0x26,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x7c,0x28,0x28,0x28,0x78, - 0x29,0x3c,0x3c,0x35,0x36,0x29,0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x29,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x53,0x57,0x41,0x50,0x34,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32,0x34,0x29,0x20,0x26,0x20, - 0x30,0x78,0x46,0x46,0x55,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x30,0x30,0x55,0x29,0x20, - 0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3c,0x3c,0x20,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x55,0x29,0x20,0x7c,0x20,0x28,0x28,0x28, - 0x78,0x29,0x20,0x3c,0x3c,0x20,0x32,0x34,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e, - 0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x53,0x6b,0x65,0x69,0x6e,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74, - 0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f, - 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74, - 0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d, - 0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61, - 0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d, - 0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x2c,0x53,0x4b,0x45,0x49,0x4e,0x35,0x31,0x32,0x5f,0x32,0x35,0x36, - 0x5f,0x49,0x56,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x5b,0x33,0x5d,0x3d,0x7b,0x20,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x37,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x20,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20, - 0x70,0x2c,0x6d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20, - 0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x2b,0x3d,0x69,0x3c,0x33,0x3f,0x30,0x78,0x34,0x30,0x55, - 0x4c,0x3a,0x30,0x78,0x30,0x38,0x55,0x4c,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x30,0x5d,0x5e,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x6d,0x3d,0x28,0x69,0x3c,0x33, - 0x29,0x3f,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x69,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3a,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x73,0x74,0x61,0x74, - 0x65,0x73,0x5b,0x32,0x34,0x5d,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30, - 0x55,0x4c,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x38,0x3d,0x68,0x2e,0x73,0x30,0x5e,0x68,0x2e,0x73,0x31,0x5e,0x68,0x2e, - 0x73,0x32,0x5e,0x68,0x2e,0x73,0x33,0x5e,0x68,0x2e,0x73,0x34,0x5e,0x68,0x2e,0x73,0x35,0x5e,0x68,0x2e,0x73,0x36,0x5e,0x68,0x2e,0x73,0x37,0x5e,0x53,0x4b,0x45,0x49, - 0x4e,0x5f,0x4b,0x53,0x5f,0x50,0x41,0x52,0x49,0x54,0x59,0x3b,0x0a,0x70,0x3d,0x53,0x6b,0x65,0x69,0x6e,0x35,0x31,0x32,0x42,0x6c,0x6f,0x63,0x6b,0x28,0x6d,0x2c,0x68, - 0x2c,0x68,0x38,0x2c,0x74,0x29,0x3b,0x0a,0x68,0x3d,0x6d,0x5e,0x70,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x69,0x3c,0x32,0x3f,0x30,0x78,0x33,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3a,0x30,0x78,0x42,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55, - 0x4c,0x3b,0x0a,0x7d,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x78,0x30,0x38,0x55,0x4c,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x30,0x5d,0x5e,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x70,0x3d,0x28, - 0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x38,0x3d,0x68,0x2e,0x73,0x30,0x5e, - 0x68,0x2e,0x73,0x31,0x5e,0x68,0x2e,0x73,0x32,0x5e,0x68,0x2e,0x73,0x33,0x5e,0x68,0x2e,0x73,0x34,0x5e,0x68,0x2e,0x73,0x35,0x5e,0x68,0x2e,0x73,0x36,0x5e,0x68,0x2e, - 0x73,0x37,0x5e,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x4b,0x53,0x5f,0x50,0x41,0x52,0x49,0x54,0x59,0x3b,0x0a,0x70,0x3d,0x53,0x6b,0x65,0x69,0x6e,0x35,0x31,0x32,0x42,0x6c, - 0x6f,0x63,0x6b,0x28,0x70,0x2c,0x68,0x2c,0x68,0x38,0x2c,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x70,0x2e,0x73,0x33,0x3c,0x3d,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x20, - 0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x49,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x6f, - 0x75,0x74,0x70,0x75,0x74,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x49,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x28, - 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x6f,0x75,0x74,0x70,0x75,0x74,0x29,0x5b,0x6f,0x75,0x74,0x49,0x64,0x78,0x5d, - 0x3d,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x2b,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f, - 0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x57,0x41, - 0x50,0x38,0x28,0x78,0x29,0x20,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x73,0x5f,0x75,0x63,0x68,0x61,0x72,0x38,0x28,0x78,0x29,0x2e,0x73,0x37,0x36,0x35, - 0x34,0x33,0x32,0x31,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4a,0x48,0x58,0x4f,0x52,0x20,0x5c,0x0a,0x68,0x30,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e, - 0x70,0x75,0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x30,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x31,0x68, - 0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x31,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x33,0x5d,0x3b, - 0x20,0x5c,0x0a,0x68,0x32,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x32,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70, - 0x75,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x33,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x33,0x6c,0x20, - 0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a,0x5c,0x0a,0x45,0x38,0x3b,0x20,0x5c,0x0a,0x5c,0x0a,0x68,0x34,0x68,0x20,0x5e,0x3d,0x20, - 0x69,0x6e,0x70,0x75,0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x34,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x68, - 0x35,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x35,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x33, - 0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x36,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x36,0x6c,0x20,0x5e,0x3d,0x20,0x69, - 0x6e,0x70,0x75,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x37,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x37, - 0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x37,0x5d,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x4a,0x48,0x28,0x5f, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, - 0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75, - 0x74,0x70,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a, - 0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64, - 0x78,0x3c,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d, - 0x32,0x35,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x68,0x30,0x68,0x3d,0x30, - 0x78,0x45,0x42,0x44,0x33,0x32,0x30,0x32,0x43,0x34,0x31,0x41,0x33,0x39,0x38,0x45,0x42,0x55,0x4c,0x2c,0x68,0x30,0x6c,0x3d,0x30,0x78,0x43,0x31,0x34,0x35,0x42,0x32, - 0x39,0x43,0x37,0x42,0x42,0x45,0x43,0x44,0x39,0x32,0x55,0x4c,0x2c,0x68,0x31,0x68,0x3d,0x30,0x78,0x46,0x41,0x43,0x37,0x44,0x34,0x36,0x30,0x39,0x31,0x35,0x31,0x39, - 0x33,0x31,0x43,0x55,0x4c,0x2c,0x68,0x31,0x6c,0x3d,0x30,0x78,0x30,0x33,0x38,0x41,0x35,0x30,0x37,0x45,0x44,0x36,0x38,0x32,0x30,0x30,0x32,0x36,0x55,0x4c,0x2c,0x68, - 0x32,0x68,0x3d,0x30,0x78,0x34,0x35,0x42,0x39,0x32,0x36,0x37,0x37,0x32,0x36,0x39,0x45,0x32,0x33,0x41,0x34,0x55,0x4c,0x2c,0x68,0x32,0x6c,0x3d,0x30,0x78,0x37,0x37, - 0x39,0x34,0x31,0x41,0x44,0x34,0x34,0x38,0x31,0x41,0x46,0x42,0x45,0x30,0x55,0x4c,0x2c,0x68,0x33,0x68,0x3d,0x30,0x78,0x37,0x41,0x31,0x37,0x36,0x42,0x30,0x32,0x32, - 0x36,0x41,0x42,0x42,0x35,0x43,0x44,0x55,0x4c,0x2c,0x68,0x33,0x6c,0x3d,0x30,0x78,0x41,0x38,0x32,0x46,0x46,0x46,0x30,0x46,0x34,0x32,0x32,0x34,0x46,0x30,0x35,0x36, - 0x55,0x4c,0x3b,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x68,0x34,0x68,0x3d,0x30,0x78,0x37,0x35,0x34,0x44,0x32,0x45,0x37,0x46,0x38,0x39,0x39,0x36,0x41,0x33, - 0x37,0x31,0x55,0x4c,0x2c,0x68,0x34,0x6c,0x3d,0x30,0x78,0x36,0x32,0x45,0x32,0x37,0x44,0x46,0x37,0x30,0x38,0x34,0x39,0x31,0x34,0x31,0x44,0x55,0x4c,0x2c,0x68,0x35, - 0x68,0x3d,0x30,0x78,0x39,0x34,0x38,0x46,0x32,0x34,0x37,0x36,0x46,0x37,0x39,0x35,0x37,0x36,0x32,0x37,0x55,0x4c,0x2c,0x68,0x35,0x6c,0x3d,0x30,0x78,0x36,0x43,0x32, - 0x39,0x38,0x30,0x34,0x37,0x35,0x37,0x42,0x36,0x44,0x35,0x38,0x37,0x55,0x4c,0x2c,0x68,0x36,0x68,0x3d,0x30,0x78,0x36,0x43,0x30,0x44,0x38,0x45,0x41,0x43,0x32,0x44, - 0x32,0x37,0x35,0x45,0x35,0x43,0x55,0x4c,0x2c,0x68,0x36,0x6c,0x3d,0x30,0x78,0x30,0x46,0x37,0x41,0x30,0x35,0x35,0x37,0x43,0x36,0x35,0x30,0x38,0x34,0x35,0x31,0x55, - 0x4c,0x2c,0x68,0x37,0x68,0x3d,0x30,0x78,0x45,0x41,0x31,0x32,0x32,0x34,0x37,0x30,0x36,0x37,0x44,0x33,0x45,0x34,0x37,0x42,0x55,0x4c,0x2c,0x68,0x37,0x6c,0x3d,0x30, - 0x78,0x36,0x39,0x44,0x37,0x31,0x43,0x44,0x33,0x31,0x33,0x41,0x42,0x45,0x33,0x38,0x39,0x55,0x4c,0x3b,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x74,0x6d,0x70, - 0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x33,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f, - 0x6e,0x67,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x38,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x65,0x64,0x3d,0x69, - 0x3c,0x3c,0x33,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a, - 0x69,0x6e,0x70,0x75,0x74,0x5b,0x78,0x5d,0x3d,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x73,0x68,0x69,0x66,0x74,0x65,0x64,0x2b,0x78,0x5d,0x29,0x3b,0x0a,0x7d,0x0a, - 0x4a,0x48,0x58,0x4f,0x52,0x3b,0x0a,0x7d,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x28,0x73,0x74,0x61, - 0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x29,0x2c,0x30,0x78,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78, - 0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x20,0x7d,0x3b,0x0a,0x4a,0x48,0x58, - 0x4f,0x52,0x3b,0x0a,0x7d,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c, + 0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f, + 0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43, + 0x48,0x55,0x4e,0x4b,0x2a,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x61,0x5b,0x30, + 0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x34,0x5d,0x3b,0x0a,0x62,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74, + 0x65,0x73,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x36,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x5d,0x5e, + 0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x35,0x5d,0x3b,0x0a,0x62,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73, + 0x5b,0x37,0x5d,0x3b,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x62,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f, + 0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x75,0x69, + 0x6e,0x74,0x20,0x69,0x64,0x78,0x30,0x3d,0x61,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f, + 0x43,0x4e,0x5f,0x43,0x43,0x58,0x29,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x3d,0x28,0x66,0x6c,0x6f,0x61,0x74,0x34,0x29, + 0x28,0x30,0x2e,0x30,0x66,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x6f,0x6e,0x63,0x5f,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74, + 0x34,0x29,0x28,0x30,0x78,0x38,0x30,0x37,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x6f,0x6e, + 0x63,0x5f,0x75,0x3d,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x28,0x30,0x78,0x34,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x3d,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x28,0x30,0x78,0x34,0x44,0x46,0x46,0x46,0x46,0x46,0x46,0x55, + 0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x43,0x4e,0x5f,0x55,0x4e,0x52,0x4f, + 0x4c,0x4c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3b,0x20,0x2b, + 0x2b,0x69,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30, + 0x5d,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29, + 0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x43,0x43,0x58,0x29,0x0a,0x7b,0x0a,0x66, + 0x6c,0x6f,0x61,0x74,0x34,0x20,0x72,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x5f,0x72,0x74,0x65,0x28,0x28,0x28,0x69,0x6e,0x74, + 0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x29,0x2b,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x3b,0x0a,0x72,0x3d,0x72,0x2a,0x72,0x2a,0x72,0x3b,0x0a,0x72,0x3d, + 0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x72,0x29,0x26,0x63,0x6f,0x6e,0x63,0x5f,0x74,0x29,0x7c,0x63, + 0x6f,0x6e,0x63,0x5f,0x75,0x29,0x3b,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x5f,0x6f,0x6c,0x64,0x3d,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x3b,0x0a,0x63, + 0x6f,0x6e,0x63,0x5f,0x76,0x61,0x72,0x2b,0x3d,0x72,0x3b,0x0a,0x63,0x5f,0x6f,0x6c,0x64,0x3d,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x28,0x61,0x73,0x5f, + 0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x5f,0x6f,0x6c,0x64,0x29,0x26,0x63,0x6f,0x6e,0x63,0x5f,0x74,0x29,0x7c,0x63,0x6f,0x6e,0x63,0x5f,0x75,0x29,0x3b,0x0a,0x28,0x28, + 0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x69,0x6e,0x74,0x34,0x5f,0x72,0x74,0x7a, + 0x28,0x63,0x5f,0x6f,0x6c,0x64,0x2a,0x61,0x73,0x5f,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x63,0x6f,0x6e,0x63,0x5f,0x76,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x54,0x77, + 0x6f,0x5f,0x54,0x61,0x62,0x6c,0x65,0x73,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b, + 0x30,0x5d,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b, + 0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x62,0x5f,0x78,0x5e,0x28,0x28,0x75,0x69,0x6e,0x74,0x34, + 0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x74,0x6d,0x70,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29, + 0x3e,0x3e,0x34,0x29,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d,0x2b,0x3d,0x63,0x5b,0x30,0x5d,0x2a,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29, + 0x2e,0x73,0x30,0x3b,0x0a,0x61,0x5b,0x30,0x5d,0x2b,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x63,0x5b,0x30,0x5d,0x2c,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32, + 0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x61,0x73,0x5f,0x75,0x69, + 0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20, + 0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b, + 0x0a,0x69,0x64,0x78,0x30,0x3d,0x61,0x5b,0x30,0x5d,0x3b,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3b, + 0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48, + 0x45,0x41,0x56,0x59,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x6e,0x3d,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26, + 0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x29,0x29,0x29,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x3d,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x68,0x65, + 0x61,0x76,0x79,0x28,0x6e,0x2e,0x73,0x30,0x2c,0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x7c,0x30,0x78,0x35,0x29,0x3b,0x0a,0x2a,0x28,0x28, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28, + 0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x29,0x29,0x29,0x3d,0x6e,0x2e,0x73,0x30,0x5e,0x71,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28, + 0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x58,0x48,0x56,0x29,0x0a,0x69,0x64,0x78,0x30,0x3d, + 0x28,0x7e,0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x29,0x5e,0x71,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x69,0x64,0x78,0x30,0x3d,0x61, + 0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x5e,0x71,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, + 0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e, + 0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f, + 0x43,0x4e,0x5f,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x31,0x28,0x70,0x29,0x20,0x5c,0x0a,0x75,0x69, + 0x6e,0x74,0x20,0x74,0x61,0x62,0x6c,0x65,0x3d,0x30,0x78,0x37,0x35,0x33,0x31,0x30,0x55,0x3b,0x20,0x5c,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x6e,0x64,0x65,0x78,0x3d, + 0x28,0x28,0x28,0x70,0x29,0x2e,0x73,0x32,0x3e,0x3e,0x32,0x36,0x29,0x26,0x31,0x32,0x29,0x7c,0x28,0x28,0x28,0x70,0x29,0x2e,0x73,0x32,0x3e,0x3e,0x32,0x33,0x29,0x26, + 0x32,0x29,0x3b,0x20,0x5c,0x0a,0x28,0x70,0x29,0x2e,0x73,0x32,0x20,0x5e,0x3d,0x20,0x28,0x28,0x74,0x61,0x62,0x6c,0x65,0x3e,0x3e,0x69,0x6e,0x64,0x65,0x78,0x29,0x26, + 0x30,0x78,0x33,0x30,0x55,0x29,0x3c,0x3c,0x32,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x32,0x28,0x70,0x29, + 0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x32,0x20,0x2a,0x29,0x26,0x28,0x70,0x29,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x5f, + 0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x49,0x4e,0x49,0x54,0x28,0x29,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61, + 0x6b,0x31,0x5f,0x32,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x69,0x6e,0x70,0x75,0x74,0x5b,0x34,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b, + 0x31,0x5f,0x32,0x2e,0x73,0x30,0x20,0x3e,0x3e,0x3d,0x20,0x32,0x34,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x30,0x7c,0x3d,0x74,0x77, + 0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x31,0x3c,0x3c,0x38,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x2e,0x73,0x31,0x3d,0x28,0x75,0x69,0x6e, + 0x74,0x29,0x20,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x5c,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x20, + 0x5e,0x3d,0x20,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62, + 0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x57,0x4f,0x52,0x4b, + 0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x31,0x28,0x5f,0x5f, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73, + 0x74,0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x5b,0x32,0x5d, + 0x2c,0x62,0x5b,0x32,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45, + 0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78, + 0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20, + 0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x20,0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53, + 0x31,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43, + 0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x74,0x77,0x65,0x61,0x6b, + 0x31,0x5f,0x32,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x62,0x5f,0x78,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64, + 0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20, + 0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46, + 0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63, + 0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34, + 0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73, + 0x65,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66, + 0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f, + 0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x2a,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29, + 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x34, + 0x5d,0x3b,0x0a,0x62,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x36,0x5d,0x3b,0x0a,0x61,0x5b,0x31, + 0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x35,0x5d,0x3b,0x0a,0x62,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74, + 0x65,0x73,0x5b,0x33,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x37,0x5d,0x3b,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x62, + 0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x49,0x4e,0x49,0x54,0x28,0x29,0x3b,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e, + 0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x28, + 0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x75,0x69,0x6e,0x74, + 0x20,0x69,0x64,0x78,0x30,0x3d,0x61,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x5f,0x30,0x20,0x69,0x64,0x78,0x30,0x0a,0x23, + 0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x44,0x58,0x5f,0x30,0x20,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x5b,0x30,0x5d, + 0x29,0x2e,0x73,0x30,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x43,0x4e,0x5f,0x55,0x4e, + 0x52,0x4f,0x4c,0x4c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3b, + 0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x63,0x5b,0x32,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29, + 0x5b,0x30,0x5d,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x49,0x44,0x58,0x5f,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e, + 0x3e,0x34,0x29,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59, + 0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64, + 0x5f,0x62,0x69,0x74,0x74,0x75,0x62,0x65,0x32,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29, + 0x5b,0x30,0x5d,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x28,0x28,0x75,0x69, + 0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x5f,0x54,0x77,0x6f,0x5f,0x54,0x61,0x62,0x6c,0x65,0x73, + 0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x2c,0x28,0x28,0x75,0x69,0x6e, + 0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x62,0x5f,0x78,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69,0x6e, + 0x74,0x34,0x20,0x2a,0x29,0x63,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x31,0x28,0x62,0x5f,0x78,0x29,0x3b,0x0a,0x53,0x63,0x72, + 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x28,0x49,0x44,0x58,0x5f,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3d,0x62,0x5f, + 0x78,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x74,0x6d,0x70,0x3d,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58, + 0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x5d,0x3b,0x0a, + 0x61,0x5b,0x31,0x5d,0x2b,0x3d,0x63,0x5b,0x30,0x5d,0x2a,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x3b,0x0a,0x61,0x5b, + 0x30,0x5d,0x2b,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x63,0x5b,0x30,0x5d,0x2c,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73, + 0x30,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x5f,0x30,0x3d,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x3b,0x0a,0x23, + 0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x52,0x54,0x4f,0x20,0x7c,0x7c,0x20,0x41,0x4c,0x47,0x4f,0x20, + 0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x74,0x77,0x65,0x61,0x6b,0x31,0x5f,0x32,0x5f, + 0x30,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x32,0x20,0x2a,0x29,0x26,0x28,0x61,0x5b,0x30,0x5d,0x29,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x65,0x6e,0x64, + 0x69,0x66,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x32,0x28,0x61,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b, + 0x49,0x44,0x58,0x28,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x5b,0x30,0x5d,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29, + 0x5d,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x56,0x41,0x52,0x49,0x41,0x4e,0x54,0x31,0x5f,0x32,0x28,0x61,0x5b, + 0x31,0x5d,0x29,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x23,0x69,0x66, + 0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f,0x54,0x55,0x42,0x45,0x29,0x0a,0x69,0x64, + 0x78,0x30,0x3d,0x61,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x62,0x5f,0x78,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x63,0x29, + 0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x5f, + 0x54,0x55,0x42,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x6e,0x3d,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28,0x28,0x69,0x64,0x78,0x30,0x26, + 0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x29,0x29,0x29,0x3b,0x0a,0x6c,0x6f,0x6e,0x67,0x20,0x71,0x3d,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f,0x68,0x65, + 0x61,0x76,0x79,0x28,0x6e,0x2e,0x73,0x30,0x2c,0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x7c,0x30,0x78,0x35,0x29,0x3b,0x0a,0x2a,0x28,0x28, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x28,0x49,0x44,0x58,0x28, + 0x28,0x69,0x64,0x78,0x30,0x26,0x4d,0x41,0x53,0x4b,0x29,0x3e,0x3e,0x34,0x29,0x29,0x29,0x29,0x3d,0x6e,0x2e,0x73,0x30,0x5e,0x71,0x3b,0x0a,0x69,0x64,0x78,0x30,0x3d, + 0x61,0x73,0x5f,0x69,0x6e,0x74,0x34,0x28,0x6e,0x29,0x2e,0x73,0x32,0x5e,0x71,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65, + 0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d, + 0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x49,0x44,0x58,0x5f,0x30,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x42,0x41,0x53,0x45,0x20,0x3d, + 0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x32,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64, + 0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29, + 0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x31,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e, + 0x67,0x20,0x2a,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20, + 0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x5b,0x32,0x5d,0x2c,0x62,0x5b,0x34,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53, + 0x32,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x33,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49, + 0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c, + 0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d, + 0x74,0x6d,0x70,0x3b,0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53, + 0x32,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x33,0x5b,0x69,0x5d,0x3d,0x72,0x6f, + 0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x32,0x34,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43, + 0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78, + 0x3b,0x0a,0x23,0x69,0x66,0x20,0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x29, + 0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3e,0x3e,0x32, + 0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30, + 0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a, + 0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x53,0x63,0x72,0x61,0x74, + 0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45, + 0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64, + 0x28,0x30,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55, + 0x4e,0x4b,0x2a,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6e,0x64,0x69, + 0x66,0x0a,0x61,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x30,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x34,0x5d,0x3b,0x0a,0x61,0x5b,0x31,0x5d, + 0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x35,0x5d,0x3b,0x0a,0x62,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65, + 0x73,0x5b,0x32,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x36,0x5d,0x3b,0x0a,0x62,0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x33,0x5d,0x5e,0x73, + 0x74,0x61,0x74,0x65,0x73,0x5b,0x37,0x5d,0x3b,0x0a,0x62,0x5b,0x32,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x38,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b, + 0x31,0x30,0x5d,0x3b,0x0a,0x62,0x5b,0x33,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x39,0x5d,0x5e,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x31,0x5d,0x3b,0x0a, + 0x7d,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x62,0x78,0x30,0x3d,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x62,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x75, + 0x6c,0x6f,0x6e,0x67,0x32,0x20,0x62,0x78,0x31,0x3d,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x62,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x6d,0x65,0x6d,0x5f, + 0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x64, + 0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x31,0x36,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x62,0x75,0x66,0x5b,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45, + 0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69, + 0x6e,0x65,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x62,0x75,0x66,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c, + 0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b, + 0x28,0x4e,0x29,0x20,0x28,0x2a,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, + 0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x29,0x20,0x2b,0x20,0x28,0x69,0x64,0x78,0x31, + 0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45, + 0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44, + 0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29,0x20,0x28,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f, + 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x20,0x2b,0x20,0x28,0x69, + 0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f, + 0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43, + 0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29,0x20,0x28,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x20,0x2b,0x20,0x6d,0x75,0x6c,0x32, + 0x34,0x28,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x69,0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x2c,0x20,0x54,0x68,0x72,0x65,0x61, + 0x64,0x73,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x4e,0x29,0x20,0x28,0x2a,0x28, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72, + 0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x20,0x2b,0x20,0x28,0x28,0x28,0x69,0x64,0x78,0x20,0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20, + 0x34,0x29,0x29,0x20,0x25,0x20,0x28,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x20,0x2b,0x20,0x28,0x28,0x69,0x64,0x78,0x20, + 0x5e,0x20,0x28,0x4e,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x20,0x2f,0x20,0x28,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x20, + 0x2a,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x28,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x20,0x3c,0x3c,0x20,0x34,0x29,0x29,0x29,0x29, + 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f, + 0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x0a,0x75,0x69,0x6e, + 0x74,0x20,0x73,0x71,0x72,0x74,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x31,0x33, + 0x5d,0x29,0x2e,0x73,0x30,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x43,0x4e,0x5f,0x55,0x4e,0x52,0x4f,0x4c,0x4c,0x0a, + 0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x49,0x54,0x45,0x52,0x41,0x54,0x49,0x4f,0x4e,0x53,0x3b,0x20,0x2b,0x2b,0x69,0x29, + 0x20,0x7b,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x0a,0x75,0x69,0x6e,0x74, + 0x20,0x69,0x64,0x78,0x3d,0x61,0x5b,0x30,0x5d,0x26,0x30,0x78,0x31,0x46,0x46,0x46,0x43,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x31,0x3d,0x61,0x5b, + 0x30,0x5d,0x26,0x30,0x78,0x33,0x30,0x3b,0x0a,0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28, + 0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78, + 0x3d,0x61,0x5b,0x30,0x5d,0x26,0x4d,0x41,0x53,0x4b,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x63,0x3d,0x53,0x43,0x52,0x41,0x54, + 0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30,0x29,0x3b,0x0a,0x63,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30, + 0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x63,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30, + 0x5d,0x29,0x3b,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x28,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x52,0x57,0x5a,0x29, + 0x20,0x7c,0x7c,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x55,0x50,0x58,0x32,0x29,0x29,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43, + 0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75, + 0x6e,0x6b,0x32,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32, + 0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x33,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67, + 0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41, + 0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63, + 0x68,0x75,0x6e,0x6b,0x32,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b, + 0x28,0x32,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x33,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f, + 0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66, + 0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68, + 0x75,0x6e,0x6b,0x33,0x2b,0x62,0x78,0x31,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x3d,0x61, + 0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x31,0x2b,0x62,0x78,0x30,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f, + 0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x32,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67, + 0x32,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30, + 0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x62,0x78,0x30,0x29,0x5e,0x63,0x3b,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43, + 0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28, + 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64, + 0x78,0x29,0x3d,0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3b,0x0a,0x69,0x64,0x78,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e, + 0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x26,0x30,0x78,0x31,0x46,0x46,0x46,0x43,0x30,0x3b,0x0a,0x69,0x64,0x78,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67, + 0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x26,0x30,0x78,0x33,0x30,0x3b,0x0a,0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3d,0x2a, + 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x63,0x68, + 0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x69,0x64,0x78, + 0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x26,0x4d,0x41,0x53,0x4b,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69, + 0x6e,0x74,0x34,0x20,0x74,0x6d,0x70,0x3d,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30,0x29,0x3b,0x0a,0x7b,0x0a,0x74, + 0x6d,0x70,0x2e,0x73,0x30,0x20,0x5e,0x3d,0x20,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2e,0x73,0x30,0x3b,0x0a,0x74,0x6d,0x70, + 0x2e,0x73,0x31,0x20,0x5e,0x3d,0x20,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2e,0x73,0x31,0x5e,0x73,0x71,0x72,0x74,0x5f,0x72, + 0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x66,0x61,0x73,0x74,0x5f,0x64,0x69,0x76,0x5f, + 0x76,0x32,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x31,0x2c,0x28,0x63,0x2e,0x73,0x30,0x2b,0x28,0x73,0x71,0x72,0x74,0x5f,0x72, + 0x65,0x73,0x75,0x6c,0x74,0x3c,0x3c,0x31,0x29,0x29,0x7c,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x55,0x4c,0x29,0x3b,0x0a,0x73,0x71,0x72,0x74,0x5f,0x72, + 0x65,0x73,0x75,0x6c,0x74,0x3d,0x66,0x61,0x73,0x74,0x5f,0x73,0x71,0x72,0x74,0x5f,0x76,0x32,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e, + 0x73,0x30,0x2b,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x64,0x69,0x76,0x69,0x73,0x69,0x6f,0x6e,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x29,0x3b,0x0a,0x7d, + 0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x74,0x3b,0x0a,0x74,0x2e,0x73,0x30,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32, + 0x28,0x63,0x29,0x2e,0x73,0x30,0x2c,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73,0x30,0x29,0x3b,0x0a,0x74,0x2e,0x73,0x31,0x3d, + 0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x63,0x29,0x2e,0x73,0x30,0x2a,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x6d,0x70,0x29,0x2e,0x73, + 0x30,0x3b,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x31,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e, + 0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x29,0x5e,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x32,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43,0x48, + 0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x29,0x3b,0x0a,0x74,0x20,0x5e,0x3d,0x20,0x63,0x68,0x75,0x6e,0x6b,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x63,0x68,0x75,0x6e,0x6b,0x33,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x53,0x43,0x52,0x41,0x54,0x43, + 0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c, + 0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x52,0x57,0x5a,0x29,0x20,0x7c,0x7c,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x55, + 0x50,0x58,0x32,0x29,0x29,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e, + 0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x31,0x2b,0x62,0x78,0x31,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b, + 0x28,0x32,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x33,0x2b,0x62,0x78,0x30,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43, + 0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x32,0x2b,0x28,0x28, + 0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41, + 0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x31,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x33,0x2b,0x62,0x78,0x31,0x29,0x3b, + 0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x32,0x29,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68, + 0x75,0x6e,0x6b,0x31,0x2b,0x62,0x78,0x30,0x29,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x33,0x29,0x3d,0x61, + 0x73,0x5f,0x75,0x69,0x6e,0x74,0x34,0x28,0x63,0x68,0x75,0x6e,0x6b,0x32,0x2b,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d,0x29, + 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x61,0x5b,0x31,0x5d,0x2b,0x3d,0x74,0x2e,0x73,0x31,0x3b,0x0a,0x61,0x5b,0x30,0x5d,0x2b,0x3d,0x74,0x2e,0x73, + 0x30,0x3b,0x0a,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x28,0x30,0x29,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a, + 0x29,0x61,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x5f,0x5f,0x4e,0x56,0x5f,0x43,0x4c,0x5f,0x43,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e, + 0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x63,0x68,0x61,0x72,0x2a,0x29,0x28,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x29,0x2b,0x69,0x64,0x78,0x29,0x3d,0x2a,0x73,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x5f,0x6c,0x69,0x6e,0x65,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x61,0x29,0x5b,0x30,0x5d, + 0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x62,0x78,0x31,0x3d,0x62,0x78,0x30,0x3b,0x0a,0x62,0x78,0x30,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28, + 0x63,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x0a,0x7d,0x0a, + 0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b, + 0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f, + 0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x38,0x2c,0x38,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20, + 0x76,0x6f,0x69,0x64,0x20,0x63,0x6e,0x32,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x30,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20, + 0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x31,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x2c, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x33,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65, + 0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x30,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45, + 0x53,0x31,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x32,0x5b,0x32,0x35,0x36,0x5d,0x2c,0x41,0x45,0x53,0x33,0x5b,0x32,0x35,0x36,0x5d,0x3b,0x0a,0x75,0x69,0x6e, + 0x74,0x20,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x5b,0x34,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x34,0x20,0x74,0x65,0x78,0x74,0x3b,0x0a, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x67,0x49,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28, + 0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2a,0x38,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61, + 0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x35,0x36,0x3b,0x20,0x69,0x2b,0x3d,0x38,0x2a,0x38,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x20,0x74,0x6d,0x70,0x3d,0x41,0x45,0x53,0x30,0x5f,0x43,0x5b,0x69,0x5d,0x3b,0x0a,0x41,0x45,0x53,0x30,0x5b,0x69,0x5d,0x3d,0x74,0x6d,0x70,0x3b, + 0x0a,0x41,0x45,0x53,0x31,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x38,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x32,0x5b,0x69,0x5d, + 0x3d,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x74,0x6d,0x70,0x2c,0x31,0x36,0x55,0x29,0x3b,0x0a,0x41,0x45,0x53,0x33,0x5b,0x69,0x5d,0x3d,0x72,0x6f,0x74,0x61,0x74,0x65, + 0x28,0x74,0x6d,0x70,0x2c,0x32,0x34,0x55,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d, + 0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x69, + 0x66,0x20,0x28,0x53,0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x30,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53,0x54,0x52,0x49, + 0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x31,0x29,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59, + 0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b, + 0x3d,0x28,0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52, + 0x4b,0x53,0x49,0x5a,0x45,0x2b,0x28,0x67,0x49,0x64,0x78,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x53, + 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x53, + 0x54,0x52,0x49,0x44,0x45,0x44,0x5f,0x49,0x4e,0x44,0x45,0x58,0x20,0x3d,0x3d,0x20,0x32,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x3d,0x28, + 0x67,0x49,0x64,0x78,0x2f,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x2a,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x53, + 0x49,0x5a,0x45,0x2b,0x4d,0x45,0x4d,0x5f,0x43,0x48,0x55,0x4e,0x4b,0x2a,0x28,0x67,0x49,0x64,0x78,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x53,0x49,0x5a,0x45,0x29,0x3b, + 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x23,0x69,0x66,0x20,0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x54,0x61,0x68,0x69,0x74,0x69,0x5f,0x5f,0x29,0x20, + 0x7c,0x7c,0x20,0x64,0x65,0x66,0x69,0x6e,0x65,0x64,0x28,0x5f,0x5f,0x50,0x69,0x74,0x63,0x61,0x69,0x72,0x6e,0x5f,0x5f,0x29,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74, + 0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64, + 0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x2b,0x34,0x5d,0x3b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x76,0x6c,0x6f, + 0x61,0x64,0x34,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x34,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x74,0x65,0x78,0x74,0x3d,0x76,0x6c,0x6f,0x61,0x64, + 0x34,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x34,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64, + 0x4b,0x65,0x79,0x32,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x31,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x41,0x45,0x53,0x45,0x78,0x70,0x61,0x6e,0x64,0x4b,0x65,0x79,0x32, + 0x35,0x36,0x28,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f, + 0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49, + 0x4c,0x59,0x20,0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x34,0x20,0x78,0x69,0x6e,0x31,0x5b,0x38,0x5d,0x5b,0x38,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x20,0x78, + 0x69,0x6e,0x32,0x5b,0x38,0x5d,0x5b,0x38,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69,0x6e,0x31,0x5f,0x73, + 0x74,0x6f,0x72,0x65,0x3d,0x26,0x78,0x69,0x6e,0x31,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x5d,0x5b,0x67,0x65,0x74,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69,0x6e, + 0x31,0x5f,0x6c,0x6f,0x61,0x64,0x3d,0x26,0x78,0x69,0x6e,0x31,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x31,0x29, + 0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69,0x6e,0x32,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x26,0x78,0x69,0x6e,0x32,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61, + 0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63, + 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x78,0x69,0x6e,0x32,0x5f,0x6c,0x6f,0x61,0x64,0x3d,0x26,0x78,0x69,0x6e,0x32,0x5b,0x28,0x67,0x65,0x74,0x5f,0x6c, + 0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x31,0x29,0x20,0x25,0x20,0x38,0x5d,0x5b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, + 0x30,0x29,0x5d,0x3b,0x0a,0x2a,0x78,0x69,0x6e,0x32,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x28,0x30,0x2c,0x30,0x2c,0x30,0x2c,0x30, + 0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20,0x3d,0x3d,0x20, + 0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20, + 0x32,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x2c,0x69,0x31,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29, + 0x3b,0x20,0x69,0x3c,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x37,0x29,0x3b,0x20,0x2b,0x2b,0x69,0x2c,0x69,0x31,0x3d,0x28,0x69,0x31,0x2b,0x31,0x36,0x29,0x20, + 0x25,0x20,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x34,0x29,0x29,0x0a,0x7b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x69,0x31,0x29,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f, + 0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x32,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a, + 0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a, + 0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x74,0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45, + 0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61, + 0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a,0x5d,0x29,0x3b,0x0a,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x74,0x65,0x78,0x74,0x3b, + 0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28,0x69,0x31,0x2b,0x38,0x29,0x5d,0x3b,0x0a, + 0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65, + 0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c, + 0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x74,0x65,0x78,0x74, + 0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x74, + 0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a,0x5d,0x29,0x3b, + 0x0a,0x2a,0x78,0x69,0x6e,0x32,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b, + 0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x32, + 0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64, + 0x31,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c, + 0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x28,0x4d,0x45,0x4d,0x4f,0x52,0x59,0x3e,0x3e,0x37,0x29, + 0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5b,0x49,0x44,0x58,0x28, + 0x28,0x69,0x3c,0x3c,0x33,0x29,0x2b,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x31,0x29,0x5d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f, + 0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x28,0x75,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x74, + 0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41,0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53, + 0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20,0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a, + 0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x5f,0x46,0x41,0x4d,0x49,0x4c,0x59,0x20, + 0x3d,0x3d,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x29,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f, + 0x6c,0x6c,0x20,0x31,0x36,0x0a,0x66,0x6f,0x72,0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x36,0x3b,0x20,0x69,0x2b,0x2b,0x29, + 0x0a,0x7b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x30,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d, + 0x30,0x3b,0x20,0x6a,0x3c,0x31,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x20,0x7b,0x0a,0x74,0x65,0x78,0x74,0x3d,0x41,0x45,0x53,0x5f,0x52,0x6f,0x75,0x6e,0x64,0x28,0x41, + 0x45,0x53,0x30,0x2c,0x41,0x45,0x53,0x31,0x2c,0x41,0x45,0x53,0x32,0x2c,0x41,0x45,0x53,0x33,0x2c,0x74,0x65,0x78,0x74,0x2c,0x28,0x28,0x75,0x69,0x6e,0x74,0x34,0x20, + 0x2a,0x29,0x45,0x78,0x70,0x61,0x6e,0x64,0x65,0x64,0x4b,0x65,0x79,0x32,0x29,0x5b,0x6a,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43, + 0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x73,0x74,0x6f,0x72,0x65, + 0x3d,0x74,0x65,0x78,0x74,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e, + 0x43,0x45,0x29,0x3b,0x0a,0x74,0x65,0x78,0x74,0x20,0x5e,0x3d,0x20,0x2a,0x78,0x69,0x6e,0x31,0x5f,0x6c,0x6f,0x61,0x64,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69, + 0x66,0x0a,0x7b,0x0a,0x76,0x73,0x74,0x6f,0x72,0x65,0x32,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x28,0x74,0x65,0x78,0x74,0x29,0x2c,0x67,0x65,0x74,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x2b,0x34,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72, + 0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, + 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x74,0x61,0x74,0x65,0x5f,0x62,0x75,0x66,0x5b,0x38,0x2a,0x32,0x35,0x5d,0x3b,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x21,0x67,0x65,0x74, + 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x31,0x29,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x53, + 0x74,0x61,0x74,0x65,0x3d,0x53,0x74,0x61,0x74,0x65,0x5f,0x62,0x75,0x66,0x2b,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x32, + 0x35,0x3b,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x53,0x74,0x61,0x74,0x65, + 0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x31,0x36,0x30,0x30,0x5f,0x32,0x28,0x53,0x74,0x61, + 0x74,0x65,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x73,0x74,0x61, + 0x74,0x65,0x73,0x5b,0x69,0x5d,0x3d,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63, + 0x68,0x3d,0x53,0x74,0x61,0x74,0x65,0x5b,0x30,0x5d,0x26,0x33,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x64,0x65,0x73, + 0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x31,0x3d,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3d,0x3d,0x30,0x3f,0x42, + 0x72,0x61,0x6e,0x63,0x68,0x30,0x3a,0x42,0x72,0x61,0x6e,0x63,0x68,0x31,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x64, + 0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x3d,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3d,0x3d,0x32, + 0x3f,0x42,0x72,0x61,0x6e,0x63,0x68,0x32,0x3a,0x42,0x72,0x61,0x6e,0x63,0x68,0x33,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20, + 0x2a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x3d,0x53,0x74,0x61,0x74,0x65,0x53,0x77,0x69,0x74,0x63,0x68,0x3c,0x32, + 0x3f,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x31,0x3a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42, + 0x72,0x61,0x6e,0x63,0x68,0x32,0x3b,0x0a,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x5b,0x61,0x74,0x6f,0x6d,0x69,0x63, + 0x5f,0x69,0x6e,0x63,0x28,0x64,0x65,0x73,0x74,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x42,0x72,0x61,0x6e,0x63,0x68,0x2b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x5d, + 0x3d,0x67,0x49,0x64,0x78,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66,0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f, + 0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x53,0x57,0x41,0x50,0x38,0x28,0x78,0x29,0x20, + 0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x35,0x36,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x34,0x30,0x29,0x20,0x26,0x20,0x30,0x78, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x55,0x4c,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x32, + 0x34,0x29,0x20,0x26,0x20,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x20,0x5c,0x0a,0x7c,0x20,0x28, + 0x28,0x28,0x78,0x29,0x3e,0x3e,0x38,0x29,0x26,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x7c,0x28, + 0x28,0x28,0x78,0x29,0x3c,0x3c,0x38,0x29,0x26,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x29,0x20,0x5c, + 0x0a,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x3c,0x3c,0x32,0x34,0x29,0x26,0x30,0x78,0x30,0x30,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x55,0x4c,0x29,0x7c,0x28,0x28,0x28,0x78,0x29,0x3c,0x3c,0x34,0x30,0x29,0x26,0x30,0x78,0x30,0x30,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x55,0x4c,0x29,0x7c,0x28,0x28,0x28,0x78,0x29,0x3c,0x3c,0x35,0x36,0x29,0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x55,0x4c,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x53,0x57,0x41,0x50,0x34,0x28,0x78,0x29,0x20,0x28,0x28,0x28,0x28,0x78,0x29,0x20, + 0x3e,0x3e,0x20,0x32,0x34,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x55,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3e,0x3e,0x20,0x38,0x29,0x20,0x26,0x20, + 0x30,0x78,0x46,0x46,0x30,0x30,0x55,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3c,0x3c,0x20,0x38,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x30,0x30,0x30, + 0x30,0x55,0x29,0x20,0x7c,0x20,0x28,0x28,0x28,0x78,0x29,0x20,0x3c,0x3c,0x20,0x32,0x34,0x29,0x20,0x26,0x20,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x55, + 0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x53,0x6b,0x65,0x69,0x6e,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61, + 0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75,0x74,0x2c,0x75,0x6c,0x6f, + 0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42,0x72,0x61,0x6e,0x63,0x68, + 0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x42,0x72,0x61,0x6e,0x63, + 0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x68,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x2c,0x53,0x4b,0x45, + 0x49,0x4e,0x35,0x31,0x32,0x5f,0x32,0x35,0x36,0x5f,0x49,0x56,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x5b,0x33,0x5d,0x3d,0x7b,0x20,0x30,0x78,0x30,0x30, + 0x55,0x4c,0x2c,0x30,0x78,0x37,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x20,0x7d, + 0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x70,0x2c,0x6d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66, + 0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x34,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x2b,0x3d, + 0x69,0x3c,0x33,0x3f,0x30,0x78,0x34,0x30,0x55,0x4c,0x3a,0x30,0x78,0x30,0x38,0x55,0x4c,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x30,0x5d,0x5e,0x74,0x5b,0x31, + 0x5d,0x3b,0x0a,0x6d,0x3d,0x28,0x69,0x3c,0x33,0x29,0x3f,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x69,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3a,0x28,0x75,0x6c,0x6f, + 0x6e,0x67,0x38,0x29,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c, + 0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x38,0x3d,0x68,0x2e,0x73, + 0x30,0x5e,0x68,0x2e,0x73,0x31,0x5e,0x68,0x2e,0x73,0x32,0x5e,0x68,0x2e,0x73,0x33,0x5e,0x68,0x2e,0x73,0x34,0x5e,0x68,0x2e,0x73,0x35,0x5e,0x68,0x2e,0x73,0x36,0x5e, + 0x68,0x2e,0x73,0x37,0x5e,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x4b,0x53,0x5f,0x50,0x41,0x52,0x49,0x54,0x59,0x3b,0x0a,0x70,0x3d,0x53,0x6b,0x65,0x69,0x6e,0x35,0x31,0x32, + 0x42,0x6c,0x6f,0x63,0x6b,0x28,0x6d,0x2c,0x68,0x2c,0x68,0x38,0x2c,0x74,0x29,0x3b,0x0a,0x68,0x3d,0x6d,0x5e,0x70,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x69,0x3c,0x32, + 0x3f,0x30,0x78,0x33,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3a,0x30,0x78,0x42,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x7d,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x78,0x30,0x38,0x55,0x4c,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d, + 0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x74,0x5b,0x30,0x5d,0x5e, + 0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x70,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x29,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67, + 0x20,0x68,0x38,0x3d,0x68,0x2e,0x73,0x30,0x5e,0x68,0x2e,0x73,0x31,0x5e,0x68,0x2e,0x73,0x32,0x5e,0x68,0x2e,0x73,0x33,0x5e,0x68,0x2e,0x73,0x34,0x5e,0x68,0x2e,0x73, + 0x35,0x5e,0x68,0x2e,0x73,0x36,0x5e,0x68,0x2e,0x73,0x37,0x5e,0x53,0x4b,0x45,0x49,0x4e,0x5f,0x4b,0x53,0x5f,0x50,0x41,0x52,0x49,0x54,0x59,0x3b,0x0a,0x70,0x3d,0x53, + 0x6b,0x65,0x69,0x6e,0x35,0x31,0x32,0x42,0x6c,0x6f,0x63,0x6b,0x28,0x70,0x2c,0x68,0x2c,0x68,0x38,0x2c,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x70,0x2e,0x73,0x33,0x3c, + 0x3d,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x49,0x64,0x78,0x3d,0x61,0x74,0x6f, + 0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x49,0x64,0x78,0x3c, + 0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x6f,0x75,0x74,0x70,0x75,0x74, + 0x29,0x5b,0x6f,0x75,0x74,0x49,0x64,0x78,0x5d,0x3d,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x2b,0x28,0x75,0x69,0x6e,0x74,0x29,0x67, + 0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x6d,0x65,0x6d,0x5f,0x66, + 0x65,0x6e,0x63,0x65,0x28,0x43,0x4c,0x4b,0x5f,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x57,0x41,0x50,0x38,0x28,0x78,0x29,0x20,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x73,0x5f,0x75,0x63,0x68,0x61,0x72, + 0x38,0x28,0x78,0x29,0x2e,0x73,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4a,0x48,0x58,0x4f,0x52,0x20,0x5c,0x0a, + 0x68,0x30,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x30,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b, + 0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x31,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x31,0x6c,0x20,0x5e,0x3d,0x20, + 0x69,0x6e,0x70,0x75,0x74,0x5b,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x32,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c,0x0a,0x68, + 0x32,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x33,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x36, + 0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x33,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x37,0x5d,0x3b,0x20,0x5c,0x0a,0x5c,0x0a,0x45,0x38,0x3b,0x20,0x5c,0x0a, + 0x5c,0x0a,0x68,0x34,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x30,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x34,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75, + 0x74,0x5b,0x31,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x35,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x32,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x35,0x6c,0x20,0x5e, + 0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x33,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x36,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x34,0x5d,0x3b,0x20,0x5c, + 0x0a,0x68,0x36,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x35,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x37,0x68,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74, + 0x5b,0x36,0x5d,0x3b,0x20,0x5c,0x0a,0x68,0x37,0x6c,0x20,0x5e,0x3d,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x37,0x5d,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20, + 0x76,0x6f,0x69,0x64,0x20,0x4a,0x48,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f, + 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20, + 0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78, + 0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b, + 0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x73,0x70,0x68,0x5f, + 0x75,0x36,0x34,0x20,0x68,0x30,0x68,0x3d,0x30,0x78,0x45,0x42,0x44,0x33,0x32,0x30,0x32,0x43,0x34,0x31,0x41,0x33,0x39,0x38,0x45,0x42,0x55,0x4c,0x2c,0x68,0x30,0x6c, + 0x3d,0x30,0x78,0x43,0x31,0x34,0x35,0x42,0x32,0x39,0x43,0x37,0x42,0x42,0x45,0x43,0x44,0x39,0x32,0x55,0x4c,0x2c,0x68,0x31,0x68,0x3d,0x30,0x78,0x46,0x41,0x43,0x37, + 0x44,0x34,0x36,0x30,0x39,0x31,0x35,0x31,0x39,0x33,0x31,0x43,0x55,0x4c,0x2c,0x68,0x31,0x6c,0x3d,0x30,0x78,0x30,0x33,0x38,0x41,0x35,0x30,0x37,0x45,0x44,0x36,0x38, + 0x32,0x30,0x30,0x32,0x36,0x55,0x4c,0x2c,0x68,0x32,0x68,0x3d,0x30,0x78,0x34,0x35,0x42,0x39,0x32,0x36,0x37,0x37,0x32,0x36,0x39,0x45,0x32,0x33,0x41,0x34,0x55,0x4c, + 0x2c,0x68,0x32,0x6c,0x3d,0x30,0x78,0x37,0x37,0x39,0x34,0x31,0x41,0x44,0x34,0x34,0x38,0x31,0x41,0x46,0x42,0x45,0x30,0x55,0x4c,0x2c,0x68,0x33,0x68,0x3d,0x30,0x78, + 0x37,0x41,0x31,0x37,0x36,0x42,0x30,0x32,0x32,0x36,0x41,0x42,0x42,0x35,0x43,0x44,0x55,0x4c,0x2c,0x68,0x33,0x6c,0x3d,0x30,0x78,0x41,0x38,0x32,0x46,0x46,0x46,0x30, + 0x46,0x34,0x32,0x32,0x34,0x46,0x30,0x35,0x36,0x55,0x4c,0x3b,0x0a,0x73,0x70,0x68,0x5f,0x75,0x36,0x34,0x20,0x68,0x34,0x68,0x3d,0x30,0x78,0x37,0x35,0x34,0x44,0x32, + 0x45,0x37,0x46,0x38,0x39,0x39,0x36,0x41,0x33,0x37,0x31,0x55,0x4c,0x2c,0x68,0x34,0x6c,0x3d,0x30,0x78,0x36,0x32,0x45,0x32,0x37,0x44,0x46,0x37,0x30,0x38,0x34,0x39, + 0x31,0x34,0x31,0x44,0x55,0x4c,0x2c,0x68,0x35,0x68,0x3d,0x30,0x78,0x39,0x34,0x38,0x46,0x32,0x34,0x37,0x36,0x46,0x37,0x39,0x35,0x37,0x36,0x32,0x37,0x55,0x4c,0x2c, + 0x68,0x35,0x6c,0x3d,0x30,0x78,0x36,0x43,0x32,0x39,0x38,0x30,0x34,0x37,0x35,0x37,0x42,0x36,0x44,0x35,0x38,0x37,0x55,0x4c,0x2c,0x68,0x36,0x68,0x3d,0x30,0x78,0x36, + 0x43,0x30,0x44,0x38,0x45,0x41,0x43,0x32,0x44,0x32,0x37,0x35,0x45,0x35,0x43,0x55,0x4c,0x2c,0x68,0x36,0x6c,0x3d,0x30,0x78,0x30,0x46,0x37,0x41,0x30,0x35,0x35,0x37, + 0x43,0x36,0x35,0x30,0x38,0x34,0x35,0x31,0x55,0x4c,0x2c,0x68,0x37,0x68,0x3d,0x30,0x78,0x45,0x41,0x31,0x32,0x32,0x34,0x37,0x30,0x36,0x37,0x44,0x33,0x45,0x34,0x37, + 0x42,0x55,0x4c,0x2c,0x68,0x37,0x6c,0x3d,0x30,0x78,0x36,0x39,0x44,0x37,0x31,0x43,0x44,0x33,0x31,0x33,0x41,0x42,0x45,0x33,0x38,0x39,0x55,0x4c,0x3b,0x0a,0x73,0x70, + 0x68,0x5f,0x75,0x36,0x34,0x20,0x74,0x6d,0x70,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x33,0x3b,0x20,0x2b, + 0x2b,0x69,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x38,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20, + 0x73,0x68,0x69,0x66,0x74,0x65,0x64,0x3d,0x69,0x3c,0x3c,0x33,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38, + 0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x69,0x6e,0x70,0x75,0x74,0x5b,0x78,0x5d,0x3d,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x73,0x68,0x69,0x66,0x74,0x65, + 0x64,0x2b,0x78,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x4a,0x48,0x58,0x4f,0x52,0x3b,0x0a,0x7d,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b, + 0x38,0x5d,0x3d,0x7b,0x20,0x28,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x29,0x2c,0x30,0x78,0x38,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c, 0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30, - 0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x34,0x30,0x30,0x36,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x20,0x7d, - 0x3b,0x0a,0x4a,0x48,0x58,0x4f,0x52,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x68,0x37,0x6c,0x3c,0x3d,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e, + 0x55,0x4c,0x20,0x7d,0x3b,0x0a,0x4a,0x48,0x58,0x4f,0x52,0x3b,0x0a,0x7d,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x70,0x75,0x74,0x5b,0x38,0x5d,0x3d, + 0x7b,0x20,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78, + 0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x55,0x4c,0x2c,0x30,0x78,0x34,0x30,0x30,0x36,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x20,0x7d,0x3b,0x0a,0x4a,0x48,0x58,0x4f,0x52,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x68,0x37,0x6c,0x3c,0x3d,0x54,0x61,0x72,0x67, + 0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x49,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69, + 0x6e,0x63,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x49,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29, + 0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x6f,0x75,0x74,0x70,0x75,0x74,0x29,0x5b,0x6f,0x75,0x74, + 0x49,0x64,0x78,0x5d,0x3d,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x2b,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x53,0x57,0x41,0x50,0x34,0x28,0x78,0x29,0x20,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x61,0x73,0x5f,0x75,0x63,0x68,0x61,0x72,0x34,0x28,0x78,0x29,0x2e,0x73,0x33, + 0x32,0x31,0x30,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x42,0x6c,0x61,0x6b,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42, + 0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75,0x74,0x2c,0x75, + 0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42,0x72,0x61,0x6e, + 0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x42,0x72,0x61, + 0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,0x20,0x69,0x6e,0x74,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3b, + 0x0a,0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,0x20,0x69,0x6e,0x74,0x20,0x76,0x5b,0x31,0x36,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x68,0x5b,0x38,0x5d,0x3b,0x0a, + 0x75,0x69,0x6e,0x74,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3d,0x30,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29,0x5b,0x30,0x5d,0x3d,0x76, + 0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x55,0x2c,0x63,0x5f,0x49,0x56,0x32,0x35,0x36,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65, + 0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x33,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20, + 0x2a,0x29,0x6d,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x31,0x36,0x28,0x69,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x31,0x36,0x3b, + 0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x6d,0x5b,0x78,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x6d,0x5b,0x78,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x69,0x74,0x6c, + 0x65,0x6e,0x2b,0x3d,0x35,0x31,0x32,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x6c,0x6f,0x3d,0x28,0x28,0x75, + 0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x68, + 0x69,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x55,0x2c,0x63,0x5f,0x75,0x32,0x35,0x36,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69, + 0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74, + 0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x31,0x34,0x3b,0x20,0x72,0x2b,0x2b,0x29,0x20,0x7b,0x0a,0x47,0x53,0x28,0x30,0x2c,0x34,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78, + 0x43,0x2c,0x30,0x78,0x30,0x29,0x3b,0x0a,0x47,0x53,0x28,0x31,0x2c,0x35,0x2c,0x30,0x78,0x39,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x32,0x29,0x3b,0x0a,0x47,0x53,0x28, + 0x32,0x2c,0x36,0x2c,0x30,0x78,0x41,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x34,0x29,0x3b,0x0a,0x47,0x53,0x28,0x33,0x2c,0x37,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78,0x46, + 0x2c,0x30,0x78,0x36,0x29,0x3b,0x0a,0x47,0x53,0x28,0x30,0x2c,0x35,0x2c,0x30,0x78,0x41,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x38,0x29,0x3b,0x0a,0x47,0x53,0x28,0x31, + 0x2c,0x36,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78,0x43,0x2c,0x30,0x78,0x41,0x29,0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x37,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x44,0x2c, + 0x30,0x78,0x43,0x29,0x3b,0x0a,0x47,0x53,0x28,0x33,0x2c,0x34,0x2c,0x30,0x78,0x39,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x28,0x28,0x75, + 0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x5e, + 0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x6d,0x5b,0x30,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x28,0x28, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x5b,0x34,0x38,0x5d,0x29,0x3b,0x0a,0x6d,0x5b, + 0x31,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65, + 0x73,0x29,0x5b,0x34,0x39,0x5d,0x29,0x3b,0x0a,0x6d,0x5b,0x32,0x5d,0x3d,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x33,0x5d,0x3d, + 0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x34,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x35,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d, + 0x5b,0x36,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x37,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x38,0x5d,0x3d,0x30,0x78,0x30,0x30, + 0x55,0x3b,0x0a,0x6d,0x5b,0x39,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x30,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x31, + 0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x32,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x33,0x5d,0x3d,0x31,0x55,0x3b,0x0a, + 0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x30,0x78,0x36,0x34,0x30,0x3b,0x0a,0x62,0x69,0x74,0x6c,0x65,0x6e,0x2b,0x3d,0x36, + 0x34,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x6c,0x6f,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a, + 0x29,0x68,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x68,0x69,0x3d,0x76,0x6c,0x6f,0x61, + 0x64,0x38,0x28,0x30,0x55,0x2c,0x63,0x5f,0x75,0x32,0x35,0x36,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a, + 0x76,0x5b,0x31,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20, + 0x72,0x3c,0x31,0x34,0x3b,0x20,0x72,0x2b,0x2b,0x29,0x20,0x7b,0x0a,0x47,0x53,0x28,0x30,0x2c,0x34,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x43,0x2c,0x30,0x78,0x30,0x29, + 0x3b,0x0a,0x47,0x53,0x28,0x31,0x2c,0x35,0x2c,0x30,0x78,0x39,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x32,0x29,0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x36,0x2c,0x30,0x78, + 0x41,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x34,0x29,0x3b,0x0a,0x47,0x53,0x28,0x33,0x2c,0x37,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x36,0x29,0x3b, + 0x0a,0x47,0x53,0x28,0x30,0x2c,0x35,0x2c,0x30,0x78,0x41,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x38,0x29,0x3b,0x0a,0x47,0x53,0x28,0x31,0x2c,0x36,0x2c,0x30,0x78,0x42, + 0x2c,0x30,0x78,0x43,0x2c,0x30,0x78,0x41,0x29,0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x37,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x43,0x29,0x3b,0x0a, + 0x47,0x53,0x28,0x33,0x2c,0x34,0x2c,0x30,0x78,0x39,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a, + 0x29,0x68,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x5e,0x28,0x28,0x75,0x69,0x6e,0x74, + 0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b, + 0x2b,0x69,0x29,0x20,0x7b,0x0a,0x68,0x5b,0x69,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x68,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20, + 0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x32,0x29,0x28,0x68,0x5b,0x36,0x5d,0x2c,0x68,0x5b,0x37,0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e, + 0x67,0x28,0x74,0x29,0x3c,0x3d,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x49,0x64, + 0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75, + 0x74,0x49,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x6f, + 0x75,0x74,0x70,0x75,0x74,0x29,0x5b,0x6f,0x75,0x74,0x49,0x64,0x78,0x5d,0x3d,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x2b,0x28,0x75, + 0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a, + 0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x53,0x57,0x41,0x50,0x34,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x47,0x72,0x6f, + 0x65,0x73,0x74,0x6c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72, + 0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b, + 0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74, + 0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53, + 0x74,0x61,0x74,0x65,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55, + 0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x20,0x7d,0x3b,0x0a,0x75,0x6c, + 0x6f,0x6e,0x67,0x20,0x48,0x5b,0x38,0x5d,0x2c,0x4d,0x5b,0x38,0x5d,0x3b,0x0a,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x2a,0x29,0x4d,0x29,0x5b,0x30, + 0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d, + 0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48,0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74,0x61,0x74,0x65,0x5b,0x78, + 0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c, + 0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20, + 0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x78,0x5d,0x5e,0x4d,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7b,0x0a,0x28, + 0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x2a,0x29,0x4d,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x31,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29, + 0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48,0x5b,0x78, + 0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28, + 0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78, + 0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x78,0x5d, + 0x5e,0x4d,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x2a,0x29,0x4d,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c, + 0x6f,0x61,0x64,0x38,0x28,0x32,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78, + 0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48,0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d, + 0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d, + 0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x53,0x74, + 0x61,0x74,0x65,0x5b,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x78,0x5d,0x5e,0x4d,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x4d,0x5b,0x30,0x5d,0x3d,0x73,0x74, + 0x61,0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x3b,0x0a,0x4d,0x5b,0x31,0x5d,0x3d,0x30,0x78,0x38,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x32,0x5d,0x3d,0x30,0x55,0x4c,0x3b, + 0x0a,0x4d,0x5b,0x33,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x34,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x35,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d, + 0x5b,0x36,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x37,0x5d,0x3d,0x30,0x78,0x30,0x34,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30, + 0x55,0x4c,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48, + 0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f, + 0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70, + 0x5b,0x38,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a, + 0x74,0x6d,0x70,0x5b,0x69,0x5d,0x3d,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x69,0x5d,0x5e,0x4d,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a, + 0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x53,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69, + 0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x5b, + 0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x53,0x74,0x61,0x74,0x65,0x5b,0x37,0x5d,0x3c,0x3d,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e, 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x49,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x6f,0x75,0x74,0x70,0x75,0x74, 0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x49,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c, 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x6f,0x75,0x74,0x70,0x75,0x74,0x29,0x5b,0x6f,0x75,0x74,0x49,0x64,0x78,0x5d,0x3d,0x42,0x72,0x61,0x6e, 0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x2b,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73, - 0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x57,0x41,0x50,0x34,0x28,0x78,0x29,0x20, - 0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x28,0x61,0x73,0x5f,0x75,0x63,0x68,0x61,0x72,0x34,0x28,0x78,0x29,0x2e,0x73,0x33,0x32,0x31,0x30,0x29,0x0a,0x5f,0x5f,0x6b,0x65, - 0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x42,0x6c,0x61,0x6b,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a, - 0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67, - 0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64, - 0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72, - 0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64, - 0x78,0x5d,0x3b,0x0a,0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,0x20,0x69,0x6e,0x74,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3b,0x0a,0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64, - 0x20,0x69,0x6e,0x74,0x20,0x76,0x5b,0x31,0x36,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x62,0x69,0x74,0x6c, - 0x65,0x6e,0x3d,0x30,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x55,0x2c, - 0x63,0x5f,0x49,0x56,0x32,0x35,0x36,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30, - 0x3b,0x20,0x69,0x3c,0x33,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x6d,0x29,0x5b,0x30,0x5d,0x3d,0x76, - 0x6c,0x6f,0x61,0x64,0x31,0x36,0x28,0x69,0x2c,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73, - 0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x31,0x36,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x6d, - 0x5b,0x78,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x6d,0x5b,0x78,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x62,0x69,0x74,0x6c,0x65,0x6e,0x2b,0x3d,0x35,0x31,0x32,0x3b,0x0a, - 0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x6c,0x6f,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29, - 0x5b,0x30,0x5d,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x68,0x69,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28, - 0x30,0x55,0x2c,0x63,0x5f,0x75,0x32,0x35,0x36,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31, - 0x33,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x31, - 0x34,0x3b,0x20,0x72,0x2b,0x2b,0x29,0x20,0x7b,0x0a,0x47,0x53,0x28,0x30,0x2c,0x34,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x43,0x2c,0x30,0x78,0x30,0x29,0x3b,0x0a,0x47, - 0x53,0x28,0x31,0x2c,0x35,0x2c,0x30,0x78,0x39,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x32,0x29,0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x36,0x2c,0x30,0x78,0x41,0x2c,0x30, - 0x78,0x45,0x2c,0x30,0x78,0x34,0x29,0x3b,0x0a,0x47,0x53,0x28,0x33,0x2c,0x37,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x36,0x29,0x3b,0x0a,0x47,0x53, - 0x28,0x30,0x2c,0x35,0x2c,0x30,0x78,0x41,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x38,0x29,0x3b,0x0a,0x47,0x53,0x28,0x31,0x2c,0x36,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78, - 0x43,0x2c,0x30,0x78,0x41,0x29,0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x37,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x43,0x29,0x3b,0x0a,0x47,0x53,0x28, - 0x33,0x2c,0x34,0x2c,0x30,0x78,0x39,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29, - 0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x5e,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a, - 0x29,0x76,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x6d,0x5b,0x30,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x5b,0x34,0x38,0x5d,0x29,0x3b,0x0a,0x6d,0x5b,0x31,0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28, - 0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x5b,0x34,0x39,0x5d,0x29,0x3b,0x0a, - 0x6d,0x5b,0x32,0x5d,0x3d,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x33,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b, - 0x34,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x35,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x36,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55, - 0x3b,0x0a,0x6d,0x5b,0x37,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x38,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x39,0x5d,0x3d,0x30, - 0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x30,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x31,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a, - 0x6d,0x5b,0x31,0x32,0x5d,0x3d,0x30,0x78,0x30,0x30,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x33,0x5d,0x3d,0x31,0x55,0x3b,0x0a,0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x30,0x55,0x3b, - 0x0a,0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x30,0x78,0x36,0x34,0x30,0x3b,0x0a,0x62,0x69,0x74,0x6c,0x65,0x6e,0x2b,0x3d,0x36,0x34,0x3b,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74, - 0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x6c,0x6f,0x3d,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x28, - 0x28,0x75,0x69,0x6e,0x74,0x31,0x36,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x2e,0x68,0x69,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x30,0x55,0x2c,0x63,0x5f,0x75, - 0x32,0x35,0x36,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31,0x33,0x5d,0x20,0x5e,0x3d,0x20, - 0x62,0x69,0x74,0x6c,0x65,0x6e,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x31,0x34,0x3b,0x20,0x72,0x2b,0x2b, - 0x29,0x20,0x7b,0x0a,0x47,0x53,0x28,0x30,0x2c,0x34,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x43,0x2c,0x30,0x78,0x30,0x29,0x3b,0x0a,0x47,0x53,0x28,0x31,0x2c,0x35,0x2c, - 0x30,0x78,0x39,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x32,0x29,0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x36,0x2c,0x30,0x78,0x41,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x34, - 0x29,0x3b,0x0a,0x47,0x53,0x28,0x33,0x2c,0x37,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x36,0x29,0x3b,0x0a,0x47,0x53,0x28,0x30,0x2c,0x35,0x2c,0x30, - 0x78,0x41,0x2c,0x30,0x78,0x46,0x2c,0x30,0x78,0x38,0x29,0x3b,0x0a,0x47,0x53,0x28,0x31,0x2c,0x36,0x2c,0x30,0x78,0x42,0x2c,0x30,0x78,0x43,0x2c,0x30,0x78,0x41,0x29, - 0x3b,0x0a,0x47,0x53,0x28,0x32,0x2c,0x37,0x2c,0x30,0x78,0x38,0x2c,0x30,0x78,0x44,0x2c,0x30,0x78,0x43,0x29,0x3b,0x0a,0x47,0x53,0x28,0x33,0x2c,0x34,0x2c,0x30,0x78, - 0x39,0x2c,0x30,0x78,0x45,0x2c,0x30,0x78,0x45,0x29,0x3b,0x0a,0x7d,0x0a,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x68,0x29,0x5b,0x30,0x5d,0x20,0x5e,0x3d, - 0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x30,0x5d,0x5e,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x20,0x2a,0x29,0x76,0x29,0x5b,0x31,0x5d, - 0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x68,0x5b,0x69, - 0x5d,0x3d,0x53,0x57,0x41,0x50,0x34,0x28,0x68,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x32,0x29, - 0x28,0x68,0x5b,0x36,0x5d,0x2c,0x68,0x5b,0x37,0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x74,0x29,0x3c,0x3d,0x54,0x61,0x72, - 0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x49,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f, - 0x69,0x6e,0x63,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x49,0x64,0x78,0x3c,0x30,0x78,0x46,0x46, - 0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x29,0x6f,0x75,0x74,0x70,0x75,0x74,0x29,0x5b,0x6f,0x75, - 0x74,0x49,0x64,0x78,0x5d,0x3d,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x2b,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67, - 0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20, - 0x53,0x57,0x41,0x50,0x34,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x47,0x72,0x6f,0x65,0x73,0x74,0x6c,0x28,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x20,0x2a,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x2a,0x6f,0x75,0x74,0x70,0x75, - 0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x29,0x0a,0x7b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x65,0x74,0x49,0x64,0x78,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x42, - 0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x54,0x68,0x72,0x65,0x61,0x64,0x73,0x5d,0x29,0x20,0x7b,0x0a,0x73,0x74,0x61,0x74,0x65,0x73,0x2b,0x3d,0x32,0x35,0x2a, - 0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x53,0x74,0x61,0x74,0x65,0x5b,0x38,0x5d,0x3d,0x7b, - 0x20,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x55,0x4c,0x2c,0x30,0x78,0x30, - 0x30,0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x20,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x48,0x5b,0x38,0x5d,0x2c, - 0x4d,0x5b,0x38,0x5d,0x3b,0x0a,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x2a,0x29,0x4d,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28, - 0x30,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b, - 0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48,0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d, - 0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x66,0x6f, - 0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x78, - 0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x78,0x5d,0x5e,0x4d,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x2a, - 0x29,0x4d,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x31,0x2c,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69, - 0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48,0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74, - 0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f, - 0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20, - 0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x78,0x5d,0x5e,0x4d,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a, - 0x7d,0x0a,0x7b,0x0a,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x38,0x20,0x2a,0x29,0x4d,0x29,0x5b,0x30,0x5d,0x3d,0x76,0x6c,0x6f,0x61,0x64,0x38,0x28,0x32,0x2c,0x73,0x74, - 0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20, - 0x7b,0x0a,0x48,0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41, - 0x4c,0x4c,0x5f,0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75, - 0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x20,0x5e,0x3d, - 0x20,0x48,0x5b,0x78,0x5d,0x5e,0x4d,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x4d,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x73,0x5b,0x32,0x34,0x5d,0x3b, - 0x0a,0x4d,0x5b,0x31,0x5d,0x3d,0x30,0x78,0x38,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x32,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x33,0x5d,0x3d,0x30,0x55,0x4c, - 0x3b,0x0a,0x4d,0x5b,0x34,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x35,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a,0x4d,0x5b,0x36,0x5d,0x3d,0x30,0x55,0x4c,0x3b,0x0a, - 0x4d,0x5b,0x37,0x5d,0x3d,0x30,0x78,0x30,0x34,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28, - 0x75,0x69,0x6e,0x74,0x20,0x78,0x3d,0x30,0x3b,0x20,0x78,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x78,0x29,0x20,0x7b,0x0a,0x48,0x5b,0x78,0x5d,0x3d,0x4d,0x5b,0x78,0x5d,0x5e, - 0x53,0x74,0x61,0x74,0x65,0x5b,0x78,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x50,0x28,0x48,0x29,0x3b,0x0a,0x50,0x45,0x52, - 0x4d,0x5f,0x53,0x4d,0x41,0x4c,0x4c,0x5f,0x51,0x28,0x4d,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x6d,0x70,0x5b,0x38,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20, - 0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x74,0x6d,0x70,0x5b,0x69,0x5d,0x3d,0x53,0x74, - 0x61,0x74,0x65,0x5b,0x69,0x5d,0x20,0x5e,0x3d,0x20,0x48,0x5b,0x69,0x5d,0x5e,0x4d,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x50,0x45,0x52,0x4d,0x5f,0x53,0x4d,0x41,0x4c, - 0x4c,0x5f,0x50,0x28,0x53,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20, - 0x2b,0x2b,0x69,0x29,0x20,0x7b,0x0a,0x53,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x20,0x5e,0x3d,0x20,0x74,0x6d,0x70,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28, - 0x53,0x74,0x61,0x74,0x65,0x5b,0x37,0x5d,0x3c,0x3d,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6f, - 0x75,0x74,0x49,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69, - 0x66,0x28,0x6f,0x75,0x74,0x49,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x20,0x2a,0x29,0x6f,0x75,0x74,0x70,0x75,0x74,0x29,0x5b,0x6f,0x75,0x74,0x49,0x64,0x78,0x5d,0x3d,0x42,0x72,0x61,0x6e,0x63,0x68,0x42,0x75,0x66,0x5b,0x69,0x64,0x78, - 0x5d,0x2b,0x28,0x75,0x69,0x6e,0x74,0x29,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a, - 0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x00 + 0x65,0x74,0x28,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x00 }; } // namespace xmrig diff --git a/src/backend/opencl/cl/kawpow/kawpow.cl b/src/backend/opencl/cl/kawpow/kawpow.cl index 8f914e8b..c1a6cb2f 100644 --- a/src/backend/opencl/cl/kawpow/kawpow.cl +++ b/src/backend/opencl/cl/kawpow/kawpow.cl @@ -74,7 +74,7 @@ void keccak_f800_round(uint32_t st[25], const int r) // Keccak - implemented as a variant of SHAKE // The width is 800, with a bitrate of 576, a capacity of 224, and no padding // Only need 64 bits of output for mining -void keccak_f800(uint32_t* st) +uint64_t keccak_f800(uint32_t* st) { // Complete all 22 rounds as a separate impl to // evaluate only first 8 words is wasteful of regsters diff --git a/src/backend/opencl/cl/kawpow/kawpow_cl.h b/src/backend/opencl/cl/kawpow/kawpow_cl.h index f514e05d..e5ae5788 100644 --- a/src/backend/opencl/cl/kawpow/kawpow_cl.h +++ b/src/backend/opencl/cl/kawpow/kawpow_cl.h @@ -2,7 +2,7 @@ namespace xmrig { -static const char kawpow_cl[5944] = { +static const char kawpow_cl[5948] = { 0x23,0x69,0x66,0x64,0x65,0x66,0x20,0x63,0x6c,0x5f,0x63,0x6c,0x61,0x6e,0x67,0x5f,0x73,0x74,0x6f,0x72,0x61,0x67,0x65,0x5f,0x63,0x6c,0x61,0x73,0x73,0x5f,0x73,0x70, 0x65,0x63,0x69,0x66,0x69,0x65,0x72,0x73,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x4f,0x50,0x45,0x4e,0x43,0x4c,0x20,0x45,0x58,0x54,0x45,0x4e,0x53,0x49,0x4f, 0x4e,0x20,0x63,0x6c,0x5f,0x63,0x6c,0x61,0x6e,0x67,0x5f,0x73,0x74,0x6f,0x72,0x61,0x67,0x65,0x5f,0x63,0x6c,0x61,0x73,0x73,0x5f,0x73,0x70,0x65,0x63,0x69,0x66,0x69, @@ -76,119 +76,119 @@ static const char kawpow_cl[5944] = { 0x3d,0x73,0x74,0x5b,0x6a,0x2b,0x69,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x35,0x3b,0x20,0x69,0x2b,0x2b, 0x29,0x0a,0x73,0x74,0x5b,0x6a,0x2b,0x69,0x5d,0x20,0x5e,0x3d,0x20,0x28,0x7e,0x62,0x63,0x5b,0x28,0x69,0x2b,0x31,0x29,0x20,0x25,0x20,0x35,0x5d,0x29,0x26,0x62,0x63, 0x5b,0x28,0x69,0x2b,0x32,0x29,0x20,0x25,0x20,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x73,0x74,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x66,0x5f, - 0x72,0x6e,0x64,0x63,0x5b,0x72,0x5d,0x3b,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x28,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c,0x32,0x32,0x3b,0x20, - 0x72,0x2b,0x2b,0x29,0x20,0x7b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x28,0x73,0x74,0x2c,0x72,0x29,0x3b,0x0a, - 0x7d,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x66,0x6e,0x76,0x31,0x61,0x28,0x68,0x2c,0x20,0x64,0x29,0x20,0x28,0x68,0x20,0x3d,0x20,0x28,0x68,0x20, - 0x5e,0x20,0x64,0x29,0x20,0x2a,0x20,0x46,0x4e,0x56,0x5f,0x50,0x52,0x49,0x4d,0x45,0x29,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x73,0x74,0x72,0x75,0x63,0x74, - 0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x7a,0x2c,0x77,0x2c,0x6a,0x73,0x72,0x2c,0x6a,0x63,0x6f,0x6e,0x67,0x3b,0x0a,0x7d,0x20,0x6b,0x69,0x73, - 0x73,0x39,0x39,0x5f,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x69,0x73,0x73,0x39,0x39,0x28,0x6b,0x69,0x73,0x73,0x39,0x39,0x5f,0x74,0x2a, - 0x20,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x73,0x74,0x2d,0x3e,0x7a,0x3d,0x33,0x36,0x39,0x36,0x39,0x2a,0x28,0x73,0x74,0x2d,0x3e,0x7a,0x26,0x36,0x35,0x35,0x33,0x35,0x29, - 0x2b,0x28,0x73,0x74,0x2d,0x3e,0x7a,0x3e,0x3e,0x31,0x36,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x77,0x3d,0x31,0x38,0x30,0x30,0x30,0x2a,0x28,0x73,0x74,0x2d,0x3e,0x77, - 0x26,0x36,0x35,0x35,0x33,0x35,0x29,0x2b,0x28,0x73,0x74,0x2d,0x3e,0x77,0x3e,0x3e,0x31,0x36,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x4d,0x57, - 0x43,0x3d,0x28,0x28,0x73,0x74,0x2d,0x3e,0x7a,0x3c,0x3c,0x31,0x36,0x29,0x2b,0x73,0x74,0x2d,0x3e,0x77,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x20,0x5e, - 0x3d,0x20,0x28,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x20,0x5e,0x3d,0x20,0x28,0x73,0x74,0x2d, - 0x3e,0x6a,0x73,0x72,0x3e,0x3e,0x31,0x33,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x20,0x5e,0x3d,0x20,0x28,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x3c,0x3c, - 0x35,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x63,0x6f,0x6e,0x67,0x3d,0x36,0x39,0x30,0x36,0x39,0x2a,0x73,0x74,0x2d,0x3e,0x6a,0x63,0x6f,0x6e,0x67,0x2b,0x31,0x32, - 0x33,0x34,0x35,0x36,0x37,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x28,0x4d,0x57,0x43,0x5e,0x73,0x74,0x2d,0x3e,0x6a,0x63,0x6f,0x6e,0x67,0x29,0x2b,0x73, - 0x74,0x2d,0x3e,0x6a,0x73,0x72,0x29,0x3b,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6c,0x6c,0x5f,0x6d,0x69,0x78,0x28,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x65,0x65,0x64,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x2c,0x75, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x6d,0x69,0x78,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73, - 0x68,0x3d,0x46,0x4e,0x56,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x49,0x53,0x3b,0x0a,0x6b,0x69,0x73,0x73,0x39,0x39,0x5f,0x74,0x20,0x73,0x74,0x3b, - 0x0a,0x73,0x74,0x2e,0x7a,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x73,0x65,0x65,0x64,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x73, - 0x74,0x2e,0x77,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x73,0x65,0x65,0x64,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x73,0x74,0x2e, - 0x6a,0x73,0x72,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x29,0x3b,0x0a,0x73,0x74,0x2e, - 0x6a,0x63,0x6f,0x6e,0x67,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x29,0x3b,0x0a,0x23, - 0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x50,0x52, - 0x4f,0x47,0x50,0x4f,0x57,0x5f,0x52,0x45,0x47,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x6d,0x69,0x78,0x5b,0x69,0x5d,0x3d,0x6b,0x69,0x73,0x73,0x39,0x39,0x28,0x26, - 0x73,0x74,0x29,0x3b,0x0a,0x7d,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x73,0x74,0x72,0x75,0x63,0x74,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x5d,0x3b,0x0a,0x7d,0x20,0x73,0x68,0x75,0x66,0x66, - 0x6c,0x65,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x73,0x74,0x72,0x75,0x63,0x74,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x33,0x32,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x5d,0x3b,0x0a,0x7d,0x20, - 0x68,0x61,0x73,0x68,0x33,0x32,0x5f,0x74,0x3b,0x0a,0x23,0x69,0x66,0x20,0x50,0x4c,0x41,0x54,0x46,0x4f,0x52,0x4d,0x20,0x21,0x3d,0x20,0x4f,0x50,0x45,0x4e,0x43,0x4c, - 0x5f,0x50,0x4c,0x41,0x54,0x46,0x4f,0x52,0x4d,0x5f,0x4e,0x56,0x49,0x44,0x49,0x41,0x20,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28, - 0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45, - 0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x70,0x72,0x6f, - 0x67,0x70,0x6f,0x77,0x5f,0x73,0x65,0x61,0x72,0x63,0x68,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x61,0x67,0x5f,0x74,0x20,0x63,0x6f,0x6e,0x73,0x74, - 0x2a,0x20,0x67,0x5f,0x64,0x61,0x67,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x6f,0x62,0x5f,0x62,0x6c,0x6f,0x62,0x2c, - 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x68,0x61,0x63,0x6b,0x5f,0x66,0x61,0x6c,0x73,0x65,0x2c,0x76,0x6f,0x6c, - 0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x73,0x2c,0x76,0x6f,0x6c, - 0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x73,0x74,0x6f,0x70,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69, - 0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x74,0x6f,0x70,0x5b,0x30,0x5d,0x29,0x20,0x7b,0x0a,0x69,0x66,0x28,0x6c,0x69,0x64,0x3d,0x3d,0x30,0x29,0x20,0x7b, - 0x0a,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x73,0x74,0x6f,0x70,0x2b,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x7d, - 0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x5f,0x74,0x20,0x73,0x68,0x61,0x72,0x65,0x5b,0x48,0x41,0x53,0x48,0x45,0x53,0x5f, - 0x50,0x45,0x52,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x5f,0x64, - 0x61,0x67,0x5b,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x43,0x41,0x43,0x48,0x45,0x5f,0x57,0x4f,0x52,0x44,0x53,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x3d,0x6c,0x69,0x64,0x26,0x28,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e, - 0x45,0x53,0x2d,0x31,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x3d,0x6c, - 0x69,0x64,0x2f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, - 0x77,0x6f,0x72,0x64,0x3d,0x6c,0x69,0x64,0x2a,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x3b,0x20,0x77,0x6f,0x72,0x64, - 0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x43,0x41,0x43,0x48,0x45,0x5f,0x57,0x4f,0x52,0x44,0x53,0x3b,0x20,0x77,0x6f,0x72,0x64,0x2b,0x3d,0x47,0x52,0x4f,0x55, - 0x50,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x29,0x0a,0x7b,0x0a,0x64,0x61,0x67,0x5f, - 0x74,0x20,0x6c,0x6f,0x61,0x64,0x3d,0x67,0x5f,0x64,0x61,0x67,0x5b,0x77,0x6f,0x72,0x64,0x2f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x4c,0x4f, - 0x41,0x44,0x53,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41, - 0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x63,0x5f,0x64,0x61,0x67,0x5b,0x77,0x6f,0x72,0x64,0x2b,0x69,0x5d,0x3d,0x6c,0x6f,0x61,0x64, - 0x2e,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x68,0x61,0x73,0x68,0x5f,0x73,0x65,0x65,0x64,0x5b,0x32,0x5d,0x3b,0x20, - 0x0a,0x68,0x61,0x73,0x68,0x33,0x32,0x5f,0x74,0x20,0x64,0x69,0x67,0x65,0x73,0x74,0x3b,0x20,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x74, - 0x65,0x32,0x5b,0x38,0x5d,0x3b,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x74,0x65,0x5b,0x32,0x35,0x5d,0x3b,0x20,0x0a,0x66,0x6f, - 0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x30,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d, - 0x6a,0x6f,0x62,0x5f,0x62,0x6c,0x6f,0x62,0x5b,0x69,0x5d,0x3b,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x38,0x5d,0x3d,0x67,0x69,0x64,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28, - 0x69,0x6e,0x74,0x20,0x69,0x3d,0x31,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x72,0x61, - 0x76,0x65,0x6e,0x63,0x6f,0x69,0x6e,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x69,0x2d,0x31,0x30,0x5d,0x3b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x28, - 0x73,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a, - 0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e, - 0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x68,0x3d,0x30,0x3b,0x20,0x68,0x3c,0x50,0x52,0x4f,0x47, - 0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x20,0x68,0x2b,0x2b,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x69,0x78,0x5b,0x50, - 0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x52,0x45,0x47,0x53,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x3d,0x3d,0x68,0x29,0x20,0x7b,0x0a,0x73, - 0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x30,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x32, - 0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x31,0x5d,0x3d, - 0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d, - 0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x66,0x69,0x6c,0x6c,0x5f,0x6d,0x69,0x78,0x28,0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f, - 0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x2c,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x2c,0x6d,0x69,0x78,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d, - 0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x6f,0x70,0x3d,0x30,0x3b, - 0x20,0x6c,0x6f,0x6f,0x70,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x43,0x4e,0x54,0x5f,0x44,0x41,0x47,0x3b,0x20,0x2b,0x2b,0x6c,0x6f,0x6f,0x70,0x29,0x0a,0x7b, - 0x0a,0x69,0x66,0x28,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x3d,0x3d,0x28,0x6c,0x6f,0x6f,0x70,0x20,0x25,0x20,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e, - 0x45,0x53,0x29,0x29,0x0a,0x73,0x68,0x61,0x72,0x65,0x5b,0x30,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x3d, - 0x6d,0x69,0x78,0x5b,0x30,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45, - 0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x73,0x68,0x61,0x72,0x65,0x5b,0x30,0x5d,0x2e,0x75, - 0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x3b,0x0a,0x6f,0x66,0x66,0x73,0x65,0x74,0x20,0x25,0x3d,0x20,0x50,0x52,0x4f,0x47, - 0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x45,0x4c,0x45,0x4d,0x45,0x4e,0x54,0x53,0x3b,0x0a,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x6f,0x66,0x66,0x73,0x65,0x74,0x2a, - 0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x2b,0x28,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x5e,0x6c,0x6f,0x6f,0x70,0x29,0x20,0x25,0x20,0x50, - 0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x0a,0x64,0x61,0x67,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x5f,0x64,0x61,0x67,0x3d,0x67,0x5f,0x64, - 0x61,0x67,0x5b,0x6f,0x66,0x66,0x73,0x65,0x74,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x68,0x61,0x63,0x6b,0x5f,0x66,0x61,0x6c,0x73,0x65,0x29,0x20,0x62,0x61,0x72,0x72,0x69, - 0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, - 0x74,0x20,0x64,0x61,0x74,0x61,0x3b,0x0a,0x58,0x4d,0x52,0x49,0x47,0x5f,0x49,0x4e,0x43,0x4c,0x55,0x44,0x45,0x5f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x5f,0x4d,0x41,0x54,0x48,0x0a,0x69,0x66,0x28,0x68,0x61,0x63,0x6b,0x5f,0x66,0x61,0x6c,0x73,0x65,0x29,0x20,0x62,0x61,0x72,0x72,0x69,0x65,0x72, - 0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x58,0x4d,0x52,0x49,0x47,0x5f,0x49,0x4e,0x43, - 0x4c,0x55,0x44,0x45,0x5f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x54,0x41,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x20,0x6d,0x69,0x78,0x5f,0x68,0x61,0x73,0x68,0x3d,0x46,0x4e,0x56,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x49,0x53,0x3b,0x0a,0x23,0x70, - 0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x50,0x52,0x4f, - 0x47,0x50,0x4f,0x57,0x5f,0x52,0x45,0x47,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x66,0x6e,0x76,0x31,0x61,0x28,0x6d,0x69,0x78,0x5f,0x68,0x61,0x73,0x68,0x2c,0x6d, - 0x69,0x78,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x68,0x61,0x73,0x68,0x33,0x32,0x5f,0x74,0x20,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d,0x70,0x3b,0x0a,0x66,0x6f, - 0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d, - 0x70,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x5d,0x3d,0x46,0x4e,0x56,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x49,0x53,0x3b,0x0a,0x73, - 0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x5d,0x3d, - 0x6d,0x69,0x78,0x5f,0x68,0x61,0x73,0x68,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f, - 0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20, - 0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x66,0x6e,0x76,0x31,0x61, - 0x28,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d,0x70,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x20,0x25,0x20,0x38,0x5d,0x2c,0x73,0x68,0x61,0x72, - 0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x68,0x3d,0x3d,0x6c, - 0x61,0x6e,0x65,0x5f,0x69,0x64,0x29,0x0a,0x64,0x69,0x67,0x65,0x73,0x74,0x3d,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d,0x70,0x3b,0x0a,0x7d,0x0a,0x75,0x69, - 0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x74,0x65,0x5b, - 0x32,0x35,0x5d,0x3d,0x7b,0x30,0x78,0x30,0x7d,0x3b,0x20,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x69, - 0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x69,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74, - 0x20,0x69,0x3d,0x38,0x3b,0x20,0x69,0x3c,0x31,0x36,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x64,0x69,0x67,0x65,0x73,0x74, - 0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x2d,0x38,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x31,0x36,0x3b,0x20,0x69,0x3c, - 0x32,0x35,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x72,0x61,0x76,0x65,0x6e,0x63,0x6f,0x69,0x6e,0x5f,0x72,0x6e,0x64,0x63, - 0x5b,0x69,0x2d,0x31,0x36,0x5d,0x3b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x28,0x73,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74, - 0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x73,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x73,0x74,0x61,0x74,0x65,0x5b,0x31,0x5d,0x3c,0x3c,0x33,0x32,0x7c, - 0x73,0x74,0x61,0x74,0x65,0x5b,0x30,0x5d,0x3b,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x73,0x5f,0x75,0x63,0x68, - 0x61,0x72,0x38,0x28,0x72,0x65,0x73,0x29,0x2e,0x73,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x72,0x65,0x73,0x75,0x6c,0x74, - 0x3c,0x3d,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x2a,0x73,0x74,0x6f,0x70,0x3d,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x6b,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x72,0x65,0x73,0x75,0x6c,0x74,0x73,0x29,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x3c,0x3d,0x31, - 0x35,0x29,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74,0x73,0x5b,0x6b,0x5d,0x3d,0x67,0x69,0x64,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x00 + 0x72,0x6e,0x64,0x63,0x5b,0x72,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x28, + 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x3d,0x30,0x3b,0x20,0x72,0x3c, + 0x32,0x32,0x3b,0x20,0x72,0x2b,0x2b,0x29,0x20,0x7b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x28,0x73,0x74,0x2c, + 0x72,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x66,0x6e,0x76,0x31,0x61,0x28,0x68,0x2c,0x20,0x64,0x29,0x20,0x28,0x68,0x20,0x3d, + 0x20,0x28,0x68,0x20,0x5e,0x20,0x64,0x29,0x20,0x2a,0x20,0x46,0x4e,0x56,0x5f,0x50,0x52,0x49,0x4d,0x45,0x29,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x73,0x74, + 0x72,0x75,0x63,0x74,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x7a,0x2c,0x77,0x2c,0x6a,0x73,0x72,0x2c,0x6a,0x63,0x6f,0x6e,0x67,0x3b,0x0a,0x7d, + 0x20,0x6b,0x69,0x73,0x73,0x39,0x39,0x5f,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x69,0x73,0x73,0x39,0x39,0x28,0x6b,0x69,0x73,0x73,0x39, + 0x39,0x5f,0x74,0x2a,0x20,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x73,0x74,0x2d,0x3e,0x7a,0x3d,0x33,0x36,0x39,0x36,0x39,0x2a,0x28,0x73,0x74,0x2d,0x3e,0x7a,0x26,0x36,0x35, + 0x35,0x33,0x35,0x29,0x2b,0x28,0x73,0x74,0x2d,0x3e,0x7a,0x3e,0x3e,0x31,0x36,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x77,0x3d,0x31,0x38,0x30,0x30,0x30,0x2a,0x28,0x73, + 0x74,0x2d,0x3e,0x77,0x26,0x36,0x35,0x35,0x33,0x35,0x29,0x2b,0x28,0x73,0x74,0x2d,0x3e,0x77,0x3e,0x3e,0x31,0x36,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x4d,0x57,0x43,0x3d,0x28,0x28,0x73,0x74,0x2d,0x3e,0x7a,0x3c,0x3c,0x31,0x36,0x29,0x2b,0x73,0x74,0x2d,0x3e,0x77,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a, + 0x73,0x72,0x20,0x5e,0x3d,0x20,0x28,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x20,0x5e,0x3d,0x20, + 0x28,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x3e,0x3e,0x31,0x33,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x20,0x5e,0x3d,0x20,0x28,0x73,0x74,0x2d,0x3e,0x6a, + 0x73,0x72,0x3c,0x3c,0x35,0x29,0x3b,0x0a,0x73,0x74,0x2d,0x3e,0x6a,0x63,0x6f,0x6e,0x67,0x3d,0x36,0x39,0x30,0x36,0x39,0x2a,0x73,0x74,0x2d,0x3e,0x6a,0x63,0x6f,0x6e, + 0x67,0x2b,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x28,0x4d,0x57,0x43,0x5e,0x73,0x74,0x2d,0x3e,0x6a,0x63,0x6f,0x6e, + 0x67,0x29,0x2b,0x73,0x74,0x2d,0x3e,0x6a,0x73,0x72,0x29,0x3b,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6c,0x6c,0x5f,0x6d,0x69,0x78,0x28,0x6c,0x6f,0x63, + 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x65,0x65,0x64,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x6e,0x65,0x5f, + 0x69,0x64,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x6d,0x69,0x78,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x6e,0x76, + 0x5f,0x68,0x61,0x73,0x68,0x3d,0x46,0x4e,0x56,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x49,0x53,0x3b,0x0a,0x6b,0x69,0x73,0x73,0x39,0x39,0x5f,0x74, + 0x20,0x73,0x74,0x3b,0x0a,0x73,0x74,0x2e,0x7a,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x73,0x65,0x65,0x64,0x5b,0x30,0x5d, + 0x29,0x3b,0x0a,0x73,0x74,0x2e,0x77,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x73,0x65,0x65,0x64,0x5b,0x31,0x5d,0x29,0x3b, + 0x0a,0x73,0x74,0x2e,0x6a,0x73,0x72,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x29,0x3b, + 0x0a,0x73,0x74,0x2e,0x6a,0x63,0x6f,0x6e,0x67,0x3d,0x66,0x6e,0x76,0x31,0x61,0x28,0x66,0x6e,0x76,0x5f,0x68,0x61,0x73,0x68,0x2c,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64, + 0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20, + 0x69,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x52,0x45,0x47,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x6d,0x69,0x78,0x5b,0x69,0x5d,0x3d,0x6b,0x69,0x73,0x73, + 0x39,0x39,0x28,0x26,0x73,0x74,0x29,0x3b,0x0a,0x7d,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x73,0x74,0x72,0x75,0x63,0x74,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x5d,0x3b,0x0a,0x7d,0x20,0x73, + 0x68,0x75,0x66,0x66,0x6c,0x65,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x73,0x74,0x72,0x75,0x63,0x74,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x33,0x32,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x5d, + 0x3b,0x0a,0x7d,0x20,0x68,0x61,0x73,0x68,0x33,0x32,0x5f,0x74,0x3b,0x0a,0x23,0x69,0x66,0x20,0x50,0x4c,0x41,0x54,0x46,0x4f,0x52,0x4d,0x20,0x21,0x3d,0x20,0x4f,0x50, + 0x45,0x4e,0x43,0x4c,0x5f,0x50,0x4c,0x41,0x54,0x46,0x4f,0x52,0x4d,0x5f,0x4e,0x56,0x49,0x44,0x49,0x41,0x20,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74, + 0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x47,0x52,0x4f,0x55,0x50,0x5f, + 0x53,0x49,0x5a,0x45,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64, + 0x20,0x70,0x72,0x6f,0x67,0x70,0x6f,0x77,0x5f,0x73,0x65,0x61,0x72,0x63,0x68,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x61,0x67,0x5f,0x74,0x20,0x63, + 0x6f,0x6e,0x73,0x74,0x2a,0x20,0x67,0x5f,0x64,0x61,0x67,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x6f,0x62,0x5f,0x62, + 0x6c,0x6f,0x62,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x68,0x61,0x63,0x6b,0x5f,0x66,0x61,0x6c,0x73,0x65, + 0x2c,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x73, + 0x2c,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x73,0x74,0x6f,0x70,0x29,0x0a,0x7b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64, + 0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x69,0x64,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x74,0x6f,0x70,0x5b,0x30,0x5d,0x29,0x20,0x7b,0x0a,0x69,0x66,0x28,0x6c,0x69,0x64,0x3d,0x3d, + 0x30,0x29,0x20,0x7b,0x0a,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x73,0x74,0x6f,0x70,0x2b,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72, + 0x6e,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x73,0x68,0x75,0x66,0x66,0x6c,0x65,0x5f,0x74,0x20,0x73,0x68,0x61,0x72,0x65,0x5b,0x48,0x41,0x53, + 0x48,0x45,0x53,0x5f,0x50,0x45,0x52,0x5f,0x47,0x52,0x4f,0x55,0x50,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x63,0x5f,0x64,0x61,0x67,0x5b,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x43,0x41,0x43,0x48,0x45,0x5f,0x57,0x4f,0x52,0x44,0x53,0x5d,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x3d,0x6c,0x69,0x64,0x26,0x28,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57, + 0x5f,0x4c,0x41,0x4e,0x45,0x53,0x2d,0x31,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x72,0x6f,0x75,0x70,0x5f, + 0x69,0x64,0x3d,0x6c,0x69,0x64,0x2f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x77,0x6f,0x72,0x64,0x3d,0x6c,0x69,0x64,0x2a,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x3b,0x20, + 0x77,0x6f,0x72,0x64,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x43,0x41,0x43,0x48,0x45,0x5f,0x57,0x4f,0x52,0x44,0x53,0x3b,0x20,0x77,0x6f,0x72,0x64,0x2b,0x3d, + 0x47,0x52,0x4f,0x55,0x50,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x29,0x0a,0x7b,0x0a, + 0x64,0x61,0x67,0x5f,0x74,0x20,0x6c,0x6f,0x61,0x64,0x3d,0x67,0x5f,0x64,0x61,0x67,0x5b,0x77,0x6f,0x72,0x64,0x2f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41, + 0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f, + 0x57,0x5f,0x44,0x41,0x47,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x63,0x5f,0x64,0x61,0x67,0x5b,0x77,0x6f,0x72,0x64,0x2b,0x69,0x5d,0x3d, + 0x6c,0x6f,0x61,0x64,0x2e,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x68,0x61,0x73,0x68,0x5f,0x73,0x65,0x65,0x64,0x5b, + 0x32,0x5d,0x3b,0x20,0x0a,0x68,0x61,0x73,0x68,0x33,0x32,0x5f,0x74,0x20,0x64,0x69,0x67,0x65,0x73,0x74,0x3b,0x20,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x38,0x5d,0x3b,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x74,0x65,0x5b,0x32,0x35,0x5d,0x3b, + 0x20,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x31,0x30,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65, + 0x5b,0x69,0x5d,0x3d,0x6a,0x6f,0x62,0x5f,0x62,0x6c,0x6f,0x62,0x5b,0x69,0x5d,0x3b,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x38,0x5d,0x3d,0x67,0x69,0x64,0x3b,0x0a,0x66, + 0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x31,0x30,0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69, + 0x5d,0x3d,0x72,0x61,0x76,0x65,0x6e,0x63,0x6f,0x69,0x6e,0x5f,0x72,0x6e,0x64,0x63,0x5b,0x69,0x2d,0x31,0x30,0x5d,0x3b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66, + 0x38,0x30,0x30,0x28,0x73,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x69, + 0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d, + 0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x68,0x3d,0x30,0x3b,0x20,0x68,0x3c, + 0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x20,0x68,0x2b,0x2b,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d, + 0x69,0x78,0x5b,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x52,0x45,0x47,0x53,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x3d,0x3d,0x68,0x29, + 0x20,0x7b,0x0a,0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x30,0x5d,0x3d,0x73,0x74, + 0x61,0x74,0x65,0x32,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73, + 0x5b,0x31,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x31,0x5d,0x3b,0x0a,0x7d,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43, + 0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x66,0x69,0x6c,0x6c,0x5f,0x6d,0x69,0x78,0x28,0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72, + 0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x2c,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x2c,0x6d,0x69,0x78,0x29,0x3b,0x0a,0x23,0x70, + 0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x32,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x6f, + 0x70,0x3d,0x30,0x3b,0x20,0x6c,0x6f,0x6f,0x70,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x43,0x4e,0x54,0x5f,0x44,0x41,0x47,0x3b,0x20,0x2b,0x2b,0x6c,0x6f,0x6f, + 0x70,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x3d,0x3d,0x28,0x6c,0x6f,0x6f,0x70,0x20,0x25,0x20,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57, + 0x5f,0x4c,0x41,0x4e,0x45,0x53,0x29,0x29,0x0a,0x73,0x68,0x61,0x72,0x65,0x5b,0x30,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f, + 0x69,0x64,0x5d,0x3d,0x6d,0x69,0x78,0x5b,0x30,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45, + 0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x73,0x68,0x61,0x72,0x65,0x5b, + 0x30,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x3b,0x0a,0x6f,0x66,0x66,0x73,0x65,0x74,0x20,0x25,0x3d,0x20, + 0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x47,0x5f,0x45,0x4c,0x45,0x4d,0x45,0x4e,0x54,0x53,0x3b,0x0a,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x6f,0x66,0x66, + 0x73,0x65,0x74,0x2a,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x2b,0x28,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x5e,0x6c,0x6f,0x6f,0x70,0x29, + 0x20,0x25,0x20,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x0a,0x64,0x61,0x67,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x5f,0x64,0x61,0x67, + 0x3d,0x67,0x5f,0x64,0x61,0x67,0x5b,0x6f,0x66,0x66,0x73,0x65,0x74,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x68,0x61,0x63,0x6b,0x5f,0x66,0x61,0x6c,0x73,0x65,0x29,0x20,0x62, + 0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x3b,0x0a,0x58,0x4d,0x52,0x49,0x47,0x5f,0x49,0x4e,0x43,0x4c,0x55,0x44,0x45,0x5f,0x50,0x52,0x4f,0x47,0x50,0x4f, + 0x57,0x5f,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x5f,0x4d,0x41,0x54,0x48,0x0a,0x69,0x66,0x28,0x68,0x61,0x63,0x6b,0x5f,0x66,0x61,0x6c,0x73,0x65,0x29,0x20,0x62,0x61,0x72, + 0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x58,0x4d,0x52,0x49,0x47, + 0x5f,0x49,0x4e,0x43,0x4c,0x55,0x44,0x45,0x5f,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x44,0x41,0x54,0x41,0x5f,0x4c,0x4f,0x41,0x44,0x53,0x0a,0x7d,0x0a,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x69,0x78,0x5f,0x68,0x61,0x73,0x68,0x3d,0x46,0x4e,0x56,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x49,0x53, + 0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69, + 0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x52,0x45,0x47,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x66,0x6e,0x76,0x31,0x61,0x28,0x6d,0x69,0x78,0x5f,0x68,0x61, + 0x73,0x68,0x2c,0x6d,0x69,0x78,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x68,0x61,0x73,0x68,0x33,0x32,0x5f,0x74,0x20,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d,0x70, + 0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x38,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x64,0x69,0x67,0x65,0x73,0x74, + 0x5f,0x74,0x65,0x6d,0x70,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x5d,0x3d,0x46,0x4e,0x56,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x49, + 0x53,0x3b,0x0a,0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x6c,0x61,0x6e,0x65,0x5f, + 0x69,0x64,0x5d,0x3d,0x6d,0x69,0x78,0x5f,0x68,0x61,0x73,0x68,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f, + 0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28, + 0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x50,0x52,0x4f,0x47,0x50,0x4f,0x57,0x5f,0x4c,0x41,0x4e,0x45,0x53,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x66, + 0x6e,0x76,0x31,0x61,0x28,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d,0x70,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x20,0x25,0x20,0x38,0x5d,0x2c, + 0x73,0x68,0x61,0x72,0x65,0x5b,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5d,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28, + 0x68,0x3d,0x3d,0x6c,0x61,0x6e,0x65,0x5f,0x69,0x64,0x29,0x0a,0x64,0x69,0x67,0x65,0x73,0x74,0x3d,0x64,0x69,0x67,0x65,0x73,0x74,0x5f,0x74,0x65,0x6d,0x70,0x3b,0x0a, + 0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74, + 0x61,0x74,0x65,0x5b,0x32,0x35,0x5d,0x3d,0x7b,0x30,0x78,0x30,0x7d,0x3b,0x20,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c, + 0x38,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x73,0x74,0x61,0x74,0x65,0x32,0x5b,0x69,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20, + 0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x38,0x3b,0x20,0x69,0x3c,0x31,0x36,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x64,0x69, + 0x67,0x65,0x73,0x74,0x2e,0x75,0x69,0x6e,0x74,0x33,0x32,0x73,0x5b,0x69,0x2d,0x38,0x5d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x31,0x36, + 0x3b,0x20,0x69,0x3c,0x32,0x35,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x73,0x74,0x61,0x74,0x65,0x5b,0x69,0x5d,0x3d,0x72,0x61,0x76,0x65,0x6e,0x63,0x6f,0x69,0x6e,0x5f, + 0x72,0x6e,0x64,0x63,0x5b,0x69,0x2d,0x31,0x36,0x5d,0x3b,0x0a,0x6b,0x65,0x63,0x63,0x61,0x6b,0x5f,0x66,0x38,0x30,0x30,0x28,0x73,0x74,0x61,0x74,0x65,0x29,0x3b,0x0a, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x73,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x73,0x74,0x61,0x74,0x65,0x5b,0x31,0x5d,0x3c, + 0x3c,0x33,0x32,0x7c,0x73,0x74,0x61,0x74,0x65,0x5b,0x30,0x5d,0x3b,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x73, + 0x5f,0x75,0x63,0x68,0x61,0x72,0x38,0x28,0x72,0x65,0x73,0x29,0x2e,0x73,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x72,0x65, + 0x73,0x75,0x6c,0x74,0x3c,0x3d,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x2a,0x73,0x74,0x6f,0x70,0x3d,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x6b,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x72,0x65,0x73,0x75,0x6c,0x74,0x73,0x29,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28, + 0x6b,0x3c,0x3d,0x31,0x35,0x29,0x0a,0x72,0x65,0x73,0x75,0x6c,0x74,0x73,0x5b,0x6b,0x5d,0x3d,0x67,0x69,0x64,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x00 }; } // namespace xmrig diff --git a/src/backend/opencl/cl/rx/blake2b.cl b/src/backend/opencl/cl/rx/blake2b.cl index 86d0df7e..b33e1206 100644 --- a/src/backend/opencl/cl/rx/blake2b.cl +++ b/src/backend/opencl/cl/rx/blake2b.cl @@ -138,197 +138,6 @@ __kernel void blake2b_initial_hash(__global void *out, __global const void* bloc t[7] = hash[7]; } -void blake2b_512_process_double_block_variable(ulong *out, ulong* m, __global const ulong* in, uint in_len, uint out_len) -{ - ulong v[16] = - { - iv0 ^ (0x01010000u | out_len), iv1, iv2, iv3, iv4 , iv5, iv6, iv7, - iv0 , iv1, iv2, iv3, iv4 ^ 128, iv5, iv6, iv7, - }; - - BLAKE2B_ROUNDS(); - - ulong h[8]; - v[0] = h[0] = v[0] ^ v[8] ^ iv0 ^ (0x01010000u | out_len); - v[1] = h[1] = v[1] ^ v[9] ^ iv1; - v[2] = h[2] = v[2] ^ v[10] ^ iv2; - v[3] = h[3] = v[3] ^ v[11] ^ iv3; - v[4] = h[4] = v[4] ^ v[12] ^ iv4; - v[5] = h[5] = v[5] ^ v[13] ^ iv5; - v[6] = h[6] = v[6] ^ v[14] ^ iv6; - v[7] = h[7] = v[7] ^ v[15] ^ iv7; - v[8] = iv0; - v[9] = iv1; - v[10] = iv2; - v[11] = iv3; - v[12] = iv4 ^ in_len; - v[13] = iv5; - v[14] = ~iv6; - v[15] = iv7; - - m[ 0] = (in_len > 128) ? in[16] : 0; - m[ 1] = (in_len > 136) ? in[17] : 0; - m[ 2] = (in_len > 144) ? in[18] : 0; - m[ 3] = (in_len > 152) ? in[19] : 0; - m[ 4] = (in_len > 160) ? in[20] : 0; - m[ 5] = (in_len > 168) ? in[21] : 0; - m[ 6] = (in_len > 176) ? in[22] : 0; - m[ 7] = (in_len > 184) ? in[23] : 0; - m[ 8] = (in_len > 192) ? in[24] : 0; - m[ 9] = (in_len > 200) ? in[25] : 0; - m[10] = (in_len > 208) ? in[26] : 0; - m[11] = (in_len > 216) ? in[27] : 0; - m[12] = (in_len > 224) ? in[28] : 0; - m[13] = (in_len > 232) ? in[29] : 0; - m[14] = (in_len > 240) ? in[30] : 0; - m[15] = (in_len > 248) ? in[31] : 0; - - if (in_len % sizeof(ulong)) - m[(in_len - 128) / sizeof(ulong)] &= (ulong)(-1) >> (64 - (in_len % sizeof(ulong)) * 8); - - BLAKE2B_ROUNDS(); - - if (out_len > 0) out[0] = h[0] ^ v[0] ^ v[8]; - if (out_len > 8) out[1] = h[1] ^ v[1] ^ v[9]; - if (out_len > 16) out[2] = h[2] ^ v[2] ^ v[10]; - if (out_len > 24) out[3] = h[3] ^ v[3] ^ v[11]; - if (out_len > 32) out[4] = h[4] ^ v[4] ^ v[12]; - if (out_len > 40) out[5] = h[5] ^ v[5] ^ v[13]; - if (out_len > 48) out[6] = h[6] ^ v[6] ^ v[14]; - if (out_len > 56) out[7] = h[7] ^ v[7] ^ v[15]; -} - -__attribute__((reqd_work_group_size(64, 1, 1))) -__kernel void blake2b_initial_hash_double(__global void *out, __global const void* blockTemplate, uint blockTemplateSize, uint start_nonce) -{ - const uint global_index = get_global_id(0); - - __global const ulong* p = (__global const ulong*) blockTemplate; - - ulong m[16] = { p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15] }; - - const ulong nonce = start_nonce + global_index; - m[4] = (m[4] & ((ulong)(-1) >> 8)) | (nonce << 56); - m[5] = (m[5] & ((ulong)(-1) << 24)) | (nonce >> 8); - - ulong hash[8]; - blake2b_512_process_double_block_variable(hash, m, p, blockTemplateSize, 64); - - __global ulong* t = ((__global ulong*) out) + global_index * 8; - t[0] = hash[0]; - t[1] = hash[1]; - t[2] = hash[2]; - t[3] = hash[3]; - t[4] = hash[4]; - t[5] = hash[5]; - t[6] = hash[6]; - t[7] = hash[7]; -} - -void blake2b_512_process_big_block(ulong *out, __global const ulong* in, uint in_len, uint out_len, uint nonce, uint nonce_offset) -{ - ulong h[8] = { iv0 ^ (0x01010000u | out_len), iv1, iv2, iv3, iv4, iv5, iv6, iv7 }; - - for (uint t = 128; t < in_len; t += 128, in += 16) { - ulong m[16] = { in[0], in[1], in[2], in[3], in[4], in[5], in[6], in[7], in[8], in[9], in[10], in[11], in[12], in[13], in[14], in[15] }; - - const uint k0 = (nonce_offset + 0) - (t - 128); - const uint k1 = (nonce_offset + 1) - (t - 128); - const uint k2 = (nonce_offset + 2) - (t - 128); - const uint k3 = (nonce_offset + 3) - (t - 128); - - if (k0 < 128) m[k0 / 8] |= (ulong)((nonce >> 0) & 255) << ((k0 % 8) * 8); - if (k1 < 128) m[k1 / 8] |= (ulong)((nonce >> 8) & 255) << ((k1 % 8) * 8); - if (k2 < 128) m[k2 / 8] |= (ulong)((nonce >> 16) & 255) << ((k2 % 8) * 8); - if (k3 < 128) m[k3 / 8] |= (ulong)((nonce >> 24) & 255) << ((k3 % 8) * 8); - - ulong v[16] = { h[0], h[1], h[2], h[3], h[4], h[5], h[6], h[7], iv0, iv1, iv2, iv3, iv4 ^ t, iv5, iv6, iv7 }; - - BLAKE2B_ROUNDS(); - - h[0] ^= v[0] ^ v[ 8]; - h[1] ^= v[1] ^ v[ 9]; - h[2] ^= v[2] ^ v[10]; - h[3] ^= v[3] ^ v[11]; - h[4] ^= v[4] ^ v[12]; - h[5] ^= v[5] ^ v[13]; - h[6] ^= v[6] ^ v[14]; - h[7] ^= v[7] ^ v[15]; - } - - uint k = in_len & 127; - if (k == 0) k = 128; - - ulong m[16] = { - (k > 0) ? in[ 0] : 0, - (k > 8) ? in[ 1] : 0, - (k > 16) ? in[ 2] : 0, - (k > 24) ? in[ 3] : 0, - (k > 32) ? in[ 4] : 0, - (k > 40) ? in[ 5] : 0, - (k > 48) ? in[ 6] : 0, - (k > 56) ? in[ 7] : 0, - (k > 64) ? in[ 8] : 0, - (k > 72) ? in[ 9] : 0, - (k > 80) ? in[10] : 0, - (k > 88) ? in[11] : 0, - (k > 96) ? in[12] : 0, - (k > 104) ? in[13] : 0, - (k > 112) ? in[14] : 0, - (k > 120) ? in[15] : 0 - }; - - const uint t = in_len - k; - - const uint k0 = nonce_offset + 0 - t; - const uint k1 = nonce_offset + 1 - t; - const uint k2 = nonce_offset + 2 - t; - const uint k3 = nonce_offset + 3 - t; - - if (k0 < k) m[k0 / 8] |= (ulong)((nonce >> 0) & 255) << ((k0 % 8) * 8); - if (k1 < k) m[k1 / 8] |= (ulong)((nonce >> 8) & 255) << ((k1 % 8) * 8); - if (k2 < k) m[k2 / 8] |= (ulong)((nonce >> 16) & 255) << ((k2 % 8) * 8); - if (k3 < k) m[k3 / 8] |= (ulong)((nonce >> 24) & 255) << ((k3 % 8) * 8); - - if (k % 8) { - m[k / 8] &= (ulong)(-1) >> (64 - (k % 8) * 8); - } - - ulong v[16] = { h[0], h[1], h[2], h[3], h[4], h[5], h[6], h[7], iv0, iv1, iv2, iv3, iv4 ^ in_len, iv5, ~iv6, iv7 }; - - BLAKE2B_ROUNDS(); - - if (out_len > 0) out[0] = h[0] ^ v[0] ^ v[8]; - if (out_len > 8) out[1] = h[1] ^ v[1] ^ v[9]; - if (out_len > 16) out[2] = h[2] ^ v[2] ^ v[10]; - if (out_len > 24) out[3] = h[3] ^ v[3] ^ v[11]; - if (out_len > 32) out[4] = h[4] ^ v[4] ^ v[12]; - if (out_len > 40) out[5] = h[5] ^ v[5] ^ v[13]; - if (out_len > 48) out[6] = h[6] ^ v[6] ^ v[14]; - if (out_len > 56) out[7] = h[7] ^ v[7] ^ v[15]; -} - -__attribute__((reqd_work_group_size(64, 1, 1))) -__kernel void blake2b_initial_hash_big(__global void *out, __global const void* blockTemplate, uint blockTemplateSize, uint start_nonce, uint nonce_offset) -{ - const uint global_index = get_global_id(0); - - __global const ulong* p = (__global const ulong*) blockTemplate; - - ulong hash[8]; - blake2b_512_process_big_block(hash, p, blockTemplateSize, 64, start_nonce + global_index, nonce_offset); - - __global ulong* t = ((__global ulong*) out) + global_index * 8; - t[0] = hash[0]; - t[1] = hash[1]; - t[2] = hash[2]; - t[3] = hash[3]; - t[4] = hash[4]; - t[5] = hash[5]; - t[6] = hash[6]; - t[7] = hash[7]; -} - #define in_len 256 #define out_len 32 diff --git a/src/backend/opencl/cl/rx/randomx.cl b/src/backend/opencl/cl/rx/randomx.cl index 60793dc3..a08b8ba2 100644 --- a/src/backend/opencl/cl/rx/randomx.cl +++ b/src/backend/opencl/cl/rx/randomx.cl @@ -1,11 +1,13 @@ #include "../cn/algorithm.cl" -#if ((ALGO == ALGO_RX_0) || (ALGO == ALGO_RX_YADA)) +#if (ALGO == ALGO_RX_0) #include "randomx_constants_monero.h" #elif (ALGO == ALGO_RX_WOW) #include "randomx_constants_wow.h" #elif (ALGO == ALGO_RX_ARQMA) #include "randomx_constants_arqma.h" +#elif (ALGO == ALGO_RX_KEVA) +#include "randomx_constants_keva.h" #elif (ALGO == ALGO_RX_GRAFT) #include "randomx_constants_graft.h" #endif diff --git a/src/backend/opencl/cl/rx/randomx_cl.h b/src/backend/opencl/cl/rx/randomx_cl.h index 1ba1434c..cb4a72b0 100644 --- a/src/backend/opencl/cl/rx/randomx_cl.h +++ b/src/backend/opencl/cl/rx/randomx_cl.h @@ -2,7 +2,7 @@ namespace xmrig { -static const char randomx_cl[134345] = { +static const char randomx_cl[131026] = { 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x30,0x20,0x30,0x78,0x36,0x33,0x31,0x35,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65, 0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x31,0x20,0x30,0x78,0x36,0x33,0x31,0x35,0x30,0x31,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, 0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x43,0x4e,0x5f,0x32,0x20,0x30,0x78,0x36,0x33,0x31,0x35,0x30,0x32,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41, @@ -27,1044 +27,1241 @@ static const char randomx_cl[134345] = { 0x35,0x31,0x32,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x57,0x4f,0x57,0x20,0x30,0x78,0x37,0x32,0x31,0x34, 0x31,0x31,0x37,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x41,0x52,0x51,0x4d,0x41,0x20,0x30,0x78,0x37,0x32,0x31, 0x32,0x31,0x30,0x36,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x53,0x46,0x58,0x20,0x30,0x78,0x37,0x32,0x31,0x35, - 0x31,0x32,0x37,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x47,0x52,0x41,0x46,0x54,0x20,0x30,0x78,0x37,0x32,0x31, - 0x35,0x31,0x32,0x36,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x59,0x41,0x44,0x41,0x20,0x30,0x78,0x37,0x32,0x31, - 0x35,0x31,0x32,0x37,0x39,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f,0x43,0x48,0x55,0x4b,0x57,0x41,0x20,0x30,0x78, + 0x31,0x32,0x37,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x4b,0x45,0x56,0x41,0x20,0x30,0x78,0x37,0x32,0x31,0x34, + 0x31,0x31,0x36,0x62,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x47,0x52,0x41,0x46,0x54,0x20,0x30,0x78,0x37,0x32,0x31, + 0x35,0x31,0x32,0x36,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f,0x43,0x48,0x55,0x4b,0x57,0x41,0x20,0x30,0x78, 0x36,0x31,0x31,0x33,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f,0x43,0x48,0x55,0x4b,0x57,0x41, 0x5f,0x56,0x32,0x20,0x30,0x78,0x36,0x31,0x31,0x34,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x52,0x32,0x5f, - 0x57,0x52,0x4b,0x5a,0x20,0x30,0x78,0x36,0x31,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x4b,0x41,0x57, - 0x50,0x4f,0x57,0x5f,0x52,0x56,0x4e,0x20,0x30,0x78,0x36,0x62,0x30,0x66,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c, - 0x59,0x5f,0x55,0x4e,0x4b,0x4e,0x4f,0x57,0x4e,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x20,0x30,0x78, - 0x36,0x33,0x31,0x35,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x4c,0x49,0x54,0x45,0x20, - 0x30,0x78,0x36,0x33,0x31,0x34,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x48,0x45,0x41, - 0x56,0x59,0x20,0x30,0x78,0x36,0x33,0x31,0x36,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f, - 0x50,0x49,0x43,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43, - 0x4e,0x5f,0x46,0x45,0x4d,0x54,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x31,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c, - 0x59,0x5f,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x5f,0x58,0x20,0x30,0x78,0x37,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41, - 0x4d,0x49,0x4c,0x59,0x5f,0x41,0x52,0x47,0x4f,0x4e,0x32,0x20,0x30,0x78,0x36,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46, - 0x41,0x4d,0x49,0x4c,0x59,0x5f,0x4b,0x41,0x57,0x50,0x4f,0x57,0x20,0x30,0x78,0x36,0x62,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x69,0x66,0x20,0x28,0x28,0x41,0x4c, - 0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x30,0x29,0x20,0x7c,0x7c,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47, - 0x4f,0x5f,0x52,0x58,0x5f,0x59,0x41,0x44,0x41,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41, - 0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35, - 0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f, - 0x4c,0x33,0x20,0x32,0x30,0x39,0x37,0x31,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54, - 0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x32,0x36,0x32,0x31,0x34,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d, - 0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55, - 0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48, - 0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f, - 0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f, - 0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f, - 0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43, - 0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20, - 0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x38,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49, - 0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47, - 0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36, - 0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42, - 0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20, - 0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f, - 0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20, - 0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49, - 0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f, - 0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e, - 0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d, - 0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x38,0x29,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x32,0x31,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c, - 0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x57,0x4f,0x57,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49, - 0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41, - 0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x31,0x30,0x34,0x38,0x35,0x37,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x31,0x33,0x31,0x30,0x37,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58, - 0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f, - 0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f, - 0x52,0x20,0x31,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52, - 0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20, - 0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x38, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x20,0x32,0x30,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x32,0x30,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x32,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44, - 0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53, - 0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28, - 0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, - 0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49, - 0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49, - 0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a, - 0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f, - 0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20, - 0x2d,0x20,0x31,0x37,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x32,0x30,0x29,0x0a,0x23, - 0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x41,0x52,0x51,0x4d,0x41,0x29,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32, - 0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45, - 0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x32,0x36,0x32,0x31,0x34,0x34,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x31,0x33,0x31,0x30,0x37,0x32,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36, - 0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46, - 0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41, - 0x44,0x44,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44, - 0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f, - 0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d, - 0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20, - 0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50, - 0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, - 0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32, - 0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49, - 0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d, - 0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f, - 0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d, - 0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45, - 0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43, - 0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x37,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32, - 0x20,0x2d,0x20,0x31,0x38,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x47,0x52, - 0x41,0x46,0x54,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53, - 0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x32,0x30,0x39,0x37, - 0x31,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c, - 0x32,0x20,0x32,0x36,0x32,0x31,0x34,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48, - 0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d, - 0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46, - 0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44, - 0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44, - 0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52, - 0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20, - 0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46, - 0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51, - 0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41, - 0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f, - 0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52, - 0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a, - 0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a, - 0x45,0x20,0x32,0x38,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50, - 0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45, - 0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45, - 0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47, - 0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43, - 0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53, - 0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f, - 0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f, - 0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20, - 0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c, - 0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x32,0x31,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e, - 0x74,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x5f,0x54,0x41,0x42,0x4c,0x45,0x5b,0x32,0x30, - 0x34,0x38,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x61,0x35,0x36,0x33,0x36,0x33,0x63,0x36,0x55,0x2c,0x30,0x78,0x38,0x34,0x37,0x63,0x37,0x63,0x66,0x38,0x55,0x2c, - 0x30,0x78,0x39,0x39,0x37,0x37,0x37,0x37,0x65,0x65,0x55,0x2c,0x30,0x78,0x38,0x64,0x37,0x62,0x37,0x62,0x66,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x64,0x66,0x32,0x66, - 0x32,0x66,0x66,0x55,0x2c,0x30,0x78,0x62,0x64,0x36,0x62,0x36,0x62,0x64,0x36,0x55,0x2c,0x30,0x78,0x62,0x31,0x36,0x66,0x36,0x66,0x64,0x65,0x55,0x2c,0x30,0x78,0x35, - 0x34,0x63,0x35,0x63,0x35,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x33,0x30,0x33,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x31,0x30,0x31,0x30,0x32, - 0x55,0x2c,0x30,0x78,0x61,0x39,0x36,0x37,0x36,0x37,0x63,0x65,0x55,0x2c,0x30,0x78,0x37,0x64,0x32,0x62,0x32,0x62,0x35,0x36,0x55,0x2c,0x0a,0x30,0x78,0x31,0x39,0x66, - 0x65,0x66,0x65,0x65,0x37,0x55,0x2c,0x30,0x78,0x36,0x32,0x64,0x37,0x64,0x37,0x62,0x35,0x55,0x2c,0x30,0x78,0x65,0x36,0x61,0x62,0x61,0x62,0x34,0x64,0x55,0x2c,0x30, - 0x78,0x39,0x61,0x37,0x36,0x37,0x36,0x65,0x63,0x55,0x2c,0x0a,0x30,0x78,0x34,0x35,0x63,0x61,0x63,0x61,0x38,0x66,0x55,0x2c,0x30,0x78,0x39,0x64,0x38,0x32,0x38,0x32, - 0x31,0x66,0x55,0x2c,0x30,0x78,0x34,0x30,0x63,0x39,0x63,0x39,0x38,0x39,0x55,0x2c,0x30,0x78,0x38,0x37,0x37,0x64,0x37,0x64,0x66,0x61,0x55,0x2c,0x0a,0x30,0x78,0x31, - 0x35,0x66,0x61,0x66,0x61,0x65,0x66,0x55,0x2c,0x30,0x78,0x65,0x62,0x35,0x39,0x35,0x39,0x62,0x32,0x55,0x2c,0x30,0x78,0x63,0x39,0x34,0x37,0x34,0x37,0x38,0x65,0x55, - 0x2c,0x30,0x78,0x30,0x62,0x66,0x30,0x66,0x30,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x63,0x61,0x64,0x61,0x64,0x34,0x31,0x55,0x2c,0x30,0x78,0x36,0x37,0x64,0x34, - 0x64,0x34,0x62,0x33,0x55,0x2c,0x30,0x78,0x66,0x64,0x61,0x32,0x61,0x32,0x35,0x66,0x55,0x2c,0x30,0x78,0x65,0x61,0x61,0x66,0x61,0x66,0x34,0x35,0x55,0x2c,0x0a,0x30, - 0x78,0x62,0x66,0x39,0x63,0x39,0x63,0x32,0x33,0x55,0x2c,0x30,0x78,0x66,0x37,0x61,0x34,0x61,0x34,0x35,0x33,0x55,0x2c,0x30,0x78,0x39,0x36,0x37,0x32,0x37,0x32,0x65, - 0x34,0x55,0x2c,0x30,0x78,0x35,0x62,0x63,0x30,0x63,0x30,0x39,0x62,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x62,0x37,0x62,0x37,0x37,0x35,0x55,0x2c,0x30,0x78,0x31,0x63, - 0x66,0x64,0x66,0x64,0x65,0x31,0x55,0x2c,0x30,0x78,0x61,0x65,0x39,0x33,0x39,0x33,0x33,0x64,0x55,0x2c,0x30,0x78,0x36,0x61,0x32,0x36,0x32,0x36,0x34,0x63,0x55,0x2c, - 0x0a,0x30,0x78,0x35,0x61,0x33,0x36,0x33,0x36,0x36,0x63,0x55,0x2c,0x30,0x78,0x34,0x31,0x33,0x66,0x33,0x66,0x37,0x65,0x55,0x2c,0x30,0x78,0x30,0x32,0x66,0x37,0x66, - 0x37,0x66,0x35,0x55,0x2c,0x30,0x78,0x34,0x66,0x63,0x63,0x63,0x63,0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x63,0x33,0x34,0x33,0x34,0x36,0x38,0x55,0x2c,0x30,0x78, - 0x66,0x34,0x61,0x35,0x61,0x35,0x35,0x31,0x55,0x2c,0x30,0x78,0x33,0x34,0x65,0x35,0x65,0x35,0x64,0x31,0x55,0x2c,0x30,0x78,0x30,0x38,0x66,0x31,0x66,0x31,0x66,0x39, - 0x55,0x2c,0x0a,0x30,0x78,0x39,0x33,0x37,0x31,0x37,0x31,0x65,0x32,0x55,0x2c,0x30,0x78,0x37,0x33,0x64,0x38,0x64,0x38,0x61,0x62,0x55,0x2c,0x30,0x78,0x35,0x33,0x33, - 0x31,0x33,0x31,0x36,0x32,0x55,0x2c,0x30,0x78,0x33,0x66,0x31,0x35,0x31,0x35,0x32,0x61,0x55,0x2c,0x0a,0x30,0x78,0x30,0x63,0x30,0x34,0x30,0x34,0x30,0x38,0x55,0x2c, - 0x30,0x78,0x35,0x32,0x63,0x37,0x63,0x37,0x39,0x35,0x55,0x2c,0x30,0x78,0x36,0x35,0x32,0x33,0x32,0x33,0x34,0x36,0x55,0x2c,0x30,0x78,0x35,0x65,0x63,0x33,0x63,0x33, - 0x39,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38,0x31,0x38,0x31,0x38,0x33,0x30,0x55,0x2c,0x30,0x78,0x61,0x31,0x39,0x36,0x39,0x36,0x33,0x37,0x55,0x2c,0x30,0x78,0x30, - 0x66,0x30,0x35,0x30,0x35,0x30,0x61,0x55,0x2c,0x30,0x78,0x62,0x35,0x39,0x61,0x39,0x61,0x32,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x37,0x30,0x37,0x30,0x65, - 0x55,0x2c,0x30,0x78,0x33,0x36,0x31,0x32,0x31,0x32,0x32,0x34,0x55,0x2c,0x30,0x78,0x39,0x62,0x38,0x30,0x38,0x30,0x31,0x62,0x55,0x2c,0x30,0x78,0x33,0x64,0x65,0x32, - 0x65,0x32,0x64,0x66,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x65,0x62,0x65,0x62,0x63,0x64,0x55,0x2c,0x30,0x78,0x36,0x39,0x32,0x37,0x32,0x37,0x34,0x65,0x55,0x2c,0x30, - 0x78,0x63,0x64,0x62,0x32,0x62,0x32,0x37,0x66,0x55,0x2c,0x30,0x78,0x39,0x66,0x37,0x35,0x37,0x35,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x31,0x62,0x30,0x39,0x30,0x39, - 0x31,0x32,0x55,0x2c,0x30,0x78,0x39,0x65,0x38,0x33,0x38,0x33,0x31,0x64,0x55,0x2c,0x30,0x78,0x37,0x34,0x32,0x63,0x32,0x63,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x65, - 0x31,0x61,0x31,0x61,0x33,0x34,0x55,0x2c,0x0a,0x30,0x78,0x32,0x64,0x31,0x62,0x31,0x62,0x33,0x36,0x55,0x2c,0x30,0x78,0x62,0x32,0x36,0x65,0x36,0x65,0x64,0x63,0x55, - 0x2c,0x30,0x78,0x65,0x65,0x35,0x61,0x35,0x61,0x62,0x34,0x55,0x2c,0x30,0x78,0x66,0x62,0x61,0x30,0x61,0x30,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x36,0x35,0x32, - 0x35,0x32,0x61,0x34,0x55,0x2c,0x30,0x78,0x34,0x64,0x33,0x62,0x33,0x62,0x37,0x36,0x55,0x2c,0x30,0x78,0x36,0x31,0x64,0x36,0x64,0x36,0x62,0x37,0x55,0x2c,0x30,0x78, - 0x63,0x65,0x62,0x33,0x62,0x33,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x37,0x62,0x32,0x39,0x32,0x39,0x35,0x32,0x55,0x2c,0x30,0x78,0x33,0x65,0x65,0x33,0x65,0x33,0x64, - 0x64,0x55,0x2c,0x30,0x78,0x37,0x31,0x32,0x66,0x32,0x66,0x35,0x65,0x55,0x2c,0x30,0x78,0x39,0x37,0x38,0x34,0x38,0x34,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x66,0x35, - 0x35,0x33,0x35,0x33,0x61,0x36,0x55,0x2c,0x30,0x78,0x36,0x38,0x64,0x31,0x64,0x31,0x62,0x39,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c, - 0x30,0x78,0x32,0x63,0x65,0x64,0x65,0x64,0x63,0x31,0x55,0x2c,0x0a,0x30,0x78,0x36,0x30,0x32,0x30,0x32,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x31,0x66,0x66,0x63,0x66, - 0x63,0x65,0x33,0x55,0x2c,0x30,0x78,0x63,0x38,0x62,0x31,0x62,0x31,0x37,0x39,0x55,0x2c,0x30,0x78,0x65,0x64,0x35,0x62,0x35,0x62,0x62,0x36,0x55,0x2c,0x0a,0x30,0x78, - 0x62,0x65,0x36,0x61,0x36,0x61,0x64,0x34,0x55,0x2c,0x30,0x78,0x34,0x36,0x63,0x62,0x63,0x62,0x38,0x64,0x55,0x2c,0x30,0x78,0x64,0x39,0x62,0x65,0x62,0x65,0x36,0x37, - 0x55,0x2c,0x30,0x78,0x34,0x62,0x33,0x39,0x33,0x39,0x37,0x32,0x55,0x2c,0x0a,0x30,0x78,0x64,0x65,0x34,0x61,0x34,0x61,0x39,0x34,0x55,0x2c,0x30,0x78,0x64,0x34,0x34, - 0x63,0x34,0x63,0x39,0x38,0x55,0x2c,0x30,0x78,0x65,0x38,0x35,0x38,0x35,0x38,0x62,0x30,0x55,0x2c,0x30,0x78,0x34,0x61,0x63,0x66,0x63,0x66,0x38,0x35,0x55,0x2c,0x0a, - 0x30,0x78,0x36,0x62,0x64,0x30,0x64,0x30,0x62,0x62,0x55,0x2c,0x30,0x78,0x32,0x61,0x65,0x66,0x65,0x66,0x63,0x35,0x55,0x2c,0x30,0x78,0x65,0x35,0x61,0x61,0x61,0x61, - 0x34,0x66,0x55,0x2c,0x30,0x78,0x31,0x36,0x66,0x62,0x66,0x62,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x63,0x35,0x34,0x33,0x34,0x33,0x38,0x36,0x55,0x2c,0x30,0x78,0x64, - 0x37,0x34,0x64,0x34,0x64,0x39,0x61,0x55,0x2c,0x30,0x78,0x35,0x35,0x33,0x33,0x33,0x33,0x36,0x36,0x55,0x2c,0x30,0x78,0x39,0x34,0x38,0x35,0x38,0x35,0x31,0x31,0x55, - 0x2c,0x0a,0x30,0x78,0x63,0x66,0x34,0x35,0x34,0x35,0x38,0x61,0x55,0x2c,0x30,0x78,0x31,0x30,0x66,0x39,0x66,0x39,0x65,0x39,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x32, - 0x30,0x32,0x30,0x34,0x55,0x2c,0x30,0x78,0x38,0x31,0x37,0x66,0x37,0x66,0x66,0x65,0x55,0x2c,0x0a,0x30,0x78,0x66,0x30,0x35,0x30,0x35,0x30,0x61,0x30,0x55,0x2c,0x30, - 0x78,0x34,0x34,0x33,0x63,0x33,0x63,0x37,0x38,0x55,0x2c,0x30,0x78,0x62,0x61,0x39,0x66,0x39,0x66,0x32,0x35,0x55,0x2c,0x30,0x78,0x65,0x33,0x61,0x38,0x61,0x38,0x34, - 0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x33,0x35,0x31,0x35,0x31,0x61,0x32,0x55,0x2c,0x30,0x78,0x66,0x65,0x61,0x33,0x61,0x33,0x35,0x64,0x55,0x2c,0x30,0x78,0x63,0x30, - 0x34,0x30,0x34,0x30,0x38,0x30,0x55,0x2c,0x30,0x78,0x38,0x61,0x38,0x66,0x38,0x66,0x30,0x35,0x55,0x2c,0x0a,0x30,0x78,0x61,0x64,0x39,0x32,0x39,0x32,0x33,0x66,0x55, - 0x2c,0x30,0x78,0x62,0x63,0x39,0x64,0x39,0x64,0x32,0x31,0x55,0x2c,0x30,0x78,0x34,0x38,0x33,0x38,0x33,0x38,0x37,0x30,0x55,0x2c,0x30,0x78,0x30,0x34,0x66,0x35,0x66, - 0x35,0x66,0x31,0x55,0x2c,0x0a,0x30,0x78,0x64,0x66,0x62,0x63,0x62,0x63,0x36,0x33,0x55,0x2c,0x30,0x78,0x63,0x31,0x62,0x36,0x62,0x36,0x37,0x37,0x55,0x2c,0x30,0x78, - 0x37,0x35,0x64,0x61,0x64,0x61,0x61,0x66,0x55,0x2c,0x30,0x78,0x36,0x33,0x32,0x31,0x32,0x31,0x34,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x31,0x30,0x31,0x30,0x32, - 0x30,0x55,0x2c,0x30,0x78,0x31,0x61,0x66,0x66,0x66,0x66,0x65,0x35,0x55,0x2c,0x30,0x78,0x30,0x65,0x66,0x33,0x66,0x33,0x66,0x64,0x55,0x2c,0x30,0x78,0x36,0x64,0x64, - 0x32,0x64,0x32,0x62,0x66,0x55,0x2c,0x0a,0x30,0x78,0x34,0x63,0x63,0x64,0x63,0x64,0x38,0x31,0x55,0x2c,0x30,0x78,0x31,0x34,0x30,0x63,0x30,0x63,0x31,0x38,0x55,0x2c, - 0x30,0x78,0x33,0x35,0x31,0x33,0x31,0x33,0x32,0x36,0x55,0x2c,0x30,0x78,0x32,0x66,0x65,0x63,0x65,0x63,0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x65,0x31,0x35,0x66,0x35, - 0x66,0x62,0x65,0x55,0x2c,0x30,0x78,0x61,0x32,0x39,0x37,0x39,0x37,0x33,0x35,0x55,0x2c,0x30,0x78,0x63,0x63,0x34,0x34,0x34,0x34,0x38,0x38,0x55,0x2c,0x30,0x78,0x33, - 0x39,0x31,0x37,0x31,0x37,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78,0x35,0x37,0x63,0x34,0x63,0x34,0x39,0x33,0x55,0x2c,0x30,0x78,0x66,0x32,0x61,0x37,0x61,0x37,0x35,0x35, - 0x55,0x2c,0x30,0x78,0x38,0x32,0x37,0x65,0x37,0x65,0x66,0x63,0x55,0x2c,0x30,0x78,0x34,0x37,0x33,0x64,0x33,0x64,0x37,0x61,0x55,0x2c,0x0a,0x30,0x78,0x61,0x63,0x36, - 0x34,0x36,0x34,0x63,0x38,0x55,0x2c,0x30,0x78,0x65,0x37,0x35,0x64,0x35,0x64,0x62,0x61,0x55,0x2c,0x30,0x78,0x32,0x62,0x31,0x39,0x31,0x39,0x33,0x32,0x55,0x2c,0x30, - 0x78,0x39,0x35,0x37,0x33,0x37,0x33,0x65,0x36,0x55,0x2c,0x0a,0x30,0x78,0x61,0x30,0x36,0x30,0x36,0x30,0x63,0x30,0x55,0x2c,0x30,0x78,0x39,0x38,0x38,0x31,0x38,0x31, - 0x31,0x39,0x55,0x2c,0x30,0x78,0x64,0x31,0x34,0x66,0x34,0x66,0x39,0x65,0x55,0x2c,0x30,0x78,0x37,0x66,0x64,0x63,0x64,0x63,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36, - 0x36,0x32,0x32,0x32,0x32,0x34,0x34,0x55,0x2c,0x30,0x78,0x37,0x65,0x32,0x61,0x32,0x61,0x35,0x34,0x55,0x2c,0x30,0x78,0x61,0x62,0x39,0x30,0x39,0x30,0x33,0x62,0x55, - 0x2c,0x30,0x78,0x38,0x33,0x38,0x38,0x38,0x38,0x30,0x62,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x34,0x36,0x34,0x36,0x38,0x63,0x55,0x2c,0x30,0x78,0x32,0x39,0x65,0x65, - 0x65,0x65,0x63,0x37,0x55,0x2c,0x30,0x78,0x64,0x33,0x62,0x38,0x62,0x38,0x36,0x62,0x55,0x2c,0x30,0x78,0x33,0x63,0x31,0x34,0x31,0x34,0x32,0x38,0x55,0x2c,0x0a,0x30, - 0x78,0x37,0x39,0x64,0x65,0x64,0x65,0x61,0x37,0x55,0x2c,0x30,0x78,0x65,0x32,0x35,0x65,0x35,0x65,0x62,0x63,0x55,0x2c,0x30,0x78,0x31,0x64,0x30,0x62,0x30,0x62,0x31, - 0x36,0x55,0x2c,0x30,0x78,0x37,0x36,0x64,0x62,0x64,0x62,0x61,0x64,0x55,0x2c,0x0a,0x30,0x78,0x33,0x62,0x65,0x30,0x65,0x30,0x64,0x62,0x55,0x2c,0x30,0x78,0x35,0x36, - 0x33,0x32,0x33,0x32,0x36,0x34,0x55,0x2c,0x30,0x78,0x34,0x65,0x33,0x61,0x33,0x61,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x65,0x30,0x61,0x30,0x61,0x31,0x34,0x55,0x2c, - 0x0a,0x30,0x78,0x64,0x62,0x34,0x39,0x34,0x39,0x39,0x32,0x55,0x2c,0x30,0x78,0x30,0x61,0x30,0x36,0x30,0x36,0x30,0x63,0x55,0x2c,0x30,0x78,0x36,0x63,0x32,0x34,0x32, - 0x34,0x34,0x38,0x55,0x2c,0x30,0x78,0x65,0x34,0x35,0x63,0x35,0x63,0x62,0x38,0x55,0x2c,0x0a,0x30,0x78,0x35,0x64,0x63,0x32,0x63,0x32,0x39,0x66,0x55,0x2c,0x30,0x78, - 0x36,0x65,0x64,0x33,0x64,0x33,0x62,0x64,0x55,0x2c,0x30,0x78,0x65,0x66,0x61,0x63,0x61,0x63,0x34,0x33,0x55,0x2c,0x30,0x78,0x61,0x36,0x36,0x32,0x36,0x32,0x63,0x34, - 0x55,0x2c,0x0a,0x30,0x78,0x61,0x38,0x39,0x31,0x39,0x31,0x33,0x39,0x55,0x2c,0x30,0x78,0x61,0x34,0x39,0x35,0x39,0x35,0x33,0x31,0x55,0x2c,0x30,0x78,0x33,0x37,0x65, - 0x34,0x65,0x34,0x64,0x33,0x55,0x2c,0x30,0x78,0x38,0x62,0x37,0x39,0x37,0x39,0x66,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x32,0x65,0x37,0x65,0x37,0x64,0x35,0x55,0x2c, - 0x30,0x78,0x34,0x33,0x63,0x38,0x63,0x38,0x38,0x62,0x55,0x2c,0x30,0x78,0x35,0x39,0x33,0x37,0x33,0x37,0x36,0x65,0x55,0x2c,0x30,0x78,0x62,0x37,0x36,0x64,0x36,0x64, - 0x64,0x61,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x38,0x64,0x38,0x64,0x30,0x31,0x55,0x2c,0x30,0x78,0x36,0x34,0x64,0x35,0x64,0x35,0x62,0x31,0x55,0x2c,0x30,0x78,0x64, - 0x32,0x34,0x65,0x34,0x65,0x39,0x63,0x55,0x2c,0x30,0x78,0x65,0x30,0x61,0x39,0x61,0x39,0x34,0x39,0x55,0x2c,0x0a,0x30,0x78,0x62,0x34,0x36,0x63,0x36,0x63,0x64,0x38, - 0x55,0x2c,0x30,0x78,0x66,0x61,0x35,0x36,0x35,0x36,0x61,0x63,0x55,0x2c,0x30,0x78,0x30,0x37,0x66,0x34,0x66,0x34,0x66,0x33,0x55,0x2c,0x30,0x78,0x32,0x35,0x65,0x61, - 0x65,0x61,0x63,0x66,0x55,0x2c,0x0a,0x30,0x78,0x61,0x66,0x36,0x35,0x36,0x35,0x63,0x61,0x55,0x2c,0x30,0x78,0x38,0x65,0x37,0x61,0x37,0x61,0x66,0x34,0x55,0x2c,0x30, - 0x78,0x65,0x39,0x61,0x65,0x61,0x65,0x34,0x37,0x55,0x2c,0x30,0x78,0x31,0x38,0x30,0x38,0x30,0x38,0x31,0x30,0x55,0x2c,0x0a,0x30,0x78,0x64,0x35,0x62,0x61,0x62,0x61, - 0x36,0x66,0x55,0x2c,0x30,0x78,0x38,0x38,0x37,0x38,0x37,0x38,0x66,0x30,0x55,0x2c,0x30,0x78,0x36,0x66,0x32,0x35,0x32,0x35,0x34,0x61,0x55,0x2c,0x30,0x78,0x37,0x32, - 0x32,0x65,0x32,0x65,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x32,0x34,0x31,0x63,0x31,0x63,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x31,0x61,0x36,0x61,0x36,0x35,0x37,0x55, - 0x2c,0x30,0x78,0x63,0x37,0x62,0x34,0x62,0x34,0x37,0x33,0x55,0x2c,0x30,0x78,0x35,0x31,0x63,0x36,0x63,0x36,0x39,0x37,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x65,0x38, - 0x65,0x38,0x63,0x62,0x55,0x2c,0x30,0x78,0x37,0x63,0x64,0x64,0x64,0x64,0x61,0x31,0x55,0x2c,0x30,0x78,0x39,0x63,0x37,0x34,0x37,0x34,0x65,0x38,0x55,0x2c,0x30,0x78, - 0x32,0x31,0x31,0x66,0x31,0x66,0x33,0x65,0x55,0x2c,0x0a,0x30,0x78,0x64,0x64,0x34,0x62,0x34,0x62,0x39,0x36,0x55,0x2c,0x30,0x78,0x64,0x63,0x62,0x64,0x62,0x64,0x36, - 0x31,0x55,0x2c,0x30,0x78,0x38,0x36,0x38,0x62,0x38,0x62,0x30,0x64,0x55,0x2c,0x30,0x78,0x38,0x35,0x38,0x61,0x38,0x61,0x30,0x66,0x55,0x2c,0x0a,0x30,0x78,0x39,0x30, - 0x37,0x30,0x37,0x30,0x65,0x30,0x55,0x2c,0x30,0x78,0x34,0x32,0x33,0x65,0x33,0x65,0x37,0x63,0x55,0x2c,0x30,0x78,0x63,0x34,0x62,0x35,0x62,0x35,0x37,0x31,0x55,0x2c, - 0x30,0x78,0x61,0x61,0x36,0x36,0x36,0x36,0x63,0x63,0x55,0x2c,0x0a,0x30,0x78,0x64,0x38,0x34,0x38,0x34,0x38,0x39,0x30,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x33,0x30, - 0x33,0x30,0x36,0x55,0x2c,0x30,0x78,0x30,0x31,0x66,0x36,0x66,0x36,0x66,0x37,0x55,0x2c,0x30,0x78,0x31,0x32,0x30,0x65,0x30,0x65,0x31,0x63,0x55,0x2c,0x0a,0x30,0x78, - 0x61,0x33,0x36,0x31,0x36,0x31,0x63,0x32,0x55,0x2c,0x30,0x78,0x35,0x66,0x33,0x35,0x33,0x35,0x36,0x61,0x55,0x2c,0x30,0x78,0x66,0x39,0x35,0x37,0x35,0x37,0x61,0x65, - 0x55,0x2c,0x30,0x78,0x64,0x30,0x62,0x39,0x62,0x39,0x36,0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x38,0x36,0x38,0x36,0x31,0x37,0x55,0x2c,0x30,0x78,0x35,0x38,0x63, - 0x31,0x63,0x31,0x39,0x39,0x55,0x2c,0x30,0x78,0x32,0x37,0x31,0x64,0x31,0x64,0x33,0x61,0x55,0x2c,0x30,0x78,0x62,0x39,0x39,0x65,0x39,0x65,0x32,0x37,0x55,0x2c,0x0a, - 0x30,0x78,0x33,0x38,0x65,0x31,0x65,0x31,0x64,0x39,0x55,0x2c,0x30,0x78,0x31,0x33,0x66,0x38,0x66,0x38,0x65,0x62,0x55,0x2c,0x30,0x78,0x62,0x33,0x39,0x38,0x39,0x38, - 0x32,0x62,0x55,0x2c,0x30,0x78,0x33,0x33,0x31,0x31,0x31,0x31,0x32,0x32,0x55,0x2c,0x0a,0x30,0x78,0x62,0x62,0x36,0x39,0x36,0x39,0x64,0x32,0x55,0x2c,0x30,0x78,0x37, - 0x30,0x64,0x39,0x64,0x39,0x61,0x39,0x55,0x2c,0x30,0x78,0x38,0x39,0x38,0x65,0x38,0x65,0x30,0x37,0x55,0x2c,0x30,0x78,0x61,0x37,0x39,0x34,0x39,0x34,0x33,0x33,0x55, - 0x2c,0x0a,0x30,0x78,0x62,0x36,0x39,0x62,0x39,0x62,0x32,0x64,0x55,0x2c,0x30,0x78,0x32,0x32,0x31,0x65,0x31,0x65,0x33,0x63,0x55,0x2c,0x30,0x78,0x39,0x32,0x38,0x37, - 0x38,0x37,0x31,0x35,0x55,0x2c,0x30,0x78,0x32,0x30,0x65,0x39,0x65,0x39,0x63,0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x63,0x65,0x63,0x65,0x38,0x37,0x55,0x2c,0x30, - 0x78,0x66,0x66,0x35,0x35,0x35,0x35,0x61,0x61,0x55,0x2c,0x30,0x78,0x37,0x38,0x32,0x38,0x32,0x38,0x35,0x30,0x55,0x2c,0x30,0x78,0x37,0x61,0x64,0x66,0x64,0x66,0x61, - 0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x66,0x38,0x63,0x38,0x63,0x30,0x33,0x55,0x2c,0x30,0x78,0x66,0x38,0x61,0x31,0x61,0x31,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x30, - 0x38,0x39,0x38,0x39,0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x37,0x30,0x64,0x30,0x64,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78,0x64,0x61,0x62,0x66,0x62,0x66,0x36,0x35,0x55, - 0x2c,0x30,0x78,0x33,0x31,0x65,0x36,0x65,0x36,0x64,0x37,0x55,0x2c,0x30,0x78,0x63,0x36,0x34,0x32,0x34,0x32,0x38,0x34,0x55,0x2c,0x30,0x78,0x62,0x38,0x36,0x38,0x36, - 0x38,0x64,0x30,0x55,0x2c,0x0a,0x30,0x78,0x63,0x33,0x34,0x31,0x34,0x31,0x38,0x32,0x55,0x2c,0x30,0x78,0x62,0x30,0x39,0x39,0x39,0x39,0x32,0x39,0x55,0x2c,0x30,0x78, - 0x37,0x37,0x32,0x64,0x32,0x64,0x35,0x61,0x55,0x2c,0x30,0x78,0x31,0x31,0x30,0x66,0x30,0x66,0x31,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x62,0x30,0x62,0x30,0x37, - 0x62,0x55,0x2c,0x30,0x78,0x66,0x63,0x35,0x34,0x35,0x34,0x61,0x38,0x55,0x2c,0x30,0x78,0x64,0x36,0x62,0x62,0x62,0x62,0x36,0x64,0x55,0x2c,0x30,0x78,0x33,0x61,0x31, - 0x36,0x31,0x36,0x32,0x63,0x55,0x2c,0x0a,0x30,0x78,0x36,0x33,0x36,0x33,0x63,0x36,0x61,0x35,0x55,0x2c,0x30,0x78,0x37,0x63,0x37,0x63,0x66,0x38,0x38,0x34,0x55,0x2c, - 0x30,0x78,0x37,0x37,0x37,0x37,0x65,0x65,0x39,0x39,0x55,0x2c,0x30,0x78,0x37,0x62,0x37,0x62,0x66,0x36,0x38,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x32,0x66,0x32,0x66, - 0x66,0x30,0x64,0x55,0x2c,0x30,0x78,0x36,0x62,0x36,0x62,0x64,0x36,0x62,0x64,0x55,0x2c,0x30,0x78,0x36,0x66,0x36,0x66,0x64,0x65,0x62,0x31,0x55,0x2c,0x30,0x78,0x63, - 0x35,0x63,0x35,0x39,0x31,0x35,0x34,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x33,0x30,0x36,0x30,0x35,0x30,0x55,0x2c,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x32,0x30,0x33, - 0x55,0x2c,0x30,0x78,0x36,0x37,0x36,0x37,0x63,0x65,0x61,0x39,0x55,0x2c,0x30,0x78,0x32,0x62,0x32,0x62,0x35,0x36,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x65,0x66, - 0x65,0x65,0x37,0x31,0x39,0x55,0x2c,0x30,0x78,0x64,0x37,0x64,0x37,0x62,0x35,0x36,0x32,0x55,0x2c,0x30,0x78,0x61,0x62,0x61,0x62,0x34,0x64,0x65,0x36,0x55,0x2c,0x30, - 0x78,0x37,0x36,0x37,0x36,0x65,0x63,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x63,0x61,0x38,0x66,0x34,0x35,0x55,0x2c,0x30,0x78,0x38,0x32,0x38,0x32,0x31,0x66, - 0x39,0x64,0x55,0x2c,0x30,0x78,0x63,0x39,0x63,0x39,0x38,0x39,0x34,0x30,0x55,0x2c,0x30,0x78,0x37,0x64,0x37,0x64,0x66,0x61,0x38,0x37,0x55,0x2c,0x0a,0x30,0x78,0x66, - 0x61,0x66,0x61,0x65,0x66,0x31,0x35,0x55,0x2c,0x30,0x78,0x35,0x39,0x35,0x39,0x62,0x32,0x65,0x62,0x55,0x2c,0x30,0x78,0x34,0x37,0x34,0x37,0x38,0x65,0x63,0x39,0x55, - 0x2c,0x30,0x78,0x66,0x30,0x66,0x30,0x66,0x62,0x30,0x62,0x55,0x2c,0x0a,0x30,0x78,0x61,0x64,0x61,0x64,0x34,0x31,0x65,0x63,0x55,0x2c,0x30,0x78,0x64,0x34,0x64,0x34, - 0x62,0x33,0x36,0x37,0x55,0x2c,0x30,0x78,0x61,0x32,0x61,0x32,0x35,0x66,0x66,0x64,0x55,0x2c,0x30,0x78,0x61,0x66,0x61,0x66,0x34,0x35,0x65,0x61,0x55,0x2c,0x0a,0x30, - 0x78,0x39,0x63,0x39,0x63,0x32,0x33,0x62,0x66,0x55,0x2c,0x30,0x78,0x61,0x34,0x61,0x34,0x35,0x33,0x66,0x37,0x55,0x2c,0x30,0x78,0x37,0x32,0x37,0x32,0x65,0x34,0x39, - 0x36,0x55,0x2c,0x30,0x78,0x63,0x30,0x63,0x30,0x39,0x62,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x62,0x37,0x62,0x37,0x37,0x35,0x63,0x32,0x55,0x2c,0x30,0x78,0x66,0x64, - 0x66,0x64,0x65,0x31,0x31,0x63,0x55,0x2c,0x30,0x78,0x39,0x33,0x39,0x33,0x33,0x64,0x61,0x65,0x55,0x2c,0x30,0x78,0x32,0x36,0x32,0x36,0x34,0x63,0x36,0x61,0x55,0x2c, - 0x0a,0x30,0x78,0x33,0x36,0x33,0x36,0x36,0x63,0x35,0x61,0x55,0x2c,0x30,0x78,0x33,0x66,0x33,0x66,0x37,0x65,0x34,0x31,0x55,0x2c,0x30,0x78,0x66,0x37,0x66,0x37,0x66, - 0x35,0x30,0x32,0x55,0x2c,0x30,0x78,0x63,0x63,0x63,0x63,0x38,0x33,0x34,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x34,0x33,0x34,0x36,0x38,0x35,0x63,0x55,0x2c,0x30,0x78, - 0x61,0x35,0x61,0x35,0x35,0x31,0x66,0x34,0x55,0x2c,0x30,0x78,0x65,0x35,0x65,0x35,0x64,0x31,0x33,0x34,0x55,0x2c,0x30,0x78,0x66,0x31,0x66,0x31,0x66,0x39,0x30,0x38, - 0x55,0x2c,0x0a,0x30,0x78,0x37,0x31,0x37,0x31,0x65,0x32,0x39,0x33,0x55,0x2c,0x30,0x78,0x64,0x38,0x64,0x38,0x61,0x62,0x37,0x33,0x55,0x2c,0x30,0x78,0x33,0x31,0x33, - 0x31,0x36,0x32,0x35,0x33,0x55,0x2c,0x30,0x78,0x31,0x35,0x31,0x35,0x32,0x61,0x33,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x34,0x30,0x34,0x30,0x38,0x30,0x63,0x55,0x2c, - 0x30,0x78,0x63,0x37,0x63,0x37,0x39,0x35,0x35,0x32,0x55,0x2c,0x30,0x78,0x32,0x33,0x32,0x33,0x34,0x36,0x36,0x35,0x55,0x2c,0x30,0x78,0x63,0x33,0x63,0x33,0x39,0x64, - 0x35,0x65,0x55,0x2c,0x0a,0x30,0x78,0x31,0x38,0x31,0x38,0x33,0x30,0x32,0x38,0x55,0x2c,0x30,0x78,0x39,0x36,0x39,0x36,0x33,0x37,0x61,0x31,0x55,0x2c,0x30,0x78,0x30, - 0x35,0x30,0x35,0x30,0x61,0x30,0x66,0x55,0x2c,0x30,0x78,0x39,0x61,0x39,0x61,0x32,0x66,0x62,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x37,0x30,0x37,0x30,0x65,0x30,0x39, - 0x55,0x2c,0x30,0x78,0x31,0x32,0x31,0x32,0x32,0x34,0x33,0x36,0x55,0x2c,0x30,0x78,0x38,0x30,0x38,0x30,0x31,0x62,0x39,0x62,0x55,0x2c,0x30,0x78,0x65,0x32,0x65,0x32, - 0x64,0x66,0x33,0x64,0x55,0x2c,0x0a,0x30,0x78,0x65,0x62,0x65,0x62,0x63,0x64,0x32,0x36,0x55,0x2c,0x30,0x78,0x32,0x37,0x32,0x37,0x34,0x65,0x36,0x39,0x55,0x2c,0x30, - 0x78,0x62,0x32,0x62,0x32,0x37,0x66,0x63,0x64,0x55,0x2c,0x30,0x78,0x37,0x35,0x37,0x35,0x65,0x61,0x39,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x39,0x31,0x32, - 0x31,0x62,0x55,0x2c,0x30,0x78,0x38,0x33,0x38,0x33,0x31,0x64,0x39,0x65,0x55,0x2c,0x30,0x78,0x32,0x63,0x32,0x63,0x35,0x38,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x61, - 0x31,0x61,0x33,0x34,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78,0x31,0x62,0x31,0x62,0x33,0x36,0x32,0x64,0x55,0x2c,0x30,0x78,0x36,0x65,0x36,0x65,0x64,0x63,0x62,0x32,0x55, - 0x2c,0x30,0x78,0x35,0x61,0x35,0x61,0x62,0x34,0x65,0x65,0x55,0x2c,0x30,0x78,0x61,0x30,0x61,0x30,0x35,0x62,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x35,0x32,0x35,0x32, - 0x61,0x34,0x66,0x36,0x55,0x2c,0x30,0x78,0x33,0x62,0x33,0x62,0x37,0x36,0x34,0x64,0x55,0x2c,0x30,0x78,0x64,0x36,0x64,0x36,0x62,0x37,0x36,0x31,0x55,0x2c,0x30,0x78, - 0x62,0x33,0x62,0x33,0x37,0x64,0x63,0x65,0x55,0x2c,0x0a,0x30,0x78,0x32,0x39,0x32,0x39,0x35,0x32,0x37,0x62,0x55,0x2c,0x30,0x78,0x65,0x33,0x65,0x33,0x64,0x64,0x33, - 0x65,0x55,0x2c,0x30,0x78,0x32,0x66,0x32,0x66,0x35,0x65,0x37,0x31,0x55,0x2c,0x30,0x78,0x38,0x34,0x38,0x34,0x31,0x33,0x39,0x37,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33, - 0x35,0x33,0x61,0x36,0x66,0x35,0x55,0x2c,0x30,0x78,0x64,0x31,0x64,0x31,0x62,0x39,0x36,0x38,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c, - 0x30,0x78,0x65,0x64,0x65,0x64,0x63,0x31,0x32,0x63,0x55,0x2c,0x0a,0x30,0x78,0x32,0x30,0x32,0x30,0x34,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x66,0x63,0x66,0x63,0x65, - 0x33,0x31,0x66,0x55,0x2c,0x30,0x78,0x62,0x31,0x62,0x31,0x37,0x39,0x63,0x38,0x55,0x2c,0x30,0x78,0x35,0x62,0x35,0x62,0x62,0x36,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78, - 0x36,0x61,0x36,0x61,0x64,0x34,0x62,0x65,0x55,0x2c,0x30,0x78,0x63,0x62,0x63,0x62,0x38,0x64,0x34,0x36,0x55,0x2c,0x30,0x78,0x62,0x65,0x62,0x65,0x36,0x37,0x64,0x39, - 0x55,0x2c,0x30,0x78,0x33,0x39,0x33,0x39,0x37,0x32,0x34,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x34,0x61,0x39,0x34,0x64,0x65,0x55,0x2c,0x30,0x78,0x34,0x63,0x34, - 0x63,0x39,0x38,0x64,0x34,0x55,0x2c,0x30,0x78,0x35,0x38,0x35,0x38,0x62,0x30,0x65,0x38,0x55,0x2c,0x30,0x78,0x63,0x66,0x63,0x66,0x38,0x35,0x34,0x61,0x55,0x2c,0x0a, - 0x30,0x78,0x64,0x30,0x64,0x30,0x62,0x62,0x36,0x62,0x55,0x2c,0x30,0x78,0x65,0x66,0x65,0x66,0x63,0x35,0x32,0x61,0x55,0x2c,0x30,0x78,0x61,0x61,0x61,0x61,0x34,0x66, - 0x65,0x35,0x55,0x2c,0x30,0x78,0x66,0x62,0x66,0x62,0x65,0x64,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x33,0x34,0x33,0x38,0x36,0x63,0x35,0x55,0x2c,0x30,0x78,0x34, - 0x64,0x34,0x64,0x39,0x61,0x64,0x37,0x55,0x2c,0x30,0x78,0x33,0x33,0x33,0x33,0x36,0x36,0x35,0x35,0x55,0x2c,0x30,0x78,0x38,0x35,0x38,0x35,0x31,0x31,0x39,0x34,0x55, - 0x2c,0x0a,0x30,0x78,0x34,0x35,0x34,0x35,0x38,0x61,0x63,0x66,0x55,0x2c,0x30,0x78,0x66,0x39,0x66,0x39,0x65,0x39,0x31,0x30,0x55,0x2c,0x30,0x78,0x30,0x32,0x30,0x32, - 0x30,0x34,0x30,0x36,0x55,0x2c,0x30,0x78,0x37,0x66,0x37,0x66,0x66,0x65,0x38,0x31,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x35,0x30,0x61,0x30,0x66,0x30,0x55,0x2c,0x30, - 0x78,0x33,0x63,0x33,0x63,0x37,0x38,0x34,0x34,0x55,0x2c,0x30,0x78,0x39,0x66,0x39,0x66,0x32,0x35,0x62,0x61,0x55,0x2c,0x30,0x78,0x61,0x38,0x61,0x38,0x34,0x62,0x65, - 0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x31,0x35,0x31,0x61,0x32,0x66,0x33,0x55,0x2c,0x30,0x78,0x61,0x33,0x61,0x33,0x35,0x64,0x66,0x65,0x55,0x2c,0x30,0x78,0x34,0x30, - 0x34,0x30,0x38,0x30,0x63,0x30,0x55,0x2c,0x30,0x78,0x38,0x66,0x38,0x66,0x30,0x35,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x32,0x39,0x32,0x33,0x66,0x61,0x64,0x55, - 0x2c,0x30,0x78,0x39,0x64,0x39,0x64,0x32,0x31,0x62,0x63,0x55,0x2c,0x30,0x78,0x33,0x38,0x33,0x38,0x37,0x30,0x34,0x38,0x55,0x2c,0x30,0x78,0x66,0x35,0x66,0x35,0x66, - 0x31,0x30,0x34,0x55,0x2c,0x0a,0x30,0x78,0x62,0x63,0x62,0x63,0x36,0x33,0x64,0x66,0x55,0x2c,0x30,0x78,0x62,0x36,0x62,0x36,0x37,0x37,0x63,0x31,0x55,0x2c,0x30,0x78, - 0x64,0x61,0x64,0x61,0x61,0x66,0x37,0x35,0x55,0x2c,0x30,0x78,0x32,0x31,0x32,0x31,0x34,0x32,0x36,0x33,0x55,0x2c,0x0a,0x30,0x78,0x31,0x30,0x31,0x30,0x32,0x30,0x33, - 0x30,0x55,0x2c,0x30,0x78,0x66,0x66,0x66,0x66,0x65,0x35,0x31,0x61,0x55,0x2c,0x30,0x78,0x66,0x33,0x66,0x33,0x66,0x64,0x30,0x65,0x55,0x2c,0x30,0x78,0x64,0x32,0x64, - 0x32,0x62,0x66,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x63,0x64,0x38,0x31,0x34,0x63,0x55,0x2c,0x30,0x78,0x30,0x63,0x30,0x63,0x31,0x38,0x31,0x34,0x55,0x2c, - 0x30,0x78,0x31,0x33,0x31,0x33,0x32,0x36,0x33,0x35,0x55,0x2c,0x30,0x78,0x65,0x63,0x65,0x63,0x63,0x33,0x32,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x66,0x35,0x66,0x62, - 0x65,0x65,0x31,0x55,0x2c,0x30,0x78,0x39,0x37,0x39,0x37,0x33,0x35,0x61,0x32,0x55,0x2c,0x30,0x78,0x34,0x34,0x34,0x34,0x38,0x38,0x63,0x63,0x55,0x2c,0x30,0x78,0x31, - 0x37,0x31,0x37,0x32,0x65,0x33,0x39,0x55,0x2c,0x0a,0x30,0x78,0x63,0x34,0x63,0x34,0x39,0x33,0x35,0x37,0x55,0x2c,0x30,0x78,0x61,0x37,0x61,0x37,0x35,0x35,0x66,0x32, - 0x55,0x2c,0x30,0x78,0x37,0x65,0x37,0x65,0x66,0x63,0x38,0x32,0x55,0x2c,0x30,0x78,0x33,0x64,0x33,0x64,0x37,0x61,0x34,0x37,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x36, - 0x34,0x63,0x38,0x61,0x63,0x55,0x2c,0x30,0x78,0x35,0x64,0x35,0x64,0x62,0x61,0x65,0x37,0x55,0x2c,0x30,0x78,0x31,0x39,0x31,0x39,0x33,0x32,0x32,0x62,0x55,0x2c,0x30, - 0x78,0x37,0x33,0x37,0x33,0x65,0x36,0x39,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x30,0x36,0x30,0x63,0x30,0x61,0x30,0x55,0x2c,0x30,0x78,0x38,0x31,0x38,0x31,0x31,0x39, - 0x39,0x38,0x55,0x2c,0x30,0x78,0x34,0x66,0x34,0x66,0x39,0x65,0x64,0x31,0x55,0x2c,0x30,0x78,0x64,0x63,0x64,0x63,0x61,0x33,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x32, - 0x32,0x32,0x32,0x34,0x34,0x36,0x36,0x55,0x2c,0x30,0x78,0x32,0x61,0x32,0x61,0x35,0x34,0x37,0x65,0x55,0x2c,0x30,0x78,0x39,0x30,0x39,0x30,0x33,0x62,0x61,0x62,0x55, - 0x2c,0x30,0x78,0x38,0x38,0x38,0x38,0x30,0x62,0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x34,0x36,0x34,0x36,0x38,0x63,0x63,0x61,0x55,0x2c,0x30,0x78,0x65,0x65,0x65,0x65, - 0x63,0x37,0x32,0x39,0x55,0x2c,0x30,0x78,0x62,0x38,0x62,0x38,0x36,0x62,0x64,0x33,0x55,0x2c,0x30,0x78,0x31,0x34,0x31,0x34,0x32,0x38,0x33,0x63,0x55,0x2c,0x0a,0x30, - 0x78,0x64,0x65,0x64,0x65,0x61,0x37,0x37,0x39,0x55,0x2c,0x30,0x78,0x35,0x65,0x35,0x65,0x62,0x63,0x65,0x32,0x55,0x2c,0x30,0x78,0x30,0x62,0x30,0x62,0x31,0x36,0x31, - 0x64,0x55,0x2c,0x30,0x78,0x64,0x62,0x64,0x62,0x61,0x64,0x37,0x36,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x65,0x30,0x64,0x62,0x33,0x62,0x55,0x2c,0x30,0x78,0x33,0x32, - 0x33,0x32,0x36,0x34,0x35,0x36,0x55,0x2c,0x30,0x78,0x33,0x61,0x33,0x61,0x37,0x34,0x34,0x65,0x55,0x2c,0x30,0x78,0x30,0x61,0x30,0x61,0x31,0x34,0x31,0x65,0x55,0x2c, - 0x0a,0x30,0x78,0x34,0x39,0x34,0x39,0x39,0x32,0x64,0x62,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x36,0x30,0x63,0x30,0x61,0x55,0x2c,0x30,0x78,0x32,0x34,0x32,0x34,0x34, - 0x38,0x36,0x63,0x55,0x2c,0x30,0x78,0x35,0x63,0x35,0x63,0x62,0x38,0x65,0x34,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x63,0x32,0x39,0x66,0x35,0x64,0x55,0x2c,0x30,0x78, - 0x64,0x33,0x64,0x33,0x62,0x64,0x36,0x65,0x55,0x2c,0x30,0x78,0x61,0x63,0x61,0x63,0x34,0x33,0x65,0x66,0x55,0x2c,0x30,0x78,0x36,0x32,0x36,0x32,0x63,0x34,0x61,0x36, - 0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x39,0x31,0x33,0x39,0x61,0x38,0x55,0x2c,0x30,0x78,0x39,0x35,0x39,0x35,0x33,0x31,0x61,0x34,0x55,0x2c,0x30,0x78,0x65,0x34,0x65, - 0x34,0x64,0x33,0x33,0x37,0x55,0x2c,0x30,0x78,0x37,0x39,0x37,0x39,0x66,0x32,0x38,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x65,0x37,0x64,0x35,0x33,0x32,0x55,0x2c, - 0x30,0x78,0x63,0x38,0x63,0x38,0x38,0x62,0x34,0x33,0x55,0x2c,0x30,0x78,0x33,0x37,0x33,0x37,0x36,0x65,0x35,0x39,0x55,0x2c,0x30,0x78,0x36,0x64,0x36,0x64,0x64,0x61, - 0x62,0x37,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x38,0x64,0x30,0x31,0x38,0x63,0x55,0x2c,0x30,0x78,0x64,0x35,0x64,0x35,0x62,0x31,0x36,0x34,0x55,0x2c,0x30,0x78,0x34, - 0x65,0x34,0x65,0x39,0x63,0x64,0x32,0x55,0x2c,0x30,0x78,0x61,0x39,0x61,0x39,0x34,0x39,0x65,0x30,0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x36,0x63,0x64,0x38,0x62,0x34, - 0x55,0x2c,0x30,0x78,0x35,0x36,0x35,0x36,0x61,0x63,0x66,0x61,0x55,0x2c,0x30,0x78,0x66,0x34,0x66,0x34,0x66,0x33,0x30,0x37,0x55,0x2c,0x30,0x78,0x65,0x61,0x65,0x61, - 0x63,0x66,0x32,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35,0x36,0x35,0x63,0x61,0x61,0x66,0x55,0x2c,0x30,0x78,0x37,0x61,0x37,0x61,0x66,0x34,0x38,0x65,0x55,0x2c,0x30, - 0x78,0x61,0x65,0x61,0x65,0x34,0x37,0x65,0x39,0x55,0x2c,0x30,0x78,0x30,0x38,0x30,0x38,0x31,0x30,0x31,0x38,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x62,0x61,0x36,0x66, - 0x64,0x35,0x55,0x2c,0x30,0x78,0x37,0x38,0x37,0x38,0x66,0x30,0x38,0x38,0x55,0x2c,0x30,0x78,0x32,0x35,0x32,0x35,0x34,0x61,0x36,0x66,0x55,0x2c,0x30,0x78,0x32,0x65, - 0x32,0x65,0x35,0x63,0x37,0x32,0x55,0x2c,0x0a,0x30,0x78,0x31,0x63,0x31,0x63,0x33,0x38,0x32,0x34,0x55,0x2c,0x30,0x78,0x61,0x36,0x61,0x36,0x35,0x37,0x66,0x31,0x55, - 0x2c,0x30,0x78,0x62,0x34,0x62,0x34,0x37,0x33,0x63,0x37,0x55,0x2c,0x30,0x78,0x63,0x36,0x63,0x36,0x39,0x37,0x35,0x31,0x55,0x2c,0x0a,0x30,0x78,0x65,0x38,0x65,0x38, - 0x63,0x62,0x32,0x33,0x55,0x2c,0x30,0x78,0x64,0x64,0x64,0x64,0x61,0x31,0x37,0x63,0x55,0x2c,0x30,0x78,0x37,0x34,0x37,0x34,0x65,0x38,0x39,0x63,0x55,0x2c,0x30,0x78, - 0x31,0x66,0x31,0x66,0x33,0x65,0x32,0x31,0x55,0x2c,0x0a,0x30,0x78,0x34,0x62,0x34,0x62,0x39,0x36,0x64,0x64,0x55,0x2c,0x30,0x78,0x62,0x64,0x62,0x64,0x36,0x31,0x64, - 0x63,0x55,0x2c,0x30,0x78,0x38,0x62,0x38,0x62,0x30,0x64,0x38,0x36,0x55,0x2c,0x30,0x78,0x38,0x61,0x38,0x61,0x30,0x66,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x37,0x30, - 0x37,0x30,0x65,0x30,0x39,0x30,0x55,0x2c,0x30,0x78,0x33,0x65,0x33,0x65,0x37,0x63,0x34,0x32,0x55,0x2c,0x30,0x78,0x62,0x35,0x62,0x35,0x37,0x31,0x63,0x34,0x55,0x2c, - 0x30,0x78,0x36,0x36,0x36,0x36,0x63,0x63,0x61,0x61,0x55,0x2c,0x0a,0x30,0x78,0x34,0x38,0x34,0x38,0x39,0x30,0x64,0x38,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x33,0x30, - 0x36,0x30,0x35,0x55,0x2c,0x30,0x78,0x66,0x36,0x66,0x36,0x66,0x37,0x30,0x31,0x55,0x2c,0x30,0x78,0x30,0x65,0x30,0x65,0x31,0x63,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78, - 0x36,0x31,0x36,0x31,0x63,0x32,0x61,0x33,0x55,0x2c,0x30,0x78,0x33,0x35,0x33,0x35,0x36,0x61,0x35,0x66,0x55,0x2c,0x30,0x78,0x35,0x37,0x35,0x37,0x61,0x65,0x66,0x39, - 0x55,0x2c,0x30,0x78,0x62,0x39,0x62,0x39,0x36,0x39,0x64,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x38,0x36,0x31,0x37,0x39,0x31,0x55,0x2c,0x30,0x78,0x63,0x31,0x63, - 0x31,0x39,0x39,0x35,0x38,0x55,0x2c,0x30,0x78,0x31,0x64,0x31,0x64,0x33,0x61,0x32,0x37,0x55,0x2c,0x30,0x78,0x39,0x65,0x39,0x65,0x32,0x37,0x62,0x39,0x55,0x2c,0x0a, - 0x30,0x78,0x65,0x31,0x65,0x31,0x64,0x39,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x38,0x66,0x38,0x65,0x62,0x31,0x33,0x55,0x2c,0x30,0x78,0x39,0x38,0x39,0x38,0x32,0x62, - 0x62,0x33,0x55,0x2c,0x30,0x78,0x31,0x31,0x31,0x31,0x32,0x32,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x39,0x36,0x39,0x64,0x32,0x62,0x62,0x55,0x2c,0x30,0x78,0x64, - 0x39,0x64,0x39,0x61,0x39,0x37,0x30,0x55,0x2c,0x30,0x78,0x38,0x65,0x38,0x65,0x30,0x37,0x38,0x39,0x55,0x2c,0x30,0x78,0x39,0x34,0x39,0x34,0x33,0x33,0x61,0x37,0x55, - 0x2c,0x0a,0x30,0x78,0x39,0x62,0x39,0x62,0x32,0x64,0x62,0x36,0x55,0x2c,0x30,0x78,0x31,0x65,0x31,0x65,0x33,0x63,0x32,0x32,0x55,0x2c,0x30,0x78,0x38,0x37,0x38,0x37, - 0x31,0x35,0x39,0x32,0x55,0x2c,0x30,0x78,0x65,0x39,0x65,0x39,0x63,0x39,0x32,0x30,0x55,0x2c,0x0a,0x30,0x78,0x63,0x65,0x63,0x65,0x38,0x37,0x34,0x39,0x55,0x2c,0x30, - 0x78,0x35,0x35,0x35,0x35,0x61,0x61,0x66,0x66,0x55,0x2c,0x30,0x78,0x32,0x38,0x32,0x38,0x35,0x30,0x37,0x38,0x55,0x2c,0x30,0x78,0x64,0x66,0x64,0x66,0x61,0x35,0x37, - 0x61,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x38,0x63,0x30,0x33,0x38,0x66,0x55,0x2c,0x30,0x78,0x61,0x31,0x61,0x31,0x35,0x39,0x66,0x38,0x55,0x2c,0x30,0x78,0x38,0x39, - 0x38,0x39,0x30,0x39,0x38,0x30,0x55,0x2c,0x30,0x78,0x30,0x64,0x30,0x64,0x31,0x61,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x62,0x66,0x62,0x66,0x36,0x35,0x64,0x61,0x55, - 0x2c,0x30,0x78,0x65,0x36,0x65,0x36,0x64,0x37,0x33,0x31,0x55,0x2c,0x30,0x78,0x34,0x32,0x34,0x32,0x38,0x34,0x63,0x36,0x55,0x2c,0x30,0x78,0x36,0x38,0x36,0x38,0x64, - 0x30,0x62,0x38,0x55,0x2c,0x0a,0x30,0x78,0x34,0x31,0x34,0x31,0x38,0x32,0x63,0x33,0x55,0x2c,0x30,0x78,0x39,0x39,0x39,0x39,0x32,0x39,0x62,0x30,0x55,0x2c,0x30,0x78, - 0x32,0x64,0x32,0x64,0x35,0x61,0x37,0x37,0x55,0x2c,0x30,0x78,0x30,0x66,0x30,0x66,0x31,0x65,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x62,0x30,0x62,0x30,0x37,0x62,0x63, - 0x62,0x55,0x2c,0x30,0x78,0x35,0x34,0x35,0x34,0x61,0x38,0x66,0x63,0x55,0x2c,0x30,0x78,0x62,0x62,0x62,0x62,0x36,0x64,0x64,0x36,0x55,0x2c,0x30,0x78,0x31,0x36,0x31, - 0x36,0x32,0x63,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x36,0x33,0x63,0x36,0x61,0x35,0x36,0x33,0x55,0x2c,0x30,0x78,0x37,0x63,0x66,0x38,0x38,0x34,0x37,0x63,0x55,0x2c, - 0x30,0x78,0x37,0x37,0x65,0x65,0x39,0x39,0x37,0x37,0x55,0x2c,0x30,0x78,0x37,0x62,0x66,0x36,0x38,0x64,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x32,0x66,0x66,0x30, - 0x64,0x66,0x32,0x55,0x2c,0x30,0x78,0x36,0x62,0x64,0x36,0x62,0x64,0x36,0x62,0x55,0x2c,0x30,0x78,0x36,0x66,0x64,0x65,0x62,0x31,0x36,0x66,0x55,0x2c,0x30,0x78,0x63, - 0x35,0x39,0x31,0x35,0x34,0x63,0x35,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x36,0x30,0x35,0x30,0x33,0x30,0x55,0x2c,0x30,0x78,0x30,0x31,0x30,0x32,0x30,0x33,0x30,0x31, - 0x55,0x2c,0x30,0x78,0x36,0x37,0x63,0x65,0x61,0x39,0x36,0x37,0x55,0x2c,0x30,0x78,0x32,0x62,0x35,0x36,0x37,0x64,0x32,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x65,0x65, - 0x37,0x31,0x39,0x66,0x65,0x55,0x2c,0x30,0x78,0x64,0x37,0x62,0x35,0x36,0x32,0x64,0x37,0x55,0x2c,0x30,0x78,0x61,0x62,0x34,0x64,0x65,0x36,0x61,0x62,0x55,0x2c,0x30, - 0x78,0x37,0x36,0x65,0x63,0x39,0x61,0x37,0x36,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x38,0x66,0x34,0x35,0x63,0x61,0x55,0x2c,0x30,0x78,0x38,0x32,0x31,0x66,0x39,0x64, - 0x38,0x32,0x55,0x2c,0x30,0x78,0x63,0x39,0x38,0x39,0x34,0x30,0x63,0x39,0x55,0x2c,0x30,0x78,0x37,0x64,0x66,0x61,0x38,0x37,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66, - 0x61,0x65,0x66,0x31,0x35,0x66,0x61,0x55,0x2c,0x30,0x78,0x35,0x39,0x62,0x32,0x65,0x62,0x35,0x39,0x55,0x2c,0x30,0x78,0x34,0x37,0x38,0x65,0x63,0x39,0x34,0x37,0x55, - 0x2c,0x30,0x78,0x66,0x30,0x66,0x62,0x30,0x62,0x66,0x30,0x55,0x2c,0x0a,0x30,0x78,0x61,0x64,0x34,0x31,0x65,0x63,0x61,0x64,0x55,0x2c,0x30,0x78,0x64,0x34,0x62,0x33, - 0x36,0x37,0x64,0x34,0x55,0x2c,0x30,0x78,0x61,0x32,0x35,0x66,0x66,0x64,0x61,0x32,0x55,0x2c,0x30,0x78,0x61,0x66,0x34,0x35,0x65,0x61,0x61,0x66,0x55,0x2c,0x0a,0x30, - 0x78,0x39,0x63,0x32,0x33,0x62,0x66,0x39,0x63,0x55,0x2c,0x30,0x78,0x61,0x34,0x35,0x33,0x66,0x37,0x61,0x34,0x55,0x2c,0x30,0x78,0x37,0x32,0x65,0x34,0x39,0x36,0x37, - 0x32,0x55,0x2c,0x30,0x78,0x63,0x30,0x39,0x62,0x35,0x62,0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x62,0x37,0x37,0x35,0x63,0x32,0x62,0x37,0x55,0x2c,0x30,0x78,0x66,0x64, - 0x65,0x31,0x31,0x63,0x66,0x64,0x55,0x2c,0x30,0x78,0x39,0x33,0x33,0x64,0x61,0x65,0x39,0x33,0x55,0x2c,0x30,0x78,0x32,0x36,0x34,0x63,0x36,0x61,0x32,0x36,0x55,0x2c, - 0x0a,0x30,0x78,0x33,0x36,0x36,0x63,0x35,0x61,0x33,0x36,0x55,0x2c,0x30,0x78,0x33,0x66,0x37,0x65,0x34,0x31,0x33,0x66,0x55,0x2c,0x30,0x78,0x66,0x37,0x66,0x35,0x30, - 0x32,0x66,0x37,0x55,0x2c,0x30,0x78,0x63,0x63,0x38,0x33,0x34,0x66,0x63,0x63,0x55,0x2c,0x0a,0x30,0x78,0x33,0x34,0x36,0x38,0x35,0x63,0x33,0x34,0x55,0x2c,0x30,0x78, - 0x61,0x35,0x35,0x31,0x66,0x34,0x61,0x35,0x55,0x2c,0x30,0x78,0x65,0x35,0x64,0x31,0x33,0x34,0x65,0x35,0x55,0x2c,0x30,0x78,0x66,0x31,0x66,0x39,0x30,0x38,0x66,0x31, - 0x55,0x2c,0x0a,0x30,0x78,0x37,0x31,0x65,0x32,0x39,0x33,0x37,0x31,0x55,0x2c,0x30,0x78,0x64,0x38,0x61,0x62,0x37,0x33,0x64,0x38,0x55,0x2c,0x30,0x78,0x33,0x31,0x36, - 0x32,0x35,0x33,0x33,0x31,0x55,0x2c,0x30,0x78,0x31,0x35,0x32,0x61,0x33,0x66,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x34,0x30,0x38,0x30,0x63,0x30,0x34,0x55,0x2c, - 0x30,0x78,0x63,0x37,0x39,0x35,0x35,0x32,0x63,0x37,0x55,0x2c,0x30,0x78,0x32,0x33,0x34,0x36,0x36,0x35,0x32,0x33,0x55,0x2c,0x30,0x78,0x63,0x33,0x39,0x64,0x35,0x65, - 0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x31,0x38,0x33,0x30,0x32,0x38,0x31,0x38,0x55,0x2c,0x30,0x78,0x39,0x36,0x33,0x37,0x61,0x31,0x39,0x36,0x55,0x2c,0x30,0x78,0x30, - 0x35,0x30,0x61,0x30,0x66,0x30,0x35,0x55,0x2c,0x30,0x78,0x39,0x61,0x32,0x66,0x62,0x35,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x30,0x37,0x30,0x65,0x30,0x39,0x30,0x37, - 0x55,0x2c,0x30,0x78,0x31,0x32,0x32,0x34,0x33,0x36,0x31,0x32,0x55,0x2c,0x30,0x78,0x38,0x30,0x31,0x62,0x39,0x62,0x38,0x30,0x55,0x2c,0x30,0x78,0x65,0x32,0x64,0x66, - 0x33,0x64,0x65,0x32,0x55,0x2c,0x0a,0x30,0x78,0x65,0x62,0x63,0x64,0x32,0x36,0x65,0x62,0x55,0x2c,0x30,0x78,0x32,0x37,0x34,0x65,0x36,0x39,0x32,0x37,0x55,0x2c,0x30, - 0x78,0x62,0x32,0x37,0x66,0x63,0x64,0x62,0x32,0x55,0x2c,0x30,0x78,0x37,0x35,0x65,0x61,0x39,0x66,0x37,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x31,0x32,0x31,0x62, - 0x30,0x39,0x55,0x2c,0x30,0x78,0x38,0x33,0x31,0x64,0x39,0x65,0x38,0x33,0x55,0x2c,0x30,0x78,0x32,0x63,0x35,0x38,0x37,0x34,0x32,0x63,0x55,0x2c,0x30,0x78,0x31,0x61, - 0x33,0x34,0x32,0x65,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78,0x31,0x62,0x33,0x36,0x32,0x64,0x31,0x62,0x55,0x2c,0x30,0x78,0x36,0x65,0x64,0x63,0x62,0x32,0x36,0x65,0x55, - 0x2c,0x30,0x78,0x35,0x61,0x62,0x34,0x65,0x65,0x35,0x61,0x55,0x2c,0x30,0x78,0x61,0x30,0x35,0x62,0x66,0x62,0x61,0x30,0x55,0x2c,0x0a,0x30,0x78,0x35,0x32,0x61,0x34, - 0x66,0x36,0x35,0x32,0x55,0x2c,0x30,0x78,0x33,0x62,0x37,0x36,0x34,0x64,0x33,0x62,0x55,0x2c,0x30,0x78,0x64,0x36,0x62,0x37,0x36,0x31,0x64,0x36,0x55,0x2c,0x30,0x78, - 0x62,0x33,0x37,0x64,0x63,0x65,0x62,0x33,0x55,0x2c,0x0a,0x30,0x78,0x32,0x39,0x35,0x32,0x37,0x62,0x32,0x39,0x55,0x2c,0x30,0x78,0x65,0x33,0x64,0x64,0x33,0x65,0x65, - 0x33,0x55,0x2c,0x30,0x78,0x32,0x66,0x35,0x65,0x37,0x31,0x32,0x66,0x55,0x2c,0x30,0x78,0x38,0x34,0x31,0x33,0x39,0x37,0x38,0x34,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33, - 0x61,0x36,0x66,0x35,0x35,0x33,0x55,0x2c,0x30,0x78,0x64,0x31,0x62,0x39,0x36,0x38,0x64,0x31,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c, - 0x30,0x78,0x65,0x64,0x63,0x31,0x32,0x63,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x30,0x34,0x30,0x36,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x66,0x63,0x65,0x33,0x31, - 0x66,0x66,0x63,0x55,0x2c,0x30,0x78,0x62,0x31,0x37,0x39,0x63,0x38,0x62,0x31,0x55,0x2c,0x30,0x78,0x35,0x62,0x62,0x36,0x65,0x64,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78, - 0x36,0x61,0x64,0x34,0x62,0x65,0x36,0x61,0x55,0x2c,0x30,0x78,0x63,0x62,0x38,0x64,0x34,0x36,0x63,0x62,0x55,0x2c,0x30,0x78,0x62,0x65,0x36,0x37,0x64,0x39,0x62,0x65, - 0x55,0x2c,0x30,0x78,0x33,0x39,0x37,0x32,0x34,0x62,0x33,0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x39,0x34,0x64,0x65,0x34,0x61,0x55,0x2c,0x30,0x78,0x34,0x63,0x39, - 0x38,0x64,0x34,0x34,0x63,0x55,0x2c,0x30,0x78,0x35,0x38,0x62,0x30,0x65,0x38,0x35,0x38,0x55,0x2c,0x30,0x78,0x63,0x66,0x38,0x35,0x34,0x61,0x63,0x66,0x55,0x2c,0x0a, - 0x30,0x78,0x64,0x30,0x62,0x62,0x36,0x62,0x64,0x30,0x55,0x2c,0x30,0x78,0x65,0x66,0x63,0x35,0x32,0x61,0x65,0x66,0x55,0x2c,0x30,0x78,0x61,0x61,0x34,0x66,0x65,0x35, - 0x61,0x61,0x55,0x2c,0x30,0x78,0x66,0x62,0x65,0x64,0x31,0x36,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x33,0x38,0x36,0x63,0x35,0x34,0x33,0x55,0x2c,0x30,0x78,0x34, - 0x64,0x39,0x61,0x64,0x37,0x34,0x64,0x55,0x2c,0x30,0x78,0x33,0x33,0x36,0x36,0x35,0x35,0x33,0x33,0x55,0x2c,0x30,0x78,0x38,0x35,0x31,0x31,0x39,0x34,0x38,0x35,0x55, - 0x2c,0x0a,0x30,0x78,0x34,0x35,0x38,0x61,0x63,0x66,0x34,0x35,0x55,0x2c,0x30,0x78,0x66,0x39,0x65,0x39,0x31,0x30,0x66,0x39,0x55,0x2c,0x30,0x78,0x30,0x32,0x30,0x34, - 0x30,0x36,0x30,0x32,0x55,0x2c,0x30,0x78,0x37,0x66,0x66,0x65,0x38,0x31,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x61,0x30,0x66,0x30,0x35,0x30,0x55,0x2c,0x30, - 0x78,0x33,0x63,0x37,0x38,0x34,0x34,0x33,0x63,0x55,0x2c,0x30,0x78,0x39,0x66,0x32,0x35,0x62,0x61,0x39,0x66,0x55,0x2c,0x30,0x78,0x61,0x38,0x34,0x62,0x65,0x33,0x61, - 0x38,0x55,0x2c,0x0a,0x30,0x78,0x35,0x31,0x61,0x32,0x66,0x33,0x35,0x31,0x55,0x2c,0x30,0x78,0x61,0x33,0x35,0x64,0x66,0x65,0x61,0x33,0x55,0x2c,0x30,0x78,0x34,0x30, - 0x38,0x30,0x63,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x38,0x66,0x30,0x35,0x38,0x61,0x38,0x66,0x55,0x2c,0x0a,0x30,0x78,0x39,0x32,0x33,0x66,0x61,0x64,0x39,0x32,0x55, - 0x2c,0x30,0x78,0x39,0x64,0x32,0x31,0x62,0x63,0x39,0x64,0x55,0x2c,0x30,0x78,0x33,0x38,0x37,0x30,0x34,0x38,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x35,0x66,0x31,0x30, - 0x34,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x63,0x36,0x33,0x64,0x66,0x62,0x63,0x55,0x2c,0x30,0x78,0x62,0x36,0x37,0x37,0x63,0x31,0x62,0x36,0x55,0x2c,0x30,0x78, - 0x64,0x61,0x61,0x66,0x37,0x35,0x64,0x61,0x55,0x2c,0x30,0x78,0x32,0x31,0x34,0x32,0x36,0x33,0x32,0x31,0x55,0x2c,0x0a,0x30,0x78,0x31,0x30,0x32,0x30,0x33,0x30,0x31, - 0x30,0x55,0x2c,0x30,0x78,0x66,0x66,0x65,0x35,0x31,0x61,0x66,0x66,0x55,0x2c,0x30,0x78,0x66,0x33,0x66,0x64,0x30,0x65,0x66,0x33,0x55,0x2c,0x30,0x78,0x64,0x32,0x62, - 0x66,0x36,0x64,0x64,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x38,0x31,0x34,0x63,0x63,0x64,0x55,0x2c,0x30,0x78,0x30,0x63,0x31,0x38,0x31,0x34,0x30,0x63,0x55,0x2c, - 0x30,0x78,0x31,0x33,0x32,0x36,0x33,0x35,0x31,0x33,0x55,0x2c,0x30,0x78,0x65,0x63,0x63,0x33,0x32,0x66,0x65,0x63,0x55,0x2c,0x0a,0x30,0x78,0x35,0x66,0x62,0x65,0x65, - 0x31,0x35,0x66,0x55,0x2c,0x30,0x78,0x39,0x37,0x33,0x35,0x61,0x32,0x39,0x37,0x55,0x2c,0x30,0x78,0x34,0x34,0x38,0x38,0x63,0x63,0x34,0x34,0x55,0x2c,0x30,0x78,0x31, - 0x37,0x32,0x65,0x33,0x39,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x63,0x34,0x39,0x33,0x35,0x37,0x63,0x34,0x55,0x2c,0x30,0x78,0x61,0x37,0x35,0x35,0x66,0x32,0x61,0x37, - 0x55,0x2c,0x30,0x78,0x37,0x65,0x66,0x63,0x38,0x32,0x37,0x65,0x55,0x2c,0x30,0x78,0x33,0x64,0x37,0x61,0x34,0x37,0x33,0x64,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x63, - 0x38,0x61,0x63,0x36,0x34,0x55,0x2c,0x30,0x78,0x35,0x64,0x62,0x61,0x65,0x37,0x35,0x64,0x55,0x2c,0x30,0x78,0x31,0x39,0x33,0x32,0x32,0x62,0x31,0x39,0x55,0x2c,0x30, - 0x78,0x37,0x33,0x65,0x36,0x39,0x35,0x37,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x30,0x63,0x30,0x61,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x38,0x31,0x31,0x39,0x39,0x38, - 0x38,0x31,0x55,0x2c,0x30,0x78,0x34,0x66,0x39,0x65,0x64,0x31,0x34,0x66,0x55,0x2c,0x30,0x78,0x64,0x63,0x61,0x33,0x37,0x66,0x64,0x63,0x55,0x2c,0x0a,0x30,0x78,0x32, - 0x32,0x34,0x34,0x36,0x36,0x32,0x32,0x55,0x2c,0x30,0x78,0x32,0x61,0x35,0x34,0x37,0x65,0x32,0x61,0x55,0x2c,0x30,0x78,0x39,0x30,0x33,0x62,0x61,0x62,0x39,0x30,0x55, - 0x2c,0x30,0x78,0x38,0x38,0x30,0x62,0x38,0x33,0x38,0x38,0x55,0x2c,0x0a,0x30,0x78,0x34,0x36,0x38,0x63,0x63,0x61,0x34,0x36,0x55,0x2c,0x30,0x78,0x65,0x65,0x63,0x37, - 0x32,0x39,0x65,0x65,0x55,0x2c,0x30,0x78,0x62,0x38,0x36,0x62,0x64,0x33,0x62,0x38,0x55,0x2c,0x30,0x78,0x31,0x34,0x32,0x38,0x33,0x63,0x31,0x34,0x55,0x2c,0x0a,0x30, - 0x78,0x64,0x65,0x61,0x37,0x37,0x39,0x64,0x65,0x55,0x2c,0x30,0x78,0x35,0x65,0x62,0x63,0x65,0x32,0x35,0x65,0x55,0x2c,0x30,0x78,0x30,0x62,0x31,0x36,0x31,0x64,0x30, - 0x62,0x55,0x2c,0x30,0x78,0x64,0x62,0x61,0x64,0x37,0x36,0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x64,0x62,0x33,0x62,0x65,0x30,0x55,0x2c,0x30,0x78,0x33,0x32, - 0x36,0x34,0x35,0x36,0x33,0x32,0x55,0x2c,0x30,0x78,0x33,0x61,0x37,0x34,0x34,0x65,0x33,0x61,0x55,0x2c,0x30,0x78,0x30,0x61,0x31,0x34,0x31,0x65,0x30,0x61,0x55,0x2c, - 0x0a,0x30,0x78,0x34,0x39,0x39,0x32,0x64,0x62,0x34,0x39,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x63,0x30,0x61,0x30,0x36,0x55,0x2c,0x30,0x78,0x32,0x34,0x34,0x38,0x36, - 0x63,0x32,0x34,0x55,0x2c,0x30,0x78,0x35,0x63,0x62,0x38,0x65,0x34,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x39,0x66,0x35,0x64,0x63,0x32,0x55,0x2c,0x30,0x78, - 0x64,0x33,0x62,0x64,0x36,0x65,0x64,0x33,0x55,0x2c,0x30,0x78,0x61,0x63,0x34,0x33,0x65,0x66,0x61,0x63,0x55,0x2c,0x30,0x78,0x36,0x32,0x63,0x34,0x61,0x36,0x36,0x32, - 0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x33,0x39,0x61,0x38,0x39,0x31,0x55,0x2c,0x30,0x78,0x39,0x35,0x33,0x31,0x61,0x34,0x39,0x35,0x55,0x2c,0x30,0x78,0x65,0x34,0x64, - 0x33,0x33,0x37,0x65,0x34,0x55,0x2c,0x30,0x78,0x37,0x39,0x66,0x32,0x38,0x62,0x37,0x39,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x64,0x35,0x33,0x32,0x65,0x37,0x55,0x2c, - 0x30,0x78,0x63,0x38,0x38,0x62,0x34,0x33,0x63,0x38,0x55,0x2c,0x30,0x78,0x33,0x37,0x36,0x65,0x35,0x39,0x33,0x37,0x55,0x2c,0x30,0x78,0x36,0x64,0x64,0x61,0x62,0x37, - 0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x30,0x31,0x38,0x63,0x38,0x64,0x55,0x2c,0x30,0x78,0x64,0x35,0x62,0x31,0x36,0x34,0x64,0x35,0x55,0x2c,0x30,0x78,0x34, - 0x65,0x39,0x63,0x64,0x32,0x34,0x65,0x55,0x2c,0x30,0x78,0x61,0x39,0x34,0x39,0x65,0x30,0x61,0x39,0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x64,0x38,0x62,0x34,0x36,0x63, - 0x55,0x2c,0x30,0x78,0x35,0x36,0x61,0x63,0x66,0x61,0x35,0x36,0x55,0x2c,0x30,0x78,0x66,0x34,0x66,0x33,0x30,0x37,0x66,0x34,0x55,0x2c,0x30,0x78,0x65,0x61,0x63,0x66, - 0x32,0x35,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35,0x63,0x61,0x61,0x66,0x36,0x35,0x55,0x2c,0x30,0x78,0x37,0x61,0x66,0x34,0x38,0x65,0x37,0x61,0x55,0x2c,0x30, - 0x78,0x61,0x65,0x34,0x37,0x65,0x39,0x61,0x65,0x55,0x2c,0x30,0x78,0x30,0x38,0x31,0x30,0x31,0x38,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x36,0x66,0x64,0x35, - 0x62,0x61,0x55,0x2c,0x30,0x78,0x37,0x38,0x66,0x30,0x38,0x38,0x37,0x38,0x55,0x2c,0x30,0x78,0x32,0x35,0x34,0x61,0x36,0x66,0x32,0x35,0x55,0x2c,0x30,0x78,0x32,0x65, - 0x35,0x63,0x37,0x32,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78,0x31,0x63,0x33,0x38,0x32,0x34,0x31,0x63,0x55,0x2c,0x30,0x78,0x61,0x36,0x35,0x37,0x66,0x31,0x61,0x36,0x55, - 0x2c,0x30,0x78,0x62,0x34,0x37,0x33,0x63,0x37,0x62,0x34,0x55,0x2c,0x30,0x78,0x63,0x36,0x39,0x37,0x35,0x31,0x63,0x36,0x55,0x2c,0x0a,0x30,0x78,0x65,0x38,0x63,0x62, - 0x32,0x33,0x65,0x38,0x55,0x2c,0x30,0x78,0x64,0x64,0x61,0x31,0x37,0x63,0x64,0x64,0x55,0x2c,0x30,0x78,0x37,0x34,0x65,0x38,0x39,0x63,0x37,0x34,0x55,0x2c,0x30,0x78, - 0x31,0x66,0x33,0x65,0x32,0x31,0x31,0x66,0x55,0x2c,0x0a,0x30,0x78,0x34,0x62,0x39,0x36,0x64,0x64,0x34,0x62,0x55,0x2c,0x30,0x78,0x62,0x64,0x36,0x31,0x64,0x63,0x62, - 0x64,0x55,0x2c,0x30,0x78,0x38,0x62,0x30,0x64,0x38,0x36,0x38,0x62,0x55,0x2c,0x30,0x78,0x38,0x61,0x30,0x66,0x38,0x35,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x37,0x30, - 0x65,0x30,0x39,0x30,0x37,0x30,0x55,0x2c,0x30,0x78,0x33,0x65,0x37,0x63,0x34,0x32,0x33,0x65,0x55,0x2c,0x30,0x78,0x62,0x35,0x37,0x31,0x63,0x34,0x62,0x35,0x55,0x2c, - 0x30,0x78,0x36,0x36,0x63,0x63,0x61,0x61,0x36,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x38,0x39,0x30,0x64,0x38,0x34,0x38,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x36,0x30, - 0x35,0x30,0x33,0x55,0x2c,0x30,0x78,0x66,0x36,0x66,0x37,0x30,0x31,0x66,0x36,0x55,0x2c,0x30,0x78,0x30,0x65,0x31,0x63,0x31,0x32,0x30,0x65,0x55,0x2c,0x0a,0x30,0x78, - 0x36,0x31,0x63,0x32,0x61,0x33,0x36,0x31,0x55,0x2c,0x30,0x78,0x33,0x35,0x36,0x61,0x35,0x66,0x33,0x35,0x55,0x2c,0x30,0x78,0x35,0x37,0x61,0x65,0x66,0x39,0x35,0x37, - 0x55,0x2c,0x30,0x78,0x62,0x39,0x36,0x39,0x64,0x30,0x62,0x39,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x31,0x37,0x39,0x31,0x38,0x36,0x55,0x2c,0x30,0x78,0x63,0x31,0x39, - 0x39,0x35,0x38,0x63,0x31,0x55,0x2c,0x30,0x78,0x31,0x64,0x33,0x61,0x32,0x37,0x31,0x64,0x55,0x2c,0x30,0x78,0x39,0x65,0x32,0x37,0x62,0x39,0x39,0x65,0x55,0x2c,0x0a, - 0x30,0x78,0x65,0x31,0x64,0x39,0x33,0x38,0x65,0x31,0x55,0x2c,0x30,0x78,0x66,0x38,0x65,0x62,0x31,0x33,0x66,0x38,0x55,0x2c,0x30,0x78,0x39,0x38,0x32,0x62,0x62,0x33, - 0x39,0x38,0x55,0x2c,0x30,0x78,0x31,0x31,0x32,0x32,0x33,0x33,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x36,0x39,0x64,0x32,0x62,0x62,0x36,0x39,0x55,0x2c,0x30,0x78,0x64, - 0x39,0x61,0x39,0x37,0x30,0x64,0x39,0x55,0x2c,0x30,0x78,0x38,0x65,0x30,0x37,0x38,0x39,0x38,0x65,0x55,0x2c,0x30,0x78,0x39,0x34,0x33,0x33,0x61,0x37,0x39,0x34,0x55, - 0x2c,0x0a,0x30,0x78,0x39,0x62,0x32,0x64,0x62,0x36,0x39,0x62,0x55,0x2c,0x30,0x78,0x31,0x65,0x33,0x63,0x32,0x32,0x31,0x65,0x55,0x2c,0x30,0x78,0x38,0x37,0x31,0x35, - 0x39,0x32,0x38,0x37,0x55,0x2c,0x30,0x78,0x65,0x39,0x63,0x39,0x32,0x30,0x65,0x39,0x55,0x2c,0x0a,0x30,0x78,0x63,0x65,0x38,0x37,0x34,0x39,0x63,0x65,0x55,0x2c,0x30, - 0x78,0x35,0x35,0x61,0x61,0x66,0x66,0x35,0x35,0x55,0x2c,0x30,0x78,0x32,0x38,0x35,0x30,0x37,0x38,0x32,0x38,0x55,0x2c,0x30,0x78,0x64,0x66,0x61,0x35,0x37,0x61,0x64, - 0x66,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x30,0x33,0x38,0x66,0x38,0x63,0x55,0x2c,0x30,0x78,0x61,0x31,0x35,0x39,0x66,0x38,0x61,0x31,0x55,0x2c,0x30,0x78,0x38,0x39, - 0x30,0x39,0x38,0x30,0x38,0x39,0x55,0x2c,0x30,0x78,0x30,0x64,0x31,0x61,0x31,0x37,0x30,0x64,0x55,0x2c,0x0a,0x30,0x78,0x62,0x66,0x36,0x35,0x64,0x61,0x62,0x66,0x55, - 0x2c,0x30,0x78,0x65,0x36,0x64,0x37,0x33,0x31,0x65,0x36,0x55,0x2c,0x30,0x78,0x34,0x32,0x38,0x34,0x63,0x36,0x34,0x32,0x55,0x2c,0x30,0x78,0x36,0x38,0x64,0x30,0x62, - 0x38,0x36,0x38,0x55,0x2c,0x0a,0x30,0x78,0x34,0x31,0x38,0x32,0x63,0x33,0x34,0x31,0x55,0x2c,0x30,0x78,0x39,0x39,0x32,0x39,0x62,0x30,0x39,0x39,0x55,0x2c,0x30,0x78, - 0x32,0x64,0x35,0x61,0x37,0x37,0x32,0x64,0x55,0x2c,0x30,0x78,0x30,0x66,0x31,0x65,0x31,0x31,0x30,0x66,0x55,0x2c,0x0a,0x30,0x78,0x62,0x30,0x37,0x62,0x63,0x62,0x62, - 0x30,0x55,0x2c,0x30,0x78,0x35,0x34,0x61,0x38,0x66,0x63,0x35,0x34,0x55,0x2c,0x30,0x78,0x62,0x62,0x36,0x64,0x64,0x36,0x62,0x62,0x55,0x2c,0x30,0x78,0x31,0x36,0x32, - 0x63,0x33,0x61,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x63,0x36,0x61,0x35,0x36,0x33,0x36,0x33,0x55,0x2c,0x30,0x78,0x66,0x38,0x38,0x34,0x37,0x63,0x37,0x63,0x55,0x2c, - 0x30,0x78,0x65,0x65,0x39,0x39,0x37,0x37,0x37,0x37,0x55,0x2c,0x30,0x78,0x66,0x36,0x38,0x64,0x37,0x62,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x66,0x30,0x64,0x66, - 0x32,0x66,0x32,0x55,0x2c,0x30,0x78,0x64,0x36,0x62,0x64,0x36,0x62,0x36,0x62,0x55,0x2c,0x30,0x78,0x64,0x65,0x62,0x31,0x36,0x66,0x36,0x66,0x55,0x2c,0x30,0x78,0x39, - 0x31,0x35,0x34,0x63,0x35,0x63,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x30,0x35,0x30,0x33,0x30,0x33,0x30,0x55,0x2c,0x30,0x78,0x30,0x32,0x30,0x33,0x30,0x31,0x30,0x31, - 0x55,0x2c,0x30,0x78,0x63,0x65,0x61,0x39,0x36,0x37,0x36,0x37,0x55,0x2c,0x30,0x78,0x35,0x36,0x37,0x64,0x32,0x62,0x32,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x31, - 0x39,0x66,0x65,0x66,0x65,0x55,0x2c,0x30,0x78,0x62,0x35,0x36,0x32,0x64,0x37,0x64,0x37,0x55,0x2c,0x30,0x78,0x34,0x64,0x65,0x36,0x61,0x62,0x61,0x62,0x55,0x2c,0x30, - 0x78,0x65,0x63,0x39,0x61,0x37,0x36,0x37,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x66,0x34,0x35,0x63,0x61,0x63,0x61,0x55,0x2c,0x30,0x78,0x31,0x66,0x39,0x64,0x38,0x32, - 0x38,0x32,0x55,0x2c,0x30,0x78,0x38,0x39,0x34,0x30,0x63,0x39,0x63,0x39,0x55,0x2c,0x30,0x78,0x66,0x61,0x38,0x37,0x37,0x64,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x65, - 0x66,0x31,0x35,0x66,0x61,0x66,0x61,0x55,0x2c,0x30,0x78,0x62,0x32,0x65,0x62,0x35,0x39,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x65,0x63,0x39,0x34,0x37,0x34,0x37,0x55, - 0x2c,0x30,0x78,0x66,0x62,0x30,0x62,0x66,0x30,0x66,0x30,0x55,0x2c,0x0a,0x30,0x78,0x34,0x31,0x65,0x63,0x61,0x64,0x61,0x64,0x55,0x2c,0x30,0x78,0x62,0x33,0x36,0x37, - 0x64,0x34,0x64,0x34,0x55,0x2c,0x30,0x78,0x35,0x66,0x66,0x64,0x61,0x32,0x61,0x32,0x55,0x2c,0x30,0x78,0x34,0x35,0x65,0x61,0x61,0x66,0x61,0x66,0x55,0x2c,0x0a,0x30, - 0x78,0x32,0x33,0x62,0x66,0x39,0x63,0x39,0x63,0x55,0x2c,0x30,0x78,0x35,0x33,0x66,0x37,0x61,0x34,0x61,0x34,0x55,0x2c,0x30,0x78,0x65,0x34,0x39,0x36,0x37,0x32,0x37, - 0x32,0x55,0x2c,0x30,0x78,0x39,0x62,0x35,0x62,0x63,0x30,0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x37,0x35,0x63,0x32,0x62,0x37,0x62,0x37,0x55,0x2c,0x30,0x78,0x65,0x31, - 0x31,0x63,0x66,0x64,0x66,0x64,0x55,0x2c,0x30,0x78,0x33,0x64,0x61,0x65,0x39,0x33,0x39,0x33,0x55,0x2c,0x30,0x78,0x34,0x63,0x36,0x61,0x32,0x36,0x32,0x36,0x55,0x2c, - 0x0a,0x30,0x78,0x36,0x63,0x35,0x61,0x33,0x36,0x33,0x36,0x55,0x2c,0x30,0x78,0x37,0x65,0x34,0x31,0x33,0x66,0x33,0x66,0x55,0x2c,0x30,0x78,0x66,0x35,0x30,0x32,0x66, - 0x37,0x66,0x37,0x55,0x2c,0x30,0x78,0x38,0x33,0x34,0x66,0x63,0x63,0x63,0x63,0x55,0x2c,0x0a,0x30,0x78,0x36,0x38,0x35,0x63,0x33,0x34,0x33,0x34,0x55,0x2c,0x30,0x78, - 0x35,0x31,0x66,0x34,0x61,0x35,0x61,0x35,0x55,0x2c,0x30,0x78,0x64,0x31,0x33,0x34,0x65,0x35,0x65,0x35,0x55,0x2c,0x30,0x78,0x66,0x39,0x30,0x38,0x66,0x31,0x66,0x31, - 0x55,0x2c,0x0a,0x30,0x78,0x65,0x32,0x39,0x33,0x37,0x31,0x37,0x31,0x55,0x2c,0x30,0x78,0x61,0x62,0x37,0x33,0x64,0x38,0x64,0x38,0x55,0x2c,0x30,0x78,0x36,0x32,0x35, - 0x33,0x33,0x31,0x33,0x31,0x55,0x2c,0x30,0x78,0x32,0x61,0x33,0x66,0x31,0x35,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x38,0x30,0x63,0x30,0x34,0x30,0x34,0x55,0x2c, - 0x30,0x78,0x39,0x35,0x35,0x32,0x63,0x37,0x63,0x37,0x55,0x2c,0x30,0x78,0x34,0x36,0x36,0x35,0x32,0x33,0x32,0x33,0x55,0x2c,0x30,0x78,0x39,0x64,0x35,0x65,0x63,0x33, - 0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x32,0x38,0x31,0x38,0x31,0x38,0x55,0x2c,0x30,0x78,0x33,0x37,0x61,0x31,0x39,0x36,0x39,0x36,0x55,0x2c,0x30,0x78,0x30, - 0x61,0x30,0x66,0x30,0x35,0x30,0x35,0x55,0x2c,0x30,0x78,0x32,0x66,0x62,0x35,0x39,0x61,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x30,0x65,0x30,0x39,0x30,0x37,0x30,0x37, - 0x55,0x2c,0x30,0x78,0x32,0x34,0x33,0x36,0x31,0x32,0x31,0x32,0x55,0x2c,0x30,0x78,0x31,0x62,0x39,0x62,0x38,0x30,0x38,0x30,0x55,0x2c,0x30,0x78,0x64,0x66,0x33,0x64, - 0x65,0x32,0x65,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x32,0x36,0x65,0x62,0x65,0x62,0x55,0x2c,0x30,0x78,0x34,0x65,0x36,0x39,0x32,0x37,0x32,0x37,0x55,0x2c,0x30, - 0x78,0x37,0x66,0x63,0x64,0x62,0x32,0x62,0x32,0x55,0x2c,0x30,0x78,0x65,0x61,0x39,0x66,0x37,0x35,0x37,0x35,0x55,0x2c,0x0a,0x30,0x78,0x31,0x32,0x31,0x62,0x30,0x39, - 0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x64,0x39,0x65,0x38,0x33,0x38,0x33,0x55,0x2c,0x30,0x78,0x35,0x38,0x37,0x34,0x32,0x63,0x32,0x63,0x55,0x2c,0x30,0x78,0x33,0x34, - 0x32,0x65,0x31,0x61,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78,0x33,0x36,0x32,0x64,0x31,0x62,0x31,0x62,0x55,0x2c,0x30,0x78,0x64,0x63,0x62,0x32,0x36,0x65,0x36,0x65,0x55, - 0x2c,0x30,0x78,0x62,0x34,0x65,0x65,0x35,0x61,0x35,0x61,0x55,0x2c,0x30,0x78,0x35,0x62,0x66,0x62,0x61,0x30,0x61,0x30,0x55,0x2c,0x0a,0x30,0x78,0x61,0x34,0x66,0x36, - 0x35,0x32,0x35,0x32,0x55,0x2c,0x30,0x78,0x37,0x36,0x34,0x64,0x33,0x62,0x33,0x62,0x55,0x2c,0x30,0x78,0x62,0x37,0x36,0x31,0x64,0x36,0x64,0x36,0x55,0x2c,0x30,0x78, - 0x37,0x64,0x63,0x65,0x62,0x33,0x62,0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x32,0x37,0x62,0x32,0x39,0x32,0x39,0x55,0x2c,0x30,0x78,0x64,0x64,0x33,0x65,0x65,0x33,0x65, - 0x33,0x55,0x2c,0x30,0x78,0x35,0x65,0x37,0x31,0x32,0x66,0x32,0x66,0x55,0x2c,0x30,0x78,0x31,0x33,0x39,0x37,0x38,0x34,0x38,0x34,0x55,0x2c,0x0a,0x30,0x78,0x61,0x36, - 0x66,0x35,0x35,0x33,0x35,0x33,0x55,0x2c,0x30,0x78,0x62,0x39,0x36,0x38,0x64,0x31,0x64,0x31,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c, - 0x30,0x78,0x63,0x31,0x32,0x63,0x65,0x64,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x34,0x30,0x36,0x30,0x32,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x65,0x33,0x31,0x66,0x66, - 0x63,0x66,0x63,0x55,0x2c,0x30,0x78,0x37,0x39,0x63,0x38,0x62,0x31,0x62,0x31,0x55,0x2c,0x30,0x78,0x62,0x36,0x65,0x64,0x35,0x62,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78, - 0x64,0x34,0x62,0x65,0x36,0x61,0x36,0x61,0x55,0x2c,0x30,0x78,0x38,0x64,0x34,0x36,0x63,0x62,0x63,0x62,0x55,0x2c,0x30,0x78,0x36,0x37,0x64,0x39,0x62,0x65,0x62,0x65, - 0x55,0x2c,0x30,0x78,0x37,0x32,0x34,0x62,0x33,0x39,0x33,0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x34,0x64,0x65,0x34,0x61,0x34,0x61,0x55,0x2c,0x30,0x78,0x39,0x38,0x64, - 0x34,0x34,0x63,0x34,0x63,0x55,0x2c,0x30,0x78,0x62,0x30,0x65,0x38,0x35,0x38,0x35,0x38,0x55,0x2c,0x30,0x78,0x38,0x35,0x34,0x61,0x63,0x66,0x63,0x66,0x55,0x2c,0x0a, - 0x30,0x78,0x62,0x62,0x36,0x62,0x64,0x30,0x64,0x30,0x55,0x2c,0x30,0x78,0x63,0x35,0x32,0x61,0x65,0x66,0x65,0x66,0x55,0x2c,0x30,0x78,0x34,0x66,0x65,0x35,0x61,0x61, - 0x61,0x61,0x55,0x2c,0x30,0x78,0x65,0x64,0x31,0x36,0x66,0x62,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x63,0x35,0x34,0x33,0x34,0x33,0x55,0x2c,0x30,0x78,0x39, - 0x61,0x64,0x37,0x34,0x64,0x34,0x64,0x55,0x2c,0x30,0x78,0x36,0x36,0x35,0x35,0x33,0x33,0x33,0x33,0x55,0x2c,0x30,0x78,0x31,0x31,0x39,0x34,0x38,0x35,0x38,0x35,0x55, - 0x2c,0x0a,0x30,0x78,0x38,0x61,0x63,0x66,0x34,0x35,0x34,0x35,0x55,0x2c,0x30,0x78,0x65,0x39,0x31,0x30,0x66,0x39,0x66,0x39,0x55,0x2c,0x30,0x78,0x30,0x34,0x30,0x36, - 0x30,0x32,0x30,0x32,0x55,0x2c,0x30,0x78,0x66,0x65,0x38,0x31,0x37,0x66,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x61,0x30,0x66,0x30,0x35,0x30,0x35,0x30,0x55,0x2c,0x30, - 0x78,0x37,0x38,0x34,0x34,0x33,0x63,0x33,0x63,0x55,0x2c,0x30,0x78,0x32,0x35,0x62,0x61,0x39,0x66,0x39,0x66,0x55,0x2c,0x30,0x78,0x34,0x62,0x65,0x33,0x61,0x38,0x61, - 0x38,0x55,0x2c,0x0a,0x30,0x78,0x61,0x32,0x66,0x33,0x35,0x31,0x35,0x31,0x55,0x2c,0x30,0x78,0x35,0x64,0x66,0x65,0x61,0x33,0x61,0x33,0x55,0x2c,0x30,0x78,0x38,0x30, - 0x63,0x30,0x34,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x30,0x35,0x38,0x61,0x38,0x66,0x38,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x66,0x61,0x64,0x39,0x32,0x39,0x32,0x55, - 0x2c,0x30,0x78,0x32,0x31,0x62,0x63,0x39,0x64,0x39,0x64,0x55,0x2c,0x30,0x78,0x37,0x30,0x34,0x38,0x33,0x38,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x31,0x30,0x34,0x66, - 0x35,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x33,0x64,0x66,0x62,0x63,0x62,0x63,0x55,0x2c,0x30,0x78,0x37,0x37,0x63,0x31,0x62,0x36,0x62,0x36,0x55,0x2c,0x30,0x78, - 0x61,0x66,0x37,0x35,0x64,0x61,0x64,0x61,0x55,0x2c,0x30,0x78,0x34,0x32,0x36,0x33,0x32,0x31,0x32,0x31,0x55,0x2c,0x0a,0x30,0x78,0x32,0x30,0x33,0x30,0x31,0x30,0x31, - 0x30,0x55,0x2c,0x30,0x78,0x65,0x35,0x31,0x61,0x66,0x66,0x66,0x66,0x55,0x2c,0x30,0x78,0x66,0x64,0x30,0x65,0x66,0x33,0x66,0x33,0x55,0x2c,0x30,0x78,0x62,0x66,0x36, - 0x64,0x64,0x32,0x64,0x32,0x55,0x2c,0x0a,0x30,0x78,0x38,0x31,0x34,0x63,0x63,0x64,0x63,0x64,0x55,0x2c,0x30,0x78,0x31,0x38,0x31,0x34,0x30,0x63,0x30,0x63,0x55,0x2c, - 0x30,0x78,0x32,0x36,0x33,0x35,0x31,0x33,0x31,0x33,0x55,0x2c,0x30,0x78,0x63,0x33,0x32,0x66,0x65,0x63,0x65,0x63,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x65,0x31,0x35, - 0x66,0x35,0x66,0x55,0x2c,0x30,0x78,0x33,0x35,0x61,0x32,0x39,0x37,0x39,0x37,0x55,0x2c,0x30,0x78,0x38,0x38,0x63,0x63,0x34,0x34,0x34,0x34,0x55,0x2c,0x30,0x78,0x32, - 0x65,0x33,0x39,0x31,0x37,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x39,0x33,0x35,0x37,0x63,0x34,0x63,0x34,0x55,0x2c,0x30,0x78,0x35,0x35,0x66,0x32,0x61,0x37,0x61,0x37, - 0x55,0x2c,0x30,0x78,0x66,0x63,0x38,0x32,0x37,0x65,0x37,0x65,0x55,0x2c,0x30,0x78,0x37,0x61,0x34,0x37,0x33,0x64,0x33,0x64,0x55,0x2c,0x0a,0x30,0x78,0x63,0x38,0x61, - 0x63,0x36,0x34,0x36,0x34,0x55,0x2c,0x30,0x78,0x62,0x61,0x65,0x37,0x35,0x64,0x35,0x64,0x55,0x2c,0x30,0x78,0x33,0x32,0x32,0x62,0x31,0x39,0x31,0x39,0x55,0x2c,0x30, - 0x78,0x65,0x36,0x39,0x35,0x37,0x33,0x37,0x33,0x55,0x2c,0x0a,0x30,0x78,0x63,0x30,0x61,0x30,0x36,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x31,0x39,0x39,0x38,0x38,0x31, - 0x38,0x31,0x55,0x2c,0x30,0x78,0x39,0x65,0x64,0x31,0x34,0x66,0x34,0x66,0x55,0x2c,0x30,0x78,0x61,0x33,0x37,0x66,0x64,0x63,0x64,0x63,0x55,0x2c,0x0a,0x30,0x78,0x34, - 0x34,0x36,0x36,0x32,0x32,0x32,0x32,0x55,0x2c,0x30,0x78,0x35,0x34,0x37,0x65,0x32,0x61,0x32,0x61,0x55,0x2c,0x30,0x78,0x33,0x62,0x61,0x62,0x39,0x30,0x39,0x30,0x55, - 0x2c,0x30,0x78,0x30,0x62,0x38,0x33,0x38,0x38,0x38,0x38,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x63,0x61,0x34,0x36,0x34,0x36,0x55,0x2c,0x30,0x78,0x63,0x37,0x32,0x39, - 0x65,0x65,0x65,0x65,0x55,0x2c,0x30,0x78,0x36,0x62,0x64,0x33,0x62,0x38,0x62,0x38,0x55,0x2c,0x30,0x78,0x32,0x38,0x33,0x63,0x31,0x34,0x31,0x34,0x55,0x2c,0x0a,0x30, - 0x78,0x61,0x37,0x37,0x39,0x64,0x65,0x64,0x65,0x55,0x2c,0x30,0x78,0x62,0x63,0x65,0x32,0x35,0x65,0x35,0x65,0x55,0x2c,0x30,0x78,0x31,0x36,0x31,0x64,0x30,0x62,0x30, - 0x62,0x55,0x2c,0x30,0x78,0x61,0x64,0x37,0x36,0x64,0x62,0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x64,0x62,0x33,0x62,0x65,0x30,0x65,0x30,0x55,0x2c,0x30,0x78,0x36,0x34, - 0x35,0x36,0x33,0x32,0x33,0x32,0x55,0x2c,0x30,0x78,0x37,0x34,0x34,0x65,0x33,0x61,0x33,0x61,0x55,0x2c,0x30,0x78,0x31,0x34,0x31,0x65,0x30,0x61,0x30,0x61,0x55,0x2c, - 0x0a,0x30,0x78,0x39,0x32,0x64,0x62,0x34,0x39,0x34,0x39,0x55,0x2c,0x30,0x78,0x30,0x63,0x30,0x61,0x30,0x36,0x30,0x36,0x55,0x2c,0x30,0x78,0x34,0x38,0x36,0x63,0x32, - 0x34,0x32,0x34,0x55,0x2c,0x30,0x78,0x62,0x38,0x65,0x34,0x35,0x63,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x39,0x66,0x35,0x64,0x63,0x32,0x63,0x32,0x55,0x2c,0x30,0x78, - 0x62,0x64,0x36,0x65,0x64,0x33,0x64,0x33,0x55,0x2c,0x30,0x78,0x34,0x33,0x65,0x66,0x61,0x63,0x61,0x63,0x55,0x2c,0x30,0x78,0x63,0x34,0x61,0x36,0x36,0x32,0x36,0x32, - 0x55,0x2c,0x0a,0x30,0x78,0x33,0x39,0x61,0x38,0x39,0x31,0x39,0x31,0x55,0x2c,0x30,0x78,0x33,0x31,0x61,0x34,0x39,0x35,0x39,0x35,0x55,0x2c,0x30,0x78,0x64,0x33,0x33, - 0x37,0x65,0x34,0x65,0x34,0x55,0x2c,0x30,0x78,0x66,0x32,0x38,0x62,0x37,0x39,0x37,0x39,0x55,0x2c,0x0a,0x30,0x78,0x64,0x35,0x33,0x32,0x65,0x37,0x65,0x37,0x55,0x2c, - 0x30,0x78,0x38,0x62,0x34,0x33,0x63,0x38,0x63,0x38,0x55,0x2c,0x30,0x78,0x36,0x65,0x35,0x39,0x33,0x37,0x33,0x37,0x55,0x2c,0x30,0x78,0x64,0x61,0x62,0x37,0x36,0x64, - 0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x31,0x38,0x63,0x38,0x64,0x38,0x64,0x55,0x2c,0x30,0x78,0x62,0x31,0x36,0x34,0x64,0x35,0x64,0x35,0x55,0x2c,0x30,0x78,0x39, - 0x63,0x64,0x32,0x34,0x65,0x34,0x65,0x55,0x2c,0x30,0x78,0x34,0x39,0x65,0x30,0x61,0x39,0x61,0x39,0x55,0x2c,0x0a,0x30,0x78,0x64,0x38,0x62,0x34,0x36,0x63,0x36,0x63, - 0x55,0x2c,0x30,0x78,0x61,0x63,0x66,0x61,0x35,0x36,0x35,0x36,0x55,0x2c,0x30,0x78,0x66,0x33,0x30,0x37,0x66,0x34,0x66,0x34,0x55,0x2c,0x30,0x78,0x63,0x66,0x32,0x35, - 0x65,0x61,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x61,0x66,0x36,0x35,0x36,0x35,0x55,0x2c,0x30,0x78,0x66,0x34,0x38,0x65,0x37,0x61,0x37,0x61,0x55,0x2c,0x30, - 0x78,0x34,0x37,0x65,0x39,0x61,0x65,0x61,0x65,0x55,0x2c,0x30,0x78,0x31,0x30,0x31,0x38,0x30,0x38,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x36,0x66,0x64,0x35,0x62,0x61, - 0x62,0x61,0x55,0x2c,0x30,0x78,0x66,0x30,0x38,0x38,0x37,0x38,0x37,0x38,0x55,0x2c,0x30,0x78,0x34,0x61,0x36,0x66,0x32,0x35,0x32,0x35,0x55,0x2c,0x30,0x78,0x35,0x63, - 0x37,0x32,0x32,0x65,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78,0x33,0x38,0x32,0x34,0x31,0x63,0x31,0x63,0x55,0x2c,0x30,0x78,0x35,0x37,0x66,0x31,0x61,0x36,0x61,0x36,0x55, - 0x2c,0x30,0x78,0x37,0x33,0x63,0x37,0x62,0x34,0x62,0x34,0x55,0x2c,0x30,0x78,0x39,0x37,0x35,0x31,0x63,0x36,0x63,0x36,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x32,0x33, - 0x65,0x38,0x65,0x38,0x55,0x2c,0x30,0x78,0x61,0x31,0x37,0x63,0x64,0x64,0x64,0x64,0x55,0x2c,0x30,0x78,0x65,0x38,0x39,0x63,0x37,0x34,0x37,0x34,0x55,0x2c,0x30,0x78, - 0x33,0x65,0x32,0x31,0x31,0x66,0x31,0x66,0x55,0x2c,0x0a,0x30,0x78,0x39,0x36,0x64,0x64,0x34,0x62,0x34,0x62,0x55,0x2c,0x30,0x78,0x36,0x31,0x64,0x63,0x62,0x64,0x62, - 0x64,0x55,0x2c,0x30,0x78,0x30,0x64,0x38,0x36,0x38,0x62,0x38,0x62,0x55,0x2c,0x30,0x78,0x30,0x66,0x38,0x35,0x38,0x61,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30, - 0x39,0x30,0x37,0x30,0x37,0x30,0x55,0x2c,0x30,0x78,0x37,0x63,0x34,0x32,0x33,0x65,0x33,0x65,0x55,0x2c,0x30,0x78,0x37,0x31,0x63,0x34,0x62,0x35,0x62,0x35,0x55,0x2c, - 0x30,0x78,0x63,0x63,0x61,0x61,0x36,0x36,0x36,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x30,0x64,0x38,0x34,0x38,0x34,0x38,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x35,0x30, - 0x33,0x30,0x33,0x55,0x2c,0x30,0x78,0x66,0x37,0x30,0x31,0x66,0x36,0x66,0x36,0x55,0x2c,0x30,0x78,0x31,0x63,0x31,0x32,0x30,0x65,0x30,0x65,0x55,0x2c,0x0a,0x30,0x78, - 0x63,0x32,0x61,0x33,0x36,0x31,0x36,0x31,0x55,0x2c,0x30,0x78,0x36,0x61,0x35,0x66,0x33,0x35,0x33,0x35,0x55,0x2c,0x30,0x78,0x61,0x65,0x66,0x39,0x35,0x37,0x35,0x37, - 0x55,0x2c,0x30,0x78,0x36,0x39,0x64,0x30,0x62,0x39,0x62,0x39,0x55,0x2c,0x0a,0x30,0x78,0x31,0x37,0x39,0x31,0x38,0x36,0x38,0x36,0x55,0x2c,0x30,0x78,0x39,0x39,0x35, - 0x38,0x63,0x31,0x63,0x31,0x55,0x2c,0x30,0x78,0x33,0x61,0x32,0x37,0x31,0x64,0x31,0x64,0x55,0x2c,0x30,0x78,0x32,0x37,0x62,0x39,0x39,0x65,0x39,0x65,0x55,0x2c,0x0a, - 0x30,0x78,0x64,0x39,0x33,0x38,0x65,0x31,0x65,0x31,0x55,0x2c,0x30,0x78,0x65,0x62,0x31,0x33,0x66,0x38,0x66,0x38,0x55,0x2c,0x30,0x78,0x32,0x62,0x62,0x33,0x39,0x38, - 0x39,0x38,0x55,0x2c,0x30,0x78,0x32,0x32,0x33,0x33,0x31,0x31,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x64,0x32,0x62,0x62,0x36,0x39,0x36,0x39,0x55,0x2c,0x30,0x78,0x61, - 0x39,0x37,0x30,0x64,0x39,0x64,0x39,0x55,0x2c,0x30,0x78,0x30,0x37,0x38,0x39,0x38,0x65,0x38,0x65,0x55,0x2c,0x30,0x78,0x33,0x33,0x61,0x37,0x39,0x34,0x39,0x34,0x55, - 0x2c,0x0a,0x30,0x78,0x32,0x64,0x62,0x36,0x39,0x62,0x39,0x62,0x55,0x2c,0x30,0x78,0x33,0x63,0x32,0x32,0x31,0x65,0x31,0x65,0x55,0x2c,0x30,0x78,0x31,0x35,0x39,0x32, - 0x38,0x37,0x38,0x37,0x55,0x2c,0x30,0x78,0x63,0x39,0x32,0x30,0x65,0x39,0x65,0x39,0x55,0x2c,0x0a,0x30,0x78,0x38,0x37,0x34,0x39,0x63,0x65,0x63,0x65,0x55,0x2c,0x30, - 0x78,0x61,0x61,0x66,0x66,0x35,0x35,0x35,0x35,0x55,0x2c,0x30,0x78,0x35,0x30,0x37,0x38,0x32,0x38,0x32,0x38,0x55,0x2c,0x30,0x78,0x61,0x35,0x37,0x61,0x64,0x66,0x64, - 0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x33,0x38,0x66,0x38,0x63,0x38,0x63,0x55,0x2c,0x30,0x78,0x35,0x39,0x66,0x38,0x61,0x31,0x61,0x31,0x55,0x2c,0x30,0x78,0x30,0x39, - 0x38,0x30,0x38,0x39,0x38,0x39,0x55,0x2c,0x30,0x78,0x31,0x61,0x31,0x37,0x30,0x64,0x30,0x64,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35,0x64,0x61,0x62,0x66,0x62,0x66,0x55, - 0x2c,0x30,0x78,0x64,0x37,0x33,0x31,0x65,0x36,0x65,0x36,0x55,0x2c,0x30,0x78,0x38,0x34,0x63,0x36,0x34,0x32,0x34,0x32,0x55,0x2c,0x30,0x78,0x64,0x30,0x62,0x38,0x36, - 0x38,0x36,0x38,0x55,0x2c,0x0a,0x30,0x78,0x38,0x32,0x63,0x33,0x34,0x31,0x34,0x31,0x55,0x2c,0x30,0x78,0x32,0x39,0x62,0x30,0x39,0x39,0x39,0x39,0x55,0x2c,0x30,0x78, - 0x35,0x61,0x37,0x37,0x32,0x64,0x32,0x64,0x55,0x2c,0x30,0x78,0x31,0x65,0x31,0x31,0x30,0x66,0x30,0x66,0x55,0x2c,0x0a,0x30,0x78,0x37,0x62,0x63,0x62,0x62,0x30,0x62, - 0x30,0x55,0x2c,0x30,0x78,0x61,0x38,0x66,0x63,0x35,0x34,0x35,0x34,0x55,0x2c,0x30,0x78,0x36,0x64,0x64,0x36,0x62,0x62,0x62,0x62,0x55,0x2c,0x30,0x78,0x32,0x63,0x33, - 0x61,0x31,0x36,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x61,0x37,0x66,0x34,0x35,0x31,0x55,0x2c,0x30,0x78,0x35,0x33,0x36,0x35,0x34,0x31,0x37,0x65,0x55,0x2c, - 0x30,0x78,0x63,0x33,0x61,0x34,0x31,0x37,0x31,0x61,0x55,0x2c,0x30,0x78,0x39,0x36,0x35,0x65,0x32,0x37,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x36,0x62,0x61, - 0x62,0x33,0x62,0x55,0x2c,0x30,0x78,0x66,0x31,0x34,0x35,0x39,0x64,0x31,0x66,0x55,0x2c,0x30,0x78,0x61,0x62,0x35,0x38,0x66,0x61,0x61,0x63,0x55,0x2c,0x30,0x78,0x39, - 0x33,0x30,0x33,0x65,0x33,0x34,0x62,0x55,0x2c,0x0a,0x30,0x78,0x35,0x35,0x66,0x61,0x33,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x66,0x36,0x36,0x64,0x37,0x36,0x61,0x64, - 0x55,0x2c,0x30,0x78,0x39,0x31,0x37,0x36,0x63,0x63,0x38,0x38,0x55,0x2c,0x30,0x78,0x32,0x35,0x34,0x63,0x30,0x32,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x66,0x63,0x64, - 0x37,0x65,0x35,0x34,0x66,0x55,0x2c,0x30,0x78,0x64,0x37,0x63,0x62,0x32,0x61,0x63,0x35,0x55,0x2c,0x30,0x78,0x38,0x30,0x34,0x34,0x33,0x35,0x32,0x36,0x55,0x2c,0x30, - 0x78,0x38,0x66,0x61,0x33,0x36,0x32,0x62,0x35,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x35,0x61,0x62,0x31,0x64,0x65,0x55,0x2c,0x30,0x78,0x36,0x37,0x31,0x62,0x62,0x61, - 0x32,0x35,0x55,0x2c,0x30,0x78,0x39,0x38,0x30,0x65,0x65,0x61,0x34,0x35,0x55,0x2c,0x30,0x78,0x65,0x31,0x63,0x30,0x66,0x65,0x35,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30, - 0x32,0x37,0x35,0x32,0x66,0x63,0x33,0x55,0x2c,0x30,0x78,0x31,0x32,0x66,0x30,0x34,0x63,0x38,0x31,0x55,0x2c,0x30,0x78,0x61,0x33,0x39,0x37,0x34,0x36,0x38,0x64,0x55, - 0x2c,0x30,0x78,0x63,0x36,0x66,0x39,0x64,0x33,0x36,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x35,0x66,0x38,0x66,0x30,0x33,0x55,0x2c,0x30,0x78,0x39,0x35,0x39,0x63, - 0x39,0x32,0x31,0x35,0x55,0x2c,0x30,0x78,0x65,0x62,0x37,0x61,0x36,0x64,0x62,0x66,0x55,0x2c,0x30,0x78,0x64,0x61,0x35,0x39,0x35,0x32,0x39,0x35,0x55,0x2c,0x0a,0x30, - 0x78,0x32,0x64,0x38,0x33,0x62,0x65,0x64,0x34,0x55,0x2c,0x30,0x78,0x64,0x33,0x32,0x31,0x37,0x34,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x39,0x36,0x39,0x65,0x30,0x34, - 0x39,0x55,0x2c,0x30,0x78,0x34,0x34,0x63,0x38,0x63,0x39,0x38,0x65,0x55,0x2c,0x0a,0x30,0x78,0x36,0x61,0x38,0x39,0x63,0x32,0x37,0x35,0x55,0x2c,0x30,0x78,0x37,0x38, - 0x37,0x39,0x38,0x65,0x66,0x34,0x55,0x2c,0x30,0x78,0x36,0x62,0x33,0x65,0x35,0x38,0x39,0x39,0x55,0x2c,0x30,0x78,0x64,0x64,0x37,0x31,0x62,0x39,0x32,0x37,0x55,0x2c, - 0x0a,0x30,0x78,0x62,0x36,0x34,0x66,0x65,0x31,0x62,0x65,0x55,0x2c,0x30,0x78,0x31,0x37,0x61,0x64,0x38,0x38,0x66,0x30,0x55,0x2c,0x30,0x78,0x36,0x36,0x61,0x63,0x32, - 0x30,0x63,0x39,0x55,0x2c,0x30,0x78,0x62,0x34,0x33,0x61,0x63,0x65,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x31,0x38,0x34,0x61,0x64,0x66,0x36,0x33,0x55,0x2c,0x30,0x78, - 0x38,0x32,0x33,0x31,0x31,0x61,0x65,0x35,0x55,0x2c,0x30,0x78,0x36,0x30,0x33,0x33,0x35,0x31,0x39,0x37,0x55,0x2c,0x30,0x78,0x34,0x35,0x37,0x66,0x35,0x33,0x36,0x32, - 0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x37,0x37,0x36,0x34,0x62,0x31,0x55,0x2c,0x30,0x78,0x38,0x34,0x61,0x65,0x36,0x62,0x62,0x62,0x55,0x2c,0x30,0x78,0x31,0x63,0x61, - 0x30,0x38,0x31,0x66,0x65,0x55,0x2c,0x30,0x78,0x39,0x34,0x32,0x62,0x30,0x38,0x66,0x39,0x55,0x2c,0x0a,0x30,0x78,0x35,0x38,0x36,0x38,0x34,0x38,0x37,0x30,0x55,0x2c, - 0x30,0x78,0x31,0x39,0x66,0x64,0x34,0x35,0x38,0x66,0x55,0x2c,0x30,0x78,0x38,0x37,0x36,0x63,0x64,0x65,0x39,0x34,0x55,0x2c,0x30,0x78,0x62,0x37,0x66,0x38,0x37,0x62, - 0x35,0x32,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x64,0x33,0x37,0x33,0x61,0x62,0x55,0x2c,0x30,0x78,0x65,0x32,0x30,0x32,0x34,0x62,0x37,0x32,0x55,0x2c,0x30,0x78,0x35, - 0x37,0x38,0x66,0x31,0x66,0x65,0x33,0x55,0x2c,0x30,0x78,0x32,0x61,0x61,0x62,0x35,0x35,0x36,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x37,0x32,0x38,0x65,0x62,0x62,0x32, - 0x55,0x2c,0x30,0x78,0x30,0x33,0x63,0x32,0x62,0x35,0x32,0x66,0x55,0x2c,0x30,0x78,0x39,0x61,0x37,0x62,0x63,0x35,0x38,0x36,0x55,0x2c,0x30,0x78,0x61,0x35,0x30,0x38, - 0x33,0x37,0x64,0x33,0x55,0x2c,0x0a,0x30,0x78,0x66,0x32,0x38,0x37,0x32,0x38,0x33,0x30,0x55,0x2c,0x30,0x78,0x62,0x32,0x61,0x35,0x62,0x66,0x32,0x33,0x55,0x2c,0x30, - 0x78,0x62,0x61,0x36,0x61,0x30,0x33,0x30,0x32,0x55,0x2c,0x30,0x78,0x35,0x63,0x38,0x32,0x31,0x36,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x62,0x31,0x63,0x63,0x66, - 0x38,0x61,0x55,0x2c,0x30,0x78,0x39,0x32,0x62,0x34,0x37,0x39,0x61,0x37,0x55,0x2c,0x30,0x78,0x66,0x30,0x66,0x32,0x30,0x37,0x66,0x33,0x55,0x2c,0x30,0x78,0x61,0x31, - 0x65,0x32,0x36,0x39,0x34,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x66,0x34,0x64,0x61,0x36,0x35,0x55,0x2c,0x30,0x78,0x64,0x35,0x62,0x65,0x30,0x35,0x30,0x36,0x55, - 0x2c,0x30,0x78,0x31,0x66,0x36,0x32,0x33,0x34,0x64,0x31,0x55,0x2c,0x30,0x78,0x38,0x61,0x66,0x65,0x61,0x36,0x63,0x34,0x55,0x2c,0x0a,0x30,0x78,0x39,0x64,0x35,0x33, - 0x32,0x65,0x33,0x34,0x55,0x2c,0x30,0x78,0x61,0x30,0x35,0x35,0x66,0x33,0x61,0x32,0x55,0x2c,0x30,0x78,0x33,0x32,0x65,0x31,0x38,0x61,0x30,0x35,0x55,0x2c,0x30,0x78, - 0x37,0x35,0x65,0x62,0x66,0x36,0x61,0x34,0x55,0x2c,0x0a,0x30,0x78,0x33,0x39,0x65,0x63,0x38,0x33,0x30,0x62,0x55,0x2c,0x30,0x78,0x61,0x61,0x65,0x66,0x36,0x30,0x34, - 0x30,0x55,0x2c,0x30,0x78,0x30,0x36,0x39,0x66,0x37,0x31,0x35,0x65,0x55,0x2c,0x30,0x78,0x35,0x31,0x31,0x30,0x36,0x65,0x62,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x39, - 0x38,0x61,0x32,0x31,0x33,0x65,0x55,0x2c,0x30,0x78,0x33,0x64,0x30,0x36,0x64,0x64,0x39,0x36,0x55,0x2c,0x30,0x78,0x61,0x65,0x30,0x35,0x33,0x65,0x64,0x64,0x55,0x2c, - 0x30,0x78,0x34,0x36,0x62,0x64,0x65,0x36,0x34,0x64,0x55,0x2c,0x0a,0x30,0x78,0x62,0x35,0x38,0x64,0x35,0x34,0x39,0x31,0x55,0x2c,0x30,0x78,0x30,0x35,0x35,0x64,0x63, - 0x34,0x37,0x31,0x55,0x2c,0x30,0x78,0x36,0x66,0x64,0x34,0x30,0x36,0x30,0x34,0x55,0x2c,0x30,0x78,0x66,0x66,0x31,0x35,0x35,0x30,0x36,0x30,0x55,0x2c,0x0a,0x30,0x78, - 0x32,0x34,0x66,0x62,0x39,0x38,0x31,0x39,0x55,0x2c,0x30,0x78,0x39,0x37,0x65,0x39,0x62,0x64,0x64,0x36,0x55,0x2c,0x30,0x78,0x63,0x63,0x34,0x33,0x34,0x30,0x38,0x39, - 0x55,0x2c,0x30,0x78,0x37,0x37,0x39,0x65,0x64,0x39,0x36,0x37,0x55,0x2c,0x0a,0x30,0x78,0x62,0x64,0x34,0x32,0x65,0x38,0x62,0x30,0x55,0x2c,0x30,0x78,0x38,0x38,0x38, - 0x62,0x38,0x39,0x30,0x37,0x55,0x2c,0x30,0x78,0x33,0x38,0x35,0x62,0x31,0x39,0x65,0x37,0x55,0x2c,0x30,0x78,0x64,0x62,0x65,0x65,0x63,0x38,0x37,0x39,0x55,0x2c,0x0a, - 0x30,0x78,0x34,0x37,0x30,0x61,0x37,0x63,0x61,0x31,0x55,0x2c,0x30,0x78,0x65,0x39,0x30,0x66,0x34,0x32,0x37,0x63,0x55,0x2c,0x30,0x78,0x63,0x39,0x31,0x65,0x38,0x34, - 0x66,0x38,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x33,0x38,0x36,0x38,0x30,0x30,0x39,0x55,0x2c,0x30,0x78,0x34, - 0x38,0x65,0x64,0x32,0x62,0x33,0x32,0x55,0x2c,0x30,0x78,0x61,0x63,0x37,0x30,0x31,0x31,0x31,0x65,0x55,0x2c,0x30,0x78,0x34,0x65,0x37,0x32,0x35,0x61,0x36,0x63,0x55, - 0x2c,0x0a,0x30,0x78,0x66,0x62,0x66,0x66,0x30,0x65,0x66,0x64,0x55,0x2c,0x30,0x78,0x35,0x36,0x33,0x38,0x38,0x35,0x30,0x66,0x55,0x2c,0x30,0x78,0x31,0x65,0x64,0x35, - 0x61,0x65,0x33,0x64,0x55,0x2c,0x30,0x78,0x32,0x37,0x33,0x39,0x32,0x64,0x33,0x36,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x64,0x39,0x30,0x66,0x30,0x61,0x55,0x2c,0x30, - 0x78,0x32,0x31,0x61,0x36,0x35,0x63,0x36,0x38,0x55,0x2c,0x30,0x78,0x64,0x31,0x35,0x34,0x35,0x62,0x39,0x62,0x55,0x2c,0x30,0x78,0x33,0x61,0x32,0x65,0x33,0x36,0x32, - 0x34,0x55,0x2c,0x0a,0x30,0x78,0x62,0x31,0x36,0x37,0x30,0x61,0x30,0x63,0x55,0x2c,0x30,0x78,0x30,0x66,0x65,0x37,0x35,0x37,0x39,0x33,0x55,0x2c,0x30,0x78,0x64,0x32, - 0x39,0x36,0x65,0x65,0x62,0x34,0x55,0x2c,0x30,0x78,0x39,0x65,0x39,0x31,0x39,0x62,0x31,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x66,0x63,0x35,0x63,0x30,0x38,0x30,0x55, - 0x2c,0x30,0x78,0x61,0x32,0x32,0x30,0x64,0x63,0x36,0x31,0x55,0x2c,0x30,0x78,0x36,0x39,0x34,0x62,0x37,0x37,0x35,0x61,0x55,0x2c,0x30,0x78,0x31,0x36,0x31,0x61,0x31, - 0x32,0x31,0x63,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x62,0x61,0x39,0x33,0x65,0x32,0x55,0x2c,0x30,0x78,0x65,0x35,0x32,0x61,0x61,0x30,0x63,0x30,0x55,0x2c,0x30,0x78, - 0x34,0x33,0x65,0x30,0x32,0x32,0x33,0x63,0x55,0x2c,0x30,0x78,0x31,0x64,0x31,0x37,0x31,0x62,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x30,0x62,0x30,0x64,0x30,0x39,0x30, - 0x65,0x55,0x2c,0x30,0x78,0x61,0x64,0x63,0x37,0x38,0x62,0x66,0x32,0x55,0x2c,0x30,0x78,0x62,0x39,0x61,0x38,0x62,0x36,0x32,0x64,0x55,0x2c,0x30,0x78,0x63,0x38,0x61, - 0x39,0x31,0x65,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x38,0x35,0x31,0x39,0x66,0x31,0x35,0x37,0x55,0x2c,0x30,0x78,0x34,0x63,0x30,0x37,0x37,0x35,0x61,0x66,0x55,0x2c, - 0x30,0x78,0x62,0x62,0x64,0x64,0x39,0x39,0x65,0x65,0x55,0x2c,0x30,0x78,0x66,0x64,0x36,0x30,0x37,0x66,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x39,0x66,0x32,0x36,0x30, - 0x31,0x66,0x37,0x55,0x2c,0x30,0x78,0x62,0x63,0x66,0x35,0x37,0x32,0x35,0x63,0x55,0x2c,0x30,0x78,0x63,0x35,0x33,0x62,0x36,0x36,0x34,0x34,0x55,0x2c,0x30,0x78,0x33, - 0x34,0x37,0x65,0x66,0x62,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x37,0x36,0x32,0x39,0x34,0x33,0x38,0x62,0x55,0x2c,0x30,0x78,0x64,0x63,0x63,0x36,0x32,0x33,0x63,0x62, - 0x55,0x2c,0x30,0x78,0x36,0x38,0x66,0x63,0x65,0x64,0x62,0x36,0x55,0x2c,0x30,0x78,0x36,0x33,0x66,0x31,0x65,0x34,0x62,0x38,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x64, - 0x63,0x33,0x31,0x64,0x37,0x55,0x2c,0x30,0x78,0x31,0x30,0x38,0x35,0x36,0x33,0x34,0x32,0x55,0x2c,0x30,0x78,0x34,0x30,0x32,0x32,0x39,0x37,0x31,0x33,0x55,0x2c,0x30, - 0x78,0x32,0x30,0x31,0x31,0x63,0x36,0x38,0x34,0x55,0x2c,0x0a,0x30,0x78,0x37,0x64,0x32,0x34,0x34,0x61,0x38,0x35,0x55,0x2c,0x30,0x78,0x66,0x38,0x33,0x64,0x62,0x62, - 0x64,0x32,0x55,0x2c,0x30,0x78,0x31,0x31,0x33,0x32,0x66,0x39,0x61,0x65,0x55,0x2c,0x30,0x78,0x36,0x64,0x61,0x31,0x32,0x39,0x63,0x37,0x55,0x2c,0x0a,0x30,0x78,0x34, - 0x62,0x32,0x66,0x39,0x65,0x31,0x64,0x55,0x2c,0x30,0x78,0x66,0x33,0x33,0x30,0x62,0x32,0x64,0x63,0x55,0x2c,0x30,0x78,0x65,0x63,0x35,0x32,0x38,0x36,0x30,0x64,0x55, - 0x2c,0x30,0x78,0x64,0x30,0x65,0x33,0x63,0x31,0x37,0x37,0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x31,0x36,0x62,0x33,0x32,0x62,0x55,0x2c,0x30,0x78,0x39,0x39,0x62,0x39, - 0x37,0x30,0x61,0x39,0x55,0x2c,0x30,0x78,0x66,0x61,0x34,0x38,0x39,0x34,0x31,0x31,0x55,0x2c,0x30,0x78,0x32,0x32,0x36,0x34,0x65,0x39,0x34,0x37,0x55,0x2c,0x0a,0x30, - 0x78,0x63,0x34,0x38,0x63,0x66,0x63,0x61,0x38,0x55,0x2c,0x30,0x78,0x31,0x61,0x33,0x66,0x66,0x30,0x61,0x30,0x55,0x2c,0x30,0x78,0x64,0x38,0x32,0x63,0x37,0x64,0x35, - 0x36,0x55,0x2c,0x30,0x78,0x65,0x66,0x39,0x30,0x33,0x33,0x32,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x37,0x34,0x65,0x34,0x39,0x38,0x37,0x55,0x2c,0x30,0x78,0x63,0x31, - 0x64,0x31,0x33,0x38,0x64,0x39,0x55,0x2c,0x30,0x78,0x66,0x65,0x61,0x32,0x63,0x61,0x38,0x63,0x55,0x2c,0x30,0x78,0x33,0x36,0x30,0x62,0x64,0x34,0x39,0x38,0x55,0x2c, - 0x0a,0x30,0x78,0x63,0x66,0x38,0x31,0x66,0x35,0x61,0x36,0x55,0x2c,0x30,0x78,0x32,0x38,0x64,0x65,0x37,0x61,0x61,0x35,0x55,0x2c,0x30,0x78,0x32,0x36,0x38,0x65,0x62, - 0x37,0x64,0x61,0x55,0x2c,0x30,0x78,0x61,0x34,0x62,0x66,0x61,0x64,0x33,0x66,0x55,0x2c,0x0a,0x30,0x78,0x65,0x34,0x39,0x64,0x33,0x61,0x32,0x63,0x55,0x2c,0x30,0x78, - 0x30,0x64,0x39,0x32,0x37,0x38,0x35,0x30,0x55,0x2c,0x30,0x78,0x39,0x62,0x63,0x63,0x35,0x66,0x36,0x61,0x55,0x2c,0x30,0x78,0x36,0x32,0x34,0x36,0x37,0x65,0x35,0x34, - 0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x31,0x33,0x38,0x64,0x66,0x36,0x55,0x2c,0x30,0x78,0x65,0x38,0x62,0x38,0x64,0x38,0x39,0x30,0x55,0x2c,0x30,0x78,0x35,0x65,0x66, - 0x37,0x33,0x39,0x32,0x65,0x55,0x2c,0x30,0x78,0x66,0x35,0x61,0x66,0x63,0x33,0x38,0x32,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x38,0x30,0x35,0x64,0x39,0x66,0x55,0x2c, - 0x30,0x78,0x37,0x63,0x39,0x33,0x64,0x30,0x36,0x39,0x55,0x2c,0x30,0x78,0x61,0x39,0x32,0x64,0x64,0x35,0x36,0x66,0x55,0x2c,0x30,0x78,0x62,0x33,0x31,0x32,0x32,0x35, - 0x63,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x62,0x39,0x39,0x61,0x63,0x63,0x38,0x55,0x2c,0x30,0x78,0x61,0x37,0x37,0x64,0x31,0x38,0x31,0x30,0x55,0x2c,0x30,0x78,0x36, - 0x65,0x36,0x33,0x39,0x63,0x65,0x38,0x55,0x2c,0x30,0x78,0x37,0x62,0x62,0x62,0x33,0x62,0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x37,0x38,0x32,0x36,0x63,0x64, - 0x55,0x2c,0x30,0x78,0x66,0x34,0x31,0x38,0x35,0x39,0x36,0x65,0x55,0x2c,0x30,0x78,0x30,0x31,0x62,0x37,0x39,0x61,0x65,0x63,0x55,0x2c,0x30,0x78,0x61,0x38,0x39,0x61, - 0x34,0x66,0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35,0x36,0x65,0x39,0x35,0x65,0x36,0x55,0x2c,0x30,0x78,0x37,0x65,0x65,0x36,0x66,0x66,0x61,0x61,0x55,0x2c,0x30, - 0x78,0x30,0x38,0x63,0x66,0x62,0x63,0x32,0x31,0x55,0x2c,0x30,0x78,0x65,0x36,0x65,0x38,0x31,0x35,0x65,0x66,0x55,0x2c,0x0a,0x30,0x78,0x64,0x39,0x39,0x62,0x65,0x37, - 0x62,0x61,0x55,0x2c,0x30,0x78,0x63,0x65,0x33,0x36,0x36,0x66,0x34,0x61,0x55,0x2c,0x30,0x78,0x64,0x34,0x30,0x39,0x39,0x66,0x65,0x61,0x55,0x2c,0x30,0x78,0x64,0x36, - 0x37,0x63,0x62,0x30,0x32,0x39,0x55,0x2c,0x0a,0x30,0x78,0x61,0x66,0x62,0x32,0x61,0x34,0x33,0x31,0x55,0x2c,0x30,0x78,0x33,0x31,0x32,0x33,0x33,0x66,0x32,0x61,0x55, - 0x2c,0x30,0x78,0x33,0x30,0x39,0x34,0x61,0x35,0x63,0x36,0x55,0x2c,0x30,0x78,0x63,0x30,0x36,0x36,0x61,0x32,0x33,0x35,0x55,0x2c,0x0a,0x30,0x78,0x33,0x37,0x62,0x63, - 0x34,0x65,0x37,0x34,0x55,0x2c,0x30,0x78,0x61,0x36,0x63,0x61,0x38,0x32,0x66,0x63,0x55,0x2c,0x30,0x78,0x62,0x30,0x64,0x30,0x39,0x30,0x65,0x30,0x55,0x2c,0x30,0x78, - 0x31,0x35,0x64,0x38,0x61,0x37,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x39,0x38,0x30,0x34,0x66,0x31,0x55,0x2c,0x30,0x78,0x66,0x37,0x64,0x61,0x65,0x63,0x34, - 0x31,0x55,0x2c,0x30,0x78,0x30,0x65,0x35,0x30,0x63,0x64,0x37,0x66,0x55,0x2c,0x30,0x78,0x32,0x66,0x66,0x36,0x39,0x31,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64, - 0x64,0x36,0x34,0x64,0x37,0x36,0x55,0x2c,0x30,0x78,0x34,0x64,0x62,0x30,0x65,0x66,0x34,0x33,0x55,0x2c,0x30,0x78,0x35,0x34,0x34,0x64,0x61,0x61,0x63,0x63,0x55,0x2c, - 0x30,0x78,0x64,0x66,0x30,0x34,0x39,0x36,0x65,0x34,0x55,0x2c,0x0a,0x30,0x78,0x65,0x33,0x62,0x35,0x64,0x31,0x39,0x65,0x55,0x2c,0x30,0x78,0x31,0x62,0x38,0x38,0x36, - 0x61,0x34,0x63,0x55,0x2c,0x30,0x78,0x62,0x38,0x31,0x66,0x32,0x63,0x63,0x31,0x55,0x2c,0x30,0x78,0x37,0x66,0x35,0x31,0x36,0x35,0x34,0x36,0x55,0x2c,0x0a,0x30,0x78, - 0x30,0x34,0x65,0x61,0x35,0x65,0x39,0x64,0x55,0x2c,0x30,0x78,0x35,0x64,0x33,0x35,0x38,0x63,0x30,0x31,0x55,0x2c,0x30,0x78,0x37,0x33,0x37,0x34,0x38,0x37,0x66,0x61, - 0x55,0x2c,0x30,0x78,0x32,0x65,0x34,0x31,0x30,0x62,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x35,0x61,0x31,0x64,0x36,0x37,0x62,0x33,0x55,0x2c,0x30,0x78,0x35,0x32,0x64, - 0x32,0x64,0x62,0x39,0x32,0x55,0x2c,0x30,0x78,0x33,0x33,0x35,0x36,0x31,0x30,0x65,0x39,0x55,0x2c,0x30,0x78,0x31,0x33,0x34,0x37,0x64,0x36,0x36,0x64,0x55,0x2c,0x0a, - 0x30,0x78,0x38,0x63,0x36,0x31,0x64,0x37,0x39,0x61,0x55,0x2c,0x30,0x78,0x37,0x61,0x30,0x63,0x61,0x31,0x33,0x37,0x55,0x2c,0x30,0x78,0x38,0x65,0x31,0x34,0x66,0x38, - 0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x39,0x33,0x63,0x31,0x33,0x65,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x65,0x32,0x37,0x61,0x39,0x63,0x65,0x55,0x2c,0x30,0x78,0x33, - 0x35,0x63,0x39,0x36,0x31,0x62,0x37,0x55,0x2c,0x30,0x78,0x65,0x64,0x65,0x35,0x31,0x63,0x65,0x31,0x55,0x2c,0x30,0x78,0x33,0x63,0x62,0x31,0x34,0x37,0x37,0x61,0x55, - 0x2c,0x0a,0x30,0x78,0x35,0x39,0x64,0x66,0x64,0x32,0x39,0x63,0x55,0x2c,0x30,0x78,0x33,0x66,0x37,0x33,0x66,0x32,0x35,0x35,0x55,0x2c,0x30,0x78,0x37,0x39,0x63,0x65, - 0x31,0x34,0x31,0x38,0x55,0x2c,0x30,0x78,0x62,0x66,0x33,0x37,0x63,0x37,0x37,0x33,0x55,0x2c,0x0a,0x30,0x78,0x65,0x61,0x63,0x64,0x66,0x37,0x35,0x33,0x55,0x2c,0x30, - 0x78,0x35,0x62,0x61,0x61,0x66,0x64,0x35,0x66,0x55,0x2c,0x30,0x78,0x31,0x34,0x36,0x66,0x33,0x64,0x64,0x66,0x55,0x2c,0x30,0x78,0x38,0x36,0x64,0x62,0x34,0x34,0x37, - 0x38,0x55,0x2c,0x0a,0x30,0x78,0x38,0x31,0x66,0x33,0x61,0x66,0x63,0x61,0x55,0x2c,0x30,0x78,0x33,0x65,0x63,0x34,0x36,0x38,0x62,0x39,0x55,0x2c,0x30,0x78,0x32,0x63, - 0x33,0x34,0x32,0x34,0x33,0x38,0x55,0x2c,0x30,0x78,0x35,0x66,0x34,0x30,0x61,0x33,0x63,0x32,0x55,0x2c,0x0a,0x30,0x78,0x37,0x32,0x63,0x33,0x31,0x64,0x31,0x36,0x55, - 0x2c,0x30,0x78,0x30,0x63,0x32,0x35,0x65,0x32,0x62,0x63,0x55,0x2c,0x30,0x78,0x38,0x62,0x34,0x39,0x33,0x63,0x32,0x38,0x55,0x2c,0x30,0x78,0x34,0x31,0x39,0x35,0x30, - 0x64,0x66,0x66,0x55,0x2c,0x0a,0x30,0x78,0x37,0x31,0x30,0x31,0x61,0x38,0x33,0x39,0x55,0x2c,0x30,0x78,0x64,0x65,0x62,0x33,0x30,0x63,0x30,0x38,0x55,0x2c,0x30,0x78, - 0x39,0x63,0x65,0x34,0x62,0x34,0x64,0x38,0x55,0x2c,0x30,0x78,0x39,0x30,0x63,0x31,0x35,0x36,0x36,0x34,0x55,0x2c,0x0a,0x30,0x78,0x36,0x31,0x38,0x34,0x63,0x62,0x37, - 0x62,0x55,0x2c,0x30,0x78,0x37,0x30,0x62,0x36,0x33,0x32,0x64,0x35,0x55,0x2c,0x30,0x78,0x37,0x34,0x35,0x63,0x36,0x63,0x34,0x38,0x55,0x2c,0x30,0x78,0x34,0x32,0x35, - 0x37,0x62,0x38,0x64,0x30,0x55,0x2c,0x0a,0x30,0x78,0x61,0x37,0x66,0x34,0x35,0x31,0x35,0x30,0x55,0x2c,0x30,0x78,0x36,0x35,0x34,0x31,0x37,0x65,0x35,0x33,0x55,0x2c, - 0x30,0x78,0x61,0x34,0x31,0x37,0x31,0x61,0x63,0x33,0x55,0x2c,0x30,0x78,0x35,0x65,0x32,0x37,0x33,0x61,0x39,0x36,0x55,0x2c,0x0a,0x30,0x78,0x36,0x62,0x61,0x62,0x33, - 0x62,0x63,0x62,0x55,0x2c,0x30,0x78,0x34,0x35,0x39,0x64,0x31,0x66,0x66,0x31,0x55,0x2c,0x30,0x78,0x35,0x38,0x66,0x61,0x61,0x63,0x61,0x62,0x55,0x2c,0x30,0x78,0x30, - 0x33,0x65,0x33,0x34,0x62,0x39,0x33,0x55,0x2c,0x0a,0x30,0x78,0x66,0x61,0x33,0x30,0x32,0x30,0x35,0x35,0x55,0x2c,0x30,0x78,0x36,0x64,0x37,0x36,0x61,0x64,0x66,0x36, - 0x55,0x2c,0x30,0x78,0x37,0x36,0x63,0x63,0x38,0x38,0x39,0x31,0x55,0x2c,0x30,0x78,0x34,0x63,0x30,0x32,0x66,0x35,0x32,0x35,0x55,0x2c,0x0a,0x30,0x78,0x64,0x37,0x65, - 0x35,0x34,0x66,0x66,0x63,0x55,0x2c,0x30,0x78,0x63,0x62,0x32,0x61,0x63,0x35,0x64,0x37,0x55,0x2c,0x30,0x78,0x34,0x34,0x33,0x35,0x32,0x36,0x38,0x30,0x55,0x2c,0x30, - 0x78,0x61,0x33,0x36,0x32,0x62,0x35,0x38,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x61,0x62,0x31,0x64,0x65,0x34,0x39,0x55,0x2c,0x30,0x78,0x31,0x62,0x62,0x61,0x32,0x35, - 0x36,0x37,0x55,0x2c,0x30,0x78,0x30,0x65,0x65,0x61,0x34,0x35,0x39,0x38,0x55,0x2c,0x30,0x78,0x63,0x30,0x66,0x65,0x35,0x64,0x65,0x31,0x55,0x2c,0x0a,0x30,0x78,0x37, - 0x35,0x32,0x66,0x63,0x33,0x30,0x32,0x55,0x2c,0x30,0x78,0x66,0x30,0x34,0x63,0x38,0x31,0x31,0x32,0x55,0x2c,0x30,0x78,0x39,0x37,0x34,0x36,0x38,0x64,0x61,0x33,0x55, - 0x2c,0x30,0x78,0x66,0x39,0x64,0x33,0x36,0x62,0x63,0x36,0x55,0x2c,0x0a,0x30,0x78,0x35,0x66,0x38,0x66,0x30,0x33,0x65,0x37,0x55,0x2c,0x30,0x78,0x39,0x63,0x39,0x32, - 0x31,0x35,0x39,0x35,0x55,0x2c,0x30,0x78,0x37,0x61,0x36,0x64,0x62,0x66,0x65,0x62,0x55,0x2c,0x30,0x78,0x35,0x39,0x35,0x32,0x39,0x35,0x64,0x61,0x55,0x2c,0x0a,0x30, - 0x78,0x38,0x33,0x62,0x65,0x64,0x34,0x32,0x64,0x55,0x2c,0x30,0x78,0x32,0x31,0x37,0x34,0x35,0x38,0x64,0x33,0x55,0x2c,0x30,0x78,0x36,0x39,0x65,0x30,0x34,0x39,0x32, - 0x39,0x55,0x2c,0x30,0x78,0x63,0x38,0x63,0x39,0x38,0x65,0x34,0x34,0x55,0x2c,0x0a,0x30,0x78,0x38,0x39,0x63,0x32,0x37,0x35,0x36,0x61,0x55,0x2c,0x30,0x78,0x37,0x39, - 0x38,0x65,0x66,0x34,0x37,0x38,0x55,0x2c,0x30,0x78,0x33,0x65,0x35,0x38,0x39,0x39,0x36,0x62,0x55,0x2c,0x30,0x78,0x37,0x31,0x62,0x39,0x32,0x37,0x64,0x64,0x55,0x2c, - 0x0a,0x30,0x78,0x34,0x66,0x65,0x31,0x62,0x65,0x62,0x36,0x55,0x2c,0x30,0x78,0x61,0x64,0x38,0x38,0x66,0x30,0x31,0x37,0x55,0x2c,0x30,0x78,0x61,0x63,0x32,0x30,0x63, - 0x39,0x36,0x36,0x55,0x2c,0x30,0x78,0x33,0x61,0x63,0x65,0x37,0x64,0x62,0x34,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x64,0x66,0x36,0x33,0x31,0x38,0x55,0x2c,0x30,0x78, - 0x33,0x31,0x31,0x61,0x65,0x35,0x38,0x32,0x55,0x2c,0x30,0x78,0x33,0x33,0x35,0x31,0x39,0x37,0x36,0x30,0x55,0x2c,0x30,0x78,0x37,0x66,0x35,0x33,0x36,0x32,0x34,0x35, - 0x55,0x2c,0x0a,0x30,0x78,0x37,0x37,0x36,0x34,0x62,0x31,0x65,0x30,0x55,0x2c,0x30,0x78,0x61,0x65,0x36,0x62,0x62,0x62,0x38,0x34,0x55,0x2c,0x30,0x78,0x61,0x30,0x38, - 0x31,0x66,0x65,0x31,0x63,0x55,0x2c,0x30,0x78,0x32,0x62,0x30,0x38,0x66,0x39,0x39,0x34,0x55,0x2c,0x0a,0x30,0x78,0x36,0x38,0x34,0x38,0x37,0x30,0x35,0x38,0x55,0x2c, - 0x30,0x78,0x66,0x64,0x34,0x35,0x38,0x66,0x31,0x39,0x55,0x2c,0x30,0x78,0x36,0x63,0x64,0x65,0x39,0x34,0x38,0x37,0x55,0x2c,0x30,0x78,0x66,0x38,0x37,0x62,0x35,0x32, - 0x62,0x37,0x55,0x2c,0x0a,0x30,0x78,0x64,0x33,0x37,0x33,0x61,0x62,0x32,0x33,0x55,0x2c,0x30,0x78,0x30,0x32,0x34,0x62,0x37,0x32,0x65,0x32,0x55,0x2c,0x30,0x78,0x38, - 0x66,0x31,0x66,0x65,0x33,0x35,0x37,0x55,0x2c,0x30,0x78,0x61,0x62,0x35,0x35,0x36,0x36,0x32,0x61,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38,0x65,0x62,0x62,0x32,0x30,0x37, - 0x55,0x2c,0x30,0x78,0x63,0x32,0x62,0x35,0x32,0x66,0x30,0x33,0x55,0x2c,0x30,0x78,0x37,0x62,0x63,0x35,0x38,0x36,0x39,0x61,0x55,0x2c,0x30,0x78,0x30,0x38,0x33,0x37, - 0x64,0x33,0x61,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x37,0x32,0x38,0x33,0x30,0x66,0x32,0x55,0x2c,0x30,0x78,0x61,0x35,0x62,0x66,0x32,0x33,0x62,0x32,0x55,0x2c,0x30, - 0x78,0x36,0x61,0x30,0x33,0x30,0x32,0x62,0x61,0x55,0x2c,0x30,0x78,0x38,0x32,0x31,0x36,0x65,0x64,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x31,0x63,0x63,0x66,0x38,0x61, - 0x32,0x62,0x55,0x2c,0x30,0x78,0x62,0x34,0x37,0x39,0x61,0x37,0x39,0x32,0x55,0x2c,0x30,0x78,0x66,0x32,0x30,0x37,0x66,0x33,0x66,0x30,0x55,0x2c,0x30,0x78,0x65,0x32, - 0x36,0x39,0x34,0x65,0x61,0x31,0x55,0x2c,0x0a,0x30,0x78,0x66,0x34,0x64,0x61,0x36,0x35,0x63,0x64,0x55,0x2c,0x30,0x78,0x62,0x65,0x30,0x35,0x30,0x36,0x64,0x35,0x55, - 0x2c,0x30,0x78,0x36,0x32,0x33,0x34,0x64,0x31,0x31,0x66,0x55,0x2c,0x30,0x78,0x66,0x65,0x61,0x36,0x63,0x34,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33,0x32,0x65, - 0x33,0x34,0x39,0x64,0x55,0x2c,0x30,0x78,0x35,0x35,0x66,0x33,0x61,0x32,0x61,0x30,0x55,0x2c,0x30,0x78,0x65,0x31,0x38,0x61,0x30,0x35,0x33,0x32,0x55,0x2c,0x30,0x78, - 0x65,0x62,0x66,0x36,0x61,0x34,0x37,0x35,0x55,0x2c,0x0a,0x30,0x78,0x65,0x63,0x38,0x33,0x30,0x62,0x33,0x39,0x55,0x2c,0x30,0x78,0x65,0x66,0x36,0x30,0x34,0x30,0x61, - 0x61,0x55,0x2c,0x30,0x78,0x39,0x66,0x37,0x31,0x35,0x65,0x30,0x36,0x55,0x2c,0x30,0x78,0x31,0x30,0x36,0x65,0x62,0x64,0x35,0x31,0x55,0x2c,0x0a,0x30,0x78,0x38,0x61, - 0x32,0x31,0x33,0x65,0x66,0x39,0x55,0x2c,0x30,0x78,0x30,0x36,0x64,0x64,0x39,0x36,0x33,0x64,0x55,0x2c,0x30,0x78,0x30,0x35,0x33,0x65,0x64,0x64,0x61,0x65,0x55,0x2c, - 0x30,0x78,0x62,0x64,0x65,0x36,0x34,0x64,0x34,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x35,0x34,0x39,0x31,0x62,0x35,0x55,0x2c,0x30,0x78,0x35,0x64,0x63,0x34,0x37, - 0x31,0x30,0x35,0x55,0x2c,0x30,0x78,0x64,0x34,0x30,0x36,0x30,0x34,0x36,0x66,0x55,0x2c,0x30,0x78,0x31,0x35,0x35,0x30,0x36,0x30,0x66,0x66,0x55,0x2c,0x0a,0x30,0x78, - 0x66,0x62,0x39,0x38,0x31,0x39,0x32,0x34,0x55,0x2c,0x30,0x78,0x65,0x39,0x62,0x64,0x64,0x36,0x39,0x37,0x55,0x2c,0x30,0x78,0x34,0x33,0x34,0x30,0x38,0x39,0x63,0x63, - 0x55,0x2c,0x30,0x78,0x39,0x65,0x64,0x39,0x36,0x37,0x37,0x37,0x55,0x2c,0x0a,0x30,0x78,0x34,0x32,0x65,0x38,0x62,0x30,0x62,0x64,0x55,0x2c,0x30,0x78,0x38,0x62,0x38, - 0x39,0x30,0x37,0x38,0x38,0x55,0x2c,0x30,0x78,0x35,0x62,0x31,0x39,0x65,0x37,0x33,0x38,0x55,0x2c,0x30,0x78,0x65,0x65,0x63,0x38,0x37,0x39,0x64,0x62,0x55,0x2c,0x0a, - 0x30,0x78,0x30,0x61,0x37,0x63,0x61,0x31,0x34,0x37,0x55,0x2c,0x30,0x78,0x30,0x66,0x34,0x32,0x37,0x63,0x65,0x39,0x55,0x2c,0x30,0x78,0x31,0x65,0x38,0x34,0x66,0x38, - 0x63,0x39,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x38,0x30,0x30,0x39,0x38,0x33,0x55,0x2c,0x30,0x78,0x65, - 0x64,0x32,0x62,0x33,0x32,0x34,0x38,0x55,0x2c,0x30,0x78,0x37,0x30,0x31,0x31,0x31,0x65,0x61,0x63,0x55,0x2c,0x30,0x78,0x37,0x32,0x35,0x61,0x36,0x63,0x34,0x65,0x55, - 0x2c,0x0a,0x30,0x78,0x66,0x66,0x30,0x65,0x66,0x64,0x66,0x62,0x55,0x2c,0x30,0x78,0x33,0x38,0x38,0x35,0x30,0x66,0x35,0x36,0x55,0x2c,0x30,0x78,0x64,0x35,0x61,0x65, - 0x33,0x64,0x31,0x65,0x55,0x2c,0x30,0x78,0x33,0x39,0x32,0x64,0x33,0x36,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x64,0x39,0x30,0x66,0x30,0x61,0x36,0x34,0x55,0x2c,0x30, - 0x78,0x61,0x36,0x35,0x63,0x36,0x38,0x32,0x31,0x55,0x2c,0x30,0x78,0x35,0x34,0x35,0x62,0x39,0x62,0x64,0x31,0x55,0x2c,0x30,0x78,0x32,0x65,0x33,0x36,0x32,0x34,0x33, - 0x61,0x55,0x2c,0x0a,0x30,0x78,0x36,0x37,0x30,0x61,0x30,0x63,0x62,0x31,0x55,0x2c,0x30,0x78,0x65,0x37,0x35,0x37,0x39,0x33,0x30,0x66,0x55,0x2c,0x30,0x78,0x39,0x36, - 0x65,0x65,0x62,0x34,0x64,0x32,0x55,0x2c,0x30,0x78,0x39,0x31,0x39,0x62,0x31,0x62,0x39,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x35,0x63,0x30,0x38,0x30,0x34,0x66,0x55, - 0x2c,0x30,0x78,0x32,0x30,0x64,0x63,0x36,0x31,0x61,0x32,0x55,0x2c,0x30,0x78,0x34,0x62,0x37,0x37,0x35,0x61,0x36,0x39,0x55,0x2c,0x30,0x78,0x31,0x61,0x31,0x32,0x31, - 0x63,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x39,0x33,0x65,0x32,0x30,0x61,0x55,0x2c,0x30,0x78,0x32,0x61,0x61,0x30,0x63,0x30,0x65,0x35,0x55,0x2c,0x30,0x78, - 0x65,0x30,0x32,0x32,0x33,0x63,0x34,0x33,0x55,0x2c,0x30,0x78,0x31,0x37,0x31,0x62,0x31,0x32,0x31,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x64,0x30,0x39,0x30,0x65,0x30, - 0x62,0x55,0x2c,0x30,0x78,0x63,0x37,0x38,0x62,0x66,0x32,0x61,0x64,0x55,0x2c,0x30,0x78,0x61,0x38,0x62,0x36,0x32,0x64,0x62,0x39,0x55,0x2c,0x30,0x78,0x61,0x39,0x31, - 0x65,0x31,0x34,0x63,0x38,0x55,0x2c,0x0a,0x30,0x78,0x31,0x39,0x66,0x31,0x35,0x37,0x38,0x35,0x55,0x2c,0x30,0x78,0x30,0x37,0x37,0x35,0x61,0x66,0x34,0x63,0x55,0x2c, - 0x30,0x78,0x64,0x64,0x39,0x39,0x65,0x65,0x62,0x62,0x55,0x2c,0x30,0x78,0x36,0x30,0x37,0x66,0x61,0x33,0x66,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x30,0x31,0x66, - 0x37,0x39,0x66,0x55,0x2c,0x30,0x78,0x66,0x35,0x37,0x32,0x35,0x63,0x62,0x63,0x55,0x2c,0x30,0x78,0x33,0x62,0x36,0x36,0x34,0x34,0x63,0x35,0x55,0x2c,0x30,0x78,0x37, - 0x65,0x66,0x62,0x35,0x62,0x33,0x34,0x55,0x2c,0x0a,0x30,0x78,0x32,0x39,0x34,0x33,0x38,0x62,0x37,0x36,0x55,0x2c,0x30,0x78,0x63,0x36,0x32,0x33,0x63,0x62,0x64,0x63, - 0x55,0x2c,0x30,0x78,0x66,0x63,0x65,0x64,0x62,0x36,0x36,0x38,0x55,0x2c,0x30,0x78,0x66,0x31,0x65,0x34,0x62,0x38,0x36,0x33,0x55,0x2c,0x0a,0x30,0x78,0x64,0x63,0x33, - 0x31,0x64,0x37,0x63,0x61,0x55,0x2c,0x30,0x78,0x38,0x35,0x36,0x33,0x34,0x32,0x31,0x30,0x55,0x2c,0x30,0x78,0x32,0x32,0x39,0x37,0x31,0x33,0x34,0x30,0x55,0x2c,0x30, - 0x78,0x31,0x31,0x63,0x36,0x38,0x34,0x32,0x30,0x55,0x2c,0x0a,0x30,0x78,0x32,0x34,0x34,0x61,0x38,0x35,0x37,0x64,0x55,0x2c,0x30,0x78,0x33,0x64,0x62,0x62,0x64,0x32, - 0x66,0x38,0x55,0x2c,0x30,0x78,0x33,0x32,0x66,0x39,0x61,0x65,0x31,0x31,0x55,0x2c,0x30,0x78,0x61,0x31,0x32,0x39,0x63,0x37,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32, - 0x66,0x39,0x65,0x31,0x64,0x34,0x62,0x55,0x2c,0x30,0x78,0x33,0x30,0x62,0x32,0x64,0x63,0x66,0x33,0x55,0x2c,0x30,0x78,0x35,0x32,0x38,0x36,0x30,0x64,0x65,0x63,0x55, - 0x2c,0x30,0x78,0x65,0x33,0x63,0x31,0x37,0x37,0x64,0x30,0x55,0x2c,0x0a,0x30,0x78,0x31,0x36,0x62,0x33,0x32,0x62,0x36,0x63,0x55,0x2c,0x30,0x78,0x62,0x39,0x37,0x30, - 0x61,0x39,0x39,0x39,0x55,0x2c,0x30,0x78,0x34,0x38,0x39,0x34,0x31,0x31,0x66,0x61,0x55,0x2c,0x30,0x78,0x36,0x34,0x65,0x39,0x34,0x37,0x32,0x32,0x55,0x2c,0x0a,0x30, - 0x78,0x38,0x63,0x66,0x63,0x61,0x38,0x63,0x34,0x55,0x2c,0x30,0x78,0x33,0x66,0x66,0x30,0x61,0x30,0x31,0x61,0x55,0x2c,0x30,0x78,0x32,0x63,0x37,0x64,0x35,0x36,0x64, - 0x38,0x55,0x2c,0x30,0x78,0x39,0x30,0x33,0x33,0x32,0x32,0x65,0x66,0x55,0x2c,0x0a,0x30,0x78,0x34,0x65,0x34,0x39,0x38,0x37,0x63,0x37,0x55,0x2c,0x30,0x78,0x64,0x31, - 0x33,0x38,0x64,0x39,0x63,0x31,0x55,0x2c,0x30,0x78,0x61,0x32,0x63,0x61,0x38,0x63,0x66,0x65,0x55,0x2c,0x30,0x78,0x30,0x62,0x64,0x34,0x39,0x38,0x33,0x36,0x55,0x2c, - 0x0a,0x30,0x78,0x38,0x31,0x66,0x35,0x61,0x36,0x63,0x66,0x55,0x2c,0x30,0x78,0x64,0x65,0x37,0x61,0x61,0x35,0x32,0x38,0x55,0x2c,0x30,0x78,0x38,0x65,0x62,0x37,0x64, - 0x61,0x32,0x36,0x55,0x2c,0x30,0x78,0x62,0x66,0x61,0x64,0x33,0x66,0x61,0x34,0x55,0x2c,0x0a,0x30,0x78,0x39,0x64,0x33,0x61,0x32,0x63,0x65,0x34,0x55,0x2c,0x30,0x78, - 0x39,0x32,0x37,0x38,0x35,0x30,0x30,0x64,0x55,0x2c,0x30,0x78,0x63,0x63,0x35,0x66,0x36,0x61,0x39,0x62,0x55,0x2c,0x30,0x78,0x34,0x36,0x37,0x65,0x35,0x34,0x36,0x32, - 0x55,0x2c,0x0a,0x30,0x78,0x31,0x33,0x38,0x64,0x66,0x36,0x63,0x32,0x55,0x2c,0x30,0x78,0x62,0x38,0x64,0x38,0x39,0x30,0x65,0x38,0x55,0x2c,0x30,0x78,0x66,0x37,0x33, - 0x39,0x32,0x65,0x35,0x65,0x55,0x2c,0x30,0x78,0x61,0x66,0x63,0x33,0x38,0x32,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x30,0x35,0x64,0x39,0x66,0x62,0x65,0x55,0x2c, - 0x30,0x78,0x39,0x33,0x64,0x30,0x36,0x39,0x37,0x63,0x55,0x2c,0x30,0x78,0x32,0x64,0x64,0x35,0x36,0x66,0x61,0x39,0x55,0x2c,0x30,0x78,0x31,0x32,0x32,0x35,0x63,0x66, - 0x62,0x33,0x55,0x2c,0x0a,0x30,0x78,0x39,0x39,0x61,0x63,0x63,0x38,0x33,0x62,0x55,0x2c,0x30,0x78,0x37,0x64,0x31,0x38,0x31,0x30,0x61,0x37,0x55,0x2c,0x30,0x78,0x36, - 0x33,0x39,0x63,0x65,0x38,0x36,0x65,0x55,0x2c,0x30,0x78,0x62,0x62,0x33,0x62,0x64,0x62,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x37,0x38,0x32,0x36,0x63,0x64,0x30,0x39, - 0x55,0x2c,0x30,0x78,0x31,0x38,0x35,0x39,0x36,0x65,0x66,0x34,0x55,0x2c,0x30,0x78,0x62,0x37,0x39,0x61,0x65,0x63,0x30,0x31,0x55,0x2c,0x30,0x78,0x39,0x61,0x34,0x66, - 0x38,0x33,0x61,0x38,0x55,0x2c,0x0a,0x30,0x78,0x36,0x65,0x39,0x35,0x65,0x36,0x36,0x35,0x55,0x2c,0x30,0x78,0x65,0x36,0x66,0x66,0x61,0x61,0x37,0x65,0x55,0x2c,0x30, - 0x78,0x63,0x66,0x62,0x63,0x32,0x31,0x30,0x38,0x55,0x2c,0x30,0x78,0x65,0x38,0x31,0x35,0x65,0x66,0x65,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x62,0x65,0x37,0x62,0x61, - 0x64,0x39,0x55,0x2c,0x30,0x78,0x33,0x36,0x36,0x66,0x34,0x61,0x63,0x65,0x55,0x2c,0x30,0x78,0x30,0x39,0x39,0x66,0x65,0x61,0x64,0x34,0x55,0x2c,0x30,0x78,0x37,0x63, - 0x62,0x30,0x32,0x39,0x64,0x36,0x55,0x2c,0x0a,0x30,0x78,0x62,0x32,0x61,0x34,0x33,0x31,0x61,0x66,0x55,0x2c,0x30,0x78,0x32,0x33,0x33,0x66,0x32,0x61,0x33,0x31,0x55, - 0x2c,0x30,0x78,0x39,0x34,0x61,0x35,0x63,0x36,0x33,0x30,0x55,0x2c,0x30,0x78,0x36,0x36,0x61,0x32,0x33,0x35,0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x62,0x63,0x34,0x65, - 0x37,0x34,0x33,0x37,0x55,0x2c,0x30,0x78,0x63,0x61,0x38,0x32,0x66,0x63,0x61,0x36,0x55,0x2c,0x30,0x78,0x64,0x30,0x39,0x30,0x65,0x30,0x62,0x30,0x55,0x2c,0x30,0x78, - 0x64,0x38,0x61,0x37,0x33,0x33,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x39,0x38,0x30,0x34,0x66,0x31,0x34,0x61,0x55,0x2c,0x30,0x78,0x64,0x61,0x65,0x63,0x34,0x31,0x66, - 0x37,0x55,0x2c,0x30,0x78,0x35,0x30,0x63,0x64,0x37,0x66,0x30,0x65,0x55,0x2c,0x30,0x78,0x66,0x36,0x39,0x31,0x31,0x37,0x32,0x66,0x55,0x2c,0x0a,0x30,0x78,0x64,0x36, - 0x34,0x64,0x37,0x36,0x38,0x64,0x55,0x2c,0x30,0x78,0x62,0x30,0x65,0x66,0x34,0x33,0x34,0x64,0x55,0x2c,0x30,0x78,0x34,0x64,0x61,0x61,0x63,0x63,0x35,0x34,0x55,0x2c, - 0x30,0x78,0x30,0x34,0x39,0x36,0x65,0x34,0x64,0x66,0x55,0x2c,0x0a,0x30,0x78,0x62,0x35,0x64,0x31,0x39,0x65,0x65,0x33,0x55,0x2c,0x30,0x78,0x38,0x38,0x36,0x61,0x34, - 0x63,0x31,0x62,0x55,0x2c,0x30,0x78,0x31,0x66,0x32,0x63,0x63,0x31,0x62,0x38,0x55,0x2c,0x30,0x78,0x35,0x31,0x36,0x35,0x34,0x36,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78, - 0x65,0x61,0x35,0x65,0x39,0x64,0x30,0x34,0x55,0x2c,0x30,0x78,0x33,0x35,0x38,0x63,0x30,0x31,0x35,0x64,0x55,0x2c,0x30,0x78,0x37,0x34,0x38,0x37,0x66,0x61,0x37,0x33, - 0x55,0x2c,0x30,0x78,0x34,0x31,0x30,0x62,0x66,0x62,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78,0x31,0x64,0x36,0x37,0x62,0x33,0x35,0x61,0x55,0x2c,0x30,0x78,0x64,0x32,0x64, - 0x62,0x39,0x32,0x35,0x32,0x55,0x2c,0x30,0x78,0x35,0x36,0x31,0x30,0x65,0x39,0x33,0x33,0x55,0x2c,0x30,0x78,0x34,0x37,0x64,0x36,0x36,0x64,0x31,0x33,0x55,0x2c,0x0a, - 0x30,0x78,0x36,0x31,0x64,0x37,0x39,0x61,0x38,0x63,0x55,0x2c,0x30,0x78,0x30,0x63,0x61,0x31,0x33,0x37,0x37,0x61,0x55,0x2c,0x30,0x78,0x31,0x34,0x66,0x38,0x35,0x39, - 0x38,0x65,0x55,0x2c,0x30,0x78,0x33,0x63,0x31,0x33,0x65,0x62,0x38,0x39,0x55,0x2c,0x0a,0x30,0x78,0x32,0x37,0x61,0x39,0x63,0x65,0x65,0x65,0x55,0x2c,0x30,0x78,0x63, - 0x39,0x36,0x31,0x62,0x37,0x33,0x35,0x55,0x2c,0x30,0x78,0x65,0x35,0x31,0x63,0x65,0x31,0x65,0x64,0x55,0x2c,0x30,0x78,0x62,0x31,0x34,0x37,0x37,0x61,0x33,0x63,0x55, - 0x2c,0x0a,0x30,0x78,0x64,0x66,0x64,0x32,0x39,0x63,0x35,0x39,0x55,0x2c,0x30,0x78,0x37,0x33,0x66,0x32,0x35,0x35,0x33,0x66,0x55,0x2c,0x30,0x78,0x63,0x65,0x31,0x34, - 0x31,0x38,0x37,0x39,0x55,0x2c,0x30,0x78,0x33,0x37,0x63,0x37,0x37,0x33,0x62,0x66,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x66,0x37,0x35,0x33,0x65,0x61,0x55,0x2c,0x30, - 0x78,0x61,0x61,0x66,0x64,0x35,0x66,0x35,0x62,0x55,0x2c,0x30,0x78,0x36,0x66,0x33,0x64,0x64,0x66,0x31,0x34,0x55,0x2c,0x30,0x78,0x64,0x62,0x34,0x34,0x37,0x38,0x38, - 0x36,0x55,0x2c,0x0a,0x30,0x78,0x66,0x33,0x61,0x66,0x63,0x61,0x38,0x31,0x55,0x2c,0x30,0x78,0x63,0x34,0x36,0x38,0x62,0x39,0x33,0x65,0x55,0x2c,0x30,0x78,0x33,0x34, - 0x32,0x34,0x33,0x38,0x32,0x63,0x55,0x2c,0x30,0x78,0x34,0x30,0x61,0x33,0x63,0x32,0x35,0x66,0x55,0x2c,0x0a,0x30,0x78,0x63,0x33,0x31,0x64,0x31,0x36,0x37,0x32,0x55, - 0x2c,0x30,0x78,0x32,0x35,0x65,0x32,0x62,0x63,0x30,0x63,0x55,0x2c,0x30,0x78,0x34,0x39,0x33,0x63,0x32,0x38,0x38,0x62,0x55,0x2c,0x30,0x78,0x39,0x35,0x30,0x64,0x66, - 0x66,0x34,0x31,0x55,0x2c,0x0a,0x30,0x78,0x30,0x31,0x61,0x38,0x33,0x39,0x37,0x31,0x55,0x2c,0x30,0x78,0x62,0x33,0x30,0x63,0x30,0x38,0x64,0x65,0x55,0x2c,0x30,0x78, - 0x65,0x34,0x62,0x34,0x64,0x38,0x39,0x63,0x55,0x2c,0x30,0x78,0x63,0x31,0x35,0x36,0x36,0x34,0x39,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x34,0x63,0x62,0x37,0x62,0x36, - 0x31,0x55,0x2c,0x30,0x78,0x62,0x36,0x33,0x32,0x64,0x35,0x37,0x30,0x55,0x2c,0x30,0x78,0x35,0x63,0x36,0x63,0x34,0x38,0x37,0x34,0x55,0x2c,0x30,0x78,0x35,0x37,0x62, - 0x38,0x64,0x30,0x34,0x32,0x55,0x2c,0x0a,0x30,0x78,0x66,0x34,0x35,0x31,0x35,0x30,0x61,0x37,0x55,0x2c,0x30,0x78,0x34,0x31,0x37,0x65,0x35,0x33,0x36,0x35,0x55,0x2c, - 0x30,0x78,0x31,0x37,0x31,0x61,0x63,0x33,0x61,0x34,0x55,0x2c,0x30,0x78,0x32,0x37,0x33,0x61,0x39,0x36,0x35,0x65,0x55,0x2c,0x0a,0x30,0x78,0x61,0x62,0x33,0x62,0x63, - 0x62,0x36,0x62,0x55,0x2c,0x30,0x78,0x39,0x64,0x31,0x66,0x66,0x31,0x34,0x35,0x55,0x2c,0x30,0x78,0x66,0x61,0x61,0x63,0x61,0x62,0x35,0x38,0x55,0x2c,0x30,0x78,0x65, - 0x33,0x34,0x62,0x39,0x33,0x30,0x33,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x32,0x30,0x35,0x35,0x66,0x61,0x55,0x2c,0x30,0x78,0x37,0x36,0x61,0x64,0x66,0x36,0x36,0x64, - 0x55,0x2c,0x30,0x78,0x63,0x63,0x38,0x38,0x39,0x31,0x37,0x36,0x55,0x2c,0x30,0x78,0x30,0x32,0x66,0x35,0x32,0x35,0x34,0x63,0x55,0x2c,0x0a,0x30,0x78,0x65,0x35,0x34, - 0x66,0x66,0x63,0x64,0x37,0x55,0x2c,0x30,0x78,0x32,0x61,0x63,0x35,0x64,0x37,0x63,0x62,0x55,0x2c,0x30,0x78,0x33,0x35,0x32,0x36,0x38,0x30,0x34,0x34,0x55,0x2c,0x30, - 0x78,0x36,0x32,0x62,0x35,0x38,0x66,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x62,0x31,0x64,0x65,0x34,0x39,0x35,0x61,0x55,0x2c,0x30,0x78,0x62,0x61,0x32,0x35,0x36,0x37, - 0x31,0x62,0x55,0x2c,0x30,0x78,0x65,0x61,0x34,0x35,0x39,0x38,0x30,0x65,0x55,0x2c,0x30,0x78,0x66,0x65,0x35,0x64,0x65,0x31,0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x32, - 0x66,0x63,0x33,0x30,0x32,0x37,0x35,0x55,0x2c,0x30,0x78,0x34,0x63,0x38,0x31,0x31,0x32,0x66,0x30,0x55,0x2c,0x30,0x78,0x34,0x36,0x38,0x64,0x61,0x33,0x39,0x37,0x55, - 0x2c,0x30,0x78,0x64,0x33,0x36,0x62,0x63,0x36,0x66,0x39,0x55,0x2c,0x0a,0x30,0x78,0x38,0x66,0x30,0x33,0x65,0x37,0x35,0x66,0x55,0x2c,0x30,0x78,0x39,0x32,0x31,0x35, - 0x39,0x35,0x39,0x63,0x55,0x2c,0x30,0x78,0x36,0x64,0x62,0x66,0x65,0x62,0x37,0x61,0x55,0x2c,0x30,0x78,0x35,0x32,0x39,0x35,0x64,0x61,0x35,0x39,0x55,0x2c,0x0a,0x30, - 0x78,0x62,0x65,0x64,0x34,0x32,0x64,0x38,0x33,0x55,0x2c,0x30,0x78,0x37,0x34,0x35,0x38,0x64,0x33,0x32,0x31,0x55,0x2c,0x30,0x78,0x65,0x30,0x34,0x39,0x32,0x39,0x36, - 0x39,0x55,0x2c,0x30,0x78,0x63,0x39,0x38,0x65,0x34,0x34,0x63,0x38,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x37,0x35,0x36,0x61,0x38,0x39,0x55,0x2c,0x30,0x78,0x38,0x65, - 0x66,0x34,0x37,0x38,0x37,0x39,0x55,0x2c,0x30,0x78,0x35,0x38,0x39,0x39,0x36,0x62,0x33,0x65,0x55,0x2c,0x30,0x78,0x62,0x39,0x32,0x37,0x64,0x64,0x37,0x31,0x55,0x2c, - 0x0a,0x30,0x78,0x65,0x31,0x62,0x65,0x62,0x36,0x34,0x66,0x55,0x2c,0x30,0x78,0x38,0x38,0x66,0x30,0x31,0x37,0x61,0x64,0x55,0x2c,0x30,0x78,0x32,0x30,0x63,0x39,0x36, - 0x36,0x61,0x63,0x55,0x2c,0x30,0x78,0x63,0x65,0x37,0x64,0x62,0x34,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x64,0x66,0x36,0x33,0x31,0x38,0x34,0x61,0x55,0x2c,0x30,0x78, - 0x31,0x61,0x65,0x35,0x38,0x32,0x33,0x31,0x55,0x2c,0x30,0x78,0x35,0x31,0x39,0x37,0x36,0x30,0x33,0x33,0x55,0x2c,0x30,0x78,0x35,0x33,0x36,0x32,0x34,0x35,0x37,0x66, - 0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x62,0x31,0x65,0x30,0x37,0x37,0x55,0x2c,0x30,0x78,0x36,0x62,0x62,0x62,0x38,0x34,0x61,0x65,0x55,0x2c,0x30,0x78,0x38,0x31,0x66, - 0x65,0x31,0x63,0x61,0x30,0x55,0x2c,0x30,0x78,0x30,0x38,0x66,0x39,0x39,0x34,0x32,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x38,0x37,0x30,0x35,0x38,0x36,0x38,0x55,0x2c, - 0x30,0x78,0x34,0x35,0x38,0x66,0x31,0x39,0x66,0x64,0x55,0x2c,0x30,0x78,0x64,0x65,0x39,0x34,0x38,0x37,0x36,0x63,0x55,0x2c,0x30,0x78,0x37,0x62,0x35,0x32,0x62,0x37, - 0x66,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x33,0x61,0x62,0x32,0x33,0x64,0x33,0x55,0x2c,0x30,0x78,0x34,0x62,0x37,0x32,0x65,0x32,0x30,0x32,0x55,0x2c,0x30,0x78,0x31, - 0x66,0x65,0x33,0x35,0x37,0x38,0x66,0x55,0x2c,0x30,0x78,0x35,0x35,0x36,0x36,0x32,0x61,0x61,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x62,0x62,0x32,0x30,0x37,0x32,0x38, - 0x55,0x2c,0x30,0x78,0x62,0x35,0x32,0x66,0x30,0x33,0x63,0x32,0x55,0x2c,0x30,0x78,0x63,0x35,0x38,0x36,0x39,0x61,0x37,0x62,0x55,0x2c,0x30,0x78,0x33,0x37,0x64,0x33, - 0x61,0x35,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38,0x33,0x30,0x66,0x32,0x38,0x37,0x55,0x2c,0x30,0x78,0x62,0x66,0x32,0x33,0x62,0x32,0x61,0x35,0x55,0x2c,0x30, - 0x78,0x30,0x33,0x30,0x32,0x62,0x61,0x36,0x61,0x55,0x2c,0x30,0x78,0x31,0x36,0x65,0x64,0x35,0x63,0x38,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x66,0x38,0x61,0x32,0x62, - 0x31,0x63,0x55,0x2c,0x30,0x78,0x37,0x39,0x61,0x37,0x39,0x32,0x62,0x34,0x55,0x2c,0x30,0x78,0x30,0x37,0x66,0x33,0x66,0x30,0x66,0x32,0x55,0x2c,0x30,0x78,0x36,0x39, - 0x34,0x65,0x61,0x31,0x65,0x32,0x55,0x2c,0x0a,0x30,0x78,0x64,0x61,0x36,0x35,0x63,0x64,0x66,0x34,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x36,0x64,0x35,0x62,0x65,0x55, - 0x2c,0x30,0x78,0x33,0x34,0x64,0x31,0x31,0x66,0x36,0x32,0x55,0x2c,0x30,0x78,0x61,0x36,0x63,0x34,0x38,0x61,0x66,0x65,0x55,0x2c,0x0a,0x30,0x78,0x32,0x65,0x33,0x34, - 0x39,0x64,0x35,0x33,0x55,0x2c,0x30,0x78,0x66,0x33,0x61,0x32,0x61,0x30,0x35,0x35,0x55,0x2c,0x30,0x78,0x38,0x61,0x30,0x35,0x33,0x32,0x65,0x31,0x55,0x2c,0x30,0x78, - 0x66,0x36,0x61,0x34,0x37,0x35,0x65,0x62,0x55,0x2c,0x0a,0x30,0x78,0x38,0x33,0x30,0x62,0x33,0x39,0x65,0x63,0x55,0x2c,0x30,0x78,0x36,0x30,0x34,0x30,0x61,0x61,0x65, - 0x66,0x55,0x2c,0x30,0x78,0x37,0x31,0x35,0x65,0x30,0x36,0x39,0x66,0x55,0x2c,0x30,0x78,0x36,0x65,0x62,0x64,0x35,0x31,0x31,0x30,0x55,0x2c,0x0a,0x30,0x78,0x32,0x31, - 0x33,0x65,0x66,0x39,0x38,0x61,0x55,0x2c,0x30,0x78,0x64,0x64,0x39,0x36,0x33,0x64,0x30,0x36,0x55,0x2c,0x30,0x78,0x33,0x65,0x64,0x64,0x61,0x65,0x30,0x35,0x55,0x2c, - 0x30,0x78,0x65,0x36,0x34,0x64,0x34,0x36,0x62,0x64,0x55,0x2c,0x0a,0x30,0x78,0x35,0x34,0x39,0x31,0x62,0x35,0x38,0x64,0x55,0x2c,0x30,0x78,0x63,0x34,0x37,0x31,0x30, - 0x35,0x35,0x64,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x34,0x36,0x66,0x64,0x34,0x55,0x2c,0x30,0x78,0x35,0x30,0x36,0x30,0x66,0x66,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78, - 0x39,0x38,0x31,0x39,0x32,0x34,0x66,0x62,0x55,0x2c,0x30,0x78,0x62,0x64,0x64,0x36,0x39,0x37,0x65,0x39,0x55,0x2c,0x30,0x78,0x34,0x30,0x38,0x39,0x63,0x63,0x34,0x33, - 0x55,0x2c,0x30,0x78,0x64,0x39,0x36,0x37,0x37,0x37,0x39,0x65,0x55,0x2c,0x0a,0x30,0x78,0x65,0x38,0x62,0x30,0x62,0x64,0x34,0x32,0x55,0x2c,0x30,0x78,0x38,0x39,0x30, - 0x37,0x38,0x38,0x38,0x62,0x55,0x2c,0x30,0x78,0x31,0x39,0x65,0x37,0x33,0x38,0x35,0x62,0x55,0x2c,0x30,0x78,0x63,0x38,0x37,0x39,0x64,0x62,0x65,0x65,0x55,0x2c,0x0a, - 0x30,0x78,0x37,0x63,0x61,0x31,0x34,0x37,0x30,0x61,0x55,0x2c,0x30,0x78,0x34,0x32,0x37,0x63,0x65,0x39,0x30,0x66,0x55,0x2c,0x30,0x78,0x38,0x34,0x66,0x38,0x63,0x39, - 0x31,0x65,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x39,0x38,0x33,0x38,0x36,0x55,0x2c,0x30,0x78,0x32, - 0x62,0x33,0x32,0x34,0x38,0x65,0x64,0x55,0x2c,0x30,0x78,0x31,0x31,0x31,0x65,0x61,0x63,0x37,0x30,0x55,0x2c,0x30,0x78,0x35,0x61,0x36,0x63,0x34,0x65,0x37,0x32,0x55, - 0x2c,0x0a,0x30,0x78,0x30,0x65,0x66,0x64,0x66,0x62,0x66,0x66,0x55,0x2c,0x30,0x78,0x38,0x35,0x30,0x66,0x35,0x36,0x33,0x38,0x55,0x2c,0x30,0x78,0x61,0x65,0x33,0x64, - 0x31,0x65,0x64,0x35,0x55,0x2c,0x30,0x78,0x32,0x64,0x33,0x36,0x32,0x37,0x33,0x39,0x55,0x2c,0x0a,0x30,0x78,0x30,0x66,0x30,0x61,0x36,0x34,0x64,0x39,0x55,0x2c,0x30, - 0x78,0x35,0x63,0x36,0x38,0x32,0x31,0x61,0x36,0x55,0x2c,0x30,0x78,0x35,0x62,0x39,0x62,0x64,0x31,0x35,0x34,0x55,0x2c,0x30,0x78,0x33,0x36,0x32,0x34,0x33,0x61,0x32, - 0x65,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x30,0x63,0x62,0x31,0x36,0x37,0x55,0x2c,0x30,0x78,0x35,0x37,0x39,0x33,0x30,0x66,0x65,0x37,0x55,0x2c,0x30,0x78,0x65,0x65, - 0x62,0x34,0x64,0x32,0x39,0x36,0x55,0x2c,0x30,0x78,0x39,0x62,0x31,0x62,0x39,0x65,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x63,0x30,0x38,0x30,0x34,0x66,0x63,0x35,0x55, - 0x2c,0x30,0x78,0x64,0x63,0x36,0x31,0x61,0x32,0x32,0x30,0x55,0x2c,0x30,0x78,0x37,0x37,0x35,0x61,0x36,0x39,0x34,0x62,0x55,0x2c,0x30,0x78,0x31,0x32,0x31,0x63,0x31, - 0x36,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x33,0x65,0x32,0x30,0x61,0x62,0x61,0x55,0x2c,0x30,0x78,0x61,0x30,0x63,0x30,0x65,0x35,0x32,0x61,0x55,0x2c,0x30,0x78, - 0x32,0x32,0x33,0x63,0x34,0x33,0x65,0x30,0x55,0x2c,0x30,0x78,0x31,0x62,0x31,0x32,0x31,0x64,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x65,0x30,0x62,0x30, - 0x64,0x55,0x2c,0x30,0x78,0x38,0x62,0x66,0x32,0x61,0x64,0x63,0x37,0x55,0x2c,0x30,0x78,0x62,0x36,0x32,0x64,0x62,0x39,0x61,0x38,0x55,0x2c,0x30,0x78,0x31,0x65,0x31, - 0x34,0x63,0x38,0x61,0x39,0x55,0x2c,0x0a,0x30,0x78,0x66,0x31,0x35,0x37,0x38,0x35,0x31,0x39,0x55,0x2c,0x30,0x78,0x37,0x35,0x61,0x66,0x34,0x63,0x30,0x37,0x55,0x2c, - 0x30,0x78,0x39,0x39,0x65,0x65,0x62,0x62,0x64,0x64,0x55,0x2c,0x30,0x78,0x37,0x66,0x61,0x33,0x66,0x64,0x36,0x30,0x55,0x2c,0x0a,0x30,0x78,0x30,0x31,0x66,0x37,0x39, - 0x66,0x32,0x36,0x55,0x2c,0x30,0x78,0x37,0x32,0x35,0x63,0x62,0x63,0x66,0x35,0x55,0x2c,0x30,0x78,0x36,0x36,0x34,0x34,0x63,0x35,0x33,0x62,0x55,0x2c,0x30,0x78,0x66, - 0x62,0x35,0x62,0x33,0x34,0x37,0x65,0x55,0x2c,0x0a,0x30,0x78,0x34,0x33,0x38,0x62,0x37,0x36,0x32,0x39,0x55,0x2c,0x30,0x78,0x32,0x33,0x63,0x62,0x64,0x63,0x63,0x36, - 0x55,0x2c,0x30,0x78,0x65,0x64,0x62,0x36,0x36,0x38,0x66,0x63,0x55,0x2c,0x30,0x78,0x65,0x34,0x62,0x38,0x36,0x33,0x66,0x31,0x55,0x2c,0x0a,0x30,0x78,0x33,0x31,0x64, - 0x37,0x63,0x61,0x64,0x63,0x55,0x2c,0x30,0x78,0x36,0x33,0x34,0x32,0x31,0x30,0x38,0x35,0x55,0x2c,0x30,0x78,0x39,0x37,0x31,0x33,0x34,0x30,0x32,0x32,0x55,0x2c,0x30, - 0x78,0x63,0x36,0x38,0x34,0x32,0x30,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x38,0x35,0x37,0x64,0x32,0x34,0x55,0x2c,0x30,0x78,0x62,0x62,0x64,0x32,0x66,0x38, - 0x33,0x64,0x55,0x2c,0x30,0x78,0x66,0x39,0x61,0x65,0x31,0x31,0x33,0x32,0x55,0x2c,0x30,0x78,0x32,0x39,0x63,0x37,0x36,0x64,0x61,0x31,0x55,0x2c,0x0a,0x30,0x78,0x39, - 0x65,0x31,0x64,0x34,0x62,0x32,0x66,0x55,0x2c,0x30,0x78,0x62,0x32,0x64,0x63,0x66,0x33,0x33,0x30,0x55,0x2c,0x30,0x78,0x38,0x36,0x30,0x64,0x65,0x63,0x35,0x32,0x55, - 0x2c,0x30,0x78,0x63,0x31,0x37,0x37,0x64,0x30,0x65,0x33,0x55,0x2c,0x0a,0x30,0x78,0x62,0x33,0x32,0x62,0x36,0x63,0x31,0x36,0x55,0x2c,0x30,0x78,0x37,0x30,0x61,0x39, - 0x39,0x39,0x62,0x39,0x55,0x2c,0x30,0x78,0x39,0x34,0x31,0x31,0x66,0x61,0x34,0x38,0x55,0x2c,0x30,0x78,0x65,0x39,0x34,0x37,0x32,0x32,0x36,0x34,0x55,0x2c,0x0a,0x30, - 0x78,0x66,0x63,0x61,0x38,0x63,0x34,0x38,0x63,0x55,0x2c,0x30,0x78,0x66,0x30,0x61,0x30,0x31,0x61,0x33,0x66,0x55,0x2c,0x30,0x78,0x37,0x64,0x35,0x36,0x64,0x38,0x32, - 0x63,0x55,0x2c,0x30,0x78,0x33,0x33,0x32,0x32,0x65,0x66,0x39,0x30,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x38,0x37,0x63,0x37,0x34,0x65,0x55,0x2c,0x30,0x78,0x33,0x38, - 0x64,0x39,0x63,0x31,0x64,0x31,0x55,0x2c,0x30,0x78,0x63,0x61,0x38,0x63,0x66,0x65,0x61,0x32,0x55,0x2c,0x30,0x78,0x64,0x34,0x39,0x38,0x33,0x36,0x30,0x62,0x55,0x2c, - 0x0a,0x30,0x78,0x66,0x35,0x61,0x36,0x63,0x66,0x38,0x31,0x55,0x2c,0x30,0x78,0x37,0x61,0x61,0x35,0x32,0x38,0x64,0x65,0x55,0x2c,0x30,0x78,0x62,0x37,0x64,0x61,0x32, - 0x36,0x38,0x65,0x55,0x2c,0x30,0x78,0x61,0x64,0x33,0x66,0x61,0x34,0x62,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x61,0x32,0x63,0x65,0x34,0x39,0x64,0x55,0x2c,0x30,0x78, - 0x37,0x38,0x35,0x30,0x30,0x64,0x39,0x32,0x55,0x2c,0x30,0x78,0x35,0x66,0x36,0x61,0x39,0x62,0x63,0x63,0x55,0x2c,0x30,0x78,0x37,0x65,0x35,0x34,0x36,0x32,0x34,0x36, - 0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x66,0x36,0x63,0x32,0x31,0x33,0x55,0x2c,0x30,0x78,0x64,0x38,0x39,0x30,0x65,0x38,0x62,0x38,0x55,0x2c,0x30,0x78,0x33,0x39,0x32, - 0x65,0x35,0x65,0x66,0x37,0x55,0x2c,0x30,0x78,0x63,0x33,0x38,0x32,0x66,0x35,0x61,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x64,0x39,0x66,0x62,0x65,0x38,0x30,0x55,0x2c, - 0x30,0x78,0x64,0x30,0x36,0x39,0x37,0x63,0x39,0x33,0x55,0x2c,0x30,0x78,0x64,0x35,0x36,0x66,0x61,0x39,0x32,0x64,0x55,0x2c,0x30,0x78,0x32,0x35,0x63,0x66,0x62,0x33, - 0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x61,0x63,0x63,0x38,0x33,0x62,0x39,0x39,0x55,0x2c,0x30,0x78,0x31,0x38,0x31,0x30,0x61,0x37,0x37,0x64,0x55,0x2c,0x30,0x78,0x39, - 0x63,0x65,0x38,0x36,0x65,0x36,0x33,0x55,0x2c,0x30,0x78,0x33,0x62,0x64,0x62,0x37,0x62,0x62,0x62,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x63,0x64,0x30,0x39,0x37,0x38, - 0x55,0x2c,0x30,0x78,0x35,0x39,0x36,0x65,0x66,0x34,0x31,0x38,0x55,0x2c,0x30,0x78,0x39,0x61,0x65,0x63,0x30,0x31,0x62,0x37,0x55,0x2c,0x30,0x78,0x34,0x66,0x38,0x33, - 0x61,0x38,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x35,0x65,0x36,0x36,0x35,0x36,0x65,0x55,0x2c,0x30,0x78,0x66,0x66,0x61,0x61,0x37,0x65,0x65,0x36,0x55,0x2c,0x30, - 0x78,0x62,0x63,0x32,0x31,0x30,0x38,0x63,0x66,0x55,0x2c,0x30,0x78,0x31,0x35,0x65,0x66,0x65,0x36,0x65,0x38,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x62,0x61,0x64,0x39, - 0x39,0x62,0x55,0x2c,0x30,0x78,0x36,0x66,0x34,0x61,0x63,0x65,0x33,0x36,0x55,0x2c,0x30,0x78,0x39,0x66,0x65,0x61,0x64,0x34,0x30,0x39,0x55,0x2c,0x30,0x78,0x62,0x30, - 0x32,0x39,0x64,0x36,0x37,0x63,0x55,0x2c,0x0a,0x30,0x78,0x61,0x34,0x33,0x31,0x61,0x66,0x62,0x32,0x55,0x2c,0x30,0x78,0x33,0x66,0x32,0x61,0x33,0x31,0x32,0x33,0x55, - 0x2c,0x30,0x78,0x61,0x35,0x63,0x36,0x33,0x30,0x39,0x34,0x55,0x2c,0x30,0x78,0x61,0x32,0x33,0x35,0x63,0x30,0x36,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x65,0x37,0x34, - 0x33,0x37,0x62,0x63,0x55,0x2c,0x30,0x78,0x38,0x32,0x66,0x63,0x61,0x36,0x63,0x61,0x55,0x2c,0x30,0x78,0x39,0x30,0x65,0x30,0x62,0x30,0x64,0x30,0x55,0x2c,0x30,0x78, - 0x61,0x37,0x33,0x33,0x31,0x35,0x64,0x38,0x55,0x2c,0x0a,0x30,0x78,0x30,0x34,0x66,0x31,0x34,0x61,0x39,0x38,0x55,0x2c,0x30,0x78,0x65,0x63,0x34,0x31,0x66,0x37,0x64, - 0x61,0x55,0x2c,0x30,0x78,0x63,0x64,0x37,0x66,0x30,0x65,0x35,0x30,0x55,0x2c,0x30,0x78,0x39,0x31,0x31,0x37,0x32,0x66,0x66,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x64, - 0x37,0x36,0x38,0x64,0x64,0x36,0x55,0x2c,0x30,0x78,0x65,0x66,0x34,0x33,0x34,0x64,0x62,0x30,0x55,0x2c,0x30,0x78,0x61,0x61,0x63,0x63,0x35,0x34,0x34,0x64,0x55,0x2c, - 0x30,0x78,0x39,0x36,0x65,0x34,0x64,0x66,0x30,0x34,0x55,0x2c,0x0a,0x30,0x78,0x64,0x31,0x39,0x65,0x65,0x33,0x62,0x35,0x55,0x2c,0x30,0x78,0x36,0x61,0x34,0x63,0x31, - 0x62,0x38,0x38,0x55,0x2c,0x30,0x78,0x32,0x63,0x63,0x31,0x62,0x38,0x31,0x66,0x55,0x2c,0x30,0x78,0x36,0x35,0x34,0x36,0x37,0x66,0x35,0x31,0x55,0x2c,0x0a,0x30,0x78, - 0x35,0x65,0x39,0x64,0x30,0x34,0x65,0x61,0x55,0x2c,0x30,0x78,0x38,0x63,0x30,0x31,0x35,0x64,0x33,0x35,0x55,0x2c,0x30,0x78,0x38,0x37,0x66,0x61,0x37,0x33,0x37,0x34, - 0x55,0x2c,0x30,0x78,0x30,0x62,0x66,0x62,0x32,0x65,0x34,0x31,0x55,0x2c,0x0a,0x30,0x78,0x36,0x37,0x62,0x33,0x35,0x61,0x31,0x64,0x55,0x2c,0x30,0x78,0x64,0x62,0x39, - 0x32,0x35,0x32,0x64,0x32,0x55,0x2c,0x30,0x78,0x31,0x30,0x65,0x39,0x33,0x33,0x35,0x36,0x55,0x2c,0x30,0x78,0x64,0x36,0x36,0x64,0x31,0x33,0x34,0x37,0x55,0x2c,0x0a, - 0x30,0x78,0x64,0x37,0x39,0x61,0x38,0x63,0x36,0x31,0x55,0x2c,0x30,0x78,0x61,0x31,0x33,0x37,0x37,0x61,0x30,0x63,0x55,0x2c,0x30,0x78,0x66,0x38,0x35,0x39,0x38,0x65, - 0x31,0x34,0x55,0x2c,0x30,0x78,0x31,0x33,0x65,0x62,0x38,0x39,0x33,0x63,0x55,0x2c,0x0a,0x30,0x78,0x61,0x39,0x63,0x65,0x65,0x65,0x32,0x37,0x55,0x2c,0x30,0x78,0x36, - 0x31,0x62,0x37,0x33,0x35,0x63,0x39,0x55,0x2c,0x30,0x78,0x31,0x63,0x65,0x31,0x65,0x64,0x65,0x35,0x55,0x2c,0x30,0x78,0x34,0x37,0x37,0x61,0x33,0x63,0x62,0x31,0x55, - 0x2c,0x0a,0x30,0x78,0x64,0x32,0x39,0x63,0x35,0x39,0x64,0x66,0x55,0x2c,0x30,0x78,0x66,0x32,0x35,0x35,0x33,0x66,0x37,0x33,0x55,0x2c,0x30,0x78,0x31,0x34,0x31,0x38, - 0x37,0x39,0x63,0x65,0x55,0x2c,0x30,0x78,0x63,0x37,0x37,0x33,0x62,0x66,0x33,0x37,0x55,0x2c,0x0a,0x30,0x78,0x66,0x37,0x35,0x33,0x65,0x61,0x63,0x64,0x55,0x2c,0x30, - 0x78,0x66,0x64,0x35,0x66,0x35,0x62,0x61,0x61,0x55,0x2c,0x30,0x78,0x33,0x64,0x64,0x66,0x31,0x34,0x36,0x66,0x55,0x2c,0x30,0x78,0x34,0x34,0x37,0x38,0x38,0x36,0x64, - 0x62,0x55,0x2c,0x0a,0x30,0x78,0x61,0x66,0x63,0x61,0x38,0x31,0x66,0x33,0x55,0x2c,0x30,0x78,0x36,0x38,0x62,0x39,0x33,0x65,0x63,0x34,0x55,0x2c,0x30,0x78,0x32,0x34, - 0x33,0x38,0x32,0x63,0x33,0x34,0x55,0x2c,0x30,0x78,0x61,0x33,0x63,0x32,0x35,0x66,0x34,0x30,0x55,0x2c,0x0a,0x30,0x78,0x31,0x64,0x31,0x36,0x37,0x32,0x63,0x33,0x55, - 0x2c,0x30,0x78,0x65,0x32,0x62,0x63,0x30,0x63,0x32,0x35,0x55,0x2c,0x30,0x78,0x33,0x63,0x32,0x38,0x38,0x62,0x34,0x39,0x55,0x2c,0x30,0x78,0x30,0x64,0x66,0x66,0x34, - 0x31,0x39,0x35,0x55,0x2c,0x0a,0x30,0x78,0x61,0x38,0x33,0x39,0x37,0x31,0x30,0x31,0x55,0x2c,0x30,0x78,0x30,0x63,0x30,0x38,0x64,0x65,0x62,0x33,0x55,0x2c,0x30,0x78, - 0x62,0x34,0x64,0x38,0x39,0x63,0x65,0x34,0x55,0x2c,0x30,0x78,0x35,0x36,0x36,0x34,0x39,0x30,0x63,0x31,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x37,0x62,0x36,0x31,0x38, - 0x34,0x55,0x2c,0x30,0x78,0x33,0x32,0x64,0x35,0x37,0x30,0x62,0x36,0x55,0x2c,0x30,0x78,0x36,0x63,0x34,0x38,0x37,0x34,0x35,0x63,0x55,0x2c,0x30,0x78,0x62,0x38,0x64, - 0x30,0x34,0x32,0x35,0x37,0x55,0x2c,0x0a,0x30,0x78,0x35,0x31,0x35,0x30,0x61,0x37,0x66,0x34,0x55,0x2c,0x30,0x78,0x37,0x65,0x35,0x33,0x36,0x35,0x34,0x31,0x55,0x2c, - 0x30,0x78,0x31,0x61,0x63,0x33,0x61,0x34,0x31,0x37,0x55,0x2c,0x30,0x78,0x33,0x61,0x39,0x36,0x35,0x65,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x62,0x63,0x62,0x36, - 0x62,0x61,0x62,0x55,0x2c,0x30,0x78,0x31,0x66,0x66,0x31,0x34,0x35,0x39,0x64,0x55,0x2c,0x30,0x78,0x61,0x63,0x61,0x62,0x35,0x38,0x66,0x61,0x55,0x2c,0x30,0x78,0x34, - 0x62,0x39,0x33,0x30,0x33,0x65,0x33,0x55,0x2c,0x0a,0x30,0x78,0x32,0x30,0x35,0x35,0x66,0x61,0x33,0x30,0x55,0x2c,0x30,0x78,0x61,0x64,0x66,0x36,0x36,0x64,0x37,0x36, - 0x55,0x2c,0x30,0x78,0x38,0x38,0x39,0x31,0x37,0x36,0x63,0x63,0x55,0x2c,0x30,0x78,0x66,0x35,0x32,0x35,0x34,0x63,0x30,0x32,0x55,0x2c,0x0a,0x30,0x78,0x34,0x66,0x66, - 0x63,0x64,0x37,0x65,0x35,0x55,0x2c,0x30,0x78,0x63,0x35,0x64,0x37,0x63,0x62,0x32,0x61,0x55,0x2c,0x30,0x78,0x32,0x36,0x38,0x30,0x34,0x34,0x33,0x35,0x55,0x2c,0x30, - 0x78,0x62,0x35,0x38,0x66,0x61,0x33,0x36,0x32,0x55,0x2c,0x0a,0x30,0x78,0x64,0x65,0x34,0x39,0x35,0x61,0x62,0x31,0x55,0x2c,0x30,0x78,0x32,0x35,0x36,0x37,0x31,0x62, - 0x62,0x61,0x55,0x2c,0x30,0x78,0x34,0x35,0x39,0x38,0x30,0x65,0x65,0x61,0x55,0x2c,0x30,0x78,0x35,0x64,0x65,0x31,0x63,0x30,0x66,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63, - 0x33,0x30,0x32,0x37,0x35,0x32,0x66,0x55,0x2c,0x30,0x78,0x38,0x31,0x31,0x32,0x66,0x30,0x34,0x63,0x55,0x2c,0x30,0x78,0x38,0x64,0x61,0x33,0x39,0x37,0x34,0x36,0x55, - 0x2c,0x30,0x78,0x36,0x62,0x63,0x36,0x66,0x39,0x64,0x33,0x55,0x2c,0x0a,0x30,0x78,0x30,0x33,0x65,0x37,0x35,0x66,0x38,0x66,0x55,0x2c,0x30,0x78,0x31,0x35,0x39,0x35, - 0x39,0x63,0x39,0x32,0x55,0x2c,0x30,0x78,0x62,0x66,0x65,0x62,0x37,0x61,0x36,0x64,0x55,0x2c,0x30,0x78,0x39,0x35,0x64,0x61,0x35,0x39,0x35,0x32,0x55,0x2c,0x0a,0x30, - 0x78,0x64,0x34,0x32,0x64,0x38,0x33,0x62,0x65,0x55,0x2c,0x30,0x78,0x35,0x38,0x64,0x33,0x32,0x31,0x37,0x34,0x55,0x2c,0x30,0x78,0x34,0x39,0x32,0x39,0x36,0x39,0x65, - 0x30,0x55,0x2c,0x30,0x78,0x38,0x65,0x34,0x34,0x63,0x38,0x63,0x39,0x55,0x2c,0x0a,0x30,0x78,0x37,0x35,0x36,0x61,0x38,0x39,0x63,0x32,0x55,0x2c,0x30,0x78,0x66,0x34, - 0x37,0x38,0x37,0x39,0x38,0x65,0x55,0x2c,0x30,0x78,0x39,0x39,0x36,0x62,0x33,0x65,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x37,0x64,0x64,0x37,0x31,0x62,0x39,0x55,0x2c, - 0x0a,0x30,0x78,0x62,0x65,0x62,0x36,0x34,0x66,0x65,0x31,0x55,0x2c,0x30,0x78,0x66,0x30,0x31,0x37,0x61,0x64,0x38,0x38,0x55,0x2c,0x30,0x78,0x63,0x39,0x36,0x36,0x61, - 0x63,0x32,0x30,0x55,0x2c,0x30,0x78,0x37,0x64,0x62,0x34,0x33,0x61,0x63,0x65,0x55,0x2c,0x0a,0x30,0x78,0x36,0x33,0x31,0x38,0x34,0x61,0x64,0x66,0x55,0x2c,0x30,0x78, - 0x65,0x35,0x38,0x32,0x33,0x31,0x31,0x61,0x55,0x2c,0x30,0x78,0x39,0x37,0x36,0x30,0x33,0x33,0x35,0x31,0x55,0x2c,0x30,0x78,0x36,0x32,0x34,0x35,0x37,0x66,0x35,0x33, - 0x55,0x2c,0x0a,0x30,0x78,0x62,0x31,0x65,0x30,0x37,0x37,0x36,0x34,0x55,0x2c,0x30,0x78,0x62,0x62,0x38,0x34,0x61,0x65,0x36,0x62,0x55,0x2c,0x30,0x78,0x66,0x65,0x31, - 0x63,0x61,0x30,0x38,0x31,0x55,0x2c,0x30,0x78,0x66,0x39,0x39,0x34,0x32,0x62,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x30,0x35,0x38,0x36,0x38,0x34,0x38,0x55,0x2c, - 0x30,0x78,0x38,0x66,0x31,0x39,0x66,0x64,0x34,0x35,0x55,0x2c,0x30,0x78,0x39,0x34,0x38,0x37,0x36,0x63,0x64,0x65,0x55,0x2c,0x30,0x78,0x35,0x32,0x62,0x37,0x66,0x38, - 0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x61,0x62,0x32,0x33,0x64,0x33,0x37,0x33,0x55,0x2c,0x30,0x78,0x37,0x32,0x65,0x32,0x30,0x32,0x34,0x62,0x55,0x2c,0x30,0x78,0x65, - 0x33,0x35,0x37,0x38,0x66,0x31,0x66,0x55,0x2c,0x30,0x78,0x36,0x36,0x32,0x61,0x61,0x62,0x35,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x32,0x30,0x37,0x32,0x38,0x65,0x62, - 0x55,0x2c,0x30,0x78,0x32,0x66,0x30,0x33,0x63,0x32,0x62,0x35,0x55,0x2c,0x30,0x78,0x38,0x36,0x39,0x61,0x37,0x62,0x63,0x35,0x55,0x2c,0x30,0x78,0x64,0x33,0x61,0x35, - 0x30,0x38,0x33,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x66,0x32,0x38,0x37,0x32,0x38,0x55,0x2c,0x30,0x78,0x32,0x33,0x62,0x32,0x61,0x35,0x62,0x66,0x55,0x2c,0x30, - 0x78,0x30,0x32,0x62,0x61,0x36,0x61,0x30,0x33,0x55,0x2c,0x30,0x78,0x65,0x64,0x35,0x63,0x38,0x32,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x61,0x32,0x62,0x31,0x63, - 0x63,0x66,0x55,0x2c,0x30,0x78,0x61,0x37,0x39,0x32,0x62,0x34,0x37,0x39,0x55,0x2c,0x30,0x78,0x66,0x33,0x66,0x30,0x66,0x32,0x30,0x37,0x55,0x2c,0x30,0x78,0x34,0x65, - 0x61,0x31,0x65,0x32,0x36,0x39,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35,0x63,0x64,0x66,0x34,0x64,0x61,0x55,0x2c,0x30,0x78,0x30,0x36,0x64,0x35,0x62,0x65,0x30,0x35,0x55, - 0x2c,0x30,0x78,0x64,0x31,0x31,0x66,0x36,0x32,0x33,0x34,0x55,0x2c,0x30,0x78,0x63,0x34,0x38,0x61,0x66,0x65,0x61,0x36,0x55,0x2c,0x0a,0x30,0x78,0x33,0x34,0x39,0x64, - 0x35,0x33,0x32,0x65,0x55,0x2c,0x30,0x78,0x61,0x32,0x61,0x30,0x35,0x35,0x66,0x33,0x55,0x2c,0x30,0x78,0x30,0x35,0x33,0x32,0x65,0x31,0x38,0x61,0x55,0x2c,0x30,0x78, - 0x61,0x34,0x37,0x35,0x65,0x62,0x66,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x62,0x33,0x39,0x65,0x63,0x38,0x33,0x55,0x2c,0x30,0x78,0x34,0x30,0x61,0x61,0x65,0x66,0x36, - 0x30,0x55,0x2c,0x30,0x78,0x35,0x65,0x30,0x36,0x39,0x66,0x37,0x31,0x55,0x2c,0x30,0x78,0x62,0x64,0x35,0x31,0x31,0x30,0x36,0x65,0x55,0x2c,0x0a,0x30,0x78,0x33,0x65, - 0x66,0x39,0x38,0x61,0x32,0x31,0x55,0x2c,0x30,0x78,0x39,0x36,0x33,0x64,0x30,0x36,0x64,0x64,0x55,0x2c,0x30,0x78,0x64,0x64,0x61,0x65,0x30,0x35,0x33,0x65,0x55,0x2c, - 0x30,0x78,0x34,0x64,0x34,0x36,0x62,0x64,0x65,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x62,0x35,0x38,0x64,0x35,0x34,0x55,0x2c,0x30,0x78,0x37,0x31,0x30,0x35,0x35, - 0x64,0x63,0x34,0x55,0x2c,0x30,0x78,0x30,0x34,0x36,0x66,0x64,0x34,0x30,0x36,0x55,0x2c,0x30,0x78,0x36,0x30,0x66,0x66,0x31,0x35,0x35,0x30,0x55,0x2c,0x0a,0x30,0x78, - 0x31,0x39,0x32,0x34,0x66,0x62,0x39,0x38,0x55,0x2c,0x30,0x78,0x64,0x36,0x39,0x37,0x65,0x39,0x62,0x64,0x55,0x2c,0x30,0x78,0x38,0x39,0x63,0x63,0x34,0x33,0x34,0x30, - 0x55,0x2c,0x30,0x78,0x36,0x37,0x37,0x37,0x39,0x65,0x64,0x39,0x55,0x2c,0x0a,0x30,0x78,0x62,0x30,0x62,0x64,0x34,0x32,0x65,0x38,0x55,0x2c,0x30,0x78,0x30,0x37,0x38, - 0x38,0x38,0x62,0x38,0x39,0x55,0x2c,0x30,0x78,0x65,0x37,0x33,0x38,0x35,0x62,0x31,0x39,0x55,0x2c,0x30,0x78,0x37,0x39,0x64,0x62,0x65,0x65,0x63,0x38,0x55,0x2c,0x0a, - 0x30,0x78,0x61,0x31,0x34,0x37,0x30,0x61,0x37,0x63,0x55,0x2c,0x30,0x78,0x37,0x63,0x65,0x39,0x30,0x66,0x34,0x32,0x55,0x2c,0x30,0x78,0x66,0x38,0x63,0x39,0x31,0x65, - 0x38,0x34,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x38,0x33,0x38,0x36,0x38,0x30,0x55,0x2c,0x30,0x78,0x33, - 0x32,0x34,0x38,0x65,0x64,0x32,0x62,0x55,0x2c,0x30,0x78,0x31,0x65,0x61,0x63,0x37,0x30,0x31,0x31,0x55,0x2c,0x30,0x78,0x36,0x63,0x34,0x65,0x37,0x32,0x35,0x61,0x55, - 0x2c,0x0a,0x30,0x78,0x66,0x64,0x66,0x62,0x66,0x66,0x30,0x65,0x55,0x2c,0x30,0x78,0x30,0x66,0x35,0x36,0x33,0x38,0x38,0x35,0x55,0x2c,0x30,0x78,0x33,0x64,0x31,0x65, - 0x64,0x35,0x61,0x65,0x55,0x2c,0x30,0x78,0x33,0x36,0x32,0x37,0x33,0x39,0x32,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x36,0x34,0x64,0x39,0x30,0x66,0x55,0x2c,0x30, - 0x78,0x36,0x38,0x32,0x31,0x61,0x36,0x35,0x63,0x55,0x2c,0x30,0x78,0x39,0x62,0x64,0x31,0x35,0x34,0x35,0x62,0x55,0x2c,0x30,0x78,0x32,0x34,0x33,0x61,0x32,0x65,0x33, - 0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x63,0x62,0x31,0x36,0x37,0x30,0x61,0x55,0x2c,0x30,0x78,0x39,0x33,0x30,0x66,0x65,0x37,0x35,0x37,0x55,0x2c,0x30,0x78,0x62,0x34, - 0x64,0x32,0x39,0x36,0x65,0x65,0x55,0x2c,0x30,0x78,0x31,0x62,0x39,0x65,0x39,0x31,0x39,0x62,0x55,0x2c,0x0a,0x30,0x78,0x38,0x30,0x34,0x66,0x63,0x35,0x63,0x30,0x55, - 0x2c,0x30,0x78,0x36,0x31,0x61,0x32,0x32,0x30,0x64,0x63,0x55,0x2c,0x30,0x78,0x35,0x61,0x36,0x39,0x34,0x62,0x37,0x37,0x55,0x2c,0x30,0x78,0x31,0x63,0x31,0x36,0x31, - 0x61,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x65,0x32,0x30,0x61,0x62,0x61,0x39,0x33,0x55,0x2c,0x30,0x78,0x63,0x30,0x65,0x35,0x32,0x61,0x61,0x30,0x55,0x2c,0x30,0x78, - 0x33,0x63,0x34,0x33,0x65,0x30,0x32,0x32,0x55,0x2c,0x30,0x78,0x31,0x32,0x31,0x64,0x31,0x37,0x31,0x62,0x55,0x2c,0x0a,0x30,0x78,0x30,0x65,0x30,0x62,0x30,0x64,0x30, - 0x39,0x55,0x2c,0x30,0x78,0x66,0x32,0x61,0x64,0x63,0x37,0x38,0x62,0x55,0x2c,0x30,0x78,0x32,0x64,0x62,0x39,0x61,0x38,0x62,0x36,0x55,0x2c,0x30,0x78,0x31,0x34,0x63, - 0x38,0x61,0x39,0x31,0x65,0x55,0x2c,0x0a,0x30,0x78,0x35,0x37,0x38,0x35,0x31,0x39,0x66,0x31,0x55,0x2c,0x30,0x78,0x61,0x66,0x34,0x63,0x30,0x37,0x37,0x35,0x55,0x2c, - 0x30,0x78,0x65,0x65,0x62,0x62,0x64,0x64,0x39,0x39,0x55,0x2c,0x30,0x78,0x61,0x33,0x66,0x64,0x36,0x30,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x66,0x37,0x39,0x66,0x32, - 0x36,0x30,0x31,0x55,0x2c,0x30,0x78,0x35,0x63,0x62,0x63,0x66,0x35,0x37,0x32,0x55,0x2c,0x30,0x78,0x34,0x34,0x63,0x35,0x33,0x62,0x36,0x36,0x55,0x2c,0x30,0x78,0x35, - 0x62,0x33,0x34,0x37,0x65,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x38,0x62,0x37,0x36,0x32,0x39,0x34,0x33,0x55,0x2c,0x30,0x78,0x63,0x62,0x64,0x63,0x63,0x36,0x32,0x33, - 0x55,0x2c,0x30,0x78,0x62,0x36,0x36,0x38,0x66,0x63,0x65,0x64,0x55,0x2c,0x30,0x78,0x62,0x38,0x36,0x33,0x66,0x31,0x65,0x34,0x55,0x2c,0x0a,0x30,0x78,0x64,0x37,0x63, - 0x61,0x64,0x63,0x33,0x31,0x55,0x2c,0x30,0x78,0x34,0x32,0x31,0x30,0x38,0x35,0x36,0x33,0x55,0x2c,0x30,0x78,0x31,0x33,0x34,0x30,0x32,0x32,0x39,0x37,0x55,0x2c,0x30, - 0x78,0x38,0x34,0x32,0x30,0x31,0x31,0x63,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x35,0x37,0x64,0x32,0x34,0x34,0x61,0x55,0x2c,0x30,0x78,0x64,0x32,0x66,0x38,0x33,0x64, - 0x62,0x62,0x55,0x2c,0x30,0x78,0x61,0x65,0x31,0x31,0x33,0x32,0x66,0x39,0x55,0x2c,0x30,0x78,0x63,0x37,0x36,0x64,0x61,0x31,0x32,0x39,0x55,0x2c,0x0a,0x30,0x78,0x31, - 0x64,0x34,0x62,0x32,0x66,0x39,0x65,0x55,0x2c,0x30,0x78,0x64,0x63,0x66,0x33,0x33,0x30,0x62,0x32,0x55,0x2c,0x30,0x78,0x30,0x64,0x65,0x63,0x35,0x32,0x38,0x36,0x55, - 0x2c,0x30,0x78,0x37,0x37,0x64,0x30,0x65,0x33,0x63,0x31,0x55,0x2c,0x0a,0x30,0x78,0x32,0x62,0x36,0x63,0x31,0x36,0x62,0x33,0x55,0x2c,0x30,0x78,0x61,0x39,0x39,0x39, - 0x62,0x39,0x37,0x30,0x55,0x2c,0x30,0x78,0x31,0x31,0x66,0x61,0x34,0x38,0x39,0x34,0x55,0x2c,0x30,0x78,0x34,0x37,0x32,0x32,0x36,0x34,0x65,0x39,0x55,0x2c,0x0a,0x30, - 0x78,0x61,0x38,0x63,0x34,0x38,0x63,0x66,0x63,0x55,0x2c,0x30,0x78,0x61,0x30,0x31,0x61,0x33,0x66,0x66,0x30,0x55,0x2c,0x30,0x78,0x35,0x36,0x64,0x38,0x32,0x63,0x37, - 0x64,0x55,0x2c,0x30,0x78,0x32,0x32,0x65,0x66,0x39,0x30,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x38,0x37,0x63,0x37,0x34,0x65,0x34,0x39,0x55,0x2c,0x30,0x78,0x64,0x39, - 0x63,0x31,0x64,0x31,0x33,0x38,0x55,0x2c,0x30,0x78,0x38,0x63,0x66,0x65,0x61,0x32,0x63,0x61,0x55,0x2c,0x30,0x78,0x39,0x38,0x33,0x36,0x30,0x62,0x64,0x34,0x55,0x2c, - 0x0a,0x30,0x78,0x61,0x36,0x63,0x66,0x38,0x31,0x66,0x35,0x55,0x2c,0x30,0x78,0x61,0x35,0x32,0x38,0x64,0x65,0x37,0x61,0x55,0x2c,0x30,0x78,0x64,0x61,0x32,0x36,0x38, - 0x65,0x62,0x37,0x55,0x2c,0x30,0x78,0x33,0x66,0x61,0x34,0x62,0x66,0x61,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x63,0x65,0x34,0x39,0x64,0x33,0x61,0x55,0x2c,0x30,0x78, - 0x35,0x30,0x30,0x64,0x39,0x32,0x37,0x38,0x55,0x2c,0x30,0x78,0x36,0x61,0x39,0x62,0x63,0x63,0x35,0x66,0x55,0x2c,0x30,0x78,0x35,0x34,0x36,0x32,0x34,0x36,0x37,0x65, - 0x55,0x2c,0x0a,0x30,0x78,0x66,0x36,0x63,0x32,0x31,0x33,0x38,0x64,0x55,0x2c,0x30,0x78,0x39,0x30,0x65,0x38,0x62,0x38,0x64,0x38,0x55,0x2c,0x30,0x78,0x32,0x65,0x35, - 0x65,0x66,0x37,0x33,0x39,0x55,0x2c,0x30,0x78,0x38,0x32,0x66,0x35,0x61,0x66,0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x39,0x66,0x62,0x65,0x38,0x30,0x35,0x64,0x55,0x2c, - 0x30,0x78,0x36,0x39,0x37,0x63,0x39,0x33,0x64,0x30,0x55,0x2c,0x30,0x78,0x36,0x66,0x61,0x39,0x32,0x64,0x64,0x35,0x55,0x2c,0x30,0x78,0x63,0x66,0x62,0x33,0x31,0x32, - 0x32,0x35,0x55,0x2c,0x0a,0x30,0x78,0x63,0x38,0x33,0x62,0x39,0x39,0x61,0x63,0x55,0x2c,0x30,0x78,0x31,0x30,0x61,0x37,0x37,0x64,0x31,0x38,0x55,0x2c,0x30,0x78,0x65, - 0x38,0x36,0x65,0x36,0x33,0x39,0x63,0x55,0x2c,0x30,0x78,0x64,0x62,0x37,0x62,0x62,0x62,0x33,0x62,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x30,0x39,0x37,0x38,0x32,0x36, - 0x55,0x2c,0x30,0x78,0x36,0x65,0x66,0x34,0x31,0x38,0x35,0x39,0x55,0x2c,0x30,0x78,0x65,0x63,0x30,0x31,0x62,0x37,0x39,0x61,0x55,0x2c,0x30,0x78,0x38,0x33,0x61,0x38, - 0x39,0x61,0x34,0x66,0x55,0x2c,0x0a,0x30,0x78,0x65,0x36,0x36,0x35,0x36,0x65,0x39,0x35,0x55,0x2c,0x30,0x78,0x61,0x61,0x37,0x65,0x65,0x36,0x66,0x66,0x55,0x2c,0x30, - 0x78,0x32,0x31,0x30,0x38,0x63,0x66,0x62,0x63,0x55,0x2c,0x30,0x78,0x65,0x66,0x65,0x36,0x65,0x38,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x64,0x39,0x39,0x62, - 0x65,0x37,0x55,0x2c,0x30,0x78,0x34,0x61,0x63,0x65,0x33,0x36,0x36,0x66,0x55,0x2c,0x30,0x78,0x65,0x61,0x64,0x34,0x30,0x39,0x39,0x66,0x55,0x2c,0x30,0x78,0x32,0x39, - 0x64,0x36,0x37,0x63,0x62,0x30,0x55,0x2c,0x0a,0x30,0x78,0x33,0x31,0x61,0x66,0x62,0x32,0x61,0x34,0x55,0x2c,0x30,0x78,0x32,0x61,0x33,0x31,0x32,0x33,0x33,0x66,0x55, - 0x2c,0x30,0x78,0x63,0x36,0x33,0x30,0x39,0x34,0x61,0x35,0x55,0x2c,0x30,0x78,0x33,0x35,0x63,0x30,0x36,0x36,0x61,0x32,0x55,0x2c,0x0a,0x30,0x78,0x37,0x34,0x33,0x37, - 0x62,0x63,0x34,0x65,0x55,0x2c,0x30,0x78,0x66,0x63,0x61,0x36,0x63,0x61,0x38,0x32,0x55,0x2c,0x30,0x78,0x65,0x30,0x62,0x30,0x64,0x30,0x39,0x30,0x55,0x2c,0x30,0x78, - 0x33,0x33,0x31,0x35,0x64,0x38,0x61,0x37,0x55,0x2c,0x0a,0x30,0x78,0x66,0x31,0x34,0x61,0x39,0x38,0x30,0x34,0x55,0x2c,0x30,0x78,0x34,0x31,0x66,0x37,0x64,0x61,0x65, - 0x63,0x55,0x2c,0x30,0x78,0x37,0x66,0x30,0x65,0x35,0x30,0x63,0x64,0x55,0x2c,0x30,0x78,0x31,0x37,0x32,0x66,0x66,0x36,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x37,0x36, - 0x38,0x64,0x64,0x36,0x34,0x64,0x55,0x2c,0x30,0x78,0x34,0x33,0x34,0x64,0x62,0x30,0x65,0x66,0x55,0x2c,0x30,0x78,0x63,0x63,0x35,0x34,0x34,0x64,0x61,0x61,0x55,0x2c, - 0x30,0x78,0x65,0x34,0x64,0x66,0x30,0x34,0x39,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x65,0x65,0x33,0x62,0x35,0x64,0x31,0x55,0x2c,0x30,0x78,0x34,0x63,0x31,0x62,0x38, - 0x38,0x36,0x61,0x55,0x2c,0x30,0x78,0x63,0x31,0x62,0x38,0x31,0x66,0x32,0x63,0x55,0x2c,0x30,0x78,0x34,0x36,0x37,0x66,0x35,0x31,0x36,0x35,0x55,0x2c,0x0a,0x30,0x78, - 0x39,0x64,0x30,0x34,0x65,0x61,0x35,0x65,0x55,0x2c,0x30,0x78,0x30,0x31,0x35,0x64,0x33,0x35,0x38,0x63,0x55,0x2c,0x30,0x78,0x66,0x61,0x37,0x33,0x37,0x34,0x38,0x37, - 0x55,0x2c,0x30,0x78,0x66,0x62,0x32,0x65,0x34,0x31,0x30,0x62,0x55,0x2c,0x0a,0x30,0x78,0x62,0x33,0x35,0x61,0x31,0x64,0x36,0x37,0x55,0x2c,0x30,0x78,0x39,0x32,0x35, - 0x32,0x64,0x32,0x64,0x62,0x55,0x2c,0x30,0x78,0x65,0x39,0x33,0x33,0x35,0x36,0x31,0x30,0x55,0x2c,0x30,0x78,0x36,0x64,0x31,0x33,0x34,0x37,0x64,0x36,0x55,0x2c,0x0a, - 0x30,0x78,0x39,0x61,0x38,0x63,0x36,0x31,0x64,0x37,0x55,0x2c,0x30,0x78,0x33,0x37,0x37,0x61,0x30,0x63,0x61,0x31,0x55,0x2c,0x30,0x78,0x35,0x39,0x38,0x65,0x31,0x34, - 0x66,0x38,0x55,0x2c,0x30,0x78,0x65,0x62,0x38,0x39,0x33,0x63,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x63,0x65,0x65,0x65,0x32,0x37,0x61,0x39,0x55,0x2c,0x30,0x78,0x62, - 0x37,0x33,0x35,0x63,0x39,0x36,0x31,0x55,0x2c,0x30,0x78,0x65,0x31,0x65,0x64,0x65,0x35,0x31,0x63,0x55,0x2c,0x30,0x78,0x37,0x61,0x33,0x63,0x62,0x31,0x34,0x37,0x55, - 0x2c,0x0a,0x30,0x78,0x39,0x63,0x35,0x39,0x64,0x66,0x64,0x32,0x55,0x2c,0x30,0x78,0x35,0x35,0x33,0x66,0x37,0x33,0x66,0x32,0x55,0x2c,0x30,0x78,0x31,0x38,0x37,0x39, - 0x63,0x65,0x31,0x34,0x55,0x2c,0x30,0x78,0x37,0x33,0x62,0x66,0x33,0x37,0x63,0x37,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33,0x65,0x61,0x63,0x64,0x66,0x37,0x55,0x2c,0x30, - 0x78,0x35,0x66,0x35,0x62,0x61,0x61,0x66,0x64,0x55,0x2c,0x30,0x78,0x64,0x66,0x31,0x34,0x36,0x66,0x33,0x64,0x55,0x2c,0x30,0x78,0x37,0x38,0x38,0x36,0x64,0x62,0x34, - 0x34,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x38,0x31,0x66,0x33,0x61,0x66,0x55,0x2c,0x30,0x78,0x62,0x39,0x33,0x65,0x63,0x34,0x36,0x38,0x55,0x2c,0x30,0x78,0x33,0x38, - 0x32,0x63,0x33,0x34,0x32,0x34,0x55,0x2c,0x30,0x78,0x63,0x32,0x35,0x66,0x34,0x30,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x31,0x36,0x37,0x32,0x63,0x33,0x31,0x64,0x55, - 0x2c,0x30,0x78,0x62,0x63,0x30,0x63,0x32,0x35,0x65,0x32,0x55,0x2c,0x30,0x78,0x32,0x38,0x38,0x62,0x34,0x39,0x33,0x63,0x55,0x2c,0x30,0x78,0x66,0x66,0x34,0x31,0x39, - 0x35,0x30,0x64,0x55,0x2c,0x0a,0x30,0x78,0x33,0x39,0x37,0x31,0x30,0x31,0x61,0x38,0x55,0x2c,0x30,0x78,0x30,0x38,0x64,0x65,0x62,0x33,0x30,0x63,0x55,0x2c,0x30,0x78, - 0x64,0x38,0x39,0x63,0x65,0x34,0x62,0x34,0x55,0x2c,0x30,0x78,0x36,0x34,0x39,0x30,0x63,0x31,0x35,0x36,0x55,0x2c,0x0a,0x30,0x78,0x37,0x62,0x36,0x31,0x38,0x34,0x63, - 0x62,0x55,0x2c,0x30,0x78,0x64,0x35,0x37,0x30,0x62,0x36,0x33,0x32,0x55,0x2c,0x30,0x78,0x34,0x38,0x37,0x34,0x35,0x63,0x36,0x63,0x55,0x2c,0x30,0x78,0x64,0x30,0x34, - 0x32,0x35,0x37,0x62,0x38,0x55,0x2c,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x36,0x64,0x61, - 0x63,0x61,0x35,0x35,0x33,0x2c,0x30,0x78,0x36,0x32,0x37,0x31,0x36,0x36,0x30,0x39,0x2c,0x30,0x78,0x64,0x62,0x62,0x35,0x35,0x35,0x32,0x62,0x2c,0x30,0x78,0x62,0x34, - 0x66,0x34,0x34,0x39,0x31,0x37,0x2c,0x0a,0x30,0x78,0x36,0x64,0x37,0x63,0x61,0x66,0x30,0x37,0x2c,0x30,0x78,0x38,0x34,0x36,0x61,0x37,0x31,0x30,0x64,0x2c,0x30,0x78, - 0x31,0x37,0x32,0x35,0x64,0x33,0x37,0x38,0x2c,0x30,0x78,0x30,0x64,0x61,0x31,0x64,0x63,0x34,0x65,0x2c,0x0a,0x30,0x78,0x33,0x66,0x31,0x32,0x36,0x32,0x66,0x31,0x2c, - 0x30,0x78,0x39,0x66,0x39,0x34,0x37,0x65,0x63,0x36,0x2c,0x30,0x78,0x66,0x34,0x63,0x30,0x37,0x39,0x34,0x66,0x2c,0x30,0x78,0x33,0x65,0x32,0x30,0x65,0x33,0x34,0x35, - 0x2c,0x0a,0x30,0x78,0x36,0x61,0x65,0x66,0x38,0x31,0x33,0x35,0x2c,0x30,0x78,0x62,0x31,0x62,0x61,0x33,0x31,0x37,0x63,0x2c,0x30,0x78,0x31,0x36,0x33,0x31,0x34,0x63, - 0x38,0x38,0x2c,0x30,0x78,0x34,0x39,0x31,0x36,0x39,0x31,0x35,0x34,0x2c,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73,0x74,0x61, - 0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x31,0x36, - 0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x39,0x32,0x62,0x35,0x32,0x63,0x30,0x64,0x2c,0x30,0x78,0x39,0x66,0x61,0x38,0x35,0x36,0x64,0x65,0x2c,0x30,0x78,0x63,0x63,0x38,0x32, - 0x64,0x62,0x34,0x37,0x2c,0x30,0x78,0x64,0x37,0x39,0x38,0x33,0x61,0x61,0x64,0x2c,0x0a,0x30,0x78,0x33,0x33,0x38,0x64,0x39,0x39,0x36,0x65,0x2c,0x30,0x78,0x31,0x35, - 0x63,0x37,0x62,0x37,0x39,0x38,0x2c,0x30,0x78,0x66,0x35,0x39,0x65,0x31,0x32,0x35,0x61,0x2c,0x30,0x78,0x61,0x63,0x65,0x37,0x38,0x30,0x35,0x37,0x2c,0x0a,0x30,0x78, - 0x36,0x61,0x37,0x37,0x30,0x30,0x31,0x37,0x2c,0x30,0x78,0x61,0x65,0x36,0x32,0x63,0x37,0x64,0x30,0x2c,0x30,0x78,0x35,0x30,0x37,0x39,0x35,0x30,0x36,0x62,0x2c,0x30, - 0x78,0x65,0x38,0x61,0x30,0x37,0x63,0x65,0x34,0x2c,0x0a,0x30,0x78,0x36,0x33,0x30,0x61,0x32,0x34,0x30,0x63,0x2c,0x30,0x78,0x30,0x37,0x61,0x64,0x38,0x32,0x38,0x64, - 0x2c,0x30,0x78,0x37,0x39,0x61,0x31,0x30,0x30,0x30,0x35,0x2c,0x30,0x78,0x37,0x65,0x39,0x39,0x34,0x39,0x34,0x38,0x2c,0x0a,0x7d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x75,0x69,0x6e,0x74,0x20,0x61,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x62,0x69,0x74, - 0x29,0x20,0x7b,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x3e,0x3e,0x73,0x74,0x61,0x72,0x74,0x5f,0x62,0x69,0x74,0x29,0x26,0x30,0x78,0x46,0x46,0x3b,0x20, - 0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x31,0x52, - 0x78,0x34,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f, - 0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x20,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x2b,0x20,0x36,0x34,0x29,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6e,0x75,0x6d, - 0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x31,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f, + 0x57,0x52,0x4b,0x5a,0x20,0x30,0x78,0x36,0x31,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x41,0x53,0x54, + 0x52,0x4f,0x42,0x57,0x54,0x5f,0x44,0x45,0x52,0x4f,0x20,0x30,0x78,0x34,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x41,0x4c, + 0x47,0x4f,0x5f,0x4b,0x41,0x57,0x50,0x4f,0x57,0x5f,0x52,0x56,0x4e,0x20,0x30,0x78,0x36,0x62,0x30,0x66,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x55,0x4e,0x4b,0x4e,0x4f,0x57,0x4e,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59, + 0x5f,0x43,0x4e,0x20,0x30,0x78,0x36,0x33,0x31,0x35,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e, + 0x5f,0x4c,0x49,0x54,0x45,0x20,0x30,0x78,0x36,0x33,0x31,0x34,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f, + 0x43,0x4e,0x5f,0x48,0x45,0x41,0x56,0x59,0x20,0x30,0x78,0x36,0x33,0x31,0x36,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49, + 0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x50,0x49,0x43,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x32,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41, + 0x4d,0x49,0x4c,0x59,0x5f,0x43,0x4e,0x5f,0x46,0x45,0x4d,0x54,0x4f,0x20,0x30,0x78,0x36,0x33,0x31,0x31,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x5f,0x58,0x20,0x30,0x78,0x37,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x41,0x52,0x47,0x4f,0x4e,0x32,0x20,0x30,0x78,0x36,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x41,0x53,0x54,0x52,0x4f,0x42,0x57,0x54,0x20,0x30,0x78,0x34,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x46,0x41,0x4d,0x49,0x4c,0x59,0x5f,0x4b,0x41,0x57,0x50,0x4f,0x57,0x20,0x30,0x78,0x36,0x62,0x30,0x30,0x30,0x30,0x30,0x30, + 0x0a,0x23,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37,0x34, + 0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58, + 0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x32,0x30,0x39,0x37,0x31,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x32,0x36,0x32,0x31,0x34,0x34,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38,0x34, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, + 0x52,0x4f,0x4c,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57, + 0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41, + 0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f, + 0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d, + 0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x31, + 0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53, + 0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20, + 0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52, + 0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42, + 0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41, + 0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55, + 0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20, + 0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32, + 0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20, + 0x32,0x31,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x57,0x4f,0x57,0x29,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a, + 0x45,0x20,0x32,0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54, + 0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x31,0x30,0x34,0x38,0x35,0x37,0x36,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x31,0x33,0x31, + 0x30,0x37,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c, + 0x31,0x20,0x31,0x36,0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54, + 0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20, + 0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x32, + 0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x31,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x20,0x32,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x32,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46, + 0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43, + 0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c, + 0x5f,0x52,0x20,0x32,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f, + 0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52, + 0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20, + 0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20, + 0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35, + 0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45, + 0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52, + 0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53, + 0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45, + 0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54, + 0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20, + 0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45, + 0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x37,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c, + 0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x32,0x30,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f, + 0x52,0x58,0x5f,0x41,0x52,0x51,0x4d,0x41,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45, + 0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33, + 0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33, + 0x20,0x32,0x36,0x32,0x31,0x34,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50, + 0x41,0x44,0x5f,0x4c,0x32,0x20,0x31,0x33,0x31,0x30,0x37,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52, + 0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d, + 0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, + 0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55, + 0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f, + 0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d, + 0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20, + 0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, + 0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f, + 0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47, + 0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f, + 0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d, + 0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44, + 0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32, + 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45, + 0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44, + 0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f, + 0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34, + 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x37,0x29,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x38,0x29,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20, + 0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x4b,0x45,0x56,0x41,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37,0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45, + 0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43, + 0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x31,0x30,0x34,0x38,0x35,0x37,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x31,0x33,0x31,0x30,0x37,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, + 0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, + 0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, + 0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d, + 0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e, + 0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52, + 0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f, + 0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20, + 0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x32,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41, + 0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53, + 0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38, + 0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, + 0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20, + 0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20, + 0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43, + 0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20, + 0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31, + 0x37,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x32,0x30,0x29,0x0a,0x23,0x65,0x6c,0x69, + 0x66,0x20,0x28,0x41,0x4c,0x47,0x4f,0x20,0x3d,0x3d,0x20,0x41,0x4c,0x47,0x4f,0x5f,0x52,0x58,0x5f,0x47,0x52,0x41,0x46,0x54,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x31,0x34,0x37, + 0x34,0x38,0x33,0x36,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45, + 0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x33,0x33,0x35,0x35,0x34,0x33,0x36,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x32,0x30,0x39,0x37,0x31,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x20,0x32,0x36,0x32,0x31,0x34,0x34,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x31,0x20,0x31,0x36,0x33,0x38, + 0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x20,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, + 0x57,0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57, + 0x41,0x50,0x5f,0x52,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44, + 0x5f,0x52,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f, + 0x4d,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x20, + 0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x20,0x35, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x20,0x36,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x33,0x32,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x20,0x34,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x20,0x36,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x20,0x32,0x35,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x31,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x20,0x31,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x4e,0x4f,0x50,0x20,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x38,0x30,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f, + 0x53,0x49,0x5a,0x45,0x20,0x28,0x31,0x32,0x38,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45, + 0x20,0x2a,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x32,0x35,0x36, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50, + 0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x34,0x20,0x2d,0x20,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45, + 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x20,0x28,0x28,0x49,0x4d,0x4d,0x5f, + 0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x34,0x29,0x20,0x2d,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x4d,0x5f,0x53,0x54, + 0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x49,0x4d,0x4d,0x5f,0x42, + 0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2b,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a, + 0x20,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x20,0x3f,0x20,0x2d,0x31,0x20,0x3a,0x20,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c, + 0x32,0x20,0x28,0x33,0x32,0x20,0x2d,0x20,0x31,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x20,0x28,0x33,0x32,0x20,0x2d, + 0x20,0x32,0x31,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x5f,0x54,0x41,0x42,0x4c,0x45,0x5b,0x32,0x30,0x34,0x38,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x30,0x78,0x61, + 0x35,0x36,0x33,0x36,0x33,0x63,0x36,0x55,0x2c,0x30,0x78,0x38,0x34,0x37,0x63,0x37,0x63,0x66,0x38,0x55,0x2c,0x30,0x78,0x39,0x39,0x37,0x37,0x37,0x37,0x65,0x65,0x55, + 0x2c,0x30,0x78,0x38,0x64,0x37,0x62,0x37,0x62,0x66,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x64,0x66,0x32,0x66,0x32,0x66,0x66,0x55,0x2c,0x30,0x78,0x62,0x64,0x36,0x62, + 0x36,0x62,0x64,0x36,0x55,0x2c,0x30,0x78,0x62,0x31,0x36,0x66,0x36,0x66,0x64,0x65,0x55,0x2c,0x30,0x78,0x35,0x34,0x63,0x35,0x63,0x35,0x39,0x31,0x55,0x2c,0x0a,0x30, + 0x78,0x35,0x30,0x33,0x30,0x33,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x31,0x30,0x31,0x30,0x32,0x55,0x2c,0x30,0x78,0x61,0x39,0x36,0x37,0x36,0x37,0x63, + 0x65,0x55,0x2c,0x30,0x78,0x37,0x64,0x32,0x62,0x32,0x62,0x35,0x36,0x55,0x2c,0x0a,0x30,0x78,0x31,0x39,0x66,0x65,0x66,0x65,0x65,0x37,0x55,0x2c,0x30,0x78,0x36,0x32, + 0x64,0x37,0x64,0x37,0x62,0x35,0x55,0x2c,0x30,0x78,0x65,0x36,0x61,0x62,0x61,0x62,0x34,0x64,0x55,0x2c,0x30,0x78,0x39,0x61,0x37,0x36,0x37,0x36,0x65,0x63,0x55,0x2c, + 0x0a,0x30,0x78,0x34,0x35,0x63,0x61,0x63,0x61,0x38,0x66,0x55,0x2c,0x30,0x78,0x39,0x64,0x38,0x32,0x38,0x32,0x31,0x66,0x55,0x2c,0x30,0x78,0x34,0x30,0x63,0x39,0x63, + 0x39,0x38,0x39,0x55,0x2c,0x30,0x78,0x38,0x37,0x37,0x64,0x37,0x64,0x66,0x61,0x55,0x2c,0x0a,0x30,0x78,0x31,0x35,0x66,0x61,0x66,0x61,0x65,0x66,0x55,0x2c,0x30,0x78, + 0x65,0x62,0x35,0x39,0x35,0x39,0x62,0x32,0x55,0x2c,0x30,0x78,0x63,0x39,0x34,0x37,0x34,0x37,0x38,0x65,0x55,0x2c,0x30,0x78,0x30,0x62,0x66,0x30,0x66,0x30,0x66,0x62, + 0x55,0x2c,0x0a,0x30,0x78,0x65,0x63,0x61,0x64,0x61,0x64,0x34,0x31,0x55,0x2c,0x30,0x78,0x36,0x37,0x64,0x34,0x64,0x34,0x62,0x33,0x55,0x2c,0x30,0x78,0x66,0x64,0x61, + 0x32,0x61,0x32,0x35,0x66,0x55,0x2c,0x30,0x78,0x65,0x61,0x61,0x66,0x61,0x66,0x34,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x66,0x39,0x63,0x39,0x63,0x32,0x33,0x55,0x2c, + 0x30,0x78,0x66,0x37,0x61,0x34,0x61,0x34,0x35,0x33,0x55,0x2c,0x30,0x78,0x39,0x36,0x37,0x32,0x37,0x32,0x65,0x34,0x55,0x2c,0x30,0x78,0x35,0x62,0x63,0x30,0x63,0x30, + 0x39,0x62,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x62,0x37,0x62,0x37,0x37,0x35,0x55,0x2c,0x30,0x78,0x31,0x63,0x66,0x64,0x66,0x64,0x65,0x31,0x55,0x2c,0x30,0x78,0x61, + 0x65,0x39,0x33,0x39,0x33,0x33,0x64,0x55,0x2c,0x30,0x78,0x36,0x61,0x32,0x36,0x32,0x36,0x34,0x63,0x55,0x2c,0x0a,0x30,0x78,0x35,0x61,0x33,0x36,0x33,0x36,0x36,0x63, + 0x55,0x2c,0x30,0x78,0x34,0x31,0x33,0x66,0x33,0x66,0x37,0x65,0x55,0x2c,0x30,0x78,0x30,0x32,0x66,0x37,0x66,0x37,0x66,0x35,0x55,0x2c,0x30,0x78,0x34,0x66,0x63,0x63, + 0x63,0x63,0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x63,0x33,0x34,0x33,0x34,0x36,0x38,0x55,0x2c,0x30,0x78,0x66,0x34,0x61,0x35,0x61,0x35,0x35,0x31,0x55,0x2c,0x30, + 0x78,0x33,0x34,0x65,0x35,0x65,0x35,0x64,0x31,0x55,0x2c,0x30,0x78,0x30,0x38,0x66,0x31,0x66,0x31,0x66,0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x33,0x37,0x31,0x37,0x31, + 0x65,0x32,0x55,0x2c,0x30,0x78,0x37,0x33,0x64,0x38,0x64,0x38,0x61,0x62,0x55,0x2c,0x30,0x78,0x35,0x33,0x33,0x31,0x33,0x31,0x36,0x32,0x55,0x2c,0x30,0x78,0x33,0x66, + 0x31,0x35,0x31,0x35,0x32,0x61,0x55,0x2c,0x0a,0x30,0x78,0x30,0x63,0x30,0x34,0x30,0x34,0x30,0x38,0x55,0x2c,0x30,0x78,0x35,0x32,0x63,0x37,0x63,0x37,0x39,0x35,0x55, + 0x2c,0x30,0x78,0x36,0x35,0x32,0x33,0x32,0x33,0x34,0x36,0x55,0x2c,0x30,0x78,0x35,0x65,0x63,0x33,0x63,0x33,0x39,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38,0x31,0x38, + 0x31,0x38,0x33,0x30,0x55,0x2c,0x30,0x78,0x61,0x31,0x39,0x36,0x39,0x36,0x33,0x37,0x55,0x2c,0x30,0x78,0x30,0x66,0x30,0x35,0x30,0x35,0x30,0x61,0x55,0x2c,0x30,0x78, + 0x62,0x35,0x39,0x61,0x39,0x61,0x32,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x37,0x30,0x37,0x30,0x65,0x55,0x2c,0x30,0x78,0x33,0x36,0x31,0x32,0x31,0x32,0x32, + 0x34,0x55,0x2c,0x30,0x78,0x39,0x62,0x38,0x30,0x38,0x30,0x31,0x62,0x55,0x2c,0x30,0x78,0x33,0x64,0x65,0x32,0x65,0x32,0x64,0x66,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36, + 0x65,0x62,0x65,0x62,0x63,0x64,0x55,0x2c,0x30,0x78,0x36,0x39,0x32,0x37,0x32,0x37,0x34,0x65,0x55,0x2c,0x30,0x78,0x63,0x64,0x62,0x32,0x62,0x32,0x37,0x66,0x55,0x2c, + 0x30,0x78,0x39,0x66,0x37,0x35,0x37,0x35,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x31,0x62,0x30,0x39,0x30,0x39,0x31,0x32,0x55,0x2c,0x30,0x78,0x39,0x65,0x38,0x33,0x38, + 0x33,0x31,0x64,0x55,0x2c,0x30,0x78,0x37,0x34,0x32,0x63,0x32,0x63,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x65,0x31,0x61,0x31,0x61,0x33,0x34,0x55,0x2c,0x0a,0x30,0x78, + 0x32,0x64,0x31,0x62,0x31,0x62,0x33,0x36,0x55,0x2c,0x30,0x78,0x62,0x32,0x36,0x65,0x36,0x65,0x64,0x63,0x55,0x2c,0x30,0x78,0x65,0x65,0x35,0x61,0x35,0x61,0x62,0x34, + 0x55,0x2c,0x30,0x78,0x66,0x62,0x61,0x30,0x61,0x30,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x36,0x35,0x32,0x35,0x32,0x61,0x34,0x55,0x2c,0x30,0x78,0x34,0x64,0x33, + 0x62,0x33,0x62,0x37,0x36,0x55,0x2c,0x30,0x78,0x36,0x31,0x64,0x36,0x64,0x36,0x62,0x37,0x55,0x2c,0x30,0x78,0x63,0x65,0x62,0x33,0x62,0x33,0x37,0x64,0x55,0x2c,0x0a, + 0x30,0x78,0x37,0x62,0x32,0x39,0x32,0x39,0x35,0x32,0x55,0x2c,0x30,0x78,0x33,0x65,0x65,0x33,0x65,0x33,0x64,0x64,0x55,0x2c,0x30,0x78,0x37,0x31,0x32,0x66,0x32,0x66, + 0x35,0x65,0x55,0x2c,0x30,0x78,0x39,0x37,0x38,0x34,0x38,0x34,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x66,0x35,0x35,0x33,0x35,0x33,0x61,0x36,0x55,0x2c,0x30,0x78,0x36, + 0x38,0x64,0x31,0x64,0x31,0x62,0x39,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x30,0x78,0x32,0x63,0x65,0x64,0x65,0x64,0x63,0x31,0x55, + 0x2c,0x0a,0x30,0x78,0x36,0x30,0x32,0x30,0x32,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x31,0x66,0x66,0x63,0x66,0x63,0x65,0x33,0x55,0x2c,0x30,0x78,0x63,0x38,0x62,0x31, + 0x62,0x31,0x37,0x39,0x55,0x2c,0x30,0x78,0x65,0x64,0x35,0x62,0x35,0x62,0x62,0x36,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x36,0x61,0x36,0x61,0x64,0x34,0x55,0x2c,0x30, + 0x78,0x34,0x36,0x63,0x62,0x63,0x62,0x38,0x64,0x55,0x2c,0x30,0x78,0x64,0x39,0x62,0x65,0x62,0x65,0x36,0x37,0x55,0x2c,0x30,0x78,0x34,0x62,0x33,0x39,0x33,0x39,0x37, + 0x32,0x55,0x2c,0x0a,0x30,0x78,0x64,0x65,0x34,0x61,0x34,0x61,0x39,0x34,0x55,0x2c,0x30,0x78,0x64,0x34,0x34,0x63,0x34,0x63,0x39,0x38,0x55,0x2c,0x30,0x78,0x65,0x38, + 0x35,0x38,0x35,0x38,0x62,0x30,0x55,0x2c,0x30,0x78,0x34,0x61,0x63,0x66,0x63,0x66,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x62,0x64,0x30,0x64,0x30,0x62,0x62,0x55, + 0x2c,0x30,0x78,0x32,0x61,0x65,0x66,0x65,0x66,0x63,0x35,0x55,0x2c,0x30,0x78,0x65,0x35,0x61,0x61,0x61,0x61,0x34,0x66,0x55,0x2c,0x30,0x78,0x31,0x36,0x66,0x62,0x66, + 0x62,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x63,0x35,0x34,0x33,0x34,0x33,0x38,0x36,0x55,0x2c,0x30,0x78,0x64,0x37,0x34,0x64,0x34,0x64,0x39,0x61,0x55,0x2c,0x30,0x78, + 0x35,0x35,0x33,0x33,0x33,0x33,0x36,0x36,0x55,0x2c,0x30,0x78,0x39,0x34,0x38,0x35,0x38,0x35,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x63,0x66,0x34,0x35,0x34,0x35,0x38, + 0x61,0x55,0x2c,0x30,0x78,0x31,0x30,0x66,0x39,0x66,0x39,0x65,0x39,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x32,0x30,0x32,0x30,0x34,0x55,0x2c,0x30,0x78,0x38,0x31,0x37, + 0x66,0x37,0x66,0x66,0x65,0x55,0x2c,0x0a,0x30,0x78,0x66,0x30,0x35,0x30,0x35,0x30,0x61,0x30,0x55,0x2c,0x30,0x78,0x34,0x34,0x33,0x63,0x33,0x63,0x37,0x38,0x55,0x2c, + 0x30,0x78,0x62,0x61,0x39,0x66,0x39,0x66,0x32,0x35,0x55,0x2c,0x30,0x78,0x65,0x33,0x61,0x38,0x61,0x38,0x34,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x33,0x35,0x31,0x35, + 0x31,0x61,0x32,0x55,0x2c,0x30,0x78,0x66,0x65,0x61,0x33,0x61,0x33,0x35,0x64,0x55,0x2c,0x30,0x78,0x63,0x30,0x34,0x30,0x34,0x30,0x38,0x30,0x55,0x2c,0x30,0x78,0x38, + 0x61,0x38,0x66,0x38,0x66,0x30,0x35,0x55,0x2c,0x0a,0x30,0x78,0x61,0x64,0x39,0x32,0x39,0x32,0x33,0x66,0x55,0x2c,0x30,0x78,0x62,0x63,0x39,0x64,0x39,0x64,0x32,0x31, + 0x55,0x2c,0x30,0x78,0x34,0x38,0x33,0x38,0x33,0x38,0x37,0x30,0x55,0x2c,0x30,0x78,0x30,0x34,0x66,0x35,0x66,0x35,0x66,0x31,0x55,0x2c,0x0a,0x30,0x78,0x64,0x66,0x62, + 0x63,0x62,0x63,0x36,0x33,0x55,0x2c,0x30,0x78,0x63,0x31,0x62,0x36,0x62,0x36,0x37,0x37,0x55,0x2c,0x30,0x78,0x37,0x35,0x64,0x61,0x64,0x61,0x61,0x66,0x55,0x2c,0x30, + 0x78,0x36,0x33,0x32,0x31,0x32,0x31,0x34,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x31,0x30,0x31,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x31,0x61,0x66,0x66,0x66,0x66, + 0x65,0x35,0x55,0x2c,0x30,0x78,0x30,0x65,0x66,0x33,0x66,0x33,0x66,0x64,0x55,0x2c,0x30,0x78,0x36,0x64,0x64,0x32,0x64,0x32,0x62,0x66,0x55,0x2c,0x0a,0x30,0x78,0x34, + 0x63,0x63,0x64,0x63,0x64,0x38,0x31,0x55,0x2c,0x30,0x78,0x31,0x34,0x30,0x63,0x30,0x63,0x31,0x38,0x55,0x2c,0x30,0x78,0x33,0x35,0x31,0x33,0x31,0x33,0x32,0x36,0x55, + 0x2c,0x30,0x78,0x32,0x66,0x65,0x63,0x65,0x63,0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x65,0x31,0x35,0x66,0x35,0x66,0x62,0x65,0x55,0x2c,0x30,0x78,0x61,0x32,0x39,0x37, + 0x39,0x37,0x33,0x35,0x55,0x2c,0x30,0x78,0x63,0x63,0x34,0x34,0x34,0x34,0x38,0x38,0x55,0x2c,0x30,0x78,0x33,0x39,0x31,0x37,0x31,0x37,0x32,0x65,0x55,0x2c,0x0a,0x30, + 0x78,0x35,0x37,0x63,0x34,0x63,0x34,0x39,0x33,0x55,0x2c,0x30,0x78,0x66,0x32,0x61,0x37,0x61,0x37,0x35,0x35,0x55,0x2c,0x30,0x78,0x38,0x32,0x37,0x65,0x37,0x65,0x66, + 0x63,0x55,0x2c,0x30,0x78,0x34,0x37,0x33,0x64,0x33,0x64,0x37,0x61,0x55,0x2c,0x0a,0x30,0x78,0x61,0x63,0x36,0x34,0x36,0x34,0x63,0x38,0x55,0x2c,0x30,0x78,0x65,0x37, + 0x35,0x64,0x35,0x64,0x62,0x61,0x55,0x2c,0x30,0x78,0x32,0x62,0x31,0x39,0x31,0x39,0x33,0x32,0x55,0x2c,0x30,0x78,0x39,0x35,0x37,0x33,0x37,0x33,0x65,0x36,0x55,0x2c, + 0x0a,0x30,0x78,0x61,0x30,0x36,0x30,0x36,0x30,0x63,0x30,0x55,0x2c,0x30,0x78,0x39,0x38,0x38,0x31,0x38,0x31,0x31,0x39,0x55,0x2c,0x30,0x78,0x64,0x31,0x34,0x66,0x34, + 0x66,0x39,0x65,0x55,0x2c,0x30,0x78,0x37,0x66,0x64,0x63,0x64,0x63,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x36,0x32,0x32,0x32,0x32,0x34,0x34,0x55,0x2c,0x30,0x78, + 0x37,0x65,0x32,0x61,0x32,0x61,0x35,0x34,0x55,0x2c,0x30,0x78,0x61,0x62,0x39,0x30,0x39,0x30,0x33,0x62,0x55,0x2c,0x30,0x78,0x38,0x33,0x38,0x38,0x38,0x38,0x30,0x62, + 0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x34,0x36,0x34,0x36,0x38,0x63,0x55,0x2c,0x30,0x78,0x32,0x39,0x65,0x65,0x65,0x65,0x63,0x37,0x55,0x2c,0x30,0x78,0x64,0x33,0x62, + 0x38,0x62,0x38,0x36,0x62,0x55,0x2c,0x30,0x78,0x33,0x63,0x31,0x34,0x31,0x34,0x32,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x39,0x64,0x65,0x64,0x65,0x61,0x37,0x55,0x2c, + 0x30,0x78,0x65,0x32,0x35,0x65,0x35,0x65,0x62,0x63,0x55,0x2c,0x30,0x78,0x31,0x64,0x30,0x62,0x30,0x62,0x31,0x36,0x55,0x2c,0x30,0x78,0x37,0x36,0x64,0x62,0x64,0x62, + 0x61,0x64,0x55,0x2c,0x0a,0x30,0x78,0x33,0x62,0x65,0x30,0x65,0x30,0x64,0x62,0x55,0x2c,0x30,0x78,0x35,0x36,0x33,0x32,0x33,0x32,0x36,0x34,0x55,0x2c,0x30,0x78,0x34, + 0x65,0x33,0x61,0x33,0x61,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x65,0x30,0x61,0x30,0x61,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x64,0x62,0x34,0x39,0x34,0x39,0x39,0x32, + 0x55,0x2c,0x30,0x78,0x30,0x61,0x30,0x36,0x30,0x36,0x30,0x63,0x55,0x2c,0x30,0x78,0x36,0x63,0x32,0x34,0x32,0x34,0x34,0x38,0x55,0x2c,0x30,0x78,0x65,0x34,0x35,0x63, + 0x35,0x63,0x62,0x38,0x55,0x2c,0x0a,0x30,0x78,0x35,0x64,0x63,0x32,0x63,0x32,0x39,0x66,0x55,0x2c,0x30,0x78,0x36,0x65,0x64,0x33,0x64,0x33,0x62,0x64,0x55,0x2c,0x30, + 0x78,0x65,0x66,0x61,0x63,0x61,0x63,0x34,0x33,0x55,0x2c,0x30,0x78,0x61,0x36,0x36,0x32,0x36,0x32,0x63,0x34,0x55,0x2c,0x0a,0x30,0x78,0x61,0x38,0x39,0x31,0x39,0x31, + 0x33,0x39,0x55,0x2c,0x30,0x78,0x61,0x34,0x39,0x35,0x39,0x35,0x33,0x31,0x55,0x2c,0x30,0x78,0x33,0x37,0x65,0x34,0x65,0x34,0x64,0x33,0x55,0x2c,0x30,0x78,0x38,0x62, + 0x37,0x39,0x37,0x39,0x66,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x32,0x65,0x37,0x65,0x37,0x64,0x35,0x55,0x2c,0x30,0x78,0x34,0x33,0x63,0x38,0x63,0x38,0x38,0x62,0x55, + 0x2c,0x30,0x78,0x35,0x39,0x33,0x37,0x33,0x37,0x36,0x65,0x55,0x2c,0x30,0x78,0x62,0x37,0x36,0x64,0x36,0x64,0x64,0x61,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x38,0x64, + 0x38,0x64,0x30,0x31,0x55,0x2c,0x30,0x78,0x36,0x34,0x64,0x35,0x64,0x35,0x62,0x31,0x55,0x2c,0x30,0x78,0x64,0x32,0x34,0x65,0x34,0x65,0x39,0x63,0x55,0x2c,0x30,0x78, + 0x65,0x30,0x61,0x39,0x61,0x39,0x34,0x39,0x55,0x2c,0x0a,0x30,0x78,0x62,0x34,0x36,0x63,0x36,0x63,0x64,0x38,0x55,0x2c,0x30,0x78,0x66,0x61,0x35,0x36,0x35,0x36,0x61, + 0x63,0x55,0x2c,0x30,0x78,0x30,0x37,0x66,0x34,0x66,0x34,0x66,0x33,0x55,0x2c,0x30,0x78,0x32,0x35,0x65,0x61,0x65,0x61,0x63,0x66,0x55,0x2c,0x0a,0x30,0x78,0x61,0x66, + 0x36,0x35,0x36,0x35,0x63,0x61,0x55,0x2c,0x30,0x78,0x38,0x65,0x37,0x61,0x37,0x61,0x66,0x34,0x55,0x2c,0x30,0x78,0x65,0x39,0x61,0x65,0x61,0x65,0x34,0x37,0x55,0x2c, + 0x30,0x78,0x31,0x38,0x30,0x38,0x30,0x38,0x31,0x30,0x55,0x2c,0x0a,0x30,0x78,0x64,0x35,0x62,0x61,0x62,0x61,0x36,0x66,0x55,0x2c,0x30,0x78,0x38,0x38,0x37,0x38,0x37, + 0x38,0x66,0x30,0x55,0x2c,0x30,0x78,0x36,0x66,0x32,0x35,0x32,0x35,0x34,0x61,0x55,0x2c,0x30,0x78,0x37,0x32,0x32,0x65,0x32,0x65,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78, + 0x32,0x34,0x31,0x63,0x31,0x63,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x31,0x61,0x36,0x61,0x36,0x35,0x37,0x55,0x2c,0x30,0x78,0x63,0x37,0x62,0x34,0x62,0x34,0x37,0x33, + 0x55,0x2c,0x30,0x78,0x35,0x31,0x63,0x36,0x63,0x36,0x39,0x37,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x65,0x38,0x65,0x38,0x63,0x62,0x55,0x2c,0x30,0x78,0x37,0x63,0x64, + 0x64,0x64,0x64,0x61,0x31,0x55,0x2c,0x30,0x78,0x39,0x63,0x37,0x34,0x37,0x34,0x65,0x38,0x55,0x2c,0x30,0x78,0x32,0x31,0x31,0x66,0x31,0x66,0x33,0x65,0x55,0x2c,0x0a, + 0x30,0x78,0x64,0x64,0x34,0x62,0x34,0x62,0x39,0x36,0x55,0x2c,0x30,0x78,0x64,0x63,0x62,0x64,0x62,0x64,0x36,0x31,0x55,0x2c,0x30,0x78,0x38,0x36,0x38,0x62,0x38,0x62, + 0x30,0x64,0x55,0x2c,0x30,0x78,0x38,0x35,0x38,0x61,0x38,0x61,0x30,0x66,0x55,0x2c,0x0a,0x30,0x78,0x39,0x30,0x37,0x30,0x37,0x30,0x65,0x30,0x55,0x2c,0x30,0x78,0x34, + 0x32,0x33,0x65,0x33,0x65,0x37,0x63,0x55,0x2c,0x30,0x78,0x63,0x34,0x62,0x35,0x62,0x35,0x37,0x31,0x55,0x2c,0x30,0x78,0x61,0x61,0x36,0x36,0x36,0x36,0x63,0x63,0x55, + 0x2c,0x0a,0x30,0x78,0x64,0x38,0x34,0x38,0x34,0x38,0x39,0x30,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x33,0x30,0x33,0x30,0x36,0x55,0x2c,0x30,0x78,0x30,0x31,0x66,0x36, + 0x66,0x36,0x66,0x37,0x55,0x2c,0x30,0x78,0x31,0x32,0x30,0x65,0x30,0x65,0x31,0x63,0x55,0x2c,0x0a,0x30,0x78,0x61,0x33,0x36,0x31,0x36,0x31,0x63,0x32,0x55,0x2c,0x30, + 0x78,0x35,0x66,0x33,0x35,0x33,0x35,0x36,0x61,0x55,0x2c,0x30,0x78,0x66,0x39,0x35,0x37,0x35,0x37,0x61,0x65,0x55,0x2c,0x30,0x78,0x64,0x30,0x62,0x39,0x62,0x39,0x36, + 0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x38,0x36,0x38,0x36,0x31,0x37,0x55,0x2c,0x30,0x78,0x35,0x38,0x63,0x31,0x63,0x31,0x39,0x39,0x55,0x2c,0x30,0x78,0x32,0x37, + 0x31,0x64,0x31,0x64,0x33,0x61,0x55,0x2c,0x30,0x78,0x62,0x39,0x39,0x65,0x39,0x65,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x38,0x65,0x31,0x65,0x31,0x64,0x39,0x55, + 0x2c,0x30,0x78,0x31,0x33,0x66,0x38,0x66,0x38,0x65,0x62,0x55,0x2c,0x30,0x78,0x62,0x33,0x39,0x38,0x39,0x38,0x32,0x62,0x55,0x2c,0x30,0x78,0x33,0x33,0x31,0x31,0x31, + 0x31,0x32,0x32,0x55,0x2c,0x0a,0x30,0x78,0x62,0x62,0x36,0x39,0x36,0x39,0x64,0x32,0x55,0x2c,0x30,0x78,0x37,0x30,0x64,0x39,0x64,0x39,0x61,0x39,0x55,0x2c,0x30,0x78, + 0x38,0x39,0x38,0x65,0x38,0x65,0x30,0x37,0x55,0x2c,0x30,0x78,0x61,0x37,0x39,0x34,0x39,0x34,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x62,0x36,0x39,0x62,0x39,0x62,0x32, + 0x64,0x55,0x2c,0x30,0x78,0x32,0x32,0x31,0x65,0x31,0x65,0x33,0x63,0x55,0x2c,0x30,0x78,0x39,0x32,0x38,0x37,0x38,0x37,0x31,0x35,0x55,0x2c,0x30,0x78,0x32,0x30,0x65, + 0x39,0x65,0x39,0x63,0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x63,0x65,0x63,0x65,0x38,0x37,0x55,0x2c,0x30,0x78,0x66,0x66,0x35,0x35,0x35,0x35,0x61,0x61,0x55,0x2c, + 0x30,0x78,0x37,0x38,0x32,0x38,0x32,0x38,0x35,0x30,0x55,0x2c,0x30,0x78,0x37,0x61,0x64,0x66,0x64,0x66,0x61,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x66,0x38,0x63,0x38, + 0x63,0x30,0x33,0x55,0x2c,0x30,0x78,0x66,0x38,0x61,0x31,0x61,0x31,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x30,0x38,0x39,0x38,0x39,0x30,0x39,0x55,0x2c,0x30,0x78,0x31, + 0x37,0x30,0x64,0x30,0x64,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78,0x64,0x61,0x62,0x66,0x62,0x66,0x36,0x35,0x55,0x2c,0x30,0x78,0x33,0x31,0x65,0x36,0x65,0x36,0x64,0x37, + 0x55,0x2c,0x30,0x78,0x63,0x36,0x34,0x32,0x34,0x32,0x38,0x34,0x55,0x2c,0x30,0x78,0x62,0x38,0x36,0x38,0x36,0x38,0x64,0x30,0x55,0x2c,0x0a,0x30,0x78,0x63,0x33,0x34, + 0x31,0x34,0x31,0x38,0x32,0x55,0x2c,0x30,0x78,0x62,0x30,0x39,0x39,0x39,0x39,0x32,0x39,0x55,0x2c,0x30,0x78,0x37,0x37,0x32,0x64,0x32,0x64,0x35,0x61,0x55,0x2c,0x30, + 0x78,0x31,0x31,0x30,0x66,0x30,0x66,0x31,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x62,0x30,0x62,0x30,0x37,0x62,0x55,0x2c,0x30,0x78,0x66,0x63,0x35,0x34,0x35,0x34, + 0x61,0x38,0x55,0x2c,0x30,0x78,0x64,0x36,0x62,0x62,0x62,0x62,0x36,0x64,0x55,0x2c,0x30,0x78,0x33,0x61,0x31,0x36,0x31,0x36,0x32,0x63,0x55,0x2c,0x0a,0x30,0x78,0x36, + 0x33,0x36,0x33,0x63,0x36,0x61,0x35,0x55,0x2c,0x30,0x78,0x37,0x63,0x37,0x63,0x66,0x38,0x38,0x34,0x55,0x2c,0x30,0x78,0x37,0x37,0x37,0x37,0x65,0x65,0x39,0x39,0x55, + 0x2c,0x30,0x78,0x37,0x62,0x37,0x62,0x66,0x36,0x38,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x32,0x66,0x32,0x66,0x66,0x30,0x64,0x55,0x2c,0x30,0x78,0x36,0x62,0x36,0x62, + 0x64,0x36,0x62,0x64,0x55,0x2c,0x30,0x78,0x36,0x66,0x36,0x66,0x64,0x65,0x62,0x31,0x55,0x2c,0x30,0x78,0x63,0x35,0x63,0x35,0x39,0x31,0x35,0x34,0x55,0x2c,0x0a,0x30, + 0x78,0x33,0x30,0x33,0x30,0x36,0x30,0x35,0x30,0x55,0x2c,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x32,0x30,0x33,0x55,0x2c,0x30,0x78,0x36,0x37,0x36,0x37,0x63,0x65,0x61, + 0x39,0x55,0x2c,0x30,0x78,0x32,0x62,0x32,0x62,0x35,0x36,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x65,0x66,0x65,0x65,0x37,0x31,0x39,0x55,0x2c,0x30,0x78,0x64,0x37, + 0x64,0x37,0x62,0x35,0x36,0x32,0x55,0x2c,0x30,0x78,0x61,0x62,0x61,0x62,0x34,0x64,0x65,0x36,0x55,0x2c,0x30,0x78,0x37,0x36,0x37,0x36,0x65,0x63,0x39,0x61,0x55,0x2c, + 0x0a,0x30,0x78,0x63,0x61,0x63,0x61,0x38,0x66,0x34,0x35,0x55,0x2c,0x30,0x78,0x38,0x32,0x38,0x32,0x31,0x66,0x39,0x64,0x55,0x2c,0x30,0x78,0x63,0x39,0x63,0x39,0x38, + 0x39,0x34,0x30,0x55,0x2c,0x30,0x78,0x37,0x64,0x37,0x64,0x66,0x61,0x38,0x37,0x55,0x2c,0x0a,0x30,0x78,0x66,0x61,0x66,0x61,0x65,0x66,0x31,0x35,0x55,0x2c,0x30,0x78, + 0x35,0x39,0x35,0x39,0x62,0x32,0x65,0x62,0x55,0x2c,0x30,0x78,0x34,0x37,0x34,0x37,0x38,0x65,0x63,0x39,0x55,0x2c,0x30,0x78,0x66,0x30,0x66,0x30,0x66,0x62,0x30,0x62, + 0x55,0x2c,0x0a,0x30,0x78,0x61,0x64,0x61,0x64,0x34,0x31,0x65,0x63,0x55,0x2c,0x30,0x78,0x64,0x34,0x64,0x34,0x62,0x33,0x36,0x37,0x55,0x2c,0x30,0x78,0x61,0x32,0x61, + 0x32,0x35,0x66,0x66,0x64,0x55,0x2c,0x30,0x78,0x61,0x66,0x61,0x66,0x34,0x35,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x63,0x39,0x63,0x32,0x33,0x62,0x66,0x55,0x2c, + 0x30,0x78,0x61,0x34,0x61,0x34,0x35,0x33,0x66,0x37,0x55,0x2c,0x30,0x78,0x37,0x32,0x37,0x32,0x65,0x34,0x39,0x36,0x55,0x2c,0x30,0x78,0x63,0x30,0x63,0x30,0x39,0x62, + 0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x62,0x37,0x62,0x37,0x37,0x35,0x63,0x32,0x55,0x2c,0x30,0x78,0x66,0x64,0x66,0x64,0x65,0x31,0x31,0x63,0x55,0x2c,0x30,0x78,0x39, + 0x33,0x39,0x33,0x33,0x64,0x61,0x65,0x55,0x2c,0x30,0x78,0x32,0x36,0x32,0x36,0x34,0x63,0x36,0x61,0x55,0x2c,0x0a,0x30,0x78,0x33,0x36,0x33,0x36,0x36,0x63,0x35,0x61, + 0x55,0x2c,0x30,0x78,0x33,0x66,0x33,0x66,0x37,0x65,0x34,0x31,0x55,0x2c,0x30,0x78,0x66,0x37,0x66,0x37,0x66,0x35,0x30,0x32,0x55,0x2c,0x30,0x78,0x63,0x63,0x63,0x63, + 0x38,0x33,0x34,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x34,0x33,0x34,0x36,0x38,0x35,0x63,0x55,0x2c,0x30,0x78,0x61,0x35,0x61,0x35,0x35,0x31,0x66,0x34,0x55,0x2c,0x30, + 0x78,0x65,0x35,0x65,0x35,0x64,0x31,0x33,0x34,0x55,0x2c,0x30,0x78,0x66,0x31,0x66,0x31,0x66,0x39,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x31,0x37,0x31,0x65,0x32, + 0x39,0x33,0x55,0x2c,0x30,0x78,0x64,0x38,0x64,0x38,0x61,0x62,0x37,0x33,0x55,0x2c,0x30,0x78,0x33,0x31,0x33,0x31,0x36,0x32,0x35,0x33,0x55,0x2c,0x30,0x78,0x31,0x35, + 0x31,0x35,0x32,0x61,0x33,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x34,0x30,0x34,0x30,0x38,0x30,0x63,0x55,0x2c,0x30,0x78,0x63,0x37,0x63,0x37,0x39,0x35,0x35,0x32,0x55, + 0x2c,0x30,0x78,0x32,0x33,0x32,0x33,0x34,0x36,0x36,0x35,0x55,0x2c,0x30,0x78,0x63,0x33,0x63,0x33,0x39,0x64,0x35,0x65,0x55,0x2c,0x0a,0x30,0x78,0x31,0x38,0x31,0x38, + 0x33,0x30,0x32,0x38,0x55,0x2c,0x30,0x78,0x39,0x36,0x39,0x36,0x33,0x37,0x61,0x31,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x35,0x30,0x61,0x30,0x66,0x55,0x2c,0x30,0x78, + 0x39,0x61,0x39,0x61,0x32,0x66,0x62,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x37,0x30,0x37,0x30,0x65,0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x32,0x31,0x32,0x32,0x34,0x33, + 0x36,0x55,0x2c,0x30,0x78,0x38,0x30,0x38,0x30,0x31,0x62,0x39,0x62,0x55,0x2c,0x30,0x78,0x65,0x32,0x65,0x32,0x64,0x66,0x33,0x64,0x55,0x2c,0x0a,0x30,0x78,0x65,0x62, + 0x65,0x62,0x63,0x64,0x32,0x36,0x55,0x2c,0x30,0x78,0x32,0x37,0x32,0x37,0x34,0x65,0x36,0x39,0x55,0x2c,0x30,0x78,0x62,0x32,0x62,0x32,0x37,0x66,0x63,0x64,0x55,0x2c, + 0x30,0x78,0x37,0x35,0x37,0x35,0x65,0x61,0x39,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x39,0x31,0x32,0x31,0x62,0x55,0x2c,0x30,0x78,0x38,0x33,0x38,0x33,0x31, + 0x64,0x39,0x65,0x55,0x2c,0x30,0x78,0x32,0x63,0x32,0x63,0x35,0x38,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x61,0x31,0x61,0x33,0x34,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78, + 0x31,0x62,0x31,0x62,0x33,0x36,0x32,0x64,0x55,0x2c,0x30,0x78,0x36,0x65,0x36,0x65,0x64,0x63,0x62,0x32,0x55,0x2c,0x30,0x78,0x35,0x61,0x35,0x61,0x62,0x34,0x65,0x65, + 0x55,0x2c,0x30,0x78,0x61,0x30,0x61,0x30,0x35,0x62,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x35,0x32,0x35,0x32,0x61,0x34,0x66,0x36,0x55,0x2c,0x30,0x78,0x33,0x62,0x33, + 0x62,0x37,0x36,0x34,0x64,0x55,0x2c,0x30,0x78,0x64,0x36,0x64,0x36,0x62,0x37,0x36,0x31,0x55,0x2c,0x30,0x78,0x62,0x33,0x62,0x33,0x37,0x64,0x63,0x65,0x55,0x2c,0x0a, + 0x30,0x78,0x32,0x39,0x32,0x39,0x35,0x32,0x37,0x62,0x55,0x2c,0x30,0x78,0x65,0x33,0x65,0x33,0x64,0x64,0x33,0x65,0x55,0x2c,0x30,0x78,0x32,0x66,0x32,0x66,0x35,0x65, + 0x37,0x31,0x55,0x2c,0x30,0x78,0x38,0x34,0x38,0x34,0x31,0x33,0x39,0x37,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33,0x35,0x33,0x61,0x36,0x66,0x35,0x55,0x2c,0x30,0x78,0x64, + 0x31,0x64,0x31,0x62,0x39,0x36,0x38,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x30,0x78,0x65,0x64,0x65,0x64,0x63,0x31,0x32,0x63,0x55, + 0x2c,0x0a,0x30,0x78,0x32,0x30,0x32,0x30,0x34,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x66,0x63,0x66,0x63,0x65,0x33,0x31,0x66,0x55,0x2c,0x30,0x78,0x62,0x31,0x62,0x31, + 0x37,0x39,0x63,0x38,0x55,0x2c,0x30,0x78,0x35,0x62,0x35,0x62,0x62,0x36,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x36,0x61,0x36,0x61,0x64,0x34,0x62,0x65,0x55,0x2c,0x30, + 0x78,0x63,0x62,0x63,0x62,0x38,0x64,0x34,0x36,0x55,0x2c,0x30,0x78,0x62,0x65,0x62,0x65,0x36,0x37,0x64,0x39,0x55,0x2c,0x30,0x78,0x33,0x39,0x33,0x39,0x37,0x32,0x34, + 0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x34,0x61,0x39,0x34,0x64,0x65,0x55,0x2c,0x30,0x78,0x34,0x63,0x34,0x63,0x39,0x38,0x64,0x34,0x55,0x2c,0x30,0x78,0x35,0x38, + 0x35,0x38,0x62,0x30,0x65,0x38,0x55,0x2c,0x30,0x78,0x63,0x66,0x63,0x66,0x38,0x35,0x34,0x61,0x55,0x2c,0x0a,0x30,0x78,0x64,0x30,0x64,0x30,0x62,0x62,0x36,0x62,0x55, + 0x2c,0x30,0x78,0x65,0x66,0x65,0x66,0x63,0x35,0x32,0x61,0x55,0x2c,0x30,0x78,0x61,0x61,0x61,0x61,0x34,0x66,0x65,0x35,0x55,0x2c,0x30,0x78,0x66,0x62,0x66,0x62,0x65, + 0x64,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x33,0x34,0x33,0x38,0x36,0x63,0x35,0x55,0x2c,0x30,0x78,0x34,0x64,0x34,0x64,0x39,0x61,0x64,0x37,0x55,0x2c,0x30,0x78, + 0x33,0x33,0x33,0x33,0x36,0x36,0x35,0x35,0x55,0x2c,0x30,0x78,0x38,0x35,0x38,0x35,0x31,0x31,0x39,0x34,0x55,0x2c,0x0a,0x30,0x78,0x34,0x35,0x34,0x35,0x38,0x61,0x63, + 0x66,0x55,0x2c,0x30,0x78,0x66,0x39,0x66,0x39,0x65,0x39,0x31,0x30,0x55,0x2c,0x30,0x78,0x30,0x32,0x30,0x32,0x30,0x34,0x30,0x36,0x55,0x2c,0x30,0x78,0x37,0x66,0x37, + 0x66,0x66,0x65,0x38,0x31,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x35,0x30,0x61,0x30,0x66,0x30,0x55,0x2c,0x30,0x78,0x33,0x63,0x33,0x63,0x37,0x38,0x34,0x34,0x55,0x2c, + 0x30,0x78,0x39,0x66,0x39,0x66,0x32,0x35,0x62,0x61,0x55,0x2c,0x30,0x78,0x61,0x38,0x61,0x38,0x34,0x62,0x65,0x33,0x55,0x2c,0x0a,0x30,0x78,0x35,0x31,0x35,0x31,0x61, + 0x32,0x66,0x33,0x55,0x2c,0x30,0x78,0x61,0x33,0x61,0x33,0x35,0x64,0x66,0x65,0x55,0x2c,0x30,0x78,0x34,0x30,0x34,0x30,0x38,0x30,0x63,0x30,0x55,0x2c,0x30,0x78,0x38, + 0x66,0x38,0x66,0x30,0x35,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x32,0x39,0x32,0x33,0x66,0x61,0x64,0x55,0x2c,0x30,0x78,0x39,0x64,0x39,0x64,0x32,0x31,0x62,0x63, + 0x55,0x2c,0x30,0x78,0x33,0x38,0x33,0x38,0x37,0x30,0x34,0x38,0x55,0x2c,0x30,0x78,0x66,0x35,0x66,0x35,0x66,0x31,0x30,0x34,0x55,0x2c,0x0a,0x30,0x78,0x62,0x63,0x62, + 0x63,0x36,0x33,0x64,0x66,0x55,0x2c,0x30,0x78,0x62,0x36,0x62,0x36,0x37,0x37,0x63,0x31,0x55,0x2c,0x30,0x78,0x64,0x61,0x64,0x61,0x61,0x66,0x37,0x35,0x55,0x2c,0x30, + 0x78,0x32,0x31,0x32,0x31,0x34,0x32,0x36,0x33,0x55,0x2c,0x0a,0x30,0x78,0x31,0x30,0x31,0x30,0x32,0x30,0x33,0x30,0x55,0x2c,0x30,0x78,0x66,0x66,0x66,0x66,0x65,0x35, + 0x31,0x61,0x55,0x2c,0x30,0x78,0x66,0x33,0x66,0x33,0x66,0x64,0x30,0x65,0x55,0x2c,0x30,0x78,0x64,0x32,0x64,0x32,0x62,0x66,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x63, + 0x64,0x63,0x64,0x38,0x31,0x34,0x63,0x55,0x2c,0x30,0x78,0x30,0x63,0x30,0x63,0x31,0x38,0x31,0x34,0x55,0x2c,0x30,0x78,0x31,0x33,0x31,0x33,0x32,0x36,0x33,0x35,0x55, + 0x2c,0x30,0x78,0x65,0x63,0x65,0x63,0x63,0x33,0x32,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x66,0x35,0x66,0x62,0x65,0x65,0x31,0x55,0x2c,0x30,0x78,0x39,0x37,0x39,0x37, + 0x33,0x35,0x61,0x32,0x55,0x2c,0x30,0x78,0x34,0x34,0x34,0x34,0x38,0x38,0x63,0x63,0x55,0x2c,0x30,0x78,0x31,0x37,0x31,0x37,0x32,0x65,0x33,0x39,0x55,0x2c,0x0a,0x30, + 0x78,0x63,0x34,0x63,0x34,0x39,0x33,0x35,0x37,0x55,0x2c,0x30,0x78,0x61,0x37,0x61,0x37,0x35,0x35,0x66,0x32,0x55,0x2c,0x30,0x78,0x37,0x65,0x37,0x65,0x66,0x63,0x38, + 0x32,0x55,0x2c,0x30,0x78,0x33,0x64,0x33,0x64,0x37,0x61,0x34,0x37,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x36,0x34,0x63,0x38,0x61,0x63,0x55,0x2c,0x30,0x78,0x35,0x64, + 0x35,0x64,0x62,0x61,0x65,0x37,0x55,0x2c,0x30,0x78,0x31,0x39,0x31,0x39,0x33,0x32,0x32,0x62,0x55,0x2c,0x30,0x78,0x37,0x33,0x37,0x33,0x65,0x36,0x39,0x35,0x55,0x2c, + 0x0a,0x30,0x78,0x36,0x30,0x36,0x30,0x63,0x30,0x61,0x30,0x55,0x2c,0x30,0x78,0x38,0x31,0x38,0x31,0x31,0x39,0x39,0x38,0x55,0x2c,0x30,0x78,0x34,0x66,0x34,0x66,0x39, + 0x65,0x64,0x31,0x55,0x2c,0x30,0x78,0x64,0x63,0x64,0x63,0x61,0x33,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x32,0x32,0x32,0x32,0x34,0x34,0x36,0x36,0x55,0x2c,0x30,0x78, + 0x32,0x61,0x32,0x61,0x35,0x34,0x37,0x65,0x55,0x2c,0x30,0x78,0x39,0x30,0x39,0x30,0x33,0x62,0x61,0x62,0x55,0x2c,0x30,0x78,0x38,0x38,0x38,0x38,0x30,0x62,0x38,0x33, + 0x55,0x2c,0x0a,0x30,0x78,0x34,0x36,0x34,0x36,0x38,0x63,0x63,0x61,0x55,0x2c,0x30,0x78,0x65,0x65,0x65,0x65,0x63,0x37,0x32,0x39,0x55,0x2c,0x30,0x78,0x62,0x38,0x62, + 0x38,0x36,0x62,0x64,0x33,0x55,0x2c,0x30,0x78,0x31,0x34,0x31,0x34,0x32,0x38,0x33,0x63,0x55,0x2c,0x0a,0x30,0x78,0x64,0x65,0x64,0x65,0x61,0x37,0x37,0x39,0x55,0x2c, + 0x30,0x78,0x35,0x65,0x35,0x65,0x62,0x63,0x65,0x32,0x55,0x2c,0x30,0x78,0x30,0x62,0x30,0x62,0x31,0x36,0x31,0x64,0x55,0x2c,0x30,0x78,0x64,0x62,0x64,0x62,0x61,0x64, + 0x37,0x36,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x65,0x30,0x64,0x62,0x33,0x62,0x55,0x2c,0x30,0x78,0x33,0x32,0x33,0x32,0x36,0x34,0x35,0x36,0x55,0x2c,0x30,0x78,0x33, + 0x61,0x33,0x61,0x37,0x34,0x34,0x65,0x55,0x2c,0x30,0x78,0x30,0x61,0x30,0x61,0x31,0x34,0x31,0x65,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x34,0x39,0x39,0x32,0x64,0x62, + 0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x36,0x30,0x63,0x30,0x61,0x55,0x2c,0x30,0x78,0x32,0x34,0x32,0x34,0x34,0x38,0x36,0x63,0x55,0x2c,0x30,0x78,0x35,0x63,0x35,0x63, + 0x62,0x38,0x65,0x34,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x63,0x32,0x39,0x66,0x35,0x64,0x55,0x2c,0x30,0x78,0x64,0x33,0x64,0x33,0x62,0x64,0x36,0x65,0x55,0x2c,0x30, + 0x78,0x61,0x63,0x61,0x63,0x34,0x33,0x65,0x66,0x55,0x2c,0x30,0x78,0x36,0x32,0x36,0x32,0x63,0x34,0x61,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x39,0x31,0x33,0x39, + 0x61,0x38,0x55,0x2c,0x30,0x78,0x39,0x35,0x39,0x35,0x33,0x31,0x61,0x34,0x55,0x2c,0x30,0x78,0x65,0x34,0x65,0x34,0x64,0x33,0x33,0x37,0x55,0x2c,0x30,0x78,0x37,0x39, + 0x37,0x39,0x66,0x32,0x38,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x65,0x37,0x64,0x35,0x33,0x32,0x55,0x2c,0x30,0x78,0x63,0x38,0x63,0x38,0x38,0x62,0x34,0x33,0x55, + 0x2c,0x30,0x78,0x33,0x37,0x33,0x37,0x36,0x65,0x35,0x39,0x55,0x2c,0x30,0x78,0x36,0x64,0x36,0x64,0x64,0x61,0x62,0x37,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x38,0x64, + 0x30,0x31,0x38,0x63,0x55,0x2c,0x30,0x78,0x64,0x35,0x64,0x35,0x62,0x31,0x36,0x34,0x55,0x2c,0x30,0x78,0x34,0x65,0x34,0x65,0x39,0x63,0x64,0x32,0x55,0x2c,0x30,0x78, + 0x61,0x39,0x61,0x39,0x34,0x39,0x65,0x30,0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x36,0x63,0x64,0x38,0x62,0x34,0x55,0x2c,0x30,0x78,0x35,0x36,0x35,0x36,0x61,0x63,0x66, + 0x61,0x55,0x2c,0x30,0x78,0x66,0x34,0x66,0x34,0x66,0x33,0x30,0x37,0x55,0x2c,0x30,0x78,0x65,0x61,0x65,0x61,0x63,0x66,0x32,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35, + 0x36,0x35,0x63,0x61,0x61,0x66,0x55,0x2c,0x30,0x78,0x37,0x61,0x37,0x61,0x66,0x34,0x38,0x65,0x55,0x2c,0x30,0x78,0x61,0x65,0x61,0x65,0x34,0x37,0x65,0x39,0x55,0x2c, + 0x30,0x78,0x30,0x38,0x30,0x38,0x31,0x30,0x31,0x38,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x62,0x61,0x36,0x66,0x64,0x35,0x55,0x2c,0x30,0x78,0x37,0x38,0x37,0x38,0x66, + 0x30,0x38,0x38,0x55,0x2c,0x30,0x78,0x32,0x35,0x32,0x35,0x34,0x61,0x36,0x66,0x55,0x2c,0x30,0x78,0x32,0x65,0x32,0x65,0x35,0x63,0x37,0x32,0x55,0x2c,0x0a,0x30,0x78, + 0x31,0x63,0x31,0x63,0x33,0x38,0x32,0x34,0x55,0x2c,0x30,0x78,0x61,0x36,0x61,0x36,0x35,0x37,0x66,0x31,0x55,0x2c,0x30,0x78,0x62,0x34,0x62,0x34,0x37,0x33,0x63,0x37, + 0x55,0x2c,0x30,0x78,0x63,0x36,0x63,0x36,0x39,0x37,0x35,0x31,0x55,0x2c,0x0a,0x30,0x78,0x65,0x38,0x65,0x38,0x63,0x62,0x32,0x33,0x55,0x2c,0x30,0x78,0x64,0x64,0x64, + 0x64,0x61,0x31,0x37,0x63,0x55,0x2c,0x30,0x78,0x37,0x34,0x37,0x34,0x65,0x38,0x39,0x63,0x55,0x2c,0x30,0x78,0x31,0x66,0x31,0x66,0x33,0x65,0x32,0x31,0x55,0x2c,0x0a, + 0x30,0x78,0x34,0x62,0x34,0x62,0x39,0x36,0x64,0x64,0x55,0x2c,0x30,0x78,0x62,0x64,0x62,0x64,0x36,0x31,0x64,0x63,0x55,0x2c,0x30,0x78,0x38,0x62,0x38,0x62,0x30,0x64, + 0x38,0x36,0x55,0x2c,0x30,0x78,0x38,0x61,0x38,0x61,0x30,0x66,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x37,0x30,0x37,0x30,0x65,0x30,0x39,0x30,0x55,0x2c,0x30,0x78,0x33, + 0x65,0x33,0x65,0x37,0x63,0x34,0x32,0x55,0x2c,0x30,0x78,0x62,0x35,0x62,0x35,0x37,0x31,0x63,0x34,0x55,0x2c,0x30,0x78,0x36,0x36,0x36,0x36,0x63,0x63,0x61,0x61,0x55, + 0x2c,0x0a,0x30,0x78,0x34,0x38,0x34,0x38,0x39,0x30,0x64,0x38,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x33,0x30,0x36,0x30,0x35,0x55,0x2c,0x30,0x78,0x66,0x36,0x66,0x36, + 0x66,0x37,0x30,0x31,0x55,0x2c,0x30,0x78,0x30,0x65,0x30,0x65,0x31,0x63,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x36,0x31,0x36,0x31,0x63,0x32,0x61,0x33,0x55,0x2c,0x30, + 0x78,0x33,0x35,0x33,0x35,0x36,0x61,0x35,0x66,0x55,0x2c,0x30,0x78,0x35,0x37,0x35,0x37,0x61,0x65,0x66,0x39,0x55,0x2c,0x30,0x78,0x62,0x39,0x62,0x39,0x36,0x39,0x64, + 0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x38,0x36,0x31,0x37,0x39,0x31,0x55,0x2c,0x30,0x78,0x63,0x31,0x63,0x31,0x39,0x39,0x35,0x38,0x55,0x2c,0x30,0x78,0x31,0x64, + 0x31,0x64,0x33,0x61,0x32,0x37,0x55,0x2c,0x30,0x78,0x39,0x65,0x39,0x65,0x32,0x37,0x62,0x39,0x55,0x2c,0x0a,0x30,0x78,0x65,0x31,0x65,0x31,0x64,0x39,0x33,0x38,0x55, + 0x2c,0x30,0x78,0x66,0x38,0x66,0x38,0x65,0x62,0x31,0x33,0x55,0x2c,0x30,0x78,0x39,0x38,0x39,0x38,0x32,0x62,0x62,0x33,0x55,0x2c,0x30,0x78,0x31,0x31,0x31,0x31,0x32, + 0x32,0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x39,0x36,0x39,0x64,0x32,0x62,0x62,0x55,0x2c,0x30,0x78,0x64,0x39,0x64,0x39,0x61,0x39,0x37,0x30,0x55,0x2c,0x30,0x78, + 0x38,0x65,0x38,0x65,0x30,0x37,0x38,0x39,0x55,0x2c,0x30,0x78,0x39,0x34,0x39,0x34,0x33,0x33,0x61,0x37,0x55,0x2c,0x0a,0x30,0x78,0x39,0x62,0x39,0x62,0x32,0x64,0x62, + 0x36,0x55,0x2c,0x30,0x78,0x31,0x65,0x31,0x65,0x33,0x63,0x32,0x32,0x55,0x2c,0x30,0x78,0x38,0x37,0x38,0x37,0x31,0x35,0x39,0x32,0x55,0x2c,0x30,0x78,0x65,0x39,0x65, + 0x39,0x63,0x39,0x32,0x30,0x55,0x2c,0x0a,0x30,0x78,0x63,0x65,0x63,0x65,0x38,0x37,0x34,0x39,0x55,0x2c,0x30,0x78,0x35,0x35,0x35,0x35,0x61,0x61,0x66,0x66,0x55,0x2c, + 0x30,0x78,0x32,0x38,0x32,0x38,0x35,0x30,0x37,0x38,0x55,0x2c,0x30,0x78,0x64,0x66,0x64,0x66,0x61,0x35,0x37,0x61,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x38,0x63,0x30, + 0x33,0x38,0x66,0x55,0x2c,0x30,0x78,0x61,0x31,0x61,0x31,0x35,0x39,0x66,0x38,0x55,0x2c,0x30,0x78,0x38,0x39,0x38,0x39,0x30,0x39,0x38,0x30,0x55,0x2c,0x30,0x78,0x30, + 0x64,0x30,0x64,0x31,0x61,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x62,0x66,0x62,0x66,0x36,0x35,0x64,0x61,0x55,0x2c,0x30,0x78,0x65,0x36,0x65,0x36,0x64,0x37,0x33,0x31, + 0x55,0x2c,0x30,0x78,0x34,0x32,0x34,0x32,0x38,0x34,0x63,0x36,0x55,0x2c,0x30,0x78,0x36,0x38,0x36,0x38,0x64,0x30,0x62,0x38,0x55,0x2c,0x0a,0x30,0x78,0x34,0x31,0x34, + 0x31,0x38,0x32,0x63,0x33,0x55,0x2c,0x30,0x78,0x39,0x39,0x39,0x39,0x32,0x39,0x62,0x30,0x55,0x2c,0x30,0x78,0x32,0x64,0x32,0x64,0x35,0x61,0x37,0x37,0x55,0x2c,0x30, + 0x78,0x30,0x66,0x30,0x66,0x31,0x65,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x62,0x30,0x62,0x30,0x37,0x62,0x63,0x62,0x55,0x2c,0x30,0x78,0x35,0x34,0x35,0x34,0x61,0x38, + 0x66,0x63,0x55,0x2c,0x30,0x78,0x62,0x62,0x62,0x62,0x36,0x64,0x64,0x36,0x55,0x2c,0x30,0x78,0x31,0x36,0x31,0x36,0x32,0x63,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x36, + 0x33,0x63,0x36,0x61,0x35,0x36,0x33,0x55,0x2c,0x30,0x78,0x37,0x63,0x66,0x38,0x38,0x34,0x37,0x63,0x55,0x2c,0x30,0x78,0x37,0x37,0x65,0x65,0x39,0x39,0x37,0x37,0x55, + 0x2c,0x30,0x78,0x37,0x62,0x66,0x36,0x38,0x64,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x32,0x66,0x66,0x30,0x64,0x66,0x32,0x55,0x2c,0x30,0x78,0x36,0x62,0x64,0x36, + 0x62,0x64,0x36,0x62,0x55,0x2c,0x30,0x78,0x36,0x66,0x64,0x65,0x62,0x31,0x36,0x66,0x55,0x2c,0x30,0x78,0x63,0x35,0x39,0x31,0x35,0x34,0x63,0x35,0x55,0x2c,0x0a,0x30, + 0x78,0x33,0x30,0x36,0x30,0x35,0x30,0x33,0x30,0x55,0x2c,0x30,0x78,0x30,0x31,0x30,0x32,0x30,0x33,0x30,0x31,0x55,0x2c,0x30,0x78,0x36,0x37,0x63,0x65,0x61,0x39,0x36, + 0x37,0x55,0x2c,0x30,0x78,0x32,0x62,0x35,0x36,0x37,0x64,0x32,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x65,0x65,0x37,0x31,0x39,0x66,0x65,0x55,0x2c,0x30,0x78,0x64,0x37, + 0x62,0x35,0x36,0x32,0x64,0x37,0x55,0x2c,0x30,0x78,0x61,0x62,0x34,0x64,0x65,0x36,0x61,0x62,0x55,0x2c,0x30,0x78,0x37,0x36,0x65,0x63,0x39,0x61,0x37,0x36,0x55,0x2c, + 0x0a,0x30,0x78,0x63,0x61,0x38,0x66,0x34,0x35,0x63,0x61,0x55,0x2c,0x30,0x78,0x38,0x32,0x31,0x66,0x39,0x64,0x38,0x32,0x55,0x2c,0x30,0x78,0x63,0x39,0x38,0x39,0x34, + 0x30,0x63,0x39,0x55,0x2c,0x30,0x78,0x37,0x64,0x66,0x61,0x38,0x37,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x61,0x65,0x66,0x31,0x35,0x66,0x61,0x55,0x2c,0x30,0x78, + 0x35,0x39,0x62,0x32,0x65,0x62,0x35,0x39,0x55,0x2c,0x30,0x78,0x34,0x37,0x38,0x65,0x63,0x39,0x34,0x37,0x55,0x2c,0x30,0x78,0x66,0x30,0x66,0x62,0x30,0x62,0x66,0x30, + 0x55,0x2c,0x0a,0x30,0x78,0x61,0x64,0x34,0x31,0x65,0x63,0x61,0x64,0x55,0x2c,0x30,0x78,0x64,0x34,0x62,0x33,0x36,0x37,0x64,0x34,0x55,0x2c,0x30,0x78,0x61,0x32,0x35, + 0x66,0x66,0x64,0x61,0x32,0x55,0x2c,0x30,0x78,0x61,0x66,0x34,0x35,0x65,0x61,0x61,0x66,0x55,0x2c,0x0a,0x30,0x78,0x39,0x63,0x32,0x33,0x62,0x66,0x39,0x63,0x55,0x2c, + 0x30,0x78,0x61,0x34,0x35,0x33,0x66,0x37,0x61,0x34,0x55,0x2c,0x30,0x78,0x37,0x32,0x65,0x34,0x39,0x36,0x37,0x32,0x55,0x2c,0x30,0x78,0x63,0x30,0x39,0x62,0x35,0x62, + 0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x62,0x37,0x37,0x35,0x63,0x32,0x62,0x37,0x55,0x2c,0x30,0x78,0x66,0x64,0x65,0x31,0x31,0x63,0x66,0x64,0x55,0x2c,0x30,0x78,0x39, + 0x33,0x33,0x64,0x61,0x65,0x39,0x33,0x55,0x2c,0x30,0x78,0x32,0x36,0x34,0x63,0x36,0x61,0x32,0x36,0x55,0x2c,0x0a,0x30,0x78,0x33,0x36,0x36,0x63,0x35,0x61,0x33,0x36, + 0x55,0x2c,0x30,0x78,0x33,0x66,0x37,0x65,0x34,0x31,0x33,0x66,0x55,0x2c,0x30,0x78,0x66,0x37,0x66,0x35,0x30,0x32,0x66,0x37,0x55,0x2c,0x30,0x78,0x63,0x63,0x38,0x33, + 0x34,0x66,0x63,0x63,0x55,0x2c,0x0a,0x30,0x78,0x33,0x34,0x36,0x38,0x35,0x63,0x33,0x34,0x55,0x2c,0x30,0x78,0x61,0x35,0x35,0x31,0x66,0x34,0x61,0x35,0x55,0x2c,0x30, + 0x78,0x65,0x35,0x64,0x31,0x33,0x34,0x65,0x35,0x55,0x2c,0x30,0x78,0x66,0x31,0x66,0x39,0x30,0x38,0x66,0x31,0x55,0x2c,0x0a,0x30,0x78,0x37,0x31,0x65,0x32,0x39,0x33, + 0x37,0x31,0x55,0x2c,0x30,0x78,0x64,0x38,0x61,0x62,0x37,0x33,0x64,0x38,0x55,0x2c,0x30,0x78,0x33,0x31,0x36,0x32,0x35,0x33,0x33,0x31,0x55,0x2c,0x30,0x78,0x31,0x35, + 0x32,0x61,0x33,0x66,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x34,0x30,0x38,0x30,0x63,0x30,0x34,0x55,0x2c,0x30,0x78,0x63,0x37,0x39,0x35,0x35,0x32,0x63,0x37,0x55, + 0x2c,0x30,0x78,0x32,0x33,0x34,0x36,0x36,0x35,0x32,0x33,0x55,0x2c,0x30,0x78,0x63,0x33,0x39,0x64,0x35,0x65,0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x31,0x38,0x33,0x30, + 0x32,0x38,0x31,0x38,0x55,0x2c,0x30,0x78,0x39,0x36,0x33,0x37,0x61,0x31,0x39,0x36,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x61,0x30,0x66,0x30,0x35,0x55,0x2c,0x30,0x78, + 0x39,0x61,0x32,0x66,0x62,0x35,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x30,0x37,0x30,0x65,0x30,0x39,0x30,0x37,0x55,0x2c,0x30,0x78,0x31,0x32,0x32,0x34,0x33,0x36,0x31, + 0x32,0x55,0x2c,0x30,0x78,0x38,0x30,0x31,0x62,0x39,0x62,0x38,0x30,0x55,0x2c,0x30,0x78,0x65,0x32,0x64,0x66,0x33,0x64,0x65,0x32,0x55,0x2c,0x0a,0x30,0x78,0x65,0x62, + 0x63,0x64,0x32,0x36,0x65,0x62,0x55,0x2c,0x30,0x78,0x32,0x37,0x34,0x65,0x36,0x39,0x32,0x37,0x55,0x2c,0x30,0x78,0x62,0x32,0x37,0x66,0x63,0x64,0x62,0x32,0x55,0x2c, + 0x30,0x78,0x37,0x35,0x65,0x61,0x39,0x66,0x37,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x31,0x32,0x31,0x62,0x30,0x39,0x55,0x2c,0x30,0x78,0x38,0x33,0x31,0x64,0x39, + 0x65,0x38,0x33,0x55,0x2c,0x30,0x78,0x32,0x63,0x35,0x38,0x37,0x34,0x32,0x63,0x55,0x2c,0x30,0x78,0x31,0x61,0x33,0x34,0x32,0x65,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78, + 0x31,0x62,0x33,0x36,0x32,0x64,0x31,0x62,0x55,0x2c,0x30,0x78,0x36,0x65,0x64,0x63,0x62,0x32,0x36,0x65,0x55,0x2c,0x30,0x78,0x35,0x61,0x62,0x34,0x65,0x65,0x35,0x61, + 0x55,0x2c,0x30,0x78,0x61,0x30,0x35,0x62,0x66,0x62,0x61,0x30,0x55,0x2c,0x0a,0x30,0x78,0x35,0x32,0x61,0x34,0x66,0x36,0x35,0x32,0x55,0x2c,0x30,0x78,0x33,0x62,0x37, + 0x36,0x34,0x64,0x33,0x62,0x55,0x2c,0x30,0x78,0x64,0x36,0x62,0x37,0x36,0x31,0x64,0x36,0x55,0x2c,0x30,0x78,0x62,0x33,0x37,0x64,0x63,0x65,0x62,0x33,0x55,0x2c,0x0a, + 0x30,0x78,0x32,0x39,0x35,0x32,0x37,0x62,0x32,0x39,0x55,0x2c,0x30,0x78,0x65,0x33,0x64,0x64,0x33,0x65,0x65,0x33,0x55,0x2c,0x30,0x78,0x32,0x66,0x35,0x65,0x37,0x31, + 0x32,0x66,0x55,0x2c,0x30,0x78,0x38,0x34,0x31,0x33,0x39,0x37,0x38,0x34,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33,0x61,0x36,0x66,0x35,0x35,0x33,0x55,0x2c,0x30,0x78,0x64, + 0x31,0x62,0x39,0x36,0x38,0x64,0x31,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x30,0x78,0x65,0x64,0x63,0x31,0x32,0x63,0x65,0x64,0x55, + 0x2c,0x0a,0x30,0x78,0x32,0x30,0x34,0x30,0x36,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x66,0x63,0x65,0x33,0x31,0x66,0x66,0x63,0x55,0x2c,0x30,0x78,0x62,0x31,0x37,0x39, + 0x63,0x38,0x62,0x31,0x55,0x2c,0x30,0x78,0x35,0x62,0x62,0x36,0x65,0x64,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x36,0x61,0x64,0x34,0x62,0x65,0x36,0x61,0x55,0x2c,0x30, + 0x78,0x63,0x62,0x38,0x64,0x34,0x36,0x63,0x62,0x55,0x2c,0x30,0x78,0x62,0x65,0x36,0x37,0x64,0x39,0x62,0x65,0x55,0x2c,0x30,0x78,0x33,0x39,0x37,0x32,0x34,0x62,0x33, + 0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x39,0x34,0x64,0x65,0x34,0x61,0x55,0x2c,0x30,0x78,0x34,0x63,0x39,0x38,0x64,0x34,0x34,0x63,0x55,0x2c,0x30,0x78,0x35,0x38, + 0x62,0x30,0x65,0x38,0x35,0x38,0x55,0x2c,0x30,0x78,0x63,0x66,0x38,0x35,0x34,0x61,0x63,0x66,0x55,0x2c,0x0a,0x30,0x78,0x64,0x30,0x62,0x62,0x36,0x62,0x64,0x30,0x55, + 0x2c,0x30,0x78,0x65,0x66,0x63,0x35,0x32,0x61,0x65,0x66,0x55,0x2c,0x30,0x78,0x61,0x61,0x34,0x66,0x65,0x35,0x61,0x61,0x55,0x2c,0x30,0x78,0x66,0x62,0x65,0x64,0x31, + 0x36,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x33,0x38,0x36,0x63,0x35,0x34,0x33,0x55,0x2c,0x30,0x78,0x34,0x64,0x39,0x61,0x64,0x37,0x34,0x64,0x55,0x2c,0x30,0x78, + 0x33,0x33,0x36,0x36,0x35,0x35,0x33,0x33,0x55,0x2c,0x30,0x78,0x38,0x35,0x31,0x31,0x39,0x34,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x34,0x35,0x38,0x61,0x63,0x66,0x34, + 0x35,0x55,0x2c,0x30,0x78,0x66,0x39,0x65,0x39,0x31,0x30,0x66,0x39,0x55,0x2c,0x30,0x78,0x30,0x32,0x30,0x34,0x30,0x36,0x30,0x32,0x55,0x2c,0x30,0x78,0x37,0x66,0x66, + 0x65,0x38,0x31,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x30,0x61,0x30,0x66,0x30,0x35,0x30,0x55,0x2c,0x30,0x78,0x33,0x63,0x37,0x38,0x34,0x34,0x33,0x63,0x55,0x2c, + 0x30,0x78,0x39,0x66,0x32,0x35,0x62,0x61,0x39,0x66,0x55,0x2c,0x30,0x78,0x61,0x38,0x34,0x62,0x65,0x33,0x61,0x38,0x55,0x2c,0x0a,0x30,0x78,0x35,0x31,0x61,0x32,0x66, + 0x33,0x35,0x31,0x55,0x2c,0x30,0x78,0x61,0x33,0x35,0x64,0x66,0x65,0x61,0x33,0x55,0x2c,0x30,0x78,0x34,0x30,0x38,0x30,0x63,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x38, + 0x66,0x30,0x35,0x38,0x61,0x38,0x66,0x55,0x2c,0x0a,0x30,0x78,0x39,0x32,0x33,0x66,0x61,0x64,0x39,0x32,0x55,0x2c,0x30,0x78,0x39,0x64,0x32,0x31,0x62,0x63,0x39,0x64, + 0x55,0x2c,0x30,0x78,0x33,0x38,0x37,0x30,0x34,0x38,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x35,0x66,0x31,0x30,0x34,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x63,0x36, + 0x33,0x64,0x66,0x62,0x63,0x55,0x2c,0x30,0x78,0x62,0x36,0x37,0x37,0x63,0x31,0x62,0x36,0x55,0x2c,0x30,0x78,0x64,0x61,0x61,0x66,0x37,0x35,0x64,0x61,0x55,0x2c,0x30, + 0x78,0x32,0x31,0x34,0x32,0x36,0x33,0x32,0x31,0x55,0x2c,0x0a,0x30,0x78,0x31,0x30,0x32,0x30,0x33,0x30,0x31,0x30,0x55,0x2c,0x30,0x78,0x66,0x66,0x65,0x35,0x31,0x61, + 0x66,0x66,0x55,0x2c,0x30,0x78,0x66,0x33,0x66,0x64,0x30,0x65,0x66,0x33,0x55,0x2c,0x30,0x78,0x64,0x32,0x62,0x66,0x36,0x64,0x64,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63, + 0x64,0x38,0x31,0x34,0x63,0x63,0x64,0x55,0x2c,0x30,0x78,0x30,0x63,0x31,0x38,0x31,0x34,0x30,0x63,0x55,0x2c,0x30,0x78,0x31,0x33,0x32,0x36,0x33,0x35,0x31,0x33,0x55, + 0x2c,0x30,0x78,0x65,0x63,0x63,0x33,0x32,0x66,0x65,0x63,0x55,0x2c,0x0a,0x30,0x78,0x35,0x66,0x62,0x65,0x65,0x31,0x35,0x66,0x55,0x2c,0x30,0x78,0x39,0x37,0x33,0x35, + 0x61,0x32,0x39,0x37,0x55,0x2c,0x30,0x78,0x34,0x34,0x38,0x38,0x63,0x63,0x34,0x34,0x55,0x2c,0x30,0x78,0x31,0x37,0x32,0x65,0x33,0x39,0x31,0x37,0x55,0x2c,0x0a,0x30, + 0x78,0x63,0x34,0x39,0x33,0x35,0x37,0x63,0x34,0x55,0x2c,0x30,0x78,0x61,0x37,0x35,0x35,0x66,0x32,0x61,0x37,0x55,0x2c,0x30,0x78,0x37,0x65,0x66,0x63,0x38,0x32,0x37, + 0x65,0x55,0x2c,0x30,0x78,0x33,0x64,0x37,0x61,0x34,0x37,0x33,0x64,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x63,0x38,0x61,0x63,0x36,0x34,0x55,0x2c,0x30,0x78,0x35,0x64, + 0x62,0x61,0x65,0x37,0x35,0x64,0x55,0x2c,0x30,0x78,0x31,0x39,0x33,0x32,0x32,0x62,0x31,0x39,0x55,0x2c,0x30,0x78,0x37,0x33,0x65,0x36,0x39,0x35,0x37,0x33,0x55,0x2c, + 0x0a,0x30,0x78,0x36,0x30,0x63,0x30,0x61,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x38,0x31,0x31,0x39,0x39,0x38,0x38,0x31,0x55,0x2c,0x30,0x78,0x34,0x66,0x39,0x65,0x64, + 0x31,0x34,0x66,0x55,0x2c,0x30,0x78,0x64,0x63,0x61,0x33,0x37,0x66,0x64,0x63,0x55,0x2c,0x0a,0x30,0x78,0x32,0x32,0x34,0x34,0x36,0x36,0x32,0x32,0x55,0x2c,0x30,0x78, + 0x32,0x61,0x35,0x34,0x37,0x65,0x32,0x61,0x55,0x2c,0x30,0x78,0x39,0x30,0x33,0x62,0x61,0x62,0x39,0x30,0x55,0x2c,0x30,0x78,0x38,0x38,0x30,0x62,0x38,0x33,0x38,0x38, + 0x55,0x2c,0x0a,0x30,0x78,0x34,0x36,0x38,0x63,0x63,0x61,0x34,0x36,0x55,0x2c,0x30,0x78,0x65,0x65,0x63,0x37,0x32,0x39,0x65,0x65,0x55,0x2c,0x30,0x78,0x62,0x38,0x36, + 0x62,0x64,0x33,0x62,0x38,0x55,0x2c,0x30,0x78,0x31,0x34,0x32,0x38,0x33,0x63,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x64,0x65,0x61,0x37,0x37,0x39,0x64,0x65,0x55,0x2c, + 0x30,0x78,0x35,0x65,0x62,0x63,0x65,0x32,0x35,0x65,0x55,0x2c,0x30,0x78,0x30,0x62,0x31,0x36,0x31,0x64,0x30,0x62,0x55,0x2c,0x30,0x78,0x64,0x62,0x61,0x64,0x37,0x36, + 0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x64,0x62,0x33,0x62,0x65,0x30,0x55,0x2c,0x30,0x78,0x33,0x32,0x36,0x34,0x35,0x36,0x33,0x32,0x55,0x2c,0x30,0x78,0x33, + 0x61,0x37,0x34,0x34,0x65,0x33,0x61,0x55,0x2c,0x30,0x78,0x30,0x61,0x31,0x34,0x31,0x65,0x30,0x61,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x39,0x32,0x64,0x62,0x34,0x39, + 0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x63,0x30,0x61,0x30,0x36,0x55,0x2c,0x30,0x78,0x32,0x34,0x34,0x38,0x36,0x63,0x32,0x34,0x55,0x2c,0x30,0x78,0x35,0x63,0x62,0x38, + 0x65,0x34,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x39,0x66,0x35,0x64,0x63,0x32,0x55,0x2c,0x30,0x78,0x64,0x33,0x62,0x64,0x36,0x65,0x64,0x33,0x55,0x2c,0x30, + 0x78,0x61,0x63,0x34,0x33,0x65,0x66,0x61,0x63,0x55,0x2c,0x30,0x78,0x36,0x32,0x63,0x34,0x61,0x36,0x36,0x32,0x55,0x2c,0x0a,0x30,0x78,0x39,0x31,0x33,0x39,0x61,0x38, + 0x39,0x31,0x55,0x2c,0x30,0x78,0x39,0x35,0x33,0x31,0x61,0x34,0x39,0x35,0x55,0x2c,0x30,0x78,0x65,0x34,0x64,0x33,0x33,0x37,0x65,0x34,0x55,0x2c,0x30,0x78,0x37,0x39, + 0x66,0x32,0x38,0x62,0x37,0x39,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x64,0x35,0x33,0x32,0x65,0x37,0x55,0x2c,0x30,0x78,0x63,0x38,0x38,0x62,0x34,0x33,0x63,0x38,0x55, + 0x2c,0x30,0x78,0x33,0x37,0x36,0x65,0x35,0x39,0x33,0x37,0x55,0x2c,0x30,0x78,0x36,0x64,0x64,0x61,0x62,0x37,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x30,0x31, + 0x38,0x63,0x38,0x64,0x55,0x2c,0x30,0x78,0x64,0x35,0x62,0x31,0x36,0x34,0x64,0x35,0x55,0x2c,0x30,0x78,0x34,0x65,0x39,0x63,0x64,0x32,0x34,0x65,0x55,0x2c,0x30,0x78, + 0x61,0x39,0x34,0x39,0x65,0x30,0x61,0x39,0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x64,0x38,0x62,0x34,0x36,0x63,0x55,0x2c,0x30,0x78,0x35,0x36,0x61,0x63,0x66,0x61,0x35, + 0x36,0x55,0x2c,0x30,0x78,0x66,0x34,0x66,0x33,0x30,0x37,0x66,0x34,0x55,0x2c,0x30,0x78,0x65,0x61,0x63,0x66,0x32,0x35,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35, + 0x63,0x61,0x61,0x66,0x36,0x35,0x55,0x2c,0x30,0x78,0x37,0x61,0x66,0x34,0x38,0x65,0x37,0x61,0x55,0x2c,0x30,0x78,0x61,0x65,0x34,0x37,0x65,0x39,0x61,0x65,0x55,0x2c, + 0x30,0x78,0x30,0x38,0x31,0x30,0x31,0x38,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x36,0x66,0x64,0x35,0x62,0x61,0x55,0x2c,0x30,0x78,0x37,0x38,0x66,0x30,0x38, + 0x38,0x37,0x38,0x55,0x2c,0x30,0x78,0x32,0x35,0x34,0x61,0x36,0x66,0x32,0x35,0x55,0x2c,0x30,0x78,0x32,0x65,0x35,0x63,0x37,0x32,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78, + 0x31,0x63,0x33,0x38,0x32,0x34,0x31,0x63,0x55,0x2c,0x30,0x78,0x61,0x36,0x35,0x37,0x66,0x31,0x61,0x36,0x55,0x2c,0x30,0x78,0x62,0x34,0x37,0x33,0x63,0x37,0x62,0x34, + 0x55,0x2c,0x30,0x78,0x63,0x36,0x39,0x37,0x35,0x31,0x63,0x36,0x55,0x2c,0x0a,0x30,0x78,0x65,0x38,0x63,0x62,0x32,0x33,0x65,0x38,0x55,0x2c,0x30,0x78,0x64,0x64,0x61, + 0x31,0x37,0x63,0x64,0x64,0x55,0x2c,0x30,0x78,0x37,0x34,0x65,0x38,0x39,0x63,0x37,0x34,0x55,0x2c,0x30,0x78,0x31,0x66,0x33,0x65,0x32,0x31,0x31,0x66,0x55,0x2c,0x0a, + 0x30,0x78,0x34,0x62,0x39,0x36,0x64,0x64,0x34,0x62,0x55,0x2c,0x30,0x78,0x62,0x64,0x36,0x31,0x64,0x63,0x62,0x64,0x55,0x2c,0x30,0x78,0x38,0x62,0x30,0x64,0x38,0x36, + 0x38,0x62,0x55,0x2c,0x30,0x78,0x38,0x61,0x30,0x66,0x38,0x35,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x37,0x30,0x65,0x30,0x39,0x30,0x37,0x30,0x55,0x2c,0x30,0x78,0x33, + 0x65,0x37,0x63,0x34,0x32,0x33,0x65,0x55,0x2c,0x30,0x78,0x62,0x35,0x37,0x31,0x63,0x34,0x62,0x35,0x55,0x2c,0x30,0x78,0x36,0x36,0x63,0x63,0x61,0x61,0x36,0x36,0x55, + 0x2c,0x0a,0x30,0x78,0x34,0x38,0x39,0x30,0x64,0x38,0x34,0x38,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x36,0x30,0x35,0x30,0x33,0x55,0x2c,0x30,0x78,0x66,0x36,0x66,0x37, + 0x30,0x31,0x66,0x36,0x55,0x2c,0x30,0x78,0x30,0x65,0x31,0x63,0x31,0x32,0x30,0x65,0x55,0x2c,0x0a,0x30,0x78,0x36,0x31,0x63,0x32,0x61,0x33,0x36,0x31,0x55,0x2c,0x30, + 0x78,0x33,0x35,0x36,0x61,0x35,0x66,0x33,0x35,0x55,0x2c,0x30,0x78,0x35,0x37,0x61,0x65,0x66,0x39,0x35,0x37,0x55,0x2c,0x30,0x78,0x62,0x39,0x36,0x39,0x64,0x30,0x62, + 0x39,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x31,0x37,0x39,0x31,0x38,0x36,0x55,0x2c,0x30,0x78,0x63,0x31,0x39,0x39,0x35,0x38,0x63,0x31,0x55,0x2c,0x30,0x78,0x31,0x64, + 0x33,0x61,0x32,0x37,0x31,0x64,0x55,0x2c,0x30,0x78,0x39,0x65,0x32,0x37,0x62,0x39,0x39,0x65,0x55,0x2c,0x0a,0x30,0x78,0x65,0x31,0x64,0x39,0x33,0x38,0x65,0x31,0x55, + 0x2c,0x30,0x78,0x66,0x38,0x65,0x62,0x31,0x33,0x66,0x38,0x55,0x2c,0x30,0x78,0x39,0x38,0x32,0x62,0x62,0x33,0x39,0x38,0x55,0x2c,0x30,0x78,0x31,0x31,0x32,0x32,0x33, + 0x33,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x36,0x39,0x64,0x32,0x62,0x62,0x36,0x39,0x55,0x2c,0x30,0x78,0x64,0x39,0x61,0x39,0x37,0x30,0x64,0x39,0x55,0x2c,0x30,0x78, + 0x38,0x65,0x30,0x37,0x38,0x39,0x38,0x65,0x55,0x2c,0x30,0x78,0x39,0x34,0x33,0x33,0x61,0x37,0x39,0x34,0x55,0x2c,0x0a,0x30,0x78,0x39,0x62,0x32,0x64,0x62,0x36,0x39, + 0x62,0x55,0x2c,0x30,0x78,0x31,0x65,0x33,0x63,0x32,0x32,0x31,0x65,0x55,0x2c,0x30,0x78,0x38,0x37,0x31,0x35,0x39,0x32,0x38,0x37,0x55,0x2c,0x30,0x78,0x65,0x39,0x63, + 0x39,0x32,0x30,0x65,0x39,0x55,0x2c,0x0a,0x30,0x78,0x63,0x65,0x38,0x37,0x34,0x39,0x63,0x65,0x55,0x2c,0x30,0x78,0x35,0x35,0x61,0x61,0x66,0x66,0x35,0x35,0x55,0x2c, + 0x30,0x78,0x32,0x38,0x35,0x30,0x37,0x38,0x32,0x38,0x55,0x2c,0x30,0x78,0x64,0x66,0x61,0x35,0x37,0x61,0x64,0x66,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x30,0x33,0x38, + 0x66,0x38,0x63,0x55,0x2c,0x30,0x78,0x61,0x31,0x35,0x39,0x66,0x38,0x61,0x31,0x55,0x2c,0x30,0x78,0x38,0x39,0x30,0x39,0x38,0x30,0x38,0x39,0x55,0x2c,0x30,0x78,0x30, + 0x64,0x31,0x61,0x31,0x37,0x30,0x64,0x55,0x2c,0x0a,0x30,0x78,0x62,0x66,0x36,0x35,0x64,0x61,0x62,0x66,0x55,0x2c,0x30,0x78,0x65,0x36,0x64,0x37,0x33,0x31,0x65,0x36, + 0x55,0x2c,0x30,0x78,0x34,0x32,0x38,0x34,0x63,0x36,0x34,0x32,0x55,0x2c,0x30,0x78,0x36,0x38,0x64,0x30,0x62,0x38,0x36,0x38,0x55,0x2c,0x0a,0x30,0x78,0x34,0x31,0x38, + 0x32,0x63,0x33,0x34,0x31,0x55,0x2c,0x30,0x78,0x39,0x39,0x32,0x39,0x62,0x30,0x39,0x39,0x55,0x2c,0x30,0x78,0x32,0x64,0x35,0x61,0x37,0x37,0x32,0x64,0x55,0x2c,0x30, + 0x78,0x30,0x66,0x31,0x65,0x31,0x31,0x30,0x66,0x55,0x2c,0x0a,0x30,0x78,0x62,0x30,0x37,0x62,0x63,0x62,0x62,0x30,0x55,0x2c,0x30,0x78,0x35,0x34,0x61,0x38,0x66,0x63, + 0x35,0x34,0x55,0x2c,0x30,0x78,0x62,0x62,0x36,0x64,0x64,0x36,0x62,0x62,0x55,0x2c,0x30,0x78,0x31,0x36,0x32,0x63,0x33,0x61,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x63, + 0x36,0x61,0x35,0x36,0x33,0x36,0x33,0x55,0x2c,0x30,0x78,0x66,0x38,0x38,0x34,0x37,0x63,0x37,0x63,0x55,0x2c,0x30,0x78,0x65,0x65,0x39,0x39,0x37,0x37,0x37,0x37,0x55, + 0x2c,0x30,0x78,0x66,0x36,0x38,0x64,0x37,0x62,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x66,0x30,0x64,0x66,0x32,0x66,0x32,0x55,0x2c,0x30,0x78,0x64,0x36,0x62,0x64, + 0x36,0x62,0x36,0x62,0x55,0x2c,0x30,0x78,0x64,0x65,0x62,0x31,0x36,0x66,0x36,0x66,0x55,0x2c,0x30,0x78,0x39,0x31,0x35,0x34,0x63,0x35,0x63,0x35,0x55,0x2c,0x0a,0x30, + 0x78,0x36,0x30,0x35,0x30,0x33,0x30,0x33,0x30,0x55,0x2c,0x30,0x78,0x30,0x32,0x30,0x33,0x30,0x31,0x30,0x31,0x55,0x2c,0x30,0x78,0x63,0x65,0x61,0x39,0x36,0x37,0x36, + 0x37,0x55,0x2c,0x30,0x78,0x35,0x36,0x37,0x64,0x32,0x62,0x32,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x31,0x39,0x66,0x65,0x66,0x65,0x55,0x2c,0x30,0x78,0x62,0x35, + 0x36,0x32,0x64,0x37,0x64,0x37,0x55,0x2c,0x30,0x78,0x34,0x64,0x65,0x36,0x61,0x62,0x61,0x62,0x55,0x2c,0x30,0x78,0x65,0x63,0x39,0x61,0x37,0x36,0x37,0x36,0x55,0x2c, + 0x0a,0x30,0x78,0x38,0x66,0x34,0x35,0x63,0x61,0x63,0x61,0x55,0x2c,0x30,0x78,0x31,0x66,0x39,0x64,0x38,0x32,0x38,0x32,0x55,0x2c,0x30,0x78,0x38,0x39,0x34,0x30,0x63, + 0x39,0x63,0x39,0x55,0x2c,0x30,0x78,0x66,0x61,0x38,0x37,0x37,0x64,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x65,0x66,0x31,0x35,0x66,0x61,0x66,0x61,0x55,0x2c,0x30,0x78, + 0x62,0x32,0x65,0x62,0x35,0x39,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x65,0x63,0x39,0x34,0x37,0x34,0x37,0x55,0x2c,0x30,0x78,0x66,0x62,0x30,0x62,0x66,0x30,0x66,0x30, + 0x55,0x2c,0x0a,0x30,0x78,0x34,0x31,0x65,0x63,0x61,0x64,0x61,0x64,0x55,0x2c,0x30,0x78,0x62,0x33,0x36,0x37,0x64,0x34,0x64,0x34,0x55,0x2c,0x30,0x78,0x35,0x66,0x66, + 0x64,0x61,0x32,0x61,0x32,0x55,0x2c,0x30,0x78,0x34,0x35,0x65,0x61,0x61,0x66,0x61,0x66,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x62,0x66,0x39,0x63,0x39,0x63,0x55,0x2c, + 0x30,0x78,0x35,0x33,0x66,0x37,0x61,0x34,0x61,0x34,0x55,0x2c,0x30,0x78,0x65,0x34,0x39,0x36,0x37,0x32,0x37,0x32,0x55,0x2c,0x30,0x78,0x39,0x62,0x35,0x62,0x63,0x30, + 0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x37,0x35,0x63,0x32,0x62,0x37,0x62,0x37,0x55,0x2c,0x30,0x78,0x65,0x31,0x31,0x63,0x66,0x64,0x66,0x64,0x55,0x2c,0x30,0x78,0x33, + 0x64,0x61,0x65,0x39,0x33,0x39,0x33,0x55,0x2c,0x30,0x78,0x34,0x63,0x36,0x61,0x32,0x36,0x32,0x36,0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x35,0x61,0x33,0x36,0x33,0x36, + 0x55,0x2c,0x30,0x78,0x37,0x65,0x34,0x31,0x33,0x66,0x33,0x66,0x55,0x2c,0x30,0x78,0x66,0x35,0x30,0x32,0x66,0x37,0x66,0x37,0x55,0x2c,0x30,0x78,0x38,0x33,0x34,0x66, + 0x63,0x63,0x63,0x63,0x55,0x2c,0x0a,0x30,0x78,0x36,0x38,0x35,0x63,0x33,0x34,0x33,0x34,0x55,0x2c,0x30,0x78,0x35,0x31,0x66,0x34,0x61,0x35,0x61,0x35,0x55,0x2c,0x30, + 0x78,0x64,0x31,0x33,0x34,0x65,0x35,0x65,0x35,0x55,0x2c,0x30,0x78,0x66,0x39,0x30,0x38,0x66,0x31,0x66,0x31,0x55,0x2c,0x0a,0x30,0x78,0x65,0x32,0x39,0x33,0x37,0x31, + 0x37,0x31,0x55,0x2c,0x30,0x78,0x61,0x62,0x37,0x33,0x64,0x38,0x64,0x38,0x55,0x2c,0x30,0x78,0x36,0x32,0x35,0x33,0x33,0x31,0x33,0x31,0x55,0x2c,0x30,0x78,0x32,0x61, + 0x33,0x66,0x31,0x35,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x30,0x38,0x30,0x63,0x30,0x34,0x30,0x34,0x55,0x2c,0x30,0x78,0x39,0x35,0x35,0x32,0x63,0x37,0x63,0x37,0x55, + 0x2c,0x30,0x78,0x34,0x36,0x36,0x35,0x32,0x33,0x32,0x33,0x55,0x2c,0x30,0x78,0x39,0x64,0x35,0x65,0x63,0x33,0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30,0x32,0x38, + 0x31,0x38,0x31,0x38,0x55,0x2c,0x30,0x78,0x33,0x37,0x61,0x31,0x39,0x36,0x39,0x36,0x55,0x2c,0x30,0x78,0x30,0x61,0x30,0x66,0x30,0x35,0x30,0x35,0x55,0x2c,0x30,0x78, + 0x32,0x66,0x62,0x35,0x39,0x61,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x30,0x65,0x30,0x39,0x30,0x37,0x30,0x37,0x55,0x2c,0x30,0x78,0x32,0x34,0x33,0x36,0x31,0x32,0x31, + 0x32,0x55,0x2c,0x30,0x78,0x31,0x62,0x39,0x62,0x38,0x30,0x38,0x30,0x55,0x2c,0x30,0x78,0x64,0x66,0x33,0x64,0x65,0x32,0x65,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64, + 0x32,0x36,0x65,0x62,0x65,0x62,0x55,0x2c,0x30,0x78,0x34,0x65,0x36,0x39,0x32,0x37,0x32,0x37,0x55,0x2c,0x30,0x78,0x37,0x66,0x63,0x64,0x62,0x32,0x62,0x32,0x55,0x2c, + 0x30,0x78,0x65,0x61,0x39,0x66,0x37,0x35,0x37,0x35,0x55,0x2c,0x0a,0x30,0x78,0x31,0x32,0x31,0x62,0x30,0x39,0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x64,0x39,0x65,0x38, + 0x33,0x38,0x33,0x55,0x2c,0x30,0x78,0x35,0x38,0x37,0x34,0x32,0x63,0x32,0x63,0x55,0x2c,0x30,0x78,0x33,0x34,0x32,0x65,0x31,0x61,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78, + 0x33,0x36,0x32,0x64,0x31,0x62,0x31,0x62,0x55,0x2c,0x30,0x78,0x64,0x63,0x62,0x32,0x36,0x65,0x36,0x65,0x55,0x2c,0x30,0x78,0x62,0x34,0x65,0x65,0x35,0x61,0x35,0x61, + 0x55,0x2c,0x30,0x78,0x35,0x62,0x66,0x62,0x61,0x30,0x61,0x30,0x55,0x2c,0x0a,0x30,0x78,0x61,0x34,0x66,0x36,0x35,0x32,0x35,0x32,0x55,0x2c,0x30,0x78,0x37,0x36,0x34, + 0x64,0x33,0x62,0x33,0x62,0x55,0x2c,0x30,0x78,0x62,0x37,0x36,0x31,0x64,0x36,0x64,0x36,0x55,0x2c,0x30,0x78,0x37,0x64,0x63,0x65,0x62,0x33,0x62,0x33,0x55,0x2c,0x0a, + 0x30,0x78,0x35,0x32,0x37,0x62,0x32,0x39,0x32,0x39,0x55,0x2c,0x30,0x78,0x64,0x64,0x33,0x65,0x65,0x33,0x65,0x33,0x55,0x2c,0x30,0x78,0x35,0x65,0x37,0x31,0x32,0x66, + 0x32,0x66,0x55,0x2c,0x30,0x78,0x31,0x33,0x39,0x37,0x38,0x34,0x38,0x34,0x55,0x2c,0x0a,0x30,0x78,0x61,0x36,0x66,0x35,0x35,0x33,0x35,0x33,0x55,0x2c,0x30,0x78,0x62, + 0x39,0x36,0x38,0x64,0x31,0x64,0x31,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x2c,0x30,0x78,0x63,0x31,0x32,0x63,0x65,0x64,0x65,0x64,0x55, + 0x2c,0x0a,0x30,0x78,0x34,0x30,0x36,0x30,0x32,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x65,0x33,0x31,0x66,0x66,0x63,0x66,0x63,0x55,0x2c,0x30,0x78,0x37,0x39,0x63,0x38, + 0x62,0x31,0x62,0x31,0x55,0x2c,0x30,0x78,0x62,0x36,0x65,0x64,0x35,0x62,0x35,0x62,0x55,0x2c,0x0a,0x30,0x78,0x64,0x34,0x62,0x65,0x36,0x61,0x36,0x61,0x55,0x2c,0x30, + 0x78,0x38,0x64,0x34,0x36,0x63,0x62,0x63,0x62,0x55,0x2c,0x30,0x78,0x36,0x37,0x64,0x39,0x62,0x65,0x62,0x65,0x55,0x2c,0x30,0x78,0x37,0x32,0x34,0x62,0x33,0x39,0x33, + 0x39,0x55,0x2c,0x0a,0x30,0x78,0x39,0x34,0x64,0x65,0x34,0x61,0x34,0x61,0x55,0x2c,0x30,0x78,0x39,0x38,0x64,0x34,0x34,0x63,0x34,0x63,0x55,0x2c,0x30,0x78,0x62,0x30, + 0x65,0x38,0x35,0x38,0x35,0x38,0x55,0x2c,0x30,0x78,0x38,0x35,0x34,0x61,0x63,0x66,0x63,0x66,0x55,0x2c,0x0a,0x30,0x78,0x62,0x62,0x36,0x62,0x64,0x30,0x64,0x30,0x55, + 0x2c,0x30,0x78,0x63,0x35,0x32,0x61,0x65,0x66,0x65,0x66,0x55,0x2c,0x30,0x78,0x34,0x66,0x65,0x35,0x61,0x61,0x61,0x61,0x55,0x2c,0x30,0x78,0x65,0x64,0x31,0x36,0x66, + 0x62,0x66,0x62,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x63,0x35,0x34,0x33,0x34,0x33,0x55,0x2c,0x30,0x78,0x39,0x61,0x64,0x37,0x34,0x64,0x34,0x64,0x55,0x2c,0x30,0x78, + 0x36,0x36,0x35,0x35,0x33,0x33,0x33,0x33,0x55,0x2c,0x30,0x78,0x31,0x31,0x39,0x34,0x38,0x35,0x38,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x61,0x63,0x66,0x34,0x35,0x34, + 0x35,0x55,0x2c,0x30,0x78,0x65,0x39,0x31,0x30,0x66,0x39,0x66,0x39,0x55,0x2c,0x30,0x78,0x30,0x34,0x30,0x36,0x30,0x32,0x30,0x32,0x55,0x2c,0x30,0x78,0x66,0x65,0x38, + 0x31,0x37,0x66,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x61,0x30,0x66,0x30,0x35,0x30,0x35,0x30,0x55,0x2c,0x30,0x78,0x37,0x38,0x34,0x34,0x33,0x63,0x33,0x63,0x55,0x2c, + 0x30,0x78,0x32,0x35,0x62,0x61,0x39,0x66,0x39,0x66,0x55,0x2c,0x30,0x78,0x34,0x62,0x65,0x33,0x61,0x38,0x61,0x38,0x55,0x2c,0x0a,0x30,0x78,0x61,0x32,0x66,0x33,0x35, + 0x31,0x35,0x31,0x55,0x2c,0x30,0x78,0x35,0x64,0x66,0x65,0x61,0x33,0x61,0x33,0x55,0x2c,0x30,0x78,0x38,0x30,0x63,0x30,0x34,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x30, + 0x35,0x38,0x61,0x38,0x66,0x38,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x66,0x61,0x64,0x39,0x32,0x39,0x32,0x55,0x2c,0x30,0x78,0x32,0x31,0x62,0x63,0x39,0x64,0x39,0x64, + 0x55,0x2c,0x30,0x78,0x37,0x30,0x34,0x38,0x33,0x38,0x33,0x38,0x55,0x2c,0x30,0x78,0x66,0x31,0x30,0x34,0x66,0x35,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x36,0x33,0x64, + 0x66,0x62,0x63,0x62,0x63,0x55,0x2c,0x30,0x78,0x37,0x37,0x63,0x31,0x62,0x36,0x62,0x36,0x55,0x2c,0x30,0x78,0x61,0x66,0x37,0x35,0x64,0x61,0x64,0x61,0x55,0x2c,0x30, + 0x78,0x34,0x32,0x36,0x33,0x32,0x31,0x32,0x31,0x55,0x2c,0x0a,0x30,0x78,0x32,0x30,0x33,0x30,0x31,0x30,0x31,0x30,0x55,0x2c,0x30,0x78,0x65,0x35,0x31,0x61,0x66,0x66, + 0x66,0x66,0x55,0x2c,0x30,0x78,0x66,0x64,0x30,0x65,0x66,0x33,0x66,0x33,0x55,0x2c,0x30,0x78,0x62,0x66,0x36,0x64,0x64,0x32,0x64,0x32,0x55,0x2c,0x0a,0x30,0x78,0x38, + 0x31,0x34,0x63,0x63,0x64,0x63,0x64,0x55,0x2c,0x30,0x78,0x31,0x38,0x31,0x34,0x30,0x63,0x30,0x63,0x55,0x2c,0x30,0x78,0x32,0x36,0x33,0x35,0x31,0x33,0x31,0x33,0x55, + 0x2c,0x30,0x78,0x63,0x33,0x32,0x66,0x65,0x63,0x65,0x63,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x65,0x31,0x35,0x66,0x35,0x66,0x55,0x2c,0x30,0x78,0x33,0x35,0x61,0x32, + 0x39,0x37,0x39,0x37,0x55,0x2c,0x30,0x78,0x38,0x38,0x63,0x63,0x34,0x34,0x34,0x34,0x55,0x2c,0x30,0x78,0x32,0x65,0x33,0x39,0x31,0x37,0x31,0x37,0x55,0x2c,0x0a,0x30, + 0x78,0x39,0x33,0x35,0x37,0x63,0x34,0x63,0x34,0x55,0x2c,0x30,0x78,0x35,0x35,0x66,0x32,0x61,0x37,0x61,0x37,0x55,0x2c,0x30,0x78,0x66,0x63,0x38,0x32,0x37,0x65,0x37, + 0x65,0x55,0x2c,0x30,0x78,0x37,0x61,0x34,0x37,0x33,0x64,0x33,0x64,0x55,0x2c,0x0a,0x30,0x78,0x63,0x38,0x61,0x63,0x36,0x34,0x36,0x34,0x55,0x2c,0x30,0x78,0x62,0x61, + 0x65,0x37,0x35,0x64,0x35,0x64,0x55,0x2c,0x30,0x78,0x33,0x32,0x32,0x62,0x31,0x39,0x31,0x39,0x55,0x2c,0x30,0x78,0x65,0x36,0x39,0x35,0x37,0x33,0x37,0x33,0x55,0x2c, + 0x0a,0x30,0x78,0x63,0x30,0x61,0x30,0x36,0x30,0x36,0x30,0x55,0x2c,0x30,0x78,0x31,0x39,0x39,0x38,0x38,0x31,0x38,0x31,0x55,0x2c,0x30,0x78,0x39,0x65,0x64,0x31,0x34, + 0x66,0x34,0x66,0x55,0x2c,0x30,0x78,0x61,0x33,0x37,0x66,0x64,0x63,0x64,0x63,0x55,0x2c,0x0a,0x30,0x78,0x34,0x34,0x36,0x36,0x32,0x32,0x32,0x32,0x55,0x2c,0x30,0x78, + 0x35,0x34,0x37,0x65,0x32,0x61,0x32,0x61,0x55,0x2c,0x30,0x78,0x33,0x62,0x61,0x62,0x39,0x30,0x39,0x30,0x55,0x2c,0x30,0x78,0x30,0x62,0x38,0x33,0x38,0x38,0x38,0x38, + 0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x63,0x61,0x34,0x36,0x34,0x36,0x55,0x2c,0x30,0x78,0x63,0x37,0x32,0x39,0x65,0x65,0x65,0x65,0x55,0x2c,0x30,0x78,0x36,0x62,0x64, + 0x33,0x62,0x38,0x62,0x38,0x55,0x2c,0x30,0x78,0x32,0x38,0x33,0x63,0x31,0x34,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x61,0x37,0x37,0x39,0x64,0x65,0x64,0x65,0x55,0x2c, + 0x30,0x78,0x62,0x63,0x65,0x32,0x35,0x65,0x35,0x65,0x55,0x2c,0x30,0x78,0x31,0x36,0x31,0x64,0x30,0x62,0x30,0x62,0x55,0x2c,0x30,0x78,0x61,0x64,0x37,0x36,0x64,0x62, + 0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x64,0x62,0x33,0x62,0x65,0x30,0x65,0x30,0x55,0x2c,0x30,0x78,0x36,0x34,0x35,0x36,0x33,0x32,0x33,0x32,0x55,0x2c,0x30,0x78,0x37, + 0x34,0x34,0x65,0x33,0x61,0x33,0x61,0x55,0x2c,0x30,0x78,0x31,0x34,0x31,0x65,0x30,0x61,0x30,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x32,0x64,0x62,0x34,0x39,0x34,0x39, + 0x55,0x2c,0x30,0x78,0x30,0x63,0x30,0x61,0x30,0x36,0x30,0x36,0x55,0x2c,0x30,0x78,0x34,0x38,0x36,0x63,0x32,0x34,0x32,0x34,0x55,0x2c,0x30,0x78,0x62,0x38,0x65,0x34, + 0x35,0x63,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x39,0x66,0x35,0x64,0x63,0x32,0x63,0x32,0x55,0x2c,0x30,0x78,0x62,0x64,0x36,0x65,0x64,0x33,0x64,0x33,0x55,0x2c,0x30, + 0x78,0x34,0x33,0x65,0x66,0x61,0x63,0x61,0x63,0x55,0x2c,0x30,0x78,0x63,0x34,0x61,0x36,0x36,0x32,0x36,0x32,0x55,0x2c,0x0a,0x30,0x78,0x33,0x39,0x61,0x38,0x39,0x31, + 0x39,0x31,0x55,0x2c,0x30,0x78,0x33,0x31,0x61,0x34,0x39,0x35,0x39,0x35,0x55,0x2c,0x30,0x78,0x64,0x33,0x33,0x37,0x65,0x34,0x65,0x34,0x55,0x2c,0x30,0x78,0x66,0x32, + 0x38,0x62,0x37,0x39,0x37,0x39,0x55,0x2c,0x0a,0x30,0x78,0x64,0x35,0x33,0x32,0x65,0x37,0x65,0x37,0x55,0x2c,0x30,0x78,0x38,0x62,0x34,0x33,0x63,0x38,0x63,0x38,0x55, + 0x2c,0x30,0x78,0x36,0x65,0x35,0x39,0x33,0x37,0x33,0x37,0x55,0x2c,0x30,0x78,0x64,0x61,0x62,0x37,0x36,0x64,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x31,0x38,0x63, + 0x38,0x64,0x38,0x64,0x55,0x2c,0x30,0x78,0x62,0x31,0x36,0x34,0x64,0x35,0x64,0x35,0x55,0x2c,0x30,0x78,0x39,0x63,0x64,0x32,0x34,0x65,0x34,0x65,0x55,0x2c,0x30,0x78, + 0x34,0x39,0x65,0x30,0x61,0x39,0x61,0x39,0x55,0x2c,0x0a,0x30,0x78,0x64,0x38,0x62,0x34,0x36,0x63,0x36,0x63,0x55,0x2c,0x30,0x78,0x61,0x63,0x66,0x61,0x35,0x36,0x35, + 0x36,0x55,0x2c,0x30,0x78,0x66,0x33,0x30,0x37,0x66,0x34,0x66,0x34,0x55,0x2c,0x30,0x78,0x63,0x66,0x32,0x35,0x65,0x61,0x65,0x61,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61, + 0x61,0x66,0x36,0x35,0x36,0x35,0x55,0x2c,0x30,0x78,0x66,0x34,0x38,0x65,0x37,0x61,0x37,0x61,0x55,0x2c,0x30,0x78,0x34,0x37,0x65,0x39,0x61,0x65,0x61,0x65,0x55,0x2c, + 0x30,0x78,0x31,0x30,0x31,0x38,0x30,0x38,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x36,0x66,0x64,0x35,0x62,0x61,0x62,0x61,0x55,0x2c,0x30,0x78,0x66,0x30,0x38,0x38,0x37, + 0x38,0x37,0x38,0x55,0x2c,0x30,0x78,0x34,0x61,0x36,0x66,0x32,0x35,0x32,0x35,0x55,0x2c,0x30,0x78,0x35,0x63,0x37,0x32,0x32,0x65,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78, + 0x33,0x38,0x32,0x34,0x31,0x63,0x31,0x63,0x55,0x2c,0x30,0x78,0x35,0x37,0x66,0x31,0x61,0x36,0x61,0x36,0x55,0x2c,0x30,0x78,0x37,0x33,0x63,0x37,0x62,0x34,0x62,0x34, + 0x55,0x2c,0x30,0x78,0x39,0x37,0x35,0x31,0x63,0x36,0x63,0x36,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x32,0x33,0x65,0x38,0x65,0x38,0x55,0x2c,0x30,0x78,0x61,0x31,0x37, + 0x63,0x64,0x64,0x64,0x64,0x55,0x2c,0x30,0x78,0x65,0x38,0x39,0x63,0x37,0x34,0x37,0x34,0x55,0x2c,0x30,0x78,0x33,0x65,0x32,0x31,0x31,0x66,0x31,0x66,0x55,0x2c,0x0a, + 0x30,0x78,0x39,0x36,0x64,0x64,0x34,0x62,0x34,0x62,0x55,0x2c,0x30,0x78,0x36,0x31,0x64,0x63,0x62,0x64,0x62,0x64,0x55,0x2c,0x30,0x78,0x30,0x64,0x38,0x36,0x38,0x62, + 0x38,0x62,0x55,0x2c,0x30,0x78,0x30,0x66,0x38,0x35,0x38,0x61,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x39,0x30,0x37,0x30,0x37,0x30,0x55,0x2c,0x30,0x78,0x37, + 0x63,0x34,0x32,0x33,0x65,0x33,0x65,0x55,0x2c,0x30,0x78,0x37,0x31,0x63,0x34,0x62,0x35,0x62,0x35,0x55,0x2c,0x30,0x78,0x63,0x63,0x61,0x61,0x36,0x36,0x36,0x36,0x55, + 0x2c,0x0a,0x30,0x78,0x39,0x30,0x64,0x38,0x34,0x38,0x34,0x38,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x35,0x30,0x33,0x30,0x33,0x55,0x2c,0x30,0x78,0x66,0x37,0x30,0x31, + 0x66,0x36,0x66,0x36,0x55,0x2c,0x30,0x78,0x31,0x63,0x31,0x32,0x30,0x65,0x30,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x61,0x33,0x36,0x31,0x36,0x31,0x55,0x2c,0x30, + 0x78,0x36,0x61,0x35,0x66,0x33,0x35,0x33,0x35,0x55,0x2c,0x30,0x78,0x61,0x65,0x66,0x39,0x35,0x37,0x35,0x37,0x55,0x2c,0x30,0x78,0x36,0x39,0x64,0x30,0x62,0x39,0x62, + 0x39,0x55,0x2c,0x0a,0x30,0x78,0x31,0x37,0x39,0x31,0x38,0x36,0x38,0x36,0x55,0x2c,0x30,0x78,0x39,0x39,0x35,0x38,0x63,0x31,0x63,0x31,0x55,0x2c,0x30,0x78,0x33,0x61, + 0x32,0x37,0x31,0x64,0x31,0x64,0x55,0x2c,0x30,0x78,0x32,0x37,0x62,0x39,0x39,0x65,0x39,0x65,0x55,0x2c,0x0a,0x30,0x78,0x64,0x39,0x33,0x38,0x65,0x31,0x65,0x31,0x55, + 0x2c,0x30,0x78,0x65,0x62,0x31,0x33,0x66,0x38,0x66,0x38,0x55,0x2c,0x30,0x78,0x32,0x62,0x62,0x33,0x39,0x38,0x39,0x38,0x55,0x2c,0x30,0x78,0x32,0x32,0x33,0x33,0x31, + 0x31,0x31,0x31,0x55,0x2c,0x0a,0x30,0x78,0x64,0x32,0x62,0x62,0x36,0x39,0x36,0x39,0x55,0x2c,0x30,0x78,0x61,0x39,0x37,0x30,0x64,0x39,0x64,0x39,0x55,0x2c,0x30,0x78, + 0x30,0x37,0x38,0x39,0x38,0x65,0x38,0x65,0x55,0x2c,0x30,0x78,0x33,0x33,0x61,0x37,0x39,0x34,0x39,0x34,0x55,0x2c,0x0a,0x30,0x78,0x32,0x64,0x62,0x36,0x39,0x62,0x39, + 0x62,0x55,0x2c,0x30,0x78,0x33,0x63,0x32,0x32,0x31,0x65,0x31,0x65,0x55,0x2c,0x30,0x78,0x31,0x35,0x39,0x32,0x38,0x37,0x38,0x37,0x55,0x2c,0x30,0x78,0x63,0x39,0x32, + 0x30,0x65,0x39,0x65,0x39,0x55,0x2c,0x0a,0x30,0x78,0x38,0x37,0x34,0x39,0x63,0x65,0x63,0x65,0x55,0x2c,0x30,0x78,0x61,0x61,0x66,0x66,0x35,0x35,0x35,0x35,0x55,0x2c, + 0x30,0x78,0x35,0x30,0x37,0x38,0x32,0x38,0x32,0x38,0x55,0x2c,0x30,0x78,0x61,0x35,0x37,0x61,0x64,0x66,0x64,0x66,0x55,0x2c,0x0a,0x30,0x78,0x30,0x33,0x38,0x66,0x38, + 0x63,0x38,0x63,0x55,0x2c,0x30,0x78,0x35,0x39,0x66,0x38,0x61,0x31,0x61,0x31,0x55,0x2c,0x30,0x78,0x30,0x39,0x38,0x30,0x38,0x39,0x38,0x39,0x55,0x2c,0x30,0x78,0x31, + 0x61,0x31,0x37,0x30,0x64,0x30,0x64,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35,0x64,0x61,0x62,0x66,0x62,0x66,0x55,0x2c,0x30,0x78,0x64,0x37,0x33,0x31,0x65,0x36,0x65,0x36, + 0x55,0x2c,0x30,0x78,0x38,0x34,0x63,0x36,0x34,0x32,0x34,0x32,0x55,0x2c,0x30,0x78,0x64,0x30,0x62,0x38,0x36,0x38,0x36,0x38,0x55,0x2c,0x0a,0x30,0x78,0x38,0x32,0x63, + 0x33,0x34,0x31,0x34,0x31,0x55,0x2c,0x30,0x78,0x32,0x39,0x62,0x30,0x39,0x39,0x39,0x39,0x55,0x2c,0x30,0x78,0x35,0x61,0x37,0x37,0x32,0x64,0x32,0x64,0x55,0x2c,0x30, + 0x78,0x31,0x65,0x31,0x31,0x30,0x66,0x30,0x66,0x55,0x2c,0x0a,0x30,0x78,0x37,0x62,0x63,0x62,0x62,0x30,0x62,0x30,0x55,0x2c,0x30,0x78,0x61,0x38,0x66,0x63,0x35,0x34, + 0x35,0x34,0x55,0x2c,0x30,0x78,0x36,0x64,0x64,0x36,0x62,0x62,0x62,0x62,0x55,0x2c,0x30,0x78,0x32,0x63,0x33,0x61,0x31,0x36,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x35, + 0x30,0x61,0x37,0x66,0x34,0x35,0x31,0x55,0x2c,0x30,0x78,0x35,0x33,0x36,0x35,0x34,0x31,0x37,0x65,0x55,0x2c,0x30,0x78,0x63,0x33,0x61,0x34,0x31,0x37,0x31,0x61,0x55, + 0x2c,0x30,0x78,0x39,0x36,0x35,0x65,0x32,0x37,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x36,0x62,0x61,0x62,0x33,0x62,0x55,0x2c,0x30,0x78,0x66,0x31,0x34,0x35, + 0x39,0x64,0x31,0x66,0x55,0x2c,0x30,0x78,0x61,0x62,0x35,0x38,0x66,0x61,0x61,0x63,0x55,0x2c,0x30,0x78,0x39,0x33,0x30,0x33,0x65,0x33,0x34,0x62,0x55,0x2c,0x0a,0x30, + 0x78,0x35,0x35,0x66,0x61,0x33,0x30,0x32,0x30,0x55,0x2c,0x30,0x78,0x66,0x36,0x36,0x64,0x37,0x36,0x61,0x64,0x55,0x2c,0x30,0x78,0x39,0x31,0x37,0x36,0x63,0x63,0x38, + 0x38,0x55,0x2c,0x30,0x78,0x32,0x35,0x34,0x63,0x30,0x32,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x66,0x63,0x64,0x37,0x65,0x35,0x34,0x66,0x55,0x2c,0x30,0x78,0x64,0x37, + 0x63,0x62,0x32,0x61,0x63,0x35,0x55,0x2c,0x30,0x78,0x38,0x30,0x34,0x34,0x33,0x35,0x32,0x36,0x55,0x2c,0x30,0x78,0x38,0x66,0x61,0x33,0x36,0x32,0x62,0x35,0x55,0x2c, + 0x0a,0x30,0x78,0x34,0x39,0x35,0x61,0x62,0x31,0x64,0x65,0x55,0x2c,0x30,0x78,0x36,0x37,0x31,0x62,0x62,0x61,0x32,0x35,0x55,0x2c,0x30,0x78,0x39,0x38,0x30,0x65,0x65, + 0x61,0x34,0x35,0x55,0x2c,0x30,0x78,0x65,0x31,0x63,0x30,0x66,0x65,0x35,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x32,0x37,0x35,0x32,0x66,0x63,0x33,0x55,0x2c,0x30,0x78, + 0x31,0x32,0x66,0x30,0x34,0x63,0x38,0x31,0x55,0x2c,0x30,0x78,0x61,0x33,0x39,0x37,0x34,0x36,0x38,0x64,0x55,0x2c,0x30,0x78,0x63,0x36,0x66,0x39,0x64,0x33,0x36,0x62, + 0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x35,0x66,0x38,0x66,0x30,0x33,0x55,0x2c,0x30,0x78,0x39,0x35,0x39,0x63,0x39,0x32,0x31,0x35,0x55,0x2c,0x30,0x78,0x65,0x62,0x37, + 0x61,0x36,0x64,0x62,0x66,0x55,0x2c,0x30,0x78,0x64,0x61,0x35,0x39,0x35,0x32,0x39,0x35,0x55,0x2c,0x0a,0x30,0x78,0x32,0x64,0x38,0x33,0x62,0x65,0x64,0x34,0x55,0x2c, + 0x30,0x78,0x64,0x33,0x32,0x31,0x37,0x34,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x39,0x36,0x39,0x65,0x30,0x34,0x39,0x55,0x2c,0x30,0x78,0x34,0x34,0x63,0x38,0x63,0x39, + 0x38,0x65,0x55,0x2c,0x0a,0x30,0x78,0x36,0x61,0x38,0x39,0x63,0x32,0x37,0x35,0x55,0x2c,0x30,0x78,0x37,0x38,0x37,0x39,0x38,0x65,0x66,0x34,0x55,0x2c,0x30,0x78,0x36, + 0x62,0x33,0x65,0x35,0x38,0x39,0x39,0x55,0x2c,0x30,0x78,0x64,0x64,0x37,0x31,0x62,0x39,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x62,0x36,0x34,0x66,0x65,0x31,0x62,0x65, + 0x55,0x2c,0x30,0x78,0x31,0x37,0x61,0x64,0x38,0x38,0x66,0x30,0x55,0x2c,0x30,0x78,0x36,0x36,0x61,0x63,0x32,0x30,0x63,0x39,0x55,0x2c,0x30,0x78,0x62,0x34,0x33,0x61, + 0x63,0x65,0x37,0x64,0x55,0x2c,0x0a,0x30,0x78,0x31,0x38,0x34,0x61,0x64,0x66,0x36,0x33,0x55,0x2c,0x30,0x78,0x38,0x32,0x33,0x31,0x31,0x61,0x65,0x35,0x55,0x2c,0x30, + 0x78,0x36,0x30,0x33,0x33,0x35,0x31,0x39,0x37,0x55,0x2c,0x30,0x78,0x34,0x35,0x37,0x66,0x35,0x33,0x36,0x32,0x55,0x2c,0x0a,0x30,0x78,0x65,0x30,0x37,0x37,0x36,0x34, + 0x62,0x31,0x55,0x2c,0x30,0x78,0x38,0x34,0x61,0x65,0x36,0x62,0x62,0x62,0x55,0x2c,0x30,0x78,0x31,0x63,0x61,0x30,0x38,0x31,0x66,0x65,0x55,0x2c,0x30,0x78,0x39,0x34, + 0x32,0x62,0x30,0x38,0x66,0x39,0x55,0x2c,0x0a,0x30,0x78,0x35,0x38,0x36,0x38,0x34,0x38,0x37,0x30,0x55,0x2c,0x30,0x78,0x31,0x39,0x66,0x64,0x34,0x35,0x38,0x66,0x55, + 0x2c,0x30,0x78,0x38,0x37,0x36,0x63,0x64,0x65,0x39,0x34,0x55,0x2c,0x30,0x78,0x62,0x37,0x66,0x38,0x37,0x62,0x35,0x32,0x55,0x2c,0x0a,0x30,0x78,0x32,0x33,0x64,0x33, + 0x37,0x33,0x61,0x62,0x55,0x2c,0x30,0x78,0x65,0x32,0x30,0x32,0x34,0x62,0x37,0x32,0x55,0x2c,0x30,0x78,0x35,0x37,0x38,0x66,0x31,0x66,0x65,0x33,0x55,0x2c,0x30,0x78, + 0x32,0x61,0x61,0x62,0x35,0x35,0x36,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x37,0x32,0x38,0x65,0x62,0x62,0x32,0x55,0x2c,0x30,0x78,0x30,0x33,0x63,0x32,0x62,0x35,0x32, + 0x66,0x55,0x2c,0x30,0x78,0x39,0x61,0x37,0x62,0x63,0x35,0x38,0x36,0x55,0x2c,0x30,0x78,0x61,0x35,0x30,0x38,0x33,0x37,0x64,0x33,0x55,0x2c,0x0a,0x30,0x78,0x66,0x32, + 0x38,0x37,0x32,0x38,0x33,0x30,0x55,0x2c,0x30,0x78,0x62,0x32,0x61,0x35,0x62,0x66,0x32,0x33,0x55,0x2c,0x30,0x78,0x62,0x61,0x36,0x61,0x30,0x33,0x30,0x32,0x55,0x2c, + 0x30,0x78,0x35,0x63,0x38,0x32,0x31,0x36,0x65,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x62,0x31,0x63,0x63,0x66,0x38,0x61,0x55,0x2c,0x30,0x78,0x39,0x32,0x62,0x34,0x37, + 0x39,0x61,0x37,0x55,0x2c,0x30,0x78,0x66,0x30,0x66,0x32,0x30,0x37,0x66,0x33,0x55,0x2c,0x30,0x78,0x61,0x31,0x65,0x32,0x36,0x39,0x34,0x65,0x55,0x2c,0x0a,0x30,0x78, + 0x63,0x64,0x66,0x34,0x64,0x61,0x36,0x35,0x55,0x2c,0x30,0x78,0x64,0x35,0x62,0x65,0x30,0x35,0x30,0x36,0x55,0x2c,0x30,0x78,0x31,0x66,0x36,0x32,0x33,0x34,0x64,0x31, + 0x55,0x2c,0x30,0x78,0x38,0x61,0x66,0x65,0x61,0x36,0x63,0x34,0x55,0x2c,0x0a,0x30,0x78,0x39,0x64,0x35,0x33,0x32,0x65,0x33,0x34,0x55,0x2c,0x30,0x78,0x61,0x30,0x35, + 0x35,0x66,0x33,0x61,0x32,0x55,0x2c,0x30,0x78,0x33,0x32,0x65,0x31,0x38,0x61,0x30,0x35,0x55,0x2c,0x30,0x78,0x37,0x35,0x65,0x62,0x66,0x36,0x61,0x34,0x55,0x2c,0x0a, + 0x30,0x78,0x33,0x39,0x65,0x63,0x38,0x33,0x30,0x62,0x55,0x2c,0x30,0x78,0x61,0x61,0x65,0x66,0x36,0x30,0x34,0x30,0x55,0x2c,0x30,0x78,0x30,0x36,0x39,0x66,0x37,0x31, + 0x35,0x65,0x55,0x2c,0x30,0x78,0x35,0x31,0x31,0x30,0x36,0x65,0x62,0x64,0x55,0x2c,0x0a,0x30,0x78,0x66,0x39,0x38,0x61,0x32,0x31,0x33,0x65,0x55,0x2c,0x30,0x78,0x33, + 0x64,0x30,0x36,0x64,0x64,0x39,0x36,0x55,0x2c,0x30,0x78,0x61,0x65,0x30,0x35,0x33,0x65,0x64,0x64,0x55,0x2c,0x30,0x78,0x34,0x36,0x62,0x64,0x65,0x36,0x34,0x64,0x55, + 0x2c,0x0a,0x30,0x78,0x62,0x35,0x38,0x64,0x35,0x34,0x39,0x31,0x55,0x2c,0x30,0x78,0x30,0x35,0x35,0x64,0x63,0x34,0x37,0x31,0x55,0x2c,0x30,0x78,0x36,0x66,0x64,0x34, + 0x30,0x36,0x30,0x34,0x55,0x2c,0x30,0x78,0x66,0x66,0x31,0x35,0x35,0x30,0x36,0x30,0x55,0x2c,0x0a,0x30,0x78,0x32,0x34,0x66,0x62,0x39,0x38,0x31,0x39,0x55,0x2c,0x30, + 0x78,0x39,0x37,0x65,0x39,0x62,0x64,0x64,0x36,0x55,0x2c,0x30,0x78,0x63,0x63,0x34,0x33,0x34,0x30,0x38,0x39,0x55,0x2c,0x30,0x78,0x37,0x37,0x39,0x65,0x64,0x39,0x36, + 0x37,0x55,0x2c,0x0a,0x30,0x78,0x62,0x64,0x34,0x32,0x65,0x38,0x62,0x30,0x55,0x2c,0x30,0x78,0x38,0x38,0x38,0x62,0x38,0x39,0x30,0x37,0x55,0x2c,0x30,0x78,0x33,0x38, + 0x35,0x62,0x31,0x39,0x65,0x37,0x55,0x2c,0x30,0x78,0x64,0x62,0x65,0x65,0x63,0x38,0x37,0x39,0x55,0x2c,0x0a,0x30,0x78,0x34,0x37,0x30,0x61,0x37,0x63,0x61,0x31,0x55, + 0x2c,0x30,0x78,0x65,0x39,0x30,0x66,0x34,0x32,0x37,0x63,0x55,0x2c,0x30,0x78,0x63,0x39,0x31,0x65,0x38,0x34,0x66,0x38,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x33,0x38,0x36,0x38,0x30,0x30,0x39,0x55,0x2c,0x30,0x78,0x34,0x38,0x65,0x64,0x32,0x62,0x33,0x32,0x55,0x2c,0x30,0x78, + 0x61,0x63,0x37,0x30,0x31,0x31,0x31,0x65,0x55,0x2c,0x30,0x78,0x34,0x65,0x37,0x32,0x35,0x61,0x36,0x63,0x55,0x2c,0x0a,0x30,0x78,0x66,0x62,0x66,0x66,0x30,0x65,0x66, + 0x64,0x55,0x2c,0x30,0x78,0x35,0x36,0x33,0x38,0x38,0x35,0x30,0x66,0x55,0x2c,0x30,0x78,0x31,0x65,0x64,0x35,0x61,0x65,0x33,0x64,0x55,0x2c,0x30,0x78,0x32,0x37,0x33, + 0x39,0x32,0x64,0x33,0x36,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x64,0x39,0x30,0x66,0x30,0x61,0x55,0x2c,0x30,0x78,0x32,0x31,0x61,0x36,0x35,0x63,0x36,0x38,0x55,0x2c, + 0x30,0x78,0x64,0x31,0x35,0x34,0x35,0x62,0x39,0x62,0x55,0x2c,0x30,0x78,0x33,0x61,0x32,0x65,0x33,0x36,0x32,0x34,0x55,0x2c,0x0a,0x30,0x78,0x62,0x31,0x36,0x37,0x30, + 0x61,0x30,0x63,0x55,0x2c,0x30,0x78,0x30,0x66,0x65,0x37,0x35,0x37,0x39,0x33,0x55,0x2c,0x30,0x78,0x64,0x32,0x39,0x36,0x65,0x65,0x62,0x34,0x55,0x2c,0x30,0x78,0x39, + 0x65,0x39,0x31,0x39,0x62,0x31,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x66,0x63,0x35,0x63,0x30,0x38,0x30,0x55,0x2c,0x30,0x78,0x61,0x32,0x32,0x30,0x64,0x63,0x36,0x31, + 0x55,0x2c,0x30,0x78,0x36,0x39,0x34,0x62,0x37,0x37,0x35,0x61,0x55,0x2c,0x30,0x78,0x31,0x36,0x31,0x61,0x31,0x32,0x31,0x63,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x62, + 0x61,0x39,0x33,0x65,0x32,0x55,0x2c,0x30,0x78,0x65,0x35,0x32,0x61,0x61,0x30,0x63,0x30,0x55,0x2c,0x30,0x78,0x34,0x33,0x65,0x30,0x32,0x32,0x33,0x63,0x55,0x2c,0x30, + 0x78,0x31,0x64,0x31,0x37,0x31,0x62,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x30,0x62,0x30,0x64,0x30,0x39,0x30,0x65,0x55,0x2c,0x30,0x78,0x61,0x64,0x63,0x37,0x38,0x62, + 0x66,0x32,0x55,0x2c,0x30,0x78,0x62,0x39,0x61,0x38,0x62,0x36,0x32,0x64,0x55,0x2c,0x30,0x78,0x63,0x38,0x61,0x39,0x31,0x65,0x31,0x34,0x55,0x2c,0x0a,0x30,0x78,0x38, + 0x35,0x31,0x39,0x66,0x31,0x35,0x37,0x55,0x2c,0x30,0x78,0x34,0x63,0x30,0x37,0x37,0x35,0x61,0x66,0x55,0x2c,0x30,0x78,0x62,0x62,0x64,0x64,0x39,0x39,0x65,0x65,0x55, + 0x2c,0x30,0x78,0x66,0x64,0x36,0x30,0x37,0x66,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x39,0x66,0x32,0x36,0x30,0x31,0x66,0x37,0x55,0x2c,0x30,0x78,0x62,0x63,0x66,0x35, + 0x37,0x32,0x35,0x63,0x55,0x2c,0x30,0x78,0x63,0x35,0x33,0x62,0x36,0x36,0x34,0x34,0x55,0x2c,0x30,0x78,0x33,0x34,0x37,0x65,0x66,0x62,0x35,0x62,0x55,0x2c,0x0a,0x30, + 0x78,0x37,0x36,0x32,0x39,0x34,0x33,0x38,0x62,0x55,0x2c,0x30,0x78,0x64,0x63,0x63,0x36,0x32,0x33,0x63,0x62,0x55,0x2c,0x30,0x78,0x36,0x38,0x66,0x63,0x65,0x64,0x62, + 0x36,0x55,0x2c,0x30,0x78,0x36,0x33,0x66,0x31,0x65,0x34,0x62,0x38,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x64,0x63,0x33,0x31,0x64,0x37,0x55,0x2c,0x30,0x78,0x31,0x30, + 0x38,0x35,0x36,0x33,0x34,0x32,0x55,0x2c,0x30,0x78,0x34,0x30,0x32,0x32,0x39,0x37,0x31,0x33,0x55,0x2c,0x30,0x78,0x32,0x30,0x31,0x31,0x63,0x36,0x38,0x34,0x55,0x2c, + 0x0a,0x30,0x78,0x37,0x64,0x32,0x34,0x34,0x61,0x38,0x35,0x55,0x2c,0x30,0x78,0x66,0x38,0x33,0x64,0x62,0x62,0x64,0x32,0x55,0x2c,0x30,0x78,0x31,0x31,0x33,0x32,0x66, + 0x39,0x61,0x65,0x55,0x2c,0x30,0x78,0x36,0x64,0x61,0x31,0x32,0x39,0x63,0x37,0x55,0x2c,0x0a,0x30,0x78,0x34,0x62,0x32,0x66,0x39,0x65,0x31,0x64,0x55,0x2c,0x30,0x78, + 0x66,0x33,0x33,0x30,0x62,0x32,0x64,0x63,0x55,0x2c,0x30,0x78,0x65,0x63,0x35,0x32,0x38,0x36,0x30,0x64,0x55,0x2c,0x30,0x78,0x64,0x30,0x65,0x33,0x63,0x31,0x37,0x37, + 0x55,0x2c,0x0a,0x30,0x78,0x36,0x63,0x31,0x36,0x62,0x33,0x32,0x62,0x55,0x2c,0x30,0x78,0x39,0x39,0x62,0x39,0x37,0x30,0x61,0x39,0x55,0x2c,0x30,0x78,0x66,0x61,0x34, + 0x38,0x39,0x34,0x31,0x31,0x55,0x2c,0x30,0x78,0x32,0x32,0x36,0x34,0x65,0x39,0x34,0x37,0x55,0x2c,0x0a,0x30,0x78,0x63,0x34,0x38,0x63,0x66,0x63,0x61,0x38,0x55,0x2c, + 0x30,0x78,0x31,0x61,0x33,0x66,0x66,0x30,0x61,0x30,0x55,0x2c,0x30,0x78,0x64,0x38,0x32,0x63,0x37,0x64,0x35,0x36,0x55,0x2c,0x30,0x78,0x65,0x66,0x39,0x30,0x33,0x33, + 0x32,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x37,0x34,0x65,0x34,0x39,0x38,0x37,0x55,0x2c,0x30,0x78,0x63,0x31,0x64,0x31,0x33,0x38,0x64,0x39,0x55,0x2c,0x30,0x78,0x66, + 0x65,0x61,0x32,0x63,0x61,0x38,0x63,0x55,0x2c,0x30,0x78,0x33,0x36,0x30,0x62,0x64,0x34,0x39,0x38,0x55,0x2c,0x0a,0x30,0x78,0x63,0x66,0x38,0x31,0x66,0x35,0x61,0x36, + 0x55,0x2c,0x30,0x78,0x32,0x38,0x64,0x65,0x37,0x61,0x61,0x35,0x55,0x2c,0x30,0x78,0x32,0x36,0x38,0x65,0x62,0x37,0x64,0x61,0x55,0x2c,0x30,0x78,0x61,0x34,0x62,0x66, + 0x61,0x64,0x33,0x66,0x55,0x2c,0x0a,0x30,0x78,0x65,0x34,0x39,0x64,0x33,0x61,0x32,0x63,0x55,0x2c,0x30,0x78,0x30,0x64,0x39,0x32,0x37,0x38,0x35,0x30,0x55,0x2c,0x30, + 0x78,0x39,0x62,0x63,0x63,0x35,0x66,0x36,0x61,0x55,0x2c,0x30,0x78,0x36,0x32,0x34,0x36,0x37,0x65,0x35,0x34,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x31,0x33,0x38,0x64, + 0x66,0x36,0x55,0x2c,0x30,0x78,0x65,0x38,0x62,0x38,0x64,0x38,0x39,0x30,0x55,0x2c,0x30,0x78,0x35,0x65,0x66,0x37,0x33,0x39,0x32,0x65,0x55,0x2c,0x30,0x78,0x66,0x35, + 0x61,0x66,0x63,0x33,0x38,0x32,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x38,0x30,0x35,0x64,0x39,0x66,0x55,0x2c,0x30,0x78,0x37,0x63,0x39,0x33,0x64,0x30,0x36,0x39,0x55, + 0x2c,0x30,0x78,0x61,0x39,0x32,0x64,0x64,0x35,0x36,0x66,0x55,0x2c,0x30,0x78,0x62,0x33,0x31,0x32,0x32,0x35,0x63,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x62,0x39,0x39, + 0x61,0x63,0x63,0x38,0x55,0x2c,0x30,0x78,0x61,0x37,0x37,0x64,0x31,0x38,0x31,0x30,0x55,0x2c,0x30,0x78,0x36,0x65,0x36,0x33,0x39,0x63,0x65,0x38,0x55,0x2c,0x30,0x78, + 0x37,0x62,0x62,0x62,0x33,0x62,0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x37,0x38,0x32,0x36,0x63,0x64,0x55,0x2c,0x30,0x78,0x66,0x34,0x31,0x38,0x35,0x39,0x36, + 0x65,0x55,0x2c,0x30,0x78,0x30,0x31,0x62,0x37,0x39,0x61,0x65,0x63,0x55,0x2c,0x30,0x78,0x61,0x38,0x39,0x61,0x34,0x66,0x38,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x35, + 0x36,0x65,0x39,0x35,0x65,0x36,0x55,0x2c,0x30,0x78,0x37,0x65,0x65,0x36,0x66,0x66,0x61,0x61,0x55,0x2c,0x30,0x78,0x30,0x38,0x63,0x66,0x62,0x63,0x32,0x31,0x55,0x2c, + 0x30,0x78,0x65,0x36,0x65,0x38,0x31,0x35,0x65,0x66,0x55,0x2c,0x0a,0x30,0x78,0x64,0x39,0x39,0x62,0x65,0x37,0x62,0x61,0x55,0x2c,0x30,0x78,0x63,0x65,0x33,0x36,0x36, + 0x66,0x34,0x61,0x55,0x2c,0x30,0x78,0x64,0x34,0x30,0x39,0x39,0x66,0x65,0x61,0x55,0x2c,0x30,0x78,0x64,0x36,0x37,0x63,0x62,0x30,0x32,0x39,0x55,0x2c,0x0a,0x30,0x78, + 0x61,0x66,0x62,0x32,0x61,0x34,0x33,0x31,0x55,0x2c,0x30,0x78,0x33,0x31,0x32,0x33,0x33,0x66,0x32,0x61,0x55,0x2c,0x30,0x78,0x33,0x30,0x39,0x34,0x61,0x35,0x63,0x36, + 0x55,0x2c,0x30,0x78,0x63,0x30,0x36,0x36,0x61,0x32,0x33,0x35,0x55,0x2c,0x0a,0x30,0x78,0x33,0x37,0x62,0x63,0x34,0x65,0x37,0x34,0x55,0x2c,0x30,0x78,0x61,0x36,0x63, + 0x61,0x38,0x32,0x66,0x63,0x55,0x2c,0x30,0x78,0x62,0x30,0x64,0x30,0x39,0x30,0x65,0x30,0x55,0x2c,0x30,0x78,0x31,0x35,0x64,0x38,0x61,0x37,0x33,0x33,0x55,0x2c,0x0a, + 0x30,0x78,0x34,0x61,0x39,0x38,0x30,0x34,0x66,0x31,0x55,0x2c,0x30,0x78,0x66,0x37,0x64,0x61,0x65,0x63,0x34,0x31,0x55,0x2c,0x30,0x78,0x30,0x65,0x35,0x30,0x63,0x64, + 0x37,0x66,0x55,0x2c,0x30,0x78,0x32,0x66,0x66,0x36,0x39,0x31,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x64,0x36,0x34,0x64,0x37,0x36,0x55,0x2c,0x30,0x78,0x34, + 0x64,0x62,0x30,0x65,0x66,0x34,0x33,0x55,0x2c,0x30,0x78,0x35,0x34,0x34,0x64,0x61,0x61,0x63,0x63,0x55,0x2c,0x30,0x78,0x64,0x66,0x30,0x34,0x39,0x36,0x65,0x34,0x55, + 0x2c,0x0a,0x30,0x78,0x65,0x33,0x62,0x35,0x64,0x31,0x39,0x65,0x55,0x2c,0x30,0x78,0x31,0x62,0x38,0x38,0x36,0x61,0x34,0x63,0x55,0x2c,0x30,0x78,0x62,0x38,0x31,0x66, + 0x32,0x63,0x63,0x31,0x55,0x2c,0x30,0x78,0x37,0x66,0x35,0x31,0x36,0x35,0x34,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x34,0x65,0x61,0x35,0x65,0x39,0x64,0x55,0x2c,0x30, + 0x78,0x35,0x64,0x33,0x35,0x38,0x63,0x30,0x31,0x55,0x2c,0x30,0x78,0x37,0x33,0x37,0x34,0x38,0x37,0x66,0x61,0x55,0x2c,0x30,0x78,0x32,0x65,0x34,0x31,0x30,0x62,0x66, + 0x62,0x55,0x2c,0x0a,0x30,0x78,0x35,0x61,0x31,0x64,0x36,0x37,0x62,0x33,0x55,0x2c,0x30,0x78,0x35,0x32,0x64,0x32,0x64,0x62,0x39,0x32,0x55,0x2c,0x30,0x78,0x33,0x33, + 0x35,0x36,0x31,0x30,0x65,0x39,0x55,0x2c,0x30,0x78,0x31,0x33,0x34,0x37,0x64,0x36,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x36,0x31,0x64,0x37,0x39,0x61,0x55, + 0x2c,0x30,0x78,0x37,0x61,0x30,0x63,0x61,0x31,0x33,0x37,0x55,0x2c,0x30,0x78,0x38,0x65,0x31,0x34,0x66,0x38,0x35,0x39,0x55,0x2c,0x30,0x78,0x38,0x39,0x33,0x63,0x31, + 0x33,0x65,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x65,0x32,0x37,0x61,0x39,0x63,0x65,0x55,0x2c,0x30,0x78,0x33,0x35,0x63,0x39,0x36,0x31,0x62,0x37,0x55,0x2c,0x30,0x78, + 0x65,0x64,0x65,0x35,0x31,0x63,0x65,0x31,0x55,0x2c,0x30,0x78,0x33,0x63,0x62,0x31,0x34,0x37,0x37,0x61,0x55,0x2c,0x0a,0x30,0x78,0x35,0x39,0x64,0x66,0x64,0x32,0x39, + 0x63,0x55,0x2c,0x30,0x78,0x33,0x66,0x37,0x33,0x66,0x32,0x35,0x35,0x55,0x2c,0x30,0x78,0x37,0x39,0x63,0x65,0x31,0x34,0x31,0x38,0x55,0x2c,0x30,0x78,0x62,0x66,0x33, + 0x37,0x63,0x37,0x37,0x33,0x55,0x2c,0x0a,0x30,0x78,0x65,0x61,0x63,0x64,0x66,0x37,0x35,0x33,0x55,0x2c,0x30,0x78,0x35,0x62,0x61,0x61,0x66,0x64,0x35,0x66,0x55,0x2c, + 0x30,0x78,0x31,0x34,0x36,0x66,0x33,0x64,0x64,0x66,0x55,0x2c,0x30,0x78,0x38,0x36,0x64,0x62,0x34,0x34,0x37,0x38,0x55,0x2c,0x0a,0x30,0x78,0x38,0x31,0x66,0x33,0x61, + 0x66,0x63,0x61,0x55,0x2c,0x30,0x78,0x33,0x65,0x63,0x34,0x36,0x38,0x62,0x39,0x55,0x2c,0x30,0x78,0x32,0x63,0x33,0x34,0x32,0x34,0x33,0x38,0x55,0x2c,0x30,0x78,0x35, + 0x66,0x34,0x30,0x61,0x33,0x63,0x32,0x55,0x2c,0x0a,0x30,0x78,0x37,0x32,0x63,0x33,0x31,0x64,0x31,0x36,0x55,0x2c,0x30,0x78,0x30,0x63,0x32,0x35,0x65,0x32,0x62,0x63, + 0x55,0x2c,0x30,0x78,0x38,0x62,0x34,0x39,0x33,0x63,0x32,0x38,0x55,0x2c,0x30,0x78,0x34,0x31,0x39,0x35,0x30,0x64,0x66,0x66,0x55,0x2c,0x0a,0x30,0x78,0x37,0x31,0x30, + 0x31,0x61,0x38,0x33,0x39,0x55,0x2c,0x30,0x78,0x64,0x65,0x62,0x33,0x30,0x63,0x30,0x38,0x55,0x2c,0x30,0x78,0x39,0x63,0x65,0x34,0x62,0x34,0x64,0x38,0x55,0x2c,0x30, + 0x78,0x39,0x30,0x63,0x31,0x35,0x36,0x36,0x34,0x55,0x2c,0x0a,0x30,0x78,0x36,0x31,0x38,0x34,0x63,0x62,0x37,0x62,0x55,0x2c,0x30,0x78,0x37,0x30,0x62,0x36,0x33,0x32, + 0x64,0x35,0x55,0x2c,0x30,0x78,0x37,0x34,0x35,0x63,0x36,0x63,0x34,0x38,0x55,0x2c,0x30,0x78,0x34,0x32,0x35,0x37,0x62,0x38,0x64,0x30,0x55,0x2c,0x0a,0x30,0x78,0x61, + 0x37,0x66,0x34,0x35,0x31,0x35,0x30,0x55,0x2c,0x30,0x78,0x36,0x35,0x34,0x31,0x37,0x65,0x35,0x33,0x55,0x2c,0x30,0x78,0x61,0x34,0x31,0x37,0x31,0x61,0x63,0x33,0x55, + 0x2c,0x30,0x78,0x35,0x65,0x32,0x37,0x33,0x61,0x39,0x36,0x55,0x2c,0x0a,0x30,0x78,0x36,0x62,0x61,0x62,0x33,0x62,0x63,0x62,0x55,0x2c,0x30,0x78,0x34,0x35,0x39,0x64, + 0x31,0x66,0x66,0x31,0x55,0x2c,0x30,0x78,0x35,0x38,0x66,0x61,0x61,0x63,0x61,0x62,0x55,0x2c,0x30,0x78,0x30,0x33,0x65,0x33,0x34,0x62,0x39,0x33,0x55,0x2c,0x0a,0x30, + 0x78,0x66,0x61,0x33,0x30,0x32,0x30,0x35,0x35,0x55,0x2c,0x30,0x78,0x36,0x64,0x37,0x36,0x61,0x64,0x66,0x36,0x55,0x2c,0x30,0x78,0x37,0x36,0x63,0x63,0x38,0x38,0x39, + 0x31,0x55,0x2c,0x30,0x78,0x34,0x63,0x30,0x32,0x66,0x35,0x32,0x35,0x55,0x2c,0x0a,0x30,0x78,0x64,0x37,0x65,0x35,0x34,0x66,0x66,0x63,0x55,0x2c,0x30,0x78,0x63,0x62, + 0x32,0x61,0x63,0x35,0x64,0x37,0x55,0x2c,0x30,0x78,0x34,0x34,0x33,0x35,0x32,0x36,0x38,0x30,0x55,0x2c,0x30,0x78,0x61,0x33,0x36,0x32,0x62,0x35,0x38,0x66,0x55,0x2c, + 0x0a,0x30,0x78,0x35,0x61,0x62,0x31,0x64,0x65,0x34,0x39,0x55,0x2c,0x30,0x78,0x31,0x62,0x62,0x61,0x32,0x35,0x36,0x37,0x55,0x2c,0x30,0x78,0x30,0x65,0x65,0x61,0x34, + 0x35,0x39,0x38,0x55,0x2c,0x30,0x78,0x63,0x30,0x66,0x65,0x35,0x64,0x65,0x31,0x55,0x2c,0x0a,0x30,0x78,0x37,0x35,0x32,0x66,0x63,0x33,0x30,0x32,0x55,0x2c,0x30,0x78, + 0x66,0x30,0x34,0x63,0x38,0x31,0x31,0x32,0x55,0x2c,0x30,0x78,0x39,0x37,0x34,0x36,0x38,0x64,0x61,0x33,0x55,0x2c,0x30,0x78,0x66,0x39,0x64,0x33,0x36,0x62,0x63,0x36, + 0x55,0x2c,0x0a,0x30,0x78,0x35,0x66,0x38,0x66,0x30,0x33,0x65,0x37,0x55,0x2c,0x30,0x78,0x39,0x63,0x39,0x32,0x31,0x35,0x39,0x35,0x55,0x2c,0x30,0x78,0x37,0x61,0x36, + 0x64,0x62,0x66,0x65,0x62,0x55,0x2c,0x30,0x78,0x35,0x39,0x35,0x32,0x39,0x35,0x64,0x61,0x55,0x2c,0x0a,0x30,0x78,0x38,0x33,0x62,0x65,0x64,0x34,0x32,0x64,0x55,0x2c, + 0x30,0x78,0x32,0x31,0x37,0x34,0x35,0x38,0x64,0x33,0x55,0x2c,0x30,0x78,0x36,0x39,0x65,0x30,0x34,0x39,0x32,0x39,0x55,0x2c,0x30,0x78,0x63,0x38,0x63,0x39,0x38,0x65, + 0x34,0x34,0x55,0x2c,0x0a,0x30,0x78,0x38,0x39,0x63,0x32,0x37,0x35,0x36,0x61,0x55,0x2c,0x30,0x78,0x37,0x39,0x38,0x65,0x66,0x34,0x37,0x38,0x55,0x2c,0x30,0x78,0x33, + 0x65,0x35,0x38,0x39,0x39,0x36,0x62,0x55,0x2c,0x30,0x78,0x37,0x31,0x62,0x39,0x32,0x37,0x64,0x64,0x55,0x2c,0x0a,0x30,0x78,0x34,0x66,0x65,0x31,0x62,0x65,0x62,0x36, + 0x55,0x2c,0x30,0x78,0x61,0x64,0x38,0x38,0x66,0x30,0x31,0x37,0x55,0x2c,0x30,0x78,0x61,0x63,0x32,0x30,0x63,0x39,0x36,0x36,0x55,0x2c,0x30,0x78,0x33,0x61,0x63,0x65, + 0x37,0x64,0x62,0x34,0x55,0x2c,0x0a,0x30,0x78,0x34,0x61,0x64,0x66,0x36,0x33,0x31,0x38,0x55,0x2c,0x30,0x78,0x33,0x31,0x31,0x61,0x65,0x35,0x38,0x32,0x55,0x2c,0x30, + 0x78,0x33,0x33,0x35,0x31,0x39,0x37,0x36,0x30,0x55,0x2c,0x30,0x78,0x37,0x66,0x35,0x33,0x36,0x32,0x34,0x35,0x55,0x2c,0x0a,0x30,0x78,0x37,0x37,0x36,0x34,0x62,0x31, + 0x65,0x30,0x55,0x2c,0x30,0x78,0x61,0x65,0x36,0x62,0x62,0x62,0x38,0x34,0x55,0x2c,0x30,0x78,0x61,0x30,0x38,0x31,0x66,0x65,0x31,0x63,0x55,0x2c,0x30,0x78,0x32,0x62, + 0x30,0x38,0x66,0x39,0x39,0x34,0x55,0x2c,0x0a,0x30,0x78,0x36,0x38,0x34,0x38,0x37,0x30,0x35,0x38,0x55,0x2c,0x30,0x78,0x66,0x64,0x34,0x35,0x38,0x66,0x31,0x39,0x55, + 0x2c,0x30,0x78,0x36,0x63,0x64,0x65,0x39,0x34,0x38,0x37,0x55,0x2c,0x30,0x78,0x66,0x38,0x37,0x62,0x35,0x32,0x62,0x37,0x55,0x2c,0x0a,0x30,0x78,0x64,0x33,0x37,0x33, + 0x61,0x62,0x32,0x33,0x55,0x2c,0x30,0x78,0x30,0x32,0x34,0x62,0x37,0x32,0x65,0x32,0x55,0x2c,0x30,0x78,0x38,0x66,0x31,0x66,0x65,0x33,0x35,0x37,0x55,0x2c,0x30,0x78, + 0x61,0x62,0x35,0x35,0x36,0x36,0x32,0x61,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38,0x65,0x62,0x62,0x32,0x30,0x37,0x55,0x2c,0x30,0x78,0x63,0x32,0x62,0x35,0x32,0x66,0x30, + 0x33,0x55,0x2c,0x30,0x78,0x37,0x62,0x63,0x35,0x38,0x36,0x39,0x61,0x55,0x2c,0x30,0x78,0x30,0x38,0x33,0x37,0x64,0x33,0x61,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x37, + 0x32,0x38,0x33,0x30,0x66,0x32,0x55,0x2c,0x30,0x78,0x61,0x35,0x62,0x66,0x32,0x33,0x62,0x32,0x55,0x2c,0x30,0x78,0x36,0x61,0x30,0x33,0x30,0x32,0x62,0x61,0x55,0x2c, + 0x30,0x78,0x38,0x32,0x31,0x36,0x65,0x64,0x35,0x63,0x55,0x2c,0x0a,0x30,0x78,0x31,0x63,0x63,0x66,0x38,0x61,0x32,0x62,0x55,0x2c,0x30,0x78,0x62,0x34,0x37,0x39,0x61, + 0x37,0x39,0x32,0x55,0x2c,0x30,0x78,0x66,0x32,0x30,0x37,0x66,0x33,0x66,0x30,0x55,0x2c,0x30,0x78,0x65,0x32,0x36,0x39,0x34,0x65,0x61,0x31,0x55,0x2c,0x0a,0x30,0x78, + 0x66,0x34,0x64,0x61,0x36,0x35,0x63,0x64,0x55,0x2c,0x30,0x78,0x62,0x65,0x30,0x35,0x30,0x36,0x64,0x35,0x55,0x2c,0x30,0x78,0x36,0x32,0x33,0x34,0x64,0x31,0x31,0x66, + 0x55,0x2c,0x30,0x78,0x66,0x65,0x61,0x36,0x63,0x34,0x38,0x61,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33,0x32,0x65,0x33,0x34,0x39,0x64,0x55,0x2c,0x30,0x78,0x35,0x35,0x66, + 0x33,0x61,0x32,0x61,0x30,0x55,0x2c,0x30,0x78,0x65,0x31,0x38,0x61,0x30,0x35,0x33,0x32,0x55,0x2c,0x30,0x78,0x65,0x62,0x66,0x36,0x61,0x34,0x37,0x35,0x55,0x2c,0x0a, + 0x30,0x78,0x65,0x63,0x38,0x33,0x30,0x62,0x33,0x39,0x55,0x2c,0x30,0x78,0x65,0x66,0x36,0x30,0x34,0x30,0x61,0x61,0x55,0x2c,0x30,0x78,0x39,0x66,0x37,0x31,0x35,0x65, + 0x30,0x36,0x55,0x2c,0x30,0x78,0x31,0x30,0x36,0x65,0x62,0x64,0x35,0x31,0x55,0x2c,0x0a,0x30,0x78,0x38,0x61,0x32,0x31,0x33,0x65,0x66,0x39,0x55,0x2c,0x30,0x78,0x30, + 0x36,0x64,0x64,0x39,0x36,0x33,0x64,0x55,0x2c,0x30,0x78,0x30,0x35,0x33,0x65,0x64,0x64,0x61,0x65,0x55,0x2c,0x30,0x78,0x62,0x64,0x65,0x36,0x34,0x64,0x34,0x36,0x55, + 0x2c,0x0a,0x30,0x78,0x38,0x64,0x35,0x34,0x39,0x31,0x62,0x35,0x55,0x2c,0x30,0x78,0x35,0x64,0x63,0x34,0x37,0x31,0x30,0x35,0x55,0x2c,0x30,0x78,0x64,0x34,0x30,0x36, + 0x30,0x34,0x36,0x66,0x55,0x2c,0x30,0x78,0x31,0x35,0x35,0x30,0x36,0x30,0x66,0x66,0x55,0x2c,0x0a,0x30,0x78,0x66,0x62,0x39,0x38,0x31,0x39,0x32,0x34,0x55,0x2c,0x30, + 0x78,0x65,0x39,0x62,0x64,0x64,0x36,0x39,0x37,0x55,0x2c,0x30,0x78,0x34,0x33,0x34,0x30,0x38,0x39,0x63,0x63,0x55,0x2c,0x30,0x78,0x39,0x65,0x64,0x39,0x36,0x37,0x37, + 0x37,0x55,0x2c,0x0a,0x30,0x78,0x34,0x32,0x65,0x38,0x62,0x30,0x62,0x64,0x55,0x2c,0x30,0x78,0x38,0x62,0x38,0x39,0x30,0x37,0x38,0x38,0x55,0x2c,0x30,0x78,0x35,0x62, + 0x31,0x39,0x65,0x37,0x33,0x38,0x55,0x2c,0x30,0x78,0x65,0x65,0x63,0x38,0x37,0x39,0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x37,0x63,0x61,0x31,0x34,0x37,0x55, + 0x2c,0x30,0x78,0x30,0x66,0x34,0x32,0x37,0x63,0x65,0x39,0x55,0x2c,0x30,0x78,0x31,0x65,0x38,0x34,0x66,0x38,0x63,0x39,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x36,0x38,0x30,0x30,0x39,0x38,0x33,0x55,0x2c,0x30,0x78,0x65,0x64,0x32,0x62,0x33,0x32,0x34,0x38,0x55,0x2c,0x30,0x78, + 0x37,0x30,0x31,0x31,0x31,0x65,0x61,0x63,0x55,0x2c,0x30,0x78,0x37,0x32,0x35,0x61,0x36,0x63,0x34,0x65,0x55,0x2c,0x0a,0x30,0x78,0x66,0x66,0x30,0x65,0x66,0x64,0x66, + 0x62,0x55,0x2c,0x30,0x78,0x33,0x38,0x38,0x35,0x30,0x66,0x35,0x36,0x55,0x2c,0x30,0x78,0x64,0x35,0x61,0x65,0x33,0x64,0x31,0x65,0x55,0x2c,0x30,0x78,0x33,0x39,0x32, + 0x64,0x33,0x36,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x64,0x39,0x30,0x66,0x30,0x61,0x36,0x34,0x55,0x2c,0x30,0x78,0x61,0x36,0x35,0x63,0x36,0x38,0x32,0x31,0x55,0x2c, + 0x30,0x78,0x35,0x34,0x35,0x62,0x39,0x62,0x64,0x31,0x55,0x2c,0x30,0x78,0x32,0x65,0x33,0x36,0x32,0x34,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x36,0x37,0x30,0x61,0x30, + 0x63,0x62,0x31,0x55,0x2c,0x30,0x78,0x65,0x37,0x35,0x37,0x39,0x33,0x30,0x66,0x55,0x2c,0x30,0x78,0x39,0x36,0x65,0x65,0x62,0x34,0x64,0x32,0x55,0x2c,0x30,0x78,0x39, + 0x31,0x39,0x62,0x31,0x62,0x39,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x35,0x63,0x30,0x38,0x30,0x34,0x66,0x55,0x2c,0x30,0x78,0x32,0x30,0x64,0x63,0x36,0x31,0x61,0x32, + 0x55,0x2c,0x30,0x78,0x34,0x62,0x37,0x37,0x35,0x61,0x36,0x39,0x55,0x2c,0x30,0x78,0x31,0x61,0x31,0x32,0x31,0x63,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x39, + 0x33,0x65,0x32,0x30,0x61,0x55,0x2c,0x30,0x78,0x32,0x61,0x61,0x30,0x63,0x30,0x65,0x35,0x55,0x2c,0x30,0x78,0x65,0x30,0x32,0x32,0x33,0x63,0x34,0x33,0x55,0x2c,0x30, + 0x78,0x31,0x37,0x31,0x62,0x31,0x32,0x31,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x64,0x30,0x39,0x30,0x65,0x30,0x62,0x55,0x2c,0x30,0x78,0x63,0x37,0x38,0x62,0x66,0x32, + 0x61,0x64,0x55,0x2c,0x30,0x78,0x61,0x38,0x62,0x36,0x32,0x64,0x62,0x39,0x55,0x2c,0x30,0x78,0x61,0x39,0x31,0x65,0x31,0x34,0x63,0x38,0x55,0x2c,0x0a,0x30,0x78,0x31, + 0x39,0x66,0x31,0x35,0x37,0x38,0x35,0x55,0x2c,0x30,0x78,0x30,0x37,0x37,0x35,0x61,0x66,0x34,0x63,0x55,0x2c,0x30,0x78,0x64,0x64,0x39,0x39,0x65,0x65,0x62,0x62,0x55, + 0x2c,0x30,0x78,0x36,0x30,0x37,0x66,0x61,0x33,0x66,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x30,0x31,0x66,0x37,0x39,0x66,0x55,0x2c,0x30,0x78,0x66,0x35,0x37,0x32, + 0x35,0x63,0x62,0x63,0x55,0x2c,0x30,0x78,0x33,0x62,0x36,0x36,0x34,0x34,0x63,0x35,0x55,0x2c,0x30,0x78,0x37,0x65,0x66,0x62,0x35,0x62,0x33,0x34,0x55,0x2c,0x0a,0x30, + 0x78,0x32,0x39,0x34,0x33,0x38,0x62,0x37,0x36,0x55,0x2c,0x30,0x78,0x63,0x36,0x32,0x33,0x63,0x62,0x64,0x63,0x55,0x2c,0x30,0x78,0x66,0x63,0x65,0x64,0x62,0x36,0x36, + 0x38,0x55,0x2c,0x30,0x78,0x66,0x31,0x65,0x34,0x62,0x38,0x36,0x33,0x55,0x2c,0x0a,0x30,0x78,0x64,0x63,0x33,0x31,0x64,0x37,0x63,0x61,0x55,0x2c,0x30,0x78,0x38,0x35, + 0x36,0x33,0x34,0x32,0x31,0x30,0x55,0x2c,0x30,0x78,0x32,0x32,0x39,0x37,0x31,0x33,0x34,0x30,0x55,0x2c,0x30,0x78,0x31,0x31,0x63,0x36,0x38,0x34,0x32,0x30,0x55,0x2c, + 0x0a,0x30,0x78,0x32,0x34,0x34,0x61,0x38,0x35,0x37,0x64,0x55,0x2c,0x30,0x78,0x33,0x64,0x62,0x62,0x64,0x32,0x66,0x38,0x55,0x2c,0x30,0x78,0x33,0x32,0x66,0x39,0x61, + 0x65,0x31,0x31,0x55,0x2c,0x30,0x78,0x61,0x31,0x32,0x39,0x63,0x37,0x36,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x66,0x39,0x65,0x31,0x64,0x34,0x62,0x55,0x2c,0x30,0x78, + 0x33,0x30,0x62,0x32,0x64,0x63,0x66,0x33,0x55,0x2c,0x30,0x78,0x35,0x32,0x38,0x36,0x30,0x64,0x65,0x63,0x55,0x2c,0x30,0x78,0x65,0x33,0x63,0x31,0x37,0x37,0x64,0x30, + 0x55,0x2c,0x0a,0x30,0x78,0x31,0x36,0x62,0x33,0x32,0x62,0x36,0x63,0x55,0x2c,0x30,0x78,0x62,0x39,0x37,0x30,0x61,0x39,0x39,0x39,0x55,0x2c,0x30,0x78,0x34,0x38,0x39, + 0x34,0x31,0x31,0x66,0x61,0x55,0x2c,0x30,0x78,0x36,0x34,0x65,0x39,0x34,0x37,0x32,0x32,0x55,0x2c,0x0a,0x30,0x78,0x38,0x63,0x66,0x63,0x61,0x38,0x63,0x34,0x55,0x2c, + 0x30,0x78,0x33,0x66,0x66,0x30,0x61,0x30,0x31,0x61,0x55,0x2c,0x30,0x78,0x32,0x63,0x37,0x64,0x35,0x36,0x64,0x38,0x55,0x2c,0x30,0x78,0x39,0x30,0x33,0x33,0x32,0x32, + 0x65,0x66,0x55,0x2c,0x0a,0x30,0x78,0x34,0x65,0x34,0x39,0x38,0x37,0x63,0x37,0x55,0x2c,0x30,0x78,0x64,0x31,0x33,0x38,0x64,0x39,0x63,0x31,0x55,0x2c,0x30,0x78,0x61, + 0x32,0x63,0x61,0x38,0x63,0x66,0x65,0x55,0x2c,0x30,0x78,0x30,0x62,0x64,0x34,0x39,0x38,0x33,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x31,0x66,0x35,0x61,0x36,0x63,0x66, + 0x55,0x2c,0x30,0x78,0x64,0x65,0x37,0x61,0x61,0x35,0x32,0x38,0x55,0x2c,0x30,0x78,0x38,0x65,0x62,0x37,0x64,0x61,0x32,0x36,0x55,0x2c,0x30,0x78,0x62,0x66,0x61,0x64, + 0x33,0x66,0x61,0x34,0x55,0x2c,0x0a,0x30,0x78,0x39,0x64,0x33,0x61,0x32,0x63,0x65,0x34,0x55,0x2c,0x30,0x78,0x39,0x32,0x37,0x38,0x35,0x30,0x30,0x64,0x55,0x2c,0x30, + 0x78,0x63,0x63,0x35,0x66,0x36,0x61,0x39,0x62,0x55,0x2c,0x30,0x78,0x34,0x36,0x37,0x65,0x35,0x34,0x36,0x32,0x55,0x2c,0x0a,0x30,0x78,0x31,0x33,0x38,0x64,0x66,0x36, + 0x63,0x32,0x55,0x2c,0x30,0x78,0x62,0x38,0x64,0x38,0x39,0x30,0x65,0x38,0x55,0x2c,0x30,0x78,0x66,0x37,0x33,0x39,0x32,0x65,0x35,0x65,0x55,0x2c,0x30,0x78,0x61,0x66, + 0x63,0x33,0x38,0x32,0x66,0x35,0x55,0x2c,0x0a,0x30,0x78,0x38,0x30,0x35,0x64,0x39,0x66,0x62,0x65,0x55,0x2c,0x30,0x78,0x39,0x33,0x64,0x30,0x36,0x39,0x37,0x63,0x55, + 0x2c,0x30,0x78,0x32,0x64,0x64,0x35,0x36,0x66,0x61,0x39,0x55,0x2c,0x30,0x78,0x31,0x32,0x32,0x35,0x63,0x66,0x62,0x33,0x55,0x2c,0x0a,0x30,0x78,0x39,0x39,0x61,0x63, + 0x63,0x38,0x33,0x62,0x55,0x2c,0x30,0x78,0x37,0x64,0x31,0x38,0x31,0x30,0x61,0x37,0x55,0x2c,0x30,0x78,0x36,0x33,0x39,0x63,0x65,0x38,0x36,0x65,0x55,0x2c,0x30,0x78, + 0x62,0x62,0x33,0x62,0x64,0x62,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x37,0x38,0x32,0x36,0x63,0x64,0x30,0x39,0x55,0x2c,0x30,0x78,0x31,0x38,0x35,0x39,0x36,0x65,0x66, + 0x34,0x55,0x2c,0x30,0x78,0x62,0x37,0x39,0x61,0x65,0x63,0x30,0x31,0x55,0x2c,0x30,0x78,0x39,0x61,0x34,0x66,0x38,0x33,0x61,0x38,0x55,0x2c,0x0a,0x30,0x78,0x36,0x65, + 0x39,0x35,0x65,0x36,0x36,0x35,0x55,0x2c,0x30,0x78,0x65,0x36,0x66,0x66,0x61,0x61,0x37,0x65,0x55,0x2c,0x30,0x78,0x63,0x66,0x62,0x63,0x32,0x31,0x30,0x38,0x55,0x2c, + 0x30,0x78,0x65,0x38,0x31,0x35,0x65,0x66,0x65,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x62,0x65,0x37,0x62,0x61,0x64,0x39,0x55,0x2c,0x30,0x78,0x33,0x36,0x36,0x66,0x34, + 0x61,0x63,0x65,0x55,0x2c,0x30,0x78,0x30,0x39,0x39,0x66,0x65,0x61,0x64,0x34,0x55,0x2c,0x30,0x78,0x37,0x63,0x62,0x30,0x32,0x39,0x64,0x36,0x55,0x2c,0x0a,0x30,0x78, + 0x62,0x32,0x61,0x34,0x33,0x31,0x61,0x66,0x55,0x2c,0x30,0x78,0x32,0x33,0x33,0x66,0x32,0x61,0x33,0x31,0x55,0x2c,0x30,0x78,0x39,0x34,0x61,0x35,0x63,0x36,0x33,0x30, + 0x55,0x2c,0x30,0x78,0x36,0x36,0x61,0x32,0x33,0x35,0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x62,0x63,0x34,0x65,0x37,0x34,0x33,0x37,0x55,0x2c,0x30,0x78,0x63,0x61,0x38, + 0x32,0x66,0x63,0x61,0x36,0x55,0x2c,0x30,0x78,0x64,0x30,0x39,0x30,0x65,0x30,0x62,0x30,0x55,0x2c,0x30,0x78,0x64,0x38,0x61,0x37,0x33,0x33,0x31,0x35,0x55,0x2c,0x0a, + 0x30,0x78,0x39,0x38,0x30,0x34,0x66,0x31,0x34,0x61,0x55,0x2c,0x30,0x78,0x64,0x61,0x65,0x63,0x34,0x31,0x66,0x37,0x55,0x2c,0x30,0x78,0x35,0x30,0x63,0x64,0x37,0x66, + 0x30,0x65,0x55,0x2c,0x30,0x78,0x66,0x36,0x39,0x31,0x31,0x37,0x32,0x66,0x55,0x2c,0x0a,0x30,0x78,0x64,0x36,0x34,0x64,0x37,0x36,0x38,0x64,0x55,0x2c,0x30,0x78,0x62, + 0x30,0x65,0x66,0x34,0x33,0x34,0x64,0x55,0x2c,0x30,0x78,0x34,0x64,0x61,0x61,0x63,0x63,0x35,0x34,0x55,0x2c,0x30,0x78,0x30,0x34,0x39,0x36,0x65,0x34,0x64,0x66,0x55, + 0x2c,0x0a,0x30,0x78,0x62,0x35,0x64,0x31,0x39,0x65,0x65,0x33,0x55,0x2c,0x30,0x78,0x38,0x38,0x36,0x61,0x34,0x63,0x31,0x62,0x55,0x2c,0x30,0x78,0x31,0x66,0x32,0x63, + 0x63,0x31,0x62,0x38,0x55,0x2c,0x30,0x78,0x35,0x31,0x36,0x35,0x34,0x36,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x65,0x61,0x35,0x65,0x39,0x64,0x30,0x34,0x55,0x2c,0x30, + 0x78,0x33,0x35,0x38,0x63,0x30,0x31,0x35,0x64,0x55,0x2c,0x30,0x78,0x37,0x34,0x38,0x37,0x66,0x61,0x37,0x33,0x55,0x2c,0x30,0x78,0x34,0x31,0x30,0x62,0x66,0x62,0x32, + 0x65,0x55,0x2c,0x0a,0x30,0x78,0x31,0x64,0x36,0x37,0x62,0x33,0x35,0x61,0x55,0x2c,0x30,0x78,0x64,0x32,0x64,0x62,0x39,0x32,0x35,0x32,0x55,0x2c,0x30,0x78,0x35,0x36, + 0x31,0x30,0x65,0x39,0x33,0x33,0x55,0x2c,0x30,0x78,0x34,0x37,0x64,0x36,0x36,0x64,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x36,0x31,0x64,0x37,0x39,0x61,0x38,0x63,0x55, + 0x2c,0x30,0x78,0x30,0x63,0x61,0x31,0x33,0x37,0x37,0x61,0x55,0x2c,0x30,0x78,0x31,0x34,0x66,0x38,0x35,0x39,0x38,0x65,0x55,0x2c,0x30,0x78,0x33,0x63,0x31,0x33,0x65, + 0x62,0x38,0x39,0x55,0x2c,0x0a,0x30,0x78,0x32,0x37,0x61,0x39,0x63,0x65,0x65,0x65,0x55,0x2c,0x30,0x78,0x63,0x39,0x36,0x31,0x62,0x37,0x33,0x35,0x55,0x2c,0x30,0x78, + 0x65,0x35,0x31,0x63,0x65,0x31,0x65,0x64,0x55,0x2c,0x30,0x78,0x62,0x31,0x34,0x37,0x37,0x61,0x33,0x63,0x55,0x2c,0x0a,0x30,0x78,0x64,0x66,0x64,0x32,0x39,0x63,0x35, + 0x39,0x55,0x2c,0x30,0x78,0x37,0x33,0x66,0x32,0x35,0x35,0x33,0x66,0x55,0x2c,0x30,0x78,0x63,0x65,0x31,0x34,0x31,0x38,0x37,0x39,0x55,0x2c,0x30,0x78,0x33,0x37,0x63, + 0x37,0x37,0x33,0x62,0x66,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x66,0x37,0x35,0x33,0x65,0x61,0x55,0x2c,0x30,0x78,0x61,0x61,0x66,0x64,0x35,0x66,0x35,0x62,0x55,0x2c, + 0x30,0x78,0x36,0x66,0x33,0x64,0x64,0x66,0x31,0x34,0x55,0x2c,0x30,0x78,0x64,0x62,0x34,0x34,0x37,0x38,0x38,0x36,0x55,0x2c,0x0a,0x30,0x78,0x66,0x33,0x61,0x66,0x63, + 0x61,0x38,0x31,0x55,0x2c,0x30,0x78,0x63,0x34,0x36,0x38,0x62,0x39,0x33,0x65,0x55,0x2c,0x30,0x78,0x33,0x34,0x32,0x34,0x33,0x38,0x32,0x63,0x55,0x2c,0x30,0x78,0x34, + 0x30,0x61,0x33,0x63,0x32,0x35,0x66,0x55,0x2c,0x0a,0x30,0x78,0x63,0x33,0x31,0x64,0x31,0x36,0x37,0x32,0x55,0x2c,0x30,0x78,0x32,0x35,0x65,0x32,0x62,0x63,0x30,0x63, + 0x55,0x2c,0x30,0x78,0x34,0x39,0x33,0x63,0x32,0x38,0x38,0x62,0x55,0x2c,0x30,0x78,0x39,0x35,0x30,0x64,0x66,0x66,0x34,0x31,0x55,0x2c,0x0a,0x30,0x78,0x30,0x31,0x61, + 0x38,0x33,0x39,0x37,0x31,0x55,0x2c,0x30,0x78,0x62,0x33,0x30,0x63,0x30,0x38,0x64,0x65,0x55,0x2c,0x30,0x78,0x65,0x34,0x62,0x34,0x64,0x38,0x39,0x63,0x55,0x2c,0x30, + 0x78,0x63,0x31,0x35,0x36,0x36,0x34,0x39,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x34,0x63,0x62,0x37,0x62,0x36,0x31,0x55,0x2c,0x30,0x78,0x62,0x36,0x33,0x32,0x64,0x35, + 0x37,0x30,0x55,0x2c,0x30,0x78,0x35,0x63,0x36,0x63,0x34,0x38,0x37,0x34,0x55,0x2c,0x30,0x78,0x35,0x37,0x62,0x38,0x64,0x30,0x34,0x32,0x55,0x2c,0x0a,0x30,0x78,0x66, + 0x34,0x35,0x31,0x35,0x30,0x61,0x37,0x55,0x2c,0x30,0x78,0x34,0x31,0x37,0x65,0x35,0x33,0x36,0x35,0x55,0x2c,0x30,0x78,0x31,0x37,0x31,0x61,0x63,0x33,0x61,0x34,0x55, + 0x2c,0x30,0x78,0x32,0x37,0x33,0x61,0x39,0x36,0x35,0x65,0x55,0x2c,0x0a,0x30,0x78,0x61,0x62,0x33,0x62,0x63,0x62,0x36,0x62,0x55,0x2c,0x30,0x78,0x39,0x64,0x31,0x66, + 0x66,0x31,0x34,0x35,0x55,0x2c,0x30,0x78,0x66,0x61,0x61,0x63,0x61,0x62,0x35,0x38,0x55,0x2c,0x30,0x78,0x65,0x33,0x34,0x62,0x39,0x33,0x30,0x33,0x55,0x2c,0x0a,0x30, + 0x78,0x33,0x30,0x32,0x30,0x35,0x35,0x66,0x61,0x55,0x2c,0x30,0x78,0x37,0x36,0x61,0x64,0x66,0x36,0x36,0x64,0x55,0x2c,0x30,0x78,0x63,0x63,0x38,0x38,0x39,0x31,0x37, + 0x36,0x55,0x2c,0x30,0x78,0x30,0x32,0x66,0x35,0x32,0x35,0x34,0x63,0x55,0x2c,0x0a,0x30,0x78,0x65,0x35,0x34,0x66,0x66,0x63,0x64,0x37,0x55,0x2c,0x30,0x78,0x32,0x61, + 0x63,0x35,0x64,0x37,0x63,0x62,0x55,0x2c,0x30,0x78,0x33,0x35,0x32,0x36,0x38,0x30,0x34,0x34,0x55,0x2c,0x30,0x78,0x36,0x32,0x62,0x35,0x38,0x66,0x61,0x33,0x55,0x2c, + 0x0a,0x30,0x78,0x62,0x31,0x64,0x65,0x34,0x39,0x35,0x61,0x55,0x2c,0x30,0x78,0x62,0x61,0x32,0x35,0x36,0x37,0x31,0x62,0x55,0x2c,0x30,0x78,0x65,0x61,0x34,0x35,0x39, + 0x38,0x30,0x65,0x55,0x2c,0x30,0x78,0x66,0x65,0x35,0x64,0x65,0x31,0x63,0x30,0x55,0x2c,0x0a,0x30,0x78,0x32,0x66,0x63,0x33,0x30,0x32,0x37,0x35,0x55,0x2c,0x30,0x78, + 0x34,0x63,0x38,0x31,0x31,0x32,0x66,0x30,0x55,0x2c,0x30,0x78,0x34,0x36,0x38,0x64,0x61,0x33,0x39,0x37,0x55,0x2c,0x30,0x78,0x64,0x33,0x36,0x62,0x63,0x36,0x66,0x39, + 0x55,0x2c,0x0a,0x30,0x78,0x38,0x66,0x30,0x33,0x65,0x37,0x35,0x66,0x55,0x2c,0x30,0x78,0x39,0x32,0x31,0x35,0x39,0x35,0x39,0x63,0x55,0x2c,0x30,0x78,0x36,0x64,0x62, + 0x66,0x65,0x62,0x37,0x61,0x55,0x2c,0x30,0x78,0x35,0x32,0x39,0x35,0x64,0x61,0x35,0x39,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x64,0x34,0x32,0x64,0x38,0x33,0x55,0x2c, + 0x30,0x78,0x37,0x34,0x35,0x38,0x64,0x33,0x32,0x31,0x55,0x2c,0x30,0x78,0x65,0x30,0x34,0x39,0x32,0x39,0x36,0x39,0x55,0x2c,0x30,0x78,0x63,0x39,0x38,0x65,0x34,0x34, + 0x63,0x38,0x55,0x2c,0x0a,0x30,0x78,0x63,0x32,0x37,0x35,0x36,0x61,0x38,0x39,0x55,0x2c,0x30,0x78,0x38,0x65,0x66,0x34,0x37,0x38,0x37,0x39,0x55,0x2c,0x30,0x78,0x35, + 0x38,0x39,0x39,0x36,0x62,0x33,0x65,0x55,0x2c,0x30,0x78,0x62,0x39,0x32,0x37,0x64,0x64,0x37,0x31,0x55,0x2c,0x0a,0x30,0x78,0x65,0x31,0x62,0x65,0x62,0x36,0x34,0x66, + 0x55,0x2c,0x30,0x78,0x38,0x38,0x66,0x30,0x31,0x37,0x61,0x64,0x55,0x2c,0x30,0x78,0x32,0x30,0x63,0x39,0x36,0x36,0x61,0x63,0x55,0x2c,0x30,0x78,0x63,0x65,0x37,0x64, + 0x62,0x34,0x33,0x61,0x55,0x2c,0x0a,0x30,0x78,0x64,0x66,0x36,0x33,0x31,0x38,0x34,0x61,0x55,0x2c,0x30,0x78,0x31,0x61,0x65,0x35,0x38,0x32,0x33,0x31,0x55,0x2c,0x30, + 0x78,0x35,0x31,0x39,0x37,0x36,0x30,0x33,0x33,0x55,0x2c,0x30,0x78,0x35,0x33,0x36,0x32,0x34,0x35,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x36,0x34,0x62,0x31,0x65,0x30, + 0x37,0x37,0x55,0x2c,0x30,0x78,0x36,0x62,0x62,0x62,0x38,0x34,0x61,0x65,0x55,0x2c,0x30,0x78,0x38,0x31,0x66,0x65,0x31,0x63,0x61,0x30,0x55,0x2c,0x30,0x78,0x30,0x38, + 0x66,0x39,0x39,0x34,0x32,0x62,0x55,0x2c,0x0a,0x30,0x78,0x34,0x38,0x37,0x30,0x35,0x38,0x36,0x38,0x55,0x2c,0x30,0x78,0x34,0x35,0x38,0x66,0x31,0x39,0x66,0x64,0x55, + 0x2c,0x30,0x78,0x64,0x65,0x39,0x34,0x38,0x37,0x36,0x63,0x55,0x2c,0x30,0x78,0x37,0x62,0x35,0x32,0x62,0x37,0x66,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x33,0x61,0x62, + 0x32,0x33,0x64,0x33,0x55,0x2c,0x30,0x78,0x34,0x62,0x37,0x32,0x65,0x32,0x30,0x32,0x55,0x2c,0x30,0x78,0x31,0x66,0x65,0x33,0x35,0x37,0x38,0x66,0x55,0x2c,0x30,0x78, + 0x35,0x35,0x36,0x36,0x32,0x61,0x61,0x62,0x55,0x2c,0x0a,0x30,0x78,0x65,0x62,0x62,0x32,0x30,0x37,0x32,0x38,0x55,0x2c,0x30,0x78,0x62,0x35,0x32,0x66,0x30,0x33,0x63, + 0x32,0x55,0x2c,0x30,0x78,0x63,0x35,0x38,0x36,0x39,0x61,0x37,0x62,0x55,0x2c,0x30,0x78,0x33,0x37,0x64,0x33,0x61,0x35,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x32,0x38, + 0x33,0x30,0x66,0x32,0x38,0x37,0x55,0x2c,0x30,0x78,0x62,0x66,0x32,0x33,0x62,0x32,0x61,0x35,0x55,0x2c,0x30,0x78,0x30,0x33,0x30,0x32,0x62,0x61,0x36,0x61,0x55,0x2c, + 0x30,0x78,0x31,0x36,0x65,0x64,0x35,0x63,0x38,0x32,0x55,0x2c,0x0a,0x30,0x78,0x63,0x66,0x38,0x61,0x32,0x62,0x31,0x63,0x55,0x2c,0x30,0x78,0x37,0x39,0x61,0x37,0x39, + 0x32,0x62,0x34,0x55,0x2c,0x30,0x78,0x30,0x37,0x66,0x33,0x66,0x30,0x66,0x32,0x55,0x2c,0x30,0x78,0x36,0x39,0x34,0x65,0x61,0x31,0x65,0x32,0x55,0x2c,0x0a,0x30,0x78, + 0x64,0x61,0x36,0x35,0x63,0x64,0x66,0x34,0x55,0x2c,0x30,0x78,0x30,0x35,0x30,0x36,0x64,0x35,0x62,0x65,0x55,0x2c,0x30,0x78,0x33,0x34,0x64,0x31,0x31,0x66,0x36,0x32, + 0x55,0x2c,0x30,0x78,0x61,0x36,0x63,0x34,0x38,0x61,0x66,0x65,0x55,0x2c,0x0a,0x30,0x78,0x32,0x65,0x33,0x34,0x39,0x64,0x35,0x33,0x55,0x2c,0x30,0x78,0x66,0x33,0x61, + 0x32,0x61,0x30,0x35,0x35,0x55,0x2c,0x30,0x78,0x38,0x61,0x30,0x35,0x33,0x32,0x65,0x31,0x55,0x2c,0x30,0x78,0x66,0x36,0x61,0x34,0x37,0x35,0x65,0x62,0x55,0x2c,0x0a, + 0x30,0x78,0x38,0x33,0x30,0x62,0x33,0x39,0x65,0x63,0x55,0x2c,0x30,0x78,0x36,0x30,0x34,0x30,0x61,0x61,0x65,0x66,0x55,0x2c,0x30,0x78,0x37,0x31,0x35,0x65,0x30,0x36, + 0x39,0x66,0x55,0x2c,0x30,0x78,0x36,0x65,0x62,0x64,0x35,0x31,0x31,0x30,0x55,0x2c,0x0a,0x30,0x78,0x32,0x31,0x33,0x65,0x66,0x39,0x38,0x61,0x55,0x2c,0x30,0x78,0x64, + 0x64,0x39,0x36,0x33,0x64,0x30,0x36,0x55,0x2c,0x30,0x78,0x33,0x65,0x64,0x64,0x61,0x65,0x30,0x35,0x55,0x2c,0x30,0x78,0x65,0x36,0x34,0x64,0x34,0x36,0x62,0x64,0x55, + 0x2c,0x0a,0x30,0x78,0x35,0x34,0x39,0x31,0x62,0x35,0x38,0x64,0x55,0x2c,0x30,0x78,0x63,0x34,0x37,0x31,0x30,0x35,0x35,0x64,0x55,0x2c,0x30,0x78,0x30,0x36,0x30,0x34, + 0x36,0x66,0x64,0x34,0x55,0x2c,0x30,0x78,0x35,0x30,0x36,0x30,0x66,0x66,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x39,0x38,0x31,0x39,0x32,0x34,0x66,0x62,0x55,0x2c,0x30, + 0x78,0x62,0x64,0x64,0x36,0x39,0x37,0x65,0x39,0x55,0x2c,0x30,0x78,0x34,0x30,0x38,0x39,0x63,0x63,0x34,0x33,0x55,0x2c,0x30,0x78,0x64,0x39,0x36,0x37,0x37,0x37,0x39, + 0x65,0x55,0x2c,0x0a,0x30,0x78,0x65,0x38,0x62,0x30,0x62,0x64,0x34,0x32,0x55,0x2c,0x30,0x78,0x38,0x39,0x30,0x37,0x38,0x38,0x38,0x62,0x55,0x2c,0x30,0x78,0x31,0x39, + 0x65,0x37,0x33,0x38,0x35,0x62,0x55,0x2c,0x30,0x78,0x63,0x38,0x37,0x39,0x64,0x62,0x65,0x65,0x55,0x2c,0x0a,0x30,0x78,0x37,0x63,0x61,0x31,0x34,0x37,0x30,0x61,0x55, + 0x2c,0x30,0x78,0x34,0x32,0x37,0x63,0x65,0x39,0x30,0x66,0x55,0x2c,0x30,0x78,0x38,0x34,0x66,0x38,0x63,0x39,0x31,0x65,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x38,0x30,0x30,0x39,0x38,0x33,0x38,0x36,0x55,0x2c,0x30,0x78,0x32,0x62,0x33,0x32,0x34,0x38,0x65,0x64,0x55,0x2c,0x30,0x78, + 0x31,0x31,0x31,0x65,0x61,0x63,0x37,0x30,0x55,0x2c,0x30,0x78,0x35,0x61,0x36,0x63,0x34,0x65,0x37,0x32,0x55,0x2c,0x0a,0x30,0x78,0x30,0x65,0x66,0x64,0x66,0x62,0x66, + 0x66,0x55,0x2c,0x30,0x78,0x38,0x35,0x30,0x66,0x35,0x36,0x33,0x38,0x55,0x2c,0x30,0x78,0x61,0x65,0x33,0x64,0x31,0x65,0x64,0x35,0x55,0x2c,0x30,0x78,0x32,0x64,0x33, + 0x36,0x32,0x37,0x33,0x39,0x55,0x2c,0x0a,0x30,0x78,0x30,0x66,0x30,0x61,0x36,0x34,0x64,0x39,0x55,0x2c,0x30,0x78,0x35,0x63,0x36,0x38,0x32,0x31,0x61,0x36,0x55,0x2c, + 0x30,0x78,0x35,0x62,0x39,0x62,0x64,0x31,0x35,0x34,0x55,0x2c,0x30,0x78,0x33,0x36,0x32,0x34,0x33,0x61,0x32,0x65,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x30,0x63,0x62, + 0x31,0x36,0x37,0x55,0x2c,0x30,0x78,0x35,0x37,0x39,0x33,0x30,0x66,0x65,0x37,0x55,0x2c,0x30,0x78,0x65,0x65,0x62,0x34,0x64,0x32,0x39,0x36,0x55,0x2c,0x30,0x78,0x39, + 0x62,0x31,0x62,0x39,0x65,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x63,0x30,0x38,0x30,0x34,0x66,0x63,0x35,0x55,0x2c,0x30,0x78,0x64,0x63,0x36,0x31,0x61,0x32,0x32,0x30, + 0x55,0x2c,0x30,0x78,0x37,0x37,0x35,0x61,0x36,0x39,0x34,0x62,0x55,0x2c,0x30,0x78,0x31,0x32,0x31,0x63,0x31,0x36,0x31,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x33,0x65, + 0x32,0x30,0x61,0x62,0x61,0x55,0x2c,0x30,0x78,0x61,0x30,0x63,0x30,0x65,0x35,0x32,0x61,0x55,0x2c,0x30,0x78,0x32,0x32,0x33,0x63,0x34,0x33,0x65,0x30,0x55,0x2c,0x30, + 0x78,0x31,0x62,0x31,0x32,0x31,0x64,0x31,0x37,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x30,0x65,0x30,0x62,0x30,0x64,0x55,0x2c,0x30,0x78,0x38,0x62,0x66,0x32,0x61,0x64, + 0x63,0x37,0x55,0x2c,0x30,0x78,0x62,0x36,0x32,0x64,0x62,0x39,0x61,0x38,0x55,0x2c,0x30,0x78,0x31,0x65,0x31,0x34,0x63,0x38,0x61,0x39,0x55,0x2c,0x0a,0x30,0x78,0x66, + 0x31,0x35,0x37,0x38,0x35,0x31,0x39,0x55,0x2c,0x30,0x78,0x37,0x35,0x61,0x66,0x34,0x63,0x30,0x37,0x55,0x2c,0x30,0x78,0x39,0x39,0x65,0x65,0x62,0x62,0x64,0x64,0x55, + 0x2c,0x30,0x78,0x37,0x66,0x61,0x33,0x66,0x64,0x36,0x30,0x55,0x2c,0x0a,0x30,0x78,0x30,0x31,0x66,0x37,0x39,0x66,0x32,0x36,0x55,0x2c,0x30,0x78,0x37,0x32,0x35,0x63, + 0x62,0x63,0x66,0x35,0x55,0x2c,0x30,0x78,0x36,0x36,0x34,0x34,0x63,0x35,0x33,0x62,0x55,0x2c,0x30,0x78,0x66,0x62,0x35,0x62,0x33,0x34,0x37,0x65,0x55,0x2c,0x0a,0x30, + 0x78,0x34,0x33,0x38,0x62,0x37,0x36,0x32,0x39,0x55,0x2c,0x30,0x78,0x32,0x33,0x63,0x62,0x64,0x63,0x63,0x36,0x55,0x2c,0x30,0x78,0x65,0x64,0x62,0x36,0x36,0x38,0x66, + 0x63,0x55,0x2c,0x30,0x78,0x65,0x34,0x62,0x38,0x36,0x33,0x66,0x31,0x55,0x2c,0x0a,0x30,0x78,0x33,0x31,0x64,0x37,0x63,0x61,0x64,0x63,0x55,0x2c,0x30,0x78,0x36,0x33, + 0x34,0x32,0x31,0x30,0x38,0x35,0x55,0x2c,0x30,0x78,0x39,0x37,0x31,0x33,0x34,0x30,0x32,0x32,0x55,0x2c,0x30,0x78,0x63,0x36,0x38,0x34,0x32,0x30,0x31,0x31,0x55,0x2c, + 0x0a,0x30,0x78,0x34,0x61,0x38,0x35,0x37,0x64,0x32,0x34,0x55,0x2c,0x30,0x78,0x62,0x62,0x64,0x32,0x66,0x38,0x33,0x64,0x55,0x2c,0x30,0x78,0x66,0x39,0x61,0x65,0x31, + 0x31,0x33,0x32,0x55,0x2c,0x30,0x78,0x32,0x39,0x63,0x37,0x36,0x64,0x61,0x31,0x55,0x2c,0x0a,0x30,0x78,0x39,0x65,0x31,0x64,0x34,0x62,0x32,0x66,0x55,0x2c,0x30,0x78, + 0x62,0x32,0x64,0x63,0x66,0x33,0x33,0x30,0x55,0x2c,0x30,0x78,0x38,0x36,0x30,0x64,0x65,0x63,0x35,0x32,0x55,0x2c,0x30,0x78,0x63,0x31,0x37,0x37,0x64,0x30,0x65,0x33, + 0x55,0x2c,0x0a,0x30,0x78,0x62,0x33,0x32,0x62,0x36,0x63,0x31,0x36,0x55,0x2c,0x30,0x78,0x37,0x30,0x61,0x39,0x39,0x39,0x62,0x39,0x55,0x2c,0x30,0x78,0x39,0x34,0x31, + 0x31,0x66,0x61,0x34,0x38,0x55,0x2c,0x30,0x78,0x65,0x39,0x34,0x37,0x32,0x32,0x36,0x34,0x55,0x2c,0x0a,0x30,0x78,0x66,0x63,0x61,0x38,0x63,0x34,0x38,0x63,0x55,0x2c, + 0x30,0x78,0x66,0x30,0x61,0x30,0x31,0x61,0x33,0x66,0x55,0x2c,0x30,0x78,0x37,0x64,0x35,0x36,0x64,0x38,0x32,0x63,0x55,0x2c,0x30,0x78,0x33,0x33,0x32,0x32,0x65,0x66, + 0x39,0x30,0x55,0x2c,0x0a,0x30,0x78,0x34,0x39,0x38,0x37,0x63,0x37,0x34,0x65,0x55,0x2c,0x30,0x78,0x33,0x38,0x64,0x39,0x63,0x31,0x64,0x31,0x55,0x2c,0x30,0x78,0x63, + 0x61,0x38,0x63,0x66,0x65,0x61,0x32,0x55,0x2c,0x30,0x78,0x64,0x34,0x39,0x38,0x33,0x36,0x30,0x62,0x55,0x2c,0x0a,0x30,0x78,0x66,0x35,0x61,0x36,0x63,0x66,0x38,0x31, + 0x55,0x2c,0x30,0x78,0x37,0x61,0x61,0x35,0x32,0x38,0x64,0x65,0x55,0x2c,0x30,0x78,0x62,0x37,0x64,0x61,0x32,0x36,0x38,0x65,0x55,0x2c,0x30,0x78,0x61,0x64,0x33,0x66, + 0x61,0x34,0x62,0x66,0x55,0x2c,0x0a,0x30,0x78,0x33,0x61,0x32,0x63,0x65,0x34,0x39,0x64,0x55,0x2c,0x30,0x78,0x37,0x38,0x35,0x30,0x30,0x64,0x39,0x32,0x55,0x2c,0x30, + 0x78,0x35,0x66,0x36,0x61,0x39,0x62,0x63,0x63,0x55,0x2c,0x30,0x78,0x37,0x65,0x35,0x34,0x36,0x32,0x34,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x64,0x66,0x36,0x63,0x32, + 0x31,0x33,0x55,0x2c,0x30,0x78,0x64,0x38,0x39,0x30,0x65,0x38,0x62,0x38,0x55,0x2c,0x30,0x78,0x33,0x39,0x32,0x65,0x35,0x65,0x66,0x37,0x55,0x2c,0x30,0x78,0x63,0x33, + 0x38,0x32,0x66,0x35,0x61,0x66,0x55,0x2c,0x0a,0x30,0x78,0x35,0x64,0x39,0x66,0x62,0x65,0x38,0x30,0x55,0x2c,0x30,0x78,0x64,0x30,0x36,0x39,0x37,0x63,0x39,0x33,0x55, + 0x2c,0x30,0x78,0x64,0x35,0x36,0x66,0x61,0x39,0x32,0x64,0x55,0x2c,0x30,0x78,0x32,0x35,0x63,0x66,0x62,0x33,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x61,0x63,0x63,0x38, + 0x33,0x62,0x39,0x39,0x55,0x2c,0x30,0x78,0x31,0x38,0x31,0x30,0x61,0x37,0x37,0x64,0x55,0x2c,0x30,0x78,0x39,0x63,0x65,0x38,0x36,0x65,0x36,0x33,0x55,0x2c,0x30,0x78, + 0x33,0x62,0x64,0x62,0x37,0x62,0x62,0x62,0x55,0x2c,0x0a,0x30,0x78,0x32,0x36,0x63,0x64,0x30,0x39,0x37,0x38,0x55,0x2c,0x30,0x78,0x35,0x39,0x36,0x65,0x66,0x34,0x31, + 0x38,0x55,0x2c,0x30,0x78,0x39,0x61,0x65,0x63,0x30,0x31,0x62,0x37,0x55,0x2c,0x30,0x78,0x34,0x66,0x38,0x33,0x61,0x38,0x39,0x61,0x55,0x2c,0x0a,0x30,0x78,0x39,0x35, + 0x65,0x36,0x36,0x35,0x36,0x65,0x55,0x2c,0x30,0x78,0x66,0x66,0x61,0x61,0x37,0x65,0x65,0x36,0x55,0x2c,0x30,0x78,0x62,0x63,0x32,0x31,0x30,0x38,0x63,0x66,0x55,0x2c, + 0x30,0x78,0x31,0x35,0x65,0x66,0x65,0x36,0x65,0x38,0x55,0x2c,0x0a,0x30,0x78,0x65,0x37,0x62,0x61,0x64,0x39,0x39,0x62,0x55,0x2c,0x30,0x78,0x36,0x66,0x34,0x61,0x63, + 0x65,0x33,0x36,0x55,0x2c,0x30,0x78,0x39,0x66,0x65,0x61,0x64,0x34,0x30,0x39,0x55,0x2c,0x30,0x78,0x62,0x30,0x32,0x39,0x64,0x36,0x37,0x63,0x55,0x2c,0x0a,0x30,0x78, + 0x61,0x34,0x33,0x31,0x61,0x66,0x62,0x32,0x55,0x2c,0x30,0x78,0x33,0x66,0x32,0x61,0x33,0x31,0x32,0x33,0x55,0x2c,0x30,0x78,0x61,0x35,0x63,0x36,0x33,0x30,0x39,0x34, + 0x55,0x2c,0x30,0x78,0x61,0x32,0x33,0x35,0x63,0x30,0x36,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x65,0x37,0x34,0x33,0x37,0x62,0x63,0x55,0x2c,0x30,0x78,0x38,0x32,0x66, + 0x63,0x61,0x36,0x63,0x61,0x55,0x2c,0x30,0x78,0x39,0x30,0x65,0x30,0x62,0x30,0x64,0x30,0x55,0x2c,0x30,0x78,0x61,0x37,0x33,0x33,0x31,0x35,0x64,0x38,0x55,0x2c,0x0a, + 0x30,0x78,0x30,0x34,0x66,0x31,0x34,0x61,0x39,0x38,0x55,0x2c,0x30,0x78,0x65,0x63,0x34,0x31,0x66,0x37,0x64,0x61,0x55,0x2c,0x30,0x78,0x63,0x64,0x37,0x66,0x30,0x65, + 0x35,0x30,0x55,0x2c,0x30,0x78,0x39,0x31,0x31,0x37,0x32,0x66,0x66,0x36,0x55,0x2c,0x0a,0x30,0x78,0x34,0x64,0x37,0x36,0x38,0x64,0x64,0x36,0x55,0x2c,0x30,0x78,0x65, + 0x66,0x34,0x33,0x34,0x64,0x62,0x30,0x55,0x2c,0x30,0x78,0x61,0x61,0x63,0x63,0x35,0x34,0x34,0x64,0x55,0x2c,0x30,0x78,0x39,0x36,0x65,0x34,0x64,0x66,0x30,0x34,0x55, + 0x2c,0x0a,0x30,0x78,0x64,0x31,0x39,0x65,0x65,0x33,0x62,0x35,0x55,0x2c,0x30,0x78,0x36,0x61,0x34,0x63,0x31,0x62,0x38,0x38,0x55,0x2c,0x30,0x78,0x32,0x63,0x63,0x31, + 0x62,0x38,0x31,0x66,0x55,0x2c,0x30,0x78,0x36,0x35,0x34,0x36,0x37,0x66,0x35,0x31,0x55,0x2c,0x0a,0x30,0x78,0x35,0x65,0x39,0x64,0x30,0x34,0x65,0x61,0x55,0x2c,0x30, + 0x78,0x38,0x63,0x30,0x31,0x35,0x64,0x33,0x35,0x55,0x2c,0x30,0x78,0x38,0x37,0x66,0x61,0x37,0x33,0x37,0x34,0x55,0x2c,0x30,0x78,0x30,0x62,0x66,0x62,0x32,0x65,0x34, + 0x31,0x55,0x2c,0x0a,0x30,0x78,0x36,0x37,0x62,0x33,0x35,0x61,0x31,0x64,0x55,0x2c,0x30,0x78,0x64,0x62,0x39,0x32,0x35,0x32,0x64,0x32,0x55,0x2c,0x30,0x78,0x31,0x30, + 0x65,0x39,0x33,0x33,0x35,0x36,0x55,0x2c,0x30,0x78,0x64,0x36,0x36,0x64,0x31,0x33,0x34,0x37,0x55,0x2c,0x0a,0x30,0x78,0x64,0x37,0x39,0x61,0x38,0x63,0x36,0x31,0x55, + 0x2c,0x30,0x78,0x61,0x31,0x33,0x37,0x37,0x61,0x30,0x63,0x55,0x2c,0x30,0x78,0x66,0x38,0x35,0x39,0x38,0x65,0x31,0x34,0x55,0x2c,0x30,0x78,0x31,0x33,0x65,0x62,0x38, + 0x39,0x33,0x63,0x55,0x2c,0x0a,0x30,0x78,0x61,0x39,0x63,0x65,0x65,0x65,0x32,0x37,0x55,0x2c,0x30,0x78,0x36,0x31,0x62,0x37,0x33,0x35,0x63,0x39,0x55,0x2c,0x30,0x78, + 0x31,0x63,0x65,0x31,0x65,0x64,0x65,0x35,0x55,0x2c,0x30,0x78,0x34,0x37,0x37,0x61,0x33,0x63,0x62,0x31,0x55,0x2c,0x0a,0x30,0x78,0x64,0x32,0x39,0x63,0x35,0x39,0x64, + 0x66,0x55,0x2c,0x30,0x78,0x66,0x32,0x35,0x35,0x33,0x66,0x37,0x33,0x55,0x2c,0x30,0x78,0x31,0x34,0x31,0x38,0x37,0x39,0x63,0x65,0x55,0x2c,0x30,0x78,0x63,0x37,0x37, + 0x33,0x62,0x66,0x33,0x37,0x55,0x2c,0x0a,0x30,0x78,0x66,0x37,0x35,0x33,0x65,0x61,0x63,0x64,0x55,0x2c,0x30,0x78,0x66,0x64,0x35,0x66,0x35,0x62,0x61,0x61,0x55,0x2c, + 0x30,0x78,0x33,0x64,0x64,0x66,0x31,0x34,0x36,0x66,0x55,0x2c,0x30,0x78,0x34,0x34,0x37,0x38,0x38,0x36,0x64,0x62,0x55,0x2c,0x0a,0x30,0x78,0x61,0x66,0x63,0x61,0x38, + 0x31,0x66,0x33,0x55,0x2c,0x30,0x78,0x36,0x38,0x62,0x39,0x33,0x65,0x63,0x34,0x55,0x2c,0x30,0x78,0x32,0x34,0x33,0x38,0x32,0x63,0x33,0x34,0x55,0x2c,0x30,0x78,0x61, + 0x33,0x63,0x32,0x35,0x66,0x34,0x30,0x55,0x2c,0x0a,0x30,0x78,0x31,0x64,0x31,0x36,0x37,0x32,0x63,0x33,0x55,0x2c,0x30,0x78,0x65,0x32,0x62,0x63,0x30,0x63,0x32,0x35, + 0x55,0x2c,0x30,0x78,0x33,0x63,0x32,0x38,0x38,0x62,0x34,0x39,0x55,0x2c,0x30,0x78,0x30,0x64,0x66,0x66,0x34,0x31,0x39,0x35,0x55,0x2c,0x0a,0x30,0x78,0x61,0x38,0x33, + 0x39,0x37,0x31,0x30,0x31,0x55,0x2c,0x30,0x78,0x30,0x63,0x30,0x38,0x64,0x65,0x62,0x33,0x55,0x2c,0x30,0x78,0x62,0x34,0x64,0x38,0x39,0x63,0x65,0x34,0x55,0x2c,0x30, + 0x78,0x35,0x36,0x36,0x34,0x39,0x30,0x63,0x31,0x55,0x2c,0x0a,0x30,0x78,0x63,0x62,0x37,0x62,0x36,0x31,0x38,0x34,0x55,0x2c,0x30,0x78,0x33,0x32,0x64,0x35,0x37,0x30, + 0x62,0x36,0x55,0x2c,0x30,0x78,0x36,0x63,0x34,0x38,0x37,0x34,0x35,0x63,0x55,0x2c,0x30,0x78,0x62,0x38,0x64,0x30,0x34,0x32,0x35,0x37,0x55,0x2c,0x0a,0x30,0x78,0x35, + 0x31,0x35,0x30,0x61,0x37,0x66,0x34,0x55,0x2c,0x30,0x78,0x37,0x65,0x35,0x33,0x36,0x35,0x34,0x31,0x55,0x2c,0x30,0x78,0x31,0x61,0x63,0x33,0x61,0x34,0x31,0x37,0x55, + 0x2c,0x30,0x78,0x33,0x61,0x39,0x36,0x35,0x65,0x32,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x62,0x63,0x62,0x36,0x62,0x61,0x62,0x55,0x2c,0x30,0x78,0x31,0x66,0x66,0x31, + 0x34,0x35,0x39,0x64,0x55,0x2c,0x30,0x78,0x61,0x63,0x61,0x62,0x35,0x38,0x66,0x61,0x55,0x2c,0x30,0x78,0x34,0x62,0x39,0x33,0x30,0x33,0x65,0x33,0x55,0x2c,0x0a,0x30, + 0x78,0x32,0x30,0x35,0x35,0x66,0x61,0x33,0x30,0x55,0x2c,0x30,0x78,0x61,0x64,0x66,0x36,0x36,0x64,0x37,0x36,0x55,0x2c,0x30,0x78,0x38,0x38,0x39,0x31,0x37,0x36,0x63, + 0x63,0x55,0x2c,0x30,0x78,0x66,0x35,0x32,0x35,0x34,0x63,0x30,0x32,0x55,0x2c,0x0a,0x30,0x78,0x34,0x66,0x66,0x63,0x64,0x37,0x65,0x35,0x55,0x2c,0x30,0x78,0x63,0x35, + 0x64,0x37,0x63,0x62,0x32,0x61,0x55,0x2c,0x30,0x78,0x32,0x36,0x38,0x30,0x34,0x34,0x33,0x35,0x55,0x2c,0x30,0x78,0x62,0x35,0x38,0x66,0x61,0x33,0x36,0x32,0x55,0x2c, + 0x0a,0x30,0x78,0x64,0x65,0x34,0x39,0x35,0x61,0x62,0x31,0x55,0x2c,0x30,0x78,0x32,0x35,0x36,0x37,0x31,0x62,0x62,0x61,0x55,0x2c,0x30,0x78,0x34,0x35,0x39,0x38,0x30, + 0x65,0x65,0x61,0x55,0x2c,0x30,0x78,0x35,0x64,0x65,0x31,0x63,0x30,0x66,0x65,0x55,0x2c,0x0a,0x30,0x78,0x63,0x33,0x30,0x32,0x37,0x35,0x32,0x66,0x55,0x2c,0x30,0x78, + 0x38,0x31,0x31,0x32,0x66,0x30,0x34,0x63,0x55,0x2c,0x30,0x78,0x38,0x64,0x61,0x33,0x39,0x37,0x34,0x36,0x55,0x2c,0x30,0x78,0x36,0x62,0x63,0x36,0x66,0x39,0x64,0x33, + 0x55,0x2c,0x0a,0x30,0x78,0x30,0x33,0x65,0x37,0x35,0x66,0x38,0x66,0x55,0x2c,0x30,0x78,0x31,0x35,0x39,0x35,0x39,0x63,0x39,0x32,0x55,0x2c,0x30,0x78,0x62,0x66,0x65, + 0x62,0x37,0x61,0x36,0x64,0x55,0x2c,0x30,0x78,0x39,0x35,0x64,0x61,0x35,0x39,0x35,0x32,0x55,0x2c,0x0a,0x30,0x78,0x64,0x34,0x32,0x64,0x38,0x33,0x62,0x65,0x55,0x2c, + 0x30,0x78,0x35,0x38,0x64,0x33,0x32,0x31,0x37,0x34,0x55,0x2c,0x30,0x78,0x34,0x39,0x32,0x39,0x36,0x39,0x65,0x30,0x55,0x2c,0x30,0x78,0x38,0x65,0x34,0x34,0x63,0x38, + 0x63,0x39,0x55,0x2c,0x0a,0x30,0x78,0x37,0x35,0x36,0x61,0x38,0x39,0x63,0x32,0x55,0x2c,0x30,0x78,0x66,0x34,0x37,0x38,0x37,0x39,0x38,0x65,0x55,0x2c,0x30,0x78,0x39, + 0x39,0x36,0x62,0x33,0x65,0x35,0x38,0x55,0x2c,0x30,0x78,0x32,0x37,0x64,0x64,0x37,0x31,0x62,0x39,0x55,0x2c,0x0a,0x30,0x78,0x62,0x65,0x62,0x36,0x34,0x66,0x65,0x31, + 0x55,0x2c,0x30,0x78,0x66,0x30,0x31,0x37,0x61,0x64,0x38,0x38,0x55,0x2c,0x30,0x78,0x63,0x39,0x36,0x36,0x61,0x63,0x32,0x30,0x55,0x2c,0x30,0x78,0x37,0x64,0x62,0x34, + 0x33,0x61,0x63,0x65,0x55,0x2c,0x0a,0x30,0x78,0x36,0x33,0x31,0x38,0x34,0x61,0x64,0x66,0x55,0x2c,0x30,0x78,0x65,0x35,0x38,0x32,0x33,0x31,0x31,0x61,0x55,0x2c,0x30, + 0x78,0x39,0x37,0x36,0x30,0x33,0x33,0x35,0x31,0x55,0x2c,0x30,0x78,0x36,0x32,0x34,0x35,0x37,0x66,0x35,0x33,0x55,0x2c,0x0a,0x30,0x78,0x62,0x31,0x65,0x30,0x37,0x37, + 0x36,0x34,0x55,0x2c,0x30,0x78,0x62,0x62,0x38,0x34,0x61,0x65,0x36,0x62,0x55,0x2c,0x30,0x78,0x66,0x65,0x31,0x63,0x61,0x30,0x38,0x31,0x55,0x2c,0x30,0x78,0x66,0x39, + 0x39,0x34,0x32,0x62,0x30,0x38,0x55,0x2c,0x0a,0x30,0x78,0x37,0x30,0x35,0x38,0x36,0x38,0x34,0x38,0x55,0x2c,0x30,0x78,0x38,0x66,0x31,0x39,0x66,0x64,0x34,0x35,0x55, + 0x2c,0x30,0x78,0x39,0x34,0x38,0x37,0x36,0x63,0x64,0x65,0x55,0x2c,0x30,0x78,0x35,0x32,0x62,0x37,0x66,0x38,0x37,0x62,0x55,0x2c,0x0a,0x30,0x78,0x61,0x62,0x32,0x33, + 0x64,0x33,0x37,0x33,0x55,0x2c,0x30,0x78,0x37,0x32,0x65,0x32,0x30,0x32,0x34,0x62,0x55,0x2c,0x30,0x78,0x65,0x33,0x35,0x37,0x38,0x66,0x31,0x66,0x55,0x2c,0x30,0x78, + 0x36,0x36,0x32,0x61,0x61,0x62,0x35,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x32,0x30,0x37,0x32,0x38,0x65,0x62,0x55,0x2c,0x30,0x78,0x32,0x66,0x30,0x33,0x63,0x32,0x62, + 0x35,0x55,0x2c,0x30,0x78,0x38,0x36,0x39,0x61,0x37,0x62,0x63,0x35,0x55,0x2c,0x30,0x78,0x64,0x33,0x61,0x35,0x30,0x38,0x33,0x37,0x55,0x2c,0x0a,0x30,0x78,0x33,0x30, + 0x66,0x32,0x38,0x37,0x32,0x38,0x55,0x2c,0x30,0x78,0x32,0x33,0x62,0x32,0x61,0x35,0x62,0x66,0x55,0x2c,0x30,0x78,0x30,0x32,0x62,0x61,0x36,0x61,0x30,0x33,0x55,0x2c, + 0x30,0x78,0x65,0x64,0x35,0x63,0x38,0x32,0x31,0x36,0x55,0x2c,0x0a,0x30,0x78,0x38,0x61,0x32,0x62,0x31,0x63,0x63,0x66,0x55,0x2c,0x30,0x78,0x61,0x37,0x39,0x32,0x62, + 0x34,0x37,0x39,0x55,0x2c,0x30,0x78,0x66,0x33,0x66,0x30,0x66,0x32,0x30,0x37,0x55,0x2c,0x30,0x78,0x34,0x65,0x61,0x31,0x65,0x32,0x36,0x39,0x55,0x2c,0x0a,0x30,0x78, + 0x36,0x35,0x63,0x64,0x66,0x34,0x64,0x61,0x55,0x2c,0x30,0x78,0x30,0x36,0x64,0x35,0x62,0x65,0x30,0x35,0x55,0x2c,0x30,0x78,0x64,0x31,0x31,0x66,0x36,0x32,0x33,0x34, + 0x55,0x2c,0x30,0x78,0x63,0x34,0x38,0x61,0x66,0x65,0x61,0x36,0x55,0x2c,0x0a,0x30,0x78,0x33,0x34,0x39,0x64,0x35,0x33,0x32,0x65,0x55,0x2c,0x30,0x78,0x61,0x32,0x61, + 0x30,0x35,0x35,0x66,0x33,0x55,0x2c,0x30,0x78,0x30,0x35,0x33,0x32,0x65,0x31,0x38,0x61,0x55,0x2c,0x30,0x78,0x61,0x34,0x37,0x35,0x65,0x62,0x66,0x36,0x55,0x2c,0x0a, + 0x30,0x78,0x30,0x62,0x33,0x39,0x65,0x63,0x38,0x33,0x55,0x2c,0x30,0x78,0x34,0x30,0x61,0x61,0x65,0x66,0x36,0x30,0x55,0x2c,0x30,0x78,0x35,0x65,0x30,0x36,0x39,0x66, + 0x37,0x31,0x55,0x2c,0x30,0x78,0x62,0x64,0x35,0x31,0x31,0x30,0x36,0x65,0x55,0x2c,0x0a,0x30,0x78,0x33,0x65,0x66,0x39,0x38,0x61,0x32,0x31,0x55,0x2c,0x30,0x78,0x39, + 0x36,0x33,0x64,0x30,0x36,0x64,0x64,0x55,0x2c,0x30,0x78,0x64,0x64,0x61,0x65,0x30,0x35,0x33,0x65,0x55,0x2c,0x30,0x78,0x34,0x64,0x34,0x36,0x62,0x64,0x65,0x36,0x55, + 0x2c,0x0a,0x30,0x78,0x39,0x31,0x62,0x35,0x38,0x64,0x35,0x34,0x55,0x2c,0x30,0x78,0x37,0x31,0x30,0x35,0x35,0x64,0x63,0x34,0x55,0x2c,0x30,0x78,0x30,0x34,0x36,0x66, + 0x64,0x34,0x30,0x36,0x55,0x2c,0x30,0x78,0x36,0x30,0x66,0x66,0x31,0x35,0x35,0x30,0x55,0x2c,0x0a,0x30,0x78,0x31,0x39,0x32,0x34,0x66,0x62,0x39,0x38,0x55,0x2c,0x30, + 0x78,0x64,0x36,0x39,0x37,0x65,0x39,0x62,0x64,0x55,0x2c,0x30,0x78,0x38,0x39,0x63,0x63,0x34,0x33,0x34,0x30,0x55,0x2c,0x30,0x78,0x36,0x37,0x37,0x37,0x39,0x65,0x64, + 0x39,0x55,0x2c,0x0a,0x30,0x78,0x62,0x30,0x62,0x64,0x34,0x32,0x65,0x38,0x55,0x2c,0x30,0x78,0x30,0x37,0x38,0x38,0x38,0x62,0x38,0x39,0x55,0x2c,0x30,0x78,0x65,0x37, + 0x33,0x38,0x35,0x62,0x31,0x39,0x55,0x2c,0x30,0x78,0x37,0x39,0x64,0x62,0x65,0x65,0x63,0x38,0x55,0x2c,0x0a,0x30,0x78,0x61,0x31,0x34,0x37,0x30,0x61,0x37,0x63,0x55, + 0x2c,0x30,0x78,0x37,0x63,0x65,0x39,0x30,0x66,0x34,0x32,0x55,0x2c,0x30,0x78,0x66,0x38,0x63,0x39,0x31,0x65,0x38,0x34,0x55,0x2c,0x30,0x78,0x30,0x30,0x30,0x30,0x30, + 0x30,0x30,0x30,0x55,0x2c,0x0a,0x30,0x78,0x30,0x39,0x38,0x33,0x38,0x36,0x38,0x30,0x55,0x2c,0x30,0x78,0x33,0x32,0x34,0x38,0x65,0x64,0x32,0x62,0x55,0x2c,0x30,0x78, + 0x31,0x65,0x61,0x63,0x37,0x30,0x31,0x31,0x55,0x2c,0x30,0x78,0x36,0x63,0x34,0x65,0x37,0x32,0x35,0x61,0x55,0x2c,0x0a,0x30,0x78,0x66,0x64,0x66,0x62,0x66,0x66,0x30, + 0x65,0x55,0x2c,0x30,0x78,0x30,0x66,0x35,0x36,0x33,0x38,0x38,0x35,0x55,0x2c,0x30,0x78,0x33,0x64,0x31,0x65,0x64,0x35,0x61,0x65,0x55,0x2c,0x30,0x78,0x33,0x36,0x32, + 0x37,0x33,0x39,0x32,0x64,0x55,0x2c,0x0a,0x30,0x78,0x30,0x61,0x36,0x34,0x64,0x39,0x30,0x66,0x55,0x2c,0x30,0x78,0x36,0x38,0x32,0x31,0x61,0x36,0x35,0x63,0x55,0x2c, + 0x30,0x78,0x39,0x62,0x64,0x31,0x35,0x34,0x35,0x62,0x55,0x2c,0x30,0x78,0x32,0x34,0x33,0x61,0x32,0x65,0x33,0x36,0x55,0x2c,0x0a,0x30,0x78,0x30,0x63,0x62,0x31,0x36, + 0x37,0x30,0x61,0x55,0x2c,0x30,0x78,0x39,0x33,0x30,0x66,0x65,0x37,0x35,0x37,0x55,0x2c,0x30,0x78,0x62,0x34,0x64,0x32,0x39,0x36,0x65,0x65,0x55,0x2c,0x30,0x78,0x31, + 0x62,0x39,0x65,0x39,0x31,0x39,0x62,0x55,0x2c,0x0a,0x30,0x78,0x38,0x30,0x34,0x66,0x63,0x35,0x63,0x30,0x55,0x2c,0x30,0x78,0x36,0x31,0x61,0x32,0x32,0x30,0x64,0x63, + 0x55,0x2c,0x30,0x78,0x35,0x61,0x36,0x39,0x34,0x62,0x37,0x37,0x55,0x2c,0x30,0x78,0x31,0x63,0x31,0x36,0x31,0x61,0x31,0x32,0x55,0x2c,0x0a,0x30,0x78,0x65,0x32,0x30, + 0x61,0x62,0x61,0x39,0x33,0x55,0x2c,0x30,0x78,0x63,0x30,0x65,0x35,0x32,0x61,0x61,0x30,0x55,0x2c,0x30,0x78,0x33,0x63,0x34,0x33,0x65,0x30,0x32,0x32,0x55,0x2c,0x30, + 0x78,0x31,0x32,0x31,0x64,0x31,0x37,0x31,0x62,0x55,0x2c,0x0a,0x30,0x78,0x30,0x65,0x30,0x62,0x30,0x64,0x30,0x39,0x55,0x2c,0x30,0x78,0x66,0x32,0x61,0x64,0x63,0x37, + 0x38,0x62,0x55,0x2c,0x30,0x78,0x32,0x64,0x62,0x39,0x61,0x38,0x62,0x36,0x55,0x2c,0x30,0x78,0x31,0x34,0x63,0x38,0x61,0x39,0x31,0x65,0x55,0x2c,0x0a,0x30,0x78,0x35, + 0x37,0x38,0x35,0x31,0x39,0x66,0x31,0x55,0x2c,0x30,0x78,0x61,0x66,0x34,0x63,0x30,0x37,0x37,0x35,0x55,0x2c,0x30,0x78,0x65,0x65,0x62,0x62,0x64,0x64,0x39,0x39,0x55, + 0x2c,0x30,0x78,0x61,0x33,0x66,0x64,0x36,0x30,0x37,0x66,0x55,0x2c,0x0a,0x30,0x78,0x66,0x37,0x39,0x66,0x32,0x36,0x30,0x31,0x55,0x2c,0x30,0x78,0x35,0x63,0x62,0x63, + 0x66,0x35,0x37,0x32,0x55,0x2c,0x30,0x78,0x34,0x34,0x63,0x35,0x33,0x62,0x36,0x36,0x55,0x2c,0x30,0x78,0x35,0x62,0x33,0x34,0x37,0x65,0x66,0x62,0x55,0x2c,0x0a,0x30, + 0x78,0x38,0x62,0x37,0x36,0x32,0x39,0x34,0x33,0x55,0x2c,0x30,0x78,0x63,0x62,0x64,0x63,0x63,0x36,0x32,0x33,0x55,0x2c,0x30,0x78,0x62,0x36,0x36,0x38,0x66,0x63,0x65, + 0x64,0x55,0x2c,0x30,0x78,0x62,0x38,0x36,0x33,0x66,0x31,0x65,0x34,0x55,0x2c,0x0a,0x30,0x78,0x64,0x37,0x63,0x61,0x64,0x63,0x33,0x31,0x55,0x2c,0x30,0x78,0x34,0x32, + 0x31,0x30,0x38,0x35,0x36,0x33,0x55,0x2c,0x30,0x78,0x31,0x33,0x34,0x30,0x32,0x32,0x39,0x37,0x55,0x2c,0x30,0x78,0x38,0x34,0x32,0x30,0x31,0x31,0x63,0x36,0x55,0x2c, + 0x0a,0x30,0x78,0x38,0x35,0x37,0x64,0x32,0x34,0x34,0x61,0x55,0x2c,0x30,0x78,0x64,0x32,0x66,0x38,0x33,0x64,0x62,0x62,0x55,0x2c,0x30,0x78,0x61,0x65,0x31,0x31,0x33, + 0x32,0x66,0x39,0x55,0x2c,0x30,0x78,0x63,0x37,0x36,0x64,0x61,0x31,0x32,0x39,0x55,0x2c,0x0a,0x30,0x78,0x31,0x64,0x34,0x62,0x32,0x66,0x39,0x65,0x55,0x2c,0x30,0x78, + 0x64,0x63,0x66,0x33,0x33,0x30,0x62,0x32,0x55,0x2c,0x30,0x78,0x30,0x64,0x65,0x63,0x35,0x32,0x38,0x36,0x55,0x2c,0x30,0x78,0x37,0x37,0x64,0x30,0x65,0x33,0x63,0x31, + 0x55,0x2c,0x0a,0x30,0x78,0x32,0x62,0x36,0x63,0x31,0x36,0x62,0x33,0x55,0x2c,0x30,0x78,0x61,0x39,0x39,0x39,0x62,0x39,0x37,0x30,0x55,0x2c,0x30,0x78,0x31,0x31,0x66, + 0x61,0x34,0x38,0x39,0x34,0x55,0x2c,0x30,0x78,0x34,0x37,0x32,0x32,0x36,0x34,0x65,0x39,0x55,0x2c,0x0a,0x30,0x78,0x61,0x38,0x63,0x34,0x38,0x63,0x66,0x63,0x55,0x2c, + 0x30,0x78,0x61,0x30,0x31,0x61,0x33,0x66,0x66,0x30,0x55,0x2c,0x30,0x78,0x35,0x36,0x64,0x38,0x32,0x63,0x37,0x64,0x55,0x2c,0x30,0x78,0x32,0x32,0x65,0x66,0x39,0x30, + 0x33,0x33,0x55,0x2c,0x0a,0x30,0x78,0x38,0x37,0x63,0x37,0x34,0x65,0x34,0x39,0x55,0x2c,0x30,0x78,0x64,0x39,0x63,0x31,0x64,0x31,0x33,0x38,0x55,0x2c,0x30,0x78,0x38, + 0x63,0x66,0x65,0x61,0x32,0x63,0x61,0x55,0x2c,0x30,0x78,0x39,0x38,0x33,0x36,0x30,0x62,0x64,0x34,0x55,0x2c,0x0a,0x30,0x78,0x61,0x36,0x63,0x66,0x38,0x31,0x66,0x35, + 0x55,0x2c,0x30,0x78,0x61,0x35,0x32,0x38,0x64,0x65,0x37,0x61,0x55,0x2c,0x30,0x78,0x64,0x61,0x32,0x36,0x38,0x65,0x62,0x37,0x55,0x2c,0x30,0x78,0x33,0x66,0x61,0x34, + 0x62,0x66,0x61,0x64,0x55,0x2c,0x0a,0x30,0x78,0x32,0x63,0x65,0x34,0x39,0x64,0x33,0x61,0x55,0x2c,0x30,0x78,0x35,0x30,0x30,0x64,0x39,0x32,0x37,0x38,0x55,0x2c,0x30, + 0x78,0x36,0x61,0x39,0x62,0x63,0x63,0x35,0x66,0x55,0x2c,0x30,0x78,0x35,0x34,0x36,0x32,0x34,0x36,0x37,0x65,0x55,0x2c,0x0a,0x30,0x78,0x66,0x36,0x63,0x32,0x31,0x33, + 0x38,0x64,0x55,0x2c,0x30,0x78,0x39,0x30,0x65,0x38,0x62,0x38,0x64,0x38,0x55,0x2c,0x30,0x78,0x32,0x65,0x35,0x65,0x66,0x37,0x33,0x39,0x55,0x2c,0x30,0x78,0x38,0x32, + 0x66,0x35,0x61,0x66,0x63,0x33,0x55,0x2c,0x0a,0x30,0x78,0x39,0x66,0x62,0x65,0x38,0x30,0x35,0x64,0x55,0x2c,0x30,0x78,0x36,0x39,0x37,0x63,0x39,0x33,0x64,0x30,0x55, + 0x2c,0x30,0x78,0x36,0x66,0x61,0x39,0x32,0x64,0x64,0x35,0x55,0x2c,0x30,0x78,0x63,0x66,0x62,0x33,0x31,0x32,0x32,0x35,0x55,0x2c,0x0a,0x30,0x78,0x63,0x38,0x33,0x62, + 0x39,0x39,0x61,0x63,0x55,0x2c,0x30,0x78,0x31,0x30,0x61,0x37,0x37,0x64,0x31,0x38,0x55,0x2c,0x30,0x78,0x65,0x38,0x36,0x65,0x36,0x33,0x39,0x63,0x55,0x2c,0x30,0x78, + 0x64,0x62,0x37,0x62,0x62,0x62,0x33,0x62,0x55,0x2c,0x0a,0x30,0x78,0x63,0x64,0x30,0x39,0x37,0x38,0x32,0x36,0x55,0x2c,0x30,0x78,0x36,0x65,0x66,0x34,0x31,0x38,0x35, + 0x39,0x55,0x2c,0x30,0x78,0x65,0x63,0x30,0x31,0x62,0x37,0x39,0x61,0x55,0x2c,0x30,0x78,0x38,0x33,0x61,0x38,0x39,0x61,0x34,0x66,0x55,0x2c,0x0a,0x30,0x78,0x65,0x36, + 0x36,0x35,0x36,0x65,0x39,0x35,0x55,0x2c,0x30,0x78,0x61,0x61,0x37,0x65,0x65,0x36,0x66,0x66,0x55,0x2c,0x30,0x78,0x32,0x31,0x30,0x38,0x63,0x66,0x62,0x63,0x55,0x2c, + 0x30,0x78,0x65,0x66,0x65,0x36,0x65,0x38,0x31,0x35,0x55,0x2c,0x0a,0x30,0x78,0x62,0x61,0x64,0x39,0x39,0x62,0x65,0x37,0x55,0x2c,0x30,0x78,0x34,0x61,0x63,0x65,0x33, + 0x36,0x36,0x66,0x55,0x2c,0x30,0x78,0x65,0x61,0x64,0x34,0x30,0x39,0x39,0x66,0x55,0x2c,0x30,0x78,0x32,0x39,0x64,0x36,0x37,0x63,0x62,0x30,0x55,0x2c,0x0a,0x30,0x78, + 0x33,0x31,0x61,0x66,0x62,0x32,0x61,0x34,0x55,0x2c,0x30,0x78,0x32,0x61,0x33,0x31,0x32,0x33,0x33,0x66,0x55,0x2c,0x30,0x78,0x63,0x36,0x33,0x30,0x39,0x34,0x61,0x35, + 0x55,0x2c,0x30,0x78,0x33,0x35,0x63,0x30,0x36,0x36,0x61,0x32,0x55,0x2c,0x0a,0x30,0x78,0x37,0x34,0x33,0x37,0x62,0x63,0x34,0x65,0x55,0x2c,0x30,0x78,0x66,0x63,0x61, + 0x36,0x63,0x61,0x38,0x32,0x55,0x2c,0x30,0x78,0x65,0x30,0x62,0x30,0x64,0x30,0x39,0x30,0x55,0x2c,0x30,0x78,0x33,0x33,0x31,0x35,0x64,0x38,0x61,0x37,0x55,0x2c,0x0a, + 0x30,0x78,0x66,0x31,0x34,0x61,0x39,0x38,0x30,0x34,0x55,0x2c,0x30,0x78,0x34,0x31,0x66,0x37,0x64,0x61,0x65,0x63,0x55,0x2c,0x30,0x78,0x37,0x66,0x30,0x65,0x35,0x30, + 0x63,0x64,0x55,0x2c,0x30,0x78,0x31,0x37,0x32,0x66,0x66,0x36,0x39,0x31,0x55,0x2c,0x0a,0x30,0x78,0x37,0x36,0x38,0x64,0x64,0x36,0x34,0x64,0x55,0x2c,0x30,0x78,0x34, + 0x33,0x34,0x64,0x62,0x30,0x65,0x66,0x55,0x2c,0x30,0x78,0x63,0x63,0x35,0x34,0x34,0x64,0x61,0x61,0x55,0x2c,0x30,0x78,0x65,0x34,0x64,0x66,0x30,0x34,0x39,0x36,0x55, + 0x2c,0x0a,0x30,0x78,0x39,0x65,0x65,0x33,0x62,0x35,0x64,0x31,0x55,0x2c,0x30,0x78,0x34,0x63,0x31,0x62,0x38,0x38,0x36,0x61,0x55,0x2c,0x30,0x78,0x63,0x31,0x62,0x38, + 0x31,0x66,0x32,0x63,0x55,0x2c,0x30,0x78,0x34,0x36,0x37,0x66,0x35,0x31,0x36,0x35,0x55,0x2c,0x0a,0x30,0x78,0x39,0x64,0x30,0x34,0x65,0x61,0x35,0x65,0x55,0x2c,0x30, + 0x78,0x30,0x31,0x35,0x64,0x33,0x35,0x38,0x63,0x55,0x2c,0x30,0x78,0x66,0x61,0x37,0x33,0x37,0x34,0x38,0x37,0x55,0x2c,0x30,0x78,0x66,0x62,0x32,0x65,0x34,0x31,0x30, + 0x62,0x55,0x2c,0x0a,0x30,0x78,0x62,0x33,0x35,0x61,0x31,0x64,0x36,0x37,0x55,0x2c,0x30,0x78,0x39,0x32,0x35,0x32,0x64,0x32,0x64,0x62,0x55,0x2c,0x30,0x78,0x65,0x39, + 0x33,0x33,0x35,0x36,0x31,0x30,0x55,0x2c,0x30,0x78,0x36,0x64,0x31,0x33,0x34,0x37,0x64,0x36,0x55,0x2c,0x0a,0x30,0x78,0x39,0x61,0x38,0x63,0x36,0x31,0x64,0x37,0x55, + 0x2c,0x30,0x78,0x33,0x37,0x37,0x61,0x30,0x63,0x61,0x31,0x55,0x2c,0x30,0x78,0x35,0x39,0x38,0x65,0x31,0x34,0x66,0x38,0x55,0x2c,0x30,0x78,0x65,0x62,0x38,0x39,0x33, + 0x63,0x31,0x33,0x55,0x2c,0x0a,0x30,0x78,0x63,0x65,0x65,0x65,0x32,0x37,0x61,0x39,0x55,0x2c,0x30,0x78,0x62,0x37,0x33,0x35,0x63,0x39,0x36,0x31,0x55,0x2c,0x30,0x78, + 0x65,0x31,0x65,0x64,0x65,0x35,0x31,0x63,0x55,0x2c,0x30,0x78,0x37,0x61,0x33,0x63,0x62,0x31,0x34,0x37,0x55,0x2c,0x0a,0x30,0x78,0x39,0x63,0x35,0x39,0x64,0x66,0x64, + 0x32,0x55,0x2c,0x30,0x78,0x35,0x35,0x33,0x66,0x37,0x33,0x66,0x32,0x55,0x2c,0x30,0x78,0x31,0x38,0x37,0x39,0x63,0x65,0x31,0x34,0x55,0x2c,0x30,0x78,0x37,0x33,0x62, + 0x66,0x33,0x37,0x63,0x37,0x55,0x2c,0x0a,0x30,0x78,0x35,0x33,0x65,0x61,0x63,0x64,0x66,0x37,0x55,0x2c,0x30,0x78,0x35,0x66,0x35,0x62,0x61,0x61,0x66,0x64,0x55,0x2c, + 0x30,0x78,0x64,0x66,0x31,0x34,0x36,0x66,0x33,0x64,0x55,0x2c,0x30,0x78,0x37,0x38,0x38,0x36,0x64,0x62,0x34,0x34,0x55,0x2c,0x0a,0x30,0x78,0x63,0x61,0x38,0x31,0x66, + 0x33,0x61,0x66,0x55,0x2c,0x30,0x78,0x62,0x39,0x33,0x65,0x63,0x34,0x36,0x38,0x55,0x2c,0x30,0x78,0x33,0x38,0x32,0x63,0x33,0x34,0x32,0x34,0x55,0x2c,0x30,0x78,0x63, + 0x32,0x35,0x66,0x34,0x30,0x61,0x33,0x55,0x2c,0x0a,0x30,0x78,0x31,0x36,0x37,0x32,0x63,0x33,0x31,0x64,0x55,0x2c,0x30,0x78,0x62,0x63,0x30,0x63,0x32,0x35,0x65,0x32, + 0x55,0x2c,0x30,0x78,0x32,0x38,0x38,0x62,0x34,0x39,0x33,0x63,0x55,0x2c,0x30,0x78,0x66,0x66,0x34,0x31,0x39,0x35,0x30,0x64,0x55,0x2c,0x0a,0x30,0x78,0x33,0x39,0x37, + 0x31,0x30,0x31,0x61,0x38,0x55,0x2c,0x30,0x78,0x30,0x38,0x64,0x65,0x62,0x33,0x30,0x63,0x55,0x2c,0x30,0x78,0x64,0x38,0x39,0x63,0x65,0x34,0x62,0x34,0x55,0x2c,0x30, + 0x78,0x36,0x34,0x39,0x30,0x63,0x31,0x35,0x36,0x55,0x2c,0x0a,0x30,0x78,0x37,0x62,0x36,0x31,0x38,0x34,0x63,0x62,0x55,0x2c,0x30,0x78,0x64,0x35,0x37,0x30,0x62,0x36, + 0x33,0x32,0x55,0x2c,0x30,0x78,0x34,0x38,0x37,0x34,0x35,0x63,0x36,0x63,0x55,0x2c,0x30,0x78,0x64,0x30,0x34,0x32,0x35,0x37,0x62,0x38,0x55,0x2c,0x0a,0x7d,0x3b,0x0a, + 0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x41,0x45,0x53, + 0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x36,0x64,0x61,0x63,0x61,0x35,0x35,0x33,0x2c,0x30,0x78,0x36,0x32,0x37, + 0x31,0x36,0x36,0x30,0x39,0x2c,0x30,0x78,0x64,0x62,0x62,0x35,0x35,0x35,0x32,0x62,0x2c,0x30,0x78,0x62,0x34,0x66,0x34,0x34,0x39,0x31,0x37,0x2c,0x0a,0x30,0x78,0x36, + 0x64,0x37,0x63,0x61,0x66,0x30,0x37,0x2c,0x30,0x78,0x38,0x34,0x36,0x61,0x37,0x31,0x30,0x64,0x2c,0x30,0x78,0x31,0x37,0x32,0x35,0x64,0x33,0x37,0x38,0x2c,0x30,0x78, + 0x30,0x64,0x61,0x31,0x64,0x63,0x34,0x65,0x2c,0x0a,0x30,0x78,0x33,0x66,0x31,0x32,0x36,0x32,0x66,0x31,0x2c,0x30,0x78,0x39,0x66,0x39,0x34,0x37,0x65,0x63,0x36,0x2c, + 0x30,0x78,0x66,0x34,0x63,0x30,0x37,0x39,0x34,0x66,0x2c,0x30,0x78,0x33,0x65,0x32,0x30,0x65,0x33,0x34,0x35,0x2c,0x0a,0x30,0x78,0x36,0x61,0x65,0x66,0x38,0x31,0x33, + 0x35,0x2c,0x30,0x78,0x62,0x31,0x62,0x61,0x33,0x31,0x37,0x63,0x2c,0x30,0x78,0x31,0x36,0x33,0x31,0x34,0x63,0x38,0x38,0x2c,0x30,0x78,0x34,0x39,0x31,0x36,0x39,0x31, + 0x35,0x34,0x2c,0x0a,0x7d,0x3b,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x78,0x39,0x32,0x62,0x35,0x32, + 0x63,0x30,0x64,0x2c,0x30,0x78,0x39,0x66,0x61,0x38,0x35,0x36,0x64,0x65,0x2c,0x30,0x78,0x63,0x63,0x38,0x32,0x64,0x62,0x34,0x37,0x2c,0x30,0x78,0x64,0x37,0x39,0x38, + 0x33,0x61,0x61,0x64,0x2c,0x0a,0x30,0x78,0x33,0x33,0x38,0x64,0x39,0x39,0x36,0x65,0x2c,0x30,0x78,0x31,0x35,0x63,0x37,0x62,0x37,0x39,0x38,0x2c,0x30,0x78,0x66,0x35, + 0x39,0x65,0x31,0x32,0x35,0x61,0x2c,0x30,0x78,0x61,0x63,0x65,0x37,0x38,0x30,0x35,0x37,0x2c,0x0a,0x30,0x78,0x36,0x61,0x37,0x37,0x30,0x30,0x31,0x37,0x2c,0x30,0x78, + 0x61,0x65,0x36,0x32,0x63,0x37,0x64,0x30,0x2c,0x30,0x78,0x35,0x30,0x37,0x39,0x35,0x30,0x36,0x62,0x2c,0x30,0x78,0x65,0x38,0x61,0x30,0x37,0x63,0x65,0x34,0x2c,0x0a, + 0x30,0x78,0x36,0x33,0x30,0x61,0x32,0x34,0x30,0x63,0x2c,0x30,0x78,0x30,0x37,0x61,0x64,0x38,0x32,0x38,0x64,0x2c,0x30,0x78,0x37,0x39,0x61,0x31,0x30,0x30,0x30,0x35, + 0x2c,0x30,0x78,0x37,0x65,0x39,0x39,0x34,0x39,0x34,0x38,0x2c,0x0a,0x7d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x75,0x69,0x6e,0x74,0x20,0x61,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x62,0x69,0x74,0x29,0x20,0x7b,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, + 0x28,0x61,0x3e,0x3e,0x73,0x74,0x61,0x72,0x74,0x5f,0x62,0x69,0x74,0x29,0x26,0x30,0x78,0x46,0x46,0x3b,0x20,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x66, + 0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x31,0x52,0x78,0x34,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70, + 0x61,0x64,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43, + 0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x20, + 0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x2b,0x20,0x36,0x34,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c, + 0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x31,0x0a,0x5f, + 0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69, + 0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6c,0x6c,0x41, + 0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x73,0x74,0x61,0x74,0x65,0x2c,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x6f,0x75,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c, + 0x75,0x69,0x6e,0x74,0x20,0x72,0x78,0x5f,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20, + 0x54,0x5b,0x32,0x30,0x34,0x38,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78, + 0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64, + 0x65,0x78,0x3e,0x3d,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2a,0x34,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20,0x34,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75, + 0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2c,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c, + 0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x30,0x34,0x38,0x3b,0x20,0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x29,0x0a,0x54, + 0x5b,0x69,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x54,0x41,0x42,0x4c,0x45,0x5b,0x69,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f, + 0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x21, + 0x3d,0x20,0x34,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x5b,0x34,0x5d,0x3d,0x7b,0x20,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49, + 0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x31,0x5d,0x2c, + 0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x32,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49, + 0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x33,0x5d,0x20,0x7d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20, + 0x62,0x31,0x3d,0x28,0x72,0x78,0x5f,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x3c,0x31,0x30,0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20, + 0x62,0x32,0x3d,0x28,0x73,0x75,0x62,0x3c,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x6b,0x5b,0x31,0x36,0x5d,0x3b,0x0a,0x6b,0x5b,0x20,0x30,0x5d,0x3d,0x62,0x31, + 0x3f,0x30,0x78,0x66,0x38,0x39,0x30,0x34,0x36,0x35,0x64,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x36,0x34,0x32,0x31,0x61,0x61,0x64,0x64,0x75,0x3a,0x30,0x78,0x62, + 0x35,0x38,0x32,0x36,0x66,0x37,0x33,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x31,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x37,0x66,0x66,0x62,0x65,0x34,0x61,0x36,0x75,0x3a, + 0x28,0x62,0x32,0x3f,0x30,0x78,0x64,0x31,0x38,0x33,0x33,0x64,0x64,0x62,0x75,0x3a,0x30,0x78,0x65,0x33,0x64,0x36,0x61,0x37,0x61,0x36,0x75,0x29,0x3b,0x0a,0x6b,0x5b, + 0x20,0x32,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x31,0x34,0x31,0x66,0x38,0x32,0x62,0x37,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x32,0x66,0x35,0x34,0x36,0x64,0x32, + 0x62,0x75,0x3a,0x30,0x78,0x33,0x64,0x35,0x31,0x38,0x62,0x36,0x64,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x33,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x63,0x66,0x33,0x35, + 0x39,0x65,0x39,0x35,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x39,0x39,0x65,0x35,0x64,0x32,0x33,0x66,0x75,0x3a,0x30,0x78,0x32,0x32,0x39,0x65,0x66,0x66,0x62,0x34, + 0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x34,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x36,0x61,0x35,0x35,0x63,0x34,0x35,0x30,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x62, + 0x32,0x30,0x65,0x33,0x34,0x35,0x30,0x75,0x3a,0x30,0x78,0x63,0x37,0x35,0x36,0x36,0x62,0x66,0x33,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x35,0x5d,0x3d,0x62,0x31,0x3f, + 0x30,0x78,0x66,0x65,0x65,0x38,0x32,0x37,0x38,0x61,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x62,0x36,0x39,0x31,0x33,0x66,0x35,0x35,0x75,0x3a,0x30,0x78,0x39,0x63, + 0x31,0x30,0x62,0x33,0x64,0x39,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x36,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x62,0x64,0x35,0x63,0x35,0x61,0x63,0x33,0x75,0x3a,0x28, + 0x62,0x32,0x3f,0x30,0x78,0x30,0x36,0x66,0x37,0x39,0x64,0x35,0x33,0x75,0x3a,0x30,0x78,0x65,0x39,0x30,0x32,0x34,0x64,0x34,0x65,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20, + 0x37,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x36,0x37,0x34,0x31,0x66,0x66,0x64,0x63,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x61,0x35,0x64,0x66,0x63,0x64,0x65,0x35, + 0x75,0x3a,0x30,0x78,0x62,0x32,0x37,0x32,0x62,0x37,0x64,0x32,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x38,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x31,0x31,0x34,0x63,0x34, + 0x37,0x61,0x34,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x35,0x63,0x33,0x65,0x64,0x39,0x30,0x34,0x75,0x3a,0x30,0x78,0x66,0x32,0x37,0x33,0x63,0x39,0x65,0x37,0x75, + 0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x39,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x64,0x35,0x32,0x34,0x66,0x64,0x65,0x34,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x35,0x31, + 0x35,0x65,0x37,0x62,0x61,0x66,0x75,0x3a,0x30,0x78,0x66,0x37,0x36,0x35,0x61,0x33,0x38,0x62,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x30,0x5d,0x3d,0x62,0x31,0x3f,0x30, + 0x78,0x61,0x37,0x32,0x37,0x39,0x61,0x64,0x32,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x30,0x61,0x61,0x34,0x36,0x37,0x39,0x66,0x75,0x3a,0x30,0x78,0x32,0x62,0x61, + 0x39,0x36,0x36,0x30,0x61,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x31,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x33,0x64,0x33,0x32,0x34,0x61,0x61,0x63,0x75,0x3a,0x28,0x62, + 0x32,0x3f,0x30,0x78,0x31,0x37,0x31,0x63,0x30,0x32,0x62,0x66,0x75,0x3a,0x30,0x78,0x66,0x36,0x33,0x62,0x65,0x66,0x61,0x37,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x32, + 0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x38,0x31,0x30,0x63,0x33,0x61,0x32,0x61,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x38,0x35,0x36,0x32,0x33,0x37,0x36,0x33,0x75, + 0x3a,0x30,0x78,0x37,0x61,0x37,0x63,0x64,0x36,0x30,0x39,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x33,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x39,0x39,0x61,0x39,0x61,0x65, + 0x66,0x66,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x65,0x37,0x38,0x66,0x35,0x64,0x30,0x38,0x75,0x3a,0x30,0x78,0x39,0x31,0x35,0x38,0x33,0x39,0x64,0x65,0x75,0x29, + 0x3b,0x0a,0x6b,0x5b,0x31,0x34,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x34,0x32,0x64,0x33,0x64,0x62,0x64,0x39,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x63,0x64,0x36, + 0x37,0x33,0x37,0x38,0x35,0x75,0x3a,0x30,0x78,0x30,0x63,0x30,0x36,0x64,0x31,0x66,0x64,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x35,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78, + 0x37,0x36,0x66,0x36,0x64,0x62,0x30,0x38,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x64,0x38,0x64,0x65,0x64,0x32,0x39,0x31,0x75,0x3a,0x30,0x78,0x63,0x30,0x62,0x30, + 0x37,0x36,0x32,0x64,0x75,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x73,0x3d, + 0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x20,0x73,0x74,0x61,0x74,0x65,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x36,0x34, + 0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x29,0x29,0x2b,0x73,0x75,0x62,0x2a,0x28,0x31,0x36,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69, + 0x6e,0x74,0x29,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x78,0x5b,0x34,0x5d,0x3d,0x7b,0x20,0x73,0x5b,0x30,0x5d,0x2c,0x73,0x5b,0x31,0x5d,0x2c,0x73,0x5b,0x32,0x5d, + 0x2c,0x73,0x5b,0x33,0x5d,0x20,0x7d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x31,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x38, + 0x3a,0x32,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x33,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x32,0x34,0x3a,0x38,0x3b, + 0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x34,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x2f,0x73,0x69,0x7a,0x65, + 0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x29,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x30,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x54,0x3a,0x28,0x54,0x2b,0x31,0x30,0x32,0x34,0x29,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x31,0x3d,0x28,0x73, + 0x75,0x62,0x26,0x31,0x29,0x3f,0x28,0x54,0x2b,0x32,0x35,0x36,0x29,0x3a,0x28,0x54,0x2b,0x31,0x37,0x39,0x32,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x32,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x28,0x54,0x2b, + 0x35,0x31,0x32,0x29,0x3a,0x28,0x54,0x2b,0x31,0x35,0x33,0x36,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x33,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x28,0x54,0x2b,0x37,0x36,0x38,0x29,0x3a,0x28,0x54,0x2b,0x31, + 0x32,0x38,0x30,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74, + 0x6f,0x72,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x2f,0x73, + 0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x3b,0x20,0x69,0x2b,0x3d,0x34,0x2c,0x70,0x2b,0x3d,0x34,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20, + 0x79,0x5b,0x34,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x21,0x3d,0x20,0x34,0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74, + 0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, + 0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d, + 0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b, + 0x30,0x5d,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e, + 0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62, + 0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b, + 0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, + 0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29, + 0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x32,0x5d,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b, + 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33, + 0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31, + 0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x33,0x5d, + 0x3b,0x0a,0x2a,0x70,0x3d,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x79,0x29,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x79,0x5b,0x30,0x5d,0x3b,0x0a,0x78,0x5b, + 0x31,0x5d,0x3d,0x79,0x5b,0x31,0x5d,0x3b,0x0a,0x78,0x5b,0x32,0x5d,0x3d,0x79,0x5b,0x32,0x5d,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x79,0x5b,0x33,0x5d,0x3b,0x0a,0x23, + 0x65,0x6c,0x73,0x65,0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d, + 0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f, + 0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78, + 0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x30,0x5d,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, + 0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73, + 0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67, + 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x31,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d, + 0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79, + 0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30, + 0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b, + 0x5b,0x20,0x32,0x5d,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29, + 0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x33,0x5d,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, + 0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c, + 0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b, + 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x34,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d, + 0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62, + 0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b, + 0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e, + 0x6b,0x5b,0x20,0x35,0x5d,0x3b,0x0a,0x78,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x30, + 0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, + 0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x36,0x5d,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79, + 0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d, + 0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33, + 0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x37,0x5d,0x3b,0x0a,0x79,0x5b,0x30, + 0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f, + 0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78, + 0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d, + 0x5e,0x6b,0x5b,0x20,0x38,0x5d,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c, + 0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67, + 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33, + 0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x39,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62, + 0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33, + 0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74, + 0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x79,0x5b, + 0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29, + 0x5d,0x5e,0x6b,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d, + 0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b, + 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, + 0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f, + 0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b, + 0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e, + 0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x78, + 0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, + 0x28,0x79,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x33, + 0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33, + 0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32, + 0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, + 0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x2a,0x70,0x3d,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a, + 0x29,0x28,0x78,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a, + 0x29,0x28,0x73,0x29,0x3d,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6e,0x75,0x6d,0x5f, + 0x72,0x6f,0x75,0x6e,0x64,0x73,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x0a,0x23,0x75,0x6e,0x64, + 0x65,0x66,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30, + 0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x66,0x69,0x6c, + 0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x34,0x52,0x78,0x34,0x5f,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x20,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6e,0x75,0x6d, + 0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x34,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f, 0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c, 0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64, 0x2a,0x20,0x73,0x74,0x61,0x74,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x6f,0x75,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20, @@ -1202,1449 +1399,997 @@ static const char randomx_cl[134345] = { 0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f, 0x66,0x61,0x63,0x74,0x6f,0x72,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20, 0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x34,0x52,0x78,0x34, - 0x5f,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x45,0x4e,0x54,0x52, - 0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x20,0x6f,0x75,0x74, - 0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x20,0x32,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x34,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65, - 0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29, - 0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f, - 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x73,0x74,0x61,0x74,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64, - 0x2a,0x20,0x6f,0x75,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x72,0x78,0x5f,0x76,0x65, - 0x72,0x73,0x69,0x6f,0x6e,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x54,0x5b,0x32,0x30,0x34,0x38,0x5d,0x3b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x62,0x61,0x74,0x63,0x68,0x5f, - 0x73,0x69,0x7a,0x65,0x2a,0x34,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67, - 0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20,0x34,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2c,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28, - 0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x30,0x34,0x38,0x3b,0x20,0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x29,0x0a,0x54,0x5b,0x69,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x54,0x41, - 0x42,0x4c,0x45,0x5b,0x69,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45, - 0x4e,0x43,0x45,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x21,0x3d,0x20,0x34,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x20,0x6b,0x5b,0x34,0x5d,0x3d,0x7b,0x20,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x5d,0x2c, - 0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x31,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49, - 0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x32,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x4b,0x45,0x59,0x5f,0x46,0x49,0x4c,0x4c,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x33, - 0x5d,0x20,0x7d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x62,0x31,0x3d,0x28,0x72,0x78,0x5f,0x76,0x65,0x72, - 0x73,0x69,0x6f,0x6e,0x3c,0x31,0x30,0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x62,0x32,0x3d,0x28,0x73,0x75,0x62,0x3c,0x32,0x29, - 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x6b,0x5b,0x31,0x36,0x5d,0x3b,0x0a,0x6b,0x5b,0x20,0x30,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x66,0x38,0x39,0x30,0x34,0x36,0x35, - 0x64,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x36,0x34,0x32,0x31,0x61,0x61,0x64,0x64,0x75,0x3a,0x30,0x78,0x62,0x35,0x38,0x32,0x36,0x66,0x37,0x33,0x75,0x29,0x3b, - 0x0a,0x6b,0x5b,0x20,0x31,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x37,0x66,0x66,0x62,0x65,0x34,0x61,0x36,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x64,0x31,0x38,0x33, - 0x33,0x64,0x64,0x62,0x75,0x3a,0x30,0x78,0x65,0x33,0x64,0x36,0x61,0x37,0x61,0x36,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x32,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x31, - 0x34,0x31,0x66,0x38,0x32,0x62,0x37,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x32,0x66,0x35,0x34,0x36,0x64,0x32,0x62,0x75,0x3a,0x30,0x78,0x33,0x64,0x35,0x31,0x38, - 0x62,0x36,0x64,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x33,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x63,0x66,0x33,0x35,0x39,0x65,0x39,0x35,0x75,0x3a,0x28,0x62,0x32,0x3f, - 0x30,0x78,0x39,0x39,0x65,0x35,0x64,0x32,0x33,0x66,0x75,0x3a,0x30,0x78,0x32,0x32,0x39,0x65,0x66,0x66,0x62,0x34,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x34,0x5d,0x3d, - 0x62,0x31,0x3f,0x30,0x78,0x36,0x61,0x35,0x35,0x63,0x34,0x35,0x30,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x62,0x32,0x30,0x65,0x33,0x34,0x35,0x30,0x75,0x3a,0x30, - 0x78,0x63,0x37,0x35,0x36,0x36,0x62,0x66,0x33,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x35,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x66,0x65,0x65,0x38,0x32,0x37,0x38,0x61, - 0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x62,0x36,0x39,0x31,0x33,0x66,0x35,0x35,0x75,0x3a,0x30,0x78,0x39,0x63,0x31,0x30,0x62,0x33,0x64,0x39,0x75,0x29,0x3b,0x0a, - 0x6b,0x5b,0x20,0x36,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x62,0x64,0x35,0x63,0x35,0x61,0x63,0x33,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x30,0x36,0x66,0x37,0x39, - 0x64,0x35,0x33,0x75,0x3a,0x30,0x78,0x65,0x39,0x30,0x32,0x34,0x64,0x34,0x65,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x37,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x36,0x37, - 0x34,0x31,0x66,0x66,0x64,0x63,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x61,0x35,0x64,0x66,0x63,0x64,0x65,0x35,0x75,0x3a,0x30,0x78,0x62,0x32,0x37,0x32,0x62,0x37, - 0x64,0x32,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x38,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x31,0x31,0x34,0x63,0x34,0x37,0x61,0x34,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30, - 0x78,0x35,0x63,0x33,0x65,0x64,0x39,0x30,0x34,0x75,0x3a,0x30,0x78,0x66,0x32,0x37,0x33,0x63,0x39,0x65,0x37,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x20,0x39,0x5d,0x3d,0x62, - 0x31,0x3f,0x30,0x78,0x64,0x35,0x32,0x34,0x66,0x64,0x65,0x34,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x35,0x31,0x35,0x65,0x37,0x62,0x61,0x66,0x75,0x3a,0x30,0x78, - 0x66,0x37,0x36,0x35,0x61,0x33,0x38,0x62,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x30,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x61,0x37,0x32,0x37,0x39,0x61,0x64,0x32,0x75, - 0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x30,0x61,0x61,0x34,0x36,0x37,0x39,0x66,0x75,0x3a,0x30,0x78,0x32,0x62,0x61,0x39,0x36,0x36,0x30,0x61,0x75,0x29,0x3b,0x0a,0x6b, - 0x5b,0x31,0x31,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x33,0x64,0x33,0x32,0x34,0x61,0x61,0x63,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x31,0x37,0x31,0x63,0x30,0x32, - 0x62,0x66,0x75,0x3a,0x30,0x78,0x66,0x36,0x33,0x62,0x65,0x66,0x61,0x37,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x32,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x38,0x31,0x30, - 0x63,0x33,0x61,0x32,0x61,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x38,0x35,0x36,0x32,0x33,0x37,0x36,0x33,0x75,0x3a,0x30,0x78,0x37,0x61,0x37,0x63,0x64,0x36,0x30, - 0x39,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x33,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x39,0x39,0x61,0x39,0x61,0x65,0x66,0x66,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78, - 0x65,0x37,0x38,0x66,0x35,0x64,0x30,0x38,0x75,0x3a,0x30,0x78,0x39,0x31,0x35,0x38,0x33,0x39,0x64,0x65,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x34,0x5d,0x3d,0x62,0x31, - 0x3f,0x30,0x78,0x34,0x32,0x64,0x33,0x64,0x62,0x64,0x39,0x75,0x3a,0x28,0x62,0x32,0x3f,0x30,0x78,0x63,0x64,0x36,0x37,0x33,0x37,0x38,0x35,0x75,0x3a,0x30,0x78,0x30, - 0x63,0x30,0x36,0x64,0x31,0x66,0x64,0x75,0x29,0x3b,0x0a,0x6b,0x5b,0x31,0x35,0x5d,0x3d,0x62,0x31,0x3f,0x30,0x78,0x37,0x36,0x66,0x36,0x64,0x62,0x30,0x38,0x75,0x3a, - 0x28,0x62,0x32,0x3f,0x30,0x78,0x64,0x38,0x64,0x65,0x64,0x32,0x39,0x31,0x75,0x3a,0x30,0x78,0x63,0x30,0x62,0x30,0x37,0x36,0x32,0x64,0x75,0x29,0x3b,0x0a,0x23,0x65, - 0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x73,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x20,0x73,0x74,0x61,0x74,0x65,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x36,0x34,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69, - 0x6e,0x74,0x29,0x29,0x2b,0x73,0x75,0x62,0x2a,0x28,0x31,0x36,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x29,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74, - 0x20,0x78,0x5b,0x34,0x5d,0x3d,0x7b,0x20,0x73,0x5b,0x30,0x5d,0x2c,0x73,0x5b,0x31,0x5d,0x2c,0x73,0x5b,0x32,0x5d,0x2c,0x73,0x5b,0x33,0x5d,0x20,0x7d,0x3b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x31,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x38,0x3a,0x32,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x33,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x32,0x34,0x3a,0x38,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29, - 0x2b,0x69,0x64,0x78,0x2a,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x29, - 0x2b,0x73,0x75,0x62,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x74,0x30,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x54,0x3a,0x28,0x54,0x2b,0x31,0x30,0x32,0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c, - 0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x31,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x28,0x54,0x2b,0x32, - 0x35,0x36,0x29,0x3a,0x28,0x54,0x2b,0x31,0x37,0x39,0x32,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x32,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x28,0x54,0x2b,0x35,0x31,0x32,0x29,0x3a,0x28,0x54,0x2b,0x31,0x35, - 0x33,0x36,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74, - 0x33,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x28,0x54,0x2b,0x37,0x36,0x38,0x29,0x3a,0x28,0x54,0x2b,0x31,0x32,0x38,0x30,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61, - 0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69, - 0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74, - 0x34,0x29,0x3b,0x20,0x69,0x2b,0x3d,0x34,0x2c,0x70,0x2b,0x3d,0x34,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x79,0x5b,0x34,0x5d,0x3b,0x0a,0x23,0x69,0x66,0x20, - 0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x20,0x21,0x3d,0x20,0x34,0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73, - 0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67, - 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74, - 0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d, - 0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b, - 0x31,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e, - 0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62, - 0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b, - 0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x32,0x5d,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, - 0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29, - 0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x33,0x5d,0x3b,0x0a,0x2a,0x70,0x3d,0x2a,0x28,0x75,0x69,0x6e, - 0x74,0x34,0x2a,0x29,0x28,0x79,0x29,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x79,0x5b,0x30,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x79,0x5b,0x31,0x5d,0x3b,0x0a,0x78, - 0x5b,0x32,0x5d,0x3d,0x79,0x5b,0x32,0x5d,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x79,0x5b,0x33,0x5d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x79,0x5b,0x30,0x5d,0x3d, - 0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79, - 0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32, - 0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b, - 0x5b,0x20,0x30,0x5d,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29, - 0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, - 0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x31,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c, - 0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x32,0x5d,0x3b,0x0a,0x79,0x5b,0x33,0x5d, - 0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62, - 0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b, - 0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e, - 0x6b,0x5b,0x20,0x33,0x5d,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x30, - 0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65, - 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, - 0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x34,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79, - 0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d, - 0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33, - 0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x35,0x5d,0x3b,0x0a,0x78,0x5b,0x32, - 0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f, - 0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79, - 0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d, - 0x5e,0x6b,0x5b,0x20,0x36,0x5d,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c, - 0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67, - 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33, - 0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x37,0x5d,0x3b,0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62, - 0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31, - 0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74, - 0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x20,0x38,0x5d,0x3b,0x0a,0x79,0x5b, - 0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, - 0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29, - 0x5d,0x5e,0x6b,0x5b,0x20,0x39,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x69,0x6e,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43, + 0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b, + 0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76, + 0x6f,0x69,0x64,0x20,0x68,0x61,0x73,0x68,0x41,0x65,0x73,0x31,0x52,0x78,0x34,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76, + 0x6f,0x69,0x64,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x68,0x61,0x73,0x68,0x2c,0x75, + 0x69,0x6e,0x74,0x20,0x68,0x61,0x73,0x68,0x4f,0x66,0x66,0x73,0x65,0x74,0x42,0x79,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x68,0x61,0x73,0x68,0x53,0x74,0x72, + 0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x54,0x5b,0x32,0x30,0x34,0x38,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2a,0x34,0x29,0x0a,0x72,0x65,0x74,0x75,0x72, + 0x6e,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x34, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20, + 0x34,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2c,0x73, + 0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28,0x30,0x29,0x3b,0x20,0x69,0x3c,0x32,0x30,0x34,0x38,0x3b,0x20,0x69, + 0x2b,0x3d,0x73,0x74,0x65,0x70,0x29,0x0a,0x54,0x5b,0x69,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x54,0x41,0x42,0x4c,0x45,0x5b,0x69,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69, + 0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x78,0x5b, + 0x34,0x5d,0x3d,0x7b,0x20,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x53, + 0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x31,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53, + 0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x32,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b, + 0x33,0x5d,0x20,0x7d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x31,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29, + 0x3f,0x38,0x3a,0x32,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x33,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30, + 0x29,0x3f,0x32,0x34,0x3a,0x38,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x70,0x3d, + 0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x20,0x69,0x6e,0x70,0x75,0x74,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x28, + 0x69,0x6e,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x2b,0x36,0x34,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x29,0x2b,0x73,0x75,0x62, + 0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x30,0x3d,0x28, + 0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x54,0x3a,0x28,0x54,0x2b,0x31,0x30,0x32,0x34,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x31,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30, + 0x29,0x3f,0x28,0x54,0x2b,0x32,0x35,0x36,0x29,0x3a,0x28,0x54,0x2b,0x31,0x37,0x39,0x32,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x32,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x28,0x54, + 0x2b,0x35,0x31,0x32,0x29,0x3a,0x28,0x54,0x2b,0x31,0x35,0x33,0x36,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x33,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x28,0x54,0x2b,0x37,0x36,0x38, + 0x29,0x3a,0x28,0x54,0x2b,0x31,0x32,0x38,0x30,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x38,0x0a,0x66,0x6f,0x72, + 0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x69,0x6e,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75, + 0x69,0x6e,0x74,0x34,0x29,0x3b,0x20,0x69,0x2b,0x3d,0x34,0x2c,0x70,0x2b,0x3d,0x34,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x6b,0x5b,0x34,0x5d,0x2c,0x79,0x5b, + 0x34,0x5d,0x3b,0x0a,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x6b,0x29,0x3d,0x2a,0x70,0x3b,0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78, + 0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d, + 0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x79, + 0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, + 0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33, + 0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d, 0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b, 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f, - 0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b, - 0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e, - 0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x78, - 0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65, - 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32, - 0x28,0x79,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x33, - 0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31, - 0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32, - 0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x78,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79, - 0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d, - 0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x34,0x5d,0x3b,0x0a, - 0x78,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67, - 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33, - 0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73, - 0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x2a,0x70,0x3d,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x78,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64, - 0x69,0x66,0x0a,0x7d,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x73,0x29,0x3d,0x2a,0x28,0x75,0x69,0x6e, - 0x74,0x34,0x2a,0x29,0x28,0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6e,0x75,0x6d,0x5f,0x72,0x6f,0x75,0x6e,0x64,0x73,0x0a,0x23,0x75,0x6e, - 0x64,0x65,0x66,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x5f,0x66,0x61,0x63,0x74,0x6f,0x72,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53, - 0x69,0x7a,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x30,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x66,0x69, - 0x6c,0x6c,0x41,0x65,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x69,0x6e,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x20,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f, - 0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29, - 0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x68,0x61,0x73,0x68,0x41,0x65,0x73,0x31,0x52,0x78,0x34,0x28,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x69,0x6e,0x70,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76, - 0x6f,0x69,0x64,0x2a,0x20,0x68,0x61,0x73,0x68,0x2c,0x75,0x69,0x6e,0x74,0x20,0x68,0x61,0x73,0x68,0x4f,0x66,0x66,0x73,0x65,0x74,0x42,0x79,0x74,0x65,0x73,0x2c,0x75, - 0x69,0x6e,0x74,0x20,0x68,0x61,0x73,0x68,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73, - 0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x20,0x54,0x5b,0x32,0x30,0x34,0x38,0x5d,0x3b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f, - 0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69, - 0x7a,0x65,0x2a,0x34,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62, - 0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20,0x34,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f, - 0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2c,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28,0x30,0x29, - 0x3b,0x20,0x69,0x3c,0x32,0x30,0x34,0x38,0x3b,0x20,0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x29,0x0a,0x54,0x5b,0x69,0x5d,0x3d,0x41,0x45,0x53,0x5f,0x54,0x41,0x42,0x4c, - 0x45,0x5b,0x69,0x5d,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43, - 0x45,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x78,0x5b,0x34,0x5d,0x3d,0x7b,0x20,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x73, - 0x75,0x62,0x2a,0x34,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x31,0x5d,0x2c,0x41,0x45, - 0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x48,0x41,0x53,0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x32,0x5d,0x2c,0x41,0x45,0x53,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f, - 0x48,0x41,0x53,0x48,0x5b,0x73,0x75,0x62,0x2a,0x34,0x2b,0x33,0x5d,0x20,0x7d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x31,0x3d,0x28, - 0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x38,0x3a,0x32,0x34,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x33,0x3d, - 0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x32,0x34,0x3a,0x38,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x20,0x69,0x6e, - 0x70,0x75,0x74,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x28,0x69,0x6e,0x70,0x75,0x74,0x53,0x69,0x7a,0x65,0x2b,0x36,0x34,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28, - 0x75,0x69,0x6e,0x74,0x34,0x29,0x29,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x2a, - 0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x30,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x54,0x3a,0x28,0x54,0x2b,0x31,0x30,0x32,0x34, - 0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x31,0x3d, - 0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x28,0x54,0x2b,0x32,0x35,0x36,0x29,0x3a,0x28,0x54,0x2b,0x31,0x37,0x39,0x32,0x29,0x3b,0x0a,0x5f, - 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x32,0x3d,0x28,0x28,0x73,0x75, - 0x62,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x28,0x54,0x2b,0x35,0x31,0x32,0x29,0x3a,0x28,0x54,0x2b,0x31,0x35,0x33,0x36,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63, - 0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x33,0x3d,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29, - 0x3d,0x3d,0x30,0x29,0x3f,0x28,0x54,0x2b,0x37,0x36,0x38,0x29,0x3a,0x28,0x54,0x2b,0x31,0x32,0x38,0x30,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75, - 0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x38,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x69,0x6e,0x70,0x75,0x74,0x53,0x69, - 0x7a,0x65,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x3b,0x20,0x69,0x2b,0x3d,0x34,0x2c,0x70,0x2b,0x3d,0x34,0x29,0x0a,0x7b,0x0a,0x75, - 0x69,0x6e,0x74,0x20,0x6b,0x5b,0x34,0x5d,0x2c,0x79,0x5b,0x34,0x5d,0x3b,0x0a,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x6b,0x29,0x3d,0x2a,0x70,0x3b,0x0a, - 0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67, - 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33, - 0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73, - 0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31, - 0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32, - 0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x31,0x5d,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f, - 0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b, - 0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e, - 0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x32,0x5d,0x3b,0x0a,0x79,0x5b, - 0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, - 0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29, - 0x5d,0x5e,0x6b,0x5b,0x33,0x5d,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x79,0x5b,0x30,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x79,0x5b,0x31,0x5d,0x3b,0x0a,0x78,0x5b, - 0x32,0x5d,0x3d,0x79,0x5b,0x32,0x5d,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x79,0x5b,0x33,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x20,0x79,0x5b,0x34,0x5d,0x3b, - 0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c, - 0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x66,0x36,0x66,0x61,0x38,0x33,0x38,0x39,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c, - 0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x38,0x62,0x32,0x34,0x39,0x34,0x39,0x66,0x3b, - 0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c, - 0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x39,0x30,0x64,0x63,0x35,0x36,0x62,0x66,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c, - 0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x30,0x36,0x38,0x39,0x30,0x32,0x30,0x31,0x3b, - 0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c, - 0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x36,0x31,0x62,0x32,0x36,0x33,0x64,0x31,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c, - 0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x35,0x31,0x66,0x34,0x65,0x30,0x33,0x63,0x3b, - 0x0a,0x78,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c, - 0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x65,0x65,0x31,0x30,0x34,0x33,0x63,0x36,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74, - 0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c, - 0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b, - 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x65,0x64,0x31,0x38,0x66,0x39,0x39,0x62,0x3b, - 0x0a,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x68,0x61,0x73,0x68,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28, - 0x68,0x61,0x73,0x68,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x29,0x2b,0x73, - 0x75,0x62,0x2b,0x28,0x68,0x61,0x73,0x68,0x4f,0x66,0x66,0x73,0x65,0x74,0x42,0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34, - 0x29,0x29,0x29,0x3d,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73, - 0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x73,0x69,0x67,0x6d,0x61,0x5b, - 0x31,0x32,0x2a,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c, - 0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x35,0x2c,0x0a,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35,0x2c,0x31, - 0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x2c,0x0a,0x31,0x31,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x30, - 0x2c,0x35,0x2c,0x32,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x31,0x30,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x39,0x2c,0x34,0x2c,0x0a,0x37,0x2c, - 0x39,0x2c,0x33,0x2c,0x31,0x2c,0x31,0x33,0x2c,0x31,0x32,0x2c,0x31,0x31,0x2c,0x31,0x34,0x2c,0x32,0x2c,0x36,0x2c,0x35,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x30,0x2c,0x31, - 0x35,0x2c,0x38,0x2c,0x0a,0x39,0x2c,0x30,0x2c,0x35,0x2c,0x37,0x2c,0x32,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x31,0x31,0x2c,0x31, - 0x32,0x2c,0x36,0x2c,0x38,0x2c,0x33,0x2c,0x31,0x33,0x2c,0x0a,0x32,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x31,0x31,0x2c,0x38,0x2c,0x33,0x2c,0x34, - 0x2c,0x31,0x33,0x2c,0x37,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x39,0x2c,0x0a,0x31,0x32,0x2c,0x35,0x2c,0x31,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c, - 0x31,0x33,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x37,0x2c,0x36,0x2c,0x33,0x2c,0x39,0x2c,0x32,0x2c,0x38,0x2c,0x31,0x31,0x2c,0x0a,0x31,0x33,0x2c,0x31,0x31,0x2c, - 0x37,0x2c,0x31,0x34,0x2c,0x31,0x32,0x2c,0x31,0x2c,0x33,0x2c,0x39,0x2c,0x35,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x34,0x2c,0x38,0x2c,0x36,0x2c,0x32,0x2c,0x31,0x30,0x2c, - 0x0a,0x36,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x39,0x2c,0x31,0x31,0x2c,0x33,0x2c,0x30,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x32,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x31,0x2c, - 0x34,0x2c,0x31,0x30,0x2c,0x35,0x2c,0x0a,0x31,0x30,0x2c,0x32,0x2c,0x38,0x2c,0x34,0x2c,0x37,0x2c,0x36,0x2c,0x31,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x31,0x2c,0x39, - 0x2c,0x31,0x34,0x2c,0x33,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x30,0x2c,0x0a,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38, - 0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x35,0x2c,0x0a,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c, - 0x39,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x2c,0x0a,0x7d,0x3b,0x0a, - 0x65,0x6e,0x75,0x6d,0x20,0x42,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x49,0x56,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x3d,0x30,0x78,0x36,0x61,0x30,0x39,0x65,0x36,0x36,0x37, - 0x66,0x33,0x62,0x63,0x63,0x39,0x30,0x38,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x31,0x3d,0x30,0x78,0x62,0x62,0x36,0x37,0x61,0x65,0x38,0x35,0x38,0x34,0x63,0x61,0x61,0x37, - 0x33,0x62,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x32,0x3d,0x30,0x78,0x33,0x63,0x36,0x65,0x66,0x33,0x37,0x32,0x66,0x65,0x39,0x34,0x66,0x38,0x32,0x62,0x75,0x6c,0x2c,0x0a, - 0x69,0x76,0x33,0x3d,0x30,0x78,0x61,0x35,0x34,0x66,0x66,0x35,0x33,0x61,0x35,0x66,0x31,0x64,0x33,0x36,0x66,0x31,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x34,0x3d,0x30,0x78, - 0x35,0x31,0x30,0x65,0x35,0x32,0x37,0x66,0x61,0x64,0x65,0x36,0x38,0x32,0x64,0x31,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x35,0x3d,0x30,0x78,0x39,0x62,0x30,0x35,0x36,0x38, - 0x38,0x63,0x32,0x62,0x33,0x65,0x36,0x63,0x31,0x66,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x36,0x3d,0x30,0x78,0x31,0x66,0x38,0x33,0x64,0x39,0x61,0x62,0x66,0x62,0x34,0x31, - 0x62,0x64,0x36,0x62,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x37,0x3d,0x30,0x78,0x35,0x62,0x65,0x30,0x63,0x64,0x31,0x39,0x31,0x33,0x37,0x65,0x32,0x31,0x37,0x39,0x75,0x6c, - 0x2c,0x0a,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20, - 0x73,0x68,0x69,0x66,0x74,0x29,0x20,0x7b,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x61,0x2c,0x36,0x34,0x2d,0x73,0x68,0x69,0x66, - 0x74,0x29,0x3b,0x20,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x28,0x72,0x2c,0x20,0x69,0x2c,0x20,0x61,0x2c,0x20,0x62,0x2c,0x20,0x63,0x2c,0x20,0x64, - 0x29,0x20,0x5c,0x0a,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x61,0x3d,0x61,0x2b,0x62,0x2b,0x6d,0x5b,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x73,0x69,0x67,0x6d,0x61, - 0x5b,0x72,0x2a,0x31,0x36,0x2b,0x32,0x2a,0x69,0x2b,0x30,0x5d,0x5d,0x3b,0x20,0x5c,0x0a,0x64,0x3d,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x64,0x5e,0x61,0x2c,0x33,0x32, - 0x29,0x3b,0x20,0x5c,0x0a,0x63,0x3d,0x63,0x2b,0x64,0x3b,0x20,0x5c,0x0a,0x62,0x3d,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x62,0x5e,0x63,0x2c,0x32,0x34,0x29,0x3b,0x20, - 0x5c,0x0a,0x61,0x3d,0x61,0x2b,0x62,0x2b,0x6d,0x5b,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x2a,0x31,0x36,0x2b,0x32,0x2a,0x69, - 0x2b,0x31,0x5d,0x5d,0x3b,0x20,0x5c,0x0a,0x64,0x3d,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x64,0x5e,0x61,0x2c,0x31,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x63,0x3d,0x63,0x2b, - 0x64,0x3b,0x20,0x5c,0x0a,0x62,0x3d,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x62,0x5e,0x63,0x2c,0x36,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65, - 0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x28,0x72,0x29,0x20,0x5c,0x0a,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x47, - 0x28,0x72,0x2c,0x30,0x2c,0x76,0x5b,0x30,0x5d,0x2c,0x76,0x5b,0x34,0x5d,0x2c,0x76,0x5b,0x38,0x5d,0x2c,0x76,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28, - 0x72,0x2c,0x31,0x2c,0x76,0x5b,0x31,0x5d,0x2c,0x76,0x5b,0x35,0x5d,0x2c,0x76,0x5b,0x39,0x5d,0x2c,0x76,0x5b,0x31,0x33,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72, - 0x2c,0x32,0x2c,0x76,0x5b,0x32,0x5d,0x2c,0x76,0x5b,0x36,0x5d,0x2c,0x76,0x5b,0x31,0x30,0x5d,0x2c,0x76,0x5b,0x31,0x34,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72, - 0x2c,0x33,0x2c,0x76,0x5b,0x33,0x5d,0x2c,0x76,0x5b,0x37,0x5d,0x2c,0x76,0x5b,0x31,0x31,0x5d,0x2c,0x76,0x5b,0x31,0x35,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72, - 0x2c,0x34,0x2c,0x76,0x5b,0x30,0x5d,0x2c,0x76,0x5b,0x35,0x5d,0x2c,0x76,0x5b,0x31,0x30,0x5d,0x2c,0x76,0x5b,0x31,0x35,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72, - 0x2c,0x35,0x2c,0x76,0x5b,0x31,0x5d,0x2c,0x76,0x5b,0x36,0x5d,0x2c,0x76,0x5b,0x31,0x31,0x5d,0x2c,0x76,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72, - 0x2c,0x36,0x2c,0x76,0x5b,0x32,0x5d,0x2c,0x76,0x5b,0x37,0x5d,0x2c,0x76,0x5b,0x38,0x5d,0x2c,0x76,0x5b,0x31,0x33,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c, - 0x37,0x2c,0x76,0x5b,0x33,0x5d,0x2c,0x76,0x5b,0x34,0x5d,0x2c,0x76,0x5b,0x39,0x5d,0x2c,0x76,0x5b,0x31,0x34,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69, - 0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x20, - 0x52,0x4f,0x55,0x4e,0x44,0x28,0x30,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x31,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x32,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44, - 0x28,0x33,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x34,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x35,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x36,0x29,0x3b,0x52, - 0x4f,0x55,0x4e,0x44,0x28,0x37,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x38,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x39,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28, - 0x31,0x30,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x31,0x31,0x29,0x3b,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f, - 0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x73,0x69,0x6e,0x67,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x68,0x2c,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x6d,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53, - 0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x5e,0x30,0x78,0x30,0x31,0x30, - 0x31,0x30,0x30,0x34,0x30,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x20,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69, - 0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x5e,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65, - 0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2c,0x69,0x76,0x35,0x2c,0x7e,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b, - 0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x68,0x5b,0x30,0x5d,0x3d,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x20,0x38,0x5d,0x5e,0x69,0x76, - 0x30,0x5e,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x34,0x30,0x3b,0x0a,0x68,0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x20,0x39,0x5d,0x5e,0x69,0x76, - 0x31,0x3b,0x0a,0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76,0x32,0x3b,0x0a,0x68,0x5b,0x33,0x5d,0x3d,0x76,0x5b,0x33, - 0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x5e,0x69,0x76,0x33,0x3b,0x0a,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x5e,0x69,0x76,0x34, - 0x3b,0x0a,0x68,0x5b,0x35,0x5d,0x3d,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x5e,0x69,0x76,0x35,0x3b,0x0a,0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d, - 0x5e,0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36,0x3b,0x0a,0x68,0x5b,0x37,0x5d,0x3d,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e,0x69,0x76,0x37,0x3b, - 0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75, - 0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x62, - 0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x69,0x6e,0x69,0x74,0x69,0x61,0x6c,0x5f,0x68,0x61,0x73,0x68,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69, - 0x64,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x62,0x6c,0x6f,0x63, - 0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65, - 0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x3b,0x0a,0x75,0x6c, - 0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x30, - 0x29,0x3f,0x70,0x5b,0x20,0x30,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x38,0x29, - 0x3f,0x70,0x5b,0x20,0x31,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x36,0x29, - 0x3f,0x70,0x5b,0x20,0x32,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x32,0x34,0x29, - 0x3f,0x70,0x5b,0x20,0x33,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x33,0x32,0x29, - 0x3f,0x70,0x5b,0x20,0x34,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x34,0x30,0x29, - 0x3f,0x70,0x5b,0x20,0x35,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x34,0x38,0x29, - 0x3f,0x70,0x5b,0x20,0x36,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x35,0x36,0x29, - 0x3f,0x70,0x5b,0x20,0x37,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x36,0x34,0x29, - 0x3f,0x70,0x5b,0x20,0x38,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x37,0x32,0x29, - 0x3f,0x70,0x5b,0x20,0x39,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x38,0x30,0x29, - 0x3f,0x70,0x5b,0x31,0x30,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x38,0x38,0x29, - 0x3f,0x70,0x5b,0x31,0x31,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x39,0x36,0x29, - 0x3f,0x70,0x5b,0x31,0x32,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x30,0x34, - 0x29,0x3f,0x70,0x5b,0x31,0x33,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x31, - 0x32,0x29,0x3f,0x70,0x5b,0x31,0x34,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31, - 0x32,0x30,0x29,0x3f,0x70,0x5b,0x31,0x35,0x5d,0x3a,0x30,0x2c,0x0a,0x7d,0x3b,0x0a,0x69,0x66,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65, - 0x53,0x69,0x7a,0x65,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x0a,0x6d,0x5b,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d, - 0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x5d,0x20,0x26,0x3d,0x20,0x28,0x75,0x6c,0x6f, - 0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x20, - 0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67, - 0x20,0x6e,0x6f,0x6e,0x63,0x65,0x3d,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b, - 0x0a,0x6d,0x5b,0x34,0x5d,0x3d,0x28,0x6d,0x5b,0x34,0x5d,0x26,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x38,0x29,0x29,0x7c,0x28,0x6e, - 0x6f,0x6e,0x63,0x65,0x3c,0x3c,0x35,0x36,0x29,0x3b,0x0a,0x6d,0x5b,0x35,0x5d,0x3d,0x28,0x6d,0x5b,0x35,0x5d,0x26,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d, - 0x31,0x29,0x3c,0x3c,0x32,0x34,0x29,0x29,0x7c,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x38,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x61,0x73,0x68,0x5b, - 0x38,0x5d,0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x73,0x69,0x6e,0x67,0x6c,0x65,0x5f,0x62, - 0x6c,0x6f,0x63,0x6b,0x28,0x68,0x61,0x73,0x68,0x2c,0x6d,0x2c,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x29,0x3b,0x0a, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f, - 0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x38,0x3b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x68, - 0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b, - 0x32,0x5d,0x3b,0x0a,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d,0x3b,0x0a, - 0x74,0x5b,0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35,0x5d,0x3b,0x0a,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x74,0x5b,0x37,0x5d, - 0x3d,0x68,0x61,0x73,0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f, - 0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x76,0x61,0x72,0x69,0x61,0x62,0x6c,0x65,0x28,0x75,0x6c,0x6f,0x6e,0x67, - 0x20,0x2a,0x6f,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x6d,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c, - 0x6f,0x6e,0x67,0x2a,0x20,0x69,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e, - 0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30, - 0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x20,0x2c,0x69, - 0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34, - 0x5e,0x31,0x32,0x38,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55, - 0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x76,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x3d,0x76,0x5b,0x30, - 0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x5e,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29, - 0x3b,0x0a,0x76,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x5e,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x32,0x5d,0x3d, - 0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x3d,0x76, - 0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x5e,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b, - 0x31,0x32,0x5d,0x5e,0x69,0x76,0x34,0x3b,0x0a,0x76,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x3d,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x5e,0x69,0x76, - 0x35,0x3b,0x0a,0x76,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x37, - 0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x3d,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e,0x69,0x76,0x37,0x3b,0x0a,0x76,0x5b,0x38,0x5d,0x3d,0x69,0x76,0x30,0x3b, - 0x0a,0x76,0x5b,0x39,0x5d,0x3d,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x31,0x30,0x5d,0x3d,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x31,0x31,0x5d,0x3d,0x69,0x76,0x33,0x3b, - 0x0a,0x76,0x5b,0x31,0x32,0x5d,0x3d,0x69,0x76,0x34,0x5e,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31,0x33,0x5d,0x3d,0x69,0x76,0x35,0x3b,0x0a,0x76,0x5b, - 0x31,0x34,0x5d,0x3d,0x7e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x31,0x35,0x5d,0x3d,0x69,0x76,0x37,0x3b,0x0a,0x6d,0x5b,0x20,0x30,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c, - 0x65,0x6e,0x3e,0x31,0x32,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e, - 0x31,0x33,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x34,0x34, - 0x29,0x3f,0x69,0x6e,0x5b,0x31,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x35,0x32,0x29,0x3f,0x69, - 0x6e,0x5b,0x31,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32, - 0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x31,0x5d,0x3a, - 0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x36,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x37,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x32,0x5d,0x3a,0x30,0x3b,0x0a, - 0x6d,0x5b,0x20,0x37,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x38,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x33,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20, - 0x38,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x39,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x34,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x39,0x5d,0x3d, - 0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x35,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x30,0x5d,0x3d,0x28,0x69,0x6e, - 0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65, - 0x6e,0x3e,0x32,0x31,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32, - 0x32,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x33,0x32,0x29, - 0x3f,0x69,0x6e,0x5b,0x32,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x30,0x29,0x3f,0x69,0x6e, - 0x5b,0x33,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x33,0x31, - 0x5d,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x0a, - 0x6d,0x5b,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2d,0x31,0x32,0x38,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x5d,0x20,0x26,0x3d, - 0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65, - 0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x30,0x5d,0x5e, - 0x76,0x5b,0x38,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x5e, - 0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x32,0x5d, - 0x3d,0x68,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29, - 0x20,0x6f,0x75,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f, - 0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x6f,0x75,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x35,0x5d,0x5e, - 0x76,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36, - 0x5d,0x5e,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x6f,0x75,0x74, - 0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75, - 0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c, - 0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x69,0x6e,0x69,0x74,0x69, - 0x61,0x6c,0x5f,0x68,0x61,0x73,0x68,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x2a,0x6f,0x75, - 0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70, - 0x6c,0x61,0x74,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2c,0x75,0x69,0x6e,0x74, - 0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62, - 0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d, + 0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x32,0x5d,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62, + 0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30, + 0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74, + 0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x6b,0x5b,0x33,0x5d,0x3b,0x0a,0x78,0x5b,0x30, + 0x5d,0x3d,0x79,0x5b,0x30,0x5d,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x79,0x5b,0x31,0x5d,0x3b,0x0a,0x78,0x5b,0x32,0x5d,0x3d,0x79,0x5b,0x32,0x5d,0x3b,0x0a,0x78,0x5b, + 0x33,0x5d,0x3d,0x79,0x5b,0x33,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x20,0x79,0x5b,0x34,0x5d,0x3b,0x0a,0x79,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x78,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29, + 0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x66,0x36,0x66,0x61, + 0x38,0x33,0x38,0x39,0x3b,0x0a,0x79,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x30,0x29, + 0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x78,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x38,0x62,0x32,0x34,0x39,0x34,0x39,0x66,0x3b,0x0a,0x79,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x78,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29, + 0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x39,0x30,0x64,0x63, + 0x35,0x36,0x62,0x66,0x3b,0x0a,0x79,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x33,0x5d,0x2c,0x30,0x29, + 0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x78,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x78,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x30,0x36,0x38,0x39,0x30,0x32,0x30,0x31,0x3b,0x0a,0x78,0x5b,0x30,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x79,0x5b,0x31,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x31,0x36,0x29, + 0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x36,0x31,0x62,0x32, + 0x36,0x33,0x64,0x31,0x3b,0x0a,0x78,0x5b,0x31,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x30,0x29, + 0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x79,0x5b,0x30,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x35,0x31,0x66,0x34,0x65,0x30,0x33,0x63,0x3b,0x0a,0x78,0x5b,0x32,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x32,0x5d,0x2c,0x30,0x29,0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x79,0x5b,0x33,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x31,0x36,0x29, + 0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x65,0x65,0x31,0x30, + 0x34,0x33,0x63,0x36,0x3b,0x0a,0x78,0x5b,0x33,0x5d,0x3d,0x74,0x30,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x33,0x5d,0x2c,0x30,0x29, + 0x5d,0x5e,0x74,0x31,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x30,0x5d,0x2c,0x73,0x31,0x29,0x5d,0x5e,0x74,0x32,0x5b,0x67,0x65,0x74, + 0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28,0x79,0x5b,0x31,0x5d,0x2c,0x31,0x36,0x29,0x5d,0x5e,0x74,0x33,0x5b,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x33,0x32,0x28, + 0x79,0x5b,0x32,0x5d,0x2c,0x73,0x33,0x29,0x5d,0x5e,0x30,0x78,0x65,0x64,0x31,0x38,0x66,0x39,0x39,0x62,0x3b,0x0a,0x2a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x34,0x2a,0x29,0x28,0x68,0x61,0x73,0x68,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x68,0x61,0x73,0x68,0x53,0x74,0x72,0x69,0x64,0x65,0x42, + 0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x29,0x2b,0x73,0x75,0x62,0x2b,0x28,0x68,0x61,0x73,0x68,0x4f,0x66,0x66, + 0x73,0x65,0x74,0x42,0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x34,0x29,0x29,0x29,0x3d,0x2a,0x28,0x75,0x69,0x6e,0x74,0x34, + 0x2a,0x29,0x28,0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x73,0x69,0x67,0x6d,0x61,0x5b,0x31,0x32,0x2a,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x30,0x2c, + 0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x31,0x33,0x2c,0x31,0x34, + 0x2c,0x31,0x35,0x2c,0x0a,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31,0x2c,0x31,0x32,0x2c,0x30,0x2c, + 0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x2c,0x0a,0x31,0x31,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x30,0x2c,0x35,0x2c,0x32,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c, + 0x31,0x30,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x36,0x2c,0x37,0x2c,0x31,0x2c,0x39,0x2c,0x34,0x2c,0x0a,0x37,0x2c,0x39,0x2c,0x33,0x2c,0x31,0x2c,0x31,0x33,0x2c,0x31,0x32, + 0x2c,0x31,0x31,0x2c,0x31,0x34,0x2c,0x32,0x2c,0x36,0x2c,0x35,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x38,0x2c,0x0a,0x39,0x2c,0x30,0x2c,0x35,0x2c, + 0x37,0x2c,0x32,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x2c,0x31,0x31,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x38,0x2c,0x33,0x2c,0x31,0x33,0x2c, + 0x0a,0x32,0x2c,0x31,0x32,0x2c,0x36,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x31,0x31,0x2c,0x38,0x2c,0x33,0x2c,0x34,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x35,0x2c,0x31,0x35,0x2c, + 0x31,0x34,0x2c,0x31,0x2c,0x39,0x2c,0x0a,0x31,0x32,0x2c,0x35,0x2c,0x31,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x31,0x33,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x30,0x2c,0x37, + 0x2c,0x36,0x2c,0x33,0x2c,0x39,0x2c,0x32,0x2c,0x38,0x2c,0x31,0x31,0x2c,0x0a,0x31,0x33,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x31,0x34,0x2c,0x31,0x32,0x2c,0x31,0x2c,0x33, + 0x2c,0x39,0x2c,0x35,0x2c,0x30,0x2c,0x31,0x35,0x2c,0x34,0x2c,0x38,0x2c,0x36,0x2c,0x32,0x2c,0x31,0x30,0x2c,0x0a,0x36,0x2c,0x31,0x35,0x2c,0x31,0x34,0x2c,0x39,0x2c, + 0x31,0x31,0x2c,0x33,0x2c,0x30,0x2c,0x38,0x2c,0x31,0x32,0x2c,0x32,0x2c,0x31,0x33,0x2c,0x37,0x2c,0x31,0x2c,0x34,0x2c,0x31,0x30,0x2c,0x35,0x2c,0x0a,0x31,0x30,0x2c, + 0x32,0x2c,0x38,0x2c,0x34,0x2c,0x37,0x2c,0x36,0x2c,0x31,0x2c,0x35,0x2c,0x31,0x35,0x2c,0x31,0x31,0x2c,0x39,0x2c,0x31,0x34,0x2c,0x33,0x2c,0x31,0x32,0x2c,0x31,0x33, + 0x2c,0x30,0x2c,0x0a,0x30,0x2c,0x31,0x2c,0x32,0x2c,0x33,0x2c,0x34,0x2c,0x35,0x2c,0x36,0x2c,0x37,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x30,0x2c,0x31,0x31,0x2c,0x31,0x32, + 0x2c,0x31,0x33,0x2c,0x31,0x34,0x2c,0x31,0x35,0x2c,0x0a,0x31,0x34,0x2c,0x31,0x30,0x2c,0x34,0x2c,0x38,0x2c,0x39,0x2c,0x31,0x35,0x2c,0x31,0x33,0x2c,0x36,0x2c,0x31, + 0x2c,0x31,0x32,0x2c,0x30,0x2c,0x32,0x2c,0x31,0x31,0x2c,0x37,0x2c,0x35,0x2c,0x33,0x2c,0x0a,0x7d,0x3b,0x0a,0x65,0x6e,0x75,0x6d,0x20,0x42,0x6c,0x61,0x6b,0x65,0x32, + 0x62,0x5f,0x49,0x56,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x3d,0x30,0x78,0x36,0x61,0x30,0x39,0x65,0x36,0x36,0x37,0x66,0x33,0x62,0x63,0x63,0x39,0x30,0x38,0x75,0x6c,0x2c, + 0x0a,0x69,0x76,0x31,0x3d,0x30,0x78,0x62,0x62,0x36,0x37,0x61,0x65,0x38,0x35,0x38,0x34,0x63,0x61,0x61,0x37,0x33,0x62,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x32,0x3d,0x30, + 0x78,0x33,0x63,0x36,0x65,0x66,0x33,0x37,0x32,0x66,0x65,0x39,0x34,0x66,0x38,0x32,0x62,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x33,0x3d,0x30,0x78,0x61,0x35,0x34,0x66,0x66, + 0x35,0x33,0x61,0x35,0x66,0x31,0x64,0x33,0x36,0x66,0x31,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x34,0x3d,0x30,0x78,0x35,0x31,0x30,0x65,0x35,0x32,0x37,0x66,0x61,0x64,0x65, + 0x36,0x38,0x32,0x64,0x31,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x35,0x3d,0x30,0x78,0x39,0x62,0x30,0x35,0x36,0x38,0x38,0x63,0x32,0x62,0x33,0x65,0x36,0x63,0x31,0x66,0x75, + 0x6c,0x2c,0x0a,0x69,0x76,0x36,0x3d,0x30,0x78,0x31,0x66,0x38,0x33,0x64,0x39,0x61,0x62,0x66,0x62,0x34,0x31,0x62,0x64,0x36,0x62,0x75,0x6c,0x2c,0x0a,0x69,0x76,0x37, + 0x3d,0x30,0x78,0x35,0x62,0x65,0x30,0x63,0x64,0x31,0x39,0x31,0x33,0x37,0x65,0x32,0x31,0x37,0x39,0x75,0x6c,0x2c,0x0a,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20, + 0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x61,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x73,0x68,0x69,0x66,0x74,0x29,0x20,0x7b,0x20,0x72,0x65, + 0x74,0x75,0x72,0x6e,0x20,0x72,0x6f,0x74,0x61,0x74,0x65,0x28,0x61,0x2c,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x29,0x3b,0x20,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x47,0x28,0x72,0x2c,0x20,0x69,0x2c,0x20,0x61,0x2c,0x20,0x62,0x2c,0x20,0x63,0x2c,0x20,0x64,0x29,0x20,0x5c,0x0a,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a, + 0x61,0x3d,0x61,0x2b,0x62,0x2b,0x6d,0x5b,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x2a,0x31,0x36,0x2b,0x32,0x2a,0x69,0x2b,0x30, + 0x5d,0x5d,0x3b,0x20,0x5c,0x0a,0x64,0x3d,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x64,0x5e,0x61,0x2c,0x33,0x32,0x29,0x3b,0x20,0x5c,0x0a,0x63,0x3d,0x63,0x2b,0x64,0x3b, + 0x20,0x5c,0x0a,0x62,0x3d,0x72,0x6f,0x74,0x72,0x36,0x34,0x28,0x62,0x5e,0x63,0x2c,0x32,0x34,0x29,0x3b,0x20,0x5c,0x0a,0x61,0x3d,0x61,0x2b,0x62,0x2b,0x6d,0x5b,0x62, + 0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x73,0x69,0x67,0x6d,0x61,0x5b,0x72,0x2a,0x31,0x36,0x2b,0x32,0x2a,0x69,0x2b,0x31,0x5d,0x5d,0x3b,0x20,0x5c,0x0a,0x64,0x3d,0x72, + 0x6f,0x74,0x72,0x36,0x34,0x28,0x64,0x5e,0x61,0x2c,0x31,0x36,0x29,0x3b,0x20,0x5c,0x0a,0x63,0x3d,0x63,0x2b,0x64,0x3b,0x20,0x5c,0x0a,0x62,0x3d,0x72,0x6f,0x74,0x72, + 0x36,0x34,0x28,0x62,0x5e,0x63,0x2c,0x36,0x33,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x52,0x4f,0x55,0x4e,0x44,0x28,0x72,0x29,0x20,0x5c,0x0a,0x64,0x6f,0x20,0x7b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x30,0x2c,0x76,0x5b,0x30,0x5d,0x2c,0x76, + 0x5b,0x34,0x5d,0x2c,0x76,0x5b,0x38,0x5d,0x2c,0x76,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x31,0x2c,0x76,0x5b,0x31,0x5d,0x2c,0x76,0x5b, + 0x35,0x5d,0x2c,0x76,0x5b,0x39,0x5d,0x2c,0x76,0x5b,0x31,0x33,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x32,0x2c,0x76,0x5b,0x32,0x5d,0x2c,0x76,0x5b,0x36, + 0x5d,0x2c,0x76,0x5b,0x31,0x30,0x5d,0x2c,0x76,0x5b,0x31,0x34,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x33,0x2c,0x76,0x5b,0x33,0x5d,0x2c,0x76,0x5b,0x37, + 0x5d,0x2c,0x76,0x5b,0x31,0x31,0x5d,0x2c,0x76,0x5b,0x31,0x35,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x34,0x2c,0x76,0x5b,0x30,0x5d,0x2c,0x76,0x5b,0x35, + 0x5d,0x2c,0x76,0x5b,0x31,0x30,0x5d,0x2c,0x76,0x5b,0x31,0x35,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x35,0x2c,0x76,0x5b,0x31,0x5d,0x2c,0x76,0x5b,0x36, + 0x5d,0x2c,0x76,0x5b,0x31,0x31,0x5d,0x2c,0x76,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x36,0x2c,0x76,0x5b,0x32,0x5d,0x2c,0x76,0x5b,0x37, + 0x5d,0x2c,0x76,0x5b,0x38,0x5d,0x2c,0x76,0x5b,0x31,0x33,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x47,0x28,0x72,0x2c,0x37,0x2c,0x76,0x5b,0x33,0x5d,0x2c,0x76,0x5b,0x34,0x5d, + 0x2c,0x76,0x5b,0x39,0x5d,0x2c,0x76,0x5b,0x31,0x34,0x5d,0x29,0x3b,0x20,0x5c,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x20,0x52,0x4f,0x55,0x4e,0x44,0x28,0x30,0x29,0x3b,0x52,0x4f, + 0x55,0x4e,0x44,0x28,0x31,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x32,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x33,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x34, + 0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x35,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x36,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x37,0x29,0x3b,0x52,0x4f,0x55, + 0x4e,0x44,0x28,0x38,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x39,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x31,0x30,0x29,0x3b,0x52,0x4f,0x55,0x4e,0x44,0x28,0x31, + 0x31,0x29,0x3b,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x73,0x69,0x6e, + 0x67,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x68,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20, + 0x6d,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e, + 0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x5e,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x34,0x30,0x2c,0x69,0x76,0x31,0x2c,0x69, + 0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x20,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69,0x76, + 0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x5e,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2c, + 0x69,0x76,0x35,0x2c,0x7e,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28, + 0x29,0x3b,0x0a,0x68,0x5b,0x30,0x5d,0x3d,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x20,0x38,0x5d,0x5e,0x69,0x76,0x30,0x5e,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x34, + 0x30,0x3b,0x0a,0x68,0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x20,0x39,0x5d,0x5e,0x69,0x76,0x31,0x3b,0x0a,0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32, + 0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76,0x32,0x3b,0x0a,0x68,0x5b,0x33,0x5d,0x3d,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x5e,0x69,0x76,0x33, + 0x3b,0x0a,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x5e,0x69,0x76,0x34,0x3b,0x0a,0x68,0x5b,0x35,0x5d,0x3d,0x76,0x5b,0x35,0x5d, + 0x5e,0x76,0x5b,0x31,0x33,0x5d,0x5e,0x69,0x76,0x35,0x3b,0x0a,0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36,0x3b, + 0x0a,0x68,0x5b,0x37,0x5d,0x3d,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e,0x69,0x76,0x37,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62, + 0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31, + 0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x69,0x6e,0x69,0x74, + 0x69,0x61,0x6c,0x5f,0x68,0x61,0x73,0x68,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x2c,0x75, + 0x69,0x6e,0x74,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x74,0x61,0x72,0x74, + 0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e, + 0x67,0x2a,0x29,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3d,0x7b, + 0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x30,0x29,0x3f,0x70,0x5b,0x20,0x30,0x5d,0x3a,0x30,0x2c,0x0a, + 0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x38,0x29,0x3f,0x70,0x5b,0x20,0x31,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x36,0x29,0x3f,0x70,0x5b,0x20,0x32,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x32,0x34,0x29,0x3f,0x70,0x5b,0x20,0x33,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x33,0x32,0x29,0x3f,0x70,0x5b,0x20,0x34,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x34,0x30,0x29,0x3f,0x70,0x5b,0x20,0x35,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x34,0x38,0x29,0x3f,0x70,0x5b,0x20,0x36,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x35,0x36,0x29,0x3f,0x70,0x5b,0x20,0x37,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x36,0x34,0x29,0x3f,0x70,0x5b,0x20,0x38,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x37,0x32,0x29,0x3f,0x70,0x5b,0x20,0x39,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x38,0x30,0x29,0x3f,0x70,0x5b,0x31,0x30,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x38,0x38,0x29,0x3f,0x70,0x5b,0x31,0x31,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x39,0x36,0x29,0x3f,0x70,0x5b,0x31,0x32,0x5d,0x3a,0x30,0x2c,0x0a,0x28, + 0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x30,0x34,0x29,0x3f,0x70,0x5b,0x31,0x33,0x5d,0x3a,0x30,0x2c,0x0a, + 0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x31,0x32,0x29,0x3f,0x70,0x5b,0x31,0x34,0x5d,0x3a,0x30,0x2c, + 0x0a,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x3e,0x31,0x32,0x30,0x29,0x3f,0x70,0x5b,0x31,0x35,0x5d,0x3a,0x30, + 0x2c,0x0a,0x7d,0x3b,0x0a,0x69,0x66,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x20,0x25,0x20,0x73,0x69,0x7a,0x65, + 0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x0a,0x6d,0x5b,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2f,0x73, + 0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x5d,0x20,0x26,0x3d,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36, + 0x34,0x2d,0x28,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c, + 0x6f,0x6e,0x67,0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x3d,0x73,0x74,0x61,0x72, + 0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x6d,0x5b,0x34,0x5d,0x3d,0x28,0x6d,0x5b,0x34,0x5d, + 0x26,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x38,0x29,0x29,0x7c,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3c,0x3c,0x35,0x36,0x29,0x3b,0x0a, + 0x6d,0x5b,0x35,0x5d,0x3d,0x28,0x6d,0x5b,0x35,0x5d,0x26,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3c,0x3c,0x32,0x34,0x29,0x29,0x7c,0x28,0x6e, + 0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x38,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x61,0x73,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62, + 0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x73,0x69,0x6e,0x67,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x28,0x68,0x61,0x73,0x68,0x2c,0x6d, + 0x2c,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c, + 0x6f,0x6e,0x67,0x2a,0x20,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x38,0x3b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x74,0x5b,0x31, + 0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x61, + 0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d,0x3b,0x0a,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35, + 0x5d,0x3b,0x0a,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x5f, + 0x6c,0x65,0x6e,0x20,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65, + 0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32, + 0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61, + 0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x33,0x32,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b, + 0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d, + 0x65,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x6d,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x69,0x6e,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a, + 0x7b,0x0a,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x2c,0x69,0x76,0x31,0x2c, + 0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x20,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69, + 0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x5e,0x31,0x32,0x38,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a, + 0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x5b,0x38,0x5d,0x3b, + 0x0a,0x76,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x3d,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x5e,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31, + 0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76, + 0x5b,0x39,0x5d,0x5e,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76, + 0x32,0x3b,0x0a,0x76,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x3d,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x5e,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x34, + 0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x5e,0x69,0x76,0x34,0x3b,0x0a,0x76,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d, + 0x3d,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x5e,0x69,0x76,0x35,0x3b,0x0a,0x76,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d,0x5e, + 0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x3d,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e, + 0x69,0x76,0x37,0x3b,0x0a,0x76,0x5b,0x38,0x5d,0x3d,0x69,0x76,0x30,0x3b,0x0a,0x76,0x5b,0x39,0x5d,0x3d,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x31,0x30,0x5d,0x3d,0x69, + 0x76,0x32,0x3b,0x0a,0x76,0x5b,0x31,0x31,0x5d,0x3d,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x3d,0x69,0x76,0x34,0x5e,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3b, + 0x0a,0x76,0x5b,0x31,0x33,0x5d,0x3d,0x69,0x76,0x35,0x3b,0x0a,0x76,0x5b,0x31,0x34,0x5d,0x3d,0x7e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x31,0x35,0x5d,0x3d,0x69,0x76, + 0x37,0x3b,0x0a,0x6d,0x5b,0x20,0x30,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x32,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x36,0x5d,0x3a,0x30,0x3b,0x0a, + 0x6d,0x5b,0x20,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x33,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20, + 0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x34,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x33,0x5d,0x3d, + 0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x35,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x34,0x5d,0x3d,0x28,0x69,0x6e, + 0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65, + 0x6e,0x3e,0x31,0x36,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x36,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31, + 0x37,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x32,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x37,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x38,0x34,0x29, + 0x3f,0x69,0x6e,0x5b,0x32,0x33,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x38,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x39,0x32,0x29,0x3f,0x69,0x6e, + 0x5b,0x32,0x34,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x39,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x35, + 0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x30,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x36,0x5d,0x3a,0x30, + 0x3b,0x0a,0x6d,0x5b,0x31,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x31,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d, + 0x5b,0x31,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x32,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x33, + 0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x33,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x28, + 0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x33,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f, + 0x6c,0x65,0x6e,0x3e,0x32,0x34,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x33,0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73, + 0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x0a,0x6d,0x5b,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2d,0x31,0x32,0x38,0x29,0x2f,0x73,0x69,0x7a, + 0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x5d,0x20,0x26,0x3d,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d, + 0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x42,0x4c,0x41, + 0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x6f,0x75,0x74, + 0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38, + 0x29,0x20,0x6f,0x75,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f, + 0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x3b,0x0a, + 0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29,0x20,0x6f,0x75,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x33,0x5d,0x5e, + 0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x6f,0x75,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34, + 0x5d,0x5e,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x6f,0x75,0x74, + 0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e, + 0x34,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f, + 0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35, + 0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72, + 0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64, + 0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76, + 0x6f,0x69,0x64,0x2a,0x20,0x69,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d, + 0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x69,0x6e,0x29,0x2b,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28, + 0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x68,0x3d,0x28,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a, + 0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d, 0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x20,0x70,0x5b,0x30,0x5d,0x2c,0x70,0x5b,0x31,0x5d,0x2c,0x70,0x5b,0x32,0x5d,0x2c,0x70,0x5b,0x33,0x5d,0x2c,0x70,0x5b,0x34,0x5d,0x2c, 0x70,0x5b,0x35,0x5d,0x2c,0x70,0x5b,0x36,0x5d,0x2c,0x70,0x5b,0x37,0x5d,0x2c,0x70,0x5b,0x38,0x5d,0x2c,0x70,0x5b,0x39,0x5d,0x2c,0x70,0x5b,0x31,0x30,0x5d,0x2c,0x70, 0x5b,0x31,0x31,0x5d,0x2c,0x70,0x5b,0x31,0x32,0x5d,0x2c,0x70,0x5b,0x31,0x33,0x5d,0x2c,0x70,0x5b,0x31,0x34,0x5d,0x2c,0x70,0x5b,0x31,0x35,0x5d,0x20,0x7d,0x3b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x3d,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2b,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x6d,0x5b,0x34,0x5d,0x3d,0x28,0x6d,0x5b,0x34,0x5d,0x26,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28, - 0x2d,0x31,0x29,0x3e,0x3e,0x38,0x29,0x29,0x7c,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3c,0x3c,0x35,0x36,0x29,0x3b,0x0a,0x6d,0x5b,0x35,0x5d,0x3d,0x28,0x6d,0x5b,0x35,0x5d, - 0x26,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3c,0x3c,0x32,0x34,0x29,0x29,0x7c,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x38,0x29,0x3b,0x0a, 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x61,0x73,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65, - 0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x76,0x61,0x72,0x69,0x61,0x62,0x6c,0x65,0x28,0x68,0x61,0x73,0x68,0x2c,0x6d,0x2c, - 0x70,0x2c,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2c,0x36,0x34,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75, - 0x74,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x38,0x3b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b, - 0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x74,0x5b,0x33, - 0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d,0x3b,0x0a,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x61, - 0x73,0x68,0x5b,0x35,0x5d,0x3b,0x0a,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x37, - 0x5d,0x3b,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x62,0x69, - 0x67,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x69,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6f,0x75,0x74, - 0x5f,0x6c,0x65,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65, - 0x74,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30, - 0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x2c,0x69,0x76,0x35,0x2c, - 0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x20,0x7d,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x74,0x3d,0x31,0x32,0x38,0x3b,0x20,0x74,0x3c,0x69,0x6e, - 0x5f,0x6c,0x65,0x6e,0x3b,0x20,0x74,0x2b,0x3d,0x31,0x32,0x38,0x2c,0x69,0x6e,0x2b,0x3d,0x31,0x36,0x29,0x20,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31, - 0x36,0x5d,0x3d,0x7b,0x20,0x69,0x6e,0x5b,0x30,0x5d,0x2c,0x69,0x6e,0x5b,0x31,0x5d,0x2c,0x69,0x6e,0x5b,0x32,0x5d,0x2c,0x69,0x6e,0x5b,0x33,0x5d,0x2c,0x69,0x6e,0x5b, - 0x34,0x5d,0x2c,0x69,0x6e,0x5b,0x35,0x5d,0x2c,0x69,0x6e,0x5b,0x36,0x5d,0x2c,0x69,0x6e,0x5b,0x37,0x5d,0x2c,0x69,0x6e,0x5b,0x38,0x5d,0x2c,0x69,0x6e,0x5b,0x39,0x5d, - 0x2c,0x69,0x6e,0x5b,0x31,0x30,0x5d,0x2c,0x69,0x6e,0x5b,0x31,0x31,0x5d,0x2c,0x69,0x6e,0x5b,0x31,0x32,0x5d,0x2c,0x69,0x6e,0x5b,0x31,0x33,0x5d,0x2c,0x69,0x6e,0x5b, - 0x31,0x34,0x5d,0x2c,0x69,0x6e,0x5b,0x31,0x35,0x5d,0x20,0x7d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x30,0x3d,0x28,0x6e,0x6f,0x6e, - 0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x30,0x29,0x2d,0x28,0x74,0x2d,0x31,0x32,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x20,0x6b,0x31,0x3d,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x31,0x29,0x2d,0x28,0x74,0x2d,0x31,0x32,0x38,0x29,0x3b,0x0a,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x32,0x3d,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x32,0x29,0x2d,0x28,0x74,0x2d, - 0x31,0x32,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x33,0x3d,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65, - 0x74,0x2b,0x33,0x29,0x2d,0x28,0x74,0x2d,0x31,0x32,0x38,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x30,0x3c,0x31,0x32,0x38,0x29,0x20,0x6d,0x5b,0x6b,0x30,0x2f,0x38,0x5d, - 0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x30,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x30,0x20, - 0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x31,0x3c,0x31,0x32,0x38,0x29,0x20,0x6d,0x5b,0x6b,0x31,0x2f,0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c, - 0x6f,0x6e,0x67,0x29,0x28,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x38,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x31,0x20,0x25,0x20,0x38,0x29,0x2a, - 0x38,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x32,0x3c,0x31,0x32,0x38,0x29,0x20,0x6d,0x5b,0x6b,0x32,0x2f,0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28, - 0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x31,0x36,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x32,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a, - 0x69,0x66,0x28,0x6b,0x33,0x3c,0x31,0x32,0x38,0x29,0x20,0x6d,0x5b,0x6b,0x33,0x2f,0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x28,0x6e,0x6f,0x6e, - 0x63,0x65,0x3e,0x3e,0x32,0x34,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x33,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e, - 0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x20,0x68,0x5b,0x30,0x5d,0x2c,0x68,0x5b,0x31,0x5d,0x2c,0x68,0x5b,0x32,0x5d,0x2c,0x68,0x5b,0x33,0x5d,0x2c,0x68,0x5b, - 0x34,0x5d,0x2c,0x68,0x5b,0x35,0x5d,0x2c,0x68,0x5b,0x36,0x5d,0x2c,0x68,0x5b,0x37,0x5d,0x2c,0x69,0x76,0x30,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76, - 0x33,0x2c,0x69,0x76,0x34,0x5e,0x74,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x20,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52, - 0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x68,0x5b,0x30,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x20,0x38,0x5d,0x3b,0x0a,0x68,0x5b,0x31, - 0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x20,0x39,0x5d,0x3b,0x0a,0x68,0x5b,0x32,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b, - 0x31,0x30,0x5d,0x3b,0x0a,0x68,0x5b,0x33,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x68,0x5b,0x34,0x5d,0x20,0x5e,0x3d, - 0x20,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x68,0x5b,0x35,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x3b, - 0x0a,0x68,0x5b,0x36,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x68,0x5b,0x37,0x5d,0x20,0x5e,0x3d,0x20,0x76,0x5b,0x37, - 0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x20,0x6b,0x3d,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x26,0x31,0x32,0x37,0x3b,0x0a,0x69,0x66, - 0x28,0x6b,0x3d,0x3d,0x30,0x29,0x20,0x6b,0x3d,0x31,0x32,0x38,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x0a,0x28,0x6b,0x3e,0x30, - 0x29,0x3f,0x69,0x6e,0x5b,0x20,0x30,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x31,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x31, - 0x36,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x32,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x32,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x33,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b, - 0x3e,0x33,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x34,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x34,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x35,0x5d,0x3a,0x30,0x2c,0x0a, - 0x28,0x6b,0x3e,0x34,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x36,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x35,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x37,0x5d,0x3a,0x30, - 0x2c,0x0a,0x28,0x6b,0x3e,0x36,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x38,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x37,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x20,0x39,0x5d, - 0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x38,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x30,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x38,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x31, - 0x31,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x39,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x32,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x31,0x30,0x34,0x29,0x3f,0x69, - 0x6e,0x5b,0x31,0x33,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x31,0x31,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x34,0x5d,0x3a,0x30,0x2c,0x0a,0x28,0x6b,0x3e,0x31,0x32, - 0x30,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x35,0x5d,0x3a,0x30,0x0a,0x7d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x74,0x3d,0x69,0x6e,0x5f,0x6c, - 0x65,0x6e,0x2d,0x6b,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x30,0x3d,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74, - 0x2b,0x30,0x2d,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x31,0x3d,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74, - 0x2b,0x31,0x2d,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x32,0x3d,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74, - 0x2b,0x32,0x2d,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6b,0x33,0x3d,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74, - 0x2b,0x33,0x2d,0x74,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x30,0x3c,0x6b,0x29,0x20,0x6d,0x5b,0x6b,0x30,0x2f,0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28, - 0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x30,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x30,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x69, - 0x66,0x28,0x6b,0x31,0x3c,0x6b,0x29,0x20,0x6d,0x5b,0x6b,0x31,0x2f,0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e, - 0x3e,0x38,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x31,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x32,0x3c,0x6b,0x29, - 0x20,0x6d,0x5b,0x6b,0x32,0x2f,0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x31,0x36,0x29,0x26,0x32,0x35, - 0x35,0x29,0x3c,0x3c,0x28,0x28,0x6b,0x32,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x33,0x3c,0x6b,0x29,0x20,0x6d,0x5b,0x6b,0x33,0x2f, - 0x38,0x5d,0x7c,0x3d,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x28,0x6e,0x6f,0x6e,0x63,0x65,0x3e,0x3e,0x32,0x34,0x29,0x26,0x32,0x35,0x35,0x29,0x3c,0x3c,0x28,0x28, - 0x6b,0x33,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6b,0x20,0x25,0x20,0x38,0x29,0x20,0x7b,0x0a,0x6d,0x5b,0x6b,0x2f,0x38,0x5d,0x20,0x26, - 0x3d,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x28,0x6b,0x20,0x25,0x20,0x38,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x7d, - 0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x20,0x68,0x5b,0x30,0x5d,0x2c,0x68,0x5b,0x31,0x5d,0x2c,0x68,0x5b,0x32,0x5d,0x2c,0x68,0x5b, - 0x33,0x5d,0x2c,0x68,0x5b,0x34,0x5d,0x2c,0x68,0x5b,0x35,0x5d,0x2c,0x68,0x5b,0x36,0x5d,0x2c,0x68,0x5b,0x37,0x5d,0x2c,0x69,0x76,0x30,0x2c,0x69,0x76,0x31,0x2c,0x69, - 0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x5e,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2c,0x69,0x76,0x35,0x2c,0x7e,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x20,0x7d, - 0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30, - 0x29,0x20,0x6f,0x75,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f, - 0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x3b,0x0a,0x69,0x66, - 0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b, - 0x31,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29,0x20,0x6f,0x75,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x5e, - 0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x6f,0x75,0x74,0x5b,0x34, - 0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30, - 0x29,0x20,0x6f,0x75,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74, - 0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x37,0x5d, - 0x5e,0x76,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f, - 0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c, - 0x20,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x69,0x6e,0x69,0x74,0x69,0x61,0x6c,0x5f,0x68,0x61,0x73,0x68,0x5f,0x62,0x69,0x67,0x28,0x5f, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54, - 0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2c,0x75,0x69,0x6e, - 0x74,0x20,0x6e,0x6f,0x6e,0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67, - 0x20,0x68,0x61,0x73,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x62,0x69, - 0x67,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x28,0x68,0x61,0x73,0x68,0x2c,0x70,0x2c,0x62,0x6c,0x6f,0x63,0x6b,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x53,0x69,0x7a,0x65, - 0x2c,0x36,0x34,0x2c,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x6e,0x6f,0x6e, - 0x63,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x74,0x3d,0x28,0x28, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64, - 0x65,0x78,0x2a,0x38,0x3b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d, - 0x3b,0x0a,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x74,0x5b, - 0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d,0x3b,0x0a,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35,0x5d,0x3b,0x0a,0x74,0x5b,0x36,0x5d,0x3d,0x68, - 0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x32,0x35,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x20,0x33,0x32,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65, - 0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f, - 0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x33,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f, - 0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68, - 0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x33,0x32,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70, - 0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a, - 0x6f,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x6d,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e, - 0x67,0x2a,0x20,0x69,0x6e,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x5e,0x28,0x30,0x78, - 0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69, - 0x76,0x34,0x20,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76, - 0x33,0x2c,0x69,0x76,0x34,0x5e,0x31,0x32,0x38,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32, - 0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x76,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30, - 0x5d,0x3d,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x5e,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74, - 0x5f,0x6c,0x65,0x6e,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x5e,0x69,0x76,0x31,0x3b,0x0a, - 0x76,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x33,0x5d,0x3d,0x68, - 0x5b,0x33,0x5d,0x3d,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x5e,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b, - 0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x5e,0x69,0x76,0x34,0x3b,0x0a,0x76,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x3d,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31, - 0x33,0x5d,0x5e,0x69,0x76,0x35,0x3b,0x0a,0x76,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36, - 0x3b,0x0a,0x76,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x3d,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e,0x69,0x76,0x37,0x3b,0x0a,0x76,0x5b,0x38,0x5d, - 0x3d,0x69,0x76,0x30,0x3b,0x0a,0x76,0x5b,0x39,0x5d,0x3d,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x31,0x30,0x5d,0x3d,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x31,0x31,0x5d, - 0x3d,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x3d,0x69,0x76,0x34,0x5e,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31,0x33,0x5d,0x3d,0x69,0x76, - 0x35,0x3b,0x0a,0x76,0x5b,0x31,0x34,0x5d,0x3d,0x7e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x31,0x35,0x5d,0x3d,0x69,0x76,0x37,0x3b,0x0a,0x6d,0x5b,0x20,0x30,0x5d,0x3d, - 0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x32,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x31,0x5d,0x3d,0x28,0x69,0x6e, - 0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x33,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65, - 0x6e,0x3e,0x31,0x34,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31, - 0x35,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x30,0x29, - 0x3f,0x69,0x6e,0x5b,0x32,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x38,0x29,0x3f,0x69,0x6e, - 0x5b,0x32,0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x36,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x37,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x32, - 0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x37,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x38,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x33,0x5d,0x3a,0x30, - 0x3b,0x0a,0x6d,0x5b,0x20,0x38,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x39,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x34,0x5d,0x3a,0x30,0x3b,0x0a,0x6d, - 0x5b,0x20,0x39,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x35,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x30, - 0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x31,0x5d,0x3d,0x28, - 0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x31,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f, - 0x6c,0x65,0x6e,0x3e,0x32,0x32,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e, - 0x3e,0x32,0x33,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34, - 0x30,0x29,0x3f,0x69,0x6e,0x5b,0x33,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x38,0x29,0x3f, - 0x69,0x6e,0x5b,0x33,0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f, - 0x6e,0x67,0x29,0x29,0x0a,0x6d,0x5b,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2d,0x31,0x32,0x38,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67, - 0x29,0x5d,0x20,0x26,0x3d,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25, - 0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e, - 0x44,0x53,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x5e, - 0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x31,0x5d,0x3d, - 0x68,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x6f, - 0x75,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65, - 0x6e,0x3e,0x32,0x34,0x29,0x20,0x6f,0x75,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x69,0x66, - 0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x6f,0x75,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b, - 0x31,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x5e, - 0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x36, - 0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36, - 0x29,0x20,0x6f,0x75,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74, + 0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x68,0x61,0x73,0x68,0x2c,0x6d,0x2c,0x70,0x29,0x3b,0x0a, + 0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x68,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f, + 0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x68,0x5b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c, + 0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x68,0x5b,0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e, + 0x32,0x34,0x29,0x20,0x68,0x5b,0x33,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29, + 0x20,0x68,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x68,0x5b, + 0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x68,0x5b,0x36,0x5d,0x3d, + 0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x68,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73, + 0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69, + 0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72, + 0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f, + 0x75,0x74,0x5f,0x6c,0x65,0x6e,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f, + 0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62, + 0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68, + 0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x36,0x34,0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65, + 0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x6f,0x75,0x74,0x2c, + 0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x6d,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x69, + 0x6e,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31, + 0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x20,0x2c, + 0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76, + 0x34,0x5e,0x31,0x32,0x38,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f, + 0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x76,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x3d,0x76,0x5b, + 0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x5e,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e, + 0x29,0x3b,0x0a,0x76,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x5e,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x32,0x5d, + 0x3d,0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x3d, + 0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x5e,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b,0x34,0x5d,0x5e,0x76, + 0x5b,0x31,0x32,0x5d,0x5e,0x69,0x76,0x34,0x3b,0x0a,0x76,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x3d,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x5e,0x69, + 0x76,0x35,0x3b,0x0a,0x76,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b, + 0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x3d,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e,0x69,0x76,0x37,0x3b,0x0a,0x76,0x5b,0x38,0x5d,0x3d,0x69,0x76,0x30, + 0x3b,0x0a,0x76,0x5b,0x39,0x5d,0x3d,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x31,0x30,0x5d,0x3d,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x31,0x31,0x5d,0x3d,0x69,0x76,0x33, + 0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x3d,0x69,0x76,0x34,0x5e,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31,0x33,0x5d,0x3d,0x69,0x76,0x35,0x3b,0x0a,0x76, + 0x5b,0x31,0x34,0x5d,0x3d,0x7e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x31,0x35,0x5d,0x3d,0x69,0x76,0x37,0x3b,0x0a,0x6d,0x5b,0x20,0x30,0x5d,0x3d,0x28,0x69,0x6e,0x5f, + 0x6c,0x65,0x6e,0x3e,0x31,0x32,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e, + 0x3e,0x31,0x33,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x34, + 0x34,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x35,0x32,0x29,0x3f, + 0x69,0x6e,0x5b,0x31,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x30,0x29,0x3f,0x69,0x6e,0x5b, + 0x32,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x31,0x5d, + 0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x36,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x37,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x32,0x5d,0x3a,0x30,0x3b, + 0x0a,0x6d,0x5b,0x20,0x37,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x38,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x33,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b, + 0x20,0x38,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x39,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x34,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x39,0x5d, + 0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x35,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x30,0x5d,0x3d,0x28,0x69, + 0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c, + 0x65,0x6e,0x3e,0x32,0x31,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e, + 0x32,0x32,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x33,0x32, + 0x29,0x3f,0x69,0x6e,0x5b,0x32,0x39,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x30,0x29,0x3f,0x69, + 0x6e,0x5b,0x33,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x33, + 0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29, + 0x0a,0x6d,0x5b,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x2d,0x31,0x32,0x38,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x5d,0x20,0x26, + 0x3d,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a, + 0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x30,0x5d, + 0x5e,0x76,0x5b,0x38,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d, + 0x5e,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x32, + 0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34, + 0x29,0x20,0x6f,0x75,0x74,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74, + 0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x6f,0x75,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x3b, + 0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x35,0x5d, + 0x5e,0x76,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x5b, + 0x36,0x5d,0x5e,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x6f,0x75, + 0x74,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62, + 0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31, + 0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68, + 0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x2a,0x6f, + 0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x69,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20, + 0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x69,0x6e,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x69,0x6e, + 0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x68,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29, + 0x20,0x6f,0x75,0x74,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x2f,0x73,0x69,0x7a,0x65, + 0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x20,0x70,0x5b,0x30,0x5d,0x2c,0x70, + 0x5b,0x31,0x5d,0x2c,0x70,0x5b,0x32,0x5d,0x2c,0x70,0x5b,0x33,0x5d,0x2c,0x70,0x5b,0x34,0x5d,0x2c,0x70,0x5b,0x35,0x5d,0x2c,0x70,0x5b,0x36,0x5d,0x2c,0x70,0x5b,0x37, + 0x5d,0x2c,0x70,0x5b,0x38,0x5d,0x2c,0x70,0x5b,0x39,0x5d,0x2c,0x70,0x5b,0x31,0x30,0x5d,0x2c,0x70,0x5b,0x31,0x31,0x5d,0x2c,0x70,0x5b,0x31,0x32,0x5d,0x2c,0x70,0x5b, + 0x31,0x33,0x5d,0x2c,0x70,0x5b,0x31,0x34,0x5d,0x2c,0x70,0x5b,0x31,0x35,0x5d,0x20,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x61,0x73,0x68,0x5b,0x38,0x5d, + 0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f, + 0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x68,0x61,0x73,0x68,0x2c,0x6d,0x2c,0x70,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29, + 0x20,0x68,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x68,0x5b,0x31, + 0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x68,0x5b,0x32,0x5d,0x3d,0x68, + 0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29,0x20,0x68,0x5b,0x33,0x5d,0x3d,0x68,0x61,0x73,0x68, + 0x5b,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x68,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x68,0x5b,0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35,0x5d,0x3b,0x0a,0x69, + 0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x68,0x5b,0x36,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f, + 0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x68,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65, + 0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x75, + 0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f, + 0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d, + 0x61,0x20,0x4f,0x50,0x45,0x4e,0x43,0x4c,0x20,0x45,0x58,0x54,0x45,0x4e,0x53,0x49,0x4f,0x4e,0x20,0x63,0x6c,0x5f,0x6b,0x68,0x72,0x5f,0x66,0x70,0x36,0x34,0x20,0x3a, + 0x20,0x65,0x6e,0x61,0x62,0x6c,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x20,0x36,0x34, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x36,0x34,0x20,0x28,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x2d,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69, + 0x7a,0x65,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x20,0x28, + 0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2d,0x20,0x31,0x29,0x20, + 0x26,0x20,0x7e,0x28,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x31,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74, + 0x53,0x69,0x7a,0x65,0x20,0x31,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31, + 0x55,0x4c,0x20,0x3c,0x3c,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x53, + 0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x61,0x73,0x20,0x31, + 0x30,0x32,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x63,0x6f,0x6e,0x73,0x74,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x30,0x78, + 0x33,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20, + 0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x34,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c, + 0x20,0x3c,0x3c,0x20,0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x2b,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e, + 0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x29,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73, + 0x43,0x6f,0x75,0x6e,0x74,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74, + 0x20,0x28,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x43,0x6f,0x75,0x6e,0x74,0x20,0x2f,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f, + 0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x20,0x3c,0x3c,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f, + 0x42,0x49,0x54,0x53,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4f,0x66,0x66,0x73, + 0x65,0x74,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53, + 0x74,0x6f,0x72,0x65,0x4c,0x33,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x20,0x31,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x44,0x61,0x74,0x61,0x73, + 0x65,0x74,0x45,0x78,0x74,0x72,0x61,0x49,0x74,0x65,0x6d,0x73,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58, + 0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2f,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f, + 0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4e,0x65,0x65,0x64,0x73,0x44,0x69,0x73,0x70,0x6c, + 0x61,0x63,0x65,0x6d,0x65,0x6e,0x74,0x20,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x09,0x30, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x09,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, + 0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x09,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, + 0x54,0x09,0x09,0x09,0x31,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x31,0x35,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x31,0x37,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x31,0x38,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x31,0x39,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x32,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4e, + 0x55,0x4d,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x32,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x55,0x4d,0x5f,0x46, + 0x50,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x32,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4e,0x53,0x54,0x5f,0x4e, + 0x4f,0x50,0x09,0x09,0x09,0x28,0x38,0x20,0x3c,0x3c,0x20,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x0a,0x74,0x79,0x70,0x65,0x64,0x65, + 0x66,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x73,0x68,0x6f,0x72,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x31,0x36,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x3b, + 0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66, + 0x20,0x69,0x6e,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74, + 0x42,0x69,0x74,0x73,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x3e,0x3e,0x35,0x39,0x3b,0x20,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x26,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x3b, + 0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x2b,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x61,0x73,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e, + 0x74,0x20,0x26,0x3d,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x20,0x3c,0x3c,0x3d,0x20, + 0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x65, + 0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x7c,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x67,0x65, + 0x74,0x53,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79, + 0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x3d,0x63,0x6f,0x6e,0x73,0x74,0x45,0x78,0x70,0x6f,0x6e, + 0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x7c,0x3d,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x3e,0x3e,0x28,0x36,0x34, + 0x2d,0x73,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x29,0x29,0x3c,0x3c,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78, + 0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x20,0x3c,0x3c,0x3d,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73, + 0x61,0x53,0x69,0x7a,0x65,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x20,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79, + 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x73,0x6b,0x32,0x32,0x62,0x69,0x74,0x3d,0x28,0x31,0x55, + 0x4c,0x3c,0x3c,0x32,0x32,0x29,0x2d,0x31,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x26,0x6d,0x61,0x73,0x6b,0x32,0x32, + 0x62,0x69,0x74,0x29,0x7c,0x67,0x65,0x74,0x53,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x29,0x3b, + 0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x73,0x65,0x74,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x2a,0x64,0x73,0x74,0x5f,0x62,0x75,0x66,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x4e,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c, + 0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28, + 0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x38,0x5f,0x74,0x2a,0x20,0x64,0x73,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x64,0x73,0x74, + 0x5f,0x62,0x75,0x66,0x29,0x2b,0x69,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x69,0x3c,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x29,0x2a,0x4e,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x64,0x73,0x74, + 0x29,0x3d,0x76,0x61,0x6c,0x75,0x65,0x3b,0x0a,0x64,0x73,0x74,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x7d,0x0a,0x7d, + 0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6d,0x75,0x6c,0x5f,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x26,0x28,0x64,0x69,0x76,0x69,0x73,0x6f, + 0x72,0x2d,0x31,0x29,0x29,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x31,0x55,0x4c,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x70,0x32,0x65,0x78,0x70,0x36,0x33,0x3d,0x31,0x55,0x4c,0x3c,0x3c,0x36,0x33,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x20,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e,0x74,0x3d,0x70,0x32,0x65,0x78,0x70,0x36,0x33,0x2f,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x3b,0x0a,0x75,0x69,0x6e, + 0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x3d,0x70,0x32,0x65,0x78,0x70,0x36,0x33,0x20,0x25,0x20,0x64,0x69,0x76,0x69,0x73,0x6f, + 0x72,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x73,0x72,0x3d,0x33,0x31,0x2d,0x63,0x6c,0x7a,0x28,0x64,0x69,0x76, + 0x69,0x73,0x6f,0x72,0x29,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x30,0x3b,0x20,0x73,0x68, + 0x69,0x66,0x74,0x3c,0x3d,0x62,0x73,0x72,0x3b,0x20,0x2b,0x2b,0x73,0x68,0x69,0x66,0x74,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20, + 0x62,0x3d,0x28,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x3e,0x3d,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x2d,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x29, + 0x3b,0x0a,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e,0x74,0x3d,0x28,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x62,0x3f,0x31,0x3a,0x30,0x29, + 0x3b,0x0a,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x3d,0x28,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x3c,0x3c,0x31,0x29,0x2d,0x28,0x62,0x3f,0x64,0x69, + 0x76,0x69,0x73,0x6f,0x72,0x3a,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e,0x74,0x3b,0x0a,0x7d,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x61,0x2c,0x20,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x2c,0x20,0x76,0x61,0x6c, + 0x75,0x65,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x26,0x28,0x61,0x29,0x29,0x5b,0x28,0x70,0x6f,0x73,0x69,0x74, + 0x69,0x6f,0x6e,0x29,0x5d,0x20,0x3d,0x20,0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x20,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x29,0x20,0x7b,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x3e,0x3e,0x28,0x70,0x6f,0x73,0x69,0x74, + 0x69,0x6f,0x6e,0x3c,0x3c,0x33,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x3b,0x20,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x75,0x70,0x64,0x61,0x74,0x65,0x5f, + 0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x20,0x6e,0x65,0x78,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x69,0x66,0x20,0x28, + 0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x20,0x3c,0x20,0x28,0x6e,0x65,0x78,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x29,0x20,0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x20, + 0x3d,0x20,0x28,0x6e,0x65,0x78,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x20,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x5f,0x5f,0x61,0x74, 0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28, - 0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f, - 0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69, - 0x64,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x69,0x6e,0x2c,0x75, - 0x69,0x6e,0x74,0x20,0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x69,0x6e,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x2a,0x28,0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74,0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x68,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f, - 0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x2f, - 0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x20,0x70,0x5b, - 0x30,0x5d,0x2c,0x70,0x5b,0x31,0x5d,0x2c,0x70,0x5b,0x32,0x5d,0x2c,0x70,0x5b,0x33,0x5d,0x2c,0x70,0x5b,0x34,0x5d,0x2c,0x70,0x5b,0x35,0x5d,0x2c,0x70,0x5b,0x36,0x5d, - 0x2c,0x70,0x5b,0x37,0x5d,0x2c,0x70,0x5b,0x38,0x5d,0x2c,0x70,0x5b,0x39,0x5d,0x2c,0x70,0x5b,0x31,0x30,0x5d,0x2c,0x70,0x5b,0x31,0x31,0x5d,0x2c,0x70,0x5b,0x31,0x32, - 0x5d,0x2c,0x70,0x5b,0x31,0x33,0x5d,0x2c,0x70,0x5b,0x31,0x34,0x5d,0x2c,0x70,0x5b,0x31,0x35,0x5d,0x20,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x61,0x73, - 0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65, - 0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x68,0x61,0x73,0x68,0x2c,0x6d,0x2c,0x70,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65, - 0x6e,0x3e,0x30,0x29,0x20,0x68,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29, - 0x20,0x68,0x5b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x68,0x5b, - 0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29,0x20,0x68,0x5b,0x33,0x5d,0x3d, - 0x68,0x61,0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x68,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73, - 0x68,0x5b,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x68,0x5b,0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35, - 0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x68,0x5b,0x36,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x68,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d,0x0a,0x23, - 0x75,0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d, - 0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75, - 0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62, - 0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62, - 0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f, - 0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x73,0x5f,0x6e,0x61,0x6d,0x65,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x36,0x34, - 0x0a,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65, - 0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x6d,0x2c, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x69,0x6e,0x29,0x0a,0x7b,0x0a,0x75,0x6c,0x6f,0x6e, - 0x67,0x20,0x76,0x5b,0x31,0x36,0x5d,0x20,0x3d,0x0a,0x7b,0x0a,0x69,0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74, - 0x5f,0x6c,0x65,0x6e,0x29,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x20,0x2c,0x69,0x76,0x35,0x2c,0x69,0x76,0x36,0x2c,0x69, - 0x76,0x37,0x2c,0x0a,0x69,0x76,0x30,0x20,0x2c,0x69,0x76,0x31,0x2c,0x69,0x76,0x32,0x2c,0x69,0x76,0x33,0x2c,0x69,0x76,0x34,0x5e,0x31,0x32,0x38,0x2c,0x69,0x76,0x35, - 0x2c,0x69,0x76,0x36,0x2c,0x69,0x76,0x37,0x2c,0x0a,0x7d,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x75, - 0x6c,0x6f,0x6e,0x67,0x20,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x76,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x3d,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x5e,0x69, - 0x76,0x30,0x5e,0x28,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x75,0x7c,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x29,0x3b,0x0a,0x76,0x5b,0x31,0x5d,0x3d,0x68, - 0x5b,0x31,0x5d,0x3d,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39,0x5d,0x5e,0x69,0x76,0x31,0x3b,0x0a,0x76,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x3d,0x76,0x5b,0x32, - 0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x5e,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x33,0x5d,0x3d,0x68,0x5b,0x33,0x5d,0x3d,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31, - 0x5d,0x5e,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x3d,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x5e,0x69,0x76,0x34,0x3b, - 0x0a,0x76,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x3d,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x5e,0x69,0x76,0x35,0x3b,0x0a,0x76,0x5b,0x36,0x5d,0x3d, - 0x68,0x5b,0x36,0x5d,0x3d,0x76,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x31,0x34,0x5d,0x5e,0x69,0x76,0x36,0x3b,0x0a,0x76,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d,0x3d,0x76, - 0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x5e,0x69,0x76,0x37,0x3b,0x0a,0x76,0x5b,0x38,0x5d,0x3d,0x69,0x76,0x30,0x3b,0x0a,0x76,0x5b,0x39,0x5d,0x3d,0x69,0x76, - 0x31,0x3b,0x0a,0x76,0x5b,0x31,0x30,0x5d,0x3d,0x69,0x76,0x32,0x3b,0x0a,0x76,0x5b,0x31,0x31,0x5d,0x3d,0x69,0x76,0x33,0x3b,0x0a,0x76,0x5b,0x31,0x32,0x5d,0x3d,0x69, - 0x76,0x34,0x5e,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3b,0x0a,0x76,0x5b,0x31,0x33,0x5d,0x3d,0x69,0x76,0x35,0x3b,0x0a,0x76,0x5b,0x31,0x34,0x5d,0x3d,0x7e,0x69,0x76,0x36, - 0x3b,0x0a,0x76,0x5b,0x31,0x35,0x5d,0x3d,0x69,0x76,0x37,0x3b,0x0a,0x6d,0x5b,0x20,0x30,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x32,0x38,0x29,0x3f, - 0x69,0x6e,0x5b,0x31,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x33,0x36,0x29,0x3f,0x69,0x6e,0x5b, - 0x31,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x34,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x38,0x5d, - 0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x35,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x31,0x39,0x5d,0x3a,0x30,0x3b, - 0x0a,0x6d,0x5b,0x20,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x30,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b, - 0x20,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x36,0x5d, - 0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x37,0x36,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x32,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x37,0x5d,0x3d,0x28,0x69, - 0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x38,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x33,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x38,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c, - 0x65,0x6e,0x3e,0x31,0x39,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x34,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x20,0x39,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e, - 0x32,0x30,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x35,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x30,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x30,0x38, - 0x29,0x3f,0x69,0x6e,0x5b,0x32,0x36,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x31,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x31,0x36,0x29,0x3f,0x69, - 0x6e,0x5b,0x32,0x37,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x32,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x32,0x34,0x29,0x3f,0x69,0x6e,0x5b,0x32, - 0x38,0x5d,0x3a,0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x33,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x33,0x32,0x29,0x3f,0x69,0x6e,0x5b,0x32,0x39,0x5d,0x3a, - 0x30,0x3b,0x0a,0x6d,0x5b,0x31,0x34,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x30,0x29,0x3f,0x69,0x6e,0x5b,0x33,0x30,0x5d,0x3a,0x30,0x3b,0x0a, - 0x6d,0x5b,0x31,0x35,0x5d,0x3d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x38,0x29,0x3f,0x69,0x6e,0x5b,0x33,0x31,0x5d,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28, - 0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x0a,0x6d,0x5b,0x28,0x69,0x6e,0x5f,0x6c,0x65, - 0x6e,0x2d,0x31,0x32,0x38,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x5d,0x20,0x26,0x3d,0x20,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29, - 0x28,0x2d,0x31,0x29,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x28,0x69,0x6e,0x5f,0x6c,0x65,0x6e,0x20,0x25,0x20,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67, - 0x29,0x29,0x2a,0x38,0x29,0x3b,0x0a,0x42,0x4c,0x41,0x4b,0x45,0x32,0x42,0x5f,0x52,0x4f,0x55,0x4e,0x44,0x53,0x28,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f, - 0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x30,0x5d,0x3d,0x68,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x30,0x5d,0x5e,0x76,0x5b,0x38,0x5d,0x3b,0x0a,0x69,0x66, - 0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x31,0x5d,0x3d,0x68,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x31,0x5d,0x5e,0x76,0x5b,0x39, - 0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x32,0x5d,0x3d,0x68,0x5b,0x32,0x5d,0x5e,0x76,0x5b, - 0x32,0x5d,0x5e,0x76,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29,0x20,0x6f,0x75,0x74,0x5b,0x33,0x5d,0x3d, - 0x68,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x33,0x5d,0x5e,0x76,0x5b,0x31,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20, - 0x6f,0x75,0x74,0x5b,0x34,0x5d,0x3d,0x68,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x34,0x5d,0x5e,0x76,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c, - 0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x6f,0x75,0x74,0x5b,0x35,0x5d,0x3d,0x68,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x35,0x5d,0x5e,0x76,0x5b,0x31,0x33,0x5d,0x3b,0x0a,0x69, - 0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x34,0x38,0x29,0x20,0x6f,0x75,0x74,0x5b,0x36,0x5d,0x3d,0x68,0x5b,0x36,0x5d,0x5e,0x76,0x5b,0x36,0x5d,0x5e,0x76, - 0x5b,0x31,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36,0x29,0x20,0x6f,0x75,0x74,0x5b,0x37,0x5d,0x3d,0x68,0x5b,0x37,0x5d, - 0x5e,0x76,0x5b,0x37,0x5d,0x5e,0x76,0x5b,0x31,0x35,0x5d,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65, - 0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b, - 0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62,0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x73,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x2a,0x6f,0x75,0x74,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62, - 0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x69,0x6e,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42, - 0x79,0x74,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d, - 0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x6c,0x6f,0x6e,0x67, - 0x2a,0x29,0x20,0x69,0x6e,0x29,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x69,0x6e,0x53,0x74,0x72,0x69,0x64,0x65,0x42,0x79,0x74, - 0x65,0x73,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e, - 0x67,0x2a,0x20,0x68,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x29,0x20,0x6f,0x75,0x74,0x29,0x2b,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29, - 0x29,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x6d,0x5b,0x31,0x36,0x5d,0x3d,0x7b,0x20,0x70,0x5b,0x30,0x5d,0x2c,0x70,0x5b,0x31,0x5d,0x2c,0x70,0x5b,0x32,0x5d,0x2c, - 0x70,0x5b,0x33,0x5d,0x2c,0x70,0x5b,0x34,0x5d,0x2c,0x70,0x5b,0x35,0x5d,0x2c,0x70,0x5b,0x36,0x5d,0x2c,0x70,0x5b,0x37,0x5d,0x2c,0x70,0x5b,0x38,0x5d,0x2c,0x70,0x5b, - 0x39,0x5d,0x2c,0x70,0x5b,0x31,0x30,0x5d,0x2c,0x70,0x5b,0x31,0x31,0x5d,0x2c,0x70,0x5b,0x31,0x32,0x5d,0x2c,0x70,0x5b,0x31,0x33,0x5d,0x2c,0x70,0x5b,0x31,0x34,0x5d, - 0x2c,0x70,0x5b,0x31,0x35,0x5d,0x20,0x7d,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x68,0x61,0x73,0x68,0x5b,0x38,0x5d,0x3b,0x0a,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62, - 0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d,0x65,0x28,0x68, - 0x61,0x73,0x68,0x2c,0x6d,0x2c,0x70,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x30,0x29,0x20,0x68,0x5b,0x30,0x5d,0x3d,0x68,0x61,0x73, - 0x68,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x38,0x29,0x20,0x68,0x5b,0x31,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x31,0x5d, - 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x31,0x36,0x29,0x20,0x68,0x5b,0x32,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x32,0x5d,0x3b,0x0a,0x69, - 0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x32,0x34,0x29,0x20,0x68,0x5b,0x33,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x33,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f, - 0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x33,0x32,0x29,0x20,0x68,0x5b,0x34,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x34,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f, - 0x6c,0x65,0x6e,0x3e,0x34,0x30,0x29,0x20,0x68,0x5b,0x35,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x35,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e, - 0x3e,0x34,0x38,0x29,0x20,0x68,0x5b,0x36,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x36,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x3e,0x35,0x36, - 0x29,0x20,0x68,0x5b,0x37,0x5d,0x3d,0x68,0x61,0x73,0x68,0x5b,0x37,0x5d,0x3b,0x0a,0x7d,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b,0x65,0x32,0x62, - 0x5f,0x68,0x61,0x73,0x68,0x5f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x5f,0x6e,0x61,0x6d,0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x62,0x6c,0x61,0x6b, - 0x65,0x32,0x62,0x5f,0x35,0x31,0x32,0x5f,0x70,0x72,0x6f,0x63,0x65,0x73,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x62,0x6c,0x6f,0x63,0x6b,0x5f,0x6e,0x61,0x6d, - 0x65,0x0a,0x23,0x75,0x6e,0x64,0x65,0x66,0x20,0x6f,0x75,0x74,0x5f,0x6c,0x65,0x6e,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x4f,0x50,0x45,0x4e,0x43,0x4c,0x20, - 0x45,0x58,0x54,0x45,0x4e,0x53,0x49,0x4f,0x4e,0x20,0x63,0x6c,0x5f,0x6b,0x68,0x72,0x5f,0x66,0x70,0x36,0x34,0x20,0x3a,0x20,0x65,0x6e,0x61,0x62,0x6c,0x65,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x36,0x34,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41, - 0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x2d,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x29,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x42,0x41,0x53,0x45,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2d,0x20,0x31,0x29,0x20,0x26,0x20,0x7e,0x28,0x43,0x61,0x63,0x68,0x65, - 0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x31,0x29,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53, - 0x69,0x7a,0x65,0x20,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x53,0x69,0x7a,0x65,0x20,0x31,0x31,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x6d,0x61,0x6e, - 0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74, - 0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x53,0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x61,0x73,0x20,0x31,0x30,0x32,0x33,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x63,0x6f,0x6e,0x73,0x74,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x30,0x78,0x33,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x79, - 0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x28,0x6d,0x61,0x6e,0x74, - 0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x2b,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x29,0x29, - 0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x43,0x6f,0x75,0x6e,0x74,0x20,0x38,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x20,0x28,0x52,0x65,0x67,0x69,0x73,0x74,0x65, - 0x72,0x73,0x43,0x6f,0x75,0x6e,0x74,0x20,0x2f,0x20,0x32,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61, - 0x73,0x6b,0x20,0x28,0x28,0x31,0x20,0x3c,0x3c,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x29,0x20,0x2d,0x20,0x31, - 0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4f,0x66,0x66,0x73,0x65,0x74,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x74,0x6f,0x72,0x65,0x4c,0x33,0x43,0x6f,0x6e, - 0x64,0x69,0x74,0x69,0x6f,0x6e,0x20,0x31,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x44,0x61,0x74,0x61,0x73,0x65,0x74,0x45,0x78,0x74,0x72,0x61,0x49,0x74, - 0x65,0x6d,0x73,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x45,0x58,0x54,0x52,0x41,0x5f,0x53,0x49,0x5a,0x45,0x20, - 0x2f,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x44,0x41,0x54,0x41,0x53,0x45,0x54,0x5f,0x49,0x54,0x45,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x29,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4e,0x65,0x65,0x64,0x73,0x44,0x69,0x73,0x70,0x6c,0x61,0x63,0x65,0x6d,0x65,0x6e,0x74,0x20,0x35, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x09,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x09,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x09,0x09,0x09,0x36,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x09,0x31,0x34,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53, - 0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x31,0x37,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x52, - 0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x31,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x45,0x47, - 0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x31,0x39,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4f,0x50,0x43,0x4f, - 0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x09,0x32,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x55,0x4d,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f, - 0x4f,0x46,0x46,0x53,0x45,0x54,0x09,0x32,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x55,0x4d,0x5f,0x46,0x50,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f, - 0x46,0x46,0x53,0x45,0x54,0x09,0x32,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x09,0x09,0x09,0x28,0x38,0x20,0x3c, - 0x3c,0x20,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x63,0x68,0x61,0x72,0x20,0x75, - 0x69,0x6e,0x74,0x38,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x73,0x68,0x6f,0x72,0x74,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x5f,0x74,0x3b, - 0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20, - 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x69,0x6e,0x74,0x20,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x3b,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x6c,0x6f,0x6e,0x67,0x20,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c, - 0x65,0x20,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x75,0x69,0x6e,0x74, - 0x36,0x34,0x5f,0x74,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e, - 0x74,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x3e,0x3e,0x35,0x39,0x3b,0x20,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73, - 0x61,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x26,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74, - 0x2b,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x61,0x73,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x20,0x26,0x3d,0x20,0x65,0x78,0x70,0x6f, - 0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x20,0x3c,0x3c,0x3d,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53, - 0x69,0x7a,0x65,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x7c,0x6d, - 0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x67,0x65,0x74,0x53,0x74,0x61,0x74,0x69,0x63,0x45,0x78, - 0x70,0x6f,0x6e,0x65,0x6e,0x74,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x36, - 0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x3d,0x63,0x6f,0x6e,0x73,0x74,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x3b,0x0a, - 0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x7c,0x3d,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x74,0x61,0x74,0x69,0x63,0x45,0x78, - 0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x29,0x29,0x3c,0x3c,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74, - 0x73,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x20,0x3c,0x3c,0x3d,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x3b,0x0a,0x72,0x65, - 0x74,0x75,0x72,0x6e,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x67,0x65,0x74,0x46,0x6c,0x6f, - 0x61,0x74,0x4d,0x61,0x73,0x6b,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x73,0x6b,0x32,0x32,0x62,0x69,0x74,0x3d,0x28,0x31,0x55,0x4c,0x3c,0x3c,0x32,0x32,0x29,0x2d,0x31,0x3b, - 0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x26,0x6d,0x61,0x73,0x6b,0x32,0x32,0x62,0x69,0x74,0x29,0x7c,0x67,0x65,0x74,0x53, - 0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x29,0x3b,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x73, - 0x65,0x74,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x2a,0x64,0x73,0x74,0x5f, - 0x62,0x75,0x66,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x4e,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61, - 0x6c,0x75,0x65,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30, - 0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x20,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28,0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66, - 0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x64,0x73,0x74, - 0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x64,0x73,0x74,0x5f,0x62,0x75,0x66,0x29,0x2b,0x69,0x3b,0x0a, - 0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x69,0x3c,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x2a,0x4e,0x29,0x0a,0x7b,0x0a,0x2a, - 0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x64,0x73,0x74,0x29,0x3d,0x76,0x61,0x6c,0x75,0x65,0x3b,0x0a, - 0x64,0x73,0x74,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, - 0x20,0x69,0x6d,0x75,0x6c,0x5f,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x69,0x76,0x69,0x73,0x6f,0x72, - 0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x26,0x28,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x2d,0x31,0x29,0x29,0x3d,0x3d,0x30,0x29, - 0x0a,0x7b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x31,0x55,0x4c,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20, - 0x70,0x32,0x65,0x78,0x70,0x36,0x33,0x3d,0x31,0x55,0x4c,0x3c,0x3c,0x36,0x33,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x71,0x75,0x6f,0x74,0x69,0x65, - 0x6e,0x74,0x3d,0x70,0x32,0x65,0x78,0x70,0x36,0x33,0x2f,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x6d, - 0x61,0x69,0x6e,0x64,0x65,0x72,0x3d,0x70,0x32,0x65,0x78,0x70,0x36,0x33,0x20,0x25,0x20,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x73,0x72,0x3d,0x33,0x31,0x2d,0x63,0x6c,0x7a,0x28,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x29,0x3b,0x0a,0x66,0x6f, - 0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x30,0x3b,0x20,0x73,0x68,0x69,0x66,0x74,0x3c,0x3d,0x62,0x73,0x72,0x3b, - 0x20,0x2b,0x2b,0x73,0x68,0x69,0x66,0x74,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x62,0x3d,0x28,0x72,0x65,0x6d,0x61,0x69,0x6e, - 0x64,0x65,0x72,0x3e,0x3d,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x2d,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x29,0x3b,0x0a,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e, - 0x74,0x3d,0x28,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x62,0x3f,0x31,0x3a,0x30,0x29,0x3b,0x0a,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64, - 0x65,0x72,0x3d,0x28,0x72,0x65,0x6d,0x61,0x69,0x6e,0x64,0x65,0x72,0x3c,0x3c,0x31,0x29,0x2d,0x28,0x62,0x3f,0x64,0x69,0x76,0x69,0x73,0x6f,0x72,0x3a,0x30,0x29,0x3b, - 0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x71,0x75,0x6f,0x74,0x69,0x65,0x6e,0x74,0x3b,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x73,0x65, - 0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x61,0x2c,0x20,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20, - 0x28,0x28,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x26,0x28,0x61,0x29,0x29,0x5b,0x28,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x29,0x5d,0x20,0x3d,0x20,0x28, - 0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x20,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x70,0x6f,0x73,0x69,0x74,0x69, - 0x6f,0x6e,0x29,0x20,0x7b,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x3e,0x3e,0x28,0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3c,0x3c,0x33,0x29,0x29,0x26, - 0x30,0x78,0x46,0x46,0x3b,0x20,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65, - 0x2c,0x20,0x6e,0x65,0x78,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x20,0x64,0x6f,0x20,0x7b,0x20,0x69,0x66,0x20,0x28,0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x20,0x3c, - 0x20,0x28,0x6e,0x65,0x78,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x29,0x20,0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x20,0x3d,0x20,0x28,0x6e,0x65,0x78,0x74,0x5f,0x76, - 0x61,0x6c,0x75,0x65,0x29,0x3b,0x20,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x30,0x29,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f, - 0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x33,0x32,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29, - 0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x69,0x6e,0x69,0x74,0x5f,0x76,0x6d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5f,0x64,0x61,0x74,0x61,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x2a,0x20,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e, - 0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20, - 0x32,0x35,0x36,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x20,0x65,0x78,0x65,0x63,0x5f,0x74,0x3b,0x0a,0x23,0x65,0x6c,0x73, - 0x65,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x5f,0x74,0x20,0x65,0x78,0x65,0x63,0x5f,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69, - 0x66,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61, - 0x6e,0x5f,0x62,0x75,0x66,0x5b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x57,0x4f,0x52,0x4b,0x45, - 0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2a,0x28,0x33,0x32,0x2f,0x38,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x65,0x78,0x65,0x63,0x5f,0x74, - 0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x5d,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28, - 0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f,0x62,0x75,0x66,0x2c,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74, - 0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f,0x62,0x75,0x66,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x2c,0x30, - 0x29,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x64, - 0x78,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20,0x38,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x65, - 0x78,0x65,0x63,0x5f,0x74,0x2a,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x65, - 0x78,0x65,0x63,0x5f,0x74,0x2a,0x29,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f,0x62,0x75,0x66,0x2b,0x28,0x67,0x65,0x74,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x38,0x29,0x2a,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53, - 0x49,0x5a,0x45,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x65,0x78,0x65,0x63, - 0x5f,0x74,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x52,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, - 0x29,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x2b,0x69,0x64,0x78,0x2a,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69, - 0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x52,0x5b,0x73,0x75,0x62,0x5d,0x3d,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x3d,0x28,0x28,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5f,0x64,0x61, - 0x74,0x61,0x29,0x2b,0x69,0x64,0x78,0x2a,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74, - 0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x41,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28,0x52,0x2b,0x32,0x34,0x29,0x3b,0x0a,0x41,0x5b,0x73,0x75,0x62,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d, - 0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x73,0x75,0x62, - 0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x30, - 0x29,0x0a,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x32,0x2a,0x20,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x29, - 0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x31,0x32,0x38,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a, - 0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a, - 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a, - 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x23, - 0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, - 0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x20,0x7d,0x3b, - 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x20,0x26, - 0x3d,0x20,0x7e,0x28,0x30,0x78,0x46,0x38,0x55,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x73,0x72,0x63,0x5f,0x69, - 0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73, - 0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26, - 0x30,0x78,0x66,0x66,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74, - 0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, - 0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48, - 0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c, - 0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20, - 0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73, - 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, - 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75, - 0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52, - 0x53,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, - 0x4d,0x55,0x4c,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d, - 0x55,0x4c,0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a, - 0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74, - 0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b, - 0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d, - 0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x2b,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52, - 0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45, - 0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61, - 0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61, - 0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, - 0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e, - 0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f, - 0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74, - 0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20, - 0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, - 0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61, - 0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, - 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x73,0x72,0x63,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73, - 0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x73,0x72,0x63,0x2c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x73,0x72,0x63,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e, - 0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, - 0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53, - 0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f, - 0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x2b,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29, - 0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x7c,0x3d,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e, - 0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50, - 0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51, - 0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52, - 0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x72,0x65,0x67,0x3d,0x64,0x73,0x74,0x3b, + 0x33,0x32,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x69,0x6e,0x69,0x74,0x5f,0x76,0x6d,0x28, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5f,0x64,0x61,0x74, + 0x61,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x20,0x65,0x78,0x65, + 0x63,0x5f,0x74,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x74,0x79,0x70,0x65,0x64,0x65,0x66,0x20,0x75,0x69,0x6e,0x74,0x31,0x36,0x5f,0x74,0x20,0x65,0x78,0x65,0x63, + 0x5f,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x65,0x63, + 0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f,0x62,0x75,0x66,0x5b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53, + 0x49,0x5a,0x45,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2a,0x28,0x33,0x32,0x2f,0x38,0x29,0x2a,0x73,0x69,0x7a,0x65, + 0x6f,0x66,0x28,0x65,0x78,0x65,0x63,0x5f,0x74,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x5d,0x3b,0x0a,0x73,0x65, + 0x74,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f,0x62,0x75,0x66,0x2c,0x73,0x69,0x7a,0x65, + 0x6f,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f,0x62,0x75,0x66,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x2c,0x30,0x29,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45, + 0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f, + 0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20,0x38,0x3b,0x0a, + 0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x65,0x78,0x65,0x63,0x5f,0x74,0x2a,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x3d,0x28, + 0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x65,0x78,0x65,0x63,0x5f,0x74,0x2a,0x29,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5f, + 0x62,0x75,0x66,0x2b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x38,0x29,0x2a,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2a,0x73,0x69, + 0x7a,0x65,0x6f,0x66,0x28,0x65,0x78,0x65,0x63,0x5f,0x74,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x29,0x3b,0x0a, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x52,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x2b,0x69,0x64,0x78,0x2a,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54, + 0x45,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x52,0x5b,0x73,0x75,0x62,0x5d,0x3d, + 0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x65,0x6e,0x74,0x72, + 0x6f,0x70,0x79,0x3d,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x65, + 0x6e,0x74,0x72,0x6f,0x70,0x79,0x5f,0x64,0x61,0x74,0x61,0x29,0x2b,0x69,0x64,0x78,0x2a,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69, + 0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a, + 0x20,0x41,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28,0x52,0x2b,0x32,0x34,0x29,0x3b,0x0a,0x41,0x5b,0x73, + 0x75,0x62,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e, + 0x74,0x72,0x6f,0x70,0x79,0x5b,0x73,0x75,0x62,0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x74,0x65, + 0x72,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x30,0x29,0x0a,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x31,0x32,0x38,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e, + 0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a, + 0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, + 0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61, + 0x6e,0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31, + 0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x20,0x7d,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69, + 0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29, + 0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f, + 0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x20,0x26,0x3d,0x20,0x7e,0x28,0x30,0x78,0x46,0x38,0x55,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x32,0x20,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e, + 0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x66,0x66,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73, + 0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c, + 0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d, + 0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47, + 0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65, + 0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69, + 0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c, + 0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55, + 0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55, + 0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x7b, 0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28, - 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x29,0x3d,0x3d,0x30,0x29,0x3f,0x2d,0x31,0x3a,0x28,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x63,0x68,0x61,0x6e,0x67,0x65,0x29,0x3b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x3d,0x28,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x63,0x72,0x65,0x67,0x7c,0x28,0x28,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67, - 0x65,0x64,0x3d,0x3d,0x2d,0x31,0x29,0x3f,0x30,0x78,0x39,0x30,0x3a,0x30,0x78,0x31,0x30,0x29,0x29,0x3c,0x3c,0x38,0x29,0x7c,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x29,0x28,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x23,0x65, - 0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62, - 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x3d,0x28,0x73,0x72, - 0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x63,0x72,0x65,0x67,0x7c,0x30,0x78,0x31, - 0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2b,0x31,0x29,0x7c, - 0x3d,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, - 0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x6d,0x70,0x3d,0x69,0x7c,0x28,0x69,0x3c,0x3c,0x38,0x29,0x3b, - 0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x74,0x6d,0x70,0x7c,0x28,0x74,0x6d,0x70,0x3c,0x3c,0x31, - 0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, - 0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x78,0x30,0x31,0x30,0x31, - 0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x55,0x4c,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, - 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x30,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x64,0x5b,0x31,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x32,0x5d, - 0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x33,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x34,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x35,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, - 0x61,0x6e,0x67,0x65,0x64,0x5b,0x36,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b, - 0x37,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74, - 0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65, - 0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65, - 0x6e,0x63,0x79,0x46,0x50,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79, - 0x63,0x6c,0x65,0x46,0x50,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68, - 0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x53,0x63,0x72, - 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x5f, - 0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x5f, - 0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, - 0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x5f, - 0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f, - 0x73,0x6c,0x6f,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x72, - 0x75,0x63,0x74,0x69,0x6f,0x6e,0x73,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63, - 0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63, - 0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63, - 0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x69,0x72,0x73,0x74,0x5f, - 0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d, - 0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x66,0x66,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, - 0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, - 0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x6d,0x6f,0x64,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32,0x34,0x29,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x62, - 0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21, - 0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x66,0x69,0x72,0x73,0x74, - 0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31, - 0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68, - 0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64, - 0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65, - 0x6e,0x63,0x79,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74, - 0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72, - 0x63,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65, - 0x6e,0x63,0x79,0x3d,0x28,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3e,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3f,0x64,0x73, - 0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3a,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x65,0x6d,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x28,0x64,0x73,0x74,0x3d,0x3d,0x73,0x72, - 0x63,0x29,0x26,0x26,0x28,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x36,0x34,0x29, - 0x3e,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x29,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63, - 0x79,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x6d,0x65, - 0x6d,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x75,0x6c,0x6c,0x5f, - 0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f, - 0x72,0x79,0x5f,0x6f,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72, - 0x65,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c, - 0x20,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x73,0x77,0x61,0x70,0x3d,0x66, - 0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x6f,0x6f, - 0x6c,0x20,0x69,0x73,0x5f,0x66,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x66, - 0x61,0x6c,0x73,0x65,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61, + 0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73, + 0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65, + 0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, + 0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d, + 0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a, + 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x2b,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, + 0x58,0x4f,0x52,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f, + 0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a, + 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64, + 0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x2b,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f, + 0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66, + 0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x2c,0x31,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x73,0x72,0x63,0x2c,0x69,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62, + 0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x73,0x72,0x63,0x2c,0x31,0x29,0x3b,0x0a,0x23, + 0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b, + 0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x73,0x72,0x63,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44, + 0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x7c,0x3d,0x30,0x78,0x32,0x30,0x3c,0x3c, + 0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x2b, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d, + 0x55,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x63,0x72,0x65,0x67,0x3d,0x64,0x73,0x74,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, + 0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x3d, + 0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74, + 0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x67,0x65, + 0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x2c,0x64,0x73,0x74,0x29,0x3d,0x3d, + 0x30,0x29,0x3f,0x2d,0x31,0x3a,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x63,0x68,0x61,0x6e,0x67,0x65,0x29,0x3b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x3d,0x28,0x73, + 0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x63,0x72,0x65,0x67,0x7c,0x28,0x28, + 0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x3d,0x2d,0x31,0x29,0x3f,0x30,0x78,0x39,0x30,0x3a,0x30,0x78,0x31,0x30,0x29,0x29,0x3c,0x3c,0x38,0x29, + 0x7c,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x6c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x29,0x26,0x30,0x78,0x46,0x46,0x29, + 0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x43, + 0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3b, + 0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72, + 0x61,0x6d,0x2b,0x69,0x29,0x3d,0x28,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x30,0x30,0x30,0x30,0x46,0x46,0x55,0x29,0x7c,0x28, + 0x28,0x63,0x72,0x65,0x67,0x7c,0x30,0x78,0x31,0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x6c,0x61,0x73,0x74,0x43,0x68, + 0x61,0x6e,0x67,0x65,0x64,0x2b,0x31,0x29,0x7c,0x3d,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50, + 0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3c,0x3d,0x20,0x32,0x35,0x36,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x6d,0x70,0x3d, + 0x69,0x7c,0x28,0x69,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x74,0x6d, + 0x70,0x7c,0x28,0x74,0x6d,0x70,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, + 0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67, + 0x65,0x64,0x3d,0x30,0x78,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x31,0x55,0x4c,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x30,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x31,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43, + 0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x32,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, + 0x5b,0x33,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x34,0x5d,0x3d,0x69,0x3b, + 0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x35,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x36,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73, + 0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x37,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x46,0x50,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x53,0x63,0x72,0x61,0x74, + 0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x30,0x3b, + 0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x73,0x6c,0x6f,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x73,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69,0x72,0x73, + 0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x69,0x72,0x73, + 0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x75,0x70,0x64, + 0x61,0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f, + 0x6f,0x6c,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63, + 0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d, + 0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a, + 0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69, + 0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x66,0x66,0x3b,0x0a, + 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x6f,0x64,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32,0x34,0x29,0x3b,0x0a, + 0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30, + 0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74, + 0x29,0x0a,0x7b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73, + 0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f, + 0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, + 0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f, + 0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3e,0x73,0x72,0x63,0x5f,0x6c,0x61, + 0x74,0x65,0x6e,0x63,0x79,0x29,0x3f,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3a,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x65,0x6d,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d, + 0x28,0x28,0x64,0x73,0x74,0x3d,0x3d,0x73,0x72,0x63,0x29,0x26,0x26,0x28,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x4c,0x33,0x4d,0x61,0x73,0x6b,0x36,0x34,0x29,0x3e,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32, + 0x29,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c, + 0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x6d,0x65,0x6d,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f, + 0x6d,0x61,0x78,0x28,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c, + 0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x30,0x3b,0x0a,0x62,0x6f,0x6f, + 0x6c,0x20,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x6d,0x65, + 0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x66,0x61, + 0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20, + 0x69,0x73,0x5f,0x73,0x77,0x61,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d, + 0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x66,0x70,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f, + 0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65, + 0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d, + 0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d, + 0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d, + 0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61, 0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64, - 0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65, - 0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f, - 0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52, - 0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72, - 0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42, - 0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f, - 0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a, - 0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f, + 0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61, + 0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29, + 0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65, + 0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f, + 0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d, + 0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69, + 0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63, 0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, - 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, - 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e, - 0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f, - 0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61, - 0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c, - 0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74, + 0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72, + 0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67, + 0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63, + 0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f, + 0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66, + 0x61,0x6c,0x73,0x65,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x6c,0x61,0x74,0x65, + 0x6e,0x63,0x79,0x3d,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x74,0x72,0x75, + 0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x6c, + 0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e, + 0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65, + 0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79, + 0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f, + 0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62, + 0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f, + 0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, + 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x77, + 0x61,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x66,0x28,0x64,0x73,0x74,0x21,0x3d,0x73,0x72,0x63,0x29,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65, + 0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65, 0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74, - 0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f,0x72,0x65, - 0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62, - 0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d, - 0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d, - 0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x69,0x66,0x28, - 0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x64,0x73,0x74,0x5f,0x6c, - 0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b, - 0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50, - 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x29, - 0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x64,0x73, - 0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65, - 0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x66,0x75,0x6c,0x6c,0x5f, - 0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b, - 0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, - 0x58,0x4f,0x52,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52, - 0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65, - 0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x77,0x61,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a, - 0x69,0x66,0x28,0x64,0x73,0x74,0x21,0x3d,0x73,0x72,0x63,0x29,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61, - 0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a, - 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a, - 0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e, - 0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65, - 0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65, - 0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69, + 0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69, 0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a, 0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d, - 0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62, - 0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61, - 0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x75,0x70,0x64, - 0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63, - 0x79,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75, - 0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c, - 0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65, - 0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72, - 0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65, - 0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c, - 0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28, - 0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66, - 0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b, - 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x29, + 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25, + 0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f, + 0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f, + 0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61, + 0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x29, 0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65, 0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64, - 0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c, - 0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43, - 0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e, - 0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73, - 0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73, - 0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75, - 0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79, - 0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29, - 0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79, - 0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, - 0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f, - 0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a, - 0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79, - 0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64, - 0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c, - 0x73,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x64,0x73,0x74,0x5f, - 0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6c,0x61, - 0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d, - 0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79, - 0x3d,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62, - 0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52, - 0x4f,0x55,0x4e,0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54, - 0x4f,0x52,0x45,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b, - 0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x28,0x6c,0x61,0x73,0x74,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79, - 0x5f,0x6f,0x70,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2f,0x57,0x4f,0x52,0x4b,0x45, - 0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b, - 0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x3b,0x0a,0x69,0x73,0x5f, - 0x6e,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x66,0x61,0x6c,0x73,0x65,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73, - 0x5f,0x6e,0x6f,0x70,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x75, - 0x70,0x64,0x61,0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d, - 0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61, - 0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x7c,0x3d,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x3b,0x0a,0x75,0x70,0x64,0x61, - 0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x69,0x73,0x5f, - 0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69, - 0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65, - 0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f, - 0x73,0x6c,0x6f,0x74,0x2c,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a, - 0x69,0x66,0x28,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f, - 0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f, - 0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f, - 0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x69,0x73,0x5f,0x66,0x70,0x3f,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x46,0x50,0x3a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c, - 0x65,0x2c,0x64,0x73,0x74,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f, - 0x73,0x77,0x61,0x70,0x29,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73, - 0x6c,0x6f,0x74,0x2c,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x73, - 0x72,0x63,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73, - 0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x75,0x70,0x64, - 0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2c,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65, - 0x64,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29,0x0a,0x7b,0x0a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65, - 0x3d,0x2d,0x31,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65, - 0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x20,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3c,0x30,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a,0x69,0x66, - 0x28,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x5d,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28,0x65,0x78,0x65,0x63,0x75,0x74, - 0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x2b,0x31,0x5d,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28,0x28,0x6a,0x2b,0x31,0x29,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b, - 0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x29,0x0a,0x7b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x62,0x6c,0x6f,0x63,0x6b,0x65,0x64,0x3d,0x66,0x61, - 0x6c,0x73,0x65,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x3d,0x28,0x6a,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50, - 0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3b,0x20,0x6b,0x3c,0x6a,0x3b,0x20, - 0x2b,0x2b,0x6b,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x7c,0x7c,0x28,0x6b,0x3d, - 0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65,0x63, - 0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x5d,0x2e,0x78,0x3b,0x0a,0x69,0x66,0x28,0x28,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x30,0x78,0x32, - 0x30,0x3c,0x3c,0x38,0x29,0x29,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28,0x28,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x30,0x78,0x35,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d, - 0x30,0x29,0x7c,0x7c,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x29,0x0a,0x7b,0x0a,0x62,0x6c,0x6f,0x63,0x6b,0x65,0x64, - 0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x21,0x62,0x6c,0x6f,0x63,0x6b, - 0x65,0x64,0x29,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x3d,0x28,0x6a,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f, - 0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3b,0x20,0x6b,0x3c,0x6a,0x3b, - 0x20,0x2b,0x2b,0x6b,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x7c,0x7c,0x28,0x6b, - 0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65, - 0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x5d,0x2e,0x78,0x3b,0x0a,0x69,0x66,0x28,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x30,0x78,0x32, - 0x30,0x3c,0x3c,0x38,0x29,0x29,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x5d,0x3d,0x65, - 0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x3b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e, - 0x5b,0x6a,0x2b,0x31,0x5d,0x3d,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x2b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x66,0x69, - 0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x6b,0x29,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x69, - 0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6a,0x3b,0x0a,0x69,0x66,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74, - 0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x6b,0x2b,0x31,0x29,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63, - 0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6a,0x2b,0x31,0x3b,0x0a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6b,0x3b,0x0a,0x62,0x72, - 0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3c,0x30,0x29,0x0a,0x7b,0x0a,0x73, - 0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6a,0x3b,0x0a,0x7d,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x65, - 0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77, - 0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x20,0x6a,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x20,0x2b,0x2b,0x6a,0x29, - 0x0a,0x7b,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x5d,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x73,0x6c, - 0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6a,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x3d,0x3d, - 0x30,0x29,0x0a,0x7b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x73,0x6c,0x6f,0x74, - 0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x3d,0x69,0x73, - 0x5f,0x66,0x70,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x0a,0x7b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c, - 0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2d,0x28, - 0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b, - 0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3b,0x0a,0x7d,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75, - 0x63,0x74,0x69,0x6f,0x6e,0x73,0x3b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75, - 0x73,0x65,0x5d,0x3d,0x69,0x3b,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x73,0x6c,0x6f,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66, - 0x70,0x29,0x0a,0x7b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b, - 0x31,0x5d,0x3d,0x69,0x3b,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x73,0x6c,0x6f,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75, - 0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x73,0x72, - 0x63,0x5f,0x72,0x65,0x61,0x64,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65, - 0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x73,0x72,0x63,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f, - 0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45, - 0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79, - 0x63,0x6c,0x65,0x2c,0x73,0x72,0x63,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f, - 0x70,0x29,0x0a,0x7b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x73,0x74,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x5f,0x73, - 0x6c,0x6f,0x74,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e, - 0x64,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e, - 0x63,0x79,0x7c,0x28,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, - 0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x3d,0x74,0x7c,0x28,0x74,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e, - 0x63,0x79,0x46,0x50,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x7c,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29, - 0x0a,0x7b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73, - 0x74,0x2c,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67, - 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x46,0x50,0x2c,0x64,0x73,0x74,0x29, + 0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65, + 0x6e,0x63,0x79,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f, + 0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b, + 0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25, + 0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f, + 0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64, + 0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x75,0x70, + 0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e, + 0x63,0x79,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72, + 0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x20,0x25,0x3d,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74, + 0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63, + 0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x20,0x25,0x20, + 0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46, + 0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74, + 0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f, + 0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65, + 0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74, + 0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e, + 0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72, + 0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x53, + 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69, + 0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64, + 0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43, + 0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x3b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x66,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73, + 0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x69,0x73,0x5f,0x73,0x72,0x63, + 0x5f,0x72,0x65,0x61,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x6c,0x61,0x74, + 0x65,0x6e,0x63,0x79,0x3d,0x64,0x73,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, + 0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a, + 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x3b,0x0a, + 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x29,0x0a, + 0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x73,0x72,0x63,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e, + 0x64,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x5f,0x72,0x65,0x61,0x64, + 0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x28,0x6c,0x61, + 0x73,0x74,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41, + 0x53,0x48,0x29,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79, + 0x5f,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a, + 0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, + 0x54,0x4f,0x52,0x45,0x3b,0x0a,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x66,0x61,0x6c,0x73, + 0x65,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61, + 0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72, + 0x6b,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x75,0x70,0x64,0x61,0x74,0x65,0x5f, + 0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x69,0x29,0x7c,0x3d,0x30,0x78,0x34,0x30, + 0x3c,0x3c,0x38,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x6d,0x61,0x72,0x6b,0x3d,0x66, + 0x61,0x6c,0x73,0x65,0x3b,0x0a,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f, + 0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74, + 0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45, + 0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d, + 0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f, + 0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d, + 0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x69, + 0x73,0x5f,0x66,0x70,0x3f,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x46,0x50,0x3a,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48, + 0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x73,0x77,0x61,0x70,0x29,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f, + 0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65, + 0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x73,0x72,0x63,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c, + 0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2c,0x66,0x69,0x72, + 0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29,0x0a,0x7b,0x0a,0x73,0x6c, + 0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x2d,0x31,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x3d,0x66,0x69,0x72, + 0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x20,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3c,0x30,0x3b,0x20, + 0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x5d,0x3d,0x3d,0x30,0x29, + 0x26,0x26,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x2b,0x31,0x5d,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28,0x28,0x6a,0x2b, + 0x31,0x29,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x29,0x0a,0x7b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x62, + 0x6c,0x6f,0x63,0x6b,0x65,0x64,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x3d,0x28,0x6a,0x2f, + 0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41, + 0x53,0x48,0x3b,0x20,0x6b,0x3c,0x6a,0x3b,0x20,0x2b,0x2b,0x6b,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61, + 0x6e,0x5b,0x6b,0x5d,0x7c,0x7c,0x28,0x6b,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74, + 0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f, + 0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x5d,0x2e,0x78,0x3b,0x0a,0x69,0x66,0x28,0x28,0x28, + 0x69,0x6e,0x73,0x74,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28,0x28,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x30,0x78, + 0x35,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x29,0x7c,0x7c,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x29,0x0a, + 0x7b,0x0a,0x62,0x6c,0x6f,0x63,0x6b,0x65,0x64,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a, + 0x69,0x66,0x28,0x21,0x62,0x6c,0x6f,0x63,0x6b,0x65,0x64,0x29,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x3d,0x28,0x6a, + 0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48, + 0x41,0x53,0x48,0x3b,0x20,0x6b,0x3c,0x6a,0x3b,0x20,0x2b,0x2b,0x6b,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c, + 0x61,0x6e,0x5b,0x6b,0x5d,0x7c,0x7c,0x28,0x6b,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f, + 0x74,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72, + 0x6f,0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x5d,0x2e,0x78,0x3b,0x0a,0x69,0x66,0x28,0x28, + 0x69,0x6e,0x73,0x74,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f, + 0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x5d,0x3d,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x5d,0x3b,0x0a,0x65,0x78,0x65,0x63,0x75, + 0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x2b,0x31,0x5d,0x3d,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6b,0x2b, + 0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x6b, + 0x29,0x20,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6a,0x3b,0x0a,0x69,0x66,0x28,0x66, + 0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x6b,0x2b,0x31,0x29,0x20,0x66,0x69,0x72,0x73, + 0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6a,0x2b,0x31,0x3b,0x0a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f, + 0x75,0x73,0x65,0x3d,0x6b,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75, + 0x73,0x65,0x3c,0x30,0x29,0x0a,0x7b,0x0a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6a,0x3b,0x0a,0x7d,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a, + 0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6a,0x3d,0x66,0x69, + 0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x20,0x6a,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73, + 0x6c,0x6f,0x74,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6a,0x5d, + 0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3d,0x6a,0x3b,0x0a,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x7d,0x0a,0x7d, + 0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f, + 0x73,0x6c,0x6f,0x74,0x3d,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74, + 0x69,0x6f,0x6e,0x5f,0x66,0x70,0x3d,0x69,0x73,0x5f,0x66,0x70,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x0a,0x7b, + 0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x73,0x6c,0x6f,0x74, + 0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2d,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50, + 0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3b,0x0a,0x7d,0x0a,0x2b,0x2b,0x6e, + 0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x73,0x3b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b, + 0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x5d,0x3d,0x69,0x3b,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x73,0x6c,0x6f,0x74,0x73,0x5f,0x75,0x73,0x65,0x64, + 0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29,0x0a,0x7b,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x73,0x6c,0x6f, + 0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b,0x31,0x5d,0x3d,0x69,0x3b,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x73,0x6c,0x6f,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x3b, + 0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28, + 0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x31,0x3b, + 0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x73,0x72,0x63,0x5f,0x72,0x65,0x61,0x64,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65, + 0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x73,0x72,0x63,0x29, 0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57, 0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73, - 0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x46,0x50,0x2c,0x64,0x73,0x74,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73, - 0x65,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x21,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65,0x26,0x26,0x21,0x69,0x73,0x5f,0x6e,0x6f,0x70, - 0x29,0x0a,0x7b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x64,0x73,0x74, - 0x2c,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x73,0x77,0x61,0x70,0x29,0x0a,0x73,0x65,0x74,0x5f, - 0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72,0x63,0x2c,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61, - 0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72, - 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61, - 0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f, - 0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c, - 0x65,0x2c,0x64,0x73,0x74,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x29,0x0a,0x7b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x7c,0x28,0x6e, - 0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79, - 0x3d,0x74,0x7c,0x28,0x74,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x7c,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3c,0x3c,0x33,0x32, - 0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79, - 0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74,0x5f, - 0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79, - 0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b, - 0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f, - 0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29, - 0x3e,0x3d,0x53,0x74,0x6f,0x72,0x65,0x4c,0x33,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x29,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69, - 0x67,0x68,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50, - 0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61, - 0x6e,0x5b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5d,0x7c,0x7c,0x28,0x66,0x69,0x72,0x73,0x74,0x5f, - 0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f, - 0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c, - 0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72, - 0x61,0x6d,0x5b,0x69,0x5d,0x2e,0x78,0x7c,0x3d,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x7d, - 0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29,0x0a,0x2b,0x2b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f, - 0x74,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x2b,0x2b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a, - 0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3c,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f, - 0x48,0x41,0x53,0x48,0x29,0x26,0x26,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5d,0x21,0x3d,0x30,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63, - 0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x69,0x73,0x5f,0x66,0x70,0x3f,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b,0x32, - 0x29,0x3a,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b,0x31,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78, - 0x28,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x69,0x73,0x5f,0x66,0x70,0x3f,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75, - 0x73,0x65,0x2b,0x31,0x29,0x3a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x29,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x65,0x78,0x65,0x63,0x75, - 0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5d,0x7c,0x7c,0x28,0x6c,0x61,0x73,0x74, - 0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c, - 0x6f,0x74,0x29,0x7c,0x7c,0x28,0x28,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73, - 0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x29,0x26,0x26,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74, - 0x69,0x6f,0x6e,0x5f,0x66,0x70,0x29,0x29,0x0a,0x7b,0x0a,0x2b,0x2b,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x7d,0x0a,0x2d, - 0x2d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x26,0x26,0x28,0x6c,0x61,0x73,0x74, - 0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3e,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63, - 0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x29,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f, - 0x75,0x6e,0x64,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x6d,0x61,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x38,0x5d,0x29,0x26,0x43,0x61,0x63,0x68,0x65, - 0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x78,0x3d,0x28,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x30,0x5d,0x29,0x26,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67, - 0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73, - 0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x32,0x5d,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x65,0x73, - 0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3d,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29, - 0x7c,0x28,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x32,0x29,0x3f,0x33,0x55,0x3a,0x32,0x55,0x29,0x3c,0x3c, - 0x38,0x29,0x7c,0x28,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x34,0x29,0x3f,0x35,0x55,0x3a,0x34,0x55,0x29, - 0x3c,0x3c,0x31,0x36,0x29,0x7c,0x28,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x38,0x29,0x3f,0x37,0x55,0x3a, - 0x36,0x55,0x29,0x3c,0x3c,0x32,0x34,0x29,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x33,0x5d,0x26, - 0x44,0x61,0x74,0x61,0x73,0x65,0x74,0x45,0x78,0x74,0x72,0x61,0x49,0x74,0x65,0x6d,0x73,0x29,0x2a,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65, - 0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x65,0x4d,0x61,0x73,0x6b,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32, - 0x2a,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x31,0x34,0x29,0x3b,0x0a,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x78,0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74, - 0x4d,0x61,0x73,0x6b,0x28,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x78,0x29,0x3b,0x0a,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x79,0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d, - 0x61,0x73,0x6b,0x28,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x79,0x29,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, - 0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x6d,0x61,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x6d,0x78,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x32,0x5d,0x3d,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67, - 0x69,0x73,0x74,0x65,0x72,0x73,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b, - 0x31,0x36,0x29,0x29,0x5b,0x33,0x5d,0x3d,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29,0x28,0x52,0x2b,0x31,0x38,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x65,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a, - 0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64, - 0x65,0x78,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3d, - 0x2d,0x31,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f, - 0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x28, - 0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2b,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x29,0x2f,0x73,0x69,0x7a, - 0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74, - 0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6b,0x3d,0x2d,0x31,0x3b,0x0a,0x66,0x6f,0x72, - 0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74, - 0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x21,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x5d,0x7c, - 0x7c,0x28,0x69,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x7c,0x7c,0x28,0x28, - 0x69,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x29,0x26,0x26,0x66,0x69, - 0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x29,0x29,0x29,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3d,0x30,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x28,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77, - 0x6f,0x72,0x6b,0x65,0x72,0x73,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x26,0x26,0x28,0x28,0x69,0x2b,0x6e,0x75,0x6d, - 0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x29,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x26,0x26,0x28, - 0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5d,0x7c,0x7c,0x28, - 0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e, - 0x5f,0x73,0x6c,0x6f,0x74,0x29,0x7c,0x7c,0x28,0x28,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69, - 0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x29,0x26,0x26,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75, - 0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x29,0x29,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x26,0x31,0x29, - 0x26,0x26,0x28,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69, - 0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5d,0x5d,0x2e,0x78,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x29,0x29, - 0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a, - 0x7d,0x0a,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x28,0x28,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x2d,0x31,0x29,0x3c,0x3c, - 0x4e,0x55,0x4d,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3c, - 0x3c,0x4e,0x55,0x4d,0x5f,0x46,0x50,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, - 0x74,0x32,0x20,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f, - 0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x5d,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3b, - 0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x66,0x66,0x3b,0x0a,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26, - 0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x6f,0x64,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32, - 0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x66,0x70,0x3d,0x28,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x26,0x26,0x28,0x28,0x69,0x26,0x31,0x29, - 0x3d,0x3d,0x30,0x29,0x29,0x0a,0x2b,0x2b,0x69,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f, - 0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x28,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30, - 0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x26,0x26,0x28,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74, - 0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3c,0x30,0x29,0x29,0x0a,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f, - 0x74,0x3d,0x6b,0x3b,0x0a,0x2b,0x2b,0x6b,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x32,0x29,0x20,0x25,0x20,0x34,0x3b,0x0a, - 0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53, - 0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x68,0x69,0x66,0x74,0x3c,0x3c,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29, - 0x3b,0x0a,0x69,0x66,0x28,0x64,0x73,0x74,0x21,0x3d,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4e,0x65,0x65,0x64,0x73,0x44,0x69,0x73,0x70,0x6c,0x61,0x63,0x65,0x6d, - 0x65,0x6e,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, - 0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49, - 0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45, - 0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e, - 0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e, - 0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f, - 0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c, - 0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31, - 0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29, - 0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b, - 0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69, - 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43, - 0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a, - 0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c, - 0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d, - 0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b, - 0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f, - 0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4f,0x50, - 0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46, - 0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69, - 0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53, - 0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d, - 0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b, - 0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b, - 0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b, - 0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64, - 0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, - 0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46, - 0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69, - 0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66, - 0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f, - 0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46, - 0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c, - 0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29, - 0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c, - 0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73, - 0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46, - 0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44, - 0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52, - 0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78, + 0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x73,0x72,0x63,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73, + 0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x29,0x0a,0x7b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x73,0x74,0x5f,0x6d,0x65, + 0x6d,0x6f,0x72,0x79,0x5f,0x6f,0x70,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28, + 0x69,0x73,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x6e, + 0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x7c,0x28,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x3d,0x74,0x7c,0x28,0x74,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69, + 0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x7c, + 0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x46,0x50,0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20, + 0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29,0x0a,0x7b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74, + 0x65,0x6e,0x63,0x79,0x46,0x50,0x2c,0x64,0x73,0x74,0x2c,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63, + 0x6c,0x65,0x46,0x50,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74, + 0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62, + 0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x46,0x50,0x2c,0x64,0x73,0x74,0x2c,0x76,0x61,0x6c,0x75, + 0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x21,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65, + 0x26,0x26,0x21,0x69,0x73,0x5f,0x6e,0x6f,0x70,0x29,0x0a,0x7b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x74,0x65,0x6e,0x63,0x79,0x2c,0x64,0x73,0x74,0x2c,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x73, + 0x77,0x61,0x70,0x29,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x2c,0x73,0x72, + 0x63,0x2c,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67, + 0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a, + 0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x76,0x61,0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52, + 0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62, + 0x72,0x61,0x6e,0x63,0x68,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x3d,0x6e,0x65,0x78,0x74,0x5f,0x6c, + 0x61,0x74,0x65,0x6e,0x63,0x79,0x7c,0x28,0x6e,0x65,0x78,0x74,0x5f,0x6c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x74,0x7c,0x28,0x74,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74, + 0x65,0x6e,0x63,0x79,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x7c,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x74,0x65,0x6e,0x63,0x79,0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x6d,0x65,0x6d,0x6f,0x72,0x79,0x5f,0x73,0x74,0x6f,0x72,0x65, + 0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x3d,0x67,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73,0x74,0x29,0x3b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x76,0x61, + 0x6c,0x75,0x65,0x2c,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48, + 0x29,0x3b,0x0a,0x73,0x65,0x74,0x5f,0x62,0x79,0x74,0x65,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x52,0x65,0x61,0x64,0x43,0x79,0x63,0x6c,0x65,0x2c,0x64,0x73, + 0x74,0x2c,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x73,0x6c,0x6f, + 0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x31,0x3b,0x0a,0x69,0x66, + 0x28,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x3e,0x3d,0x53,0x74,0x6f,0x72,0x65,0x4c,0x33,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x29,0x0a,0x53,0x63,0x72, + 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x4c,0x61,0x74,0x65,0x6e,0x63,0x79,0x3d,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2f, + 0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x65,0x78,0x65,0x63, + 0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5d, + 0x7c,0x7c,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69, + 0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61, + 0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a, + 0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x5d,0x2e,0x78,0x7c,0x3d,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x3b,0x0a,0x66,0x69,0x72,0x73,0x74, + 0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74, + 0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66,0x70,0x29,0x0a,0x2b,0x2b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69, + 0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x2b,0x2b,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x28,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x57,0x4f,0x52, + 0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x26,0x26,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b, + 0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x5d,0x21,0x3d,0x30,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66, + 0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28, + 0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x69,0x73,0x5f,0x66,0x70,0x3f,0x28,0x73,0x6c,0x6f,0x74, + 0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b,0x32,0x29,0x3a,0x28,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b,0x31,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x75, + 0x70,0x64,0x61,0x74,0x65,0x5f,0x6d,0x61,0x78,0x28,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2c,0x69,0x73,0x5f,0x66,0x70,0x3f,0x28, + 0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x2b,0x31,0x29,0x3a,0x73,0x6c,0x6f,0x74,0x5f,0x74,0x6f,0x5f,0x75,0x73,0x65,0x29,0x3b,0x0a,0x77,0x68,0x69, + 0x6c,0x65,0x20,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f, + 0x74,0x5d,0x7c,0x7c,0x28,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72, + 0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x7c,0x7c,0x28,0x28,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x3d, + 0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x29,0x26,0x26,0x66,0x69,0x72,0x73,0x74, + 0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x29,0x29,0x0a,0x7b,0x0a,0x2b,0x2b,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f, + 0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x7d,0x0a,0x2d,0x2d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f, + 0x66,0x70,0x26,0x26,0x28,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3e,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77, + 0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x29,0x29,0x0a,0x66,0x69,0x72,0x73,0x74,0x5f,0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x5f, + 0x73,0x6c,0x6f,0x74,0x5f,0x63,0x66,0x72,0x6f,0x75,0x6e,0x64,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x3b,0x0a,0x7d, + 0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x61,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b, + 0x38,0x5d,0x29,0x26,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x6d,0x78,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x30,0x5d,0x29,0x26,0x43,0x61,0x63,0x68, + 0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x61,0x64,0x64,0x72,0x65,0x73,0x73, + 0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x32,0x5d, + 0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3d,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x7c,0x28,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x32,0x29, + 0x3f,0x33,0x55,0x3a,0x32,0x55,0x29,0x3c,0x3c,0x38,0x29,0x7c,0x28,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26, + 0x34,0x29,0x3f,0x35,0x55,0x3a,0x34,0x55,0x29,0x3c,0x3c,0x31,0x36,0x29,0x7c,0x28,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x73,0x26,0x38,0x29,0x3f,0x37,0x55,0x3a,0x36,0x55,0x29,0x3c,0x3c,0x32,0x34,0x29,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x65,0x6e,0x74, + 0x72,0x6f,0x70,0x79,0x5b,0x31,0x33,0x5d,0x26,0x44,0x61,0x74,0x61,0x73,0x65,0x74,0x45,0x78,0x74,0x72,0x61,0x49,0x74,0x65,0x6d,0x73,0x29,0x2a,0x43,0x61,0x63,0x68, + 0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x3b,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x20,0x65,0x4d,0x61,0x73,0x6b,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x31,0x34,0x29,0x3b,0x0a,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x78, + 0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b,0x28,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x78,0x29,0x3b,0x0a,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x79,0x3d, + 0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b,0x28,0x65,0x4d,0x61,0x73,0x6b,0x2e,0x79,0x29,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x6d,0x61,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x6d,0x78,0x3b,0x0a,0x28, + 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x32,0x5d,0x3d,0x61, + 0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x33,0x5d,0x3d,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a, + 0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x32,0x2a,0x29,0x28,0x52,0x2b,0x31,0x38,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x65,0x4d, + 0x61,0x73,0x6b,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x3d, + 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53, + 0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78, + 0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3d,0x2d,0x31,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20, + 0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2b,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f, + 0x53,0x49,0x5a,0x45,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x6b,0x3d,0x2d,0x31,0x3b,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x5f, + 0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x21,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e, + 0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x5d,0x7c,0x7c,0x28,0x69,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f, + 0x73,0x6c,0x6f,0x74,0x29,0x7c,0x7c,0x28,0x28,0x69,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c, + 0x6f,0x74,0x2b,0x31,0x29,0x26,0x26,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x29,0x29,0x29,0x0a,0x63, + 0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x31,0x3b, + 0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3d,0x30,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20, + 0x28,0x28,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x5f,0x75,0x73,0x65,0x64,0x5f,0x73,0x6c,0x6f,0x74,0x29, + 0x26,0x26,0x28,0x28,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x29,0x20,0x25,0x20,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52, + 0x5f,0x48,0x41,0x53,0x48,0x29,0x26,0x26,0x28,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f, + 0x72,0x6b,0x65,0x72,0x73,0x5d,0x7c,0x7c,0x28,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e, + 0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x7c,0x7c,0x28,0x28,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73, + 0x3d,0x3d,0x66,0x69,0x72,0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x73,0x6c,0x6f,0x74,0x2b,0x31,0x29,0x26,0x26,0x66,0x69,0x72, + 0x73,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x5f,0x66,0x70,0x29,0x29,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x28,0x6e,0x75,0x6d,0x5f,0x77, + 0x6f,0x72,0x6b,0x65,0x72,0x73,0x26,0x31,0x29,0x26,0x26,0x28,0x28,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x65,0x78,0x65,0x63,0x75,0x74,0x69, + 0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x2b,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5d,0x5d,0x2e,0x78,0x26,0x28,0x30,0x78,0x32,0x30,0x3c, + 0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x29,0x29,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x2b,0x2b,0x6e,0x75,0x6d,0x5f, + 0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x7d,0x0a,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x28,0x28,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72, + 0x6b,0x65,0x72,0x73,0x2d,0x31,0x29,0x3c,0x3c,0x4e,0x55,0x4d,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x6e,0x75,0x6d,0x5f, + 0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3c,0x3c,0x4e,0x55,0x4d,0x5f,0x46,0x50,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x73,0x72,0x63,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, + 0x5b,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x70,0x6c,0x61,0x6e,0x5b,0x69,0x5d,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d, + 0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78, + 0x26,0x30,0x78,0x66,0x66,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e, + 0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73, + 0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x6f,0x64,0x3d,0x28, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32,0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x66,0x70,0x3d,0x28,0x73, + 0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x66, + 0x70,0x26,0x26,0x28,0x28,0x69,0x26,0x31,0x29,0x3d,0x3d,0x30,0x29,0x29,0x0a,0x2b,0x2b,0x69,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69, + 0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x28,0x73,0x72,0x63,0x5f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x34, + 0x30,0x3c,0x3c,0x38,0x29,0x29,0x21,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x26,0x26, + 0x28,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3c,0x30,0x29,0x29,0x0a,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74, + 0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x6b,0x3b,0x0a,0x2b,0x2b,0x6b,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e, + 0x4f,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f, + 0x52,0x53,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e, + 0x3e,0x32,0x29,0x20,0x25,0x20,0x34,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, + 0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x68,0x69,0x66,0x74,0x3c,0x3c,0x53,0x48,0x49,0x46, + 0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x64,0x73,0x74,0x21,0x3d,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4e,0x65,0x65,0x64,0x73, + 0x44,0x69,0x73,0x70,0x6c,0x61,0x63,0x65,0x6d,0x65,0x6e,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f, + 0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78, 0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e, 0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67, 0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69, - 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c, - 0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f, - 0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72, - 0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e, - 0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46, - 0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45, - 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d, - 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f, - 0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73, - 0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29, - 0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f, - 0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f, - 0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c, - 0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d, - 0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28, + 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44, + 0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44, + 0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73, + 0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74, + 0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f, + 0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44, + 0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d, + 0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58, + 0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e, + 0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31, + 0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c, + 0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e, + 0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78, + 0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28, 0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x29,0x7c,0x28,0x36,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65, - 0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b, - 0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61, - 0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32, - 0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63, - 0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x36, - 0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e, - 0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d, - 0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61, - 0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c, - 0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29, - 0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d, - 0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69, - 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a, - 0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c, - 0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x34,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b, - 0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75, - 0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28, - 0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f, - 0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f, - 0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x34,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e, - 0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28, - 0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62, - 0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46, - 0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f, - 0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b, - 0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65, - 0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b, - 0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x3d, - 0x69,0x6d,0x75,0x6c,0x5f,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3b,0x0a,0x69,0x66,0x28,0x72,0x3d,0x3d,0x31,0x29, - 0x0a,0x7b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f, - 0x50,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x73,0x74,0x2e, - 0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46, - 0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52, - 0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2d,0x31,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d, - 0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x72,0x29,0x5b,0x30, - 0x5d,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d,0x3d,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x72,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x3d,0x32,0x3b,0x0a, - 0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e, - 0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x35,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53, - 0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e, - 0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, - 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64, - 0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d, - 0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53, - 0x45,0x54,0x29,0x7c,0x28,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d, - 0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f, - 0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b, - 0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69, - 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28, - 0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77, - 0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34, - 0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29, - 0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x29,0x7c,0x28,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69, - 0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64, - 0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f, - 0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28, - 0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d, - 0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69, - 0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72, - 0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e, - 0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f, - 0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52, - 0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x29,0x7c,0x28,0x37,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64, - 0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46, - 0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a, - 0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d, - 0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3e,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69, - 0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b, - 0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c, - 0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d, - 0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46, - 0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x38,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44, - 0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29, - 0x3d,0x28,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x3f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3a,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x29,0x7c,0x6e,0x75, - 0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53, - 0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e, - 0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, - 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f, - 0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x73,0x72,0x63,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74, - 0x29,0x3c,0x3c,0x28,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x2b,0x31,0x29,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f, - 0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e, - 0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a, - 0x32,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46, - 0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f, + 0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49, + 0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69, + 0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28, + 0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f, + 0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69, + 0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64, + 0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a, + 0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f, + 0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53, + 0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4f, + 0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f, 0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f, 0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f, 0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e, @@ -2653,57 +2398,149 @@ static const char randomx_cl[134345] = { 0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b, 0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75, 0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73, - 0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x29,0x7c,0x28,0x28,0x73,0x72,0x63,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x28,0x53, - 0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x2b,0x31,0x29,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, - 0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f, - 0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72, - 0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c, - 0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28, - 0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74, + 0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c, + 0x28,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29, + 0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45, + 0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28, + 0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62, + 0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70, + 0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65, + 0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63, + 0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a, + 0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72, + 0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28, + 0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69, + 0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49, + 0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63, + 0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f, + 0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e, + 0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b, + 0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a, + 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x3b,0x0a,0x69, + 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b, + 0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c, + 0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x36,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a, + 0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d, + 0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64, + 0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46, 0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f, - 0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e, - 0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d, - 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e, - 0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c, - 0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32, - 0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73, - 0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, + 0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x36,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e, + 0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b, + 0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55, + 0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74, + 0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c, + 0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70, + 0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f, + 0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, + 0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, + 0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53, + 0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x34,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45, + 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a, + 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69, + 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a, + 0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d, + 0x64,0x73,0x74,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28, + 0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, + 0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x34,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46, + 0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46, + 0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55, + 0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79, + 0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f, + 0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c, + 0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a, + 0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d, + 0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x72,0x3d,0x69,0x6d,0x75,0x6c,0x5f,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3b, + 0x0a,0x69,0x66,0x28,0x72,0x3d,0x3d,0x31,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b, + 0x29,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, + 0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72, + 0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, + 0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45, + 0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28, + 0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2d,0x31,0x29,0x0a,0x7b,0x0a,0x69, + 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x2a,0x29,0x26,0x72,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d, + 0x3d,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x72,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x69, + 0x6e,0x64,0x65,0x78,0x2b,0x3d,0x32,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29, + 0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d, + 0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a, + 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x29,0x0a,0x7b, + 0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x35,0x3c,0x3c,0x4f,0x50, + 0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, 0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, - 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x29, - 0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46, - 0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36, - 0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66, - 0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c, - 0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29, - 0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3d,0x69,0x6d,0x6d, - 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f, + 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x3b, + 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a, + 0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c, + 0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b, + 0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64, + 0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32, + 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58, + 0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73, + 0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73, + 0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x33,0x3a, + 0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53, + 0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c, + 0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69, + 0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d, + 0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46, + 0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28, + 0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31, + 0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69, + 0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72, + 0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b, + 0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c, + 0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x37,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a, + 0x69,0x66,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f, 0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f, - 0x43,0x4f,0x55,0x4e,0x54,0x2d,0x31,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x30,0x3b, - 0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d,0x3d,0x30,0x78,0x38,0x30,0x46,0x30,0x30,0x30,0x30,0x30, - 0x55,0x4c,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x3d,0x32,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64, - 0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a, - 0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73, - 0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c, - 0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x73,0x72,0x63,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e, - 0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x28,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x2b,0x31,0x29,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x48,0x49,0x46,0x54, - 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28, - 0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77, - 0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d, - 0x28,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73, + 0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x69,0x6e,0x73,0x74, + 0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3e,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52, + 0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43, + 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b, + 0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a, + 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74, + 0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c, + 0x28,0x38,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70, + 0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x28,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x3f,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3a,0x49,0x4e,0x53, + 0x54,0x5f,0x4e,0x4f,0x50,0x29,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a, + 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66, + 0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x31,0x3c,0x3c,0x4f,0x50, + 0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, + 0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, + 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29, + 0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46, + 0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x73,0x72,0x63,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x28,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x2b,0x31,0x29,0x29,0x7c,0x28,0x31,0x32,0x3c, + 0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67, + 0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69, + 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44, + 0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f, + 0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x6d,0x6f, + 0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73, 0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c, - 0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x35,0x3c, + 0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x32,0x3c, 0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64, 0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d, 0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b, @@ -2712,864 +2549,792 @@ static const char randomx_cl[134345] = { 0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d, 0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d, 0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69, - 0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29, - 0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c, - 0x28,0x31,0x34,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f, + 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28, + 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e, + 0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c, + 0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x73,0x72,0x63,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e, + 0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x28,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x2b,0x31,0x29,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f, + 0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53, + 0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e, + 0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64, + 0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x3b,0x0a, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29, + 0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c, + 0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53, + 0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e, + 0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28, + 0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62, + 0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46, + 0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f, + 0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b, + 0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65, + 0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b, + 0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x53,0x52, + 0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46, + 0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3e,0x3d,0x30,0x29,0x0a, + 0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73,0x63,0x61,0x6c,0x5f,0x72,0x3c,0x3c,0x49,0x4d, + 0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5f,0x66,0x73, + 0x63,0x61,0x6c,0x5f,0x72,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e, + 0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49, + 0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2d,0x31,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f, + 0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x30,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d,0x3d,0x30, + 0x78,0x38,0x30,0x46,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x3d,0x32,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x2a, + 0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f, + 0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x28,0x64,0x73, + 0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f, + 0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x73,0x72,0x63,0x20,0x25,0x20,0x52,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x28,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x2b,0x31,0x29,0x29,0x7c, + 0x28,0x31,0x3c,0x3c,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x32,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46, + 0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73, + 0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32, + 0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46, + 0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45, + 0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46, + 0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x35,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78, + 0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f, + 0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69, + 0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29, + 0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69, + 0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73, + 0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72, + 0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e, + 0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44, + 0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51, + 0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x28,0x28,0x64,0x73,0x74,0x20,0x25,0x20,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72, + 0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x2b,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x43,0x6f,0x75,0x6e,0x74,0x46,0x6c,0x74,0x29,0x3c,0x3c,0x44,0x53,0x54, + 0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x34,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28, + 0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77, + 0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c, + 0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x39,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b, + 0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29, + 0x2b,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x3d,0x69, + 0x6e,0x73,0x74,0x2e,0x79,0x7c,0x28,0x31,0x55,0x3c,0x3c,0x63,0x73,0x68,0x69,0x66,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x63,0x73,0x68,0x69,0x66,0x74,0x3e,0x30,0x29, + 0x0a,0x69,0x6d,0x6d,0x20,0x26,0x3d,0x20,0x7e,0x28,0x31,0x55,0x3c,0x3c,0x28,0x63,0x73,0x68,0x69,0x66,0x74,0x2d,0x31,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d, + 0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2d,0x31,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d, + 0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x69,0x6d,0x6d,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d,0x3d,0x63,0x73,0x68,0x69,0x66,0x74,0x7c,0x28,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x62,0x72,0x61, + 0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x3c,0x3c,0x35,0x29,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b, + 0x3d,0x32,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x7d,0x0a, + 0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65, + 0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b, + 0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46, + 0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x33,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x69,0x6e,0x73,0x74, + 0x2e,0x79,0x26,0x36,0x33,0x29,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f, 0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63, 0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53, - 0x45,0x54,0x29,0x7c,0x28,0x39,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d, - 0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x2b,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f, - 0x6e,0x4f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x7c,0x28,0x31,0x55, - 0x3c,0x3c,0x63,0x73,0x68,0x69,0x66,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x63,0x73,0x68,0x69,0x66,0x74,0x3e,0x30,0x29,0x0a,0x69,0x6d,0x6d,0x20,0x26,0x3d,0x20,0x7e, - 0x28,0x31,0x55,0x3c,0x3c,0x28,0x63,0x73,0x68,0x69,0x66,0x74,0x2d,0x31,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49, - 0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2d,0x31,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f, - 0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x69,0x6d,0x6d,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x5d, - 0x3d,0x63,0x73,0x68,0x69,0x66,0x74,0x7c,0x28,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65, - 0x74,0x5f,0x73,0x6c,0x6f,0x74,0x29,0x3c,0x3c,0x35,0x29,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x3d,0x32,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73, - 0x65,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x7d,0x0a,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61, - 0x72,0x67,0x65,0x74,0x5f,0x73,0x6c,0x6f,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, - 0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, - 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48, - 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44, - 0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x33, - 0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x36,0x33,0x29,0x3c,0x3c,0x49, - 0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b, - 0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a, - 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x29,0x0a,0x7b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x28,0x6d,0x6f,0x64,0x3e,0x3e, - 0x34,0x29,0x3e,0x3d,0x53,0x74,0x6f,0x72,0x65,0x4c,0x33,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x29,0x3f,0x33,0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20, - 0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, - 0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c,0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53, - 0x45,0x54,0x29,0x7c,0x28,0x31,0x30,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c, - 0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69, - 0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d, - 0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43,0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c, - 0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f, - 0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c,0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65, - 0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f, - 0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74, - 0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54, - 0x4f,0x52,0x45,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e, - 0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x7d,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x32,0x30,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x63,0x6f,0x6d,0x70, - 0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a, - 0x29,0x28,0x52,0x2b,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2b,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45, - 0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6c, - 0x6f,0x61,0x64,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x2a,0x64,0x73,0x74, - 0x5f,0x62,0x75,0x66,0x2c,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x4e,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69, - 0x64,0x2a,0x20,0x73,0x72,0x63,0x5f,0x62,0x75,0x66,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63, - 0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28,0x30,0x29, - 0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x73,0x72,0x63,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x73,0x72,0x63,0x5f,0x62,0x75,0x66,0x29,0x2b,0x67,0x65,0x74,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30, - 0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x2a,0x4e,0x2b,0x69,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x64,0x73,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29, - 0x64,0x73,0x74,0x5f,0x62,0x75,0x66,0x29,0x2b,0x69,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x69,0x3c,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74, - 0x36,0x34,0x5f,0x74,0x29,0x2a,0x4e,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28, - 0x64,0x73,0x74,0x29,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x29,0x3b, - 0x0a,0x73,0x72,0x63,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x64,0x73,0x74,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a, - 0x7d,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x6c,0x6f,0x61,0x64,0x5f,0x46,0x5f,0x45,0x5f,0x67,0x72,0x6f,0x75,0x70,0x73,0x28,0x69,0x6e,0x74,0x20,0x76, - 0x61,0x6c,0x75,0x65,0x2c,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x2c,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6f, - 0x72,0x4d,0x61,0x73,0x6b,0x29,0x0a,0x7b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x3d,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65, - 0x5f,0x72,0x74,0x6e,0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x78,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67, - 0x28,0x74,0x29,0x3b,0x0a,0x78,0x20,0x26,0x3d,0x20,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x78,0x7c,0x3d,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x72,0x65, - 0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x66,0x6d,0x61,0x5f, - 0x73,0x6f,0x66,0x74,0x28,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x61,0x2c,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x62,0x2c,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x63,0x2c, - 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x72,0x6f,0x75, - 0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x3d,0x3d,0x30,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x66,0x6d,0x61,0x28,0x61,0x2c,0x62,0x2c,0x63,0x29, - 0x3b,0x0a,0x69,0x66,0x28,0x28,0x61,0x3d,0x3d,0x30,0x2e,0x30,0x29,0x7c,0x7c,0x28,0x62,0x3d,0x3d,0x30,0x2e,0x30,0x29,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, - 0x63,0x3b,0x0a,0x69,0x66,0x28,0x62,0x3d,0x3d,0x31,0x2e,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x63,0x3d,0x3d,0x30,0x2e,0x30,0x29,0x0a,0x72,0x65,0x74,0x75,0x72, - 0x6e,0x20,0x61,0x3b,0x0a,0x69,0x66,0x28,0x63,0x3d,0x3d,0x2d,0x61,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20, - 0x6d,0x69,0x6e,0x75,0x73,0x5f,0x7a,0x65,0x72,0x6f,0x3d,0x31,0x55,0x4c,0x3c,0x3c,0x36,0x33,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x72,0x6f,0x75,0x6e, - 0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x29,0x3f,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x6d,0x69,0x6e,0x75,0x73,0x5f,0x7a,0x65, - 0x72,0x6f,0x29,0x3a,0x30,0x2e,0x30,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74, - 0x69,0x73,0x73,0x61,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x35,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e, - 0x74,0x69,0x73,0x73,0x61,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x31,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x29,0x2d,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x31,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x31,0x3c,0x3c,0x65,0x78,0x70,0x6f,0x6e,0x65, - 0x6e,0x74,0x5f,0x73,0x69,0x7a,0x65,0x29,0x2d,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x61,0x32,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x29, - 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x62,0x32,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x62,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x63,0x32, - 0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70, - 0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x61,0x3d,0x28,0x61,0x32,0x2e,0x79,0x3e,0x3e,0x32,0x30,0x29,0x26,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b, - 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x62,0x3d,0x28,0x62,0x32,0x2e, - 0x79,0x3e,0x3e,0x32,0x30,0x29,0x26,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x3d,0x28,0x63,0x32,0x2e,0x79,0x3e,0x3e,0x32,0x30,0x29,0x26,0x65,0x78,0x70,0x6f,0x6e, - 0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x69,0x66,0x28,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x61,0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x7c, - 0x7c,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x62,0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x7c,0x7c,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63, - 0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x3d,0x32,0x30, - 0x34,0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x69,0x6e,0x66,0x29,0x3b, - 0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f,0x61,0x3d,0x61,0x32,0x2e,0x79,0x3e,0x3e,0x33, - 0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f,0x62,0x3d,0x62,0x32,0x2e,0x79,0x3e,0x3e,0x33, - 0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f,0x63,0x3d,0x63,0x32,0x2e,0x79,0x3e,0x3e,0x33, - 0x31,0x3b,0x0a,0x61,0x32,0x2e,0x79,0x3d,0x28,0x61,0x32,0x2e,0x79,0x26,0x28,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x2d,0x31,0x29,0x29,0x7c,0x28,0x31,0x55,0x3c, - 0x3c,0x32,0x30,0x29,0x3b,0x0a,0x62,0x32,0x2e,0x79,0x3d,0x28,0x62,0x32,0x2e,0x79,0x26,0x28,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x2d,0x31,0x29,0x29,0x7c,0x28, - 0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x3b,0x0a,0x63,0x32,0x2e,0x79,0x3d,0x28,0x63,0x32,0x2e,0x79,0x26,0x28,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x2d,0x31,0x29, - 0x29,0x7c,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x61,0x3d, - 0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f, - 0x62,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x62,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73, - 0x61,0x5f,0x63,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x63,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x75,0x6c,0x5f,0x72, - 0x65,0x73,0x75,0x6c,0x74,0x5b,0x32,0x5d,0x3b,0x0a,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61, - 0x5f,0x61,0x2a,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x62,0x3b,0x0a,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x75,0x6c, - 0x5f,0x68,0x69,0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x61,0x2c,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x62,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3d,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31, - 0x5d,0x3e,0x3e,0x34,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73, - 0x75,0x6c,0x74,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x61,0x2b,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x62,0x2b,0x65,0x78,0x70,0x5f,0x63,0x6f, - 0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x2d,0x31,0x30,0x32,0x33,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f,0x6d,0x75,0x6c, - 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x61,0x5e,0x73,0x69,0x67,0x6e,0x5f,0x62,0x3b,0x0a,0x69,0x66,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65, - 0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3e,0x3d,0x32,0x30,0x34,0x37,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, - 0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x5f,0x72,0x6e,0x64,0x3d,0x28,0x32,0x30,0x34,0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x29,0x2d,0x28,0x72,0x6f,0x75,0x6e, - 0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x26,0x31,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x69, - 0x6e,0x66,0x5f,0x72,0x6e,0x64,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x32, - 0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x5b,0x32,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e, - 0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x69,0x66,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f, - 0x72,0x65,0x73,0x75,0x6c,0x74,0x3e,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73, - 0x68,0x69,0x66,0x74,0x3d,0x32,0x33,0x2d,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75, - 0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x3b,0x0a,0x66,0x6d,0x61,0x5f, - 0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x29, - 0x7c,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x29,0x29,0x3b,0x0a,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x28,0x31,0x32,0x37,0x2d,0x35,0x32,0x29,0x2b,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28, - 0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x2d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3b, - 0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3e,0x3d,0x36,0x34,0x29,0x0a, - 0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3c,0x3c,0x28,0x73,0x68,0x69,0x66, - 0x74,0x32,0x2d,0x36,0x34,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63, - 0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x73,0x68,0x69,0x66,0x74,0x32,0x3f,0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f, - 0x63,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3a,0x30,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x74,0x5b, - 0x30,0x5d,0x3d,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3c,0x2d,0x35,0x32,0x29,0x3f,0x30,0x3a,0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3e,0x3e,0x28, - 0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x28,0x74,0x5b,0x30,0x5d,0x3d,0x3d,0x30,0x29,0x26, - 0x26,0x28,0x63,0x21,0x3d,0x30,0x2e,0x30,0x29,0x29,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x31,0x3b,0x0a,0x7d,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d, - 0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a, - 0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3c,0x3c, - 0x31,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x28,0x31,0x32,0x37,0x2d,0x31,0x30,0x34,0x2d,0x65,0x78,0x70,0x5f, - 0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x29,0x2b,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d, - 0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x32, - 0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b, - 0x30,0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x28,0x6d,0x75,0x6c,0x5f,0x72, - 0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x7c,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3f,0x28,0x6d,0x75,0x6c,0x5f,0x72, - 0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3a,0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73, - 0x65,0x0a,0x7b,0x0a,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3e,0x3d,0x36, - 0x34,0x29,0x0a,0x7b,0x0a,0x73,0x68,0x69,0x66,0x74,0x32,0x2d,0x3d,0x36,0x34,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x28, - 0x73,0x68,0x69,0x66,0x74,0x32,0x3c,0x36,0x34,0x29,0x3f,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74, - 0x32,0x29,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65, - 0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x3d,0x30,0x29,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x31,0x3b,0x0a,0x7d,0x0a,0x65, - 0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b, - 0x30,0x5d,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x7c,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x3c,0x28,0x36,0x34,0x2d, - 0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75, - 0x6c,0x74,0x5b,0x31,0x5d,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f, - 0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69, - 0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x69,0x66,0x28,0x73,0x69,0x67,0x6e,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c, - 0x74,0x3d,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x63,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x2b,0x3d,0x74,0x5b,0x30,0x5d, - 0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x2b,0x3d,0x74,0x5b,0x31,0x5d,0x2b,0x28,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75, - 0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x74,0x5b,0x30,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x29,0x3b,0x0a,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e, - 0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x74,0x5b,0x31,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x73,0x69,0x67,0x6e,0x5f, - 0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x65,0x6c, - 0x73,0x65,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x6f,0x72,0x72,0x6f,0x77,0x3d,0x28,0x66,0x6d,0x61,0x5f, - 0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x74,0x5b,0x30,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b, - 0x30,0x5d,0x2d,0x3d,0x74,0x5b,0x30,0x5d,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x2b,0x3d,0x62,0x6f,0x72,0x72,0x6f,0x77,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x5f,0x73,0x69,0x67,0x6e,0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31, - 0x5d,0x3c,0x74,0x5b,0x31,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x2d,0x3d,0x74,0x5b,0x31,0x5d, - 0x3b,0x0a,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c, - 0x74,0x5e,0x63,0x68,0x61,0x6e,0x67,0x65,0x5f,0x73,0x69,0x67,0x6e,0x3b,0x0a,0x69,0x66,0x28,0x63,0x68,0x61,0x6e,0x67,0x65,0x5f,0x73,0x69,0x67,0x6e,0x29,0x0a,0x7b, - 0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x2d,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65, - 0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x7e,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73, - 0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x2b,0x3d,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c, - 0x74,0x5b,0x30,0x5d,0x3f,0x30,0x3a,0x31,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x3d,0x30,0x29, - 0x0a,0x7b,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x3d,0x30,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x30, - 0x2e,0x30,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2d,0x3d,0x36,0x34,0x3b,0x0a,0x66,0x6d,0x61, - 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65, - 0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x64,0x65, - 0x78,0x3d,0x63,0x6c,0x7a,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x64,0x65,0x78,0x29,0x0a, - 0x7b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2d,0x3d,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x66,0x6d, - 0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x3c,0x69,0x6e,0x64,0x65, - 0x78,0x29,0x7c,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x69,0x6e,0x64,0x65,0x78,0x29,0x29,0x3b,0x0a, - 0x7d,0x0a,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x31,0x31,0x2b,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3b,0x0a,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x6f,0x75,0x6e,0x64,0x5f,0x75,0x70,0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c, - 0x74,0x5b,0x30,0x5d,0x7c,0x7c,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x26,0x28,0x28,0x31,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x29, - 0x2d,0x31,0x29,0x29,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x20,0x3e,0x3e,0x3d,0x20,0x73,0x68,0x69, - 0x66,0x74,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x20,0x26,0x3d,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x6d,0x61, - 0x73,0x6b,0x3b,0x0a,0x69,0x66,0x28,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x2b,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65, - 0x73,0x75,0x6c,0x74,0x3d,0x3d,0x32,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x2b,0x3d,0x72,0x6f,0x75,0x6e,0x64,0x5f, - 0x75,0x70,0x3b,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x3d,0x28,0x31,0x55,0x4c,0x3c,0x3c,0x6d,0x61,0x6e,0x74, - 0x69,0x73,0x73,0x61,0x5f,0x73,0x69,0x7a,0x65,0x29,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x2b, - 0x2b,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65, - 0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x7c,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61, - 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2b,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x29,0x3c,0x3c,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73, - 0x61,0x5f,0x73,0x69,0x7a,0x65,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x7c,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, - 0x29,0x28,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3c,0x3c,0x36,0x33,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61, - 0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c, - 0x65,0x20,0x64,0x69,0x76,0x5f,0x72,0x6e,0x64,0x28,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x61,0x2c,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x62,0x2c,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x29,0x0a,0x7b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x79,0x30,0x3d,0x31,0x2e,0x30,0x2f,0x62,0x3b,0x0a,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x30,0x3d,0x61,0x2a,0x79,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65, - 0x20,0x74,0x31,0x3d,0x66,0x6d,0x61,0x28,0x2d,0x62,0x2c,0x74,0x30,0x2c,0x61,0x29,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d, - 0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x79,0x30,0x2c,0x74,0x31,0x2c,0x74,0x30,0x2c,0x66,0x70,0x72,0x63,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x3d,0x32,0x30,0x34,0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x5f,0x72,0x6e,0x64,0x3d,0x69,0x6e,0x66,0x2d,0x28,0x66,0x70,0x72,0x63,0x26,0x31,0x29,0x3b,0x0a,0x69,0x66,0x28, - 0x28,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3e,0x3e,0x35,0x32,0x29,0x26,0x32,0x30,0x34,0x37,0x29,0x3d,0x3d,0x32, - 0x30,0x34,0x37,0x29,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x69,0x6e,0x66,0x5f,0x72,0x6e,0x64,0x29,0x3b,0x0a, - 0x69,0x66,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x29,0x3d,0x3d,0x69,0x6e,0x66,0x29,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x3b,0x0a,0x72, - 0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x3d,0x3d,0x62,0x29,0x3f,0x31,0x2e,0x30,0x3a,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c, - 0x65,0x20,0x73,0x71,0x72,0x74,0x5f,0x72,0x6e,0x64,0x28,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x78,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72, - 0x63,0x29,0x0a,0x7b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x79,0x30,0x3d,0x72,0x73,0x71,0x72,0x74,0x28,0x78,0x29,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20, - 0x74,0x30,0x3d,0x79,0x30,0x2a,0x78,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x31,0x3d,0x79,0x30,0x2a,0x2d,0x30,0x2e,0x35,0x3b,0x0a,0x74,0x31,0x3d,0x66, - 0x6d,0x61,0x28,0x74,0x31,0x2c,0x74,0x30,0x2c,0x30,0x2e,0x35,0x29,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65, - 0x20,0x79,0x31,0x5f,0x78,0x3d,0x66,0x6d,0x61,0x28,0x74,0x30,0x2c,0x74,0x31,0x2c,0x74,0x30,0x29,0x3b,0x09,0x0a,0x79,0x30,0x20,0x2a,0x3d,0x20,0x30,0x2e,0x35,0x3b, - 0x0a,0x79,0x30,0x3d,0x66,0x6d,0x61,0x28,0x79,0x30,0x2c,0x74,0x31,0x2c,0x79,0x30,0x29,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x74,0x31,0x3d,0x66,0x6d,0x61,0x28,0x2d, - 0x79,0x31,0x5f,0x78,0x2c,0x79,0x31,0x5f,0x78,0x2c,0x78,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d, - 0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x74,0x31,0x2c,0x79,0x30,0x2c,0x79,0x31,0x5f,0x78,0x2c,0x66,0x70,0x72,0x63,0x29,0x3b,0x09,0x09,0x0a,0x69,0x66,0x28, - 0x2a,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x20,0x26,0x78,0x29,0x3d,0x3d,0x28,0x32,0x30,0x34,0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x29,0x29, - 0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x78,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74, - 0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x6e,0x65,0x72,0x5f,0x6c,0x6f,0x6f,0x70,0x28,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, - 0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x2c,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75,0x62,0x2c,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x73, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65,0x67, - 0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x67, - 0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, - 0x20,0x52,0x2c,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x2c,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x77,0x6f,0x72,0x6b,0x65, - 0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e, - 0x74,0x4d,0x61,0x73,0x6b,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61, - 0x73,0x6b,0x0a,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75,0x62,0x32,0x3d,0x73,0x75,0x62,0x3e,0x3e,0x31, - 0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2b,0x31,0x5d,0x3d,0x66,0x70,0x72, - 0x63,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x69,0x70,0x3d,0x30,0x3b,0x20,0x69,0x70,0x3c,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3b,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d, - 0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x5d,0x3d,0x69,0x70,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x3d,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x70,0x5d,0x3b,0x0a,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4e, - 0x55,0x4d,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41, - 0x53,0x48,0x2d,0x31,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74, - 0x73,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4e,0x55,0x4d,0x5f,0x46,0x50,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x28,0x57, - 0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2d,0x31,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f, - 0x74,0x20,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3d,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x2d,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69, - 0x6e,0x73,0x74,0x73,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x3c,0x3d,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x73,0x75,0x62,0x2d,0x6e,0x75,0x6d,0x5f,0x66, - 0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x66,0x70,0x3d,0x69,0x6e,0x73,0x74,0x5f,0x6f, - 0x66,0x66,0x73,0x65,0x74,0x3c,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x3d,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65, - 0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x70,0x2b,0x28,0x69,0x73,0x5f,0x66,0x70,0x3f,0x73,0x75,0x62,0x32,0x3a,0x69,0x6e,0x73,0x74,0x5f,0x6f,0x66, - 0x66,0x73,0x65,0x74,0x29,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4f, - 0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x31,0x35,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x31,0x3b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f,0x73,0x69,0x7a,0x65,0x5f,0x73,0x68,0x69,0x66,0x74,0x3d,0x69,0x73, - 0x5f,0x66,0x70,0x3f,0x34,0x3a,0x33,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f,0x62,0x61,0x73,0x65, - 0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x69,0x73,0x5f,0x66,0x70,0x3f,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3a,0x30,0x3b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f,0x62,0x61,0x73,0x65,0x5f,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65, - 0x74,0x3d,0x69,0x73,0x5f,0x66,0x70,0x3f,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3a,0x30,0x3b, - 0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x44,0x53,0x54,0x5f, - 0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x37,0x3b,0x0a,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x72,0x65,0x67,0x5f,0x62,0x61,0x73,0x65,0x5f,0x6f, - 0x66,0x66,0x73,0x65,0x74,0x2b,0x28,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3c,0x3c,0x72,0x65,0x67,0x5f,0x73,0x69,0x7a,0x65,0x5f,0x73,0x68,0x69,0x66, - 0x74,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x53, - 0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x37,0x3b,0x0a,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x73,0x72,0x63,0x5f,0x6f,0x66, - 0x66,0x73,0x65,0x74,0x3c,0x3c,0x33,0x29,0x2b,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3f,0x30,0x3a,0x72,0x65,0x67,0x5f,0x62,0x61,0x73,0x65,0x5f,0x73,0x72, - 0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x64,0x73,0x74, - 0x5f,0x70,0x74,0x72,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61, - 0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x28,0x52,0x29,0x2b,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f, - 0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x73,0x72,0x63,0x5f,0x70,0x74,0x72,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75, - 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x28,0x52,0x29,0x2b, - 0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x5f, - 0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x32,0x35,0x35,0x3b,0x0a,0x5f, - 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6d,0x6d,0x5f,0x70,0x74,0x72,0x3d,0x69, - 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x2b,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x64,0x73,0x74,0x3d, - 0x2a,0x64,0x73,0x74,0x5f,0x70,0x74,0x72,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x73,0x72,0x63,0x3d,0x2a,0x73,0x72,0x63,0x5f,0x70,0x74,0x72,0x3b, - 0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6d,0x6d,0x3b,0x0a,0x69,0x6d,0x6d,0x2e,0x78,0x3d,0x69,0x6d,0x6d,0x5f,0x70,0x74,0x72,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x6d, - 0x6d,0x2e,0x79,0x3d,0x69,0x6d,0x6d,0x5f,0x70,0x74,0x72,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x29,0x0a,0x7b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x5f,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x3e,0x3e, - 0x32,0x31,0x29,0x26,0x33,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x30,0x78,0x46, - 0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x55,0x3e,0x3e,0x6c,0x6f,0x63,0x5f,0x73,0x68,0x69,0x66,0x74,0x29,0x2d,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f, - 0x6f,0x6c,0x20,0x69,0x73,0x5f,0x72,0x65,0x61,0x64,0x3d,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x21,0x3d,0x31,0x30,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, - 0x74,0x20,0x61,0x64,0x64,0x72,0x3d,0x69,0x73,0x5f,0x72,0x65,0x61,0x64,0x3f,0x28,0x28,0x6c,0x6f,0x63,0x5f,0x73,0x68,0x69,0x66,0x74,0x3d,0x3d,0x4c,0x4f,0x43,0x5f, - 0x4c,0x33,0x29,0x3f,0x30,0x3a,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x29,0x29,0x3a,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x29,0x28,0x64,0x73,0x74,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x2b,0x3d,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x29,0x3b,0x0a, - 0x61,0x64,0x64,0x72,0x20,0x26,0x3d,0x20,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, - 0x20,0x70,0x74,0x72,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x73,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x2b,0x61,0x64,0x64,0x72,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x72,0x65,0x61,0x64,0x29,0x0a,0x7b,0x0a,0x73,0x72,0x63,0x3d,0x2a,0x70, - 0x74,0x72,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x70,0x74,0x72,0x3d,0x73,0x72,0x63,0x3b,0x0a,0x67,0x6f,0x74,0x6f,0x20,0x65,0x78,0x65,0x63, - 0x75,0x74,0x69,0x6f,0x6e,0x5f,0x65,0x6e,0x64,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43, - 0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, - 0x29,0x28,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x29,0x29,0x29,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x3d,0x33,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41, - 0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29, - 0x28,0x2d,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x30,0x29, - 0x20,0x64,0x73,0x74,0x2b,0x3d,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, - 0x29,0x26,0x33,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x32,0x29,0x20,0x64,0x73,0x74,0x2b,0x3d,0x73,0x72,0x63,0x3c,0x3c,0x73,0x68,0x69,0x66, - 0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x36,0x34,0x3d,0x2a,0x28,0x28,0x75,0x69,0x6e,0x74,0x36, - 0x34,0x5f,0x74,0x2a,0x29,0x20,0x26,0x69,0x6d,0x6d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f, - 0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x3d,0x69,0x6d,0x6d,0x36,0x34,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, - 0x6f,0x64,0x65,0x3d,0x3d,0x32,0x29,0x20,0x64,0x73,0x74,0x20,0x2a,0x3d,0x20,0x73,0x72,0x63,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x33, - 0x29,0x20,0x64,0x73,0x74,0x20,0x5e,0x3d,0x20,0x73,0x72,0x63,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d, - 0x31,0x32,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x29,0x20,0x73,0x72,0x63,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28, - 0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x72,0x74,0x6e,0x28,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x73,0x72,0x63, - 0x3e,0x3e,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x2a,0x33,0x32,0x29,0x29,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x4e, - 0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x20,0x5e,0x3d,0x20,0x30,0x78,0x38,0x30, - 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f, - 0x6d,0x75,0x6c,0x3d,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x21,0x3d,0x30,0x3b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x61,0x3d,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x64,0x73,0x74,0x29,0x3b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x62,0x3d,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x73,0x72,0x63,0x29,0x3b,0x0a,0x64, - 0x73,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x61,0x2c,0x69,0x73,0x5f,0x6d,0x75,0x6c,0x3f,0x62,0x3a, - 0x31,0x2e,0x30,0x2c,0x69,0x73,0x5f,0x6d,0x75,0x6c,0x3f,0x30,0x2e,0x30,0x3a,0x62,0x2c,0x66,0x70,0x72,0x63,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x39,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x2b,0x3d,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69, - 0x6d,0x6d,0x2e,0x78,0x29,0x3b,0x0a,0x69,0x66,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x64,0x73,0x74,0x29,0x26,0x28,0x43,0x6f,0x6e,0x64, - 0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x3c,0x3c,0x28,0x69,0x6d,0x6d,0x2e,0x79,0x26,0x33,0x31,0x29,0x29,0x29,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x6d, - 0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x5d,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x29,0x28,0x28,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x79,0x29,0x3e,0x3e,0x35,0x29,0x2d,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74, - 0x73,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x37,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x31,0x3d,0x73,0x72,0x63,0x26,0x36,0x33,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x3e,0x20,0x30,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, - 0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f, - 0x72,0x6f,0x6c,0x3d,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45, - 0x54,0x29,0x29,0x3b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x3e,0x3e,0x28,0x69,0x73,0x5f,0x72,0x6f,0x6c,0x3f,0x73,0x68,0x69,0x66,0x74,0x32,0x3a,0x73,0x68, - 0x69,0x66,0x74,0x31,0x29,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x28,0x69,0x73,0x5f,0x72,0x6f,0x6c,0x3f,0x73,0x68,0x69,0x66,0x74,0x31,0x3a,0x73,0x68,0x69,0x66, - 0x74,0x32,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74,0x31,0x29,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x31,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x34,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x73,0x71, - 0x72,0x74,0x5f,0x72,0x6e,0x64,0x28,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x64,0x73,0x74,0x29,0x2c,0x66,0x70,0x72,0x63,0x29,0x29,0x3b,0x0a,0x7d,0x0a, - 0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x36,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28, - 0x64,0x73,0x74,0x2c,0x73,0x72,0x63,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x34,0x29,0x0a,0x7b, - 0x0a,0x64,0x73,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29, - 0x28,0x64,0x73,0x74,0x29,0x2c,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x29,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69, - 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x31,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x2a,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69, - 0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x28,0x52,0x29,0x2b,0x28, - 0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x5e,0x38,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x3d,0x3d,0x38,0x29,0x0a,0x7b,0x0a,0x2a,0x73,0x72,0x63,0x5f,0x70,0x74,0x72,0x3d,0x64,0x73,0x74,0x3b,0x0a,0x64,0x73,0x74,0x3d,0x73,0x72,0x63,0x3b,0x0a,0x7d,0x0a, - 0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x35,0x29,0x0a,0x7b,0x0a,0x73,0x72,0x63,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f, - 0x6e,0x67,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x72,0x74,0x6e,0x28,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28, - 0x73,0x72,0x63,0x3e,0x3e,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x2a,0x33,0x32,0x29,0x29,0x29,0x29,0x3b,0x0a,0x73,0x72,0x63,0x20,0x26,0x3d,0x20,0x64,0x79,0x6e, - 0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x73,0x72,0x63,0x7c,0x3d,0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74, - 0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x64,0x73,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x64,0x69,0x76,0x5f,0x72,0x6e,0x64,0x28,0x61,0x73,0x5f,0x64,0x6f, - 0x75,0x62,0x6c,0x65,0x28,0x64,0x73,0x74,0x29,0x2c,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x73,0x72,0x63,0x29,0x2c,0x66,0x70,0x72,0x63,0x29,0x29,0x3b, - 0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x35,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x75,0x69,0x6e, - 0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x2d,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x64,0x73,0x74,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20, - 0x69,0x66,0x28,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x3c,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d, - 0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2b,0x31,0x5d,0x3d,0x28,0x28,0x73,0x72,0x63,0x3e,0x3e,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73, - 0x65,0x74,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x28,0x36,0x34,0x2d,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x29,0x29,0x26,0x33,0x3b,0x0a,0x67, - 0x6f,0x74,0x6f,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x65,0x6e,0x64,0x3b,0x0a,0x7d,0x0a,0x2a,0x64,0x73,0x74,0x5f,0x70,0x74,0x72,0x3d,0x64,0x73, - 0x74,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x65,0x6e,0x64,0x3a,0x0a,0x7b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28, - 0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x69,0x70,0x3d,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66, - 0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x5d,0x3b,0x0a,0x66,0x70,0x72,0x63,0x3d,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b, - 0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2b,0x31,0x5d,0x3b,0x0a,0x69,0x70,0x2b,0x3d,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74, - 0x73,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x66,0x70,0x72,0x63,0x3b,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x57,0x4f,0x52,0x4b, - 0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x20,0x3d,0x3d,0x20,0x31,0x36,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f, - 0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x33,0x32,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29, - 0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f, - 0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x31,0x36,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x6b,0x65, - 0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x5f,0x76,0x6d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f, - 0x69,0x64,0x2a,0x20,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x72,0x6f,0x75, - 0x6e,0x64,0x69,0x6e,0x67,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x73, - 0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x5f,0x70,0x74, - 0x72,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e, - 0x75,0x6d,0x5f,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x69,0x72,0x73,0x74,0x2c,0x75,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x76, - 0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5b,0x28,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x32,0x29, - 0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x5d,0x3b,0x0a,0x6c,0x6f,0x61,0x64,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28, - 0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x2c,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73, - 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x2c,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74, - 0x65,0x73,0x29,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45, - 0x29,0x3b,0x0a,0x65,0x6e,0x75,0x6d,0x20,0x7b,0x20,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x3d,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52, - 0x5f,0x48,0x41,0x53,0x48,0x3d,0x3d,0x31,0x36,0x29,0x3f,0x31,0x36,0x3a,0x38,0x20,0x7d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36, - 0x34,0x5f,0x74,0x2a,0x20,0x52,0x3d,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x2b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61, - 0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x2a,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45, - 0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c, - 0x65,0x2a,0x20,0x46,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28,0x52,0x2b,0x38,0x29,0x3b,0x0a,0x5f,0x5f,0x6c, - 0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x45,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29, - 0x28,0x52,0x2b,0x31,0x36,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e, - 0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x3b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25, - 0x20,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x61,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61, - 0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x6d,0x78,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b, - 0x31,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74, - 0x65,0x72,0x73,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b, - 0x32,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x72,0x65,0x61,0x64, - 0x52,0x65,0x67,0x30,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63, - 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73, - 0x26,0x30,0x78,0x66,0x66,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, - 0x20,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x31,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28, - 0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67, - 0x69,0x73,0x74,0x65,0x72,0x73,0x3e,0x3e,0x38,0x29,0x26,0x30,0x78,0x66,0x66,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x32,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x28, - 0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3e,0x3e,0x31,0x36,0x29,0x26,0x30,0x78,0x66,0x66,0x29,0x29,0x3b,0x0a,0x5f,0x5f, - 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x33,0x3d,0x28, - 0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3e,0x3e,0x32,0x34,0x29,0x29, - 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28, - 0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x33,0x5d,0x3b,0x0a,0x5f, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x3d,0x28, - 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x64,0x61,0x74,0x61,0x73,0x65,0x74, - 0x5f,0x70,0x74,0x72,0x29,0x2b,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x36,0x34,0x2b,0x28,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e, - 0x64,0x65,0x78,0x26,0x31,0x29,0x3c,0x3c,0x33,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65, - 0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x31,0x39,0x32,0x2b,0x28,0x28,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e, - 0x64,0x65,0x78,0x26,0x31,0x29,0x3c,0x3c,0x33,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x65,0x4d, - 0x61,0x73,0x6b,0x3d,0x52,0x2b,0x31,0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, - 0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x32, - 0x30,0x29,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x29,0x5b,0x69,0x64,0x78,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33, - 0x32,0x5f,0x74,0x20,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x3d,0x66,0x69,0x72,0x73,0x74,0x3f,0x6d,0x78,0x3a,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x20,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x3d,0x66,0x69,0x72,0x73,0x74,0x3f,0x6d,0x61,0x3a,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, - 0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x38,0x5f,0x74,0x2a,0x29,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x73,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, - 0x29,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x2b,0x36,0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3d,0x28,0x73,0x75,0x62,0x3c,0x34,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c, - 0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x66,0x65,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x28,0x46,0x2b,0x73,0x75,0x62,0x2a,0x32,0x29,0x3a,0x28,0x45, - 0x2b,0x28,0x73,0x75,0x62,0x2d,0x34,0x29,0x2a,0x32,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x66,0x3d,0x46, - 0x2b,0x73,0x75,0x62,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x65,0x3d,0x45,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x28,0x75, - 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x2d,0x31,0x29,0x3a,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b, - 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x31,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70, - 0x3f,0x30,0x3a,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6f,0x72,0x4d,0x61, - 0x73,0x6b,0x32,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x30,0x3a,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x31,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x3d,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x3f,0x65,0x4d,0x61, - 0x73,0x6b,0x5b,0x31,0x5d,0x3a,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, - 0x2a,0x20,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b, - 0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29, - 0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x63,0x6f,0x6d,0x70,0x69,0x6c, - 0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, - 0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2b,0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53, - 0x49,0x5a,0x45,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x28,0x31,0x3c,0x3c,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53, - 0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2d,0x31,0x29,0x3c,0x3c,0x28,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29, - 0x2f,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x2a,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x33,0x3c,0x3c,0x28,0x28,0x28,0x73,0x75,0x62, - 0x3e,0x3e,0x31,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x49,0x44,0x58,0x5f,0x57,0x49, - 0x44,0x54,0x48,0x29,0x2a,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20, - 0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x63,0x3d,0x30,0x3b,0x20,0x69,0x63,0x3c,0x6e,0x75,0x6d,0x5f,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f, - 0x6e,0x73,0x3b,0x20,0x2b,0x2b,0x69,0x63,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x2a,0x72,0x3b, - 0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x2a,0x70,0x30,0x2c,0x2a,0x70,0x31,0x3b,0x0a,0x69,0x66,0x28,0x28, - 0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3c,0x3d,0x38,0x29,0x7c,0x7c,0x28,0x73,0x75,0x62,0x3c,0x38,0x29,0x29,0x0a,0x7b, - 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x73,0x70,0x4d,0x69,0x78,0x3d,0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x30,0x5e, - 0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x31,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x20,0x5e,0x3d,0x20,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x73,0x70,0x4d,0x69,0x78,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x20,0x5e,0x3d,0x20,0x28, - 0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x73,0x70,0x4d,0x69,0x78,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x70,0x41, - 0x64,0x64,0x72,0x30,0x20,0x26,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x36,0x34,0x3b,0x0a,0x73,0x70,0x41,0x64, - 0x64,0x72,0x31,0x20,0x26,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x36,0x34,0x3b,0x0a,0x70,0x30,0x3d,0x28,0x5f, - 0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x73,0x70, - 0x41,0x64,0x64,0x72,0x30,0x2b,0x73,0x75,0x62,0x2a,0x38,0x29,0x3b,0x0a,0x70,0x31,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36, - 0x34,0x5f,0x74,0x2a,0x29,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x2b,0x73,0x75,0x62,0x2a,0x38,0x29,0x3b, - 0x0a,0x72,0x3d,0x52,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x2a,0x72,0x20,0x5e,0x3d,0x20,0x2a,0x70,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x5f,0x6d,0x65,0x6d,0x5f,0x64,0x61,0x74,0x61,0x3d,0x2a,0x70,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x71,0x3d,0x28,0x69, - 0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6d,0x65,0x6d,0x5f,0x64,0x61,0x74,0x61,0x3b,0x0a,0x66,0x65,0x5b,0x30,0x5d,0x3d, - 0x6c,0x6f,0x61,0x64,0x5f,0x46,0x5f,0x45,0x5f,0x67,0x72,0x6f,0x75,0x70,0x73,0x28,0x71,0x5b,0x30,0x5d,0x2c,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x2c,0x6f,0x72,0x4d, - 0x61,0x73,0x6b,0x31,0x29,0x3b,0x0a,0x66,0x65,0x5b,0x31,0x5d,0x3d,0x6c,0x6f,0x61,0x64,0x5f,0x46,0x5f,0x45,0x5f,0x67,0x72,0x6f,0x75,0x70,0x73,0x28,0x71,0x5b,0x31, - 0x5d,0x2c,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x2c,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52, - 0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3d,0x3d,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x7c,0x7c,0x28,0x73,0x75,0x62,0x3c,0x57,0x4f,0x52, - 0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x29,0x0a,0x66,0x70,0x72,0x63,0x3d,0x69,0x6e,0x6e,0x65,0x72,0x5f,0x6c,0x6f,0x6f,0x70,0x28, - 0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x2c,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2c, - 0x73,0x75,0x62,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x66,0x70,0x5f, - 0x72,0x65,0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x52,0x2c,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x2c,0x62,0x61,0x74, - 0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x66,0x70,0x72,0x63,0x2c,0x66,0x70,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x2c,0x78,0x65,0x78, - 0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x2c,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x29,0x3b,0x0a,0x69,0x66,0x28,0x28,0x57,0x4f, - 0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3c,0x3d,0x38,0x29,0x7c,0x7c,0x28,0x73,0x75,0x62,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x6d, - 0x78,0x20,0x5e,0x3d,0x20,0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x32,0x5e,0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x33,0x3b,0x0a,0x6d,0x78,0x20,0x26,0x3d,0x20, - 0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34, - 0x5f,0x74,0x20,0x6e,0x65,0x78,0x74,0x5f,0x72,0x3d,0x2a,0x72,0x5e,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, - 0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x2b,0x6d,0x61,0x2b,0x73,0x75,0x62,0x2a,0x38,0x29,0x3b,0x0a,0x2a,0x72,0x3d,0x6e, - 0x65,0x78,0x74,0x5f,0x72,0x3b,0x0a,0x2a,0x70,0x31,0x3d,0x6e,0x65,0x78,0x74,0x5f,0x72,0x3b,0x0a,0x2a,0x70,0x30,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28, - 0x66,0x5b,0x30,0x5d,0x29,0x5e,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x65,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74, - 0x6d,0x70,0x3d,0x6d,0x61,0x3b,0x0a,0x6d,0x61,0x3d,0x6d,0x78,0x3b,0x0a,0x6d,0x78,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x3d,0x30,0x3b, - 0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f, - 0x48,0x41,0x53,0x48,0x3e,0x38,0x29,0x26,0x26,0x28,0x73,0x75,0x62,0x3e,0x3d,0x38,0x29,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36, - 0x34,0x5f,0x74,0x2a,0x29,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49, - 0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x70,0x5b,0x73,0x75,0x62,0x5d,0x3d,0x52,0x5b,0x73, - 0x75,0x62,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x29,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x66,0x70,0x72,0x63,0x3b,0x0a,0x7d,0x0a,0x69,0x66, - 0x28,0x6c,0x61,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x70,0x5b,0x73,0x75,0x62,0x2b,0x38,0x5d,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x46,0x5b,0x73,0x75,0x62, - 0x5d,0x29,0x5e,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x45,0x5b,0x73,0x75,0x62,0x5d,0x29,0x3b,0x0a,0x70,0x5b,0x73,0x75,0x62,0x2b,0x31,0x36,0x5d,0x3d,0x61, - 0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x45,0x5b,0x73,0x75,0x62,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x73,0x75,0x62,0x3d,0x3d, - 0x30,0x29,0x0a,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x70,0x2b,0x31,0x36,0x29, - 0x29,0x5b,0x30,0x5d,0x3d,0x6d,0x61,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x70, - 0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x6d,0x78,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28, - 0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f, - 0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6e,0x64,0x5f,0x73,0x68,0x61,0x72,0x65,0x73,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x68,0x61,0x73,0x68,0x65,0x73,0x2c,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, - 0x74,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2c,0x5f,0x5f, - 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x68,0x61,0x72,0x65,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a, - 0x34,0x2b,0x33,0x5d,0x3c,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x64, - 0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x73,0x68,0x61,0x72,0x65,0x73,0x2b,0x30,0x78,0x46,0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64, - 0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x73,0x68,0x61,0x72,0x65,0x73,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x73,0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63, - 0x65,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4e, - 0x49,0x54,0x49,0x41,0x4c,0x5f,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4e,0x54,0x45,0x52, - 0x4d,0x45,0x44,0x49,0x41,0x54,0x45,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52, - 0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x31,0x36,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x43,0x4f,0x4d,0x50,0x49,0x4c,0x45, - 0x44,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x31,0x30,0x30,0x34,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x55,0x4d, - 0x5f,0x56,0x47,0x50,0x52,0x5f,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x20,0x31,0x32,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74, - 0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x53,0x69,0x7a,0x65, - 0x20,0x31,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c, - 0x3c,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70, - 0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x53,0x69,0x7a,0x65,0x29, - 0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x61,0x73,0x20,0x31,0x30,0x32,0x33,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x34,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x63,0x6f,0x6e,0x73,0x74,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x30,0x78,0x33,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69, - 0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20, - 0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x2b,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42, - 0x69,0x74,0x73,0x29,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d, - 0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x20,0x33,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d, - 0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x20,0x33,0x39,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d, - 0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x20,0x35,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d, - 0x61,0x73,0x6b,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33,0x20,0x2d,0x20,0x38,0x29,0x0a, - 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49,0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x20,0x38,0x0a,0x23,0x69,0x66,0x20,0x47,0x43, - 0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f, - 0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x20,0x30,0x78,0x62,0x65,0x38,0x30,0x32,0x30,0x30,0x63,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56, - 0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x5f,0x43,0x41,0x4c,0x43,0x5f,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x20,0x30,0x78,0x33,0x36,0x33,0x38,0x30,0x30,0x30,0x65, - 0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x58,0x32,0x5f,0x53,0x43, - 0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x20,0x30,0x78,0x64,0x63,0x33,0x34,0x38,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x53,0x5f,0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x20,0x30,0x78,0x62, - 0x66,0x38,0x63,0x33,0x66,0x37,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x52,0x45,0x41,0x44,0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f, - 0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x20,0x30,0x78,0x64,0x37,0x36,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65, - 0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x30,0x78,0x39,0x61,0x38,0x66,0x31, - 0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x20,0x30,0x78,0x39,0x33, - 0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55, - 0x4c,0x5f,0x52,0x5f,0x32,0x20,0x30,0x78,0x39,0x61,0x38,0x66,0x66,0x66,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f, - 0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x30,0x78,0x39,0x61,0x61,0x31,0x30,0x65,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x30,0x78,0x62,0x65,0x61,0x30,0x30,0x33,0x66,0x66,0x75, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x30, - 0x78,0x39,0x61,0x38,0x66,0x32,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x20, - 0x30,0x78,0x38,0x39,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x58,0x4f, - 0x52,0x5f,0x52,0x20,0x30,0x78,0x62,0x65,0x62,0x65,0x30,0x33,0x66,0x66,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4c,0x53,0x48,0x52,0x20,0x30, - 0x78,0x39,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x20,0x30,0x78,0x38,0x66,0x30,0x30, - 0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4f,0x52,0x20,0x30,0x78,0x38,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x41,0x4e,0x44,0x20,0x30,0x78,0x38,0x37,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, - 0x20,0x53,0x5f,0x42,0x46,0x45,0x20,0x30,0x78,0x39,0x34,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x44,0x53,0x5f,0x53,0x57, - 0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x30,0x78,0x64,0x38,0x64,0x34,0x38,0x30,0x30,0x31,0x75,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x20,0x30,0x78,0x64,0x35,0x36,0x34,0x30,0x30,0x33,0x63,0x75,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x33,0x36,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, - 0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c, - 0x4f,0x41,0x44,0x5f,0x46,0x50,0x20,0x30,0x78,0x64,0x63,0x33,0x30,0x38,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x58,0x4f,0x52, - 0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x33,0x61,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x4d,0x55,0x4c,0x5f,0x46, - 0x36,0x34,0x20,0x30,0x78,0x64,0x35,0x36,0x35,0x30,0x30,0x34,0x34,0x75,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x53, - 0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x20,0x30,0x78,0x62,0x65,0x38,0x30,0x31,0x64,0x30,0x63,0x75,0x0a,0x23,0x64,0x65,0x66, - 0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x5f,0x43,0x41,0x4c,0x43,0x5f,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x20,0x30,0x78,0x32,0x36,0x33, - 0x38,0x30,0x30,0x30,0x65,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44, - 0x58,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x20,0x30,0x78,0x64,0x63,0x35,0x34,0x38,0x30,0x30,0x30,0x75,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44, - 0x32,0x20,0x30,0x78,0x62,0x66,0x38,0x63,0x30,0x66,0x37,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x52,0x45,0x41,0x44,0x4c,0x41,0x4e,0x45, - 0x5f,0x42,0x33,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x20,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x30, - 0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x30,0x78, - 0x39,0x36,0x30,0x66,0x31,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c, - 0x20,0x30,0x78,0x39,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33, - 0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x5f,0x32,0x20,0x30,0x78,0x39,0x36,0x30,0x66,0x66,0x66,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53, - 0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x30,0x78,0x39,0x36,0x32,0x31,0x30,0x65,0x31,0x30,0x75,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x30,0x78,0x62,0x65,0x61,0x30, - 0x30,0x30,0x66,0x66,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f, - 0x52,0x43,0x50,0x20,0x30,0x78,0x39,0x36,0x30,0x66,0x32,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33, - 0x32,0x5f,0x36,0x34,0x20,0x30,0x78,0x38,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42, - 0x33,0x32,0x5f,0x58,0x4f,0x52,0x5f,0x52,0x20,0x30,0x78,0x62,0x65,0x62,0x65,0x30,0x30,0x66,0x66,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4c, - 0x53,0x48,0x52,0x20,0x30,0x78,0x38,0x66,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x20,0x30, - 0x78,0x38,0x65,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4f,0x52,0x20,0x30,0x78,0x38,0x37,0x30,0x30,0x30,0x30, - 0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x41,0x4e,0x44,0x20,0x30,0x78,0x38,0x36,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64, - 0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x42,0x46,0x45,0x20,0x30,0x78,0x39,0x33,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x44,0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x30,0x78,0x64,0x38,0x37,0x61,0x38,0x30,0x30, - 0x31,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x20,0x30,0x78,0x64,0x32,0x38,0x30,0x30,0x30,0x33,0x63,0x75, - 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x32,0x36,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23, - 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48, - 0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x46,0x50,0x20,0x30,0x78,0x64,0x63,0x35,0x30,0x38,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20, - 0x56,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x32,0x61,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f, - 0x4d,0x55,0x4c,0x5f,0x46,0x36,0x34,0x20,0x30,0x78,0x64,0x32,0x38,0x31,0x30,0x30,0x34,0x34,0x75,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64, - 0x64,0x72,0x65,0x73,0x73,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x2c, - 0x75,0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x33,0x32,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61, - 0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x31,0x30,0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28, - 0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x33,0x32,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f, - 0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x5f,0x43,0x41,0x4c,0x43,0x5f,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x7c,0x28,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3c,0x3c, - 0x39,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a, - 0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73, - 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x33,0x32,0x2c,0x75,0x69,0x6e, - 0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x66, - 0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x33,0x32,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f, - 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64, - 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, - 0x78,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x58,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44, - 0x5f,0x4c,0x4f,0x41,0x44,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f, - 0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x32,0x35,0x34,0x33, - 0x39,0x30,0x32,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x31,0x31,0x63,0x36,0x61,0x32,0x62,0x75,0x3b,0x09, - 0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x31,0x61,0x39,0x30,0x31,0x30,0x33,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x30,0x78,0x64,0x63,0x35,0x34,0x30,0x30,0x30,0x30,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30, - 0x30,0x30,0x30,0x32,0x61,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, - 0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70, - 0x2c,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x69,0x6e,0x74,0x20,0x76,0x6d,0x63,0x6e,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x66, - 0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e,0x3d,0x30,0x29,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41, - 0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x28,0x76,0x6d,0x63,0x6e,0x74,0x26,0x31,0x35,0x29,0x7c,0x28,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e, - 0x3e,0x34,0x29,0x3c,0x3c,0x31,0x34,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x52,0x45,0x41,0x44,0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f, - 0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x31,0x34,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30, - 0x30,0x31,0x30,0x31,0x30,0x30,0x75,0x7c,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x52,0x45,0x41, - 0x44,0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x31,0x35,0x3b,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x29, - 0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74, - 0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66,0x70,0x28,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x33,0x32, - 0x2c,0x75,0x69,0x6e,0x74,0x20,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a, - 0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x31,0x30,0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x33,0x32,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x7c,0x30,0x78, - 0x33,0x38,0x30,0x30,0x30,0x65,0x75,0x7c,0x28,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56, - 0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x34,0x61,0x33,0x38,0x35,0x39,0x31,0x63,0x75,0x3b, - 0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3d,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, - 0x30,0x78,0x36,0x38,0x33,0x38,0x35,0x39,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x32,0x33,0x38, - 0x35,0x39,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62, - 0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f, - 0x41,0x44,0x5f,0x46,0x50,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f, - 0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x32,0x35,0x34,0x33, - 0x39,0x30,0x32,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x31,0x31,0x63,0x36,0x61,0x32,0x62,0x75,0x3b,0x09, - 0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x31,0x61,0x39,0x30,0x31,0x30,0x33,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x30,0x78,0x64,0x63,0x35,0x30,0x30,0x30,0x30,0x30,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30, - 0x30,0x30,0x30,0x32,0x61,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, - 0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x69,0x6e,0x74,0x20,0x76,0x6d,0x63,0x6e,0x74,0x29,0x0a,0x7b, - 0x0a,0x69,0x66,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e,0x3d,0x30,0x29,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53, - 0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x28,0x76,0x6d,0x63,0x6e,0x74,0x26,0x31,0x35,0x29,0x7c,0x28,0x28,0x76,0x6d,0x63, - 0x6e,0x74,0x3e,0x3e,0x34,0x29,0x3c,0x3c,0x31,0x34,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x39,0x30,0x30,0x75,0x7c, - 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, - 0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x65,0x6d,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x28,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6c,0x61,0x73,0x74, - 0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x2c, - 0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x69,0x6e,0x74,0x20,0x76,0x6d,0x63,0x6e, - 0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e, - 0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74, - 0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6d,0x6f,0x64,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78, - 0x3e,0x3e,0x32,0x34,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44, - 0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x32, - 0x29,0x20,0x25,0x20,0x34,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x3e,0x30,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c, - 0x53,0x48,0x4c,0x7c,0x30,0x78,0x38,0x65,0x38,0x30,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x68,0x69,0x66,0x74,0x3c,0x3c,0x38, - 0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31,0x30,0x66,0x31,0x31,0x75,0x7c,0x28,0x64,0x73, - 0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29, - 0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31,0x31,0x31,0x31,0x31,0x75,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28, - 0x64,0x73,0x74,0x3d,0x3d,0x35,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31,0x30,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73, - 0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x28,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x3f,0x30,0x78,0x63,0x31, - 0x3a,0x30,0x78,0x38,0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64, - 0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73, - 0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73, - 0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68, - 0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72, - 0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61, - 0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74, - 0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b, - 0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63, - 0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d, - 0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72, - 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, - 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d, - 0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, - 0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31,0x30,0x66,0x31,0x31, - 0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70, - 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a, - 0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x39,0x30,0x31, - 0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29, - 0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x31,0x31,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b, - 0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x39,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37, - 0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x30, - 0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x28,0x28,0x61,0x73,0x5f,0x69,0x6e, - 0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x3f,0x30,0x78,0x63,0x31,0x3a,0x30,0x78,0x38,0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x72, - 0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, - 0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e, - 0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28, - 0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63, - 0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a, - 0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65, - 0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d, - 0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, - 0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65, - 0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65, - 0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, - 0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74, - 0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30, - 0x78,0x38,0x30,0x39,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x30,0x66,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c, - 0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a, - 0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53, - 0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63, - 0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x31,0x30,0x75,0x7c,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30,0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x32,0x31,0x31,0x63,0x75,0x2b,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63, - 0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c, - 0x30,0x78,0x30,0x65,0x31,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x30,0x66,0x30,0x65,0x30,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33, - 0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x31,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c, - 0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x30,0x65,0x30,0x66,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29, - 0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x31,0x30,0x31,0x30,0x31,0x30, - 0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d, - 0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x5f,0x32,0x7c,0x28,0x64,0x73,0x74, - 0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x66,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30,0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x32, - 0x31,0x31,0x63,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30, - 0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69, - 0x66,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78, - 0x38,0x30,0x38,0x66,0x31,0x30,0x30,0x66,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d, - 0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x66,0x66,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a, - 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x30,0x65,0x30,0x66, - 0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d, - 0x55,0x4c,0x7c,0x30,0x78,0x31,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21, - 0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64, - 0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61, - 0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73, - 0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69, - 0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a, - 0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e, - 0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, - 0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70, - 0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, - 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x7c,0x28,0x64,0x73,0x74, - 0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x31,0x30,0x75,0x7c,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30,0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x31,0x64,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30, - 0x32,0x31,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, - 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x32,0x30,0x30,0x66,0x31,0x30,0x75,0x7c, - 0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x32,0x31,0x32,0x30,0x32,0x31,0x75,0x3b,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x32,0x30,0x30,0x65,0x31,0x31,0x75,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x32,0x30,0x32,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, - 0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x31,0x30, - 0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75, - 0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55, - 0x4c,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c, - 0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73, - 0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09, - 0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09, - 0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09, - 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, - 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70, - 0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73, - 0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31, - 0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61, - 0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, - 0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63, - 0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69, - 0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70, - 0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b, - 0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a, - 0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63, - 0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, - 0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30, - 0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, - 0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65, - 0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, - 0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69, - 0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, - 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e, - 0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c, - 0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c, - 0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x38,0x75,0x3b,0x09,0x09,0x09,0x09, - 0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29, - 0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x31,0x31,0x30,0x75,0x7c,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c, - 0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x38,0x75, - 0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74, - 0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a, - 0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28, - 0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63, - 0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f, - 0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c, - 0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a, - 0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73, - 0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68, - 0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c, - 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70, - 0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f, - 0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61, - 0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74, - 0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69, - 0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e, - 0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29, - 0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x38,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09, - 0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74, - 0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x38,0x75,0x3b,0x09,0x09,0x09, - 0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37, - 0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x69,0x66, - 0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x32,0x20,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x69,0x6d,0x75,0x6c,0x5f,0x72,0x63,0x70,0x5f,0x76,0x61, - 0x6c,0x75,0x65,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x49, - 0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x2e,0x78, - 0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53, - 0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09, - 0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x32,0x30,0x75,0x3b,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30,0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x32,0x31, - 0x31,0x63,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x66, - 0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x2e,0x79,0x3b,0x0a, - 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x30,0x66,0x30,0x65,0x30,0x66,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x32,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, - 0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x30,0x65,0x30,0x66,0x75,0x7c,0x28,0x64,0x73,0x74, - 0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c, - 0x7c,0x30,0x78,0x31,0x30,0x32,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d, + 0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x53,0x54,0x4f,0x52,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f, + 0x6e,0x3d,0x28,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x3e,0x3d,0x53,0x74,0x6f,0x72,0x65,0x4c,0x33,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x29,0x3f,0x33, + 0x3a,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x31,0x3a,0x32,0x29,0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x28,0x64,0x73,0x74,0x3c,0x3c,0x44, + 0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x3c, + 0x3c,0x4c,0x4f,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x7c,0x28,0x31,0x30,0x3c,0x3c,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29, + 0x3b,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x3d,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b, + 0x0a,0x69,0x66,0x28,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x29,0x0a,0x69, + 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x69,0x6d,0x6d,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x2b,0x5d,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x30,0x78,0x46,0x43, + 0x31,0x46,0x46,0x46,0x46,0x46,0x55,0x29,0x7c,0x28,0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x31,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x31,0x3a, + 0x28,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x32,0x29,0x3f,0x4c,0x4f,0x43,0x5f,0x4c,0x32,0x3a,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x29,0x3c,0x3c, + 0x32,0x31,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3d,0x49,0x4e,0x53,0x54,0x5f,0x4e,0x4f,0x50,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d, + 0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b, + 0x65,0x72,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x3b,0x0a,0x2a,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, + 0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x3b,0x0a,0x7d,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x32,0x30,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x28,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x29,0x28,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2b,0x49,0x4d,0x4d, + 0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x29,0x3b,0x0a,0x7d, + 0x0a,0x7d,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6c,0x6f,0x61,0x64,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x20,0x2a,0x64,0x73,0x74,0x5f,0x62,0x75,0x66,0x2c,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x4e,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x73,0x72,0x63,0x5f,0x62,0x75,0x66,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x69,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x65,0x70,0x3d,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61, + 0x6c,0x5f,0x73,0x69,0x7a,0x65,0x28,0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x73,0x72,0x63,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x73,0x72,0x63,0x5f,0x62,0x75,0x66,0x29,0x2b,0x67,0x65,0x74,0x5f,0x67, + 0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x28,0x30,0x29,0x2a,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x2a,0x4e,0x2b,0x69,0x3b, + 0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x64,0x73,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x64,0x73,0x74,0x5f,0x62,0x75,0x66,0x29,0x2b,0x69,0x3b,0x0a,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x69,0x3c,0x73,0x69, + 0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x2a,0x4e,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x64,0x73,0x74,0x29,0x3d,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x2a,0x29,0x28,0x73,0x72,0x63,0x29,0x3b,0x0a,0x73,0x72,0x63,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x64,0x73,0x74,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a, + 0x69,0x2b,0x3d,0x73,0x74,0x65,0x70,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x6c,0x6f,0x61,0x64,0x5f,0x46,0x5f,0x45,0x5f,0x67,0x72,0x6f, + 0x75,0x70,0x73,0x28,0x69,0x6e,0x74,0x20,0x76,0x61,0x6c,0x75,0x65,0x2c,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x2c,0x75, + 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x29,0x0a,0x7b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x3d,0x63,0x6f,0x6e,0x76,0x65, + 0x72,0x74,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x72,0x74,0x6e,0x28,0x76,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x78, + 0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x74,0x29,0x3b,0x0a,0x78,0x20,0x26,0x3d,0x20,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x78,0x7c,0x3d,0x6f, + 0x72,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x64,0x6f, + 0x75,0x62,0x6c,0x65,0x20,0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x61,0x2c,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x62,0x2c, + 0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x63,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x29, + 0x0a,0x7b,0x0a,0x69,0x66,0x28,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x3d,0x3d,0x30,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x66, + 0x6d,0x61,0x28,0x61,0x2c,0x62,0x2c,0x63,0x29,0x3b,0x0a,0x69,0x66,0x28,0x28,0x61,0x3d,0x3d,0x30,0x2e,0x30,0x29,0x7c,0x7c,0x28,0x62,0x3d,0x3d,0x30,0x2e,0x30,0x29, + 0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x63,0x3b,0x0a,0x69,0x66,0x28,0x62,0x3d,0x3d,0x31,0x2e,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x63,0x3d,0x3d,0x30, + 0x2e,0x30,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x3b,0x0a,0x69,0x66,0x28,0x63,0x3d,0x3d,0x2d,0x61,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x69,0x6e,0x75,0x73,0x5f,0x7a,0x65,0x72,0x6f,0x3d,0x31,0x55,0x4c,0x3c,0x3c,0x36,0x33,0x3b,0x0a,0x72,0x65,0x74, + 0x75,0x72,0x6e,0x20,0x28,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x29,0x3f,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65, + 0x28,0x6d,0x69,0x6e,0x75,0x73,0x5f,0x7a,0x65,0x72,0x6f,0x29,0x3a,0x30,0x2e,0x30,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x35,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x31,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x29,0x2d,0x31,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x73,0x69,0x7a,0x65,0x3d,0x31,0x31, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x28, + 0x31,0x3c,0x3c,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x73,0x69,0x7a,0x65,0x29,0x2d,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x61,0x32,0x3d,0x61,0x73, + 0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x61,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x62,0x32,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x62,0x29,0x3b, + 0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x63,0x32,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x61,0x3d,0x28,0x61,0x32,0x2e,0x79,0x3e,0x3e,0x32,0x30,0x29,0x26,0x65,0x78,0x70,0x6f, + 0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65, + 0x6e,0x74,0x5f,0x62,0x3d,0x28,0x62,0x32,0x2e,0x79,0x3e,0x3e,0x32,0x30,0x29,0x26,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x3d,0x28,0x63,0x32,0x2e,0x79,0x3e,0x3e, + 0x32,0x30,0x29,0x26,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x69,0x66,0x28,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f, + 0x61,0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x7c,0x7c,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x62,0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x7c,0x7c,0x28,0x65, + 0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34, + 0x5f,0x74,0x20,0x69,0x6e,0x66,0x3d,0x32,0x30,0x34,0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75, + 0x62,0x6c,0x65,0x28,0x69,0x6e,0x66,0x29,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f, + 0x61,0x3d,0x61,0x32,0x2e,0x79,0x3e,0x3e,0x33,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f, + 0x62,0x3d,0x62,0x32,0x2e,0x79,0x3e,0x3e,0x33,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f, + 0x63,0x3d,0x63,0x32,0x2e,0x79,0x3e,0x3e,0x33,0x31,0x3b,0x0a,0x61,0x32,0x2e,0x79,0x3d,0x28,0x61,0x32,0x2e,0x79,0x26,0x28,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29, + 0x2d,0x31,0x29,0x29,0x7c,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x3b,0x0a,0x62,0x32,0x2e,0x79,0x3d,0x28,0x62,0x32,0x2e,0x79,0x26,0x28,0x28,0x31,0x55,0x3c,0x3c, + 0x32,0x30,0x29,0x2d,0x31,0x29,0x29,0x7c,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x3b,0x0a,0x63,0x32,0x2e,0x79,0x3d,0x28,0x63,0x32,0x2e,0x79,0x26,0x28,0x28,0x31, + 0x55,0x3c,0x3c,0x32,0x30,0x29,0x2d,0x31,0x29,0x29,0x7c,0x28,0x31,0x55,0x3c,0x3c,0x32,0x30,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6d,0x61, + 0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x61,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20, + 0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x62,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x62,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x63,0x32,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36, + 0x34,0x5f,0x74,0x20,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x32,0x5d,0x3b,0x0a,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d, + 0x3d,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x61,0x2a,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x62,0x3b,0x0a,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75, + 0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x61,0x2c,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61, + 0x5f,0x62,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3d,0x6d,0x75,0x6c, + 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3e,0x3e,0x34,0x31,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e, + 0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x61,0x2b,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74, + 0x5f,0x62,0x2b,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x2d,0x31,0x30,0x32,0x33,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x73,0x69,0x67,0x6e,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x61,0x5e,0x73,0x69,0x67,0x6e,0x5f,0x62,0x3b,0x0a, + 0x69,0x66,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3e,0x3d,0x32,0x30,0x34,0x37,0x29,0x0a,0x7b,0x0a, + 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x5f,0x72,0x6e,0x64,0x3d,0x28,0x32,0x30,0x34,0x37,0x55,0x4c,0x3c,0x3c, + 0x35,0x32,0x29,0x2d,0x28,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x26,0x31,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73, + 0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x69,0x6e,0x66,0x5f,0x72,0x6e,0x64,0x29,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x66,0x6d,0x61, + 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x32,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x5b,0x32,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x69,0x66,0x28,0x65,0x78,0x70,0x6f, + 0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3e,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x29,0x0a,0x7b,0x0a,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x32,0x33,0x2d,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3b, + 0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x3c,0x73,0x68, + 0x69,0x66,0x74,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31, + 0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x29,0x7c,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x68, + 0x69,0x66,0x74,0x29,0x29,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x28,0x31,0x32,0x37,0x2d,0x35,0x32,0x29,0x2b,0x28, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x2d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c, + 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69, + 0x66,0x74,0x32,0x3e,0x3d,0x36,0x34,0x29,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61, + 0x5f,0x63,0x3c,0x3c,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x2d,0x36,0x34,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x6d, + 0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x73,0x68,0x69,0x66,0x74,0x32,0x3f,0x28, + 0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3a,0x30,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a, + 0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3c,0x2d,0x35,0x32,0x29,0x3f,0x30,0x3a,0x28,0x6d,0x61,0x6e,0x74, + 0x69,0x73,0x73,0x61,0x5f,0x63,0x3e,0x3e,0x28,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x69,0x66,0x28,0x28, + 0x74,0x5b,0x30,0x5d,0x3d,0x3d,0x30,0x29,0x26,0x26,0x28,0x63,0x21,0x3d,0x30,0x2e,0x30,0x29,0x29,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x31,0x3b,0x0a,0x7d,0x0a,0x65,0x78, + 0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72, + 0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x3d,0x6d,0x61,0x6e, + 0x74,0x69,0x73,0x73,0x61,0x5f,0x63,0x3c,0x3c,0x31,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x28,0x31,0x32,0x37, + 0x2d,0x31,0x30,0x34,0x2d,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x29,0x2b,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x65, + 0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x29,0x3b,0x0a, + 0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x6d,0x75, + 0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b, + 0x31,0x5d,0x3d,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x7c,0x28,0x73,0x68,0x69,0x66, + 0x74,0x32,0x3f,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3a, + 0x30,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x69,0x66,0x28, + 0x73,0x68,0x69,0x66,0x74,0x32,0x3e,0x3d,0x36,0x34,0x29,0x0a,0x7b,0x0a,0x73,0x68,0x69,0x66,0x74,0x32,0x2d,0x3d,0x36,0x34,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65, + 0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x28,0x73,0x68,0x69,0x66,0x74,0x32,0x3c,0x36,0x34,0x29,0x3f,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b, + 0x31,0x5d,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a, + 0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x3d,0x30,0x29,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b, + 0x30,0x5d,0x3d,0x31,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x28,0x6d,0x75, + 0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x7c,0x28,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x5b,0x31,0x5d,0x3c,0x3c,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d, + 0x3d,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3e,0x3e,0x73,0x68,0x69,0x66,0x74,0x32,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x78,0x70,0x6f, + 0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x63,0x3b,0x0a,0x7d,0x0a,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x69,0x66,0x28,0x73,0x69,0x67,0x6e,0x5f, + 0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x63,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x5b,0x30,0x5d,0x2b,0x3d,0x74,0x5b,0x30,0x5d,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x2b,0x3d,0x74,0x5b,0x31,0x5d,0x2b,0x28, + 0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x74,0x5b,0x30,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x29,0x3b,0x0a,0x65,0x78,0x70,0x5f,0x63, + 0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x74,0x5b,0x31,0x5d,0x29,0x3f,0x31, + 0x3a,0x30,0x3b,0x0a,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x73,0x69,0x67,0x6e,0x5f,0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73, + 0x75,0x6c,0x74,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x6f,0x72, + 0x72,0x6f,0x77,0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3c,0x74,0x5b,0x30,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x66,0x6d, + 0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x2d,0x3d,0x74,0x5b,0x30,0x5d,0x3b,0x0a,0x74,0x5b,0x31,0x5d,0x2b,0x3d,0x62,0x6f,0x72,0x72,0x6f,0x77,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x5f,0x73,0x69,0x67,0x6e,0x3d,0x28,0x66,0x6d,0x61, + 0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3c,0x74,0x5b,0x31,0x5d,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x5b,0x31,0x5d,0x2d,0x3d,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x73,0x69,0x67,0x6e,0x5f, + 0x6d,0x75,0x6c,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5e,0x63,0x68,0x61,0x6e,0x67,0x65,0x5f,0x73,0x69,0x67,0x6e,0x3b,0x0a,0x69,0x66,0x28,0x63,0x68,0x61,0x6e,0x67, + 0x65,0x5f,0x73,0x69,0x67,0x6e,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x2d,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f, + 0x74,0x29,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d, + 0x3d,0x7e,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x2b,0x3d, + 0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3f,0x30,0x3a,0x31,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75, + 0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x3d,0x30,0x29, + 0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x30,0x2e,0x30,0x3b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x2d,0x3d,0x36,0x34,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30, + 0x5d,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x64,0x65,0x78,0x3d,0x63,0x6c,0x7a,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x69, + 0x66,0x28,0x69,0x6e,0x64,0x65,0x78,0x29,0x0a,0x7b,0x0a,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2d,0x3d, + 0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x5b,0x31,0x5d,0x3c,0x3c,0x69,0x6e,0x64,0x65,0x78,0x29,0x7c,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x3e,0x3e,0x28,0x36,0x34,0x2d, + 0x69,0x6e,0x64,0x65,0x78,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x31,0x31,0x2b,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65, + 0x63,0x74,0x69,0x6f,0x6e,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x6f,0x75,0x6e,0x64,0x5f,0x75,0x70,0x3d,0x28, + 0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x30,0x5d,0x7c,0x7c,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x26,0x28,0x28, + 0x31,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x29,0x2d,0x31,0x29,0x29,0x29,0x3f,0x31,0x3a,0x30,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31, + 0x5d,0x20,0x3e,0x3e,0x3d,0x20,0x73,0x68,0x69,0x66,0x74,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x20,0x26,0x3d,0x20,0x6d,0x61, + 0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x69,0x66,0x28,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5f,0x6d,0x6f,0x64,0x65,0x2b,0x73,0x69, + 0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x3d,0x32,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31, + 0x5d,0x2b,0x3d,0x72,0x6f,0x75,0x6e,0x64,0x5f,0x75,0x70,0x3b,0x0a,0x69,0x66,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x3d,0x3d,0x28, + 0x31,0x55,0x4c,0x3c,0x3c,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x73,0x69,0x7a,0x65,0x29,0x29,0x0a,0x7b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c, + 0x74,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x2b,0x2b,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x3b,0x0a,0x7d, + 0x0a,0x7d,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x7c,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x65,0x78,0x70, + 0x6f,0x6e,0x65,0x6e,0x74,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x2b,0x65,0x78,0x70,0x5f,0x63,0x6f,0x72,0x72,0x65,0x63,0x74,0x69,0x6f,0x6e,0x29, + 0x3c,0x3c,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x5f,0x73,0x69,0x7a,0x65,0x3b,0x0a,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x7c,0x3d, + 0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x73,0x69,0x67,0x6e,0x5f,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3c,0x3c,0x36,0x33,0x3b, + 0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x66,0x6d,0x61,0x5f,0x72,0x65,0x73,0x75,0x6c,0x74,0x5b,0x31,0x5d,0x29, + 0x3b,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x64,0x69,0x76,0x5f,0x72,0x6e,0x64,0x28,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x61,0x2c,0x64,0x6f,0x75,0x62, + 0x6c,0x65,0x20,0x62,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x29,0x0a,0x7b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x79,0x30,0x3d, + 0x31,0x2e,0x30,0x2f,0x62,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x30,0x3d,0x61,0x2a,0x79,0x30,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x31,0x3d,0x66,0x6d,0x61,0x28,0x2d,0x62,0x2c,0x74,0x30,0x2c,0x61,0x29,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c, + 0x65,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x79,0x30,0x2c,0x74,0x31,0x2c,0x74,0x30,0x2c,0x66,0x70,0x72,0x63,0x29, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x3d,0x32,0x30,0x34,0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6e,0x66,0x5f,0x72,0x6e,0x64,0x3d,0x69,0x6e,0x66,0x2d,0x28,0x66,0x70,0x72, + 0x63,0x26,0x31,0x29,0x3b,0x0a,0x69,0x66,0x28,0x28,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x72,0x65,0x73,0x75,0x6c,0x74,0x29,0x3e,0x3e,0x35,0x32,0x29, + 0x26,0x32,0x30,0x34,0x37,0x29,0x3d,0x3d,0x32,0x30,0x34,0x37,0x29,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x69, + 0x6e,0x66,0x5f,0x72,0x6e,0x64,0x29,0x3b,0x0a,0x69,0x66,0x28,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x61,0x29,0x3d,0x3d,0x69,0x6e,0x66,0x29,0x20,0x72,0x65, + 0x73,0x75,0x6c,0x74,0x3d,0x61,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x28,0x61,0x3d,0x3d,0x62,0x29,0x3f,0x31,0x2e,0x30,0x3a,0x72,0x65,0x73,0x75,0x6c,0x74, + 0x3b,0x0a,0x7d,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x73,0x71,0x72,0x74,0x5f,0x72,0x6e,0x64,0x28,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x78,0x2c,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x29,0x0a,0x7b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x79,0x30,0x3d,0x72,0x73,0x71,0x72,0x74,0x28,0x78,0x29, + 0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x30,0x3d,0x79,0x30,0x2a,0x78,0x3b,0x0a,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x74,0x31,0x3d,0x79,0x30,0x2a,0x2d, + 0x30,0x2e,0x35,0x3b,0x0a,0x74,0x31,0x3d,0x66,0x6d,0x61,0x28,0x74,0x31,0x2c,0x74,0x30,0x2c,0x30,0x2e,0x35,0x29,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x79,0x31,0x5f,0x78,0x3d,0x66,0x6d,0x61,0x28,0x74,0x30,0x2c,0x74,0x31,0x2c,0x74,0x30,0x29,0x3b,0x09,0x0a,0x79, + 0x30,0x20,0x2a,0x3d,0x20,0x30,0x2e,0x35,0x3b,0x0a,0x79,0x30,0x3d,0x66,0x6d,0x61,0x28,0x79,0x30,0x2c,0x74,0x31,0x2c,0x79,0x30,0x29,0x3b,0x09,0x09,0x09,0x09,0x09, + 0x0a,0x74,0x31,0x3d,0x66,0x6d,0x61,0x28,0x2d,0x79,0x31,0x5f,0x78,0x2c,0x79,0x31,0x5f,0x78,0x2c,0x78,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x64,0x6f,0x75,0x62,0x6c, + 0x65,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x74,0x31,0x2c,0x79,0x30,0x2c,0x79,0x31,0x5f,0x78,0x2c,0x66,0x70,0x72, + 0x63,0x29,0x3b,0x09,0x09,0x0a,0x69,0x66,0x28,0x2a,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x20,0x26,0x78,0x29,0x3d,0x3d,0x28,0x32,0x30,0x34, + 0x37,0x55,0x4c,0x3c,0x3c,0x35,0x32,0x29,0x29,0x20,0x72,0x65,0x73,0x75,0x6c,0x74,0x3d,0x78,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x72,0x65,0x73,0x75,0x6c, + 0x74,0x3b,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x6e,0x65,0x72,0x5f,0x6c,0x6f,0x6f,0x70,0x28,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x2c,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c, + 0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61, + 0x6d,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75,0x62,0x2c,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32, + 0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x52,0x2c,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69, + 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a, + 0x65,0x2c,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x66,0x70,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, + 0x20,0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x77, + 0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x0a,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75, + 0x62,0x32,0x3d,0x73,0x75,0x62,0x3e,0x3e,0x31,0x3b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55, + 0x4e,0x54,0x2b,0x31,0x5d,0x3d,0x66,0x70,0x72,0x63,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72, + 0x20,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x70,0x3d,0x30,0x3b,0x20,0x69,0x70,0x3c,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74, + 0x68,0x3b,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x5d,0x3d,0x69, + 0x70,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x3d,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61, + 0x6d,0x5b,0x69,0x70,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73, + 0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4e,0x55,0x4d,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x28,0x57,0x4f,0x52,0x4b,0x45, + 0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2d,0x31,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75, + 0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4e,0x55,0x4d,0x5f,0x46,0x50,0x5f,0x49,0x4e,0x53,0x54,0x53,0x5f,0x4f, + 0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x2d,0x31,0x29,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3d,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73, + 0x2d,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x3c,0x3d,0x6e,0x75,0x6d,0x5f,0x77,0x6f,0x72,0x6b,0x65, + 0x72,0x73,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x6e,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d, + 0x73,0x75,0x62,0x2d,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f, + 0x66,0x70,0x3d,0x69,0x6e,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3c,0x6e,0x75,0x6d,0x5f,0x66,0x70,0x5f,0x69,0x6e,0x73,0x74,0x73,0x3b,0x0a,0x69,0x6e,0x73, + 0x74,0x3d,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5b,0x69,0x70,0x2b,0x28,0x69,0x73,0x5f,0x66,0x70,0x3f,0x73,0x75,0x62, + 0x32,0x3a,0x69,0x6e,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4f,0x50,0x43,0x4f,0x44,0x45,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x31,0x35,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x4c,0x4f,0x43,0x5f,0x4f,0x46, + 0x46,0x53,0x45,0x54,0x29,0x26,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f,0x73,0x69,0x7a,0x65, + 0x5f,0x73,0x68,0x69,0x66,0x74,0x3d,0x69,0x73,0x5f,0x66,0x70,0x3f,0x34,0x3a,0x33,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74, + 0x20,0x72,0x65,0x67,0x5f,0x62,0x61,0x73,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x69,0x73,0x5f,0x66,0x70,0x3f,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f,0x66, + 0x66,0x73,0x65,0x74,0x3a,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x72,0x65,0x67,0x5f,0x62,0x61,0x73,0x65,0x5f, + 0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x69,0x73,0x5f,0x66,0x70,0x3f,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f, + 0x6f,0x66,0x66,0x73,0x65,0x74,0x3a,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x69, + 0x6e,0x73,0x74,0x3e,0x3e,0x44,0x53,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x37,0x3b,0x0a,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x72, + 0x65,0x67,0x5f,0x62,0x61,0x73,0x65,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2b,0x28,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3c,0x3c,0x72,0x65,0x67,0x5f, + 0x73,0x69,0x7a,0x65,0x5f,0x73,0x68,0x69,0x66,0x74,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74, + 0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x37,0x3b,0x0a,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65, + 0x74,0x3d,0x28,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3c,0x3c,0x33,0x29,0x2b,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x3f,0x30,0x3a,0x72,0x65, + 0x67,0x5f,0x62,0x61,0x73,0x65,0x5f,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x2a,0x20,0x64,0x73,0x74,0x5f,0x70,0x74,0x72,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, + 0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x28,0x52,0x29,0x2b,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73, + 0x65,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x73,0x72,0x63,0x5f,0x70,0x74,0x72,0x3d,0x28, + 0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x38,0x5f,0x74,0x2a,0x29,0x28,0x52,0x29,0x2b,0x73,0x72,0x63,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x49,0x4d,0x4d,0x5f,0x4f,0x46,0x46,0x53,0x45, + 0x54,0x29,0x26,0x32,0x35,0x35,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20, + 0x69,0x6d,0x6d,0x5f,0x70,0x74,0x72,0x3d,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x2b,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x20,0x64,0x73,0x74,0x3d,0x2a,0x64,0x73,0x74,0x5f,0x70,0x74,0x72,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x73,0x72,0x63,0x3d, + 0x2a,0x73,0x72,0x63,0x5f,0x70,0x74,0x72,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6d,0x6d,0x3b,0x0a,0x69,0x6d,0x6d,0x2e,0x78,0x3d,0x69,0x6d,0x6d,0x5f,0x70, + 0x74,0x72,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x6d,0x6d,0x2e,0x79,0x3d,0x69,0x6d,0x6d,0x5f,0x70,0x74,0x72,0x5b,0x31,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x6c,0x6f,0x63,0x61, + 0x74,0x69,0x6f,0x6e,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x6f,0x63,0x5f,0x73,0x68,0x69,0x66,0x74, + 0x3d,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x3e,0x3e,0x32,0x31,0x29,0x26,0x33,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x6d,0x61,0x73,0x6b,0x3d,0x28,0x30,0x78,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x55,0x3e,0x3e,0x6c,0x6f,0x63,0x5f,0x73,0x68,0x69,0x66,0x74,0x29,0x2d,0x37,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x72,0x65,0x61,0x64,0x3d,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x21,0x3d,0x31,0x30,0x29, + 0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x61,0x64,0x64,0x72,0x3d,0x69,0x73,0x5f,0x72,0x65,0x61,0x64,0x3f,0x28,0x28,0x6c,0x6f,0x63,0x5f,0x73,0x68, + 0x69,0x66,0x74,0x3d,0x3d,0x4c,0x4f,0x43,0x5f,0x4c,0x33,0x29,0x3f,0x30,0x3a,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x29,0x29,0x3a, + 0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x64,0x73,0x74,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x2b,0x3d,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29, + 0x28,0x69,0x6d,0x6d,0x2e,0x78,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x20,0x26,0x3d,0x20,0x6d,0x61,0x73,0x6b,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x70,0x74,0x72,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, + 0x2a,0x29,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x61,0x64,0x64,0x72,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x73,0x5f,0x72,0x65,0x61,0x64,0x29, + 0x0a,0x7b,0x0a,0x73,0x72,0x63,0x3d,0x2a,0x70,0x74,0x72,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x70,0x74,0x72,0x3d,0x73,0x72,0x63,0x3b,0x0a, + 0x67,0x6f,0x74,0x6f,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x65,0x6e,0x64,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73, + 0x74,0x26,0x28,0x31,0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x33,0x32,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x3d, + 0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69, + 0x6d,0x6d,0x2e,0x78,0x29,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x3d,0x33,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74, + 0x26,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x3d,0x28, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x2d,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x6f, + 0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x30,0x29,0x20,0x64,0x73,0x74,0x2b,0x3d,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x29,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x3e,0x3e,0x53,0x48,0x49, + 0x46,0x54,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x26,0x33,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x32,0x29,0x20,0x64,0x73,0x74,0x2b,0x3d, + 0x73,0x72,0x63,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x69,0x6d,0x6d,0x36,0x34, + 0x3d,0x2a,0x28,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x20,0x26,0x69,0x6d,0x6d,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31, + 0x3c,0x3c,0x53,0x52,0x43,0x5f,0x49,0x53,0x5f,0x49,0x4d,0x4d,0x36,0x34,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72,0x63,0x3d,0x69,0x6d,0x6d,0x36, + 0x34,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x32,0x29,0x20,0x64,0x73,0x74,0x20,0x2a,0x3d,0x20,0x73,0x72,0x63,0x3b,0x0a,0x69,0x66,0x28, + 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x33,0x29,0x20,0x64,0x73,0x74,0x20,0x5e,0x3d,0x20,0x73,0x72,0x63,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66, + 0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x32,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x29,0x20,0x73,0x72,0x63,0x3d, + 0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x72,0x74,0x6e,0x28,0x28,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x3e,0x3e,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x2a,0x33,0x32,0x29,0x29,0x29,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69, + 0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f,0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x20,0x73,0x72, + 0x63,0x20,0x5e,0x3d,0x20,0x30,0x78,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x55,0x4c,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x6d,0x75,0x6c,0x3d,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x53,0x48,0x49,0x46,0x54,0x5f,0x4f,0x46,0x46, + 0x53,0x45,0x54,0x29,0x29,0x21,0x3d,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x61,0x3d,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62, + 0x6c,0x65,0x28,0x64,0x73,0x74,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x20,0x62,0x3d,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c, + 0x65,0x28,0x73,0x72,0x63,0x29,0x3b,0x0a,0x64,0x73,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x66,0x6d,0x61,0x5f,0x73,0x6f,0x66,0x74,0x28,0x61,0x2c, + 0x69,0x73,0x5f,0x6d,0x75,0x6c,0x3f,0x62,0x3a,0x31,0x2e,0x30,0x2c,0x69,0x73,0x5f,0x6d,0x75,0x6c,0x3f,0x30,0x2e,0x30,0x3a,0x62,0x2c,0x66,0x70,0x72,0x63,0x29,0x29, + 0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x39,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x2b,0x3d,0x28,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x78,0x29,0x3b,0x0a,0x69,0x66,0x28,0x28,0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x64, + 0x73,0x74,0x29,0x26,0x28,0x43,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x3c,0x3c,0x28,0x69,0x6d,0x6d,0x2e,0x79,0x26,0x33,0x31,0x29,0x29,0x29, + 0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x5d,0x3d, + 0x28,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x28,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x69,0x6d,0x6d,0x2e,0x79,0x29,0x3e,0x3e,0x35,0x29, + 0x2d,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x73,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d, + 0x3d,0x37,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x31,0x3d,0x73,0x72,0x63,0x26,0x36,0x33,0x3b,0x0a,0x23,0x69, + 0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x20,0x3e,0x20,0x30,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x32,0x3d,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, + 0x20,0x62,0x6f,0x6f,0x6c,0x20,0x69,0x73,0x5f,0x72,0x6f,0x6c,0x3d,0x28,0x69,0x6e,0x73,0x74,0x26,0x28,0x31,0x3c,0x3c,0x4e,0x45,0x47,0x41,0x54,0x49,0x56,0x45,0x5f, + 0x53,0x52,0x43,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x29,0x29,0x3b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x3e,0x3e,0x28,0x69,0x73,0x5f,0x72,0x6f,0x6c,0x3f, + 0x73,0x68,0x69,0x66,0x74,0x32,0x3a,0x73,0x68,0x69,0x66,0x74,0x31,0x29,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x28,0x69,0x73,0x5f,0x72,0x6f,0x6c,0x3f,0x73,0x68, + 0x69,0x66,0x74,0x31,0x3a,0x73,0x68,0x69,0x66,0x74,0x32,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x64,0x73,0x74,0x3d,0x28,0x64,0x73,0x74,0x3e,0x3e,0x73, + 0x68,0x69,0x66,0x74,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x31,0x29,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69, + 0x66,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x34,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x61,0x73, + 0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x73,0x71,0x72,0x74,0x5f,0x72,0x6e,0x64,0x28,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x64,0x73,0x74,0x29,0x2c,0x66, + 0x70,0x72,0x63,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x36,0x29,0x0a,0x7b,0x0a,0x64,0x73, + 0x74,0x3d,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28,0x64,0x73,0x74,0x2c,0x73,0x72,0x63,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3d,0x3d,0x34,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x6d,0x75,0x6c,0x5f,0x68,0x69,0x28, + 0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x64,0x73,0x74,0x29,0x2c,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x29,0x29,0x29,0x3b, + 0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x31,0x29,0x0a,0x7b,0x0a,0x64,0x73,0x74,0x3d,0x2a,0x28,0x5f, + 0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38, + 0x5f,0x74,0x2a,0x29,0x28,0x52,0x29,0x2b,0x28,0x64,0x73,0x74,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x5e,0x38,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20, + 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x38,0x29,0x0a,0x7b,0x0a,0x2a,0x73,0x72,0x63,0x5f,0x70,0x74,0x72,0x3d,0x64,0x73,0x74,0x3b,0x0a,0x64,0x73, + 0x74,0x3d,0x73,0x72,0x63,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x31,0x35,0x29,0x0a,0x7b,0x0a,0x73, + 0x72,0x63,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x63,0x6f,0x6e,0x76,0x65,0x72,0x74,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x72,0x74,0x6e,0x28,0x28, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x29,0x28,0x73,0x72,0x63,0x3e,0x3e,0x28,0x28,0x73,0x75,0x62,0x26,0x31,0x29,0x2a,0x33,0x32,0x29,0x29,0x29,0x29,0x3b,0x0a,0x73, + 0x72,0x63,0x20,0x26,0x3d,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x73,0x72,0x63,0x7c,0x3d, + 0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x64,0x73,0x74,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x64,0x69,0x76,0x5f, + 0x72,0x6e,0x64,0x28,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x64,0x73,0x74,0x29,0x2c,0x61,0x73,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x28,0x73,0x72,0x63, + 0x29,0x2c,0x66,0x70,0x72,0x63,0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x3d,0x35,0x29,0x0a,0x7b, + 0x0a,0x64,0x73,0x74,0x3d,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x2d,0x28,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x64,0x73,0x74,0x29,0x29, + 0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x52,0x4f,0x55,0x4e,0x44,0x49,0x4e,0x47,0x5f,0x4d,0x4f,0x44,0x45,0x3c,0x30,0x29,0x0a,0x7b,0x0a,0x69, + 0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2b,0x31,0x5d,0x3d,0x28,0x28,0x73,0x72,0x63,0x3e, + 0x3e,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x28,0x36,0x34,0x2d,0x69,0x6d,0x6d,0x5f,0x6f,0x66,0x66,0x73,0x65, + 0x74,0x29,0x29,0x29,0x26,0x33,0x3b,0x0a,0x67,0x6f,0x74,0x6f,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x65,0x6e,0x64,0x3b,0x0a,0x7d,0x0a,0x2a,0x64, + 0x73,0x74,0x5f,0x70,0x74,0x72,0x3d,0x64,0x73,0x74,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x78,0x65,0x63,0x75,0x74,0x69,0x6f,0x6e,0x5f,0x65,0x6e,0x64,0x3a,0x0a,0x7b, + 0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f,0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x69, + 0x70,0x3d,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x5d,0x3b,0x0a,0x66,0x70,0x72,0x63, + 0x3d,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x5b,0x49,0x4d,0x4d,0x5f,0x49,0x4e,0x44,0x45,0x58,0x5f,0x43,0x4f,0x55,0x4e,0x54,0x2b,0x31,0x5d,0x3b,0x0a,0x69,0x70,0x2b, + 0x3d,0x6e,0x75,0x6d,0x5f,0x69,0x6e,0x73,0x74,0x73,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x66,0x70,0x72,0x63,0x3b,0x0a,0x7d, + 0x0a,0x23,0x69,0x66,0x20,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x20,0x3d,0x3d,0x20,0x31,0x36,0x0a,0x5f,0x5f,0x61,0x74, + 0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28, + 0x33,0x32,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72, + 0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x31,0x36,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x23,0x65, + 0x6e,0x64,0x69,0x66,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x5f,0x76,0x6d,0x28,0x5f,0x5f, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x76,0x6f,0x69,0x64,0x2a,0x20,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x73,0x63, + 0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x76,0x6f,0x69,0x64,0x2a,0x20,0x64, + 0x61,0x74,0x61,0x73,0x65,0x74,0x5f,0x70,0x74,0x72,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x66,0x69,0x72,0x73,0x74,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6c,0x61,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5b,0x28,0x56,0x4d,0x5f,0x53,0x54,0x41,0x54, + 0x45,0x5f,0x53,0x49,0x5a,0x45,0x2a,0x32,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x5d,0x3b,0x0a,0x6c,0x6f,0x61, + 0x64,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x2c,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28, + 0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74, + 0x29,0x2c,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x3b,0x0a,0x62,0x61,0x72,0x72,0x69,0x65,0x72,0x28,0x43,0x4c,0x4b,0x5f,0x4c,0x4f,0x43,0x41,0x4c,0x5f, + 0x4d,0x45,0x4d,0x5f,0x46,0x45,0x4e,0x43,0x45,0x29,0x3b,0x0a,0x65,0x6e,0x75,0x6d,0x20,0x7b,0x20,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x3d,0x28,0x57,0x4f, + 0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3d,0x3d,0x31,0x36,0x29,0x3f,0x31,0x36,0x3a,0x38,0x20,0x7d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x52,0x3d,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x2b, + 0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x2a,0x56,0x4d,0x5f,0x53, + 0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x46,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28, + 0x52,0x2b,0x38,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x45,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c, + 0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x64,0x78,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2f,0x49,0x44, + 0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x20,0x25,0x20,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x61, + 0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3b, + 0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x6d,0x78,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a, + 0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x61,0x64,0x64,0x72, + 0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a, + 0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x32,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36, + 0x34,0x5f,0x74,0x2a,0x20,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x30,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a, + 0x29,0x28,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73, + 0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x30,0x78,0x66,0x66,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20, + 0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x31,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x28,0x61, + 0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3e,0x3e,0x38,0x29,0x26,0x30,0x78,0x66,0x66,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x32,0x3d,0x28,0x5f,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38, + 0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3e,0x3e,0x31,0x36,0x29,0x26,0x30, + 0x78,0x66,0x66,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x72, + 0x65,0x61,0x64,0x52,0x65,0x67,0x33,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x28,0x28,0x5f,0x5f, + 0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x52,0x29,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x73,0x3e,0x3e,0x32,0x34,0x29,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x64,0x61,0x74,0x61,0x73,0x65, + 0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31, + 0x36,0x29,0x29,0x5b,0x33,0x5d,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20, + 0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74, + 0x2a,0x29,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x5f,0x70,0x74,0x72,0x29,0x2b,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x4f,0x66,0x66,0x73,0x65,0x74,0x3b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x36,0x34,0x2b,0x28,0x28, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x26,0x31,0x29,0x3c,0x3c,0x33,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x3d,0x31,0x39,0x32,0x2b,0x28,0x28, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x26,0x31,0x29,0x3c,0x3c,0x33,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x65,0x4d,0x61,0x73,0x6b,0x3d,0x52,0x2b,0x31,0x38,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x20,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x3d,0x28,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x32,0x30,0x29,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x72,0x63,0x3d,0x28, + 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x29,0x5b,0x69,0x64, + 0x78,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x3d,0x66,0x69,0x72,0x73,0x74,0x3f,0x6d,0x78,0x3a,0x30,0x3b, + 0x0a,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x3d,0x66,0x69,0x72,0x73,0x74,0x3f,0x6d,0x61,0x3a,0x30,0x3b,0x0a,0x5f,0x5f, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x3d,0x28,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x38,0x5f,0x74,0x2a,0x29,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x73,0x29,0x2b,0x69,0x64,0x78,0x2a, + 0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x33, + 0x2b,0x36,0x34,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3d,0x28,0x73,0x75,0x62,0x3c,0x34,0x29, + 0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x66,0x65,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x28,0x46,0x2b, + 0x73,0x75,0x62,0x2a,0x32,0x29,0x3a,0x28,0x45,0x2b,0x28,0x73,0x75,0x62,0x2d,0x34,0x29,0x2a,0x32,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f, + 0x75,0x62,0x6c,0x65,0x2a,0x20,0x66,0x3d,0x46,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x65, + 0x3d,0x45,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x3d,0x66, + 0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x28,0x2d,0x31,0x29,0x3a,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e, + 0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6f,0x72,0x4d,0x61,0x73,0x6b, + 0x31,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x30,0x3a,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x36,0x34,0x5f,0x74,0x20,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x32,0x3d,0x66,0x5f,0x67,0x72,0x6f,0x75,0x70,0x3f,0x30,0x3a,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x31,0x5d,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x3d,0x28,0x73, + 0x75,0x62,0x26,0x31,0x29,0x3f,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x31,0x5d,0x3a,0x65,0x4d,0x61,0x73,0x6b,0x5b,0x30,0x5d,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x69,0x6d,0x6d,0x5f,0x62,0x75,0x66,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, + 0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75, + 0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x2a,0x20,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x3d,0x28,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x52,0x2b,0x28,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x5f,0x53,0x49,0x5a,0x45,0x2b, + 0x49,0x4d,0x4d,0x5f,0x42,0x55,0x46,0x5f,0x53,0x49,0x5a,0x45,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x28,0x31, + 0x3c,0x3c,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x2d,0x31,0x29,0x3c,0x3c,0x28,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f, + 0x63,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x2a,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x3b, + 0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x66,0x70,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b,0x3d, + 0x33,0x3c,0x3c,0x28,0x28,0x28,0x73,0x75,0x62,0x3e,0x3e,0x31,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x69,0x64,0x28, + 0x30,0x29,0x2f,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x2a,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d, + 0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x63,0x3d,0x30,0x3b,0x20,0x69,0x63,0x3c,0x6e,0x75,0x6d, + 0x5f,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73,0x3b,0x20,0x2b,0x2b,0x69,0x63,0x29,0x0a,0x7b,0x0a,0x5f,0x5f,0x6c,0x6f,0x63,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x36,0x34,0x5f,0x74,0x20,0x2a,0x72,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x2a,0x70,0x30,0x2c, + 0x2a,0x70,0x31,0x3b,0x0a,0x69,0x66,0x28,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3c,0x3d,0x38,0x29,0x7c,0x7c,0x28, + 0x73,0x75,0x62,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x73,0x70,0x4d,0x69,0x78,0x3d,0x2a, + 0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x30,0x5e,0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x31,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x20,0x5e,0x3d,0x20,0x28, + 0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x73,0x70,0x4d,0x69,0x78,0x29,0x5b,0x30,0x5d,0x3b,0x0a,0x73,0x70,0x41, + 0x64,0x64,0x72,0x31,0x20,0x5e,0x3d,0x20,0x28,0x28,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x73,0x70,0x4d,0x69,0x78, + 0x29,0x5b,0x31,0x5d,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x20,0x26,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73, + 0x6b,0x36,0x34,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x20,0x26,0x3d,0x20,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b, + 0x36,0x34,0x3b,0x0a,0x70,0x30,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x73,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x73,0x70,0x41,0x64,0x64,0x72,0x30,0x2b,0x73,0x75,0x62,0x2a,0x38,0x29,0x3b,0x0a,0x70,0x31,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2b,0x73,0x70,0x41,0x64,0x64,0x72, + 0x31,0x2b,0x73,0x75,0x62,0x2a,0x38,0x29,0x3b,0x0a,0x72,0x3d,0x52,0x2b,0x73,0x75,0x62,0x3b,0x0a,0x2a,0x72,0x20,0x5e,0x3d,0x20,0x2a,0x70,0x30,0x3b,0x0a,0x75,0x69, + 0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6d,0x65,0x6d,0x5f,0x64,0x61,0x74,0x61,0x3d,0x2a,0x70,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x2a,0x20,0x71,0x3d,0x28,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x26,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x6d,0x65,0x6d,0x5f,0x64,0x61,0x74, + 0x61,0x3b,0x0a,0x66,0x65,0x5b,0x30,0x5d,0x3d,0x6c,0x6f,0x61,0x64,0x5f,0x46,0x5f,0x45,0x5f,0x67,0x72,0x6f,0x75,0x70,0x73,0x28,0x71,0x5b,0x30,0x5d,0x2c,0x61,0x6e, + 0x64,0x4d,0x61,0x73,0x6b,0x2c,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x31,0x29,0x3b,0x0a,0x66,0x65,0x5b,0x31,0x5d,0x3d,0x6c,0x6f,0x61,0x64,0x5f,0x46,0x5f,0x45,0x5f,0x67, + 0x72,0x6f,0x75,0x70,0x73,0x28,0x71,0x5b,0x31,0x5d,0x2c,0x61,0x6e,0x64,0x4d,0x61,0x73,0x6b,0x2c,0x6f,0x72,0x4d,0x61,0x73,0x6b,0x32,0x29,0x3b,0x0a,0x7d,0x0a,0x69, + 0x66,0x28,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3d,0x3d,0x49,0x44,0x58,0x5f,0x57,0x49,0x44,0x54,0x48,0x29,0x7c, + 0x7c,0x28,0x73,0x75,0x62,0x3c,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x29,0x29,0x0a,0x66,0x70,0x72,0x63,0x3d,0x69,0x6e, + 0x6e,0x65,0x72,0x5f,0x6c,0x6f,0x6f,0x70,0x28,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x5f,0x6c,0x65,0x6e,0x67,0x74,0x68,0x2c,0x63,0x6f,0x6d,0x70,0x69,0x6c,0x65,0x64, + 0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x2c,0x73,0x75,0x62,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x2c,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x6f, + 0x66,0x66,0x73,0x65,0x74,0x2c,0x66,0x70,0x5f,0x72,0x65,0x67,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x41,0x5f,0x6f,0x66,0x66,0x73,0x65,0x74,0x2c,0x52,0x2c,0x69,0x6d, + 0x6d,0x5f,0x62,0x75,0x66,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x66,0x70,0x72,0x63,0x2c,0x66,0x70,0x5f,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73, + 0x5f,0x6d,0x61,0x73,0x6b,0x2c,0x78,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x2c,0x77,0x6f,0x72,0x6b,0x65,0x72,0x73,0x5f,0x6d,0x61,0x73,0x6b, + 0x29,0x3b,0x0a,0x69,0x66,0x28,0x28,0x57,0x4f,0x52,0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3c,0x3d,0x38,0x29,0x7c,0x7c,0x28,0x73,0x75, + 0x62,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x6d,0x78,0x20,0x5e,0x3d,0x20,0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67,0x32,0x5e,0x2a,0x72,0x65,0x61,0x64,0x52,0x65,0x67, + 0x33,0x3b,0x0a,0x6d,0x78,0x20,0x26,0x3d,0x20,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x6e,0x65,0x78,0x74,0x5f,0x72,0x3d,0x2a,0x72,0x5e,0x2a,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x28,0x64,0x61,0x74,0x61,0x73,0x65,0x74,0x2b,0x6d,0x61,0x2b,0x73,0x75,0x62, + 0x2a,0x38,0x29,0x3b,0x0a,0x2a,0x72,0x3d,0x6e,0x65,0x78,0x74,0x5f,0x72,0x3b,0x0a,0x2a,0x70,0x31,0x3d,0x6e,0x65,0x78,0x74,0x5f,0x72,0x3b,0x0a,0x2a,0x70,0x30,0x3d, + 0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x66,0x5b,0x30,0x5d,0x29,0x5e,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x65,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x75, + 0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x74,0x6d,0x70,0x3d,0x6d,0x61,0x3b,0x0a,0x6d,0x61,0x3d,0x6d,0x78,0x3b,0x0a,0x6d,0x78,0x3d,0x74,0x6d,0x70,0x3b,0x0a,0x73, + 0x70,0x41,0x64,0x64,0x72,0x30,0x3d,0x30,0x3b,0x0a,0x73,0x70,0x41,0x64,0x64,0x72,0x31,0x3d,0x30,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x28,0x57,0x4f,0x52, + 0x4b,0x45,0x52,0x53,0x5f,0x50,0x45,0x52,0x5f,0x48,0x41,0x53,0x48,0x3e,0x38,0x29,0x26,0x26,0x28,0x73,0x75,0x62,0x3e,0x3d,0x38,0x29,0x29,0x0a,0x72,0x65,0x74,0x75, + 0x72,0x6e,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x70,0x3d,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f, + 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x29,0x76,0x6d,0x5f,0x73,0x74,0x61,0x74,0x65,0x73,0x29,0x2b,0x69,0x64,0x78,0x2a,0x28,0x56,0x4d, + 0x5f,0x53,0x54,0x41,0x54,0x45,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x29,0x29,0x3b,0x0a,0x70, + 0x5b,0x73,0x75,0x62,0x5d,0x3d,0x52,0x5b,0x73,0x75,0x62,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x29,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x66, + 0x70,0x72,0x63,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x6c,0x61,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x70,0x5b,0x73,0x75,0x62,0x2b,0x38,0x5d,0x3d,0x61,0x73,0x5f,0x75,0x6c, + 0x6f,0x6e,0x67,0x28,0x46,0x5b,0x73,0x75,0x62,0x5d,0x29,0x5e,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x45,0x5b,0x73,0x75,0x62,0x5d,0x29,0x3b,0x0a,0x70,0x5b, + 0x73,0x75,0x62,0x2b,0x31,0x36,0x5d,0x3d,0x61,0x73,0x5f,0x75,0x6c,0x6f,0x6e,0x67,0x28,0x45,0x5b,0x73,0x75,0x62,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65, + 0x20,0x69,0x66,0x28,0x73,0x75,0x62,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f, + 0x74,0x2a,0x29,0x28,0x70,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x6d,0x61,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, + 0x74,0x33,0x32,0x5f,0x74,0x2a,0x29,0x28,0x70,0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x6d,0x78,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72, + 0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34, + 0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x66,0x69,0x6e,0x64,0x5f,0x73,0x68,0x61,0x72,0x65, + 0x73,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x2a,0x20,0x68,0x61,0x73,0x68,0x65, + 0x73,0x2c,0x75,0x69,0x6e,0x74,0x36,0x34,0x5f,0x74,0x20,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x73,0x74,0x61,0x72,0x74, + 0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x73,0x68,0x61,0x72,0x65,0x73, + 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d, + 0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x3b,0x0a,0x69,0x66,0x28,0x68,0x61,0x73,0x68,0x65,0x73,0x5b,0x67,0x6c,0x6f,0x62, + 0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x34,0x2b,0x33,0x5d,0x3c,0x74,0x61,0x72,0x67,0x65,0x74,0x29,0x20,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x64,0x78,0x3d,0x61,0x74,0x6f,0x6d,0x69,0x63,0x5f,0x69,0x6e,0x63,0x28,0x73,0x68,0x61,0x72,0x65,0x73,0x2b,0x30,0x78,0x46, + 0x46,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x64,0x78,0x3c,0x30,0x78,0x46,0x46,0x29,0x20,0x7b,0x0a,0x73,0x68,0x61,0x72,0x65,0x73,0x5b,0x69,0x64,0x78,0x5d,0x3d,0x73, + 0x74,0x61,0x72,0x74,0x5f,0x6e,0x6f,0x6e,0x63,0x65,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x7d,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x49,0x4e,0x49,0x54,0x49,0x41,0x4c,0x5f,0x48,0x41,0x53,0x48,0x5f,0x53,0x49,0x5a,0x45,0x20,0x36,0x34,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x49,0x4e,0x54,0x45,0x52,0x4d,0x45,0x44,0x49,0x41,0x54,0x45,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x28,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x2a,0x20,0x31,0x36,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x43,0x4f,0x4d,0x50,0x49,0x4c,0x45,0x44,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x31,0x30,0x30,0x34,0x38,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x4e,0x55,0x4d,0x5f,0x56,0x47,0x50,0x52,0x5f,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x20,0x31,0x32,0x38,0x0a,0x23,0x64,0x65, + 0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x35,0x32,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70, + 0x6f,0x6e,0x65,0x6e,0x74,0x53,0x69,0x7a,0x65,0x20,0x31,0x31,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73, + 0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x4d,0x61,0x73,0x6b,0x20,0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x65,0x78,0x70,0x6f, + 0x6e,0x65,0x6e,0x74,0x53,0x69,0x7a,0x65,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x65,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42, + 0x69,0x61,0x73,0x20,0x31,0x30,0x32,0x33,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74, + 0x42,0x69,0x74,0x73,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x73,0x74,0x61,0x74,0x69,0x63,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74, + 0x73,0x20,0x34,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x63,0x6f,0x6e,0x73,0x74,0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x20,0x30,0x78, + 0x33,0x30,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x4d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x4d,0x61,0x73,0x6b,0x20, + 0x28,0x28,0x31,0x55,0x4c,0x20,0x3c,0x3c,0x20,0x28,0x6d,0x61,0x6e,0x74,0x69,0x73,0x73,0x61,0x53,0x69,0x7a,0x65,0x20,0x2b,0x20,0x64,0x79,0x6e,0x61,0x6d,0x69,0x63, + 0x45,0x78,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x42,0x69,0x74,0x73,0x29,0x29,0x20,0x2d,0x20,0x31,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x20,0x33,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x20,0x33,0x39,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x20,0x35,0x30,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x20,0x28,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44, + 0x5f,0x4c,0x33,0x20,0x2d,0x20,0x38,0x29,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x42,0x49, + 0x54,0x53,0x20,0x38,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54, + 0x20,0x38,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x20,0x30,0x78,0x62,0x65,0x38,0x30,0x32,0x30,0x30,0x63,0x75,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x5f,0x43,0x41,0x4c,0x43,0x5f,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x20,0x30, + 0x78,0x33,0x36,0x33,0x38,0x30,0x30,0x30,0x65,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44, + 0x57,0x4f,0x52,0x44,0x58,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x20,0x30,0x78,0x64,0x63,0x33,0x34,0x38,0x30,0x30, + 0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f, + 0x4c,0x4f,0x41,0x44,0x32,0x20,0x30,0x78,0x62,0x66,0x38,0x63,0x33,0x66,0x37,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x52,0x45,0x41,0x44, + 0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x20,0x30,0x78,0x64,0x37,0x36,0x30, + 0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f, + 0x52,0x20,0x30,0x78,0x39,0x61,0x38,0x66,0x31,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f, + 0x49,0x4d,0x55,0x4c,0x20,0x30,0x78,0x39,0x33,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48, + 0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x5f,0x32,0x20,0x30,0x78,0x39,0x61,0x38,0x66,0x66,0x66,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69, + 0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x30,0x78,0x39,0x61,0x61,0x31,0x30,0x65,0x31, + 0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x30,0x78, + 0x62,0x65,0x61,0x30,0x30,0x33,0x66,0x66,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49, + 0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x30,0x78,0x39,0x61,0x38,0x66,0x32,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x58,0x4f, + 0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x20,0x30,0x78,0x38,0x39,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d, + 0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x58,0x4f,0x52,0x5f,0x52,0x20,0x30,0x78,0x62,0x65,0x62,0x65,0x30,0x33,0x66,0x66,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x53,0x5f,0x4c,0x53,0x48,0x52,0x20,0x30,0x78,0x39,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4c,0x53, + 0x48,0x4c,0x20,0x30,0x78,0x38,0x66,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4f,0x52,0x20,0x30,0x78,0x38,0x38, + 0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x41,0x4e,0x44,0x20,0x30,0x78,0x38,0x37,0x30,0x30,0x30,0x30,0x30,0x30, + 0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x42,0x46,0x45,0x20,0x30,0x78,0x39,0x34,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x44,0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20,0x30,0x78,0x64,0x38,0x64, + 0x34,0x38,0x30,0x30,0x31,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x20,0x30,0x78,0x64,0x35,0x36,0x34,0x30, + 0x30,0x33,0x63,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x33,0x36,0x30,0x30,0x30,0x30,0x30, + 0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x5f,0x53,0x43,0x52, + 0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x46,0x50,0x20,0x30,0x78,0x64,0x63,0x33,0x30,0x38,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66, + 0x69,0x6e,0x65,0x20,0x56,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x33,0x61,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x56,0x5f,0x4d,0x55,0x4c,0x5f,0x46,0x36,0x34,0x20,0x30,0x78,0x64,0x35,0x36,0x35,0x30,0x30,0x34,0x34,0x75,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x20,0x30,0x78,0x62,0x65,0x38,0x30,0x31, + 0x64,0x30,0x63,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x5f,0x43,0x41,0x4c,0x43,0x5f,0x41,0x44,0x44,0x52, + 0x45,0x53,0x53,0x20,0x30,0x78,0x32,0x36,0x33,0x38,0x30,0x30,0x30,0x65,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c, + 0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x58,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x20,0x30,0x78,0x64,0x63, + 0x35,0x34,0x38,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41,0x54,0x43, + 0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x20,0x30,0x78,0x62,0x66,0x38,0x63,0x30,0x66,0x37,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56, + 0x5f,0x52,0x45,0x41,0x44,0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x20,0x30, + 0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f, + 0x49,0x4d,0x55,0x4c,0x5f,0x52,0x20,0x30,0x78,0x39,0x36,0x30,0x66,0x31,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c, + 0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x20,0x30,0x78,0x39,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f, + 0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x5f,0x32,0x20,0x30,0x78,0x39,0x36,0x30,0x66,0x66,0x66,0x31,0x30,0x75,0x0a, + 0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x20,0x30,0x78,0x39,0x36, + 0x32,0x31,0x30,0x65,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52, + 0x43,0x50,0x20,0x30,0x78,0x62,0x65,0x61,0x30,0x30,0x30,0x66,0x66,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f, + 0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x20,0x30,0x78,0x39,0x36,0x30,0x66,0x32,0x30,0x31,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x20,0x30,0x78,0x38,0x38,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e, + 0x65,0x20,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x58,0x4f,0x52,0x5f,0x52,0x20,0x30,0x78,0x62,0x65,0x62,0x65,0x30,0x30,0x66,0x66,0x75,0x0a,0x23,0x64, + 0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4c,0x53,0x48,0x52,0x20,0x30,0x78,0x38,0x66,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65, + 0x20,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x20,0x30,0x78,0x38,0x65,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x4f,0x52, + 0x20,0x30,0x78,0x38,0x37,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x41,0x4e,0x44,0x20,0x30,0x78,0x38,0x36,0x30, + 0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x53,0x5f,0x42,0x46,0x45,0x20,0x30,0x78,0x39,0x33,0x30,0x30,0x30,0x30,0x30,0x30,0x75, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x44,0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x20, + 0x30,0x78,0x64,0x38,0x37,0x61,0x38,0x30,0x30,0x31,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x20,0x30,0x78, + 0x64,0x32,0x38,0x30,0x30,0x30,0x33,0x63,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x32,0x36, + 0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52, + 0x44,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x46,0x50,0x20,0x30,0x78,0x64,0x63,0x35,0x30,0x38,0x30,0x30,0x30,0x75, + 0x0a,0x23,0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x20,0x30,0x78,0x32,0x61,0x30,0x30,0x30,0x30,0x30,0x30,0x75,0x0a,0x23, + 0x64,0x65,0x66,0x69,0x6e,0x65,0x20,0x56,0x5f,0x4d,0x55,0x4c,0x5f,0x46,0x36,0x34,0x20,0x30,0x78,0x64,0x32,0x38,0x31,0x30,0x30,0x34,0x34,0x75,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c, + 0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x2c,0x75,0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x33,0x32,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65, + 0x67,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x31, + 0x30,0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x33,0x32,0x3b,0x0a, + 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x4e,0x44,0x5f,0x42,0x33,0x32,0x5f,0x43,0x41,0x4c,0x43,0x5f,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x7c,0x28,0x6d, + 0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65, + 0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20, + 0x69,0x6d,0x6d,0x33,0x32,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, + 0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x66,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x33,0x32,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72, + 0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63, + 0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20, + 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d, + 0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x58,0x32,0x5f,0x53, + 0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31, + 0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x30,0x78,0x33,0x32,0x35,0x34,0x33,0x39,0x30,0x32,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x31, + 0x31,0x63,0x36,0x61,0x32,0x62,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x31,0x61,0x39,0x30,0x31,0x30,0x33, + 0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x63,0x35,0x34,0x30,0x30,0x30,0x30,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x32,0x61,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29, + 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61, + 0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x69,0x6e,0x74,0x20,0x76,0x6d, + 0x63,0x6e,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e,0x3d,0x30,0x29,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x57,0x41,0x49, + 0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x28,0x76,0x6d,0x63,0x6e,0x74,0x26,0x31,0x35,0x29, + 0x7c,0x28,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e,0x3e,0x34,0x29,0x3c,0x3c,0x31,0x34,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x52,0x45,0x41,0x44, + 0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x31,0x34,0x3b,0x0a,0x2a,0x28, + 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x75,0x7c,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x52,0x45,0x41,0x44,0x4c,0x41,0x4e,0x45,0x5f,0x42,0x33,0x32,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f, + 0x41,0x44,0x32,0x7c,0x31,0x35,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x75,0x7c,0x28,0x76,0x67,0x70,0x72, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x2b,0x31,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73, + 0x73,0x5f,0x66,0x70,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x2c,0x75, + 0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x33,0x32,0x2c,0x75,0x69,0x6e,0x74,0x20,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74, + 0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x31,0x30,0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x73, + 0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x33,0x32,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41, + 0x4e,0x44,0x5f,0x42,0x33,0x32,0x7c,0x30,0x78,0x33,0x38,0x30,0x30,0x30,0x65,0x75,0x7c,0x28,0x6d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3c,0x3c,0x39,0x29,0x3b,0x0a, + 0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x34, + 0x61,0x33,0x38,0x35,0x39,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6c,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3d,0x3d,0x20,0x31, + 0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x36,0x38,0x33,0x38,0x35,0x39,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b, + 0x2b,0x29,0x3d,0x30,0x78,0x33,0x32,0x33,0x38,0x35,0x39,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b, + 0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x5f,0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x76, + 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20, + 0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x47,0x4c,0x4f,0x42,0x41,0x4c,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x44,0x57,0x4f,0x52,0x44,0x5f,0x53,0x43,0x52,0x41, + 0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x5f,0x46,0x50,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31, + 0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x30,0x78,0x33,0x32,0x35,0x34,0x33,0x39,0x30,0x32,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x31, + 0x31,0x63,0x36,0x61,0x32,0x62,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x31,0x61,0x39,0x30,0x31,0x30,0x33, + 0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x63,0x35,0x30,0x30,0x30,0x30,0x30,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x32,0x61,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3c,0x32,0x34,0x29, + 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x69,0x6e,0x74, + 0x20,0x76,0x6d,0x63,0x6e,0x74,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e,0x3d,0x30,0x29,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f, + 0x57,0x41,0x49,0x54,0x43,0x4e,0x54,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x4f,0x41,0x44,0x32,0x7c,0x28,0x76,0x6d,0x63,0x6e,0x74,0x26, + 0x31,0x35,0x29,0x7c,0x28,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3e,0x3e,0x34,0x29,0x3c,0x3c,0x31,0x34,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37, + 0x65,0x33,0x38,0x30,0x39,0x30,0x30,0x75,0x7c,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d, + 0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6a,0x69,0x74,0x5f,0x65,0x6d,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63, + 0x74,0x69,0x6f,0x6e,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x2a,0x20,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x2c,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78, + 0x2c,0x69,0x6e,0x74,0x20,0x76,0x6d,0x63,0x6e,0x74,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x75,0x69, + 0x6e,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e, + 0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, + 0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6d, + 0x6f,0x64,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32,0x34,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66, + 0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x32,0x29,0x20,0x25,0x20,0x34,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x3e,0x30,0x29,0x20,0x0a,0x7b,0x0a,0x2a, + 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x38,0x65,0x38,0x30,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c, + 0x28,0x73,0x68,0x69,0x66,0x74,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28, + 0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31, + 0x30,0x66,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65, + 0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c, + 0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31, + 0x31,0x31,0x31,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c, + 0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x64,0x73,0x74,0x3d,0x3d,0x35,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31, + 0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31,0x30,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73, + 0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x28,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79, + 0x29,0x3c,0x30,0x29,0x3f,0x30,0x78,0x63,0x31,0x3a,0x30,0x78,0x38,0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b, + 0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b, + 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a, + 0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69, + 0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61, + 0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34, + 0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70, + 0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65, + 0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74, + 0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28, + 0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, + 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70, + 0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c, + 0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x30,0x65, + 0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30, + 0x78,0x38,0x32,0x31,0x31,0x30,0x66,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d, 0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, - 0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x39,0x30,0x31,0x30,0x38,0x30,0x75,0x7c, - 0x28,0x64,0x73,0x74,0x3c,0x3c,0x39,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32, - 0x39,0x31,0x31,0x31,0x38,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x39,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x0a,0x72,0x65,0x74, - 0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e, - 0x45,0x47,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f, - 0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f, - 0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x39,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64, - 0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x61, - 0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x4f,0x56, - 0x5f,0x42,0x33,0x32,0x5f,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x39,0x30,0x33,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31, - 0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x58, - 0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x31,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73, - 0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72, - 0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52, - 0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f, + 0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x30,0x78,0x38,0x30,0x39,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29, + 0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x31,0x31,0x31,0x31,0x75,0x7c,0x28,0x64, + 0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73, + 0x65,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x39,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29, + 0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x30,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29, + 0x7c,0x28,0x28,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x3f,0x30,0x78,0x63,0x31,0x3a,0x30,0x78,0x38,0x30,0x29, + 0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67, + 0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a, + 0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63, + 0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61, + 0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63, + 0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f, + 0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f, + 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f, + 0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d, + 0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d, + 0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, + 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a, + 0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b, + 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x39,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73, + 0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x30,0x66,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, + 0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72, + 0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34, + 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x7c,0x28,0x64,0x73,0x74, + 0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65, + 0x33,0x38,0x30,0x32,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30, + 0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x32,0x31,0x31,0x63,0x75,0x2b,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31, + 0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30, + 0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f, + 0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x31,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63, + 0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x30,0x66,0x30,0x65,0x30,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, + 0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x31,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c, + 0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x30,0x65,0x30,0x66,0x75,0x7c, + 0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c, + 0x7c,0x30,0x78,0x31,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73, + 0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f, + 0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c, + 0x5f,0x52,0x5f,0x32,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x23,0x65, + 0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30,0x32,0x66,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69, + 0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30,0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x32,0x31,0x31,0x63,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, + 0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75,0x3b, + 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x20,0x0a,0x7b,0x0a, + 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x38,0x66,0x31,0x30,0x30,0x66,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x2a, + 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x66,0x66,0x31,0x31,0x75,0x7c,0x28, + 0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30, + 0x78,0x38,0x30,0x31,0x31,0x30,0x65,0x30,0x66,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d, + 0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x31,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28, + 0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72, + 0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c, + 0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f, 0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a, 0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, 0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20, @@ -3583,266 +3348,441 @@ static const char randomx_cl[134345] = { 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, 0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70, 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, - 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x58,0x4f,0x52, - 0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x39,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c, - 0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c, - 0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f, - 0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x61,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29, - 0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x38,0x66,0x31,0x30,0x63,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x61,0x32,0x30,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b, - 0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x61,0x30,0x31,0x30,0x31,0x30, - 0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30, - 0x38,0x66,0x31,0x30,0x63,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c, - 0x30,0x78,0x61,0x32,0x30,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x29,0x3f,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3a,0x2d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x26,0x36, - 0x33,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x61,0x30,0x38,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, - 0x3c,0x31,0x29,0x7c,0x28,0x73,0x68,0x69,0x66,0x74,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78, - 0x61,0x32,0x38,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x28,0x36,0x34,0x2d,0x73,0x68,0x69,0x66,0x74,0x29,0x3c,0x3c,0x38,0x29, - 0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4f,0x52,0x7c,0x30,0x78,0x39,0x30,0x32,0x32,0x32,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c, - 0x31,0x37,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52, - 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52, - 0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49, - 0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x30,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74, - 0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x73,0x72, - 0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34, - 0x32,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, - 0x30,0x78,0x62,0x65,0x61,0x30,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x32,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09, - 0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x44, - 0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78, - 0x33,0x63,0x30,0x30,0x30,0x30,0x33,0x63,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x32,0x35,0x29,0x3b,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x44,0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x64,0x30,0x30,0x30,0x30,0x33,0x64,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x32, - 0x35,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x66,0x38,0x63,0x63,0x30,0x37,0x66,0x75,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70, - 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52, - 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29, - 0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29, - 0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x32,0x36,0x39,0x33,0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31, - 0x29,0x2b,0x28,0x28,0x73,0x72,0x63,0x26,0x33,0x29,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, - 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, - 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72, - 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63, - 0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66,0x70,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69, - 0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b, - 0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f, - 0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28, - 0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, - 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70, - 0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c, - 0x6f,0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, - 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44, - 0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x32, - 0x33,0x39,0x33,0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a, - 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69, - 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a, - 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x34,0x30,0x30,0x32,0x36,0x39,0x33,0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28, - 0x28,0x73,0x72,0x63,0x26,0x33,0x29,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, - 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65, - 0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66,0x70,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74, - 0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65, - 0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a, - 0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, - 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69, - 0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64, - 0x32,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, - 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36, - 0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x34,0x30,0x30,0x32,0x33,0x39,0x33, - 0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x28,0x56,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x7c,0x30,0x78,0x37,0x61,0x36,0x37,0x33,0x64,0x75,0x29,0x2b,0x28,0x28,0x64,0x73,0x74, - 0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x38,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b, - 0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a, - 0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x4d,0x55,0x4c,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x32,0x36,0x39,0x34,0x34,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29, - 0x2b,0x28,0x28,0x73,0x72,0x63,0x26,0x33,0x29,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65, - 0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72, - 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66,0x70,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e, - 0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f, - 0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73, - 0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28,0x70, - 0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67, - 0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, - 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f, - 0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72, - 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67, - 0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49, - 0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x30,0x75,0x2b,0x28,0x28,0x64,0x73, - 0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33, - 0x30,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e, - 0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f, - 0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f, - 0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x32,0x38,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73, - 0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x32,0x38,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31, - 0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41, - 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20, - 0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53, - 0x45,0x54,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x7c,0x28,0x31,0x75,0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x29,0x3b, - 0x0a,0x69,0x6d,0x6d,0x20,0x26,0x3d,0x20,0x7e,0x28,0x31,0x75,0x3c,0x3c,0x28,0x73,0x68,0x69,0x66,0x74,0x2d,0x31,0x29,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, - 0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x66,0x66,0x31,0x30,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a, - 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x31,0x31,0x30,0x30,0x31,0x31,0x75,0x7c,0x28, - 0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x28,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6d,0x6d,0x29, - 0x3c,0x30,0x29,0x3f,0x30,0x78,0x63,0x31,0x3a,0x30,0x78,0x38,0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x63, - 0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x52,0x65,0x67,0x3d,0x37,0x30,0x2b,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x2a,0x28,0x70, - 0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x41,0x4e,0x44,0x7c,0x30,0x78,0x30,0x65,0x30,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x63,0x6f, - 0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x52,0x65,0x67,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x64,0x65, - 0x6c,0x74,0x61,0x3d,0x28,0x28,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x2d,0x70,0x29,0x2d,0x31,0x29,0x3b,0x0a, - 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x66,0x38,0x34,0x30,0x30,0x30,0x30,0x75,0x7c,0x28,0x64,0x65,0x6c,0x74,0x61,0x26,0x30,0x78,0x46,0x46,0x46,0x46, - 0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d, - 0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x36,0x33,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x3d,0x3d,0x36,0x33,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, - 0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x30,0x65,0x38,0x31,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x30,0x66,0x39,0x66,0x31,0x31,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b, - 0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4f,0x52,0x7c,0x30,0x78,0x30,0x65,0x30,0x66,0x30,0x65,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a, - 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x41,0x4e,0x44,0x7c,0x30,0x78,0x30,0x65,0x38,0x33,0x30,0x65,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x7d,0x0a,0x65,0x6c, - 0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x42,0x46,0x45,0x7c,0x30,0x78,0x38,0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63, - 0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x73,0x68,0x69,0x66,0x74,0x7c,0x28,0x32,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x69, - 0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38, - 0x65,0x30,0x62,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x39,0x30,0x34,0x32,0x39,0x65,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b, - 0x2b,0x29,0x3d,0x30,0x78,0x62,0x39,0x63,0x32,0x30,0x38,0x38,0x31,0x75,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62, - 0x65,0x38,0x65,0x30,0x38,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x66,0x34,0x32,0x39,0x65,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x39,0x34,0x32,0x30,0x38,0x38,0x31,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, - 0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e, - 0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45, - 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x3c,0x31,0x34, - 0x29,0x3f,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65, - 0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x29,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70, - 0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63, - 0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x6d,0x61,0x73,0x6b,0x2c,0x62,0x61, - 0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3d,0x34,0x38, - 0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x30,0x30,0x30,0x32,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x76, - 0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x30,0x32,0x30,0x32,0x31,0x31,0x75, - 0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x0a,0x23,0x69,0x66,0x20,0x47,0x43, - 0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20, - 0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x66,0x38,0x63,0x33,0x66,0x37,0x30,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66, - 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x63,0x37,0x34,0x38,0x30,0x30,0x30,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30, - 0x30,0x30,0x30,0x30,0x31,0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b, - 0x2b,0x29,0x3d,0x30,0x78,0x33,0x32,0x33,0x38,0x30,0x35,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x38,0x33,0x61,0x30,0x36,0x38, - 0x30,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x63,0x37,0x34,0x30,0x30,0x30,0x30,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30, - 0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a, + 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53, + 0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d, + 0x55,0x4c,0x5f,0x4d,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65, + 0x33,0x38,0x30,0x32,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30, + 0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x31,0x64,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, + 0x3d,0x30,0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x32,0x31,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75, + 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30, + 0x78,0x32,0x30,0x30,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x32,0x31, + 0x32,0x30,0x32,0x31,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x32, + 0x30,0x30,0x65,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x32,0x30, + 0x32,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f, + 0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x31,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37, + 0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20, + 0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31, + 0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c, + 0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09, + 0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b, + 0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64, + 0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c,0x28, + 0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x61,0x75,0x3b, + 0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, + 0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28, + 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63, + 0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64, + 0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72, + 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61, + 0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f, + 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c, + 0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69, + 0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65, + 0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69, + 0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64, + 0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28, + 0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, + 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31, + 0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09, + 0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28, + 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a, + 0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31, + 0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x61,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09, + 0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09, + 0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d, + 0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43, + 0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x34,0x31, + 0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34, + 0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32, + 0x31,0x33,0x38,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c, + 0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65, + 0x38,0x65,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62, + 0x65,0x61,0x36,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78, + 0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x38,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30, + 0x31,0x30,0x65,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72, + 0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55, + 0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d, + 0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e, + 0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63, + 0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28, + 0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63, + 0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a, + 0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x66,0x69,0x78,0x65, + 0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d, + 0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65, + 0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65, + 0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74, + 0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66,0x65,0x74, + 0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f, + 0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30,0x34,0x31,0x30,0x75, + 0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x33,0x38, + 0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x30,0x65,0x75,0x7c,0x28,0x64,0x73, + 0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x36,0x30, + 0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63, + 0x31,0x65,0x33,0x38,0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x30,0x65,0x75, + 0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, + 0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48, + 0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f, + 0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x7b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x61,0x73,0x5f,0x75,0x69,0x6e,0x74,0x32,0x28,0x69,0x6d, + 0x75,0x6c,0x5f,0x72,0x63,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f, + 0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x72,0x63, + 0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x2e,0x78,0x3b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34, + 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x48,0x49,0x5f,0x55,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x7c,0x28,0x64, + 0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x33,0x38,0x30, + 0x32,0x32,0x30,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x32,0x38,0x36,0x30,0x30,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, + 0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x32,0x31,0x31,0x63,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30, + 0x78,0x64,0x32,0x38,0x39,0x30,0x30,0x30,0x66,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x31,0x30,0x31,0x31,0x63,0x75,0x3b,0x0a, + 0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30, + 0x65,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x72,0x63,0x70,0x5f, + 0x76,0x61,0x6c,0x75,0x65,0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x30,0x66,0x30,0x65,0x30,0x66,0x75,0x3b,0x09,0x09,0x09,0x09, + 0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c,0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x30,0x65,0x32,0x30, + 0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x31,0x30, + 0x65,0x30,0x66,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x55,0x4c, + 0x5f,0x49,0x33,0x32,0x5f,0x49,0x4d,0x55,0x4c,0x7c,0x30,0x78,0x31,0x30,0x32,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73, + 0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41, + 0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38, + 0x30,0x39,0x30,0x31,0x30,0x38,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x39,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x0a,0x2a,0x28, + 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32,0x39,0x31,0x31,0x31,0x38,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x39,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c, + 0x31,0x37,0x29,0x3b,0x09,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a, + 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x39,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64, + 0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73, + 0x65,0x20,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x61,0x73,0x5f,0x69,0x6e,0x74,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x3c,0x30,0x29,0x20,0x0a,0x7b,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4d,0x4f,0x56,0x5f,0x42,0x33,0x32,0x5f,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74, + 0x2e,0x79,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x39,0x30,0x33,0x65,0x31,0x30, + 0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a, + 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x31,0x30,0x66,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73, + 0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3b,0x0a, + 0x7d,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69, + 0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73, + 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73, + 0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72, + 0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69, + 0x7a,0x65,0x29,0x3b,0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63, + 0x5f,0x66,0x69,0x78,0x65,0x64,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70, + 0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65, + 0x78,0x3f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28, + 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f, + 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70, + 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x5f,0x36,0x34,0x7c,0x30,0x78,0x39,0x30,0x30,0x65,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c, + 0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, + 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x20,0x0a,0x7b,0x0a,0x69, + 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a, + 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x61,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29, + 0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x38,0x66,0x31,0x30,0x63,0x30,0x75,0x7c,0x28,0x73, + 0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x61,0x32,0x30,0x66,0x31,0x30,0x75,0x7c, + 0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c, + 0x7c,0x30,0x78,0x61,0x30,0x31,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28, + 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x38,0x66,0x31,0x30,0x63,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x39,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b, + 0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x61,0x32,0x30,0x66,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x7d, + 0x0a,0x65,0x6c,0x73,0x65,0x20,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x28,0x6f,0x70,0x63,0x6f, + 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x29,0x3f,0x69,0x6e,0x73,0x74,0x2e,0x79,0x3a,0x2d, + 0x69,0x6e,0x73,0x74,0x2e,0x79,0x29,0x26,0x36,0x33,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x61,0x30,0x38,0x30, + 0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x73,0x68,0x69,0x66,0x74,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, + 0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x61,0x32,0x38,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x28,0x36,0x34,0x2d,0x73, + 0x68,0x69,0x66,0x74,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4f,0x52,0x7c,0x30,0x78,0x39,0x30,0x32,0x32,0x32, + 0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65, + 0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20, + 0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x30,0x30, + 0x34,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30, + 0x30,0x34,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, + 0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x34,0x32,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6c,0x73, + 0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x61,0x30,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09, + 0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28, + 0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x39,0x30,0x30,0x31,0x32,0x30,0x75,0x7c,0x28,0x73,0x72, + 0x63,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x09,0x09,0x09,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d, + 0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69, + 0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b, + 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x44,0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a, + 0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x63,0x30,0x30,0x30,0x30,0x33,0x63,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x64,0x73,0x74, + 0x3c,0x3c,0x32,0x35,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x44,0x53,0x5f,0x53,0x57,0x49,0x5a,0x5a,0x4c,0x45,0x5f,0x42,0x33,0x32,0x5f,0x46,0x53,0x57, + 0x41,0x50,0x5f,0x52,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x64,0x30,0x30,0x30,0x30,0x33,0x64,0x75,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31, + 0x29,0x2b,0x28,0x64,0x73,0x74,0x3c,0x3c,0x32,0x35,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x66,0x38,0x63,0x63,0x30,0x37,0x66,0x75,0x3b, + 0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64, + 0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x32,0x36,0x39,0x33,0x63,0x75,0x2b,0x28,0x28, + 0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x28,0x73,0x72,0x63,0x26,0x33,0x29,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e, + 0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f, + 0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d, + 0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b, + 0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66, + 0x70,0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68, + 0x70,0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72, + 0x65,0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x5f,0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70, + 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65, + 0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72, + 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70, + 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b, + 0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x32,0x33,0x39,0x33,0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x72, + 0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46, + 0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26, + 0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x34,0x30,0x30,0x32,0x36,0x39,0x33,0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74, + 0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x28,0x73,0x72,0x63,0x26,0x33,0x29,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b, + 0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a, + 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b, + 0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d, + 0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66,0x70,0x28,0x70, + 0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x2c, + 0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f, + 0x61,0x64,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74, + 0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63, + 0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e, + 0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29, + 0x3d,0x56,0x5f,0x41,0x44,0x44,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, + 0x30,0x78,0x34,0x30,0x30,0x32,0x33,0x39,0x33,0x63,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75, + 0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55, + 0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41, + 0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x28,0x56,0x5f,0x58,0x4f,0x52,0x5f,0x42,0x33,0x32,0x7c,0x30,0x78,0x37,0x61,0x36,0x37,0x33, + 0x64,0x75,0x29,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x38,0x29,0x3b,0x0a, 0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x74,0x20,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65, - 0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x70,0x30,0x2c,0x0a, - 0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x2c,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x2c,0x0a,0x63, - 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74, - 0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x0a,0x63,0x6f, - 0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x74,0x3b,0x0a,0x74, - 0x2e,0x78,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x28,0x28,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70, - 0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x29,0x3e,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41,0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32, - 0x29,0x3f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3a,0x73,0x63,0x72,0x61, - 0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x3a,0x6d,0x61,0x78,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, - 0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x3b,0x0a,0x74,0x2e, - 0x79,0x3d,0x69,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x74,0x31,0x3d,0x74,0x2e,0x78,0x3b,0x0a,0x69,0x66,0x28,0x28,0x6c,0x61,0x73,0x74,0x42, - 0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3c,0x3d,0x74,0x31,0x29,0x26,0x26,0x28,0x74,0x31,0x3c,0x3d,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63, - 0x68,0x29,0x29,0x0a,0x7b,0x0a,0x74,0x2e,0x78,0x3d,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69, - 0x66,0x28,0x28,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3e,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x26, - 0x26,0x28,0x74,0x31,0x3c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x29,0x0a,0x7b,0x0a,0x74,0x2e,0x78,0x3d,0x6c,0x61, - 0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3b,0x0a,0x7d,0x0a,0x70,0x30,0x5b,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61, - 0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x5d,0x3d,0x74,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74, - 0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x67,0x65,0x6e,0x65, - 0x72,0x61,0x74,0x65,0x5f,0x6a,0x69,0x74,0x5f,0x63,0x6f,0x64,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x65,0x2c, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x70,0x30,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74, - 0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65, - 0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31, - 0x0a,0x66,0x6f,0x72,0x20,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x69,0x6e,0x74,0x20,0x70,0x61,0x73,0x73,0x3d,0x30,0x3b,0x20,0x70,0x61,0x73,0x73,0x3c, - 0x32,0x3b,0x20,0x2b,0x2b,0x70,0x61,0x73,0x73,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, - 0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x64,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31, - 0x20,0x7d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30, - 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61, - 0x62,0x6c,0x65,0x41,0x74,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x2d,0x31, - 0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x3d,0x2d,0x31,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x2d, - 0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x20,0x7d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a, - 0x75,0x6c,0x6f,0x6e,0x67,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63, - 0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67, - 0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x20, - 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65, - 0x74,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61, - 0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x30,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28, - 0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45, - 0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x30,0x29,0x0a,0x65,0x5b,0x69,0x5d,0x2e,0x78,0x20,0x26,0x3d,0x20,0x7e, - 0x28,0x30,0x78,0x66,0x38,0x75,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e, - 0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, - 0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73, - 0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6d,0x6f, - 0x64,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32,0x34,0x3b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69, - 0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72, - 0x67,0x65,0x74,0x3d,0x69,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20, - 0x3e,0x20,0x32,0x35,0x36,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d, - 0x30,0x3b,0x20,0x6a,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, - 0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x5b,0x6a,0x5d,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, - 0x61,0x6e,0x67,0x65,0x64,0x5b,0x6a,0x5d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, - 0x61,0x6e,0x67,0x65,0x64,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63, - 0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3b,0x0a,0x23,0x65,0x6e,0x64, - 0x69,0x66,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61, - 0x72,0x67,0x65,0x74,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3b,0x0a,0x73,0x63,0x72,0x61, - 0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65, - 0x74,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3b,0x0a,0x7d,0x0a,0x69, - 0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x3d,0x69, - 0x3b,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32, - 0x35,0x36,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x72,0x65,0x67, - 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x73,0x72,0x63,0x5d,0x2b,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75, - 0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43, - 0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x2b,0x31,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20, - 0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67, - 0x65,0x64,0x26,0x28,0x31,0x75,0x3c,0x3c,0x73,0x72,0x63,0x29,0x29,0x3f,0x28,0x28,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61, - 0x6e,0x67,0x65,0x64,0x3e,0x3e,0x28,0x73,0x72,0x63,0x2a,0x38,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x2b,0x31,0x29,0x3a,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61, - 0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x28,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x29,0x29,0x3f,0x28,0x28,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, - 0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3e,0x3e,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x2b,0x31,0x29,0x3a,0x30,0x3b, - 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, - 0x41,0x44,0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, + 0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x56,0x5f,0x4d,0x55,0x4c,0x5f,0x46,0x36,0x34,0x2b,0x28,0x28,0x64,0x73, + 0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x32,0x36,0x39,0x34,0x34,0x75,0x2b,0x28,0x28,0x64, + 0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x2b,0x28,0x28,0x73,0x72,0x63,0x26,0x33,0x29,0x3c,0x3c,0x31,0x30,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20, + 0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29, + 0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3e,0x3d,0x30,0x29,0x0a,0x7b,0x0a, + 0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x5f,0x66,0x70, + 0x28,0x70,0x2c,0x73,0x72,0x63,0x2c,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2c,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70, + 0x61,0x64,0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65, + 0x67,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f, + 0x6c,0x6f,0x61,0x64,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3c,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x6c,0x6f,0x61,0x64,0x32,0x5f,0x66,0x70,0x28,0x70,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f, + 0x69,0x6e,0x64,0x65,0x78,0x3f,0x2d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3a,0x32,0x38,0x2c,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x30,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20, + 0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32, + 0x31,0x33,0x30,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, + 0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x33,0x30,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66, + 0x0a,0x7d,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, + 0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d, + 0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x32,0x31,0x32,0x38,0x75,0x2b,0x28,0x28,0x64,0x73,0x74,0x26,0x33,0x29,0x3c, + 0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x62,0x63,0x31,0x65,0x32,0x38,0x75,0x2b,0x28,0x28, + 0x64,0x73,0x74,0x26,0x33,0x29,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f, + 0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28, + 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x4a,0x55,0x4d,0x50,0x5f,0x4f,0x46,0x46,0x53,0x45,0x54,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x69,0x6d,0x6d,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x7c,0x28,0x31,0x75, + 0x3c,0x3c,0x73,0x68,0x69,0x66,0x74,0x29,0x3b,0x0a,0x69,0x6d,0x6d,0x20,0x26,0x3d,0x20,0x7e,0x28,0x31,0x75,0x3c,0x3c,0x28,0x73,0x68,0x69,0x66,0x74,0x2d,0x31,0x29, + 0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x30,0x31,0x30,0x66,0x66,0x31,0x30,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64, + 0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x69,0x6d,0x6d,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x32, + 0x31,0x31,0x30,0x30,0x31,0x31,0x75,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x64,0x73,0x74,0x3c,0x3c,0x31,0x37,0x29,0x7c,0x28,0x28,0x28,0x61,0x73, + 0x5f,0x69,0x6e,0x74,0x28,0x69,0x6d,0x6d,0x29,0x3c,0x30,0x29,0x3f,0x30,0x78,0x63,0x31,0x3a,0x30,0x78,0x38,0x30,0x29,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x63,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x52,0x65,0x67,0x3d,0x37,0x30,0x2b,0x28,0x6d,0x6f,0x64, + 0x3e,0x3e,0x34,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x41,0x4e,0x44,0x7c,0x30,0x78,0x30,0x65,0x30,0x30,0x31,0x30,0x75,0x7c,0x28,0x64,0x73, + 0x74,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x63,0x6f,0x6e,0x64,0x69,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b,0x52,0x65,0x67,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x64,0x65,0x6c,0x74,0x61,0x3d,0x28,0x28,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65, + 0x74,0x2d,0x70,0x29,0x2d,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x66,0x38,0x34,0x30,0x30,0x30,0x30,0x75,0x7c,0x28,0x64,0x65,0x6c, + 0x74,0x61,0x26,0x30,0x78,0x46,0x46,0x46,0x46,0x29,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69, + 0x6e,0x74,0x20,0x73,0x68,0x69,0x66,0x74,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x36,0x33,0x3b,0x0a,0x69,0x66,0x28,0x73,0x68,0x69,0x66,0x74,0x3d,0x3d,0x36,0x33, + 0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x4c,0x7c,0x30,0x78,0x30,0x65,0x38,0x31,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63, + 0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4c,0x53,0x48,0x52,0x7c,0x30,0x78,0x30,0x66,0x39,0x66,0x31,0x31,0x75,0x7c, + 0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x4f,0x52,0x7c,0x30,0x78,0x30,0x65,0x30,0x66,0x30,0x65, + 0x75,0x3b,0x09,0x09,0x09,0x09,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x41,0x4e,0x44,0x7c,0x30,0x78,0x30,0x65,0x38,0x33,0x30,0x65,0x75,0x3b,0x09, + 0x09,0x09,0x09,0x09,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x42,0x46,0x45,0x7c,0x30,0x78,0x38,0x65,0x66, + 0x66,0x31,0x30,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x73,0x68,0x69,0x66,0x74,0x7c,0x28,0x32,0x3c,0x3c, + 0x31,0x36,0x29,0x3b,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70, + 0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x62,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x39,0x30,0x34,0x32,0x39,0x65, + 0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x39,0x63,0x32,0x30,0x38,0x38,0x31,0x75,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x2a, + 0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x65,0x38,0x65,0x30,0x38,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x38,0x66,0x34,0x32, + 0x39,0x65,0x30,0x65,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x39,0x34,0x32,0x30,0x38,0x38,0x31,0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69, + 0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6d,0x61,0x73,0x6b,0x3d,0x28,0x28,0x6d, + 0x6f,0x64,0x3e,0x3e,0x34,0x29,0x3c,0x31,0x34,0x29,0x3f,0x28,0x28,0x6d,0x6f,0x64,0x20,0x25,0x20,0x34,0x29,0x3f,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, + 0x4c,0x31,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x32,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x29, + 0x3a,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x5f,0x72,0x65,0x67,0x3b,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x73,0x63,0x72, + 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x5f,0x63,0x61,0x6c,0x63,0x5f,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x28,0x70,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2e, + 0x79,0x2c,0x6d,0x61,0x73,0x6b,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x76, + 0x67,0x70,0x72,0x5f,0x69,0x64,0x3d,0x34,0x38,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x37,0x65,0x30,0x30,0x30,0x32,0x31,0x30,0x75,0x7c,0x28,0x73, + 0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x31,0x37,0x29,0x3b,0x09,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78, + 0x37,0x65,0x30,0x32,0x30,0x32,0x31,0x31,0x75,0x7c,0x28,0x73,0x72,0x63,0x3c,0x3c,0x31,0x29,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x31,0x37,0x29, + 0x3b,0x09,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e,0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x34,0x0a,0x23,0x69,0x66,0x20,0x47,0x43,0x4e, + 0x5f,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x20,0x3e,0x3d,0x20,0x31,0x35,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x62,0x66,0x38,0x63,0x33,0x66,0x37,0x30, + 0x75,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x63,0x37,0x34,0x38,0x30,0x30,0x30,0x75,0x3b,0x0a,0x2a,0x28, + 0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23, + 0x65,0x6c,0x73,0x65,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x33,0x32,0x33,0x38,0x30,0x35,0x31,0x63,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, + 0x30,0x78,0x33,0x38,0x33,0x61,0x30,0x36,0x38,0x30,0x75,0x3b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x64,0x63,0x37,0x34,0x30,0x30,0x30,0x30,0x75,0x3b, + 0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x30,0x78,0x30,0x30,0x30,0x30,0x30,0x30,0x31,0x63,0x75,0x7c,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3c,0x3c,0x38,0x29, + 0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x69,0x6e, + 0x74,0x20,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69, + 0x6e,0x74,0x32,0x2a,0x20,0x70,0x30,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61, + 0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x69,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x20,0x73,0x72,0x63,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x32,0x20,0x69,0x6e,0x73,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, + 0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, + 0x65,0x41,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76, + 0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54, + 0x61,0x72,0x67,0x65,0x74,0x2c,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x0a,0x7b,0x0a,0x75, + 0x69,0x6e,0x74,0x32,0x20,0x74,0x3b,0x0a,0x74,0x2e,0x78,0x3d,0x28,0x73,0x72,0x63,0x3d,0x3d,0x64,0x73,0x74,0x29,0x3f,0x28,0x28,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79, + 0x26,0x53,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x4c,0x33,0x4d,0x61,0x73,0x6b,0x29,0x3e,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x53,0x43,0x52,0x41, + 0x54,0x43,0x48,0x50,0x41,0x44,0x5f,0x4c,0x32,0x29,0x3f,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x41,0x74,0x3a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x3a,0x6d,0x61,0x78,0x28, + 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x41,0x74,0x29,0x3b,0x0a,0x74,0x2e,0x79,0x3d,0x69,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x74,0x31,0x3d,0x74,0x2e,0x78,0x3b,0x0a, + 0x69,0x66,0x28,0x28,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3c,0x3d,0x74,0x31,0x29,0x26,0x26,0x28,0x74,0x31,0x3c,0x3d, + 0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x29,0x0a,0x7b,0x0a,0x74,0x2e,0x78,0x3d,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x2b,0x31,0x3b, + 0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x20,0x69,0x66,0x28,0x28,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3e,0x6c,0x61,0x73, + 0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x26,0x26,0x28,0x74,0x31,0x3c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x29, + 0x0a,0x7b,0x0a,0x74,0x2e,0x78,0x3d,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3b,0x0a,0x7d,0x0a,0x70,0x30,0x5b,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x5d,0x3d,0x74,0x3b,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x72,0x65, + 0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x2a,0x20,0x67,0x65,0x6e,0x65,0x72,0x61,0x74,0x65,0x5f,0x6a,0x69,0x74,0x5f,0x63,0x6f,0x64,0x65,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x70,0x30,0x2c,0x5f,0x5f,0x67,0x6c, + 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x0a,0x7b,0x0a, + 0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61, + 0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x69,0x6e,0x74,0x20,0x70,0x61,0x73,0x73, + 0x3d,0x30,0x3b,0x20,0x70,0x61,0x73,0x73,0x3c,0x32,0x3b,0x20,0x2b,0x2b,0x70,0x61,0x73,0x73,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, + 0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31, + 0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x20,0x7d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73, + 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48, + 0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68, + 0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x2d,0x31,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x3d,0x2d,0x31,0x3b,0x0a,0x23,0x69, + 0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x69,0x6e,0x74, + 0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67, + 0x65,0x74,0x5b,0x38,0x5d,0x3d,0x7b,0x20,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x2c,0x2d,0x31,0x20, + 0x7d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x6c,0x6f,0x6e,0x67,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67, + 0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72, + 0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67, + 0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x30,0x3b,0x0a,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x30,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c, + 0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x75,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f, + 0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x30,0x29,0x0a,0x65,0x5b, + 0x69,0x5d,0x2e,0x78,0x20,0x26,0x3d,0x20,0x7e,0x28,0x30,0x78,0x66,0x38,0x75,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d, + 0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x30,0x78,0x46,0x46,0x3b,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x38,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e, + 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x3d,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x31,0x36,0x29,0x26,0x37,0x3b,0x0a,0x63,0x6f,0x6e,0x73, + 0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x6d,0x6f,0x64,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x3e,0x3e,0x32,0x34,0x3b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d, + 0x31,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x6c,0x61,0x73,0x74, + 0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x69,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47, + 0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f, + 0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x5b,0x6a,0x5d,0x3d,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x6a,0x5d,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67, + 0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e, + 0x67,0x65,0x64,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, + 0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, + 0x65,0x41,0x74,0x3b,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72, + 0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x41,0x74,0x3b,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x6c,0x61,0x73, + 0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x3d,0x69,0x3b,0x0a,0x7d,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61, + 0x62,0x6c,0x65,0x41,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x73,0x72,0x63,0x5d,0x2b,0x31, + 0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x72,0x65,0x67,0x69, + 0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x2b,0x31,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x28,0x31,0x75,0x3c,0x3c,0x73,0x72,0x63,0x29,0x29,0x3f,0x28,0x28,0x28,0x72,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3e,0x3e,0x28,0x73,0x72,0x63,0x2a,0x38,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x2b,0x31,0x29, + 0x3a,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x28,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x28,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x29,0x29,0x3f,0x28,0x28,0x28, + 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3e,0x3e,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x26,0x30,0x78, + 0x46,0x46,0x29,0x2b,0x31,0x29,0x3a,0x30,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50, + 0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, + 0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74, + 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30, + 0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64, + 0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c, + 0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, + 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, + 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, + 0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29, + 0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d, + 0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61, + 0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64, + 0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c, + 0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e, + 0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, + 0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52, + 0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65, + 0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, + 0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75, + 0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38, + 0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b, + 0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52, + 0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61, + 0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43, + 0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78, + 0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73, + 0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64, + 0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, + 0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c, + 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e, + 0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69, + 0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, + 0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a, + 0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, 0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74, 0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28, 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64, 0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72, 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64, 0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x52,0x53,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41, - 0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64, - 0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67, - 0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c, - 0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29, - 0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a, - 0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61, - 0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73, - 0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61, - 0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74, - 0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x41,0x44, - 0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42, + 0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, + 0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b, + 0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65, + 0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c, + 0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29, + 0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23, + 0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f, + 0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65, + 0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72, + 0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65, + 0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73, + 0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69, + 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c, + 0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48, 0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e, 0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b, 0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69, @@ -3850,358 +3790,314 @@ static const char randomx_cl[134345] = { 0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73, 0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63, 0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49, - 0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a, - 0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d, - 0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72, - 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73, - 0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69, - 0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e, - 0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, - 0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73, - 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61, - 0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b, - 0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b, + 0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53, + 0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73, + 0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d, + 0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28, + 0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a, + 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e, + 0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f, + 0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63, + 0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41, + 0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74, + 0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42, + 0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75, + 0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f, + 0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48, + 0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e, + 0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b, + 0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69, + 0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38, + 0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63, + 0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, + 0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d, + 0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b, + 0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65, + 0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c, + 0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29, + 0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23, + 0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f, + 0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65, + 0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72, + 0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65, + 0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73, + 0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69, + 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55, + 0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55, + 0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x7b, 0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a, 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73, 0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, 0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28, 0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61, - 0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e, - 0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f, - 0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d, - 0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32, - 0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23, - 0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74, - 0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29, - 0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65, - 0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28, - 0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74, - 0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f, - 0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61, - 0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43, - 0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f, - 0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61, - 0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a, - 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b,0x0a, - 0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x29,0x0a, - 0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36, - 0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c, - 0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c, - 0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57, - 0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61, - 0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f, - 0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, - 0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70, - 0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67, - 0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63, - 0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43, - 0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f, - 0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61, - 0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a, - 0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x52,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d, - 0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32, - 0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23, - 0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74, - 0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29, - 0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65, - 0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28, - 0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74, - 0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f, - 0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63, - 0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61, - 0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x4d,0x55,0x4c,0x48,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x29,0x0a,0x7b,0x0a, - 0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x26,0x28,0x69,0x6e,0x73,0x74,0x2e,0x79,0x2d,0x31,0x29,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, - 0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65, - 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65, - 0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69, - 0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c, - 0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55,0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66, - 0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50, + 0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74, + 0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4d,0x55, + 0x4c,0x5f,0x52,0x43,0x50,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e, + 0x45,0x47,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, + 0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e, + 0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e, + 0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d, + 0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x2b,0x52,0x41,0x4e, + 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50, 0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, 0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74, 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30, 0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64, 0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c, - 0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x4e,0x45,0x47,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, - 0x5f,0x49,0x58,0x4f,0x52,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f, - 0x49,0x58,0x4f,0x52,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49, - 0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74, - 0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28, - 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64, - 0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72, - 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64, - 0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75, - 0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68, - 0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76, - 0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c, - 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72, - 0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, - 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x3b, - 0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52, - 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73, - 0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, + 0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68, + 0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30, + 0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x64,0x73,0x74,0x2c,0x69, + 0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61, + 0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65, + 0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b, + 0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45, + 0x51,0x5f,0x49,0x58,0x4f,0x52,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51, + 0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x23, + 0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65, + 0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a, + 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73, + 0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75, + 0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43, + 0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, + 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52, + 0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64, + 0x73,0x74,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e, + 0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b, + 0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x73,0x72,0x63,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c, + 0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, + 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c, + 0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c, 0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26, - 0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c, - 0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31, - 0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, - 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x52,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x52,0x4f,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52, - 0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x73,0x72,0x63,0x21,0x3d,0x64,0x73,0x74,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66, - 0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x73,0x72,0x63,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74, - 0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67, - 0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28, - 0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65, - 0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c, - 0x3c,0x28,0x73,0x72,0x63,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x73,0x72,0x63,0x2a,0x38,0x29,0x29, - 0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x28,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x29,0x7c, - 0x28,0x31,0x75,0x3c,0x3c,0x73,0x72,0x63,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66, - 0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a, - 0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, - 0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72, - 0x63,0x2c,0x30,0x78,0x46,0x46,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41, - 0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74, - 0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e, - 0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44, - 0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28, - 0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74, - 0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f, - 0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x30,0x78,0x46,0x46,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62, - 0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74, - 0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54, - 0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41,0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65, - 0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65, - 0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c, - 0x30,0x78,0x46,0x46,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68, - 0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72, - 0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f, - 0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d, - 0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, - 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f, - 0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x69,0x66, - 0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x75,0x69,0x6e,0x74,0x20,0x64,0x73,0x74,0x41,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x32,0x3d,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3b,0x0a,0x65,0x5b,0x64,0x73,0x74,0x41, - 0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x32,0x5d,0x2e,0x78,0x7c,0x3d,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x65,0x5b,0x69,0x5d,0x2e, - 0x78,0x7c,0x3d,0x28,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41, - 0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20, - 0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74, - 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x6a,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x69,0x6e,0x74,0x20,0x74,0x3d,0x69,0x7c,0x28,0x69,0x3c, - 0x3c,0x38,0x29,0x3b,0x0a,0x74,0x3d,0x74,0x7c,0x28,0x74,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, - 0x61,0x6e,0x67,0x65,0x64,0x3d,0x74,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x72,0x65,0x67, - 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, - 0x61,0x6e,0x67,0x65,0x64,0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30, - 0x78,0x46,0x46,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58, - 0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74, - 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61, - 0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e, - 0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c, - 0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75, - 0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x72,0x65,0x67,0x3d,0x30,0x3b,0x20,0x72,0x65, - 0x67,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x72,0x65,0x67,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41, - 0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x5b,0x72,0x65,0x67,0x5d,0x2b,0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61, - 0x6e,0x67,0x65,0x64,0x5b,0x72,0x65,0x67,0x5d,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x21,0x3d,0x61,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, - 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x72,0x65,0x67,0x5d,0x3d,0x69,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73, - 0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x28, - 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74, - 0x26,0x28,0x31,0x75,0x3c,0x3c,0x72,0x65,0x67,0x29,0x29,0x3f,0x28,0x28,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67, - 0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3e,0x3e,0x28,0x72,0x65,0x67,0x2a,0x38,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29, - 0x2b,0x31,0x29,0x3a,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x28,0x72, - 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x28,0x31,0x75,0x3c,0x3c,0x72,0x65,0x67,0x29,0x29,0x3f,0x28,0x28,0x28, - 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3e,0x3e,0x28,0x72,0x65,0x67,0x2a,0x38,0x29,0x29,0x26,0x30,0x78, - 0x46,0x46,0x29,0x2b,0x31,0x29,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x21,0x3d,0x61,0x76,0x61,0x69,0x6c,0x61, - 0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73, - 0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28, - 0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x72,0x65,0x67,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28, - 0x72,0x65,0x67,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c, - 0x3c,0x72,0x65,0x67,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76, - 0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x21,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, - 0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, - 0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61, - 0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x21,0x3d,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67, - 0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69, - 0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64, - 0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, - 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69, - 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f, - 0x55,0x4e,0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f, - 0x52,0x45,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x65,0x5b,0x69,0x5d,0x2e,0x78,0x3d,0x69,0x6e,0x73,0x74,0x2e, - 0x78,0x7c,0x28,0x30,0x78,0x38,0x30,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64, - 0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x28,0x6d,0x6f,0x64,0x3e,0x3e,0x34,0x29,0x3e,0x3d,0x31,0x34, - 0x29,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b, - 0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46, - 0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x76,0x3d,0x70,0x30,0x5b,0x30,0x5d,0x2e, - 0x78,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x31, - 0x3b,0x20,0x6a,0x3c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a, - 0x75,0x69,0x6e,0x74,0x32,0x20,0x63,0x75,0x72,0x3d,0x70,0x30,0x5b,0x6a,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x63,0x75,0x72,0x2e,0x78,0x3e,0x3d,0x70,0x72,0x65,0x76,0x29, - 0x0a,0x7b,0x0a,0x70,0x72,0x65,0x76,0x3d,0x63,0x75,0x72,0x2e,0x78,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x74,0x20,0x6a, - 0x31,0x3d,0x6a,0x2d,0x31,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x70,0x30,0x5b,0x6a,0x31,0x2b,0x31,0x5d,0x3d,0x70,0x30,0x5b,0x6a,0x31,0x5d,0x3b,0x0a,0x2d,0x2d,0x6a, - 0x31,0x3b,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x28,0x6a,0x31,0x3e,0x3d,0x30,0x29,0x26,0x26,0x28,0x70,0x30,0x5b,0x6a,0x31,0x5d,0x2e,0x78,0x3e,0x3d, - 0x63,0x75,0x72,0x2e,0x78,0x29,0x29,0x3b,0x0a,0x70,0x30,0x5b,0x6a,0x31,0x2b,0x31,0x5d,0x3d,0x63,0x75,0x72,0x3b,0x0a,0x7d,0x0a,0x70,0x30,0x5b,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x5d,0x2e,0x78,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52, - 0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x20,0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f, - 0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x29,0x28,0x70,0x30,0x2b,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2b,0x31,0x29,0x3b,0x0a,0x65,0x6e,0x75,0x6d,0x20,0x7b,0x20,0x6e,0x75, - 0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3d,0x32,0x31,0x20,0x7d,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75, - 0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74, - 0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74, - 0x61,0x63,0x6b,0x5b,0x69,0x5d,0x3d,0x4e,0x55,0x4d,0x5f,0x56,0x47,0x50,0x52,0x5f,0x52,0x45,0x47,0x49,0x53,0x54,0x45,0x52,0x53,0x2d,0x32,0x2d,0x69,0x2a,0x32,0x3b, - 0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x3d, - 0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x2b,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63, - 0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x38,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69, - 0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20, - 0x2b,0x2b,0x69,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5b,0x69,0x5d,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x20, - 0x6b,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x3d,0x70,0x30,0x5b,0x30,0x5d,0x3b,0x0a, - 0x69,0x6e,0x74,0x20,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74, - 0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x36,0x33,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, - 0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x3d,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3b,0x0a, - 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65, - 0x74,0x3d,0x70,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x69,0x7a,0x65,0x5f,0x6c,0x69,0x6d,0x69,0x74,0x3d,0x28,0x43,0x4f,0x4d,0x50, - 0x49,0x4c,0x45,0x44,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2d,0x32,0x30,0x30,0x29,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69, - 0x6e,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x73,0x74,0x61,0x72,0x74,0x5f,0x70,0x3d,0x70,0x3b,0x0a,0x23, - 0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c, - 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, - 0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30, - 0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x70,0x3b,0x0a,0x62, - 0x6f,0x6f,0x6c,0x20,0x64,0x6f,0x6e,0x65,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x6a,0x69,0x74,0x5f,0x69, - 0x6e,0x73,0x74,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78, - 0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x3b,0x0a,0x69,0x66,0x28,0x21,0x64,0x6f,0x6e,0x65,0x26,0x26,0x28,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x2e,0x78,0x3d,0x3d,0x69,0x29,0x26,0x26,0x28,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, - 0x67,0x70,0x72,0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x3e,0x30,0x29,0x29,0x0a,0x7b,0x0a,0x2b,0x2b,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74, - 0x65,0x72,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3d,0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76, - 0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x5b,0x2d,0x2d,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f, - 0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5d,0x3b,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5b,0x70,0x72,0x65, - 0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x2e,0x79,0x5d,0x3d,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x7c,0x28,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74, - 0x65,0x72,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x65,0x5b,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74, - 0x61,0x2e,0x79,0x5d,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x76,0x67, - 0x70,0x72,0x5f,0x69,0x64,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x3d,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x73,0x5f, - 0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x36,0x33,0x3b,0x0a,0x2b,0x2b,0x6b,0x3b,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, - 0x64,0x61,0x74,0x61,0x3d,0x70,0x30,0x5b,0x6b,0x5d,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x70, - 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x64,0x61,0x74,0x61,0x3d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f, - 0x76,0x67,0x70,0x72,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3d,0x70,0x72,0x65,0x66, - 0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x64,0x61,0x74,0x61,0x26,0x30,0x78,0x46,0x46,0x46,0x46,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20, - 0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x76,0x5f,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f, - 0x76,0x67,0x70,0x72,0x73,0x5f,0x64,0x61,0x74,0x61,0x3e,0x3e,0x31,0x36,0x3b,0x0a,0x69,0x66,0x28,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x29,0x0a,0x70,0x72,0x65,0x66, - 0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x5b,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67, - 0x70,0x72,0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x2b,0x2b,0x5d,0x3d,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73, - 0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x38,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x2b,0x2b,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3b,0x0a, - 0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x36,0x33,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20, - 0x76,0x6d,0x63,0x6e,0x74,0x3d,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x2d,0x70,0x72,0x65,0x76,0x5f,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74, - 0x65,0x72,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x69,0x6e,0x73,0x74,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f, - 0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x2d,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x3d,0x28, - 0x76,0x6d,0x63,0x6e,0x74,0x3c,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x3f,0x76,0x6d,0x63,0x6e,0x74,0x3a,0x2d,0x31,0x3b, - 0x0a,0x69,0x66,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3c,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x0a,0x73,0x5f,0x77,0x61,0x69, - 0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x76,0x6d,0x63,0x6e,0x74,0x3b,0x0a,0x64,0x6f,0x6e,0x65,0x3d,0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x70, - 0x3d,0x6a,0x69,0x74,0x5f,0x65,0x6d,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x28,0x70,0x2c,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61, - 0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x2c,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68, - 0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65, - 0x29,0x3b,0x0a,0x69,0x66,0x28,0x70,0x2d,0x73,0x74,0x61,0x72,0x74,0x5f,0x70,0x3e,0x73,0x69,0x7a,0x65,0x5f,0x6c,0x69,0x6d,0x69,0x74,0x29,0x0a,0x7b,0x0a,0x2a,0x28, - 0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x3b,0x20,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e, - 0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x21,0x64,0x6f,0x6e,0x65,0x29,0x3b,0x0a,0x7d,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d, - 0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x3b,0x20,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d, - 0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f,0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f, - 0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x72,0x61,0x6e, - 0x64,0x6f,0x6d,0x78,0x5f,0x6a,0x69,0x74,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79, - 0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x69,0x6e,0x74,0x65,0x72,0x6d,0x65,0x64,0x69,0x61,0x74,0x65,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x73, - 0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61, - 0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x2a,0x20,0x72,0x6f,0x75,0x6e, - 0x64,0x69,0x6e,0x67,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74, - 0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64, - 0x28,0x30,0x29,0x2f,0x33,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x75,0x62,0x3d,0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x20,0x25,0x20,0x33,0x32,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x21,0x3d,0x30,0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b, - 0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x65,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e, - 0x74,0x32,0x2a,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x45,0x4e,0x54,0x52,0x4f, - 0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2b,0x28,0x31,0x32,0x38,0x2f,0x73,0x69,0x7a,0x65, - 0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x70,0x30,0x3d, - 0x69,0x6e,0x74,0x65,0x72,0x6d,0x65,0x64,0x69,0x61,0x74,0x65,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64, - 0x65,0x78,0x2a,0x28,0x49,0x4e,0x54,0x45,0x52,0x4d,0x45,0x44,0x49,0x41,0x54,0x45,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69, - 0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x32,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x3d,0x70, - 0x72,0x6f,0x67,0x72,0x61,0x6d,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x43,0x4f,0x4d,0x50,0x49,0x4c,0x45,0x44,0x5f,0x50, - 0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x29,0x29,0x3b,0x0a,0x67,0x65,0x6e,0x65,0x72, - 0x61,0x74,0x65,0x5f,0x6a,0x69,0x74,0x5f,0x63,0x6f,0x64,0x65,0x28,0x65,0x2c,0x70,0x30,0x2c,0x70,0x2c,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b, - 0x0a,0x69,0x66,0x28,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x30,0x29,0x0a,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x5b,0x67,0x6c,0x6f,0x62,0x61, - 0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x52,0x3d,0x72,0x65, - 0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x33,0x32,0x3b,0x0a,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79, - 0x2b,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a, - 0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x52,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x32, - 0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x33,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x34,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x35,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x36, - 0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x37,0x5d,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x41,0x3d, - 0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28,0x52,0x2b,0x32,0x34,0x29,0x3b,0x0a,0x41,0x5b,0x30,0x5d,0x3d,0x67, - 0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79, - 0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x31,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74, - 0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x32,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50, - 0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x32,0x5d,0x29,0x3b,0x0a,0x41,0x5b, - 0x33,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74, - 0x72,0x6f,0x70,0x79,0x5b,0x33,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x34,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46, - 0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x34,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x35,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d, - 0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x35,0x5d,0x29, - 0x3b,0x0a,0x41,0x5b,0x36,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73, - 0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x36,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x37,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74, - 0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x37,0x5d,0x29,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c, - 0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x38,0x5d, - 0x26,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, - 0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x75,0x69, - 0x6e,0x74,0x20,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x32,0x5d,0x3b, - 0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x37,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x30,0x2b,0x28, - 0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69, - 0x73,0x74,0x65,0x72,0x73,0x20,0x3e,0x3e,0x3d,0x20,0x31,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52, - 0x2b,0x31,0x37,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x32,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b, - 0x0a,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x20,0x3e,0x3e,0x3d,0x20,0x31,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x37,0x29,0x29,0x5b,0x32,0x5d,0x3d,0x34,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52, - 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x20,0x3e,0x3e, - 0x3d,0x20,0x31,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x37,0x29,0x29,0x5b,0x33,0x5d, - 0x3d,0x36,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f, - 0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x39,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x33, - 0x5d,0x26,0x44,0x61,0x74,0x61,0x73,0x65,0x74,0x45,0x78,0x74,0x72,0x61,0x49,0x74,0x65,0x6d,0x73,0x29,0x2a,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69, - 0x7a,0x65,0x3b,0x0a,0x52,0x5b,0x32,0x30,0x5d,0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31, - 0x34,0x5d,0x29,0x3b,0x0a,0x52,0x5b,0x32,0x31,0x5d,0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b, - 0x31,0x35,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x00 + 0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x73,0x72,0x63,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c, + 0x3c,0x28,0x73,0x72,0x63,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x28, + 0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x29,0x7c,0x28,0x31,0x75,0x3c,0x3c,0x73,0x72,0x63,0x29,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x63,0x6f,0x6e, + 0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53, + 0x57,0x41,0x50,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53, + 0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e, + 0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53, + 0x57,0x41,0x50,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70, + 0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f, + 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63, + 0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x30,0x78,0x46,0x46,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, + 0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63, + 0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61, + 0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x41,0x44,0x44,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70, + 0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74, + 0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55, + 0x42,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55,0x42, + 0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f, + 0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65, + 0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x30,0x78,0x46,0x46,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73, + 0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c, + 0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61, + 0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74, + 0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x55, + 0x42,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41, + 0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69, + 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x43,0x41, + 0x4c,0x5f,0x52,0x2b,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x4d,0x55,0x4c,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, + 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73, + 0x73,0x3d,0x3d,0x31,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x3d,0x6a,0x69,0x74,0x5f,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x72,0x65,0x61,0x64,0x28,0x70,0x30,0x2c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75, + 0x6e,0x74,0x2c,0x69,0x2c,0x73,0x72,0x63,0x2c,0x30,0x78,0x46,0x46,0x2c,0x69,0x6e,0x73,0x74,0x2c,0x73,0x72,0x63,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, + 0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70, + 0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67, + 0x65,0x74,0x2c,0x6c,0x61,0x73,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x29,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f, + 0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x44,0x49,0x56,0x5f,0x4d,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f, + 0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52,0x54,0x5f,0x52,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69, + 0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x46,0x53,0x51,0x52, + 0x54,0x5f,0x52,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41, + 0x4e,0x43,0x48,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,0x20,0x75,0x69, + 0x6e,0x74,0x20,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x32,0x3d,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, + 0x74,0x3b,0x0a,0x65,0x5b,0x64,0x73,0x74,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x32,0x5d,0x2e,0x78,0x7c,0x3d,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c, + 0x38,0x29,0x3b,0x0a,0x65,0x5b,0x69,0x5d,0x2e,0x78,0x7c,0x3d,0x28,0x30,0x78,0x34,0x30,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e, + 0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x30,0x3b,0x20,0x6a,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x6a,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x75,0x69,0x6e, + 0x74,0x20,0x74,0x3d,0x69,0x7c,0x28,0x69,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x74,0x3d,0x74,0x7c,0x28,0x74,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x74,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68, + 0x61,0x6e,0x67,0x65,0x64,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x7c,0x28,0x72,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3c,0x3c,0x33,0x32,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73, + 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x30,0x78,0x46,0x46,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x23,0x69, + 0x66,0x20,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x72,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x64,0x73,0x74,0x5d,0x3d,0x69,0x3b,0x0a,0x23,0x65,0x6c,0x73,0x65,0x0a,0x72, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74, + 0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c, + 0x6f,0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x64,0x73,0x74,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68, + 0x61,0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x64,0x73,0x74,0x3b,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20, + 0x72,0x65,0x67,0x3d,0x30,0x3b,0x20,0x72,0x65,0x67,0x3c,0x38,0x3b,0x20,0x2b,0x2b,0x72,0x65,0x67,0x29,0x0a,0x7b,0x0a,0x23,0x69,0x66,0x20,0x52,0x41,0x4e,0x44,0x4f, + 0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x20,0x3e,0x20,0x32,0x35,0x36,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74, + 0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65, + 0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x5b,0x72,0x65,0x67,0x5d,0x2b, + 0x31,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x72,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x72,0x65,0x67,0x5d,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x61,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x41,0x74,0x21,0x3d,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b, + 0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x5b,0x72,0x65,0x67,0x5d,0x3d,0x69,0x3b,0x0a,0x7d,0x0a,0x23, + 0x65,0x6c,0x73,0x65,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63, + 0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61, + 0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x26,0x28,0x31,0x75,0x3c,0x3c,0x72,0x65,0x67,0x29,0x29,0x3f,0x28,0x28,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72, + 0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x3e,0x3e,0x28,0x72,0x65,0x67,0x2a, + 0x38,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x2b,0x31,0x29,0x3a,0x30,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x61,0x76,0x61,0x69,0x6c, + 0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x28,0x31,0x75,0x3c,0x3c, + 0x72,0x65,0x67,0x29,0x29,0x3f,0x28,0x28,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3e,0x3e,0x28,0x72, + 0x65,0x67,0x2a,0x38,0x29,0x29,0x26,0x30,0x78,0x46,0x46,0x29,0x2b,0x31,0x29,0x3a,0x30,0x3b,0x0a,0x69,0x66,0x28,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41, + 0x74,0x21,0x3d,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x29,0x0a,0x7b,0x0a,0x72,0x65, + 0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0x3d,0x28,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x4c,0x61,0x73,0x74,0x43, + 0x68,0x61,0x6e,0x67,0x65,0x64,0x26,0x7e,0x28,0x30,0x78,0x46,0x46,0x75,0x6c,0x3c,0x3c,0x28,0x72,0x65,0x67,0x2a,0x38,0x29,0x29,0x29,0x7c,0x28,0x28,0x75,0x6c,0x6f, + 0x6e,0x67,0x29,0x28,0x69,0x29,0x3c,0x3c,0x28,0x72,0x65,0x67,0x2a,0x38,0x29,0x29,0x3b,0x0a,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x57,0x61,0x73,0x43,0x68,0x61, + 0x6e,0x67,0x65,0x64,0x7c,0x3d,0x31,0x75,0x3c,0x3c,0x72,0x65,0x67,0x3b,0x0a,0x7d,0x0a,0x23,0x65,0x6e,0x64,0x69,0x66,0x0a,0x7d,0x0a,0x69,0x66,0x28,0x73,0x63,0x72, + 0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x21,0x3d, + 0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48, + 0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x42,0x72,0x61,0x6e,0x63,0x68,0x54,0x61,0x72,0x67,0x65,0x74,0x21,0x3d,0x73,0x63,0x72,0x61, + 0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x29,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61, + 0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, + 0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x42,0x52,0x41,0x4e,0x43,0x48, + 0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44, + 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x43,0x46,0x52,0x4f,0x55,0x4e,0x44,0x3b,0x0a,0x69,0x66,0x28,0x6f,0x70,0x63,0x6f,0x64,0x65,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f, + 0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x29,0x0a,0x7b,0x0a,0x69,0x66,0x28,0x70,0x61,0x73,0x73,0x3d,0x3d,0x30,0x29,0x0a,0x7b,0x0a,0x65,0x5b,0x69, + 0x5d,0x2e,0x78,0x3d,0x69,0x6e,0x73,0x74,0x2e,0x78,0x7c,0x28,0x30,0x78,0x38,0x30,0x3c,0x3c,0x38,0x29,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x73, + 0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x69,0x66,0x28,0x28,0x6d,0x6f, + 0x64,0x3e,0x3e,0x34,0x29,0x3e,0x3d,0x31,0x34,0x29,0x0a,0x73,0x63,0x72,0x61,0x74,0x63,0x68,0x70,0x61,0x64,0x48,0x69,0x67,0x68,0x41,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x6c,0x65,0x41,0x74,0x3d,0x69,0x2b,0x31,0x3b,0x0a,0x7d,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x6f,0x70,0x63,0x6f,0x64,0x65,0x2d,0x3d, + 0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x46,0x52,0x45,0x51,0x5f,0x49,0x53,0x54,0x4f,0x52,0x45,0x3b,0x0a,0x7d,0x0a,0x7d,0x0a,0x75,0x69,0x6e,0x74,0x20,0x70,0x72, + 0x65,0x76,0x3d,0x70,0x30,0x5b,0x30,0x5d,0x2e,0x78,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72, + 0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x3d,0x31,0x3b,0x20,0x6a,0x3c,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74, + 0x3b,0x20,0x2b,0x2b,0x6a,0x29,0x0a,0x7b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x63,0x75,0x72,0x3d,0x70,0x30,0x5b,0x6a,0x5d,0x3b,0x0a,0x69,0x66,0x28,0x63,0x75,0x72, + 0x2e,0x78,0x3e,0x3d,0x70,0x72,0x65,0x76,0x29,0x0a,0x7b,0x0a,0x70,0x72,0x65,0x76,0x3d,0x63,0x75,0x72,0x2e,0x78,0x3b,0x0a,0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65, + 0x3b,0x0a,0x7d,0x0a,0x69,0x6e,0x74,0x20,0x6a,0x31,0x3d,0x6a,0x2d,0x31,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x70,0x30,0x5b,0x6a,0x31,0x2b,0x31,0x5d,0x3d,0x70,0x30, + 0x5b,0x6a,0x31,0x5d,0x3b,0x0a,0x2d,0x2d,0x6a,0x31,0x3b,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x28,0x6a,0x31,0x3e,0x3d,0x30,0x29,0x26,0x26,0x28,0x70, + 0x30,0x5b,0x6a,0x31,0x5d,0x2e,0x78,0x3e,0x3d,0x63,0x75,0x72,0x2e,0x78,0x29,0x29,0x3b,0x0a,0x70,0x30,0x5b,0x6a,0x31,0x2b,0x31,0x5d,0x3d,0x63,0x75,0x72,0x3b,0x0a, + 0x7d,0x0a,0x70,0x30,0x5b,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x5d,0x2e,0x78,0x3d,0x52,0x41,0x4e,0x44, + 0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x20, + 0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69, + 0x6e,0x74,0x2a,0x29,0x28,0x70,0x30,0x2b,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x2b,0x31,0x29,0x3b,0x0a, + 0x65,0x6e,0x75,0x6d,0x20,0x7b,0x20,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3d,0x32,0x31,0x20,0x7d,0x3b,0x0a, + 0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x6e, + 0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68, + 0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x5b,0x69,0x5d,0x3d,0x4e,0x55,0x4d,0x5f,0x56,0x47,0x50,0x52,0x5f,0x52,0x45,0x47,0x49,0x53,0x54,0x45, + 0x52,0x53,0x2d,0x32,0x2d,0x69,0x2a,0x32,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x69,0x6e,0x74,0x2a,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68, + 0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x3d,0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x2b,0x6e,0x75, + 0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c, + 0x20,0x38,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52, + 0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b,0x2b,0x69,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5b,0x69, + 0x5d,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6b,0x3d,0x30,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x32,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74, + 0x61,0x3d,0x70,0x30,0x5b,0x30,0x5d,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3d,0x30,0x3b,0x0a,0x69,0x6e,0x74,0x20, + 0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x36,0x33,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66, + 0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x3d,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63, + 0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61, + 0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x3d,0x70,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x69,0x7a,0x65,0x5f,0x6c,0x69, + 0x6d,0x69,0x74,0x3d,0x28,0x43,0x4f,0x4d,0x50,0x49,0x4c,0x45,0x44,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2d,0x32,0x30,0x30,0x29,0x2f, + 0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x73,0x74,0x61, + 0x72,0x74,0x5f,0x70,0x3d,0x70,0x3b,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x75,0x6e,0x72,0x6f,0x6c,0x6c,0x20,0x31,0x0a,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e, + 0x74,0x20,0x69,0x3d,0x30,0x3b,0x20,0x69,0x3c,0x52,0x41,0x4e,0x44,0x4f,0x4d,0x58,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x3b,0x20,0x2b, + 0x2b,0x69,0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x32,0x20,0x69,0x6e,0x73,0x74,0x3d,0x65,0x5b,0x69,0x5d,0x3b,0x0a,0x69,0x66,0x28, + 0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x32,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61, + 0x72,0x67,0x65,0x74,0x3d,0x70,0x3b,0x0a,0x62,0x6f,0x6f,0x6c,0x20,0x64,0x6f,0x6e,0x65,0x3d,0x66,0x61,0x6c,0x73,0x65,0x3b,0x0a,0x64,0x6f,0x20,0x7b,0x0a,0x75,0x69, + 0x6e,0x74,0x32,0x20,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76, + 0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3b,0x0a,0x69,0x6e,0x74,0x20,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x3b,0x0a,0x69,0x66,0x28,0x21,0x64,0x6f, + 0x6e,0x65,0x26,0x26,0x28,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x2e,0x78,0x3d,0x3d,0x69,0x29,0x26,0x26,0x28,0x6e,0x75,0x6d,0x5f,0x70, + 0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x3e,0x30,0x29,0x29,0x0a,0x7b,0x0a,0x2b,0x2b, + 0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3d,0x70, + 0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x5b,0x2d,0x2d,0x6e,0x75,0x6d,0x5f,0x70,0x72,0x65,0x66,0x65,0x74, + 0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x5d,0x3b,0x0a,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f, + 0x76,0x67,0x70,0x72,0x73,0x5b,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x2e,0x79,0x5d,0x3d,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x7c,0x28, + 0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3c,0x3c,0x31,0x36,0x29,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x65,0x5b,0x70,0x72,0x65, + 0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x2e,0x79,0x5d,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72, + 0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x3d,0x6d,0x65,0x6d,0x5f,0x63,0x6f, + 0x75,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x36,0x33,0x3b,0x0a,0x2b,0x2b,0x6b,0x3b,0x0a, + 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x64,0x61,0x74,0x61,0x3d,0x70,0x30,0x5b,0x6b,0x5d,0x3b,0x0a,0x7d,0x0a,0x65,0x6c,0x73,0x65,0x0a,0x7b,0x0a,0x63,0x6f, + 0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x64,0x61,0x74,0x61,0x3d,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5b,0x69,0x5d,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x76,0x67,0x70, + 0x72,0x5f,0x69,0x64,0x3d,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x64,0x61,0x74,0x61,0x26,0x30,0x78,0x46,0x46,0x46, + 0x46,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x70,0x72,0x65,0x76,0x5f,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3d,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x65,0x64,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x64,0x61,0x74,0x61,0x3e,0x3e,0x31,0x36,0x3b,0x0a,0x69,0x66,0x28,0x76,0x67,0x70,0x72, + 0x5f,0x69,0x64,0x29,0x0a,0x70,0x72,0x65,0x66,0x65,0x63,0x74,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x73,0x74,0x61,0x63,0x6b,0x5b,0x6e,0x75,0x6d,0x5f,0x70,0x72, + 0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x73,0x5f,0x61,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x2b,0x2b,0x5d,0x3d,0x76,0x67,0x70,0x72,0x5f,0x69, + 0x64,0x3b,0x0a,0x69,0x66,0x28,0x69,0x6e,0x73,0x74,0x2e,0x78,0x26,0x28,0x30,0x78,0x38,0x30,0x3c,0x3c,0x38,0x29,0x29,0x0a,0x7b,0x0a,0x2b,0x2b,0x6d,0x65,0x6d,0x5f, + 0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x36,0x33,0x3b,0x0a,0x7d,0x0a,0x63, + 0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,0x74,0x20,0x76,0x6d,0x63,0x6e,0x74,0x3d,0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x2d,0x70,0x72,0x65,0x76,0x5f, + 0x6d,0x65,0x6d,0x5f,0x63,0x6f,0x75,0x6e,0x74,0x65,0x72,0x3b,0x0a,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x3d,0x69,0x6e,0x73,0x74,0x3b,0x0a,0x6a,0x69,0x74,0x5f, + 0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x2d,0x76,0x67,0x70,0x72,0x5f,0x69,0x64,0x3b,0x0a,0x6a,0x69, + 0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x3d,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3c,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x29,0x3f, + 0x76,0x6d,0x63,0x6e,0x74,0x3a,0x2d,0x31,0x3b,0x0a,0x69,0x66,0x28,0x76,0x6d,0x63,0x6e,0x74,0x3c,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c, + 0x75,0x65,0x29,0x0a,0x73,0x5f,0x77,0x61,0x69,0x74,0x63,0x6e,0x74,0x5f,0x76,0x61,0x6c,0x75,0x65,0x3d,0x76,0x6d,0x63,0x6e,0x74,0x3b,0x0a,0x64,0x6f,0x6e,0x65,0x3d, + 0x74,0x72,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x70,0x3d,0x6a,0x69,0x74,0x5f,0x65,0x6d,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x28,0x70, + 0x2c,0x6c,0x61,0x73,0x74,0x5f,0x62,0x72,0x61,0x6e,0x63,0x68,0x5f,0x74,0x61,0x72,0x67,0x65,0x74,0x2c,0x6a,0x69,0x74,0x5f,0x69,0x6e,0x73,0x74,0x2c,0x6a,0x69,0x74, + 0x5f,0x70,0x72,0x65,0x66,0x65,0x74,0x63,0x68,0x5f,0x76,0x67,0x70,0x72,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2c,0x6a,0x69,0x74,0x5f,0x76,0x6d,0x63,0x6e,0x74,0x2c,0x62, + 0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x69,0x66,0x28,0x70,0x2d,0x73,0x74,0x61,0x72,0x74,0x5f,0x70,0x3e,0x73,0x69,0x7a,0x65,0x5f,0x6c,0x69, + 0x6d,0x69,0x74,0x29,0x0a,0x7b,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33, + 0x3b,0x20,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x7d,0x20,0x77,0x68,0x69,0x6c,0x65,0x20,0x28,0x21,0x64,0x6f,0x6e,0x65,0x29,0x3b,0x0a, + 0x7d,0x0a,0x2a,0x28,0x70,0x2b,0x2b,0x29,0x3d,0x53,0x5f,0x53,0x45,0x54,0x50,0x43,0x5f,0x42,0x36,0x34,0x5f,0x53,0x31,0x32,0x5f,0x31,0x33,0x3b,0x20,0x0a,0x72,0x65, + 0x74,0x75,0x72,0x6e,0x20,0x70,0x3b,0x0a,0x7d,0x0a,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x72,0x65,0x71,0x64,0x5f,0x77,0x6f, + 0x72,0x6b,0x5f,0x67,0x72,0x6f,0x75,0x70,0x5f,0x73,0x69,0x7a,0x65,0x28,0x36,0x34,0x2c,0x31,0x2c,0x31,0x29,0x29,0x29,0x0a,0x5f,0x5f,0x6b,0x65,0x72,0x6e,0x65,0x6c, + 0x20,0x76,0x6f,0x69,0x64,0x20,0x72,0x61,0x6e,0x64,0x6f,0x6d,0x78,0x5f,0x6a,0x69,0x74,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67, + 0x2a,0x20,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c,0x6f,0x6e,0x67,0x2a,0x20,0x72,0x65,0x67,0x69,0x73,0x74, + 0x65,0x72,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x69,0x6e,0x74,0x65,0x72,0x6d,0x65,0x64,0x69,0x61,0x74,0x65, + 0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x73,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d, + 0x73,0x2c,0x75,0x69,0x6e,0x74,0x20,0x62,0x61,0x74,0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x2c,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x33, + 0x32,0x5f,0x74,0x2a,0x20,0x72,0x6f,0x75,0x6e,0x64,0x69,0x6e,0x67,0x2c,0x75,0x69,0x6e,0x74,0x33,0x32,0x5f,0x74,0x20,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e, + 0x29,0x0a,0x7b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x3d,0x67,0x65,0x74,0x5f, + 0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x2f,0x33,0x32,0x3b,0x0a,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,0x74,0x20,0x73,0x75,0x62,0x3d, + 0x67,0x65,0x74,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x64,0x28,0x30,0x29,0x20,0x25,0x20,0x33,0x32,0x3b,0x0a,0x69,0x66,0x28,0x73,0x75,0x62,0x21,0x3d,0x30, + 0x29,0x0a,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x20,0x65,0x3d,0x28,0x5f,0x5f,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x32,0x2a,0x29,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64, + 0x65,0x78,0x2a,0x28,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x2b, + 0x28,0x31,0x32,0x38,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75, + 0x69,0x6e,0x74,0x32,0x2a,0x20,0x70,0x30,0x3d,0x69,0x6e,0x74,0x65,0x72,0x6d,0x65,0x64,0x69,0x61,0x74,0x65,0x5f,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x73,0x2b,0x67, + 0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x49,0x4e,0x54,0x45,0x52,0x4d,0x45,0x44,0x49,0x41,0x54,0x45,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41, + 0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74,0x32,0x29,0x29,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20, + 0x75,0x69,0x6e,0x74,0x2a,0x20,0x70,0x3d,0x70,0x72,0x6f,0x67,0x72,0x61,0x6d,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x43, + 0x4f,0x4d,0x50,0x49,0x4c,0x45,0x44,0x5f,0x50,0x52,0x4f,0x47,0x52,0x41,0x4d,0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x69,0x6e,0x74, + 0x29,0x29,0x3b,0x0a,0x67,0x65,0x6e,0x65,0x72,0x61,0x74,0x65,0x5f,0x6a,0x69,0x74,0x5f,0x63,0x6f,0x64,0x65,0x28,0x65,0x2c,0x70,0x30,0x2c,0x70,0x2c,0x62,0x61,0x74, + 0x63,0x68,0x5f,0x73,0x69,0x7a,0x65,0x29,0x3b,0x0a,0x69,0x66,0x28,0x69,0x74,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x3d,0x30,0x29,0x0a,0x72,0x6f,0x75,0x6e,0x64, + 0x69,0x6e,0x67,0x5b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x5d,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x6c, + 0x6f,0x6e,0x67,0x2a,0x20,0x52,0x3d,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x2b,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x33,0x32, + 0x3b,0x0a,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x2b,0x3d,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x5f,0x69,0x6e,0x64,0x65,0x78,0x2a,0x28,0x45,0x4e,0x54,0x52,0x4f,0x50,0x59, + 0x5f,0x53,0x49,0x5a,0x45,0x2f,0x73,0x69,0x7a,0x65,0x6f,0x66,0x28,0x75,0x6c,0x6f,0x6e,0x67,0x29,0x29,0x3b,0x0a,0x52,0x5b,0x30,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b, + 0x31,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x32,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x33,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x34,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b, + 0x35,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x36,0x5d,0x3d,0x30,0x3b,0x0a,0x52,0x5b,0x37,0x5d,0x3d,0x30,0x3b,0x0a,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64, + 0x6f,0x75,0x62,0x6c,0x65,0x2a,0x20,0x41,0x3d,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x64,0x6f,0x75,0x62,0x6c,0x65,0x2a,0x29,0x28,0x52,0x2b,0x32,0x34, + 0x29,0x3b,0x0a,0x41,0x5b,0x30,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74, + 0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x30,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x31,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69, + 0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x32,0x5d,0x3d, + 0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70, + 0x79,0x5b,0x32,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x33,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61, + 0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x33,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x34,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c, + 0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x34,0x5d,0x29,0x3b,0x0a,0x41, + 0x5b,0x35,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e, + 0x74,0x72,0x6f,0x70,0x79,0x5b,0x35,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x36,0x5d,0x3d,0x67,0x65,0x74,0x53,0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65, + 0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x36,0x5d,0x29,0x3b,0x0a,0x41,0x5b,0x37,0x5d,0x3d,0x67,0x65,0x74,0x53, + 0x6d,0x61,0x6c,0x6c,0x50,0x6f,0x73,0x69,0x74,0x69,0x76,0x65,0x46,0x6c,0x6f,0x61,0x74,0x42,0x69,0x74,0x73,0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x37,0x5d, + 0x29,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x65, + 0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x38,0x5d,0x26,0x43,0x61,0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x41,0x6c,0x69,0x67,0x6e,0x4d,0x61,0x73,0x6b,0x3b,0x0a,0x28,0x28, + 0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x36,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x65,0x6e,0x74,0x72,0x6f,0x70, + 0x79,0x5b,0x31,0x30,0x5d,0x3b,0x0a,0x75,0x69,0x6e,0x74,0x20,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x3d,0x65,0x6e,0x74, + 0x72,0x6f,0x70,0x79,0x5b,0x31,0x32,0x5d,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x37, + 0x29,0x29,0x5b,0x30,0x5d,0x3d,0x30,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b,0x0a,0x61,0x64, + 0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x20,0x3e,0x3e,0x3d,0x20,0x31,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c, + 0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x37,0x29,0x29,0x5b,0x31,0x5d,0x3d,0x32,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69, + 0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x20,0x3e,0x3e,0x3d,0x20,0x31, + 0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x37,0x29,0x29,0x5b,0x32,0x5d,0x3d,0x34,0x2b, + 0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29,0x3b,0x0a,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x73,0x20,0x3e,0x3e,0x3d,0x20,0x31,0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28, + 0x52,0x2b,0x31,0x37,0x29,0x29,0x5b,0x33,0x5d,0x3d,0x36,0x2b,0x28,0x61,0x64,0x64,0x72,0x65,0x73,0x73,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x73,0x26,0x31,0x29, + 0x3b,0x0a,0x28,0x28,0x5f,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x20,0x75,0x69,0x6e,0x74,0x2a,0x29,0x28,0x52,0x2b,0x31,0x39,0x29,0x29,0x5b,0x30,0x5d,0x3d,0x28,0x65, + 0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x33,0x5d,0x26,0x44,0x61,0x74,0x61,0x73,0x65,0x74,0x45,0x78,0x74,0x72,0x61,0x49,0x74,0x65,0x6d,0x73,0x29,0x2a,0x43,0x61, + 0x63,0x68,0x65,0x4c,0x69,0x6e,0x65,0x53,0x69,0x7a,0x65,0x3b,0x0a,0x52,0x5b,0x32,0x30,0x5d,0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b,0x28, + 0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x34,0x5d,0x29,0x3b,0x0a,0x52,0x5b,0x32,0x31,0x5d,0x3d,0x67,0x65,0x74,0x46,0x6c,0x6f,0x61,0x74,0x4d,0x61,0x73,0x6b, + 0x28,0x65,0x6e,0x74,0x72,0x6f,0x70,0x79,0x5b,0x31,0x35,0x5d,0x29,0x3b,0x0a,0x7d,0x0a,0x00 }; } // namespace xmrig diff --git a/src/backend/opencl/cl/rx/randomx_constants_keva.h b/src/backend/opencl/cl/rx/randomx_constants_keva.h new file mode 100644 index 00000000..f9564497 --- /dev/null +++ b/src/backend/opencl/cl/rx/randomx_constants_keva.h @@ -0,0 +1,96 @@ +/* +Copyright (c) 2019 SChernykh + +This file is part of RandomX OpenCL. + +RandomX OpenCL is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +RandomX OpenCL is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with RandomX OpenCL. If not, see . +*/ + +//Dataset base size in bytes. Must be a power of 2. +#define RANDOMX_DATASET_BASE_SIZE 2147483648 + +//Dataset extra size. Must be divisible by 64. +#define RANDOMX_DATASET_EXTRA_SIZE 33554368 + +//Scratchpad L3 size in bytes. Must be a power of 2. +#define RANDOMX_SCRATCHPAD_L3 1048576 + +//Scratchpad L2 size in bytes. Must be a power of two and less than or equal to RANDOMX_SCRATCHPAD_L3. +#define RANDOMX_SCRATCHPAD_L2 131072 + +//Scratchpad L1 size in bytes. Must be a power of two (minimum 64) and less than or equal to RANDOMX_SCRATCHPAD_L2. +#define RANDOMX_SCRATCHPAD_L1 16384 + +//Jump condition mask size in bits. +#define RANDOMX_JUMP_BITS 8 + +//Jump condition mask offset in bits. The sum of RANDOMX_JUMP_BITS and RANDOMX_JUMP_OFFSET must not exceed 16. +#define RANDOMX_JUMP_OFFSET 8 + +//Integer instructions +#define RANDOMX_FREQ_IADD_RS 16 +#define RANDOMX_FREQ_IADD_M 7 +#define RANDOMX_FREQ_ISUB_R 16 +#define RANDOMX_FREQ_ISUB_M 7 +#define RANDOMX_FREQ_IMUL_R 16 +#define RANDOMX_FREQ_IMUL_M 4 +#define RANDOMX_FREQ_IMULH_R 4 +#define RANDOMX_FREQ_IMULH_M 1 +#define RANDOMX_FREQ_ISMULH_R 4 +#define RANDOMX_FREQ_ISMULH_M 1 +#define RANDOMX_FREQ_IMUL_RCP 8 +#define RANDOMX_FREQ_INEG_R 2 +#define RANDOMX_FREQ_IXOR_R 15 +#define RANDOMX_FREQ_IXOR_M 5 +#define RANDOMX_FREQ_IROR_R 8 +#define RANDOMX_FREQ_IROL_R 2 +#define RANDOMX_FREQ_ISWAP_R 4 + +//Floating point instructions +#define RANDOMX_FREQ_FSWAP_R 4 +#define RANDOMX_FREQ_FADD_R 16 +#define RANDOMX_FREQ_FADD_M 5 +#define RANDOMX_FREQ_FSUB_R 16 +#define RANDOMX_FREQ_FSUB_M 5 +#define RANDOMX_FREQ_FSCAL_R 6 +#define RANDOMX_FREQ_FMUL_R 32 +#define RANDOMX_FREQ_FDIV_M 4 +#define RANDOMX_FREQ_FSQRT_R 6 + +//Control instructions +#define RANDOMX_FREQ_CBRANCH 25 +#define RANDOMX_FREQ_CFROUND 1 + +//Store instruction +#define RANDOMX_FREQ_ISTORE 16 + +//No-op instruction +#define RANDOMX_FREQ_NOP 0 + +#define RANDOMX_DATASET_ITEM_SIZE 64 + +#define RANDOMX_PROGRAM_SIZE 256 + +#define HASH_SIZE 64 +#define ENTROPY_SIZE (128 + RANDOMX_PROGRAM_SIZE * 8) +#define REGISTERS_SIZE 256 +#define IMM_BUF_SIZE (RANDOMX_PROGRAM_SIZE * 4 - REGISTERS_SIZE) +#define IMM_INDEX_COUNT ((IMM_BUF_SIZE / 4) - 2) +#define VM_STATE_SIZE (REGISTERS_SIZE + IMM_BUF_SIZE + RANDOMX_PROGRAM_SIZE * 4) +#define ROUNDING_MODE (RANDOMX_FREQ_CFROUND ? -1 : 0) + +// Scratchpad L1/L2/L3 bits +#define LOC_L1 (32 - 14) +#define LOC_L2 (32 - 17) +#define LOC_L3 (32 - 20) diff --git a/src/backend/opencl/generators/ocl_generic_astrobwt_generator.cpp b/src/backend/opencl/generators/ocl_generic_astrobwt_generator.cpp new file mode 100644 index 00000000..95dffd5b --- /dev/null +++ b/src/backend/opencl/generators/ocl_generic_astrobwt_generator.cpp @@ -0,0 +1,64 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018 Lee Clagett + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/opencl/OclThreads.h" +#include "backend/opencl/wrappers/OclDevice.h" +#include "base/crypto/Algorithm.h" +#include "crypto/randomx/randomx.h" +#include "crypto/rx/RxAlgo.h" + + +namespace xmrig { + + +bool ocl_generic_astrobwt_generator(const OclDevice &device, const Algorithm &algorithm, OclThreads &threads) +{ + if (algorithm.family() != Algorithm::ASTROBWT) { + return false; + } + + const size_t mem = device.globalMemSize(); + + uint32_t per_thread_mem = 10 << 20; + uint32_t intensity = static_cast((mem - (128 << 20)) / per_thread_mem / 2); + + intensity &= ~63U; + + if (!intensity) { + return false; + } + + if (intensity > 256) { + intensity = 256; + } + + threads.add(OclThread(device.index(), intensity, 2)); + + return true; +} + + +} // namespace xmrig diff --git a/src/backend/opencl/interfaces/IOclRunner.h b/src/backend/opencl/interfaces/IOclRunner.h index e136509a..c53af037 100644 --- a/src/backend/opencl/interfaces/IOclRunner.h +++ b/src/backend/opencl/interfaces/IOclRunner.h @@ -64,7 +64,7 @@ public: virtual uint32_t deviceIndex() const = 0; virtual void build() = 0; virtual void init() = 0; - virtual void run(uint32_t nonce, uint32_t nonce_offset, uint32_t *hashOutput) = 0; + virtual void run(uint32_t nonce, uint32_t *hashOutput) = 0; virtual void set(const Job &job, uint8_t *blob) = 0; virtual void jobEarlyNotification(const Job&) = 0; diff --git a/src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.cpp similarity index 52% rename from src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.cpp rename to src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.cpp index 42930399..95f65d32 100644 --- a/src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.cpp +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,37 +23,20 @@ */ -#include "backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.h" #include "backend/opencl/wrappers/OclLib.h" -void xmrig::Blake2bInitialHashBigKernel::enqueue(cl_command_queue queue, size_t threads) +void xmrig::AstroBWT_FilterKernel::enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size) { - const size_t gthreads = threads; - static const size_t lthreads = 64; - - enqueueNDRange(queue, 1, nullptr, >hreads, <hreads); + enqueueNDRange(queue, 1, nullptr, &threads, &workgroup_size); } -// __kernel void blake2b_initial_hash_double(__global void *out, __global const void* blockTemplate, uint blockTemplateSize, uint start_nonce) -void xmrig::Blake2bInitialHashBigKernel::setArgs(cl_mem out, cl_mem blockTemplate) +void xmrig::AstroBWT_FilterKernel::setArgs(uint32_t nonce, uint32_t bwt_max_size, cl_mem hashes, cl_mem filtered_hashes) { - setArg(0, sizeof(cl_mem), &out); - setArg(1, sizeof(cl_mem), &blockTemplate); -} - - -void xmrig::Blake2bInitialHashBigKernel::setBlobSize(size_t size) -{ - const uint32_t s = size; - - setArg(2, sizeof(uint32_t), &s); -} - - -void xmrig::Blake2bInitialHashBigKernel::setNonce(uint32_t nonce, uint32_t nonce_offset) -{ - setArg(3, sizeof(uint32_t), &nonce); - setArg(4, sizeof(uint32_t), &nonce_offset); + setArg(0, sizeof(uint32_t), &nonce); + setArg(1, sizeof(uint32_t), &bwt_max_size); + setArg(2, sizeof(cl_mem), &hashes); + setArg(3, sizeof(cl_mem), &filtered_hashes); } diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.h new file mode 100644 index 00000000..60a748de --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.h @@ -0,0 +1,48 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_ASTROBWT_FILTERKERNEL_H +#define XMRIG_ASTROBWT_FILTERKERNEL_H + + +#include "backend/opencl/wrappers/OclKernel.h" + + +namespace xmrig { + + +class AstroBWT_FilterKernel : public OclKernel +{ +public: + inline AstroBWT_FilterKernel(cl_program program) : OclKernel(program, "filter") {} + + void enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size); + void setArgs(uint32_t nonce, uint32_t bwt_max_size, cl_mem hashes, cl_mem filtered_hashes); +}; + + +} // namespace xmrig + + +#endif /* XMRIG_ASTROBWT_FILTERKERNEL_H */ diff --git a/src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.cpp similarity index 59% rename from src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.cpp rename to src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.cpp index 6b512854..4f3d8aee 100644 --- a/src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.cpp +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.cpp @@ -23,36 +23,25 @@ */ -#include "backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.h" #include "backend/opencl/wrappers/OclLib.h" -void xmrig::Blake2bInitialHashDoubleKernel::enqueue(cl_command_queue queue, size_t threads) +void xmrig::AstroBWT_FindSharesKernel::enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size) { - const size_t gthreads = threads; - static const size_t lthreads = 64; - - enqueueNDRange(queue, 1, nullptr, >hreads, <hreads); + enqueueNDRange(queue, 1, nullptr, &threads, &workgroup_size); } -// __kernel void blake2b_initial_hash_double(__global void *out, __global const void* blockTemplate, uint blockTemplateSize, uint start_nonce) -void xmrig::Blake2bInitialHashDoubleKernel::setArgs(cl_mem out, cl_mem blockTemplate) +void xmrig::AstroBWT_FindSharesKernel::setArgs(cl_mem hashes, cl_mem filtered_hashes, cl_mem shares) { - setArg(0, sizeof(cl_mem), &out); - setArg(1, sizeof(cl_mem), &blockTemplate); + setArg(0, sizeof(cl_mem), &hashes); + setArg(1, sizeof(cl_mem), &filtered_hashes); + setArg(3, sizeof(cl_mem), &shares); } -void xmrig::Blake2bInitialHashDoubleKernel::setBlobSize(size_t size) +void xmrig::AstroBWT_FindSharesKernel::setTarget(uint64_t target) { - const uint32_t s = size; - - setArg(2, sizeof(uint32_t), &s); -} - - -void xmrig::Blake2bInitialHashDoubleKernel::setNonce(uint32_t nonce) -{ - setArg(3, sizeof(uint32_t), &nonce); + setArg(2, sizeof(uint64_t), &target); } diff --git a/src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.h similarity index 72% rename from src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.h rename to src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.h index fe7d8610..6645cc56 100644 --- a/src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.h +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.h @@ -22,8 +22,8 @@ * along with this program. If not, see . */ -#ifndef XMRIG_BLAKE2BINITIALHASHDOUBLEKERNEL_H -#define XMRIG_BLAKE2BINITIALHASHDOUBLEKERNEL_H +#ifndef XMRIG_ASTROBWTFINDSHARESKERNEL_H +#define XMRIG_ASTROBWTFINDSHARESKERNEL_H #include "backend/opencl/wrappers/OclKernel.h" @@ -32,19 +32,18 @@ namespace xmrig { -class Blake2bInitialHashDoubleKernel : public OclKernel +class AstroBWT_FindSharesKernel : public OclKernel { public: - inline Blake2bInitialHashDoubleKernel(cl_program program) : OclKernel(program, "blake2b_initial_hash_double") {} + inline AstroBWT_FindSharesKernel(cl_program program) : OclKernel(program, "find_shares") {} - void enqueue(cl_command_queue queue, size_t threads); - void setArgs(cl_mem out, cl_mem blockTemplate); - void setBlobSize(size_t size); - void setNonce(uint32_t nonce); + void enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size); + void setArgs(cl_mem hashes, cl_mem filtered_hashes, cl_mem shares); + void setTarget(uint64_t target); }; } // namespace xmrig -#endif /* XMRIG_BLAKE2BINITIALHASHDOUBLEKERNEL_H */ +#endif /* XMRIG_ASTROBWTFINDSHARESKERNEL_H */ diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.cpp new file mode 100644 index 00000000..c08562a6 --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.cpp @@ -0,0 +1,44 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.h" +#include "backend/opencl/wrappers/OclLib.h" + + +void xmrig::AstroBWT_MainKernel::enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size) +{ + const size_t gthreads = threads * workgroup_size; + enqueueNDRange(queue, 1, nullptr, >hreads, &workgroup_size); +} + + +void xmrig::AstroBWT_MainKernel::setArgs(cl_mem inputs, cl_mem input_sizes, uint32_t input_stride, cl_mem indices, cl_mem tmp_indices) +{ + setArg(0, sizeof(cl_mem), &inputs); + setArg(1, sizeof(cl_mem), &input_sizes); + setArg(2, sizeof(uint32_t), &input_stride); + setArg(3, sizeof(cl_mem), &indices); + setArg(4, sizeof(cl_mem), &tmp_indices); +} diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.h new file mode 100644 index 00000000..812256eb --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.h @@ -0,0 +1,48 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_ASTROBWT_MAINKERNEL_H +#define XMRIG_ASTROBWT_MAINKERNEL_H + + +#include "backend/opencl/wrappers/OclKernel.h" + + +namespace xmrig { + + +class AstroBWT_MainKernel : public OclKernel +{ +public: + inline AstroBWT_MainKernel(cl_program program) : OclKernel(program, "BWT") {} + + void enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size); + void setArgs(cl_mem inputs, cl_mem input_sizes, uint32_t input_stride, cl_mem indices, cl_mem tmp_indices); +}; + + +} // namespace xmrig + + +#endif /* XMRIG_ASTROBWT_MAINKERNEL_H */ diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.cpp new file mode 100644 index 00000000..962e4821 --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.cpp @@ -0,0 +1,41 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.h" +#include "backend/opencl/wrappers/OclLib.h" + + +void xmrig::AstroBWT_PrepareBatch2Kernel::enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size) +{ + enqueueNDRange(queue, 1, nullptr, &threads, &workgroup_size); +} + + +void xmrig::AstroBWT_PrepareBatch2Kernel::setArgs(cl_mem hashes, cl_mem filtered_hashes, cl_mem bwt_data_sizes) +{ + setArg(0, sizeof(cl_mem), &hashes); + setArg(1, sizeof(cl_mem), &filtered_hashes); + setArg(2, sizeof(cl_mem), &bwt_data_sizes); +} diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.h new file mode 100644 index 00000000..8dd1f983 --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.h @@ -0,0 +1,48 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_ASTROBWT_PREPAREBATCH2KERNEL_H +#define XMRIG_ASTROBWT_PREPAREBATCH2KERNEL_H + + +#include "backend/opencl/wrappers/OclKernel.h" + + +namespace xmrig { + + +class AstroBWT_PrepareBatch2Kernel : public OclKernel +{ +public: + inline AstroBWT_PrepareBatch2Kernel(cl_program program) : OclKernel(program, "prepare_batch2") {} + + void enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size); + void setArgs(cl_mem hashes, cl_mem filtered_hashes, cl_mem bwt_data_sizes); +}; + + +} // namespace xmrig + + +#endif /* XMRIG_ASTROBWT_PREPAREBATCH2KERNEL_H */ diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.cpp new file mode 100644 index 00000000..ac80ae10 --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.cpp @@ -0,0 +1,44 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.h" +#include "backend/opencl/wrappers/OclLib.h" + + +void xmrig::AstroBWT_SHA3InitialKernel::enqueue(cl_command_queue queue, size_t threads) +{ + const size_t workgroup_size = 32; + const size_t gthreads = threads * workgroup_size; + enqueueNDRange(queue, 1, nullptr, >hreads, &workgroup_size); +} + + +void xmrig::AstroBWT_SHA3InitialKernel::setArgs(cl_mem input, uint32_t input_size, uint32_t nonce, cl_mem output_salsa20_keys) +{ + setArg(0, sizeof(cl_mem), &input); + setArg(1, sizeof(uint32_t), &input_size); + setArg(2, sizeof(uint32_t), &nonce); + setArg(3, sizeof(cl_mem), &output_salsa20_keys); +} diff --git a/src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.h similarity index 69% rename from src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.h rename to src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.h index 6d68d024..ad6486c5 100644 --- a/src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.h +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,8 +22,8 @@ * along with this program. If not, see . */ -#ifndef XMRIG_BLAKE2BINITIALHASHBIGKERNEL_H -#define XMRIG_BLAKE2BINITIALHASHBIGKERNEL_H +#ifndef XMRIG_ASTROBWT_SHA3INITIALKERNEL_H +#define XMRIG_ASTROBWT_SHA3INITIALKERNEL_H #include "backend/opencl/wrappers/OclKernel.h" @@ -32,19 +32,17 @@ namespace xmrig { -class Blake2bInitialHashBigKernel : public OclKernel +class AstroBWT_SHA3InitialKernel : public OclKernel { public: - inline Blake2bInitialHashBigKernel(cl_program program) : OclKernel(program, "blake2b_initial_hash_big") {} + inline AstroBWT_SHA3InitialKernel(cl_program program) : OclKernel(program, "sha3_initial") {} void enqueue(cl_command_queue queue, size_t threads); - void setArgs(cl_mem out, cl_mem blockTemplate); - void setBlobSize(size_t size); - void setNonce(uint32_t nonce, uint32_t nonce_offset); + void setArgs(cl_mem input, uint32_t input_size, uint32_t nonce, cl_mem output_salsa20_keys); }; } // namespace xmrig -#endif /* XMRIG_BLAKE2BINITIALHASHBIGKERNEL_H */ +#endif /* XMRIG_ASTROBWT_SHA3INITIALKERNEL_H */ diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.cpp new file mode 100644 index 00000000..323505cb --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.cpp @@ -0,0 +1,44 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.h" +#include "backend/opencl/wrappers/OclLib.h" + + +void xmrig::AstroBWT_SHA3Kernel::enqueue(cl_command_queue queue, size_t threads) +{ + const size_t workgroup_size = 32; + const size_t gthreads = threads * workgroup_size; + enqueueNDRange(queue, 1, nullptr, >hreads, &workgroup_size); +} + + +void xmrig::AstroBWT_SHA3Kernel::setArgs(cl_mem inputs, cl_mem input_sizes, uint32_t input_stride, cl_mem output_salsa20_keys) +{ + setArg(0, sizeof(cl_mem), &inputs); + setArg(1, sizeof(cl_mem), &input_sizes); + setArg(2, sizeof(uint32_t), &input_stride); + setArg(3, sizeof(cl_mem), &output_salsa20_keys); +} diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.h new file mode 100644 index 00000000..62dc1a1a --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.h @@ -0,0 +1,48 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_ASTROBWT_SHA3KERNEL_H +#define XMRIG_ASTROBWT_SHA3KERNEL_H + + +#include "backend/opencl/wrappers/OclKernel.h" + + +namespace xmrig { + + +class AstroBWT_SHA3Kernel : public OclKernel +{ +public: + inline AstroBWT_SHA3Kernel(cl_program program) : OclKernel(program, "sha3") {} + + void enqueue(cl_command_queue queue, size_t threads); + void setArgs(cl_mem inputs, cl_mem input_sizes, uint32_t input_stride, cl_mem output_salsa20_keys); +}; + + +} // namespace xmrig + + +#endif /* XMRIG_ASTROBWT_SHA3KERNEL_H */ diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.cpp b/src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.cpp new file mode 100644 index 00000000..8a0ae9ae --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.cpp @@ -0,0 +1,43 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#include "backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.h" +#include "backend/opencl/wrappers/OclLib.h" + + +void xmrig::AstroBWT_Salsa20Kernel::enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size) +{ + const size_t gthreads = threads * workgroup_size; + enqueueNDRange(queue, 1, nullptr, >hreads, &workgroup_size); +} + + +void xmrig::AstroBWT_Salsa20Kernel::setArgs(cl_mem salsa20_keys, cl_mem outputs, cl_mem output_sizes, uint32_t output_stride) +{ + setArg(0, sizeof(cl_mem), &salsa20_keys); + setArg(1, sizeof(cl_mem), &outputs); + setArg(2, sizeof(cl_mem), &output_sizes); + setArg(3, sizeof(uint32_t), &output_stride); +} diff --git a/src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.h b/src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.h new file mode 100644 index 00000000..945b1fd6 --- /dev/null +++ b/src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.h @@ -0,0 +1,48 @@ +/* XMRig + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_ASTROBWT_SALSA20KERNEL_H +#define XMRIG_ASTROBWT_SALSA20KERNEL_H + + +#include "backend/opencl/wrappers/OclKernel.h" + + +namespace xmrig { + + +class AstroBWT_Salsa20Kernel : public OclKernel +{ +public: + inline AstroBWT_Salsa20Kernel(cl_program program) : OclKernel(program, "Salsa20_XORKeyStream") {} + + void enqueue(cl_command_queue queue, size_t threads, size_t workgroup_size); + void setArgs(cl_mem salsa20_keys, cl_mem outputs, cl_mem output_sizes, uint32_t output_stride); +}; + + +} // namespace xmrig + + +#endif /* XMRIG_ASTROBWT_SALSA20KERNEL_H */ diff --git a/src/backend/opencl/opencl.cmake b/src/backend/opencl/opencl.cmake index 6c6adc23..49134df7 100644 --- a/src/backend/opencl/opencl.cmake +++ b/src/backend/opencl/opencl.cmake @@ -5,7 +5,13 @@ if (BUILD_STATIC AND XMRIG_OS_UNIX AND WITH_OPENCL) endif() if (WITH_OPENCL) - add_definitions(/DXMRIG_FEATURE_OPENCL /DCL_USE_DEPRECATED_OPENCL_1_2_APIS) + add_definitions(/DXMRIG_FEATURE_OPENCL) + add_definitions(/DCL_USE_DEPRECATED_OPENCL_1_2_APIS) + if (XMRIG_OS_APPLE) + add_definitions(/DCL_TARGET_OPENCL_VERSION=120) + elseif (WITH_OPENCL_VERSION) + add_definitions(/DCL_TARGET_OPENCL_VERSION=${WITH_OPENCL_VERSION}) + endif() set(HEADERS_BACKEND_OPENCL src/backend/opencl/cl/OclSource.h @@ -65,13 +71,6 @@ if (WITH_OPENCL) src/backend/opencl/wrappers/OclPlatform.cpp ) - if (XMRIG_OS_APPLE) - add_definitions(/DCL_TARGET_OPENCL_VERSION=120) - list(APPEND SOURCES_BACKEND_OPENCL src/backend/opencl/wrappers/OclDevice_mac.cpp) - elseif (WITH_OPENCL_VERSION) - add_definitions(/DCL_TARGET_OPENCL_VERSION=${WITH_OPENCL_VERSION}) - endif() - if (WIN32) list(APPEND SOURCES_BACKEND_OPENCL src/backend/opencl/OclCache_win.cpp) else() @@ -81,8 +80,6 @@ if (WITH_OPENCL) if (WITH_RANDOMX) list(APPEND HEADERS_BACKEND_OPENCL src/backend/opencl/kernels/rx/Blake2bHashRegistersKernel.h - src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.h - src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.h src/backend/opencl/kernels/rx/Blake2bInitialHashKernel.h src/backend/opencl/kernels/rx/ExecuteVmKernel.h src/backend/opencl/kernels/rx/FillAesKernel.h @@ -99,8 +96,6 @@ if (WITH_OPENCL) list(APPEND SOURCES_BACKEND_OPENCL src/backend/opencl/generators/ocl_generic_rx_generator.cpp src/backend/opencl/kernels/rx/Blake2bHashRegistersKernel.cpp - src/backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.cpp - src/backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.cpp src/backend/opencl/kernels/rx/Blake2bInitialHashKernel.cpp src/backend/opencl/kernels/rx/ExecuteVmKernel.cpp src/backend/opencl/kernels/rx/FillAesKernel.cpp @@ -115,6 +110,31 @@ if (WITH_OPENCL) ) endif() + if (WITH_ASTROBWT) + list(APPEND HEADERS_BACKEND_OPENCL + src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.h + src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.h + src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.h + src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.h + src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.h + src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.h + src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.h + src/backend/opencl/runners/OclAstroBWTRunner.h + ) + + list(APPEND SOURCES_BACKEND_OPENCL + src/backend/opencl/generators/ocl_generic_astrobwt_generator.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.cpp + src/backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.cpp + src/backend/opencl/runners/OclAstroBWTRunner.cpp + ) + endif() + if (WITH_KAWPOW) list(APPEND HEADERS_BACKEND_OPENCL src/backend/opencl/kernels/kawpow/KawPow_CalculateDAGKernel.h diff --git a/src/backend/opencl/runners/OclAstroBWTRunner.cpp b/src/backend/opencl/runners/OclAstroBWTRunner.cpp new file mode 100644 index 00000000..76b1107c --- /dev/null +++ b/src/backend/opencl/runners/OclAstroBWTRunner.cpp @@ -0,0 +1,214 @@ +/* XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "backend/opencl/runners/OclAstroBWTRunner.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_FilterKernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_FindSharesKernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_MainKernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_PrepareBatch2Kernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_Salsa20Kernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_SHA3InitialKernel.h" +#include "backend/opencl/kernels/astrobwt/AstroBWT_SHA3Kernel.h" +#include "backend/opencl/OclLaunchData.h" +#include "backend/opencl/wrappers/OclLib.h" +#include "base/io/log/Log.h" +#include "base/net/stratum/Job.h" + + +namespace xmrig { + + +constexpr int STAGE1_SIZE = 147253; +constexpr uint32_t STAGE1_DATA_STRIDE = (STAGE1_SIZE + 256 + 255) & ~255U; +constexpr uint32_t OclAstroBWTRunner::BWT_DATA_STRIDE; + + +} // namespace xmrig + + +xmrig::OclAstroBWTRunner::OclAstroBWTRunner(size_t index, const OclLaunchData &data) : OclBaseRunner(index, data) +{ + switch (data.device.type()) + { + case OclDevice::Baffin: + case OclDevice::Ellesmere: + case OclDevice::Polaris: + case OclDevice::Lexa: + case OclDevice::Vega_10: + case OclDevice::Vega_20: + case OclDevice::Raven: + m_workgroup_size = 64; + break; + + default: + m_workgroup_size = 32; + break; + } + + m_options += " -DSALSA20_GROUP_SIZE=" + std::to_string(m_workgroup_size); + m_options += " -DBWT_GROUP_SIZE=" + std::to_string(m_workgroup_size); + + m_bwt_allocation_size = static_cast(m_intensity) * BWT_DATA_STRIDE; + m_batch_size1 = static_cast(m_bwt_allocation_size / STAGE1_DATA_STRIDE + 255U) & ~255U; + m_bwt_allocation_size = std::max(m_bwt_allocation_size, m_batch_size1 * STAGE1_DATA_STRIDE); + + m_bwt_data_sizes_host = new uint32_t[m_batch_size1]; +} + + +xmrig::OclAstroBWTRunner::~OclAstroBWTRunner() +{ + delete m_sha3_initial_kernel; + delete m_sha3_kernel; + delete m_salsa20_kernel; + delete m_bwt_kernel; + delete m_filter_kernel; + delete m_prepare_batch2_kernel; + delete m_find_shares_kernel; + + OclLib::release(m_salsa20_keys); + OclLib::release(m_bwt_data); + OclLib::release(m_bwt_data_sizes); + OclLib::release(m_indices); + OclLib::release(m_tmp_indices); + OclLib::release(m_filtered_hashes); + + delete [] m_bwt_data_sizes_host; +} + + +size_t xmrig::OclAstroBWTRunner::bufferSize() const +{ + return OclBaseRunner::bufferSize() + + align(m_batch_size1 * 32) + // m_salsa20_keys + align(m_bwt_allocation_size) + // m_bwt_data + align(m_batch_size1 * 4) + // m_bwt_data_sizes + align(m_bwt_allocation_size * 8) + // m_indices + align(m_bwt_allocation_size * 8) + // m_tmp_indices + align((m_batch_size1 + m_intensity) * 36 + 4); // m_filtered_hashes +} + + +void xmrig::OclAstroBWTRunner::run(uint32_t nonce, uint32_t *hashOutput) +{ + m_sha3_initial_kernel->setArg(2, sizeof(nonce), &nonce); + m_salsa20_kernel->setArg(3, sizeof(STAGE1_DATA_STRIDE), &STAGE1_DATA_STRIDE); + m_bwt_kernel->setArg(2, sizeof(STAGE1_DATA_STRIDE), &STAGE1_DATA_STRIDE); + + const uint32_t t = STAGE1_DATA_STRIDE * 8; + m_sha3_kernel->setArg(2, sizeof(t), &t); + m_filter_kernel->setArg(0, sizeof(nonce), &nonce); + + const uint32_t zero = 0; + enqueueWriteBuffer(m_output, CL_FALSE, sizeof(cl_uint) * 0xFF, sizeof(uint32_t), &zero); + + m_sha3_initial_kernel->enqueue(m_queue, m_batch_size1); + + for (uint32_t i = 0; i < m_batch_size1; ++i) { + m_bwt_data_sizes_host[i] = STAGE1_SIZE; + } + + enqueueWriteBuffer(m_bwt_data_sizes, CL_FALSE, 0, m_batch_size1 * sizeof(uint32_t), m_bwt_data_sizes_host); + + m_salsa20_kernel->enqueue(m_queue, m_batch_size1, m_workgroup_size); + m_bwt_kernel->enqueue(m_queue, m_batch_size1, m_workgroup_size); + m_sha3_kernel->enqueue(m_queue, m_batch_size1); + m_filter_kernel->enqueue(m_queue, m_batch_size1, m_workgroup_size); + + uint32_t num_filtered_hashes = 0; + enqueueReadBuffer(m_filtered_hashes, CL_TRUE, 0, sizeof(num_filtered_hashes), &num_filtered_hashes); + + m_processedHashes = 0; + while (num_filtered_hashes >= m_intensity) + { + num_filtered_hashes -= m_intensity; + m_processedHashes += m_intensity; + + m_salsa20_kernel->setArg(3, sizeof(BWT_DATA_STRIDE), &BWT_DATA_STRIDE); + m_bwt_kernel->setArg(2, sizeof(BWT_DATA_STRIDE), &BWT_DATA_STRIDE); + + const uint32_t t = BWT_DATA_STRIDE * 8; + m_sha3_kernel->setArg(2, sizeof(t), &t); + + m_prepare_batch2_kernel->enqueue(m_queue, m_intensity, m_workgroup_size); + m_salsa20_kernel->enqueue(m_queue, m_intensity, m_workgroup_size); + m_bwt_kernel->enqueue(m_queue, m_intensity, m_workgroup_size); + m_sha3_kernel->enqueue(m_queue, m_intensity); + + m_find_shares_kernel->enqueue(m_queue, m_intensity, m_workgroup_size); + + finalize(hashOutput); + + OclLib::finish(m_queue); + } +} + + +void xmrig::OclAstroBWTRunner::set(const Job &job, uint8_t *blob) +{ + if (job.size() > (Job::kMaxBlobSize - 4)) { + throw std::length_error("job size too big"); + } + + if (job.size() < Job::kMaxBlobSize) { + memset(blob + job.size(), 0, Job::kMaxBlobSize - job.size()); + } + + enqueueWriteBuffer(m_input, CL_TRUE, 0, Job::kMaxBlobSize, blob); + + m_sha3_initial_kernel->setArgs(m_input, static_cast(job.size()), *job.nonce(), m_salsa20_keys); + m_salsa20_kernel->setArgs(m_salsa20_keys, m_bwt_data, m_bwt_data_sizes, STAGE1_DATA_STRIDE); + m_bwt_kernel->setArgs(m_bwt_data, m_bwt_data_sizes, STAGE1_DATA_STRIDE, m_indices, m_tmp_indices); + m_sha3_kernel->setArgs(m_tmp_indices, m_bwt_data_sizes, STAGE1_DATA_STRIDE * 8, m_salsa20_keys); + m_filter_kernel->setArgs(*job.nonce(), BWT_DATA_MAX_SIZE, m_salsa20_keys, m_filtered_hashes); + m_prepare_batch2_kernel->setArgs(m_salsa20_keys, m_filtered_hashes, m_bwt_data_sizes); + m_find_shares_kernel->setArgs(m_salsa20_keys, m_filtered_hashes, m_output); + m_find_shares_kernel->setTarget(job.target()); + + const uint32_t zero = 0; + enqueueWriteBuffer(m_filtered_hashes, CL_TRUE, 0, sizeof(uint32_t), &zero); +} + + +void xmrig::OclAstroBWTRunner::build() +{ + OclBaseRunner::build(); + + m_sha3_initial_kernel = new AstroBWT_SHA3InitialKernel(m_program); + m_sha3_kernel = new AstroBWT_SHA3Kernel(m_program); + m_salsa20_kernel = new AstroBWT_Salsa20Kernel(m_program); + m_bwt_kernel = new AstroBWT_MainKernel(m_program); + m_filter_kernel = new AstroBWT_FilterKernel(m_program); + m_prepare_batch2_kernel = new AstroBWT_PrepareBatch2Kernel(m_program); + m_find_shares_kernel = new AstroBWT_FindSharesKernel(m_program); +} + + +void xmrig::OclAstroBWTRunner::init() +{ + OclBaseRunner::init(); + + const cl_mem_flags f = CL_MEM_READ_WRITE | CL_MEM_HOST_NO_ACCESS; + + m_salsa20_keys = createSubBuffer(f, m_batch_size1 * 32); + m_bwt_data = createSubBuffer(f, m_bwt_allocation_size); + m_bwt_data_sizes = createSubBuffer(CL_MEM_READ_WRITE | CL_MEM_HOST_WRITE_ONLY, m_batch_size1 * 4); + m_indices = createSubBuffer(f, m_bwt_allocation_size * 8); + m_tmp_indices = createSubBuffer(f, m_bwt_allocation_size * 8); + m_filtered_hashes = createSubBuffer(CL_MEM_READ_WRITE, (m_batch_size1 + m_intensity) * 36 + 4); +} diff --git a/src/backend/opencl/runners/OclAstroBWTRunner.h b/src/backend/opencl/runners/OclAstroBWTRunner.h new file mode 100644 index 00000000..d1204f92 --- /dev/null +++ b/src/backend/opencl/runners/OclAstroBWTRunner.h @@ -0,0 +1,89 @@ +/* XMRig + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_OCLASTROBWTRUNNER_H +#define XMRIG_OCLASTROBWTRUNNER_H + + +#include "backend/opencl/runners/OclBaseRunner.h" + +namespace xmrig { + + +class AstroBWT_FilterKernel; +class AstroBWT_MainKernel; +class AstroBWT_PrepareBatch2Kernel; +class AstroBWT_Salsa20Kernel; +class AstroBWT_SHA3InitialKernel; +class AstroBWT_SHA3Kernel; +class AstroBWT_FindSharesKernel; + + +class OclAstroBWTRunner : public OclBaseRunner +{ +public: + static constexpr uint32_t BWT_DATA_MAX_SIZE = 600 * 1024 - 256; + static constexpr uint32_t BWT_DATA_STRIDE = (BWT_DATA_MAX_SIZE + 256 + 255) & ~255U; + + XMRIG_DISABLE_COPY_MOVE_DEFAULT(OclAstroBWTRunner) + + OclAstroBWTRunner(size_t index, const OclLaunchData &data); + ~OclAstroBWTRunner() override; + + inline uint32_t roundSize() const override { return static_cast(m_batch_size1); } + + // ~0.5% of all hashes are invalid + inline uint32_t processedHashes() const override { return static_cast(m_processedHashes * 0.995); } + +protected: + size_t bufferSize() const override; + void run(uint32_t nonce, uint32_t *hashOutput) override; + void set(const Job &job, uint8_t *blob) override; + void build() override; + void init() override; + +private: + AstroBWT_SHA3InitialKernel* m_sha3_initial_kernel = nullptr; + AstroBWT_SHA3Kernel* m_sha3_kernel = nullptr; + AstroBWT_Salsa20Kernel* m_salsa20_kernel = nullptr; + AstroBWT_MainKernel* m_bwt_kernel = nullptr; + AstroBWT_FilterKernel* m_filter_kernel = nullptr; + AstroBWT_PrepareBatch2Kernel* m_prepare_batch2_kernel = nullptr; + AstroBWT_FindSharesKernel* m_find_shares_kernel = nullptr; + + + cl_mem m_salsa20_keys = nullptr; + cl_mem m_bwt_data = nullptr; + cl_mem m_bwt_data_sizes = nullptr; + cl_mem m_indices = nullptr; + cl_mem m_tmp_indices = nullptr; + cl_mem m_filtered_hashes = nullptr; + + uint32_t m_workgroup_size = 0; + uint64_t m_bwt_allocation_size = 0; + uint64_t m_batch_size1 = 0; + uint32_t m_processedHashes = 0; + + uint32_t* m_bwt_data_sizes_host = nullptr; +}; + + +} /* namespace xmrig */ + + +#endif // XMRIG_OCLASTROBWTRUNNER_H diff --git a/src/backend/opencl/runners/OclBaseRunner.cpp b/src/backend/opencl/runners/OclBaseRunner.cpp index 33ffda6a..9e2a48a9 100644 --- a/src/backend/opencl/runners/OclBaseRunner.cpp +++ b/src/backend/opencl/runners/OclBaseRunner.cpp @@ -23,9 +23,6 @@ */ -#include - - #include "backend/opencl/runners/OclBaseRunner.h" #include "backend/opencl/cl/OclSource.h" #include "backend/opencl/OclCache.h" diff --git a/src/backend/opencl/runners/OclCnRunner.cpp b/src/backend/opencl/runners/OclCnRunner.cpp index 05eaaa82..9c1e8544 100644 --- a/src/backend/opencl/runners/OclCnRunner.cpp +++ b/src/backend/opencl/runners/OclCnRunner.cpp @@ -16,9 +16,6 @@ * along with this program. If not, see . */ -#include - - #include "backend/opencl/runners/OclCnRunner.h" #include "backend/opencl/kernels/Cn0Kernel.h" #include "backend/opencl/kernels/Cn1Kernel.h" @@ -87,7 +84,7 @@ size_t xmrig::OclCnRunner::bufferSize() const } -void xmrig::OclCnRunner::run(uint32_t nonce, uint32_t /*nonce_offset*/, uint32_t *hashOutput) +void xmrig::OclCnRunner::run(uint32_t nonce, uint32_t *hashOutput) { static const cl_uint zero = 0; diff --git a/src/backend/opencl/runners/OclCnRunner.h b/src/backend/opencl/runners/OclCnRunner.h index e75de9b7..894fb2c8 100644 --- a/src/backend/opencl/runners/OclCnRunner.h +++ b/src/backend/opencl/runners/OclCnRunner.h @@ -42,7 +42,7 @@ public: protected: size_t bufferSize() const override; - void run(uint32_t nonce, uint32_t nonce_offset, uint32_t *hashOutput) override; + void run(uint32_t nonce, uint32_t *hashOutput) override; void set(const Job &job, uint8_t *blob) override; void build() override; void init() override; diff --git a/src/backend/opencl/runners/OclKawPowRunner.cpp b/src/backend/opencl/runners/OclKawPowRunner.cpp index 9a682b12..275e3f9a 100644 --- a/src/backend/opencl/runners/OclKawPowRunner.cpp +++ b/src/backend/opencl/runners/OclKawPowRunner.cpp @@ -16,9 +16,6 @@ * along with this program. If not, see . */ -#include - - #include "backend/opencl/runners/OclKawPowRunner.h" #include "backend/common/Tags.h" #include "3rdparty/libethash/ethash_internal.h" @@ -75,7 +72,7 @@ OclKawPowRunner::~OclKawPowRunner() } -void OclKawPowRunner::run(uint32_t nonce, uint32_t /*nonce_offset*/, uint32_t *hashOutput) +void OclKawPowRunner::run(uint32_t nonce, uint32_t *hashOutput) { const size_t local_work_size = m_workGroupSize; const size_t global_work_offset = nonce; diff --git a/src/backend/opencl/runners/OclKawPowRunner.h b/src/backend/opencl/runners/OclKawPowRunner.h index 06d02722..d236ce1e 100644 --- a/src/backend/opencl/runners/OclKawPowRunner.h +++ b/src/backend/opencl/runners/OclKawPowRunner.h @@ -40,7 +40,7 @@ public: ~OclKawPowRunner() override; protected: - void run(uint32_t nonce, uint32_t nonce_offset, uint32_t *hashOutput) override; + void run(uint32_t nonce, uint32_t *hashOutput) override; void set(const Job &job, uint8_t *blob) override; void build() override; void init() override; diff --git a/src/backend/opencl/runners/OclRxBaseRunner.cpp b/src/backend/opencl/runners/OclRxBaseRunner.cpp index 46825b76..c991b0c4 100644 --- a/src/backend/opencl/runners/OclRxBaseRunner.cpp +++ b/src/backend/opencl/runners/OclRxBaseRunner.cpp @@ -25,8 +25,6 @@ #include "backend/opencl/runners/OclRxBaseRunner.h" #include "backend/opencl/kernels/rx/Blake2bHashRegistersKernel.h" #include "backend/opencl/kernels/rx/Blake2bInitialHashKernel.h" -#include "backend/opencl/kernels/rx/Blake2bInitialHashDoubleKernel.h" -#include "backend/opencl/kernels/rx/Blake2bInitialHashBigKernel.h" #include "backend/opencl/kernels/rx/FillAesKernel.h" #include "backend/opencl/kernels/rx/FindSharesKernel.h" #include "backend/opencl/kernels/rx/HashAesKernel.h" @@ -73,8 +71,6 @@ xmrig::OclRxBaseRunner::~OclRxBaseRunner() delete m_fillAes4Rx4_entropy; delete m_hashAes1Rx4; delete m_blake2b_initial_hash; - delete m_blake2b_initial_hash_double; - delete m_blake2b_initial_hash_big; delete m_blake2b_hash_registers_32; delete m_blake2b_hash_registers_64; delete m_find_shares; @@ -87,34 +83,16 @@ xmrig::OclRxBaseRunner::~OclRxBaseRunner() } -void xmrig::OclRxBaseRunner::run(uint32_t nonce, uint32_t nonce_offset, uint32_t *hashOutput) +void xmrig::OclRxBaseRunner::run(uint32_t nonce, uint32_t *hashOutput) { static const uint32_t zero = 0; - if (m_jobSize <= 128) { - m_blake2b_initial_hash->setNonce(nonce); - } - else if (m_jobSize <= 256) { - m_blake2b_initial_hash_double->setNonce(nonce); - } - else { - m_blake2b_initial_hash_big->setNonce(nonce, nonce_offset); - } - + m_blake2b_initial_hash->setNonce(nonce); m_find_shares->setNonce(nonce); enqueueWriteBuffer(m_output, CL_FALSE, sizeof(cl_uint) * 0xFF, sizeof(uint32_t), &zero); - if (m_jobSize <= 128) { - m_blake2b_initial_hash->enqueue(m_queue, m_intensity); - } - else if (m_jobSize <= 256) { - m_blake2b_initial_hash_double->enqueue(m_queue, m_intensity); - } - else { - m_blake2b_initial_hash_big->enqueue(m_queue, m_intensity); - } - + m_blake2b_initial_hash->enqueue(m_queue, m_intensity); m_fillAes1Rx4_scratchpad->enqueue(m_queue, m_intensity); const uint32_t programCount = RxAlgo::programCount(m_algorithm); @@ -154,16 +132,9 @@ void xmrig::OclRxBaseRunner::set(const Job &job, uint8_t *blob) memset(blob + job.size(), 0, Job::kMaxBlobSize - job.size()); } - memset(blob + job.nonceOffset(), 0, job.nonceSize()); - enqueueWriteBuffer(m_input, CL_TRUE, 0, Job::kMaxBlobSize, blob); - m_jobSize = job.size(); - m_blake2b_initial_hash->setBlobSize(job.size()); - m_blake2b_initial_hash_double->setBlobSize(job.size()); - m_blake2b_initial_hash_big->setBlobSize(job.size()); - m_find_shares->setTarget(job.target()); } @@ -195,12 +166,6 @@ void xmrig::OclRxBaseRunner::build() m_blake2b_initial_hash = new Blake2bInitialHashKernel(m_program); m_blake2b_initial_hash->setArgs(m_hashes, m_input); - m_blake2b_initial_hash_double = new Blake2bInitialHashDoubleKernel(m_program); - m_blake2b_initial_hash_double->setArgs(m_hashes, m_input); - - m_blake2b_initial_hash_big = new Blake2bInitialHashBigKernel(m_program); - m_blake2b_initial_hash_big->setArgs(m_hashes, m_input); - m_blake2b_hash_registers_32 = new Blake2bHashRegistersKernel(m_program, "blake2b_hash_registers_32"); m_blake2b_hash_registers_64 = new Blake2bHashRegistersKernel(m_program, "blake2b_hash_registers_64"); diff --git a/src/backend/opencl/runners/OclRxBaseRunner.h b/src/backend/opencl/runners/OclRxBaseRunner.h index edaa9a73..f0d594c8 100644 --- a/src/backend/opencl/runners/OclRxBaseRunner.h +++ b/src/backend/opencl/runners/OclRxBaseRunner.h @@ -35,8 +35,6 @@ namespace xmrig { class Blake2bHashRegistersKernel; class Blake2bInitialHashKernel; -class Blake2bInitialHashDoubleKernel; -class Blake2bInitialHashBigKernel; class FillAesKernel; class FindSharesKernel; class HashAesKernel; @@ -54,31 +52,27 @@ protected: size_t bufferSize() const override; void build() override; void init() override; - void run(uint32_t nonce, uint32_t nonce_offset, uint32_t *hashOutput) override; + void run(uint32_t nonce, uint32_t *hashOutput) override; void set(const Job &job, uint8_t *blob) override; protected: virtual void execute(uint32_t iteration) = 0; - Blake2bHashRegistersKernel *m_blake2b_hash_registers_32 = nullptr; - Blake2bHashRegistersKernel *m_blake2b_hash_registers_64 = nullptr; - Blake2bInitialHashKernel *m_blake2b_initial_hash = nullptr; - Blake2bInitialHashDoubleKernel *m_blake2b_initial_hash_double = nullptr; - Blake2bInitialHashBigKernel* m_blake2b_initial_hash_big = nullptr; + Blake2bHashRegistersKernel *m_blake2b_hash_registers_32 = nullptr; + Blake2bHashRegistersKernel *m_blake2b_hash_registers_64 = nullptr; + Blake2bInitialHashKernel *m_blake2b_initial_hash = nullptr; Buffer m_seed; - cl_mem m_dataset = nullptr; - cl_mem m_entropy = nullptr; - cl_mem m_hashes = nullptr; - cl_mem m_rounding = nullptr; - cl_mem m_scratchpads = nullptr; - FillAesKernel *m_fillAes1Rx4_scratchpad = nullptr; - FillAesKernel *m_fillAes4Rx4_entropy = nullptr; - FindSharesKernel *m_find_shares = nullptr; - HashAesKernel *m_hashAes1Rx4 = nullptr; - uint32_t m_gcn_version = 12; - uint32_t m_worksize = 8; - - size_t m_jobSize = 0; + cl_mem m_dataset = nullptr; + cl_mem m_entropy = nullptr; + cl_mem m_hashes = nullptr; + cl_mem m_rounding = nullptr; + cl_mem m_scratchpads = nullptr; + FillAesKernel *m_fillAes1Rx4_scratchpad = nullptr; + FillAesKernel *m_fillAes4Rx4_entropy = nullptr; + FindSharesKernel *m_find_shares = nullptr; + HashAesKernel *m_hashAes1Rx4 = nullptr; + uint32_t m_gcn_version = 12; + uint32_t m_worksize = 8; }; diff --git a/src/backend/opencl/runners/OclRxJitRunner.cpp b/src/backend/opencl/runners/OclRxJitRunner.cpp index 26ed52b8..c106c94d 100644 --- a/src/backend/opencl/runners/OclRxJitRunner.cpp +++ b/src/backend/opencl/runners/OclRxJitRunner.cpp @@ -16,9 +16,6 @@ * along with this program. If not, see . */ -#include - - #include "backend/opencl/runners/OclRxJitRunner.h" #include "backend/opencl/cl/rx/randomx_run_gfx803.h" #include "backend/opencl/cl/rx/randomx_run_gfx900.h" diff --git a/src/backend/opencl/runners/tools/OclKawPow.cpp b/src/backend/opencl/runners/tools/OclKawPow.cpp index 4151633c..40b2b979 100644 --- a/src/backend/opencl/runners/tools/OclKawPow.cpp +++ b/src/backend/opencl/runners/tools/OclKawPow.cpp @@ -153,35 +153,9 @@ static KawPowCache cache; #define mix_dst() ("mix[" + std::to_string(mix_seq_dst[(mix_seq_dst_cnt++) % KPHash::REGS]) + "]") #define mix_cache() ("mix[" + std::to_string(mix_seq_cache[(mix_seq_cache_cnt++) % KPHash::REGS]) + "]") -class KawPowBaton : public Baton -{ -public: - inline KawPowBaton(const IOclRunner& runner, uint64_t period, uint32_t worksize) : - runner(runner), - period(period), - worksize(worksize) - {} - - const IOclRunner& runner; - const uint64_t period; - const uint32_t worksize; -}; - - class KawPowBuilder { public: - ~KawPowBuilder() - { - if (m_loop) { - uv_async_send(&m_shutdownAsync); - uv_thread_join(&m_loopThread); - delete m_loop; - } - } - - void build_async(const IOclRunner& runner, uint64_t period, uint32_t worksize); - cl_kernel build(const IOclRunner &runner, uint64_t period, uint32_t worksize) { std::lock_guard lock(m_mutex); @@ -394,75 +368,40 @@ private: st.jcong = 69069 * st.jcong + 1234567; return ((MWC ^ st.jcong) + st.jsr); } +}; -private: - uv_loop_t* m_loop = nullptr; - uv_thread_t m_loopThread = {}; - uv_async_t m_shutdownAsync = {}; - uv_async_t m_batonAsync = {}; - std::vector m_batons; +class KawPowBaton : public Baton +{ +public: + inline KawPowBaton(const IOclRunner &runner, uint64_t period, uint32_t worksize) : + runner(runner), + period(period), + worksize(worksize) + {} - static void loop(void* data) - { - KawPowBuilder* builder = static_cast(data); - uv_run(builder->m_loop, UV_RUN_DEFAULT); - uv_loop_close(builder->m_loop); - } + const IOclRunner &runner; + const uint64_t period; + const uint32_t worksize; }; static KawPowBuilder builder; -void KawPowBuilder::build_async(const IOclRunner& runner, uint64_t period, uint32_t worksize) -{ - std::lock_guard lock(m_mutex); - - if (!m_loop) { - m_loop = new uv_loop_t{}; - uv_loop_init(m_loop); - - uv_async_init(m_loop, &m_shutdownAsync, [](uv_async_t* handle) - { - KawPowBuilder* builder = reinterpret_cast(handle->data); - uv_close(reinterpret_cast(&builder->m_shutdownAsync), nullptr); - uv_close(reinterpret_cast(&builder->m_batonAsync), nullptr); - }); - - uv_async_init(m_loop, &m_batonAsync, [](uv_async_t* handle) - { - std::vector batons; - { - KawPowBuilder* b = reinterpret_cast(handle->data); - - std::lock_guard lock(b->m_mutex); - batons = std::move(b->m_batons); - } - - for (const KawPowBaton& baton : batons) { - builder.build(baton.runner, baton.period, baton.worksize); - } - }); - - m_shutdownAsync.data = this; - m_batonAsync.data = this; - - uv_thread_create(&m_loopThread, loop, this); - } - - m_batons.emplace_back(runner, period, worksize); - uv_async_send(&m_batonAsync); -} - - cl_kernel OclKawPow::get(const IOclRunner &runner, uint64_t height, uint32_t worksize) { const uint64_t period = height / KPHash::PERIOD_LENGTH; - if (!cache.search(runner, period + 1, worksize)) { - builder.build_async(runner, period + 1, worksize); - } + KawPowBaton* baton = new KawPowBaton(runner, period + 1, worksize); + + uv_queue_work(uv_default_loop(), &baton->req, + [](uv_work_t *req) { + KawPowBaton* baton = static_cast(req->data); + builder.build(baton->runner, baton->period, baton->worksize); + }, + [](uv_work_t *req, int) { delete static_cast(req->data); } + ); cl_kernel kernel = cache.search(runner, period, worksize); if (kernel) { diff --git a/src/backend/opencl/wrappers/OclDevice.cpp b/src/backend/opencl/wrappers/OclDevice.cpp index 846b5972..54557cbe 100644 --- a/src/backend/opencl/wrappers/OclDevice.cpp +++ b/src/backend/opencl/wrappers/OclDevice.cpp @@ -1,7 +1,6 @@ /* XMRig - * Copyright (c) 2021 Spudz76 - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +17,6 @@ */ #include "backend/opencl/wrappers/OclDevice.h" -#include "3rdparty/fmt/core.h" #include "3rdparty/rapidjson/document.h" #include "backend/opencl/OclGenerator.h" #include "backend/opencl/OclThreads.h" @@ -32,25 +30,27 @@ #include -#include + + +// NOLINTNEXTLINE(modernize-use-using) +typedef union +{ + struct { cl_uint type; cl_uint data[5]; } raw; + struct { cl_uint type; cl_char unused[17]; cl_char bus; cl_char device; cl_char function; } pcie; +} topology_amd; namespace xmrig { -struct topology_amd { - cl_uint type; - cl_char unused[17]; - cl_char bus; - cl_char device; - cl_char function; -}; - - #ifdef XMRIG_ALGO_RANDOMX extern bool ocl_generic_rx_generator(const OclDevice &device, const Algorithm &algorithm, OclThreads &threads); #endif +#ifdef XMRIG_ALGO_ASTROBWT +extern bool ocl_generic_astrobwt_generator(const OclDevice& device, const Algorithm& algorithm, OclThreads& threads); +#endif + #ifdef XMRIG_ALGO_KAWPOW extern bool ocl_generic_kawpow_generator(const OclDevice& device, const Algorithm& algorithm, OclThreads& threads); #endif @@ -63,6 +63,9 @@ static ocl_gen_config_fun generators[] = { # ifdef XMRIG_ALGO_RANDOMX ocl_generic_rx_generator, # endif +# ifdef XMRIG_ALGO_ASTROBWT + ocl_generic_astrobwt_generator, +# endif # ifdef XMRIG_ALGO_KAWPOW ocl_generic_kawpow_generator, # endif @@ -85,11 +88,9 @@ static OclVendor getPlatformVendorId(const String &vendor, const String &extensi return OCL_VENDOR_INTEL; } -# ifdef XMRIG_OS_APPLE if (extensions.contains("cl_APPLE_") || vendor.contains("Apple")) { return OCL_VENDOR_APPLE; } -# endif return OCL_VENDOR_UNKNOWN; } @@ -109,16 +110,117 @@ static OclVendor getVendorId(const String &vendor) return OCL_VENDOR_INTEL; } -# ifdef XMRIG_OS_APPLE if (vendor.contains("Apple")) { return OCL_VENDOR_APPLE; } -# endif return OCL_VENDOR_UNKNOWN; } +static OclDevice::Type getType(const String &name, const OclVendor platformVendorId) +{ + if (platformVendorId == OCL_VENDOR_APPLE) { + // Apple Platform: uses product names, not gfx# or codenames + if (name.contains("AMD Radeon")) { + if (name.contains(" 450 ") || + name.contains(" 455 ") || + name.contains(" 460 ")) { + return OclDevice::Baffin; + } + + if (name.contains(" 555 ") || name.contains(" 555X ") || + name.contains(" 560 ") || name.contains(" 560X ") || + name.contains(" 570 ") || name.contains(" 570X ") || + name.contains(" 575 ") || name.contains(" 575X ")) { + return OclDevice::Polaris; + } + + if (name.contains(" 580 ") || name.contains(" 580X ")) { + return OclDevice::Ellesmere; + } + + if (name.contains(" Vega ")) { + if (name.contains(" 48 ") || + name.contains(" 56 ") || + name.contains(" 64 ") || + name.contains(" 64X ")) { + return OclDevice::Vega_10; + } + if (name.contains(" 16 ") || + name.contains(" 20 ") || + name.contains(" II ")) { + return OclDevice::Vega_20; + } + } + + if (name.contains(" 5700 ") || name.contains(" W5700X ")) { + return OclDevice::Navi_10; + } + + if (name.contains(" 5600 ") || name.contains(" 5600M ")) { + return OclDevice::Navi_12; + } + + if (name.contains(" 5300 ") || name.contains(" 5300M ") || + name.contains(" 5500 ") || name.contains(" 5500M ")) { + return OclDevice::Navi_14; + } + + if (name.contains(" W6800 ") || name.contains(" W6900X ")) { + return OclDevice::Navi_21; + } + } + } + + if (name == "gfx900" || name == "gfx901") { + return OclDevice::Vega_10; + } + + if (name == "gfx902" || name == "gfx903") { + return OclDevice::Raven; + } + + if (name == "gfx906" || name == "gfx907") { + return OclDevice::Vega_20; + } + + if (name == "gfx1010") { + return OclDevice::Navi_10; + } + + if (name == "gfx1011") { + return OclDevice::Navi_12; + } + + if (name == "gfx1012") { + return OclDevice::Navi_14; + } + + if (name == "gfx1030") { + return OclDevice::Navi_21; + } + + if (name == "gfx804") { + return OclDevice::Lexa; + } + + if (name == "Baffin") { + return OclDevice::Baffin; + } + + if (name.contains("Ellesmere")) { + return OclDevice::Ellesmere; + } + + if (name == "gfx803" || name.contains("polaris")) { + return OclDevice::Polaris; + } + + return OclDevice::Unknown; +} + + } // namespace xmrig @@ -136,21 +238,21 @@ xmrig::OclDevice::OclDevice(uint32_t index, cl_device_id id, cl_platform_id plat { m_vendorId = getVendorId(m_vendor); m_platformVendorId = getPlatformVendorId(m_platformVendor, m_extensions); - m_type = getType(m_name); + m_type = getType(m_name, m_platformVendorId); if (m_extensions.contains("cl_amd_device_attribute_query")) { - topology_amd topology{}; - if (OclLib::getDeviceInfo(id, CL_DEVICE_TOPOLOGY_AMD, sizeof(topology), &topology) == CL_SUCCESS && topology.type == CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD) { - m_topology = { topology.bus, topology.device, topology.function }; - } + topology_amd topology; + if (OclLib::getDeviceInfo(id, CL_DEVICE_TOPOLOGY_AMD, sizeof(topology), &topology, nullptr) == CL_SUCCESS && topology.raw.type == CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD) { + m_topology = PciTopology(static_cast(topology.pcie.bus), static_cast(topology.pcie.device), static_cast(topology.pcie.function)); + } m_board = OclLib::getString(id, CL_DEVICE_BOARD_NAME_AMD); } else if (m_extensions.contains("cl_nv_device_attribute_query")) { cl_uint bus = 0; - if (OclLib::getDeviceInfo(id, CL_DEVICE_PCI_BUS_ID_NV, sizeof(bus), &bus) == CL_SUCCESS) { + if (OclLib::getDeviceInfo(id, CL_DEVICE_PCI_BUS_ID_NV, sizeof (bus), &bus, nullptr) == CL_SUCCESS) { cl_uint slot = OclLib::getUint(id, CL_DEVICE_PCI_SLOT_ID_NV); - m_topology = { bus, (slot >> 3) & 0xff, slot & 7 }; + m_topology = PciTopology(bus, (slot >> 3) & 0xff, slot & 7); } } } @@ -158,11 +260,17 @@ xmrig::OclDevice::OclDevice(uint32_t index, cl_device_id id, cl_platform_id plat xmrig::String xmrig::OclDevice::printableName() const { + const size_t size = m_board.size() + m_name.size() + 64; + char *buf = new char[size](); + if (m_board.isNull()) { - return fmt::format(GREEN_BOLD("{}"), m_name).c_str(); + snprintf(buf, size, GREEN_BOLD("%s"), m_name.data()); + } + else { + snprintf(buf, size, GREEN_BOLD("%s") " (" CYAN_BOLD("%s") ")", m_board.data(), m_name.data()); } - return fmt::format(GREEN_BOLD("{}") " (" CYAN_BOLD("{}") ")", m_board, m_name).c_str(); + return buf; } @@ -210,35 +318,3 @@ void xmrig::OclDevice::toJSON(rapidjson::Value &out, rapidjson::Document &doc) c # endif } #endif - - -#ifndef XMRIG_OS_APPLE -xmrig::OclDevice::Type xmrig::OclDevice::getType(const String &name) -{ - static std::map types = { - { "gfx900", Vega_10 }, - { "gfx901", Vega_10 }, - { "gfx902", Raven }, - { "gfx903", Raven }, - { "gfx906", Vega_20 }, - { "gfx907", Vega_20 }, - { "gfx1010", Navi_10 }, - { "gfx1011", Navi_12 }, - { "gfx1012", Navi_14 }, - { "gfx1030", Navi_21 }, - { "gfx804", Lexa }, - { "Baffin", Baffin }, - { "Ellesmere", Ellesmere }, - { "gfx803", Polaris }, - { "polaris", Polaris }, - }; - - for (auto &kv : types) { - if (name.contains(kv.first)) { - return kv.second; - } - } - - return OclDevice::Unknown; -} -#endif diff --git a/src/backend/opencl/wrappers/OclDevice.h b/src/backend/opencl/wrappers/OclDevice.h index 356335fd..7e9e4155 100644 --- a/src/backend/opencl/wrappers/OclDevice.h +++ b/src/backend/opencl/wrappers/OclDevice.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -86,8 +86,6 @@ public: # endif private: - static OclDevice::Type getType(const String &name); - cl_device_id m_id = nullptr; cl_platform_id m_platform = nullptr; const String m_platformVendor; diff --git a/src/backend/opencl/wrappers/OclDevice_mac.cpp b/src/backend/opencl/wrappers/OclDevice_mac.cpp deleted file mode 100644 index 57b44056..00000000 --- a/src/backend/opencl/wrappers/OclDevice_mac.cpp +++ /dev/null @@ -1,77 +0,0 @@ -/* XMRig - * Copyright (c) 2021 Spudz76 - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "backend/opencl/wrappers/OclDevice.h" - - -xmrig::OclDevice::Type xmrig::OclDevice::getType(const String &name) -{ - // Apple Platform: uses product names, not gfx# or codenames - if (name.contains("AMD Radeon")) { - if (name.contains(" 450 ") || - name.contains(" 455 ") || - name.contains(" 460 ")) { - return Baffin; - } - - if (name.contains(" 555 ") || name.contains(" 555X ") || - name.contains(" 560 ") || name.contains(" 560X ") || - name.contains(" 570 ") || name.contains(" 570X ") || - name.contains(" 575 ") || name.contains(" 575X ")) { - return Polaris; - } - - if (name.contains(" 580 ") || name.contains(" 580X ")) { - return Ellesmere; - } - - if (name.contains(" Vega ")) { - if (name.contains(" 48 ") || - name.contains(" 56 ") || - name.contains(" 64 ") || - name.contains(" 64X ")) { - return Vega_10; - } - if (name.contains(" 16 ") || - name.contains(" 20 ") || - name.contains(" II ")) { - return Vega_20; - } - } - - if (name.contains(" 5700 ") || name.contains(" W5700X ")) { - return Navi_10; - } - - if (name.contains(" 5600 ") || name.contains(" 5600M ")) { - return Navi_12; - } - - if (name.contains(" 5300 ") || name.contains(" 5300M ") || - name.contains(" 5500 ") || name.contains(" 5500M ")) { - return Navi_14; - } - - if (name.contains(" W6800 ") || name.contains(" W6900X ")) { - return Navi_21; - } - } - - return OclDevice::Unknown; -} diff --git a/src/base/api/Api.cpp b/src/base/api/Api.cpp index 2556a502..54666efd 100644 --- a/src/base/api/Api.cpp +++ b/src/base/api/Api.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,18 +20,16 @@ #include "base/api/Api.h" -#include "3rdparty/rapidjson/writer.h" #include "base/api/interfaces/IApiListener.h" #include "base/api/requests/HttpApiRequest.h" #include "base/crypto/keccak.h" #include "base/io/Env.h" #include "base/io/json/Json.h" -#include "base/io/log/Log.h" -#include "base/io/log/Tags.h" #include "base/kernel/Base.h" #include "base/tools/Chrono.h" #include "base/tools/Cvt.h" #include "core/config/Config.h" +#include "core/Controller.h" #include "version.h" @@ -46,12 +44,6 @@ namespace xmrig { -static_assert( - RAPIDJSON_WRITE_DEFAULT_FLAGS == (rapidjson::kWriteNanAndInfFlag | rapidjson::kWriteNanAndInfNullFlag), - "(rapidjson::kWriteNanAndInfFlag | rapidjson::kWriteNanAndInfNullFlag) required" - ); - - static rapidjson::Value getResources(rapidjson::Document &doc) { using namespace rapidjson; @@ -99,11 +91,7 @@ xmrig::Api::Api(Base *base) : xmrig::Api::~Api() { # ifdef XMRIG_FEATURE_HTTP - if (m_httpd) { - m_httpd->stop(); - delete m_httpd; - m_httpd = nullptr; // Ensure the pointer is set to nullptr after deletion - } + delete m_httpd; # endif } @@ -121,15 +109,8 @@ void xmrig::Api::start() genWorkerId(m_base->config()->apiWorkerId()); # ifdef XMRIG_FEATURE_HTTP - if (!m_httpd) { - m_httpd = new Httpd(m_base); - if (!m_httpd->start()) { - LOG_ERR("%s " RED_BOLD("HTTP API server failed to start."), Tags::network()); - - delete m_httpd; // Properly handle failure to start - m_httpd = nullptr; - } - } + m_httpd = new Httpd(m_base); + m_httpd->start(); # endif } @@ -137,26 +118,7 @@ void xmrig::Api::start() void xmrig::Api::stop() { # ifdef XMRIG_FEATURE_HTTP - if (m_httpd) { - m_httpd->stop(); - } -# endif -} - - -void xmrig::Api::tick() -{ -# ifdef XMRIG_FEATURE_HTTP - if (!m_httpd || !m_base->config()->http().isEnabled() || m_httpd->isBound()) { - return; - } - - if (++m_ticks % 10 == 0) { - m_ticks = 0; - if (m_httpd) { - m_httpd->start(); - } - } + m_httpd->stop(); # endif } diff --git a/src/base/api/Api.h b/src/base/api/Api.h index f3ad04c1..c56e29ee 100644 --- a/src/base/api/Api.h +++ b/src/base/api/Api.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,6 +21,7 @@ #include +#include #include "base/kernel/interfaces/IBaseListener.h" @@ -43,7 +44,7 @@ class Api : public IBaseListener public: XMRIG_DISABLE_COPY_MOVE_DEFAULT(Api) - explicit Api(Base *base); + Api(Base *base); ~Api() override; inline const char *id() const { return m_id; } @@ -53,7 +54,6 @@ public: void request(const HttpData &req); void start(); void stop(); - void tick(); protected: void onConfigChanged(Config *config, Config *previousConfig) override; @@ -65,15 +65,14 @@ private: Base *m_base; char m_id[32]{}; - const uint64_t m_timestamp; - Httpd *m_httpd = nullptr; - std::vector m_listeners; String m_workerId; - uint8_t m_ticks = 0; + const uint64_t m_timestamp; + Httpd *m_httpd = nullptr; + std::vector m_listeners; }; } // namespace xmrig -#endif // XMRIG_API_H +#endif /* XMRIG_API_H */ diff --git a/src/base/api/Httpd.h b/src/base/api/Httpd.h index e00c8eb5..188646f5 100644 --- a/src/base/api/Httpd.h +++ b/src/base/api/Httpd.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +22,11 @@ #include "base/kernel/interfaces/IBaseListener.h" #include "base/net/http/HttpListener.h" +#include "base/tools/Object.h" + + +#include +#include namespace xmrig { @@ -38,11 +43,9 @@ class Httpd : public IBaseListener, public IHttpListener public: XMRIG_DISABLE_COPY_MOVE_DEFAULT(Httpd) - explicit Httpd(Base *base); + Httpd(Base *base); ~Httpd() override; - inline bool isBound() const { return m_server != nullptr; } - bool start(); void stop(); @@ -66,7 +69,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_HTTPD_H +#endif /* XMRIG_HTTPD_H */ diff --git a/src/base/base.cmake b/src/base/base.cmake index 0f4f8725..5761a09b 100644 --- a/src/base/base.cmake +++ b/src/base/base.cmake @@ -68,7 +68,6 @@ set(HEADERS_BASE src/base/net/tools/MemPool.h src/base/net/tools/NetBuffer.h src/base/net/tools/Storage.h - src/base/tools/Alignment.h src/base/tools/Arguments.h src/base/tools/Baton.h src/base/tools/bswap_64.h @@ -133,7 +132,6 @@ set(SOURCES_BASE src/base/net/tools/LineReader.cpp src/base/net/tools/NetBuffer.cpp src/base/tools/Arguments.cpp - src/base/tools/Chrono.cpp src/base/tools/cryptonote/BlockTemplate.cpp src/base/tools/cryptonote/crypto-ops-data.c src/base/tools/cryptonote/crypto-ops.c diff --git a/src/base/crypto/Algorithm.cpp b/src/base/crypto/Algorithm.cpp index e7c4f551..636a638c 100644 --- a/src/base/crypto/Algorithm.cpp +++ b/src/base/crypto/Algorithm.cpp @@ -81,7 +81,7 @@ const char *Algorithm::kRX_WOW = "rx/wow"; const char *Algorithm::kRX_ARQ = "rx/arq"; const char *Algorithm::kRX_GRAFT = "rx/graft"; const char *Algorithm::kRX_SFX = "rx/sfx"; -const char *Algorithm::kRX_YADA = "rx/yada"; +const char *Algorithm::kRX_KEVA = "rx/keva"; #endif #ifdef XMRIG_ALGO_ARGON2 @@ -91,6 +91,11 @@ const char *Algorithm::kAR2_CHUKWA_V2 = "argon2/chukwav2"; const char *Algorithm::kAR2_WRKZ = "argon2/ninja"; #endif +#ifdef XMRIG_ALGO_ASTROBWT +const char *Algorithm::kASTROBWT = "astrobwt"; +const char *Algorithm::kASTROBWT_DERO = "astrobwt"; +#endif + #ifdef XMRIG_ALGO_KAWPOW const char *Algorithm::kKAWPOW = "kawpow"; const char *Algorithm::kKAWPOW_RVN = "kawpow"; @@ -147,7 +152,7 @@ static const std::map kAlgorithmNames = { ALGO_NAME(RX_ARQ), ALGO_NAME(RX_GRAFT), ALGO_NAME(RX_SFX), - ALGO_NAME(RX_YADA), + ALGO_NAME(RX_KEVA), # endif # ifdef XMRIG_ALGO_ARGON2 @@ -156,6 +161,10 @@ static const std::map kAlgorithmNames = { ALGO_NAME(AR2_WRKZ), # endif +# ifdef XMRIG_ALGO_ASTROBWT + ALGO_NAME(ASTROBWT_DERO), +# endif + # ifdef XMRIG_ALGO_KAWPOW ALGO_NAME(KAWPOW_RVN), # endif @@ -261,8 +270,8 @@ static const std::map kAlgorithmAlias ALGO_ALIAS(RX_GRAFT, "randomgraft"), ALGO_ALIAS_AUTO(RX_SFX), ALGO_ALIAS(RX_SFX, "randomx/sfx"), ALGO_ALIAS(RX_SFX, "randomsfx"), - ALGO_ALIAS_AUTO(RX_YADA), ALGO_ALIAS(RX_YADA, "randomx/yada"), - ALGO_ALIAS(RX_YADA, "randomyada"), + ALGO_ALIAS_AUTO(RX_KEVA), ALGO_ALIAS(RX_KEVA, "randomx/keva"), + ALGO_ALIAS(RX_KEVA, "randomkeva"), # endif # ifdef XMRIG_ALGO_ARGON2 @@ -271,6 +280,10 @@ static const std::map kAlgorithmAlias ALGO_ALIAS_AUTO(AR2_WRKZ), ALGO_ALIAS(AR2_WRKZ, "argon2/wrkz"), # endif +# ifdef XMRIG_ALGO_ASTROBWT + ALGO_ALIAS_AUTO(ASTROBWT_DERO), ALGO_ALIAS(ASTROBWT_DERO, "astrobwt/dero"), +# endif + # ifdef XMRIG_ALGO_KAWPOW ALGO_ALIAS_AUTO(KAWPOW_RVN), ALGO_ALIAS(KAWPOW_RVN, "kawpow/rvn"), # endif @@ -350,8 +363,9 @@ std::vector xmrig::Algorithm::all(const std::function - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ #include -#if defined(__GNUC__) && !defined(__clang__) +#ifdef __GNUC__ # include # include # include @@ -39,7 +39,7 @@ namespace xmrig { -#if defined(_MSC_VER) || defined(__GNUC__) +#if defined(_MSC_VER) || defined (__GNUC__) static std::wstring toUtf16(const char *str) { const int size = static_cast(strlen(str)); @@ -56,9 +56,9 @@ static std::wstring toUtf16(const char *str) #endif -#if defined(_MSC_VER) || defined(_LIBCPP_HAS_OPEN_WITH_WCHAR) +#if defined(_MSC_VER) # define OPEN_IFS(name) \ - std::ifstream ifs(toUtf16(name).c_str(), std::ios_base::in | std::ios_base::binary);\ + std::ifstream ifs(toUtf16(name), std::ios_base::in | std::ios_base::binary); \ if (!ifs.is_open()) { \ return false; \ } @@ -98,8 +98,8 @@ bool xmrig::Json::save(const char *fileName, const rapidjson::Document &doc) using namespace rapidjson; constexpr const std::ios_base::openmode mode = std::ios_base::out | std::ios_base::binary | std::ios_base::trunc; -# if defined(_MSC_VER) || defined(_LIBCPP_HAS_OPEN_WITH_WCHAR) - std::ofstream ofs(toUtf16(fileName).c_str(), mode); +# if defined(_MSC_VER) + std::ofstream ofs(toUtf16(fileName), mode); if (!ofs.is_open()) { return false; } diff --git a/src/base/io/log/FileLogWriter.cpp b/src/base/io/log/FileLogWriter.cpp index a449dc9a..b41f7f39 100644 --- a/src/base/io/log/FileLogWriter.cpp +++ b/src/base/io/log/FileLogWriter.cpp @@ -22,6 +22,7 @@ #include +#include namespace xmrig { @@ -39,32 +40,6 @@ static void fsWriteCallback(uv_fs_t *req) } // namespace xmrig -xmrig::FileLogWriter::FileLogWriter() -{ - init(); -} - -xmrig::FileLogWriter::FileLogWriter(const char* fileName) -{ - init(); - open(fileName); -} - -xmrig::FileLogWriter::~FileLogWriter() -{ - uv_close(reinterpret_cast(&m_flushAsync), nullptr); - - uv_mutex_destroy(&m_buffersLock); -} - -void xmrig::FileLogWriter::init() -{ - uv_mutex_init(&m_buffersLock); - - uv_async_init(uv_default_loop(), &m_flushAsync, on_flush); - m_flushAsync.data = this; -} - bool xmrig::FileLogWriter::open(const char *fileName) { assert(fileName != nullptr); @@ -102,12 +77,11 @@ bool xmrig::FileLogWriter::write(const char *data, size_t size) uv_buf_t buf = uv_buf_init(new char[size], size); memcpy(buf.base, data, size); - uv_mutex_lock(&m_buffersLock); + auto req = new uv_fs_t; + req->data = buf.base; - m_buffers.emplace_back(buf); - uv_async_send(&m_flushAsync); - - uv_mutex_unlock(&m_buffersLock); + uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, m_pos, fsWriteCallback); + m_pos += size; return true; } @@ -115,38 +89,18 @@ bool xmrig::FileLogWriter::write(const char *data, size_t size) bool xmrig::FileLogWriter::writeLine(const char *data, size_t size) { - if (!isOpen()) { - return false; - } + const uv_buf_t buf[2] = { + uv_buf_init(new char[size], size), + uv_buf_init(const_cast(m_endl), sizeof(m_endl) - 1) + }; - constexpr size_t N = sizeof(m_endl) - 1; + memcpy(buf[0].base, data, size); - uv_buf_t buf = uv_buf_init(new char[size + N], size + N); - memcpy(buf.base, data, size); - memcpy(buf.base + size, m_endl, N); + auto req = new uv_fs_t; + req->data = buf[0].base; - uv_mutex_lock(&m_buffersLock); - - m_buffers.emplace_back(buf); - uv_async_send(&m_flushAsync); - - uv_mutex_unlock(&m_buffersLock); + uv_fs_write(uv_default_loop(), req, m_file, buf, 2, m_pos, fsWriteCallback); + m_pos += (buf[0].len + buf[1].len); return true; } - -void xmrig::FileLogWriter::flush() -{ - uv_mutex_lock(&m_buffersLock); - - for (uv_buf_t buf : m_buffers) { - uv_fs_t* req = new uv_fs_t; - req->data = buf.base; - - uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, m_pos, fsWriteCallback); - m_pos += buf.len; - } - m_buffers.clear(); - - uv_mutex_unlock(&m_buffersLock); -} diff --git a/src/base/io/log/FileLogWriter.h b/src/base/io/log/FileLogWriter.h index 66b8a13c..f3606aa3 100644 --- a/src/base/io/log/FileLogWriter.h +++ b/src/base/io/log/FileLogWriter.h @@ -22,8 +22,6 @@ #include #include -#include -#include namespace xmrig { @@ -32,10 +30,8 @@ namespace xmrig { class FileLogWriter { public: - FileLogWriter(); - FileLogWriter(const char* fileName); - - ~FileLogWriter(); + FileLogWriter() = default; + FileLogWriter(const char *fileName) { open(fileName); } inline bool isOpen() const { return m_file >= 0; } inline int64_t pos() const { return m_pos; } @@ -53,16 +49,6 @@ private: int m_file = -1; int64_t m_pos = 0; - - uv_mutex_t m_buffersLock; - std::vector m_buffers; - - uv_async_t m_flushAsync; - - void init(); - - static void on_flush(uv_async_t* async) { reinterpret_cast(async->data)->flush(); } - void flush(); }; diff --git a/src/base/kernel/Entry.cpp b/src/base/kernel/Entry.cpp index b99621b6..f12e833f 100644 --- a/src/base/kernel/Entry.cpp +++ b/src/base/kernel/Entry.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2019 SChernykh + * Copyright 2016-2019 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,9 +22,11 @@ * along with this program. If not, see . */ + #include #include + #ifdef XMRIG_FEATURE_TLS # include #endif @@ -64,13 +66,13 @@ static int showVersion() # endif printf("\n features:" -# if defined(__x86_64__) || defined(_M_AMD64) || defined (__arm64__) || defined (__aarch64__) - " 64-bit" -# else +# if defined(__i386__) || defined(_M_IX86) " 32-bit" +# elif defined(__x86_64__) || defined(_M_AMD64) + " 64-bit" # endif -# if defined(__AES__) || defined(_MSC_VER) || defined(__ARM_FEATURE_CRYPTO) +# if defined(__AES__) || defined(_MSC_VER) " AES" # endif "\n"); diff --git a/src/base/kernel/Platform.cpp b/src/base/kernel/Platform.cpp index 9baf77c2..ef2b67eb 100644 --- a/src/base/kernel/Platform.cpp +++ b/src/base/kernel/Platform.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ * along with this program. If not, see . */ + #include "base/kernel/Platform.h" @@ -41,12 +42,9 @@ void xmrig::Platform::init(const char *userAgent) # ifdef XMRIG_FEATURE_TLS SSL_library_init(); SSL_load_error_strings(); - -# if OPENSSL_VERSION_NUMBER < 0x30000000L || defined(LIBRESSL_VERSION_NUMBER) ERR_load_BIO_strings(); ERR_load_crypto_strings(); -# endif - + SSL_load_error_strings(); OpenSSL_add_all_digests(); # endif diff --git a/src/base/kernel/Platform.h b/src/base/kernel/Platform.h index 9e713d03..04c212e6 100644 --- a/src/base/kernel/Platform.h +++ b/src/base/kernel/Platform.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,12 +49,6 @@ public: static inline bool isUserActive(uint64_t ms) { return idleTime() < ms; } static inline const String &userAgent() { return m_userAgent; } -# ifdef XMRIG_OS_WIN - static bool hasKeepalive(); -# else - static constexpr bool hasKeepalive() { return true; } -# endif - static bool isOnBatteryPower(); static uint64_t idleTime(); diff --git a/src/base/kernel/Platform_hwloc.cpp b/src/base/kernel/Platform_hwloc.cpp index 219c1742..8d9d9f59 100644 --- a/src/base/kernel/Platform_hwloc.cpp +++ b/src/base/kernel/Platform_hwloc.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2020 SChernykh + * Copyright (c) 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,9 @@ * along with this program. If not, see . */ + #include "base/kernel/Platform.h" +#include "backend/cpu/platform/HwlocCpuInfo.h" #include "backend/cpu/Cpu.h" @@ -27,21 +29,20 @@ #ifndef XMRIG_OS_APPLE bool xmrig::Platform::setThreadAffinity(uint64_t cpu_id) { - auto topology = Cpu::info()->topology(); - auto pu = hwloc_get_pu_obj_by_os_index(topology, static_cast(cpu_id)); + auto cpu = static_cast(Cpu::info()); + hwloc_obj_t pu = hwloc_get_pu_obj_by_os_index(cpu->topology(), static_cast(cpu_id)); if (pu == nullptr) { return false; } - if (hwloc_set_cpubind(topology, pu->cpuset, HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_STRICT) >= 0) { + if (hwloc_set_cpubind(cpu->topology(), pu->cpuset, HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_STRICT) >= 0) { std::this_thread::sleep_for(std::chrono::milliseconds(1)); return true; } - const bool result = (hwloc_set_cpubind(topology, pu->cpuset, HWLOC_CPUBIND_THREAD) >= 0); + const bool result = (hwloc_set_cpubind(cpu->topology(), pu->cpuset, HWLOC_CPUBIND_THREAD) >= 0); std::this_thread::sleep_for(std::chrono::milliseconds(1)); - return result; } #endif diff --git a/src/base/kernel/Platform_unix.cpp b/src/base/kernel/Platform_unix.cpp index 4ffee214..f5bbc193 100644 --- a/src/base/kernel/Platform_unix.cpp +++ b/src/base/kernel/Platform_unix.cpp @@ -16,12 +16,10 @@ * along with this program. If not, see . */ -#ifdef XMRIG_OS_FREEBSD +#ifdef __FreeBSD__ # include # include -# ifndef __DragonFly__ -# include -# endif +# include # include #endif @@ -43,6 +41,11 @@ #include "version.h" +#ifdef __FreeBSD__ +typedef cpuset_t cpu_set_t; +#endif + + char *xmrig::Platform::createUserAgent() { constexpr const size_t max = 256; @@ -71,19 +74,6 @@ char *xmrig::Platform::createUserAgent() #ifndef XMRIG_FEATURE_HWLOC -#ifdef __DragonFly__ - -bool xmrig::Platform::setThreadAffinity(uint64_t cpu_id) -{ - return true; -} - -#else - -#ifdef XMRIG_OS_FREEBSD -typedef cpuset_t cpu_set_t; -#endif - bool xmrig::Platform::setThreadAffinity(uint64_t cpu_id) { cpu_set_t mn; @@ -99,9 +89,7 @@ bool xmrig::Platform::setThreadAffinity(uint64_t cpu_id) std::this_thread::sleep_for(std::chrono::milliseconds(1)); return result; } - -#endif // __DragonFly__ -#endif // XMRIG_FEATURE_HWLOC +#endif void xmrig::Platform::setProcessPriority(int) diff --git a/src/base/kernel/Platform_win.cpp b/src/base/kernel/Platform_win.cpp index b5973f3d..76d81ae5 100644 --- a/src/base/kernel/Platform_win.cpp +++ b/src/base/kernel/Platform_win.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ * along with this program. If not, see . */ + #include #include #include @@ -53,21 +54,13 @@ char *xmrig::Platform::createUserAgent() char *buf = new char[max](); int length = snprintf(buf, max, "%s/%s (Windows NT %lu.%lu", APP_NAME, APP_VERSION, osver.dwMajorVersion, osver.dwMinorVersion); -# if defined(XMRIG_64_BIT) - length += snprintf(buf + length, max - length, "; Win64; " -# if defined(XMRIG_ARM) - "arm64" -# else - "x64" -# endif - ") libuv/%s", uv_version_string()); +# if defined(__x86_64__) || defined(_M_AMD64) + length += snprintf(buf + length, max - length, "; Win64; x64) libuv/%s", uv_version_string()); # else length += snprintf(buf + length, max - length, ") libuv/%s", uv_version_string()); # endif -# ifdef __clang__ - snprintf(buf + length, max - length, " clang/%d.%d.%d", __clang_major__, __clang_minor__, __clang_patchlevel__); -# elif defined(__GNUC__) +# ifdef __GNUC__ snprintf(buf + length, max - length, " gcc/%d.%d.%d", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); # elif _MSC_VER snprintf(buf + length, max - length, " msvc/%d", MSVC_VERSION); @@ -77,12 +70,6 @@ char *xmrig::Platform::createUserAgent() } -bool xmrig::Platform::hasKeepalive() -{ - return winOsVersion().dwMajorVersion >= 6; -} - - #ifndef XMRIG_FEATURE_HWLOC bool xmrig::Platform::setThreadAffinity(uint64_t cpu_id) { diff --git a/src/base/kernel/config/BaseConfig.cpp b/src/base/kernel/config/BaseConfig.cpp index d102a6ab..37982999 100644 --- a/src/base/kernel/config/BaseConfig.cpp +++ b/src/base/kernel/config/BaseConfig.cpp @@ -142,7 +142,7 @@ void xmrig::BaseConfig::printVersions() snprintf(buf, sizeof buf, "MSVC/%d", MSVC_VERSION); # endif - Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") CYAN_BOLD("%s/%s") WHITE_BOLD(" %s") WHITE_BOLD(" (built for %s") WHITE_BOLD(" %s,") WHITE_BOLD(" %s)"), "ABOUT", APP_NAME, APP_VERSION, buf, APP_OS, APP_ARCH, APP_BITS); + Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") CYAN_BOLD("%s/%s") WHITE_BOLD(" %s"), "ABOUT", APP_NAME, APP_VERSION, buf); std::string libs; diff --git a/src/base/kernel/config/BaseTransform.cpp b/src/base/kernel/config/BaseTransform.cpp index 339e4621..c924dd59 100644 --- a/src/base/kernel/config/BaseTransform.cpp +++ b/src/base/kernel/config/BaseTransform.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,12 +18,14 @@ #include + #ifdef _MSC_VER # include "getopt/getopt.h" #else # include #endif + #include "base/kernel/config/BaseTransform.h" #include "base/io/json/JsonChain.h" #include "base/io/log/Log.h" @@ -35,6 +37,7 @@ #include "base/net/stratum/Pools.h" #include "core/config/Config_platform.h" + #ifdef XMRIG_FEATURE_TLS # include "base/net/tls/TlsConfig.h" #endif @@ -44,9 +47,9 @@ void xmrig::BaseTransform::load(JsonChain &chain, Process *process, IConfigTrans { using namespace rapidjson; - int key = 0; - const int argc = process->arguments().argc(); - char **argv = process->arguments().argv(); + int key = 0; + int argc = process->arguments().argc(); + char **argv = process->arguments().argv(); Document doc(kObjectType); @@ -244,7 +247,6 @@ void xmrig::BaseTransform::transform(rapidjson::Document &doc, int key, const ch case IConfig::HttpPort: /* --http-port */ case IConfig::DonateLevelKey: /* --donate-level */ case IConfig::DaemonPollKey: /* --daemon-poll-interval */ - case IConfig::DaemonJobTimeoutKey: /* --daemon-job-timeout */ case IConfig::DnsTtlKey: /* --dns-ttl */ case IConfig::DaemonZMQPortKey: /* --daemon-zmq-port */ return transformUint64(doc, key, static_cast(strtol(arg, nullptr, 10))); @@ -259,8 +261,7 @@ void xmrig::BaseTransform::transform(rapidjson::Document &doc, int key, const ch case IConfig::DaemonKey: /* --daemon */ case IConfig::SubmitToOriginKey: /* --submit-to-origin */ case IConfig::VerboseKey: /* --verbose */ - case IConfig::DnsIPv4Key: /* --ipv4 */ - case IConfig::DnsIPv6Key: /* --ipv6 */ + case IConfig::DnsIPv6Key: /* --dns-ipv6 */ return transformBoolean(doc, key, true); case IConfig::ColorKey: /* --no-color */ @@ -321,11 +322,8 @@ void xmrig::BaseTransform::transformBoolean(rapidjson::Document &doc, int key, b case IConfig::NoTitleKey: /* --no-title */ return set(doc, BaseConfig::kTitle, enable); - case IConfig::DnsIPv4Key: /* --ipv4 */ - return set(doc, DnsConfig::kField, DnsConfig::kIPv, 4); - - case IConfig::DnsIPv6Key: /* --ipv6 */ - return set(doc, DnsConfig::kField, DnsConfig::kIPv, 6); + case IConfig::DnsIPv6Key: /* --dns-ipv6 */ + return set(doc, DnsConfig::kField, DnsConfig::kIPv6, enable); default: break; @@ -362,9 +360,6 @@ void xmrig::BaseTransform::transformUint64(rapidjson::Document &doc, int key, ui case IConfig::DaemonPollKey: /* --daemon-poll-interval */ return add(doc, Pools::kPools, Pool::kDaemonPollInterval, arg); - case IConfig::DaemonJobTimeoutKey: /* --daemon-job-timeout */ - return add(doc, Pools::kPools, Pool::kDaemonJobTimeout, arg); - case IConfig::DaemonZMQPortKey: /* --daemon-zmq-port */ return add(doc, Pools::kPools, Pool::kDaemonZMQPort, arg); # endif diff --git a/src/base/kernel/interfaces/IConfig.h b/src/base/kernel/interfaces/IConfig.h index 94c5760d..9f707e50 100644 --- a/src/base/kernel/interfaces/IConfig.h +++ b/src/base/kernel/interfaces/IConfig.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,9 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_ICONFIG_H +#define XMRIG_ICONFIG_H + #include "3rdparty/rapidjson/fwd.h" @@ -80,14 +82,12 @@ public: HugePageSizeKey = 1050, PauseOnActiveKey = 1051, SubmitToOriginKey = 1052, - DnsIPv4Key = '4', - DnsIPv6Key = '6', + DnsIPv6Key = 1053, DnsTtlKey = 1054, SpendSecretKey = 1055, DaemonZMQPortKey = 1056, HugePagesJitKey = 1057, RotationKey = 1058, - DaemonJobTimeoutKey = 1059, // xmrig common CPUPriorityKey = 1021, @@ -111,6 +111,8 @@ public: CPUMaxThreadsKey = 1026, MemoryPoolKey = 1027, YieldKey = 1030, + AstroBWTMaxSizeKey = 1034, + AstroBWTAVX2Key = 1036, Argon2ImplKey = 1039, RandomXCacheQoSKey = 1040, @@ -176,4 +178,7 @@ public: }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif // XMRIG_ICONFIG_H diff --git a/src/base/kernel/interfaces/IDnsBackend.h b/src/base/kernel/interfaces/IDnsBackend.h index de069dc5..ca676f32 100644 --- a/src/base/kernel/interfaces/IDnsBackend.h +++ b/src/base/kernel/interfaces/IDnsBackend.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,16 +16,21 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_IDNSBACKEND_H +#define XMRIG_IDNSBACKEND_H + #include "base/tools/Object.h" +#include + + namespace xmrig { -class DnsConfig; class DnsRecords; +class DnsRequest; class IDnsListener; class String; @@ -38,8 +43,12 @@ public: IDnsBackend() = default; virtual ~IDnsBackend() = default; - virtual void resolve(const String &host, const std::weak_ptr &listener, const DnsConfig &config) = 0; + virtual const DnsRecords &records() const = 0; + virtual std::shared_ptr resolve(const String &host, IDnsListener *listener, uint64_t ttl) = 0; }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif // XMRIG_IDNSBACKEND_H diff --git a/src/base/net/dns/Dns.cpp b/src/base/net/dns/Dns.cpp index d5e71b49..85590bb7 100644 --- a/src/base/net/dns/Dns.cpp +++ b/src/base/net/dns/Dns.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +18,6 @@ #include "base/net/dns/Dns.h" -#include "base/net/dns/DnsRequest.h" #include "base/net/dns/DnsUvBackend.h" @@ -26,21 +25,17 @@ namespace xmrig { DnsConfig Dns::m_config; -std::map> Dns::m_backends; +std::map > Dns::m_backends; } // namespace xmrig -std::shared_ptr xmrig::Dns::resolve(const String &host, IDnsListener *listener) +std::shared_ptr xmrig::Dns::resolve(const String &host, IDnsListener *listener, uint64_t ttl) { - auto req = std::make_shared(listener); - if (m_backends.find(host) == m_backends.end()) { m_backends.insert({ host, std::make_shared() }); } - m_backends.at(host)->resolve(host, req, m_config); - - return req; + return m_backends.at(host)->resolve(host, listener, ttl == 0 ? m_config.ttl() : ttl); } diff --git a/src/base/net/dns/Dns.h b/src/base/net/dns/Dns.h index 2408245f..cf054390 100644 --- a/src/base/net/dns/Dns.h +++ b/src/base/net/dns/Dns.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,7 +43,7 @@ public: inline static const DnsConfig &config() { return m_config; } inline static void set(const DnsConfig &config) { m_config = config; } - static std::shared_ptr resolve(const String &host, IDnsListener *listener); + static std::shared_ptr resolve(const String &host, IDnsListener *listener, uint64_t ttl = 0); private: static DnsConfig m_config; diff --git a/src/base/net/dns/DnsConfig.cpp b/src/base/net/dns/DnsConfig.cpp index 3b2bbe73..f9ec7e28 100644 --- a/src/base/net/dns/DnsConfig.cpp +++ b/src/base/net/dns/DnsConfig.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,15 +20,15 @@ #include "3rdparty/rapidjson/document.h" #include "base/io/json/Json.h" + #include -#include namespace xmrig { const char *DnsConfig::kField = "dns"; -const char *DnsConfig::kIPv = "ip_version"; +const char *DnsConfig::kIPv6 = "ipv6"; const char *DnsConfig::kTTL = "ttl"; @@ -37,26 +37,8 @@ const char *DnsConfig::kTTL = "ttl"; xmrig::DnsConfig::DnsConfig(const rapidjson::Value &value) { - const uint32_t ipv = Json::getUint(value, kIPv, m_ipv); - if (ipv == 0 || ipv == 4 || ipv == 6) { - m_ipv = ipv; - } - - m_ttl = std::max(Json::getUint(value, kTTL, m_ttl), 1U); -} - - -int xmrig::DnsConfig::ai_family() const -{ - if (m_ipv == 4) { - return AF_INET; - } - - if (m_ipv == 6) { - return AF_INET6; - } - - return AF_UNSPEC; + m_ipv6 = Json::getBool(value, kIPv6, m_ipv6); + m_ttl = std::max(Json::getUint(value, kTTL, m_ttl), 1U); } @@ -67,8 +49,8 @@ rapidjson::Value xmrig::DnsConfig::toJSON(rapidjson::Document &doc) const auto &allocator = doc.GetAllocator(); Value obj(kObjectType); - obj.AddMember(StringRef(kIPv), m_ipv, allocator); - obj.AddMember(StringRef(kTTL), m_ttl, allocator); + obj.AddMember(StringRef(kIPv6), m_ipv6, allocator); + obj.AddMember(StringRef(kTTL), m_ttl, allocator); return obj; } diff --git a/src/base/net/dns/DnsConfig.h b/src/base/net/dns/DnsConfig.h index 7c985f90..605e837b 100644 --- a/src/base/net/dns/DnsConfig.h +++ b/src/base/net/dns/DnsConfig.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,9 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_DNSCONFIG_H +#define XMRIG_DNSCONFIG_H + #include "3rdparty/rapidjson/fwd.h" @@ -28,22 +30,25 @@ class DnsConfig { public: static const char *kField; - static const char *kIPv; + static const char *kIPv6; static const char *kTTL; DnsConfig() = default; DnsConfig(const rapidjson::Value &value); - inline uint32_t ipv() const { return m_ipv; } + inline bool isIPv6() const { return m_ipv6; } inline uint32_t ttl() const { return m_ttl * 1000U; } - int ai_family() const; rapidjson::Value toJSON(rapidjson::Document &doc) const; + private: - uint32_t m_ttl = 30U; - uint32_t m_ipv = 0U; + bool m_ipv6 = false; + uint32_t m_ttl = 30U; }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif /* XMRIG_DNSCONFIG_H */ diff --git a/src/base/net/dns/DnsRecord.cpp b/src/base/net/dns/DnsRecord.cpp index 2b5a5058..bfa84613 100644 --- a/src/base/net/dns/DnsRecord.cpp +++ b/src/base/net/dns/DnsRecord.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,16 +16,19 @@ * along with this program. If not, see . */ + #include + #include "base/net/dns/DnsRecord.h" -xmrig::DnsRecord::DnsRecord(const addrinfo *addr) +xmrig::DnsRecord::DnsRecord(const addrinfo *addr) : + m_type(addr->ai_family == AF_INET6 ? AAAA : (addr->ai_family == AF_INET ? A : Unknown)) { static_assert(sizeof(m_data) >= sizeof(sockaddr_in6), "Not enough storage for IPv6 address."); - memcpy(m_data, addr->ai_addr, addr->ai_family == AF_INET6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in)); + memcpy(m_data, addr->ai_addr, m_type == AAAA ? sizeof(sockaddr_in6) : sizeof(sockaddr_in)); } @@ -41,13 +44,13 @@ xmrig::String xmrig::DnsRecord::ip() const { char *buf = nullptr; - if (reinterpret_cast(m_data).sa_family == AF_INET6) { + if (m_type == AAAA) { buf = new char[45](); - uv_ip6_name(reinterpret_cast(m_data), buf, 45); + uv_ip6_name(reinterpret_cast(m_data), buf, 45); } else { buf = new char[16](); - uv_ip4_name(reinterpret_cast(m_data), buf, 16); + uv_ip4_name(reinterpret_cast(m_data), buf, 16); } return buf; diff --git a/src/base/net/dns/DnsRecord.h b/src/base/net/dns/DnsRecord.h index 548b603f..7a68ea2f 100644 --- a/src/base/net/dns/DnsRecord.h +++ b/src/base/net/dns/DnsRecord.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,11 +16,14 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_DNSRECORD_H +#define XMRIG_DNSRECORD_H + struct addrinfo; struct sockaddr; + #include "base/tools/String.h" @@ -30,15 +33,28 @@ namespace xmrig { class DnsRecord { public: + enum Type : uint32_t { + Unknown, + A, + AAAA + }; + DnsRecord() {} DnsRecord(const addrinfo *addr); const sockaddr *addr(uint16_t port = 0) const; String ip() const; + inline bool isValid() const { return m_type != Unknown; } + inline Type type() const { return m_type; } + private: mutable uint8_t m_data[28]{}; + const Type m_type = Unknown; }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif /* XMRIG_DNSRECORD_H */ diff --git a/src/base/net/dns/DnsRecords.cpp b/src/base/net/dns/DnsRecords.cpp index aff2b323..072f9672 100644 --- a/src/base/net/dns/DnsRecords.cpp +++ b/src/base/net/dns/DnsRecords.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,96 +18,90 @@ #include + #include "base/net/dns/DnsRecords.h" +#include "base/net/dns/Dns.h" -namespace { - - -static size_t dns_records_count(const addrinfo *res, int &ai_family) -{ - size_t ipv4 = 0; - size_t ipv6 = 0; - - while (res != nullptr) { - if (res->ai_family == AF_INET) { - ++ipv4; - } - - if (res->ai_family == AF_INET6) { - ++ipv6; - } - - res = res->ai_next; - } - - if (ai_family == AF_INET6 && !ipv6) { - ai_family = AF_INET; - } - - switch (ai_family) { - case AF_UNSPEC: - return ipv4 + ipv6; - - case AF_INET: - return ipv4; - - case AF_INET6: - return ipv6; - - default: - break; - } - - return 0; -} - - -} // namespace - - -xmrig::DnsRecords::DnsRecords(const addrinfo *res, int ai_family) -{ - size_t size = dns_records_count(res, ai_family); - if (!size) { - return; - } - - m_records.reserve(size); - - if (ai_family == AF_UNSPEC) { - while (res != nullptr) { - if (res->ai_family == AF_INET || res->ai_family == AF_INET6) { - m_records.emplace_back(res); - } - - res = res->ai_next; - }; - } else { - while (res != nullptr) { - if (res->ai_family == ai_family) { - m_records.emplace_back(res); - } - - res = res->ai_next; - }; - } - - size = m_records.size(); - if (size > 1) { - m_index = static_cast(rand()) % size; // NOLINT(concurrency-mt-unsafe, cert-msc30-c, cert-msc50-cpp) - } -} - - -const xmrig::DnsRecord &xmrig::DnsRecords::get() const +const xmrig::DnsRecord &xmrig::DnsRecords::get(DnsRecord::Type prefered) const { static const DnsRecord defaultRecord; - const size_t size = m_records.size(); - if (size > 0) { - return m_records[m_index++ % size]; + if (isEmpty()) { + return defaultRecord; + } + + const size_t ipv4 = m_ipv4.size(); + const size_t ipv6 = m_ipv6.size(); + + if (ipv6 && (prefered == DnsRecord::AAAA || Dns::config().isIPv6() || !ipv4)) { + return m_ipv6[ipv6 == 1 ? 0 : static_cast(rand()) % ipv6]; // NOLINT(concurrency-mt-unsafe, cert-msc30-c, cert-msc50-cpp) + } + + if (ipv4) { + return m_ipv4[ipv4 == 1 ? 0 : static_cast(rand()) % ipv4]; // NOLINT(concurrency-mt-unsafe, cert-msc30-c, cert-msc50-cpp) } return defaultRecord; } + + +size_t xmrig::DnsRecords::count(DnsRecord::Type type) const +{ + if (type == DnsRecord::A) { + return m_ipv4.size(); + } + + if (type == DnsRecord::AAAA) { + return m_ipv6.size(); + } + + return m_ipv4.size() + m_ipv6.size(); +} + + +void xmrig::DnsRecords::clear() +{ + m_ipv4.clear(); + m_ipv6.clear(); +} + + +void xmrig::DnsRecords::parse(addrinfo *res) +{ + clear(); + + addrinfo *ptr = res; + size_t ipv4 = 0; + size_t ipv6 = 0; + + while (ptr != nullptr) { + if (ptr->ai_family == AF_INET) { + ++ipv4; + } + else if (ptr->ai_family == AF_INET6) { + ++ipv6; + } + + ptr = ptr->ai_next; + } + + if (ipv4 == 0 && ipv6 == 0) { + return; + } + + m_ipv4.reserve(ipv4); + m_ipv6.reserve(ipv6); + + ptr = res; + while (ptr != nullptr) { + if (ptr->ai_family == AF_INET) { + m_ipv4.emplace_back(ptr); + } + else if (ptr->ai_family == AF_INET6) { + m_ipv6.emplace_back(ptr); + } + + ptr = ptr->ai_next; + } +} diff --git a/src/base/net/dns/DnsRecords.h b/src/base/net/dns/DnsRecords.h index 4b16d54a..cfa19217 100644 --- a/src/base/net/dns/DnsRecords.h +++ b/src/base/net/dns/DnsRecords.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,9 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_DNSRECORDS_H +#define XMRIG_DNSRECORDS_H + #include "base/net/dns/DnsRecord.h" @@ -27,19 +29,20 @@ namespace xmrig { class DnsRecords { public: - DnsRecords() = default; - DnsRecords(const addrinfo *res, int ai_family); + inline bool isEmpty() const { return m_ipv4.empty() && m_ipv6.empty(); } - inline bool isEmpty() const { return m_records.empty(); } - inline const std::vector &records() const { return m_records; } - inline size_t size() const { return m_records.size(); } - - const DnsRecord &get() const; + const DnsRecord &get(DnsRecord::Type prefered = DnsRecord::Unknown) const; + size_t count(DnsRecord::Type type = DnsRecord::Unknown) const; + void clear(); + void parse(addrinfo *res); private: - mutable size_t m_index = 0; - std::vector m_records; + std::vector m_ipv4; + std::vector m_ipv6; }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif /* XMRIG_DNSRECORDS_H */ diff --git a/src/base/net/dns/DnsRequest.h b/src/base/net/dns/DnsRequest.h index 175b9c07..036eaa34 100644 --- a/src/base/net/dns/DnsRequest.h +++ b/src/base/net/dns/DnsRequest.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,30 +16,35 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_DNSREQUEST_H +#define XMRIG_DNSREQUEST_H -#include "base/kernel/interfaces/IDnsListener.h" + +#include "base/tools/Object.h" + + +#include namespace xmrig { -class DnsRequest : public IDnsListener +class IDnsListener; + + +class DnsRequest { public: XMRIG_DISABLE_COPY_MOVE_DEFAULT(DnsRequest) - inline DnsRequest(IDnsListener *listener) : m_listener(listener) {} - ~DnsRequest() override = default; + DnsRequest(IDnsListener *listener) : listener(listener) {} + ~DnsRequest() = default; -protected: - inline void onResolved(const DnsRecords &records, int status, const char *error) override { - m_listener->onResolved(records, status, error); - } - -private: - IDnsListener *m_listener; + IDnsListener *listener; }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif /* XMRIG_DNSREQUEST_H */ diff --git a/src/base/net/dns/DnsUvBackend.cpp b/src/base/net/dns/DnsUvBackend.cpp index 850f493e..8de95df5 100644 --- a/src/base/net/dns/DnsUvBackend.cpp +++ b/src/base/net/dns/DnsUvBackend.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,29 +16,30 @@ * along with this program. If not, see . */ + #include + #include "base/net/dns/DnsUvBackend.h" #include "base/kernel/interfaces/IDnsListener.h" -#include "base/net/dns/DnsConfig.h" +#include "base/net/dns/DnsRequest.h" #include "base/tools/Chrono.h" namespace xmrig { +static Storage* storage = nullptr; -static Storage *storage = nullptr; - - -Storage &DnsUvBackend::getStorage() +Storage& DnsUvBackend::getStorage() { - if (storage == nullptr) { - storage = new Storage(); - } - + if (storage == nullptr) storage = new Storage(); return *storage; } +void DnsUvBackend::releaseStorage() +{ + delete storage; +} static addrinfo hints{}; @@ -60,34 +61,26 @@ xmrig::DnsUvBackend::DnsUvBackend() xmrig::DnsUvBackend::~DnsUvBackend() { - assert(storage); - - storage->release(m_key); - - if (storage->isEmpty()) { - delete storage; - storage = nullptr; - } + getStorage().release(m_key); + releaseStorage(); } -void xmrig::DnsUvBackend::resolve(const String &host, const std::weak_ptr &listener, const DnsConfig &config) +std::shared_ptr xmrig::DnsUvBackend::resolve(const String &host, IDnsListener *listener, uint64_t ttl) { - m_queue.emplace_back(listener); + auto req = std::make_shared(listener); - if (Chrono::currentMSecsSinceEpoch() - m_ts <= config.ttl()) { - return notify(); + if (Chrono::currentMSecsSinceEpoch() - m_ts <= ttl && !m_records.isEmpty()) { + req->listener->onResolved(m_records, 0, nullptr); + } else { + m_queue.emplace(req); } - if (m_req) { - return; + if (m_queue.size() == 1 && !resolve(host)) { + done(); } - m_ai_family = config.ai_family(); - - if (!resolve(host)) { - notify(); - } + return req; } @@ -102,46 +95,44 @@ bool xmrig::DnsUvBackend::resolve(const String &host) } -void xmrig::DnsUvBackend::notify() +void xmrig::DnsUvBackend::done() { const char *error = m_status < 0 ? uv_strerror(m_status) : nullptr; - for (const auto &l : m_queue) { - auto listener = l.lock(); - if (listener) { - listener->onResolved(m_records, m_status, error); + while (!m_queue.empty()) { + auto req = std::move(m_queue.front()).lock(); + if (req) { + req->listener->onResolved(m_records, m_status, error); } + + m_queue.pop(); } - m_queue.clear(); m_req.reset(); } void xmrig::DnsUvBackend::onResolved(int status, addrinfo *res) { - m_status = status; - m_ts = Chrono::currentMSecsSinceEpoch(); + m_ts = Chrono::currentMSecsSinceEpoch(); - if (m_status < 0) { - m_records = {}; - - return notify(); + if ((m_status = status) < 0) { + return done(); } - m_records = { res, m_ai_family }; + m_records.parse(res); if (m_records.isEmpty()) { m_status = UV_EAI_NONAME; } - notify(); + done(); } void xmrig::DnsUvBackend::onResolved(uv_getaddrinfo_t *req, int status, addrinfo *res) { - auto *backend = getStorage().get(req->data); + auto backend = getStorage().get(req->data); if (backend) { backend->onResolved(status, res); } diff --git a/src/base/net/dns/DnsUvBackend.h b/src/base/net/dns/DnsUvBackend.h index 24a6e1aa..3c2436c7 100644 --- a/src/base/net/dns/DnsUvBackend.h +++ b/src/base/net/dns/DnsUvBackend.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,13 +16,16 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_DNSUVBACKEND_H +#define XMRIG_DNSUVBACKEND_H + #include "base/kernel/interfaces/IDnsBackend.h" #include "base/net/dns/DnsRecords.h" #include "base/net/tools/Storage.h" -#include + +#include using uv_getaddrinfo_t = struct uv_getaddrinfo_s; @@ -40,19 +43,20 @@ public: ~DnsUvBackend() override; protected: - void resolve(const String &host, const std::weak_ptr &listener, const DnsConfig &config) override; + inline const DnsRecords &records() const override { return m_records; } + + std::shared_ptr resolve(const String &host, IDnsListener *listener, uint64_t ttl) override; private: bool resolve(const String &host); - void notify(); + void done(); void onResolved(int status, addrinfo *res); static void onResolved(uv_getaddrinfo_t *req, int status, addrinfo *res); DnsRecords m_records; - int m_ai_family = 0; int m_status = 0; - std::deque> m_queue; + std::queue > m_queue; std::shared_ptr m_req; uint64_t m_ts = 0; uintptr_t m_key; @@ -62,4 +66,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ + + +#endif /* XMRIG_DNSUVBACKEND_H */ diff --git a/src/base/net/http/HttpApiResponse.cpp b/src/base/net/http/HttpApiResponse.cpp index 3ee38a09..e6758df9 100644 --- a/src/base/net/http/HttpApiResponse.cpp +++ b/src/base/net/http/HttpApiResponse.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2014-2019 heapwolf - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ * along with this program. If not, see . */ + #include "base/net/http/HttpApiResponse.h" #include "3rdparty/rapidjson/prettywriter.h" #include "3rdparty/rapidjson/stringbuffer.h" @@ -64,7 +65,7 @@ void xmrig::HttpApiResponse::end() } } - if (m_doc.IsObject() && m_doc.ObjectEmpty()) { + if (!m_doc.MemberCount()) { return HttpResponse::end(); } diff --git a/src/base/net/http/HttpData.cpp b/src/base/net/http/HttpData.cpp index 062a91aa..b243118c 100644 --- a/src/base/net/http/HttpData.cpp +++ b/src/base/net/http/HttpData.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2014-2019 heapwolf - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ * along with this program. If not, see . */ + #include "base/net/http/HttpData.h" #include "3rdparty/llhttp/llhttp.h" #include "3rdparty/rapidjson/document.h" @@ -28,6 +29,76 @@ #include +/* Status Codes */ +#define HTTP_STATUS_MAP(XX) \ + XX(100, CONTINUE, Continue) \ + XX(101, SWITCHING_PROTOCOLS, Switching Protocols) \ + XX(102, PROCESSING, Processing) \ + XX(200, OK, OK) \ + XX(201, CREATED, Created) \ + XX(202, ACCEPTED, Accepted) \ + XX(203, NON_AUTHORITATIVE_INFORMATION, Non-Authoritative Information) \ + XX(204, NO_CONTENT, No Content) \ + XX(205, RESET_CONTENT, Reset Content) \ + XX(206, PARTIAL_CONTENT, Partial Content) \ + XX(207, MULTI_STATUS, Multi-Status) \ + XX(208, ALREADY_REPORTED, Already Reported) \ + XX(226, IM_USED, IM Used) \ + XX(300, MULTIPLE_CHOICES, Multiple Choices) \ + XX(301, MOVED_PERMANENTLY, Moved Permanently) \ + XX(302, FOUND, Found) \ + XX(303, SEE_OTHER, See Other) \ + XX(304, NOT_MODIFIED, Not Modified) \ + XX(305, USE_PROXY, Use Proxy) \ + XX(307, TEMPORARY_REDIRECT, Temporary Redirect) \ + XX(308, PERMANENT_REDIRECT, Permanent Redirect) \ + XX(400, BAD_REQUEST, Bad Request) \ + XX(401, UNAUTHORIZED, Unauthorized) \ + XX(402, PAYMENT_REQUIRED, Payment Required) \ + XX(403, FORBIDDEN, Forbidden) \ + XX(404, NOT_FOUND, Not Found) \ + XX(405, METHOD_NOT_ALLOWED, Method Not Allowed) \ + XX(406, NOT_ACCEPTABLE, Not Acceptable) \ + XX(407, PROXY_AUTHENTICATION_REQUIRED, Proxy Authentication Required) \ + XX(408, REQUEST_TIMEOUT, Request Timeout) \ + XX(409, CONFLICT, Conflict) \ + XX(410, GONE, Gone) \ + XX(411, LENGTH_REQUIRED, Length Required) \ + XX(412, PRECONDITION_FAILED, Precondition Failed) \ + XX(413, PAYLOAD_TOO_LARGE, Payload Too Large) \ + XX(414, URI_TOO_LONG, URI Too Long) \ + XX(415, UNSUPPORTED_MEDIA_TYPE, Unsupported Media Type) \ + XX(416, RANGE_NOT_SATISFIABLE, Range Not Satisfiable) \ + XX(417, EXPECTATION_FAILED, Expectation Failed) \ + XX(421, MISDIRECTED_REQUEST, Misdirected Request) \ + XX(422, UNPROCESSABLE_ENTITY, Unprocessable Entity) \ + XX(423, LOCKED, Locked) \ + XX(424, FAILED_DEPENDENCY, Failed Dependency) \ + XX(426, UPGRADE_REQUIRED, Upgrade Required) \ + XX(428, PRECONDITION_REQUIRED, Precondition Required) \ + XX(429, TOO_MANY_REQUESTS, Too Many Requests) \ + XX(431, REQUEST_HEADER_FIELDS_TOO_LARGE, Request Header Fields Too Large) \ + XX(451, UNAVAILABLE_FOR_LEGAL_REASONS, Unavailable For Legal Reasons) \ + XX(500, INTERNAL_SERVER_ERROR, Internal Server Error) \ + XX(501, NOT_IMPLEMENTED, Not Implemented) \ + XX(502, BAD_GATEWAY, Bad Gateway) \ + XX(503, SERVICE_UNAVAILABLE, Service Unavailable) \ + XX(504, GATEWAY_TIMEOUT, Gateway Timeout) \ + XX(505, HTTP_VERSION_NOT_SUPPORTED, HTTP Version Not Supported) \ + XX(506, VARIANT_ALSO_NEGOTIATES, Variant Also Negotiates) \ + XX(507, INSUFFICIENT_STORAGE, Insufficient Storage) \ + XX(508, LOOP_DETECTED, Loop Detected) \ + XX(510, NOT_EXTENDED, Not Extended) \ + XX(511, NETWORK_AUTHENTICATION_REQUIRED, Network Authentication Required) \ + +enum http_status +{ +# define XX(num, name, string) HTTP_STATUS_##name = num, + HTTP_STATUS_MAP(XX) +# undef XX +}; + + namespace xmrig { @@ -37,6 +108,17 @@ const std::string HttpData::kContentTypeL = "content-type"; const std::string HttpData::kTextPlain = "text/plain"; +static const char *http_status_str(enum http_status s) +{ + switch (s) { +# define XX(num, name, string) case HTTP_STATUS_##name: return #string; + HTTP_STATUS_MAP(XX) +# undef XX + default: return ""; + } +} + + } // namespace xmrig @@ -91,5 +173,5 @@ const char *xmrig::HttpData::statusName(int status) return uv_strerror(status); } - return llhttp_status_name(static_cast(status)); + return http_status_str(static_cast(status)); } diff --git a/src/base/net/http/HttpResponse.h b/src/base/net/http/HttpResponse.h index 9e632598..a6b44997 100644 --- a/src/base/net/http/HttpResponse.h +++ b/src/base/net/http/HttpResponse.h @@ -21,7 +21,6 @@ #define XMRIG_HTTPRESPONSE_H -#include #include #include diff --git a/src/base/net/https/HttpsClient.cpp b/src/base/net/https/HttpsClient.cpp index 8cd9099a..e901b1e0 100644 --- a/src/base/net/https/HttpsClient.cpp +++ b/src/base/net/https/HttpsClient.cpp @@ -189,12 +189,10 @@ void xmrig::HttpsClient::flush(bool close) } char *data = nullptr; - const long size = BIO_get_mem_data(m_write, &data); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast) - std::string body(data, (size > 0) ? size : 0); + const size_t size = BIO_get_mem_data(m_write, &data); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast) + std::string body(data, size); (void) BIO_reset(m_write); - if (!body.empty()) { - HttpContext::write(std::move(body), close); - } + HttpContext::write(std::move(body), close); } diff --git a/src/base/net/stratum/AutoClient.cpp b/src/base/net/stratum/AutoClient.cpp index 675be865..702c0fa0 100644 --- a/src/base/net/stratum/AutoClient.cpp +++ b/src/base/net/stratum/AutoClient.cpp @@ -65,12 +65,6 @@ bool xmrig::AutoClient::parseLogin(const rapidjson::Value &result, int *code) m_mode = ETH_MODE; setAlgo(algo); -# ifdef XMRIG_ALGO_GHOSTRIDER - if (algo.family() == Algorithm::GHOSTRIDER) { - setExtraNonce2Size(Json::getUint64(result, "extra_nonce2_size")); - } -# endif - return true; } diff --git a/src/base/net/stratum/Client.cpp b/src/base/net/stratum/Client.cpp index b412a543..db6ceca3 100644 --- a/src/base/net/stratum/Client.cpp +++ b/src/base/net/stratum/Client.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2019 jtgrassie - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,6 @@ #include #include #include -#include #ifdef XMRIG_FEATURE_TLS @@ -42,14 +41,13 @@ #include "base/io/json/JsonRequest.h" #include "base/io/log/Log.h" #include "base/kernel/interfaces/IClientListener.h" -#include "base/kernel/Platform.h" #include "base/net/dns/Dns.h" #include "base/net/dns/DnsRecords.h" #include "base/net/stratum/Socks5.h" #include "base/net/tools/NetBuffer.h" #include "base/tools/Chrono.h" -#include "base/tools/cryptonote/BlobReader.h" #include "base/tools/Cvt.h" +#include "base/tools/cryptonote/BlobReader.h" #include "net/JobResult.h" @@ -344,9 +342,6 @@ bool xmrig::Client::close() setState(ClosingState); if (uv_is_closing(reinterpret_cast(m_socket)) == 0) { - if (Platform::hasKeepalive()) { - uv_tcp_keepalive(m_socket, 0, 60); - } uv_close(reinterpret_cast(m_socket), Client::onClose); } @@ -363,7 +358,7 @@ bool xmrig::Client::parseJob(const rapidjson::Value ¶ms, int *code) Job job(has(), m_pool.algorithm(), m_rpcId); - if (!job.setId(Json::getString(params, "job_id"))) { + if (!job.setId(params["job_id"].GetString())) { *code = 3; return false; } @@ -400,7 +395,7 @@ bool xmrig::Client::parseJob(const rapidjson::Value ¶ms, int *code) } } - if (!job.setTarget(Json::getString(params, "target"))) { + if (!job.setTarget(params["target"].GetString())) { *code = 5; return false; } @@ -571,9 +566,9 @@ void xmrig::Client::connect(const sockaddr *addr) uv_tcp_init(uv_default_loop(), m_socket); uv_tcp_nodelay(m_socket, 1); - if (Platform::hasKeepalive()) { - uv_tcp_keepalive(m_socket, 1, 60); - } +# ifndef WIN32 + uv_tcp_keepalive(m_socket, 1, 60); +# endif uv_tcp_connect(req, m_socket, addr, onConnect); } @@ -589,7 +584,7 @@ void xmrig::Client::handshake() if (isTLS()) { m_expire = Chrono::steadyMSecs() + kResponseTimeout; - m_tls->handshake(m_pool.isSNI() ? m_pool.host().data() : nullptr); + m_tls->handshake(); } else # endif @@ -609,7 +604,7 @@ bool xmrig::Client::parseLogin(const rapidjson::Value &result, int *code) parseExtensions(result); - const bool rc = parseJob(Json::getObject(result, "job"), code); + const bool rc = parseJob(result["job"], code); m_jobs = 0; return rc; @@ -665,7 +660,7 @@ void xmrig::Client::parse(char *line, size_t len) LOG_DEBUG("[%s] received (%d bytes): \"%.*s\"", url(), len, static_cast(len), line); - if (len < 22 || line[0] != '{') { + if (len < 32 || line[0] != '{') { if (!isQuiet()) { LOG_ERR("%s " RED("JSON decode failed"), tag()); } @@ -688,48 +683,12 @@ void xmrig::Client::parse(char *line, size_t len) const auto &id = Json::getValue(doc, "id"); const auto &error = Json::getValue(doc, "error"); - const char *method = Json::getString(doc, "method"); - - if (method && strcmp(method, "client.reconnect") == 0) { - const auto ¶ms = Json::getValue(doc, "params"); - if (!params.IsArray()) { - LOG_ERR("%s " RED("invalid client.reconnect notification: params is not an array"), tag()); - return; - } - - auto arr = params.GetArray(); - - if (arr.Empty()) { - LOG_ERR("%s " RED("invalid client.reconnect notification: params array is empty"), tag()); - return; - } - - if (arr.Size() != 2) { - LOG_ERR("%s " RED("invalid client.reconnect notification: params array has wrong size"), tag()); - return; - } - - if (!arr[0].IsString()) { - LOG_ERR("%s " RED("invalid client.reconnect notification: host is not a string"), tag()); - return; - } - - if (!arr[1].IsString()) { - LOG_ERR("%s " RED("invalid client.reconnect notification: port is not a string"), tag()); - return; - } - - std::stringstream s; - s << arr[0].GetString() << ":" << arr[1].GetString(); - LOG_WARN("%s " YELLOW("client.reconnect to %s"), tag(), s.str().c_str()); - setPoolUrl(s.str().c_str()); - return reconnect(); - } if (id.IsInt64()) { return parseResponse(id.GetInt64(), Json::getValue(doc, "result"), error); } + const char *method = Json::getString(doc, "method"); if (!method) { return; } @@ -844,7 +803,7 @@ void xmrig::Client::parseResponse(int64_t id, const rapidjson::Value &result, co m_listener->onLoginSuccess(this); if (m_job.isValid()) { - m_listener->onJobReceived(this, m_job, Json::getObject(result, "job")); + m_listener->onJobReceived(this, m_job, result["job"]); } return; @@ -1022,7 +981,7 @@ void xmrig::Client::onConnect(uv_connect_t *req, int status) if (status < 0) { if (!client->isQuiet()) { - LOG_ERR("%s %s " RED("connect error: ") RED_BOLD("\"%s\""), client->tag(), client->ip().data(), uv_strerror(status)); + LOG_ERR("%s " RED("connect error: ") RED_BOLD("\"%s\""), client->tag(), uv_strerror(status)); } if (client->state() == ReconnectingState || client->state() == ClosingState) { diff --git a/src/base/net/stratum/Client.h b/src/base/net/stratum/Client.h index 300db138..e1f5d756 100644 --- a/src/base/net/stratum/Client.h +++ b/src/base/net/stratum/Client.h @@ -84,7 +84,6 @@ protected: inline const char *url() const { return m_pool.url(); } inline const String &rpcId() const { return m_rpcId; } inline void setRpcId(const char *id) { m_rpcId = id; } - inline void setPoolUrl(const char *url) { m_pool.setUrl(url); } virtual bool parseLogin(const rapidjson::Value &result, int *code); virtual void login(); diff --git a/src/base/net/stratum/DaemonClient.cpp b/src/base/net/stratum/DaemonClient.cpp index 37f352bc..57a8d6f0 100644 --- a/src/base/net/stratum/DaemonClient.cpp +++ b/src/base/net/stratum/DaemonClient.cpp @@ -1,13 +1,13 @@ /* XMRig - * Copyright (c) 2010 Jeff Garzik - * Copyright (c) 2012-2014 pooler - * Copyright (c) 2014 Lucas Jones - * Copyright (c) 2014-2016 Wolf9466 - * Copyright (c) 2016 Jay D Dee - * Copyright (c) 2017-2018 XMR-Stak , - * Copyright (c) 2019 Howard Chu - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright 2010 Jeff Garzik + * Copyright 2012-2014 pooler + * Copyright 2014 Lucas Jones + * Copyright 2014-2016 Wolf9466 + * Copyright 2016 Jay D Dee + * Copyright 2017-2018 XMR-Stak , + * Copyright 2019 Howard Chu + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ * along with this program. If not, see . */ + #include @@ -33,7 +34,6 @@ #include "base/io/json/JsonRequest.h" #include "base/io/log/Log.h" #include "base/kernel/interfaces/IClientListener.h" -#include "base/kernel/Platform.h" #include "base/net/dns/Dns.h" #include "base/net/dns/DnsRecords.h" #include "base/net/http/Fetch.h" @@ -42,20 +42,14 @@ #include "base/net/stratum/SubmitResult.h" #include "base/net/tools/NetBuffer.h" #include "base/tools/bswap_64.h" -#include "base/tools/cryptonote/Signatures.h" #include "base/tools/Cvt.h" #include "base/tools/Timer.h" +#include "base/tools/cryptonote/Signatures.h" #include "net/JobResult.h" -#ifdef XMRIG_FEATURE_TLS -#include -#endif - - #include #include -#include namespace xmrig { @@ -64,8 +58,7 @@ namespace xmrig { Storage DaemonClient::m_storage; -static const char* kBlocktemplateBlob = "blocktemplate_blob"; -static const char* kBlockhashingBlob = "blockhashing_blob"; +static const char* kBlocktemplateBlob = "blocktemplate_blob"; static const char *kGetHeight = "/getheight"; static const char *kGetInfo = "/getinfo"; static const char *kHash = "hash"; @@ -136,7 +129,7 @@ int64_t xmrig::DaemonClient::submit(const JobResult &result) return -1; } - char *data = m_blocktemplateStr.data(); + char *data = (m_apiVersion == API_DERO) ? m_blockhashingblob.data() : m_blocktemplateStr.data(); const size_t sig_offset = m_job.nonceOffset() + m_job.nonceSize(); @@ -148,11 +141,6 @@ int64_t xmrig::DaemonClient::submit(const JobResult &result) memcpy(data + sig_offset * 2, result.sig, 64 * 2); memcpy(data + m_blocktemplate.offset(BlockTemplate::TX_PUBKEY_OFFSET) * 2, result.sig_data, 32 * 2); memcpy(data + m_blocktemplate.offset(BlockTemplate::EPH_PUBLIC_KEY_OFFSET) * 2, result.sig_data + 32 * 2, 32 * 2); - - // Handle view tag for txout_to_tagged_key outputs - if (m_blocktemplate.outputType() == 3) { - Cvt::toHex(data + m_blocktemplate.offset(BlockTemplate::EPH_PUBLIC_KEY_OFFSET) * 2 + 32 * 2, 2, &result.view_tag, 1); - } } if (result.extra_nonce >= 0) { @@ -173,7 +161,13 @@ int64_t xmrig::DaemonClient::submit(const JobResult &result) Document doc(kObjectType); Value params(kArrayType); - params.PushBack(m_blocktemplateStr.toJSON(), doc.GetAllocator()); + if (m_apiVersion == API_DERO) { + params.PushBack(m_blocktemplateStr.toJSON(), doc.GetAllocator()); + params.PushBack(m_blockhashingblob.toJSON(), doc.GetAllocator()); + } + else { + params.PushBack(m_blocktemplateStr.toJSON(), doc.GetAllocator()); + } JsonRequest::create(doc, m_sequence, "submitblock", params); @@ -183,10 +177,7 @@ int64_t xmrig::DaemonClient::submit(const JobResult &result) m_results[m_sequence] = SubmitResult(m_sequence, result.diff, result.actualDiff(), 0, result.backend); # endif - std::map headers; - headers.insert({"X-Hash-Difficulty", std::to_string(result.actualDiff())}); - - return rpcSend(doc, headers); + return rpcSend(doc); } @@ -202,16 +193,16 @@ void xmrig::DaemonClient::connect() setState(ConnectingState); + if (!m_walletAddress.isValid()) { + return connectError("Invalid wallet address."); + } + if (!m_coin.isValid() && !m_pool.algorithm().isValid()) { return connectError("Invalid algorithm."); } - if (!m_pool.algorithm().isValid()) { - m_pool.setAlgo(m_coin.algorithm()); - } - - if ((m_apiVersion == API_MONERO) && !m_walletAddress.isValid()) { - return connectError("Invalid wallet address."); + if ((m_pool.algorithm() == Algorithm::ASTROBWT_DERO) || (m_coin == Coin::DERO)) { + m_apiVersion = API_DERO; } if (m_pool.zmq_port() >= 0) { @@ -311,23 +302,16 @@ void xmrig::DaemonClient::onHttpData(const HttpData &data) void xmrig::DaemonClient::onTimer(const Timer *) { - if (m_pool.zmq_port() >= 0) { - m_prevHash = nullptr; - m_blocktemplateRequestHash = nullptr; - send(kGetHeight); - return; - } - - if (Chrono::steadyMSecs() >= m_jobSteadyMs + m_pool.jobTimeout()) { - m_prevHash = nullptr; - m_blocktemplateRequestHash = nullptr; - } - if (m_state == ConnectingState) { connect(); } else if (m_state == ConnectedState) { - send((m_apiVersion == API_MONERO) ? kGetHeight : kGetInfo); + if (m_apiVersion == API_DERO) { + rpcSend(JsonRequest::create(m_sequence, "get_info")); + } + else { + send((m_apiVersion == API_MONERO) ? kGetHeight : kGetInfo); + } } } @@ -346,33 +330,32 @@ void xmrig::DaemonClient::onResolved(const DnsRecords &records, int status, cons } + delete m_ZMQSocket; + + const auto &record = records.get(); m_ip = record.ip(); auto req = new uv_connect_t; req->data = m_storage.ptr(m_key); - uv_tcp_t* s = new uv_tcp_t; - s->data = m_storage.ptr(m_key); + m_ZMQSocket = new uv_tcp_t; + m_ZMQSocket->data = m_storage.ptr(m_key); - uv_tcp_init(uv_default_loop(), s); - uv_tcp_nodelay(s, 1); + uv_tcp_init(uv_default_loop(), m_ZMQSocket); + uv_tcp_nodelay(m_ZMQSocket, 1); - if (Platform::hasKeepalive()) { - uv_tcp_keepalive(s, 1, 60); - } +# ifndef WIN32 + uv_tcp_keepalive(m_ZMQSocket, 1, 60); +# endif - if (m_pool.zmq_port() > 0) { - delete m_ZMQSocket; - m_ZMQSocket = s; - uv_tcp_connect(req, s, record.addr(m_pool.zmq_port()), onZMQConnect); - } + uv_tcp_connect(req, m_ZMQSocket, record.addr(m_pool.zmq_port()), onZMQConnect); } bool xmrig::DaemonClient::isOutdated(uint64_t height, const char *hash) const { - return m_job.height() != height || m_prevHash != hash || Chrono::steadyMSecs() >= m_jobSteadyMs + m_pool.jobTimeout(); + return m_job.height() != height || m_prevHash != hash; } @@ -409,12 +392,11 @@ bool xmrig::DaemonClient::parseJob(const rapidjson::Value ¶ms, int *code) m_blocktemplate.offset(BlockTemplate::TX_PUBKEY_OFFSET) - k, m_blocktemplate.offset(BlockTemplate::TX_EXTRA_NONCE_OFFSET) - k, m_blocktemplate.txExtraNonce().size(), - m_blocktemplate.minerTxMerkleTreeBranch(), - m_blocktemplate.outputType() == 3 + m_blocktemplate.minerTxMerkleTreeBranch() ); # endif - m_blockhashingblob = Json::getString(params, kBlockhashingBlob); + m_blockhashingblob = Json::getString(params, "blockhashing_blob"); if (m_blocktemplate.hasMinerSignature()) { if (m_pool.spendSecretKey().isEmpty()) { @@ -447,7 +429,7 @@ bool xmrig::DaemonClient::parseJob(const rapidjson::Value ¶ms, int *code) } uint8_t derivation[32]; - if (!generate_key_derivation(m_blocktemplate.blob(BlockTemplate::TX_PUBKEY_OFFSET), secret_viewkey, derivation, nullptr)) { + if (!generate_key_derivation(m_blocktemplate.blob(BlockTemplate::TX_PUBKEY_OFFSET), secret_viewkey, derivation)) { return jobError("Failed to generate key derivation for miner signature."); } @@ -470,6 +452,11 @@ bool xmrig::DaemonClient::parseJob(const rapidjson::Value ¶ms, int *code) # endif } + if (m_apiVersion == API_DERO) { + const uint64_t offset = Json::getUint64(params, "reserved_offset"); + Cvt::toHex(m_blockhashingblob.data() + offset * 2, kBlobReserveSize * 2, Cvt::randomBytes(kBlobReserveSize).data(), kBlobReserveSize); + } + if (m_coin.isValid()) { job.setAlgorithm(m_coin.algorithm(m_blocktemplate.majorVersion())); } @@ -489,7 +476,13 @@ bool xmrig::DaemonClient::parseJob(const rapidjson::Value ¶ms, int *code) m_job = std::move(job); m_blocktemplateStr = std::move(blocktemplate); m_prevHash = Json::getString(params, "prev_hash"); - m_jobSteadyMs = Chrono::steadyMSecs(); + + if (m_apiVersion == API_DERO) { + // Truncate to 32 bytes to have the same data as in get_info RPC + if (m_prevHash.size() > 64) { + m_prevHash.data()[64] = '\0'; + } + } if (m_state == ConnectingState) { setState(ConnectedState); @@ -534,6 +527,13 @@ bool xmrig::DaemonClient::parseResponse(int64_t id, const rapidjson::Value &resu const char* error_msg = nullptr; + if ((m_apiVersion == API_DERO) && result.HasMember("status")) { + error_msg = result["status"].GetString(); + if (!error_msg || (strlen(error_msg) == 0) || (strcmp(error_msg, "OK") == 0)) { + error_msg = nullptr; + } + } + if (handleSubmitResponse(id, error_msg)) { if (error_msg || (m_pool.zmq_port() < 0)) { getBlockTemplate(); @@ -554,7 +554,12 @@ int64_t xmrig::DaemonClient::getBlockTemplate() Value params(kObjectType); params.AddMember("wallet_address", m_user.toJSON(), allocator); - params.AddMember("extra_nonce", Cvt::toHex(Cvt::randomBytes(kBlobReserveSize)).toJSON(doc), allocator); + if (m_apiVersion == API_DERO) { + params.AddMember("reserve_size", static_cast(kBlobReserveSize), allocator); + } + else { + params.AddMember("extra_nonce", Cvt::toHex(Cvt::randomBytes(kBlobReserveSize)).toJSON(doc), allocator); + } JsonRequest::create(doc, m_sequence, "getblocktemplate", params); @@ -562,13 +567,9 @@ int64_t xmrig::DaemonClient::getBlockTemplate() } -int64_t xmrig::DaemonClient::rpcSend(const rapidjson::Document &doc, const std::map &headers) +int64_t xmrig::DaemonClient::rpcSend(const rapidjson::Document &doc) { FetchRequest req(HTTP_POST, m_pool.host(), m_pool.port(), kJsonRPC, doc, m_pool.isTLS(), isQuiet()); - for (const auto &header : headers) { - req.headers.insert(header); - } - fetch(tag(), std::move(req), m_httpListener); return m_sequence++; @@ -589,9 +590,6 @@ void xmrig::DaemonClient::retry() } if ((m_ZMQConnectionState != ZMQ_NOT_CONNECTED) && (m_ZMQConnectionState != ZMQ_DISCONNECTING)) { - if (Platform::hasKeepalive()) { - uv_tcp_keepalive(m_ZMQSocket, 0, 60); - } uv_close(reinterpret_cast(m_ZMQSocket), onZMQClose); } @@ -625,10 +623,6 @@ void xmrig::DaemonClient::setState(SocketState state) const uint64_t interval = std::max(20, m_pool.pollInterval()); m_timer->start(interval, interval); } - else { - const uint64_t t = m_pool.jobTimeout(); - m_timer->start(t, t); - } } break; @@ -891,19 +885,10 @@ void xmrig::DaemonClient::ZMQParse() m_ZMQRecvBuf.erase(m_ZMQRecvBuf.begin(), m_ZMQRecvBuf.begin() + (data - m_ZMQRecvBuf.data())); # ifdef APP_DEBUG - msg.push_back('\0'); - LOG_DEBUG(CYAN("tcp-zmq://%s:%u") BLACK_BOLD(" read ") CYAN_BOLD("%zu") BLACK_BOLD(" bytes") " %s", m_pool.host().data(), m_pool.zmq_port(), msg.size() - 1, msg.data()); + LOG_DEBUG(CYAN("tcp-zmq://%s:%u") BLACK_BOLD(" read ") CYAN_BOLD("%zu") BLACK_BOLD(" bytes") " %s", m_pool.host().data(), m_pool.zmq_port(), msg.size(), msg.data()); # endif - // Clear previous hash and check daemon height to guarantee that xmrig will call get_block_template RPC later - // We can't call get_block_template directly because daemon is not ready yet - m_prevHash = nullptr; - m_blocktemplateRequestHash = nullptr; - send(kGetHeight); - - const uint64_t t = m_pool.jobTimeout(); - m_timer->stop(); - m_timer->start(t, t); + getBlockTemplate(); } @@ -919,9 +904,6 @@ bool xmrig::DaemonClient::ZMQClose(bool shutdown) m_ZMQConnectionState = ZMQ_DISCONNECTING; if (uv_is_closing(reinterpret_cast(m_ZMQSocket)) == 0) { - if (Platform::hasKeepalive()) { - uv_tcp_keepalive(m_ZMQSocket, 0, 60); - } uv_close(reinterpret_cast(m_ZMQSocket), shutdown ? onZMQShutdown : onZMQClose); if (!shutdown) { retry(); diff --git a/src/base/net/stratum/DaemonClient.h b/src/base/net/stratum/DaemonClient.h index e852f428..5a6ca8ca 100644 --- a/src/base/net/stratum/DaemonClient.h +++ b/src/base/net/stratum/DaemonClient.h @@ -39,12 +39,6 @@ using uv_handle_t = struct uv_handle_s; using uv_stream_t = struct uv_stream_s; using uv_tcp_t = struct uv_tcp_s; -#ifdef XMRIG_FEATURE_TLS -using BIO = struct bio_st; -using SSL = struct ssl_st; -using SSL_CTX = struct ssl_ctx_st; -#endif - namespace xmrig { @@ -86,7 +80,7 @@ private: bool parseJob(const rapidjson::Value ¶ms, int *code); bool parseResponse(int64_t id, const rapidjson::Value &result, const rapidjson::Value &error); int64_t getBlockTemplate(); - int64_t rpcSend(const rapidjson::Document &doc, const std::map &headers = {}); + int64_t rpcSend(const rapidjson::Document &doc); void retry(); void send(const char *path); void setState(SocketState state); @@ -94,6 +88,7 @@ private: enum { API_CRYPTONOTE_DEFAULT, API_MONERO, + API_DERO, } m_apiVersion = API_MONERO; BlockTemplate m_blocktemplate; @@ -104,7 +99,6 @@ private: String m_blocktemplateStr; String m_currentJobId; String m_prevHash; - uint64_t m_jobSteadyMs = 0; String m_tlsFingerprint; String m_tlsVersion; Timer *m_timer; diff --git a/src/base/net/stratum/EthStratumClient.cpp b/src/base/net/stratum/EthStratumClient.cpp index fd877d72..3ebce708 100644 --- a/src/base/net/stratum/EthStratumClient.cpp +++ b/src/base/net/stratum/EthStratumClient.cpp @@ -73,7 +73,7 @@ int64_t xmrig::EthStratumClient::submit(const JobResult& result) auto& allocator = doc.GetAllocator(); Value params(kArrayType); - params.PushBack(m_user.toJSON(), allocator); + params.PushBack(m_pool.user().toJSON(), allocator); params.PushBack(result.jobId.toJSON(), allocator); # ifdef XMRIG_ALGO_GHOSTRIDER @@ -471,8 +471,8 @@ void xmrig::EthStratumClient::authorize() auto &allocator = doc.GetAllocator(); Value params(kArrayType); - params.PushBack(m_user.toJSON(), allocator); - params.PushBack(m_password.toJSON(), allocator); + params.PushBack(m_pool.user().toJSON(), allocator); + params.PushBack(m_pool.password().toJSON(), allocator); JsonRequest::create(doc, m_sequence, "mining.authorize", params); diff --git a/src/base/net/stratum/EthStratumClient.h b/src/base/net/stratum/EthStratumClient.h index ebfda6ac..c1fde9b6 100644 --- a/src/base/net/stratum/EthStratumClient.h +++ b/src/base/net/stratum/EthStratumClient.h @@ -47,10 +47,6 @@ protected: void setExtraNonce(const rapidjson::Value &nonce); -# ifdef XMRIG_ALGO_GHOSTRIDER - inline void setExtraNonce2Size(uint64_t size) { m_extraNonce2Size = size; } -# endif - private: static const char *errorMessage(const rapidjson::Value &error); diff --git a/src/base/net/stratum/Job.cpp b/src/base/net/stratum/Job.cpp index 1a7cfbfe..17122eaa 100644 --- a/src/base/net/stratum/Job.cpp +++ b/src/base/net/stratum/Job.cpp @@ -7,8 +7,8 @@ * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett * Copyright 2019 Howard Chu - * Copyright 2018-2024 SChernykh - * Copyright 2016-2024 XMRig , + * Copyright 2018-2021 SChernykh + * Copyright 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,11 +24,12 @@ * along with this program. If not, see . */ + #include #include + #include "base/net/stratum/Job.h" -#include "base/tools/Alignment.h" #include "base/tools/Buffer.h" #include "base/tools/Cvt.h" #include "base/tools/cryptonote/BlockTemplate.h" @@ -46,13 +47,7 @@ xmrig::Job::Job(bool nicehash, const Algorithm &algorithm, const String &clientI bool xmrig::Job::isEqual(const Job &other) const { - return m_id == other.m_id && m_clientId == other.m_clientId && isEqualBlob(other) && m_target == other.m_target; -} - - -bool xmrig::Job::isEqualBlob(const Job &other) const -{ - return (m_size == other.m_size) && (memcmp(m_blob, other.m_blob, m_size) == 0); + return m_id == other.m_id && m_clientId == other.m_clientId && memcmp(m_blob, other.m_blob, sizeof(m_blob)) == 0 && m_target == other.m_target; } @@ -62,32 +57,31 @@ bool xmrig::Job::setBlob(const char *blob) return false; } - size_t size = strlen(blob); - if (size % 2 != 0) { + m_size = strlen(blob); + if (m_size % 2 != 0) { return false; } - size /= 2; + m_size /= 2; const size_t minSize = nonceOffset() + nonceSize(); - if (size < minSize || size >= sizeof(m_blob)) { + if (m_size < minSize || m_size >= sizeof(m_blob)) { return false; } - if (!Cvt::fromHex(m_blob, sizeof(m_blob), blob, size * 2)) { + if (!Cvt::fromHex(m_blob, sizeof(m_blob), blob, m_size * 2)) { return false; } - if (readUnaligned(nonce()) != 0 && !m_nicehash) { + if (*nonce() != 0 && !m_nicehash) { m_nicehash = true; } # ifdef XMRIG_PROXY_PROJECT memset(m_rawBlob, 0, sizeof(m_rawBlob)); - memcpy(m_rawBlob, blob, size * 2); + memcpy(m_rawBlob, blob, m_size * 2); # endif - m_size = size; return true; } @@ -110,69 +104,35 @@ bool xmrig::Job::setSeedHash(const char *hash) bool xmrig::Job::setTarget(const char *target) { - static auto parse = [](const char *target, size_t size, const Algorithm &algorithm) -> uint64_t { - if (algorithm == Algorithm::RX_YADA) { - return strtoull(target, nullptr, 16); - } - - const auto raw = Cvt::fromHex(target, size); - - switch (raw.size()) { - case 4: - return 0xFFFFFFFFFFFFFFFFULL / (0xFFFFFFFFULL / uint64_t(*reinterpret_cast(raw.data()))); - - case 8: - return *reinterpret_cast(raw.data()); - - default: - break; - } - - return 0; - }; - - const size_t size = target ? strlen(target) : 0; - - if (size < 4 || (m_target = parse(target, size, algorithm())) == 0) { + if (!target) { return false; } - m_diff = toDiff(m_target); + const auto raw = Cvt::fromHex(target, strlen(target)); + const size_t size = raw.size(); + + if (size == 4) { + m_target = 0xFFFFFFFFFFFFFFFFULL / (0xFFFFFFFFULL / uint64_t(*reinterpret_cast(raw.data()))); + } + else if (size == 8) { + m_target = *reinterpret_cast(raw.data()); + } + else { + return false; + } # ifdef XMRIG_PROXY_PROJECT - if (size >= sizeof(m_rawTarget)) { - return false; - } + assert(sizeof(m_rawTarget) > (size * 2)); memset(m_rawTarget, 0, sizeof(m_rawTarget)); - memcpy(m_rawTarget, target, size); + memcpy(m_rawTarget, target, std::min(size * 2, sizeof(m_rawTarget))); # endif + m_diff = toDiff(m_target); return true; } -size_t xmrig::Job::nonceOffset() const -{ - switch (algorithm().family()) { - case Algorithm::KAWPOW: - return 32; - - case Algorithm::GHOSTRIDER: - return 76; - - default: - break; - } - - if (algorithm() == Algorithm::RX_YADA) { - return 147; - } - - return 39; -} - - void xmrig::Job::setDiff(uint64_t diff) { m_diff = diff; @@ -269,7 +229,6 @@ void xmrig::Job::copy(const Job &other) m_minerTxExtraNonceOffset = other.m_minerTxExtraNonceOffset; m_minerTxExtraNonceSize = other.m_minerTxExtraNonceSize; m_minerTxMerkleTreeBranch = other.m_minerTxMerkleTreeBranch; - m_hasViewTag = other.m_hasViewTag; # else memcpy(m_ephPublicKey, other.m_ephPublicKey, sizeof(m_ephPublicKey)); memcpy(m_ephSecretKey, other.m_ephSecretKey, sizeof(m_ephSecretKey)); @@ -325,7 +284,6 @@ void xmrig::Job::move(Job &&other) m_minerTxExtraNonceOffset = other.m_minerTxExtraNonceOffset; m_minerTxExtraNonceSize = other.m_minerTxExtraNonceSize; m_minerTxMerkleTreeBranch = std::move(other.m_minerTxMerkleTreeBranch); - m_hasViewTag = other.m_hasViewTag; # else memcpy(m_ephPublicKey, other.m_ephPublicKey, sizeof(m_ephPublicKey)); memcpy(m_ephSecretKey, other.m_ephSecretKey, sizeof(m_ephSecretKey)); @@ -349,7 +307,7 @@ void xmrig::Job::setSpendSecretKey(const uint8_t *key) } -void xmrig::Job::setMinerTx(const uint8_t *begin, const uint8_t *end, size_t minerTxEphPubKeyOffset, size_t minerTxPubKeyOffset, size_t minerTxExtraNonceOffset, size_t minerTxExtraNonceSize, const Buffer &minerTxMerkleTreeBranch, bool hasViewTag) +void xmrig::Job::setMinerTx(const uint8_t *begin, const uint8_t *end, size_t minerTxEphPubKeyOffset, size_t minerTxPubKeyOffset, size_t minerTxExtraNonceOffset, size_t minerTxExtraNonceSize, const Buffer &minerTxMerkleTreeBranch) { m_minerTxPrefix.assign(begin, end); m_minerTxEphPubKeyOffset = minerTxEphPubKeyOffset; @@ -357,13 +315,6 @@ void xmrig::Job::setMinerTx(const uint8_t *begin, const uint8_t *end, size_t min m_minerTxExtraNonceOffset = minerTxExtraNonceOffset; m_minerTxExtraNonceSize = minerTxExtraNonceSize; m_minerTxMerkleTreeBranch = minerTxMerkleTreeBranch; - m_hasViewTag = hasViewTag; -} - - -void xmrig::Job::setViewTagInMinerTx(uint8_t view_tag) -{ - memcpy(m_minerTxPrefix.data() + m_minerTxEphPubKeyOffset + 32, &view_tag, 1); } @@ -373,7 +324,7 @@ void xmrig::Job::setExtraNonceInMinerTx(uint32_t extra_nonce) } -void xmrig::Job::generateSignatureData(String &signatureData, uint8_t& view_tag) const +void xmrig::Job::generateSignatureData(String &signatureData) const { uint8_t* eph_public_key = m_minerTxPrefix.data() + m_minerTxEphPubKeyOffset; uint8_t* txkey_pub = m_minerTxPrefix.data() + m_minerTxPubKeyOffset; @@ -384,14 +335,14 @@ void xmrig::Job::generateSignatureData(String &signatureData, uint8_t& view_tag) uint8_t derivation[32]; - generate_key_derivation(m_viewPublicKey, txkey_sec, derivation, &view_tag); + generate_key_derivation(m_viewPublicKey, txkey_sec, derivation); derive_public_key(derivation, 0, m_spendPublicKey, eph_public_key); uint8_t buf[32 * 3] = {}; memcpy(buf, txkey_pub, 32); memcpy(buf + 32, eph_public_key, 32); - generate_key_derivation(txkey_pub, m_viewSecretKey, derivation, nullptr); + generate_key_derivation(txkey_pub, m_viewSecretKey, derivation); derive_secret_key(derivation, 0, m_spendSecretKey, buf + 64); signatureData = Cvt::toHex(buf, sizeof(buf)); diff --git a/src/base/net/stratum/Job.h b/src/base/net/stratum/Job.h index 8e28c1bf..3bad33d5 100644 --- a/src/base/net/stratum/Job.h +++ b/src/base/net/stratum/Job.h @@ -7,8 +7,8 @@ * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett * Copyright 2019 Howard Chu - * Copyright 2018-2025 SChernykh - * Copyright 2016-2025 XMRig , + * Copyright 2018-2021 SChernykh + * Copyright 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,9 +27,11 @@ #ifndef XMRIG_JOB_H #define XMRIG_JOB_H + #include #include + #include "base/crypto/Algorithm.h" #include "base/tools/Buffer.h" #include "base/tools/String.h" @@ -57,17 +59,15 @@ public: ~Job() = default; bool isEqual(const Job &other) const; - bool isEqualBlob(const Job &other) const; bool setBlob(const char *blob); bool setSeedHash(const char *hash); bool setTarget(const char *target); - size_t nonceOffset() const; void setDiff(uint64_t diff); void setSigKey(const char *sig_key); inline bool isNicehash() const { return m_nicehash; } inline bool isValid() const { return (m_size > 0 && m_diff > 0) || !m_poolWallet.isEmpty(); } - inline bool setId(const char *id) { return (m_id = id); } + inline bool setId(const char *id) { return m_id = id; } inline const Algorithm &algorithm() const { return m_algorithm; } inline const Buffer &seed() const { return m_seed; } inline const String &clientId() const { return m_clientId; } @@ -76,6 +76,7 @@ public: inline const String &poolWallet() const { return m_poolWallet; } inline const uint32_t *nonce() const { return reinterpret_cast(m_blob + nonceOffset()); } inline const uint8_t *blob() const { return m_blob; } + inline int32_t nonceOffset() const { auto f = algorithm().family(); return (f == Algorithm::KAWPOW) ? 32 : ((f == Algorithm::GHOSTRIDER) ? 76 : 39); } inline size_t nonceSize() const { return (algorithm().family() == Algorithm::KAWPOW) ? 8 : 4; } inline size_t size() const { return m_size; } inline uint32_t *nonce() { return reinterpret_cast(m_blob + nonceOffset()); } @@ -109,7 +110,7 @@ public: inline bool operator!=(const Job &other) const { return !isEqual(other); } inline bool operator==(const Job &other) const { return isEqual(other); } - inline Job &operator=(const Job &other) { if (this != &other) { copy(other); } return *this; } + inline Job &operator=(const Job &other) { copy(other); return *this; } inline Job &operator=(Job &&other) noexcept { move(std::move(other)); return *this; } # ifdef XMRIG_FEATURE_BENCHMARK @@ -118,13 +119,10 @@ public: # endif # ifdef XMRIG_PROXY_PROJECT - inline bool hasViewTag() const { return m_hasViewTag; } - void setSpendSecretKey(const uint8_t* key); - void setMinerTx(const uint8_t* begin, const uint8_t* end, size_t minerTxEphPubKeyOffset, size_t minerTxPubKeyOffset, size_t minerTxExtraNonceOffset, size_t minerTxExtraNonceSize, const Buffer& minerTxMerkleTreeBranch, bool hasViewTag); - void setViewTagInMinerTx(uint8_t view_tag); + void setMinerTx(const uint8_t* begin, const uint8_t* end, size_t minerTxEphPubKeyOffset, size_t minerTxPubKeyOffset, size_t minerTxExtraNonceOffset, size_t minerTxExtraNonceSize, const Buffer& minerTxMerkleTreeBranch); void setExtraNonceInMinerTx(uint32_t extra_nonce); - void generateSignatureData(String& signatureData, uint8_t& view_tag) const; + void generateSignatureData(String& signatureData) const; void generateHashingBlob(String& blob) const; # else inline const uint8_t* ephSecretKey() const { return m_hasMinerSignature ? m_ephSecretKey : nullptr; } @@ -179,7 +177,6 @@ private: size_t m_minerTxExtraNonceOffset = 0; size_t m_minerTxExtraNonceSize = 0; Buffer m_minerTxMerkleTreeBranch; - bool m_hasViewTag = false; # else // Miner signatures uint8_t m_ephPublicKey[32]{}; diff --git a/src/base/net/stratum/Pool.cpp b/src/base/net/stratum/Pool.cpp index 8b4a6e03..7a58f4cb 100644 --- a/src/base/net/stratum/Pool.cpp +++ b/src/base/net/stratum/Pool.cpp @@ -65,7 +65,6 @@ const char *Pool::kAlgo = "algo"; const char *Pool::kCoin = "coin"; const char *Pool::kDaemon = "daemon"; const char *Pool::kDaemonPollInterval = "daemon-poll-interval"; -const char *Pool::kDaemonJobTimeout = "daemon-job-timeout"; const char *Pool::kDaemonZMQPort = "daemon-zmq-port"; const char *Pool::kEnabled = "enabled"; const char *Pool::kFingerprint = "tls-fingerprint"; @@ -77,7 +76,6 @@ const char *Pool::kSelfSelect = "self-select"; const char *Pool::kSOCKS5 = "socks5"; const char *Pool::kSubmitToOrigin = "submit-to-origin"; const char *Pool::kTls = "tls"; -const char *Pool::kSni = "sni"; const char *Pool::kUrl = "url"; const char *Pool::kUser = "user"; const char *Pool::kSpendSecretKey = "spend-secret-key"; @@ -90,7 +88,6 @@ const char *Pool::kNicehashHost = "nicehash.com"; xmrig::Pool::Pool(const char *url) : m_flags(1 << FLAG_ENABLED), m_pollInterval(kDefaultPollInterval), - m_jobTimeout(kDefaultJobTimeout), m_url(url) { } @@ -104,7 +101,6 @@ xmrig::Pool::Pool(const char *host, uint16_t port, const char *user, const char m_user(user), m_spendSecretKey(spendSecretKey), m_pollInterval(kDefaultPollInterval), - m_jobTimeout(kDefaultJobTimeout), m_url(host, port, tls) { m_flags.set(FLAG_NICEHASH, nicehash || strstr(host, kNicehashHost)); @@ -115,7 +111,6 @@ xmrig::Pool::Pool(const char *host, uint16_t port, const char *user, const char xmrig::Pool::Pool(const rapidjson::Value &object) : m_flags(1 << FLAG_ENABLED), m_pollInterval(kDefaultPollInterval), - m_jobTimeout(kDefaultJobTimeout), m_url(Json::getString(object, kUrl)) { if (!m_url.isValid()) { @@ -128,7 +123,6 @@ xmrig::Pool::Pool(const rapidjson::Value &object) : m_rigId = Json::getString(object, kRigId); m_fingerprint = Json::getString(object, kFingerprint); m_pollInterval = Json::getUint64(object, kDaemonPollInterval, kDefaultPollInterval); - m_jobTimeout = Json::getUint64(object, kDaemonJobTimeout, kDefaultJobTimeout); m_algorithm = Json::getString(object, kAlgo); m_coin = Json::getString(object, kCoin); m_daemon = Json::getString(object, kSelfSelect); @@ -138,7 +132,6 @@ xmrig::Pool::Pool(const rapidjson::Value &object) : m_flags.set(FLAG_ENABLED, Json::getBool(object, kEnabled, true)); m_flags.set(FLAG_NICEHASH, Json::getBool(object, kNicehash) || m_url.host().contains(kNicehashHost)); m_flags.set(FLAG_TLS, Json::getBool(object, kTls) || m_url.isTLS()); - m_flags.set(FLAG_SNI, Json::getBool(object, kSni)); setKeepAlive(Json::getValue(object, kKeepalive)); @@ -214,7 +207,6 @@ bool xmrig::Pool::isEqual(const Pool &other) const && m_url == other.m_url && m_user == other.m_user && m_pollInterval == other.m_pollInterval - && m_jobTimeout == other.m_jobTimeout && m_daemon == other.m_daemon && m_proxy == other.m_proxy ); @@ -301,14 +293,12 @@ rapidjson::Value xmrig::Pool::toJSON(rapidjson::Document &doc) const obj.AddMember(StringRef(kEnabled), m_flags.test(FLAG_ENABLED), allocator); obj.AddMember(StringRef(kTls), isTLS(), allocator); - obj.AddMember(StringRef(kSni), isSNI(), allocator); obj.AddMember(StringRef(kFingerprint), m_fingerprint.toJSON(), allocator); obj.AddMember(StringRef(kDaemon), m_mode == MODE_DAEMON, allocator); obj.AddMember(StringRef(kSOCKS5), m_proxy.toJSON(doc), allocator); if (m_mode == MODE_DAEMON) { obj.AddMember(StringRef(kDaemonPollInterval), m_pollInterval, allocator); - obj.AddMember(StringRef(kDaemonJobTimeout), m_jobTimeout, allocator); obj.AddMember(StringRef(kDaemonZMQPort), m_zmqPort, allocator); } else { diff --git a/src/base/net/stratum/Pool.h b/src/base/net/stratum/Pool.h index a78eb6bb..865d3db5 100644 --- a/src/base/net/stratum/Pool.h +++ b/src/base/net/stratum/Pool.h @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2019 Howard Chu - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -59,7 +59,6 @@ public: static const char *kCoin; static const char *kDaemon; static const char *kDaemonPollInterval; - static const char *kDaemonJobTimeout; static const char *kEnabled; static const char *kFingerprint; static const char *kKeepalive; @@ -70,17 +69,15 @@ public: static const char *kSOCKS5; static const char *kSubmitToOrigin; static const char *kTls; - static const char *kSni; static const char *kUrl; static const char *kUser; - static const char *kSpendSecretKey; - static const char *kDaemonZMQPort; + static const char* kSpendSecretKey; + static const char* kDaemonZMQPort; static const char *kNicehashHost; constexpr static int kKeepAliveTimeout = 60; constexpr static uint16_t kDefaultPort = 3333; constexpr static uint64_t kDefaultPollInterval = 1000; - constexpr static uint64_t kDefaultJobTimeout = 15000; Pool() = default; Pool(const char *host, uint16_t port, const char *user, const char *password, const char* spendSecretKey, int keepAlive, bool nicehash, bool tls, Mode mode); @@ -96,7 +93,6 @@ public: inline bool isNicehash() const { return m_flags.test(FLAG_NICEHASH); } inline bool isTLS() const { return m_flags.test(FLAG_TLS) || m_url.isTLS(); } - inline bool isSNI() const { return m_flags.test(FLAG_SNI); } inline bool isValid() const { return m_url.isValid(); } inline const Algorithm &algorithm() const { return m_algorithm; } inline const Coin &coin() const { return m_coin; } @@ -114,9 +110,7 @@ public: inline uint16_t port() const { return m_url.port(); } inline int zmq_port() const { return m_zmqPort; } inline uint64_t pollInterval() const { return m_pollInterval; } - inline uint64_t jobTimeout() const { return m_jobTimeout; } inline void setAlgo(const Algorithm &algorithm) { m_algorithm = algorithm; } - inline void setUrl(const char *url) { m_url = Url(url); } inline void setPassword(const String &password) { m_password = password; } inline void setProxy(const ProxyUrl &proxy) { m_proxy = proxy; } inline void setRigId(const String &rigId) { m_rigId = rigId; } @@ -140,7 +134,6 @@ private: FLAG_ENABLED, FLAG_NICEHASH, FLAG_TLS, - FLAG_SNI, FLAG_MAX }; @@ -162,7 +155,6 @@ private: String m_user; String m_spendSecretKey; uint64_t m_pollInterval = kDefaultPollInterval; - uint64_t m_jobTimeout = kDefaultJobTimeout; Url m_daemon; Url m_url; int m_zmqPort = -1; diff --git a/src/base/net/stratum/Tls.cpp b/src/base/net/stratum/Tls.cpp index 2a1ad1ee..46ba4511 100644 --- a/src/base/net/stratum/Tls.cpp +++ b/src/base/net/stratum/Tls.cpp @@ -60,7 +60,7 @@ xmrig::Client::Tls::~Tls() } -bool xmrig::Client::Tls::handshake(const char* servername) +bool xmrig::Client::Tls::handshake() { m_ssl = SSL_new(m_ctx); assert(m_ssl != nullptr); @@ -69,10 +69,6 @@ bool xmrig::Client::Tls::handshake(const char* servername) return false; } - if (servername) { - SSL_set_tlsext_host_name(m_ssl, servername); - } - SSL_set_connect_state(m_ssl); SSL_set_bio(m_ssl, m_read, m_write); SSL_do_handshake(m_ssl); diff --git a/src/base/net/stratum/Tls.h b/src/base/net/stratum/Tls.h index d399b439..cfdda934 100644 --- a/src/base/net/stratum/Tls.h +++ b/src/base/net/stratum/Tls.h @@ -42,7 +42,7 @@ public: Tls(Client *client); ~Tls(); - bool handshake(const char* servername); + bool handshake(); bool send(const char *data, size_t size); const char *fingerprint() const; const char *version() const; diff --git a/src/base/net/stratum/benchmark/BenchClient.cpp b/src/base/net/stratum/benchmark/BenchClient.cpp index a9459e1f..80db4747 100644 --- a/src/base/net/stratum/benchmark/BenchClient.cpp +++ b/src/base/net/stratum/benchmark/BenchClient.cpp @@ -50,7 +50,6 @@ xmrig::BenchClient::BenchClient(const std::shared_ptr &benchmark, I # ifdef XMRIG_ALGO_GHOSTRIDER if (m_benchmark->algorithm() == Algorithm::GHOSTRIDER_RTM) { - const uint32_t q = (benchmark->rotation() / 20) & 1; const uint32_t r = benchmark->rotation() % 20; static constexpr uint32_t indices[20][3] = { @@ -76,9 +75,9 @@ xmrig::BenchClient::BenchClient(const std::shared_ptr &benchmark, I { 3, 4, 5 }, }; - blob[ 8] = '0' + indices[r][q ? 2 : 1]; + blob[ 8] = '0' + indices[r][1]; blob[ 9] = '0' + indices[r][0]; - blob[11] = '0' + indices[r][q ? 1 : 2]; + blob[11] = '0' + indices[r][2]; } # endif diff --git a/src/base/net/tls/TlsContext.cpp b/src/base/net/tls/TlsContext.cpp index 54b904ea..e3621797 100644 --- a/src/base/net/tls/TlsContext.cpp +++ b/src/base/net/tls/TlsContext.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2018 Lee Clagett - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,7 +45,6 @@ namespace xmrig { // https://wiki.openssl.org/index.php/Diffie-Hellman_parameters -#if OPENSSL_VERSION_NUMBER < 0x30000000L || defined(LIBRESSL_VERSION_NUMBER) static DH *get_dh2048() { static unsigned char dhp_2048[] = { @@ -97,8 +96,6 @@ static DH *get_dh2048() return dh; } -#endif - } // namespace xmrig @@ -194,7 +191,6 @@ bool xmrig::TlsContext::setCipherSuites(const char *ciphersuites) bool xmrig::TlsContext::setDH(const char *dhparam) { -# if OPENSSL_VERSION_NUMBER < 0x30000000L || defined(LIBRESSL_VERSION_NUMBER) DH *dh = nullptr; if (dhparam != nullptr) { @@ -229,34 +225,6 @@ bool xmrig::TlsContext::setDH(const char *dhparam) return false; } -# else - if (dhparam != nullptr) { - EVP_PKEY *dh = nullptr; - BIO *bio = BIO_new_file(Env::expand(dhparam), "r"); - - if (bio) { - dh = PEM_read_bio_Parameters(bio, nullptr); - BIO_free(bio); - } - - if (!dh) { - LOG_ERR("PEM_read_bio_Parameters(\"%s\") failed.", dhparam); - - return false; - } - - if (SSL_CTX_set0_tmp_dh_pkey(m_ctx, dh) != 1) { - EVP_PKEY_free(dh); - - LOG_ERR("SSL_CTX_set0_tmp_dh_pkey(\"%s\") failed.", dhparam); - - return false; - } - } - else { - SSL_CTX_set_dh_auto(m_ctx, 1); - } -# endif return true; } diff --git a/src/base/net/tls/TlsContext.h b/src/base/net/tls/TlsContext.h index 0bb7eec3..9a9b3cb1 100644 --- a/src/base/net/tls/TlsContext.h +++ b/src/base/net/tls/TlsContext.h @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2018 Lee Clagett - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,9 @@ #include "base/tools/Object.h" +#include + + using SSL_CTX = struct ssl_ctx_st; @@ -57,7 +60,6 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ - -#endif // XMRIG_TLSCONTEXT_H +#endif /* XMRIG_TLSCONTEXT_H */ diff --git a/src/base/net/tls/TlsGen.cpp b/src/base/net/tls/TlsGen.cpp index ad2e648b..42892053 100644 --- a/src/base/net/tls/TlsGen.cpp +++ b/src/base/net/tls/TlsGen.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,7 +33,6 @@ static const char *kLocalhost = "localhost"; static EVP_PKEY *generate_pkey() { -# if OPENSSL_VERSION_NUMBER < 0x30000000L || defined(LIBRESSL_VERSION_NUMBER) auto pkey = EVP_PKEY_new(); if (!pkey) { return nullptr; @@ -54,9 +53,6 @@ static EVP_PKEY *generate_pkey() BN_free(exponent); return pkey; -# else - return EVP_RSA_gen(2048); -# endif } diff --git a/src/base/net/tls/TlsGen.h b/src/base/net/tls/TlsGen.h index 193dd2d5..c471c8ca 100644 --- a/src/base/net/tls/TlsGen.h +++ b/src/base/net/tls/TlsGen.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -55,7 +55,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_TLSGEN_H +#endif /* XMRIG_TLSGEN_H */ diff --git a/src/base/net/tools/Storage.h b/src/base/net/tools/Storage.h index 390101c3..e23e8666 100644 --- a/src/base/net/tools/Storage.h +++ b/src/base/net/tools/Storage.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright 2018-2023 SChernykh - * Copyright 2016-2023 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,7 +42,7 @@ public: } - inline TYPE *ptr(uintptr_t id) { return reinterpret_cast(id); } + inline void *ptr(uintptr_t id) { return reinterpret_cast(id); } inline TYPE *get(const void *id) const { return get(reinterpret_cast(id)); } @@ -56,9 +56,6 @@ public: return m_data.at(id); } - inline bool isEmpty() const { return m_data.empty(); } - inline size_t size() const { return m_data.size(); } - inline void remove(const void *id) { delete release(reinterpret_cast(id)); } inline void remove(uintptr_t id) { delete release(id); } diff --git a/src/base/tools/Alignment.h b/src/base/tools/Alignment.h deleted file mode 100644 index 7afe8726..00000000 --- a/src/base/tools/Alignment.h +++ /dev/null @@ -1,53 +0,0 @@ -/* XMRig - * Copyright (c) 2018-2022 SChernykh - * Copyright (c) 2016-2022 XMRig , - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#ifndef XMRIG_ALIGNMENT_H -#define XMRIG_ALIGNMENT_H - - -#include -#include - - -namespace xmrig { - - -template -inline T readUnaligned(const T* ptr) -{ - static_assert(std::is_trivially_copyable::value, "T must be trivially copyable"); - - T result; - memcpy(&result, ptr, sizeof(T)); - return result; -} - - -template -inline void writeUnaligned(T* ptr, T data) -{ - static_assert(std::is_trivially_copyable::value, "T must be trivially copyable"); - - memcpy(ptr, &data, sizeof(T)); -} - - -} /* namespace xmrig */ - - -#endif /* XMRIG_ALIGNMENT_H */ diff --git a/src/base/tools/Chrono.cpp b/src/base/tools/Chrono.cpp deleted file mode 100644 index 5697472c..00000000 --- a/src/base/tools/Chrono.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* XMRig - * Copyright (c) 2018-2021 SChernykh - * Copyright (c) 2016-2021 XMRig , - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "Chrono.h" - - -#ifdef XMRIG_OS_WIN -# include -#endif - - -namespace xmrig { - - -double Chrono::highResolutionMSecs() -{ -# ifdef XMRIG_OS_WIN - LARGE_INTEGER f, t; - QueryPerformanceFrequency(&f); - QueryPerformanceCounter(&t); - return static_cast(t.QuadPart) * 1e3 / f.QuadPart; -# else - using namespace std::chrono; - return static_cast(duration_cast(high_resolution_clock::now().time_since_epoch()).count()) / 1e6; -# endif -} - - -} /* namespace xmrig */ diff --git a/src/base/tools/Chrono.h b/src/base/tools/Chrono.h index 65c3d5ae..78da18c1 100644 --- a/src/base/tools/Chrono.h +++ b/src/base/tools/Chrono.h @@ -29,7 +29,12 @@ namespace xmrig { class Chrono { public: - static double highResolutionMSecs(); + static inline uint64_t highResolutionMSecs() + { + using namespace std::chrono; + + return static_cast(time_point_cast(high_resolution_clock::now()).time_since_epoch().count()); + } static inline uint64_t steadyMSecs() diff --git a/src/base/tools/Object.h b/src/base/tools/Object.h index f67464ab..00bd9315 100644 --- a/src/base/tools/Object.h +++ b/src/base/tools/Object.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,9 +20,7 @@ #define XMRIG_OBJECT_H -#include -#include -#include +#include namespace xmrig { @@ -43,7 +41,6 @@ namespace xmrig { X &operator=(X &&other) = delete; -} // namespace xmrig +} /* namespace xmrig */ - -#endif // XMRIG_OBJECT_H +#endif /* XMRIG_OBJECT_H */ diff --git a/src/base/tools/bswap_64.h b/src/base/tools/bswap_64.h index 462a3355..96335c64 100644 --- a/src/base/tools/bswap_64.h +++ b/src/base/tools/bswap_64.h @@ -23,12 +23,10 @@ #include #define bswap_64(x) _byteswap_uint64(x) -#define bswap_32(x) _byteswap_ulong(x) #elif defined __GNUC__ #define bswap_64(x) __builtin_bswap64(x) -#define bswap_32(x) __builtin_bswap32(x) #else diff --git a/src/base/tools/cryptonote/BlockTemplate.cpp b/src/base/tools/cryptonote/BlockTemplate.cpp index 310fedf4..5a3b4fb7 100644 --- a/src/base/tools/cryptonote/BlockTemplate.cpp +++ b/src/base/tools/cryptonote/BlockTemplate.cpp @@ -1,8 +1,8 @@ /* XMRig * Copyright (c) 2012-2013 The Cryptonote developers * Copyright (c) 2014-2021 The Monero Project - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -197,21 +197,12 @@ bool xmrig::BlockTemplate::parse(bool hashes) ar(m_vote); } - if (m_coin == Coin::ZEPHYR) { - uint8_t pricing_record[120]; - ar(pricing_record); - } - // Miner transaction begin // Prefix begin setOffset(MINER_TX_PREFIX_OFFSET, ar.index()); ar(m_txVersion); - - if (m_coin != Coin::TOWNFORGE) { - ar(m_unlockTime); - } - + ar(m_unlockTime); ar(m_numInputs); // must be 1 input @@ -229,65 +220,22 @@ bool xmrig::BlockTemplate::parse(bool hashes) ar(m_height); ar(m_numOutputs); - if (m_coin == Coin::ZEPHYR) { - if (m_numOutputs < 2) { - return false; - } - } - else if (m_numOutputs != 1) { + // must be 1 output + if (m_numOutputs != 1) { return false; } ar(m_amount); ar(m_outputType); - // output type must be txout_to_key (2) or txout_to_tagged_key (3) - if ((m_outputType != 2) && (m_outputType != 3)) { + // output type must be txout_to_key (2) + if (m_outputType != 2) { return false; } setOffset(EPH_PUBLIC_KEY_OFFSET, ar.index()); ar(m_ephPublicKey, kKeySize); - - if (m_coin == Coin::ZEPHYR) { - if (m_outputType != 2) { - return false; - } - - uint64_t asset_type_len; - ar(asset_type_len); - ar.skip(asset_type_len); - ar(m_viewTag); - - for (uint64_t k = 1; k < m_numOutputs; ++k) { - uint64_t amount2; - ar(amount2); - - uint8_t output_type2; - ar(output_type2); - if (output_type2 != 2) { - return false; - } - - Span key2; - ar(key2, kKeySize); - - ar(asset_type_len); - ar.skip(asset_type_len); - - uint8_t view_tag2; - ar(view_tag2); - } - } - else if (m_outputType == 3) { - ar(m_viewTag); - } - - if (m_coin == Coin::TOWNFORGE) { - ar(m_unlockTime); - } - ar(m_extraSize); setOffset(TX_EXTRA_OFFSET, ar.index()); @@ -295,8 +243,6 @@ bool xmrig::BlockTemplate::parse(bool hashes) BlobReader ar_extra(blob(TX_EXTRA_OFFSET), m_extraSize); ar.skip(m_extraSize); - bool pubkey_offset_first = true; - while (ar_extra.index() < m_extraSize) { uint64_t extra_tag = 0; uint64_t size = 0; @@ -305,10 +251,7 @@ bool xmrig::BlockTemplate::parse(bool hashes) switch (extra_tag) { case 0x01: // TX_EXTRA_TAG_PUBKEY - if (pubkey_offset_first) { - pubkey_offset_first = false; - setOffset(TX_PUBKEY_OFFSET, offset(TX_EXTRA_OFFSET) + ar_extra.index()); - } + setOffset(TX_PUBKEY_OFFSET, offset(TX_EXTRA_OFFSET) + ar_extra.index()); ar_extra.skip(kKeySize); break; @@ -321,7 +264,7 @@ bool xmrig::BlockTemplate::parse(bool hashes) case 0x03: // TX_EXTRA_MERGE_MINING_TAG ar_extra(size); setOffset(TX_EXTRA_MERGE_MINING_TAG_OFFSET, offset(TX_EXTRA_OFFSET) + ar_extra.index()); - ar_extra(m_txMergeMiningTag, size); + ar_extra(m_txMergeMiningTag, size + kKeySize); break; default: @@ -329,13 +272,6 @@ bool xmrig::BlockTemplate::parse(bool hashes) } } - if (m_coin == Coin::ZEPHYR) { - uint64_t pricing_record_height, amount_burnt, amount_minted; - ar(pricing_record_height); - ar(amount_burnt); - ar(amount_minted); - } - setOffset(MINER_TX_PREFIX_END_OFFSET, ar.index()); // Prefix end @@ -343,11 +279,6 @@ bool xmrig::BlockTemplate::parse(bool hashes) uint8_t vin_rct_type = 0; ar(vin_rct_type); - // no way I'm parsing a full game update here - if (m_coin == Coin::TOWNFORGE && m_height % 720 == 0) { - return true; - } - // must be RCTTypeNull (0) if (vin_rct_type != 0) { return false; diff --git a/src/base/tools/cryptonote/BlockTemplate.h b/src/base/tools/cryptonote/BlockTemplate.h index c731aad2..d6f2de3f 100644 --- a/src/base/tools/cryptonote/BlockTemplate.h +++ b/src/base/tools/cryptonote/BlockTemplate.h @@ -140,7 +140,6 @@ private: uint64_t m_amount = 0; uint8_t m_outputType = 0; Span m_ephPublicKey; - uint8_t m_viewTag = 0; uint64_t m_extraSize = 0; Span m_txExtraNonce; Span m_txMergeMiningTag = 0; diff --git a/src/base/tools/cryptonote/Signatures.cpp b/src/base/tools/cryptonote/Signatures.cpp index 13f0c948..93571258 100644 --- a/src/base/tools/cryptonote/Signatures.cpp +++ b/src/base/tools/cryptonote/Signatures.cpp @@ -147,7 +147,7 @@ bool check_signature(const uint8_t* prefix_hash, const uint8_t* pub, const uint8 } -bool generate_key_derivation(const uint8_t* key1, const uint8_t* key2, uint8_t* derivation, uint8_t* view_tag) +bool generate_key_derivation(const uint8_t* key1, const uint8_t* key2, uint8_t* derivation) { ge_p3 point; ge_p2 point2; @@ -162,22 +162,6 @@ bool generate_key_derivation(const uint8_t* key1, const uint8_t* key2, uint8_t* ge_p1p1_to_p2(&point2, &point3); ge_tobytes(derivation, &point2); - if (view_tag) { - constexpr uint8_t salt[] = "view_tag"; - constexpr size_t SALT_SIZE = sizeof(salt) - 1; - - uint8_t buf[SALT_SIZE + 32 + 1]; - memcpy(buf, salt, SALT_SIZE); - memcpy(buf + SALT_SIZE, derivation, 32); - - // Assuming output_index == 0 - buf[SALT_SIZE + 32] = 0; - - uint8_t view_tag_full[32]; - xmrig::keccak(buf, sizeof(buf), view_tag_full, sizeof(view_tag_full)); - *view_tag = view_tag_full[0]; - } - return true; } diff --git a/src/base/tools/cryptonote/Signatures.h b/src/base/tools/cryptonote/Signatures.h index 24ea9ac6..04813313 100644 --- a/src/base/tools/cryptonote/Signatures.h +++ b/src/base/tools/cryptonote/Signatures.h @@ -31,7 +31,7 @@ namespace xmrig { void generate_signature(const uint8_t* prefix_hash, const uint8_t* pub, const uint8_t* sec, uint8_t* sig); bool check_signature(const uint8_t* prefix_hash, const uint8_t* pub, const uint8_t* sig); -bool generate_key_derivation(const uint8_t* key1, const uint8_t* key2, uint8_t* derivation, uint8_t* view_tag); +bool generate_key_derivation(const uint8_t* key1, const uint8_t* key2, uint8_t* derivation); void derive_secret_key(const uint8_t* derivation, size_t output_index, const uint8_t* base, uint8_t* derived_key); bool derive_public_key(const uint8_t* derivation, size_t output_index, const uint8_t* base, uint8_t* derived_key); diff --git a/src/base/tools/cryptonote/WalletAddress.cpp b/src/base/tools/cryptonote/WalletAddress.cpp index 3719031a..f05dec9f 100644 --- a/src/base/tools/cryptonote/WalletAddress.cpp +++ b/src/base/tools/cryptonote/WalletAddress.cpp @@ -1,8 +1,8 @@ /* XMRig * Copyright (c) 2012-2013 The Cryptonote developers * Copyright (c) 2014-2021 The Monero Project - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,25 +33,6 @@ bool xmrig::WalletAddress::decode(const char *address, size_t size) { - uint64_t tf_tag = 0; - if (size >= 4 && !strncmp(address, "TF", 2)) { - tf_tag = 0x424200; - switch (address[2]) - { - case '1': tf_tag |= 0; break; - case '2': tf_tag |= 1; break; - default: tf_tag = 0; return false; - } - switch (address[3]) { - case 'M': tf_tag |= 0; break; - case 'T': tf_tag |= 0x10; break; - case 'S': tf_tag |= 0x20; break; - default: tf_tag = 0; return false; - } - address += 4; - size -= 4; - } - static constexpr std::array block_sizes{ 0, 2, 3, 5, 6, 7, 9, 10, 11 }; static constexpr char alphabet[] = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; constexpr size_t alphabet_size = sizeof(alphabet) - 1; @@ -133,10 +114,6 @@ bool xmrig::WalletAddress::decode(const char *address, size_t size) if (memcmp(m_checksum, md, sizeof(m_checksum)) == 0) { m_data = { address, size }; - if (tf_tag) { - m_tag = tf_tag; - } - return true; } } @@ -240,6 +217,12 @@ const xmrig::WalletAddress::TagInfo &xmrig::WalletAddress::tagInfo(uint64_t tag) { 0x1742ca, { Coin::ARQMA, STAGENET, INTEGRATED, 39994, 39995 } }, { 0x1d84ca, { Coin::ARQMA, STAGENET, SUBADDRESS, 39994, 39995 } }, + { 0xc8ed8, { Coin::DERO, MAINNET, PUBLIC, 20206, 0 } }, + { 0xa0ed8, { Coin::DERO, MAINNET, INTEGRATED, 20206, 0 } }, + + { 0x6cf58, { Coin::DERO, TESTNET, PUBLIC, 30306, 0 } }, + { 0x44f58, { Coin::DERO, TESTNET, INTEGRATED, 30306, 0 } }, + { 0x1032, { Coin::WOWNERO, MAINNET, PUBLIC, 34568, 34569 } }, { 0x1a9a, { Coin::WOWNERO, MAINNET, INTEGRATED, 34568, 34569 } }, { 0x2fb0, { Coin::WOWNERO, MAINNET, SUBADDRESS, 34568, 34569 } }, @@ -251,16 +234,6 @@ const xmrig::WalletAddress::TagInfo &xmrig::WalletAddress::tagInfo(uint64_t tag) { 0x54, { Coin::GRAFT, TESTNET, PUBLIC, 28881, 28882 } }, { 0x55, { Coin::GRAFT, TESTNET, INTEGRATED, 28881, 28882 } }, { 0x70, { Coin::GRAFT, TESTNET, SUBADDRESS, 28881, 28882 } }, - - { 0x424200, { Coin::TOWNFORGE, MAINNET, PUBLIC, 18881, 18882 } }, - { 0x424201, { Coin::TOWNFORGE, MAINNET, SUBADDRESS, 18881, 18882 } }, - - { 0x424210, { Coin::TOWNFORGE, TESTNET, PUBLIC, 28881, 28882 } }, - { 0x424211, { Coin::TOWNFORGE, TESTNET, SUBADDRESS, 28881, 28882 } }, - - { 0x424220, { Coin::TOWNFORGE, STAGENET, PUBLIC, 38881, 38882 } }, - { 0x424221, { Coin::TOWNFORGE, STAGENET, SUBADDRESS, 38881, 38882 } }, - }; const auto it = tags.find(tag); diff --git a/src/base/tools/cryptonote/umul128.h b/src/base/tools/cryptonote/umul128.h index b9916648..a6e77da6 100644 --- a/src/base/tools/cryptonote/umul128.h +++ b/src/base/tools/cryptonote/umul128.h @@ -23,22 +23,15 @@ #pragma once + #include -#if defined(XMRIG_64_BIT) -# if defined(_MSC_VER) +#ifdef XMRIG_64_BIT +# ifdef _MSC_VER # include -# if defined(XMRIG_ARM) - #pragma intrinsic(__umulh) - static inline uint64_t __umul128(uint64_t a, uint64_t b, uint64_t *high) { - *high = __umulh(a, b); - return a * b; - } -# else -# pragma intrinsic(_umul128) -# define __umul128 _umul128 -# endif -# elif defined(__GNUC__) +# pragma intrinsic(_umul128) +# define __umul128 _umul128 +# elif defined __GNUC__ static inline uint64_t _umul128(uint64_t a, uint64_t b, uint64_t* hi) { unsigned __int128 r = (unsigned __int128) a * (unsigned __int128) b; diff --git a/src/config.json b/src/config.json index 48adef17..e25c5767 100644 --- a/src/config.json +++ b/src/config.json @@ -36,6 +36,8 @@ "max-threads-hint": 100, "asm": true, "argon2-impl": null, + "astrobwt-max-size": 550, + "astrobwt-avx2": false, "cn/0": false, "cn-lite/0": false }, @@ -92,10 +94,6 @@ "ciphersuites": null, "dhparam": null }, - "dns": { - "ip_version": 0, - "ttl": 30 - }, "user-agent": null, "verbose": 0, "watch": true, diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index 1f99b943..78ed1f6a 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -62,6 +62,11 @@ #endif +#ifdef XMRIG_ALGO_ASTROBWT +# include "crypto/astrobwt/AstroBWT.h" +#endif + + #ifdef XMRIG_ALGO_GHOSTRIDER # include "crypto/ghostrider/ghostrider.h" #endif @@ -173,7 +178,7 @@ public: Value total(kArrayType); Value threads(kArrayType); - std::pair t[3] = { { true, 0.0 }, { true, 0.0 }, { true, 0.0 } }; + double t[3] = { 0.0 }; for (IBackend *backend : backends) { const Hashrate *hr = backend->hashrate(); @@ -181,13 +186,9 @@ public: continue; } - const auto h0 = hr->calc(Hashrate::ShortInterval); - const auto h1 = hr->calc(Hashrate::MediumInterval); - const auto h2 = hr->calc(Hashrate::LargeInterval); - - if (h0.first) { t[0].second += h0.second; } else { t[0].first = false; } - if (h1.first) { t[1].second += h1.second; } else { t[1].first = false; } - if (h2.first) { t[2].second += h2.second; } else { t[2].first = false; } + t[0] += hr->calc(Hashrate::ShortInterval); + t[1] += hr->calc(Hashrate::MediumInterval); + t[2] += hr->calc(Hashrate::LargeInterval); if (version > 1) { continue; @@ -208,7 +209,7 @@ public: total.PushBack(Hashrate::normalize(t[2]), allocator); hashrate.AddMember("total", total, allocator); - hashrate.AddMember("highest", Hashrate::normalize({ maxHashrate[algorithm] > 0.0, maxHashrate[algorithm] }), allocator); + hashrate.AddMember("highest", Hashrate::normalize(maxHashrate[algorithm]), allocator); if (version == 1) { hashrate.AddMember("threads", threads, allocator); @@ -287,7 +288,7 @@ public: void printHashrate(bool details) { char num[16 * 5] = { 0 }; - std::pair speed[3] = { { true, 0.0 }, { true, 0.0 }, { true, 0.0 } }; + double speed[3] = { 0.0 }; uint32_t count = 0; double avg_hashrate = 0.0; @@ -297,13 +298,9 @@ public: if (hashrate) { ++count; - const auto h0 = hashrate->calc(Hashrate::ShortInterval); - const auto h1 = hashrate->calc(Hashrate::MediumInterval); - const auto h2 = hashrate->calc(Hashrate::LargeInterval); - - if (h0.first) { speed[0].second += h0.second; } else { speed[0].first = false; } - if (h1.first) { speed[1].second += h1.second; } else { speed[1].first = false; } - if (h2.first) { speed[2].second += h2.second; } else { speed[2].first = false; } + speed[0] += hashrate->calc(Hashrate::ShortInterval); + speed[1] += hashrate->calc(Hashrate::MediumInterval); + speed[2] += hashrate->calc(Hashrate::LargeInterval); avg_hashrate += hashrate->average(); } @@ -320,13 +317,8 @@ public: double scale = 1.0; const char* h = "H/s"; - if ((speed[0].second >= 1e6) || (speed[1].second >= 1e6) || (speed[2].second >= 1e6) || (maxHashrate[algorithm] >= 1e6)) { + if ((speed[0] >= 1e6) || (speed[1] >= 1e6) || (speed[2] >= 1e6) || (maxHashrate[algorithm] >= 1e6)) { scale = 1e-6; - - speed[0].second *= scale; - speed[1].second *= scale; - speed[2].second *= scale; - h = "MH/s"; } @@ -335,16 +327,16 @@ public: # ifdef XMRIG_ALGO_GHOSTRIDER if (algorithm.family() == Algorithm::GHOSTRIDER) { - snprintf(avg_hashrate_buf, sizeof(avg_hashrate_buf), " avg " CYAN_BOLD("%s %s"), Hashrate::format({ true, avg_hashrate * scale }, num + 16 * 4, 16), h); + snprintf(avg_hashrate_buf, sizeof(avg_hashrate_buf), " avg " CYAN_BOLD("%s %s"), Hashrate::format(avg_hashrate * scale, num + 16 * 4, 16), h); } # endif LOG_INFO("%s " WHITE_BOLD("speed") " 10s/60s/15m " CYAN_BOLD("%s") CYAN(" %s %s ") CYAN_BOLD("%s") " max " CYAN_BOLD("%s %s") "%s", Tags::miner(), - Hashrate::format(speed[0], num, 16), - Hashrate::format(speed[1], num + 16, 16), - Hashrate::format(speed[2], num + 16 * 2, 16), h, - Hashrate::format({ maxHashrate[algorithm] > 0.0, maxHashrate[algorithm] * scale }, num + 16 * 3, 16), h, + Hashrate::format(speed[0] * scale, num, 16), + Hashrate::format(speed[1] * scale, num + 16, 16), + Hashrate::format(speed[2] * scale, num + 16 * 2, 16), h, + Hashrate::format(maxHashrate[algorithm] * scale, num + 16 * 3, 16), h, avg_hashrate_buf ); @@ -407,6 +399,10 @@ xmrig::Miner::Miner(Controller *controller) Rx::init(this); # endif +# ifdef XMRIG_ALGO_ASTROBWT + astrobwt::init(); +# endif + controller->addListener(this); # ifdef XMRIG_FEATURE_API @@ -519,7 +515,7 @@ void xmrig::Miner::setEnabled(bool enabled) return; } - if (d_ptr->controller->config()->isPauseOnBattery() && d_ptr->battery_power && enabled) { + if (d_ptr->battery_power && enabled) { LOG_INFO("%s " YELLOW_BOLD("can't resume while on battery power"), Tags::miner()); return; @@ -557,13 +553,7 @@ void xmrig::Miner::setJob(const Job &job, bool donate) # ifdef XMRIG_ALGO_RANDOMX if (job.algorithm().family() == Algorithm::RANDOM_X && !Rx::isReady(job)) { - if (d_ptr->algorithm != job.algorithm()) { - stop(); - } - else { - Nonce::pause(true); - Nonce::touch(); - } + stop(); } # endif @@ -574,12 +564,6 @@ void xmrig::Miner::setJob(const Job &job, bool donate) const uint8_t index = donate ? 1 : 0; d_ptr->reset = !(d_ptr->job.index() == 1 && index == 0 && d_ptr->userJobId == job.id()); - - // Don't reset nonce if pool sends the same hashing blob again, but with different difficulty (for example) - if (d_ptr->job.isEqualBlob(job)) { - d_ptr->reset = false; - } - d_ptr->job = job; d_ptr->job.setIndex(index); @@ -589,11 +573,6 @@ void xmrig::Miner::setJob(const Job &job, bool donate) # ifdef XMRIG_ALGO_RANDOMX const bool ready = d_ptr->initRX(); - - // Always reset nonce on RandomX dataset change - if (!ready) { - d_ptr->reset = true; - } # else constexpr const bool ready = true; # endif @@ -659,10 +638,7 @@ void xmrig::Miner::onTimer(const Timer *) } if (backend->hashrate()) { - const auto h = backend->hashrate()->calc(Hashrate::ShortInterval); - if (h.first) { - maxHashrate += h.second; - } + maxHashrate += backend->hashrate()->calc(Hashrate::ShortInterval); } } diff --git a/src/core/config/ConfigTransform.cpp b/src/core/config/ConfigTransform.cpp index 9d24f19c..4c848147 100644 --- a/src/core/config/ConfigTransform.cpp +++ b/src/core/config/ConfigTransform.cpp @@ -163,6 +163,14 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const return set(doc, CpuConfig::kField, CpuConfig::kAsm, arg); # endif +# ifdef XMRIG_ALGO_ASTROBWT + case IConfig::AstroBWTMaxSizeKey: /* --astrobwt-max-size */ + return set(doc, CpuConfig::kField, CpuConfig::kAstroBWTMaxSize, static_cast(strtol(arg, nullptr, 10))); + + case IConfig::AstroBWTAVX2Key: /* --astrobwt-avx2 */ + return set(doc, CpuConfig::kField, CpuConfig::kAstroBWTAVX2, true); +# endif + # ifdef XMRIG_ALGO_RANDOMX case IConfig::RandomXInitKey: /* --randomx-init */ return set(doc, RxConfig::kField, RxConfig::kInit, static_cast(strtol(arg, nullptr, 10))); @@ -319,18 +327,16 @@ void xmrig::ConfigTransform::transformUint64(rapidjson::Document &doc, int key, #ifdef XMRIG_FEATURE_BENCHMARK void xmrig::ConfigTransform::transformBenchmark(rapidjson::Document &doc, int key, const char *arg) { + set(doc, CpuConfig::kField, CpuConfig::kHugePagesJit, true); + set(doc, CpuConfig::kField, CpuConfig::kPriority, 2); + set(doc, CpuConfig::kField, CpuConfig::kYield, false); + switch (key) { case IConfig::AlgorithmKey: /* --algo */ return set(doc, BenchConfig::kBenchmark, BenchConfig::kAlgo, arg); case IConfig::BenchKey: /* --bench */ - { - // CPU settings for the benchmark - set(doc, CpuConfig::kField, CpuConfig::kHugePagesJit, true); - set(doc, CpuConfig::kField, CpuConfig::kPriority, 2); - set(doc, CpuConfig::kField, CpuConfig::kYield, false); return set(doc, BenchConfig::kBenchmark, BenchConfig::kSize, arg); - } case IConfig::StressKey: /* --stress */ return add(doc, Pools::kPools, Pool::kUser, BenchConfig::kBenchmark); diff --git a/src/core/config/Config_default.h b/src/core/config/Config_default.h index ec098030..6c46fa95 100644 --- a/src/core/config/Config_default.h +++ b/src/core/config/Config_default.h @@ -66,6 +66,8 @@ R"===( "max-threads-hint": 100, "asm": true, "argon2-impl": null, + "astrobwt-max-size": 550, + "astrobwt-avx2": false, "cn/0": false, "cn-lite/0": false }, diff --git a/src/core/config/Config_platform.h b/src/core/config/Config_platform.h index c689ed8a..b3e768dc 100644 --- a/src/core/config/Config_platform.h +++ b/src/core/config/Config_platform.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,9 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_CONFIG_PLATFORM_H +#define XMRIG_CONFIG_PLATFORM_H + #ifdef _MSC_VER # include "getopt/getopt.h" @@ -26,12 +28,13 @@ #include "base/kernel/interfaces/IConfig.h" +#include "version.h" namespace xmrig { -static const char short_options[] = "a:c:kBp:Px:r:R:s:t:T:o:u:O:v:l:Sx:46"; +static const char short_options[] = "a:c:kBp:Px:r:R:s:t:T:o:u:O:v:l:Sx:"; static const option options[] = { @@ -47,7 +50,6 @@ static const option options[] = { { "http-no-restricted", 0, nullptr, IConfig::HttpRestrictedKey }, { "daemon", 0, nullptr, IConfig::DaemonKey }, { "daemon-poll-interval", 1, nullptr, IConfig::DaemonPollKey }, - { "daemon-job-timeout", 1, nullptr, IConfig::DaemonJobTimeoutKey }, { "self-select", 1, nullptr, IConfig::SelfSelectKey }, { "submit-to-origin", 0, nullptr, IConfig::SubmitToOriginKey }, { "daemon-zmq-port", 1, nullptr, IConfig::DaemonZMQPortKey }, @@ -96,8 +98,7 @@ static const option options[] = { { "no-title", 0, nullptr, IConfig::NoTitleKey }, { "pause-on-battery", 0, nullptr, IConfig::PauseOnBatteryKey }, { "pause-on-active", 1, nullptr, IConfig::PauseOnActiveKey }, - { "ipv4", 0, nullptr, IConfig::DnsIPv4Key }, - { "ipv6", 0, nullptr, IConfig::DnsIPv6Key }, + { "dns-ipv6", 0, nullptr, IConfig::DnsIPv6Key }, { "dns-ttl", 1, nullptr, IConfig::DnsTtlKey }, { "spend-secret-key", 1, nullptr, IConfig::SpendSecretKey }, # ifdef XMRIG_FEATURE_BENCHMARK @@ -139,6 +140,10 @@ static const option options[] = { { "randomx-cache-qos", 0, nullptr, IConfig::RandomXCacheQoSKey }, { "cache-qos", 0, nullptr, IConfig::RandomXCacheQoSKey }, # endif + #ifdef XMRIG_ALGO_ASTROBWT + { "astrobwt-max-size", 1, nullptr, IConfig::AstroBWTMaxSizeKey }, + { "astrobwt-avx2", 0, nullptr, IConfig::AstroBWTAVX2Key }, + #endif # ifdef XMRIG_FEATURE_OPENCL { "opencl", 0, nullptr, IConfig::OclKey }, { "opencl-devices", 1, nullptr, IConfig::OclDevicesKey }, @@ -167,3 +172,6 @@ static const option options[] = { } // namespace xmrig + + +#endif /* XMRIG_CONFIG_PLATFORM_H */ diff --git a/src/core/config/usage.h b/src/core/config/usage.h index cbec1b41..6cd599c9 100644 --- a/src/core/config/usage.h +++ b/src/core/config/usage.h @@ -4,8 +4,8 @@ * Copyright (c) 2014 Lucas Jones * Copyright (c) 2014-2016 Wolf9466 * Copyright (c) 2016 Jay D Dee - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,10 +21,13 @@ * along with this program. If not, see . */ -#pragma once +#ifndef XMRIG_USAGE_H +#define XMRIG_USAGE_H + #include "version.h" + #include @@ -56,15 +59,12 @@ static inline const std::string &usage() u += " --tls-fingerprint=HEX pool TLS certificate fingerprint for strict certificate pinning\n"; # endif - u += " -4, --ipv4 resolve names to IPv4 addresses\n"; - u += " -6, --ipv6 resolve names to IPv6 addresses\n"; + u += " --dns-ipv6 prefer IPv6 records from DNS responses\n"; u += " --dns-ttl=N N seconds (default: 30) TTL for internal DNS cache\n"; # ifdef XMRIG_FEATURE_HTTP u += " --daemon use daemon RPC instead of pool for solo mining\n"; - u += " --daemon-zmq-port=N daemon's zmq-pub port number (only use it if daemon has it enabled)\n"; u += " --daemon-poll-interval=N daemon poll interval in milliseconds (default: 1000)\n"; - u += " --daemon-job-timeout=N daemon job timeout in milliseconds (default: 15000)\n"; u += " --self-select=URL self-select block templates from URL\n"; u += " --submit-to-origin also submit solution back to self-select URL\n"; # endif @@ -108,6 +108,11 @@ static inline const std::string &usage() u += " --randomx-cache-qos enable Cache QoS\n"; # endif +# ifdef XMRIG_ALGO_ASTROBWT + u += " --astrobwt-max-size=N skip hashes with large stage 2 size, default: 550, min: 400, max: 1200\n"; + u += " --astrobwt-avx2 enable AVX2 optimizations for AstroBWT algorithm"; +# endif + # ifdef XMRIG_FEATURE_OPENCL u += "\nOpenCL backend:\n"; u += " --opencl enable OpenCL mining backend\n"; @@ -203,4 +208,6 @@ static inline const std::string &usage() } -} // namespace xmrig +} /* namespace xmrig */ + +#endif /* XMRIG_USAGE_H */ diff --git a/src/crypto/astrobwt/AstroBWT.cpp b/src/crypto/astrobwt/AstroBWT.cpp new file mode 100644 index 00000000..9fd2db60 --- /dev/null +++ b/src/crypto/astrobwt/AstroBWT.cpp @@ -0,0 +1,452 @@ +/* XMRig + * Copyright (c) 2018 Lee Clagett + * Copyright (c) 2018-2019 tevador + * Copyright (c) 2000 Transmeta Corporation + * Copyright (c) 2004-2008 H. Peter Anvin + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "crypto/astrobwt/AstroBWT.h" +#include "backend/cpu/Cpu.h" +#include "base/crypto/sha3.h" +#include "base/tools/bswap_64.h" +#include "crypto/cn/CryptoNight.h" + + +#include + + +constexpr int STAGE1_SIZE = 147253; +constexpr int ALLOCATION_SIZE = (STAGE1_SIZE + 1048576) + (128 - (STAGE1_SIZE & 63)); + +constexpr int COUNTING_SORT_BITS = 10; +constexpr int COUNTING_SORT_SIZE = 1 << COUNTING_SORT_BITS; + +static bool astrobwtInitialized = false; + +#ifdef ASTROBWT_AVX2 +static bool hasAVX2 = false; + +extern "C" +#ifndef _MSC_VER +__attribute__((ms_abi)) +#endif +void SHA3_256_AVX2_ASM(const void* in, size_t inBytes, void* out); +#endif + +#ifdef XMRIG_ARM +extern "C" { +#include "salsa20_ref/ecrypt-sync.h" +} + +static void Salsa20_XORKeyStream(const void* key, void* output, size_t size) +{ + uint8_t iv[8] = {}; + ECRYPT_ctx ctx; + ECRYPT_keysetup(&ctx, static_cast(key), 256, 64); + ECRYPT_ivsetup(&ctx, iv); + ECRYPT_keystream_bytes(&ctx, static_cast(output), size); + memset(static_cast(output) - 16, 0, 16); + memset(static_cast(output) + size, 0, 16); +} +#else +#include "Salsa20.hpp" + +static void Salsa20_XORKeyStream(const void* key, void* output, size_t size) +{ + const uint64_t iv = 0; + ZeroTier::Salsa20 s(key, &iv); + s.XORKeyStream(output, static_cast(size)); + memset(static_cast(output) - 16, 0, 16); + memset(static_cast(output) + size, 0, 16); +} + +extern "C" int salsa20_stream_avx2(void* c, uint64_t clen, const void* iv, const void* key); + +static void Salsa20_XORKeyStream_AVX256(const void* key, void* output, size_t size) +{ + const uint64_t iv = 0; + salsa20_stream_avx2(output, size, &iv, key); + memset(static_cast(output) - 16, 0, 16); + memset(static_cast(output) + size, 0, 16); +} +#endif + +static inline bool smaller(const uint8_t* v, uint64_t a, uint64_t b) +{ + const uint64_t value_a = a >> 21; + const uint64_t value_b = b >> 21; + + if (value_a < value_b) { + return true; + } + + if (value_a > value_b) { + return false; + } + + a &= (1 << 21) - 1; + b &= (1 << 21) - 1; + + if (a == b) { + return false; + } + + const uint64_t data_a = bswap_64(*reinterpret_cast(v + a + 5)); + const uint64_t data_b = bswap_64(*reinterpret_cast(v + b + 5)); + return (data_a < data_b); +} + +void sort_indices(uint32_t N, const uint8_t* v, uint64_t* indices, uint64_t* tmp_indices) +{ + uint32_t counters[2][COUNTING_SORT_SIZE] = {}; + + { +#define ITER(X) \ + do { \ + const uint64_t k = bswap_64(*reinterpret_cast(v + i + X)); \ + ++counters[0][(k >> (64 - COUNTING_SORT_BITS * 2)) & (COUNTING_SORT_SIZE - 1)]; \ + ++counters[1][k >> (64 - COUNTING_SORT_BITS)]; \ + } while (0) + + uint32_t i = 0; + const uint32_t n = N - 15; + for (; i < n; i += 16) { + ITER(0); ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); + ITER(8); ITER(9); ITER(10); ITER(11); ITER(12); ITER(13); ITER(14); ITER(15); + } + for (; i < N; ++i) { + ITER(0); + } + +#undef ITER + } + + uint32_t prev[2] = { counters[0][0], counters[1][0] }; + counters[0][0] = prev[0] - 1; + counters[1][0] = prev[1] - 1; + for (int i = 1; i < COUNTING_SORT_SIZE; ++i) + { + const uint32_t cur[2] = { counters[0][i] + prev[0], counters[1][i] + prev[1] }; + counters[0][i] = cur[0] - 1; + counters[1][i] = cur[1] - 1; + prev[0] = cur[0]; + prev[1] = cur[1]; + } + + { +#define ITER(X) \ + do { \ + const uint64_t k = bswap_64(*reinterpret_cast(v + (i - X))); \ + tmp_indices[counters[0][(k >> (64 - COUNTING_SORT_BITS * 2)) & (COUNTING_SORT_SIZE - 1)]--] = (k & (static_cast(-1) << 21)) | (i - X); \ + } while (0) + + uint32_t i = N; + for (; i >= 8; i -= 8) { + ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); ITER(8); + } + for (; i > 0; --i) { + ITER(1); + } + +#undef ITER + } + + { +#define ITER(X) \ + do { \ + const uint64_t data = tmp_indices[i - X]; \ + indices[counters[1][data >> (64 - COUNTING_SORT_BITS)]--] = data; \ + } while (0) + + uint32_t i = N; + for (; i >= 8; i -= 8) { + ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); ITER(8); + } + for (; i > 0; --i) { + ITER(1); + } + +#undef ITER + } + + uint64_t prev_t = indices[0]; + for (uint32_t i = 1; i < N; ++i) + { + uint64_t t = indices[i]; + if (smaller(v, t, prev_t)) + { + const uint64_t t2 = prev_t; + int j = i - 1; + do + { + indices[j + 1] = prev_t; + --j; + + if (j < 0) { + break; + } + + prev_t = indices[j]; + } while (smaller(v, t, prev_t)); + indices[j + 1] = t; + t = t2; + } + prev_t = t; + } +} + +void sort_indices2(uint32_t N, const uint8_t* v, uint64_t* indices, uint64_t* tmp_indices) +{ + alignas(16) uint32_t counters[1 << COUNTING_SORT_BITS] = {}; + alignas(16) uint32_t counters2[1 << COUNTING_SORT_BITS]; + + { +#define ITER(X) { \ + const uint64_t k = bswap_64(*reinterpret_cast(v + i + X)); \ + ++counters[k >> (64 - COUNTING_SORT_BITS)]; \ + } + + uint32_t i = 0; + const uint32_t n = (N / 32) * 32; + for (; i < n; i += 32) { + ITER(0); ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); + ITER(8); ITER(9); ITER(10); ITER(11); ITER(12); ITER(13); ITER(14); ITER(15); + ITER(16); ITER(17); ITER(18); ITER(19); ITER(20); ITER(21); ITER(22); ITER(23); + ITER(24); ITER(25); ITER(26); ITER(27); ITER(28); ITER(29); ITER(30); ITER(31); + } + for (; i < N; ++i) { + ITER(0); + } + +#undef ITER + } + + uint32_t prev = static_cast(-1); + for (uint32_t i = 0; i < (1 << COUNTING_SORT_BITS); i += 16) + { +#define ITER(X) { \ + const uint32_t cur = counters[i + X] + prev; \ + counters[i + X] = cur; \ + counters2[i + X] = cur; \ + prev = cur; \ + } + ITER(0); ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); + ITER(8); ITER(9); ITER(10); ITER(11); ITER(12); ITER(13); ITER(14); ITER(15); +#undef ITER + } + + { +#define ITER(X) \ + do { \ + const uint64_t k = bswap_64(*reinterpret_cast(v + (i - X))); \ + indices[counters[k >> (64 - COUNTING_SORT_BITS)]--] = (k & (static_cast(-1) << 21)) | (i - X); \ + } while (0) + + uint32_t i = N; + for (; i >= 8; i -= 8) { + ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); ITER(8); + } + for (; i > 0; --i) { + ITER(1); + } + +#undef ITER + } + + uint32_t prev_i = 0; + for (uint32_t i0 = 0; i0 < (1 << COUNTING_SORT_BITS); ++i0) { + const uint32_t i = counters2[i0] + 1; + const uint32_t n = i - prev_i; + if (n > 1) { + memset(counters, 0, sizeof(uint32_t) * (1 << COUNTING_SORT_BITS)); + + const uint32_t n8 = (n / 8) * 8; + uint32_t j = 0; + +#define ITER(X) { \ + const uint64_t k = indices[prev_i + j + X]; \ + ++counters[(k >> (64 - COUNTING_SORT_BITS * 2)) & ((1 << COUNTING_SORT_BITS) - 1)]; \ + tmp_indices[j + X] = k; \ + } + for (; j < n8; j += 8) { + ITER(0); ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); + } + for (; j < n; ++j) { + ITER(0); + } +#undef ITER + + uint32_t prev = static_cast(-1); + for (uint32_t j = 0; j < (1 << COUNTING_SORT_BITS); j += 32) + { +#define ITER(X) { \ + const uint32_t cur = counters[j + X] + prev; \ + counters[j + X] = cur; \ + prev = cur; \ + } + ITER(0); ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); + ITER(8); ITER(9); ITER(10); ITER(11); ITER(12); ITER(13); ITER(14); ITER(15); + ITER(16); ITER(17); ITER(18); ITER(19); ITER(20); ITER(21); ITER(22); ITER(23); + ITER(24); ITER(25); ITER(26); ITER(27); ITER(28); ITER(29); ITER(30); ITER(31); +#undef ITER + } + +#define ITER(X) { \ + const uint64_t k = tmp_indices[j - X]; \ + const uint32_t index = counters[(k >> (64 - COUNTING_SORT_BITS * 2)) & ((1 << COUNTING_SORT_BITS) - 1)]--; \ + indices[prev_i + index] = k; \ + } + for (j = n; j >= 8; j -= 8) { + ITER(1); ITER(2); ITER(3); ITER(4); ITER(5); ITER(6); ITER(7); ITER(8); + } + for (; j > 0; --j) { + ITER(1); + } +#undef ITER + + uint64_t prev_t = indices[prev_i]; + for (uint64_t* p = indices + prev_i + 1, *e = indices + i; p != e; ++p) + { + uint64_t t = *p; + if (smaller(v, t, prev_t)) + { + const uint64_t t2 = prev_t; + uint64_t* p1 = p; + do + { + *p1 = prev_t; + --p1; + + if (p1 <= indices + prev_i) { + break; + } + + prev_t = *(p1 - 1); + } while (smaller(v, t, prev_t)); + *p1 = t; + t = t2; + } + prev_t = t; + } + } + prev_i = i; + } +} + +bool xmrig::astrobwt::astrobwt_dero(const void* input_data, uint32_t input_size, void* scratchpad, uint8_t* output_hash, int stage2_max_size, bool avx2) +{ + alignas(8) uint8_t key[32]; + uint8_t* scratchpad_ptr = (uint8_t*)(scratchpad) + 64; + uint8_t* stage1_output = scratchpad_ptr; + uint8_t* stage2_output = scratchpad_ptr; + uint64_t* indices = (uint64_t*)(scratchpad_ptr + ALLOCATION_SIZE); + uint64_t* tmp_indices = (uint64_t*)(scratchpad_ptr + ALLOCATION_SIZE * 9); + uint8_t* stage1_result = (uint8_t*)(tmp_indices); + uint8_t* stage2_result = (uint8_t*)(tmp_indices); + +#ifdef ASTROBWT_AVX2 + if (hasAVX2 && avx2) { + SHA3_256_AVX2_ASM(input_data, input_size, key); + Salsa20_XORKeyStream_AVX256(key, stage1_output, STAGE1_SIZE); + } + else +#endif + { + sha3_HashBuffer(256, SHA3_FLAGS_NONE, input_data, input_size, key, sizeof(key)); + Salsa20_XORKeyStream(key, stage1_output, STAGE1_SIZE); + } + + sort_indices(STAGE1_SIZE + 1, stage1_output, indices, tmp_indices); + + { + const uint8_t* tmp = stage1_output - 1; + for (int i = 0; i <= STAGE1_SIZE; ++i) { + stage1_result[i] = tmp[indices[i] & ((1 << 21) - 1)]; + } + } + +#ifdef ASTROBWT_AVX2 + if (hasAVX2 && avx2) + SHA3_256_AVX2_ASM(stage1_result, STAGE1_SIZE + 1, key); + else +#endif + sha3_HashBuffer(256, SHA3_FLAGS_NONE, stage1_result, STAGE1_SIZE + 1, key, sizeof(key)); + + const int stage2_size = STAGE1_SIZE + (*(uint32_t*)(key) & 0xfffff); + if (stage2_size > stage2_max_size) { + return false; + } + +#ifdef ASTROBWT_AVX2 + if (hasAVX2 && avx2) { + Salsa20_XORKeyStream_AVX256(key, stage2_output, stage2_size); + } + else +#endif + { + Salsa20_XORKeyStream(key, stage2_output, stage2_size); + } + + sort_indices2(stage2_size + 1, stage2_output, indices, tmp_indices); + + { + const uint8_t* tmp = stage2_output - 1; + int i = 0; + const int n = ((stage2_size + 1) / 4) * 4; + + for (; i < n; i += 4) + { + stage2_result[i + 0] = tmp[indices[i + 0] & ((1 << 21) - 1)]; + stage2_result[i + 1] = tmp[indices[i + 1] & ((1 << 21) - 1)]; + stage2_result[i + 2] = tmp[indices[i + 2] & ((1 << 21) - 1)]; + stage2_result[i + 3] = tmp[indices[i + 3] & ((1 << 21) - 1)]; + } + + for (; i <= stage2_size; ++i) { + stage2_result[i] = tmp[indices[i] & ((1 << 21) - 1)]; + } + } + +#ifdef ASTROBWT_AVX2 + if (hasAVX2 && avx2) + SHA3_256_AVX2_ASM(stage2_result, stage2_size + 1, output_hash); + else +#endif + sha3_HashBuffer(256, SHA3_FLAGS_NONE, stage2_result, stage2_size + 1, output_hash, 32); + + return true; +} + + +void xmrig::astrobwt::init() +{ + if (!astrobwtInitialized) { +# ifdef ASTROBWT_AVX2 + hasAVX2 = Cpu::info()->hasAVX2(); +# endif + + astrobwtInitialized = true; + } +} + + +template<> +void xmrig::astrobwt::single_hash(const uint8_t* input, size_t size, uint8_t* output, cryptonight_ctx** ctx, uint64_t) +{ + astrobwt_dero(input, static_cast(size), ctx[0]->memory, output, std::numeric_limits::max(), true); +} diff --git a/src/crypto/astrobwt/AstroBWT.h b/src/crypto/astrobwt/AstroBWT.h new file mode 100644 index 00000000..236b3ce4 --- /dev/null +++ b/src/crypto/astrobwt/AstroBWT.h @@ -0,0 +1,44 @@ +/* XMRig + * Copyright (c) 2018 Lee Clagett + * Copyright (c) 2018-2019 tevador + * Copyright (c) 2000 Transmeta Corporation + * Copyright (c) 2004-2008 H. Peter Anvin + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "base/crypto/Algorithm.h" + + +struct cryptonight_ctx; + + +namespace xmrig { + + +namespace astrobwt { + +bool astrobwt_dero(const void* input_data, uint32_t input_size, void* scratchpad, uint8_t* output_hash, int stage2_max_size, bool avx2); +void init(); + +template +void single_hash(const uint8_t* input, size_t size, uint8_t* output, cryptonight_ctx** ctx, uint64_t); + +template<> +void single_hash(const uint8_t* input, size_t size, uint8_t* output, cryptonight_ctx** ctx, uint64_t); + + +}} // namespace xmrig::astrobwt diff --git a/src/crypto/astrobwt/Salsa20.cpp b/src/crypto/astrobwt/Salsa20.cpp new file mode 100644 index 00000000..a355b187 --- /dev/null +++ b/src/crypto/astrobwt/Salsa20.cpp @@ -0,0 +1,352 @@ +/* + * Based on public domain code available at: http://cr.yp.to/snuffle.html + * + * Modifications and C-native SSE macro based SSE implementation by + * Adam Ierymenko . + * + * Additional modifications and code cleanup for AstroBWT by + * SChernykh + * + * Since the original was public domain, this is too. + */ + +#include "Salsa20.hpp" + +// Statically compute and define SSE constants +class _s20sseconsts +{ +public: + _s20sseconsts() + { + maskLo32 = _mm_shuffle_epi32(_mm_cvtsi32_si128(-1), _MM_SHUFFLE(1, 0, 1, 0)); + maskHi32 = _mm_slli_epi64(maskLo32, 32); + } + __m128i maskLo32,maskHi32; +}; +static const _s20sseconsts _S20SSECONSTANTS; + +namespace ZeroTier { + +void Salsa20::init(const void *key,const void *iv) +{ + const uint32_t *const k = (const uint32_t *)key; + _state.i[0] = 0x61707865; + _state.i[1] = 0x3320646e; + _state.i[2] = 0x79622d32; + _state.i[3] = 0x6b206574; + _state.i[4] = k[3]; + _state.i[5] = 0; + _state.i[6] = k[7]; + _state.i[7] = k[2]; + _state.i[8] = 0; + _state.i[9] = k[6]; + _state.i[10] = k[1]; + _state.i[11] = ((const uint32_t *)iv)[1]; + _state.i[12] = k[5]; + _state.i[13] = k[0]; + _state.i[14] = ((const uint32_t *)iv)[0]; + _state.i[15] = k[4]; +} + +void Salsa20::XORKeyStream(void *out,unsigned int bytes) +{ + uint8_t tmp[64]; + uint8_t *c = (uint8_t *)out; + uint8_t *ctarget = c; + unsigned int i; + + if (!bytes) + return; + + for (;;) { + if (bytes < 64) { + for (i = 0;i < bytes;++i) + tmp[i] = 0; + ctarget = c; + c = tmp; + } + + __m128i X0 = _mm_loadu_si128((const __m128i *)&(_state.v[0])); + __m128i X1 = _mm_loadu_si128((const __m128i *)&(_state.v[1])); + __m128i X2 = _mm_loadu_si128((const __m128i *)&(_state.v[2])); + __m128i X3 = _mm_loadu_si128((const __m128i *)&(_state.v[3])); + __m128i T; + __m128i X0s = X0; + __m128i X1s = X1; + __m128i X2s = X2; + __m128i X3s = X3; + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + // 2X round ------------------------------------------------------------- + T = _mm_add_epi32(X0, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X1, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X3, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x93); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x39); + T = _mm_add_epi32(X0, X1); + X3 = _mm_xor_si128(_mm_xor_si128(X3, _mm_slli_epi32(T, 7)), _mm_srli_epi32(T, 25)); + T = _mm_add_epi32(X3, X0); + X2 = _mm_xor_si128(_mm_xor_si128(X2, _mm_slli_epi32(T, 9)), _mm_srli_epi32(T, 23)); + T = _mm_add_epi32(X2, X3); + X1 = _mm_xor_si128(_mm_xor_si128(X1, _mm_slli_epi32(T, 13)), _mm_srli_epi32(T, 19)); + T = _mm_add_epi32(X1, X2); + X0 = _mm_xor_si128(_mm_xor_si128(X0, _mm_slli_epi32(T, 18)), _mm_srli_epi32(T, 14)); + X1 = _mm_shuffle_epi32(X1, 0x39); + X2 = _mm_shuffle_epi32(X2, 0x4E); + X3 = _mm_shuffle_epi32(X3, 0x93); + + X0 = _mm_add_epi32(X0s,X0); + X1 = _mm_add_epi32(X1s,X1); + X2 = _mm_add_epi32(X2s,X2); + X3 = _mm_add_epi32(X3s,X3); + + __m128i k02 = _mm_shuffle_epi32(_mm_or_si128(_mm_slli_epi64(X0, 32), _mm_srli_epi64(X3, 32)), _MM_SHUFFLE(0, 1, 2, 3)); + __m128i k13 = _mm_shuffle_epi32(_mm_or_si128(_mm_slli_epi64(X1, 32), _mm_srli_epi64(X0, 32)), _MM_SHUFFLE(0, 1, 2, 3)); + __m128i k20 = _mm_or_si128(_mm_and_si128(X2, _S20SSECONSTANTS.maskLo32), _mm_and_si128(X1, _S20SSECONSTANTS.maskHi32)); + __m128i k31 = _mm_or_si128(_mm_and_si128(X3, _S20SSECONSTANTS.maskLo32), _mm_and_si128(X2, _S20SSECONSTANTS.maskHi32)); + _mm_storeu_ps(reinterpret_cast(c),_mm_castsi128_ps(_mm_unpackhi_epi64(k02,k20))); + _mm_storeu_ps(reinterpret_cast(c) + 4,_mm_castsi128_ps(_mm_unpackhi_epi64(k13,k31))); + _mm_storeu_ps(reinterpret_cast(c) + 8,_mm_castsi128_ps(_mm_unpacklo_epi64(k20,k02))); + _mm_storeu_ps(reinterpret_cast(c) + 12,_mm_castsi128_ps(_mm_unpacklo_epi64(k31,k13))); + + if (!(++_state.i[8])) { + ++_state.i[5]; // state reordered for SSE + /* stopping at 2^70 bytes per nonce is user's responsibility */ + } + + if (bytes <= 64) { + if (bytes < 64) { + for (i = 0;i < bytes;++i) + ctarget[i] = c[i]; + } + + return; + } + + bytes -= 64; + c += 64; + } +} + +} // namespace ZeroTier diff --git a/src/crypto/astrobwt/Salsa20.hpp b/src/crypto/astrobwt/Salsa20.hpp new file mode 100644 index 00000000..1313fdb4 --- /dev/null +++ b/src/crypto/astrobwt/Salsa20.hpp @@ -0,0 +1,52 @@ +/* + * Based on public domain code available at: http://cr.yp.to/snuffle.html + * + * This therefore is public domain. + */ + +#ifndef ZT_SALSA20_HPP +#define ZT_SALSA20_HPP + +#include +#include +#include +#include +#include + +namespace ZeroTier { + +/** + * Salsa20 stream cipher + */ +class Salsa20 +{ +public: + /** + * @param key 256-bit (32 byte) key + * @param iv 64-bit initialization vector + */ + Salsa20(const void *key,const void *iv) + { + init(key,iv); + } + + /** + * Initialize cipher + * + * @param key Key bits + * @param iv 64-bit initialization vector + */ + void init(const void *key,const void *iv); + + void XORKeyStream(void *out,unsigned int bytes); + +private: + union { + __m128i v[4]; + uint32_t i[16]; + } _state; +}; + +} // namespace ZeroTier + +#endif diff --git a/src/crypto/astrobwt/salsa20_ref/ecrypt-config.h b/src/crypto/astrobwt/salsa20_ref/ecrypt-config.h new file mode 100644 index 00000000..096358ab --- /dev/null +++ b/src/crypto/astrobwt/salsa20_ref/ecrypt-config.h @@ -0,0 +1,272 @@ +/* ecrypt-config.h */ + +/* *** Normally, it should not be necessary to edit this file. *** */ + +#ifndef ECRYPT_CONFIG +#define ECRYPT_CONFIG + +/* ------------------------------------------------------------------------- */ + +/* Guess the endianness of the target architecture. */ + +/* + * The LITTLE endian machines: + */ +#if defined(__ultrix) /* Older MIPS */ +#define ECRYPT_LITTLE_ENDIAN +#elif defined(__alpha) /* Alpha */ +#define ECRYPT_LITTLE_ENDIAN +#elif defined(i386) /* x86 (gcc) */ +#define ECRYPT_LITTLE_ENDIAN +#elif defined(__i386) /* x86 (gcc) */ +#define ECRYPT_LITTLE_ENDIAN +#elif defined(_M_IX86) /* x86 (MSC, Borland) */ +#define ECRYPT_LITTLE_ENDIAN +#elif defined(_MSC_VER) /* x86 (surely MSC) */ +#define ECRYPT_LITTLE_ENDIAN +#elif defined(__INTEL_COMPILER) /* x86 (surely Intel compiler icl.exe) */ +#define ECRYPT_LITTLE_ENDIAN + +/* + * The BIG endian machines: + */ +#elif defined(sun) /* Newer Sparc's */ +#define ECRYPT_BIG_ENDIAN +#elif defined(__ppc__) /* PowerPC */ +#define ECRYPT_BIG_ENDIAN + +/* + * Finally machines with UNKNOWN endianness: + */ +#elif defined (_AIX) /* RS6000 */ +#define ECRYPT_UNKNOWN +#elif defined(__hpux) /* HP-PA */ +#define ECRYPT_UNKNOWN +#elif defined(__aux) /* 68K */ +#define ECRYPT_UNKNOWN +#elif defined(__dgux) /* 88K (but P6 in latest boxes) */ +#define ECRYPT_UNKNOWN +#elif defined(__sgi) /* Newer MIPS */ +#define ECRYPT_UNKNOWN +#else /* Any other processor */ +#define ECRYPT_UNKNOWN +#endif + +/* ------------------------------------------------------------------------- */ + +/* + * Find minimal-width types to store 8-bit, 16-bit, 32-bit, and 64-bit + * integers. + * + * Note: to enable 64-bit types on 32-bit compilers, it might be + * necessary to switch from ISO C90 mode to ISO C99 mode (e.g., gcc + * -std=c99). + */ + +#include + +/* --- check char --- */ + +#if (UCHAR_MAX / 0xFU > 0xFU) +#ifndef I8T +#define I8T char +#define U8C(v) (v##U) + +#if (UCHAR_MAX == 0xFFU) +#define ECRYPT_I8T_IS_BYTE +#endif + +#endif + +#if (UCHAR_MAX / 0xFFU > 0xFFU) +#ifndef I16T +#define I16T char +#define U16C(v) (v##U) +#endif + +#if (UCHAR_MAX / 0xFFFFU > 0xFFFFU) +#ifndef I32T +#define I32T char +#define U32C(v) (v##U) +#endif + +#if (UCHAR_MAX / 0xFFFFFFFFU > 0xFFFFFFFFU) +#ifndef I64T +#define I64T char +#define U64C(v) (v##U) +#define ECRYPT_NATIVE64 +#endif + +#endif +#endif +#endif +#endif + +/* --- check short --- */ + +#if (USHRT_MAX / 0xFU > 0xFU) +#ifndef I8T +#define I8T short +#define U8C(v) (v##U) + +#if (USHRT_MAX == 0xFFU) +#define ECRYPT_I8T_IS_BYTE +#endif + +#endif + +#if (USHRT_MAX / 0xFFU > 0xFFU) +#ifndef I16T +#define I16T short +#define U16C(v) (v##U) +#endif + +#if (USHRT_MAX / 0xFFFFU > 0xFFFFU) +#ifndef I32T +#define I32T short +#define U32C(v) (v##U) +#endif + +#if (USHRT_MAX / 0xFFFFFFFFU > 0xFFFFFFFFU) +#ifndef I64T +#define I64T short +#define U64C(v) (v##U) +#define ECRYPT_NATIVE64 +#endif + +#endif +#endif +#endif +#endif + +/* --- check int --- */ + +#if (UINT_MAX / 0xFU > 0xFU) +#ifndef I8T +#define I8T int +#define U8C(v) (v##U) + +#if (ULONG_MAX == 0xFFU) +#define ECRYPT_I8T_IS_BYTE +#endif + +#endif + +#if (UINT_MAX / 0xFFU > 0xFFU) +#ifndef I16T +#define I16T int +#define U16C(v) (v##U) +#endif + +#if (UINT_MAX / 0xFFFFU > 0xFFFFU) +#ifndef I32T +#define I32T int +#define U32C(v) (v##U) +#endif + +#if (UINT_MAX / 0xFFFFFFFFU > 0xFFFFFFFFU) +#ifndef I64T +#define I64T int +#define U64C(v) (v##U) +#define ECRYPT_NATIVE64 +#endif + +#endif +#endif +#endif +#endif + +/* --- check long --- */ + +#if (ULONG_MAX / 0xFUL > 0xFUL) +#ifndef I8T +#define I8T long +#define U8C(v) (v##UL) + +#if (ULONG_MAX == 0xFFUL) +#define ECRYPT_I8T_IS_BYTE +#endif + +#endif + +#if (ULONG_MAX / 0xFFUL > 0xFFUL) +#ifndef I16T +#define I16T long +#define U16C(v) (v##UL) +#endif + +#if (ULONG_MAX / 0xFFFFUL > 0xFFFFUL) +#ifndef I32T +#define I32T long +#define U32C(v) (v##UL) +#endif + +#if (ULONG_MAX / 0xFFFFFFFFUL > 0xFFFFFFFFUL) +#ifndef I64T +#define I64T long +#define U64C(v) (v##UL) +#define ECRYPT_NATIVE64 +#endif + +#endif +#endif +#endif +#endif + +/* --- check long long --- */ + +#ifdef ULLONG_MAX + +#if (ULLONG_MAX / 0xFULL > 0xFULL) +#ifndef I8T +#define I8T long long +#define U8C(v) (v##ULL) + +#if (ULLONG_MAX == 0xFFULL) +#define ECRYPT_I8T_IS_BYTE +#endif + +#endif + +#if (ULLONG_MAX / 0xFFULL > 0xFFULL) +#ifndef I16T +#define I16T long long +#define U16C(v) (v##ULL) +#endif + +#if (ULLONG_MAX / 0xFFFFULL > 0xFFFFULL) +#ifndef I32T +#define I32T long long +#define U32C(v) (v##ULL) +#endif + +#if (ULLONG_MAX / 0xFFFFFFFFULL > 0xFFFFFFFFULL) +#ifndef I64T +#define I64T long long +#define U64C(v) (v##ULL) +#endif + +#endif +#endif +#endif +#endif + +#endif + +/* --- check __int64 --- */ + +#ifdef _UI64_MAX + +#if (_UI64_MAX / 0xFFFFFFFFui64 > 0xFFFFFFFFui64) +#ifndef I64T +#define I64T __int64 +#define U64C(v) (v##ui64) +#endif + +#endif + +#endif + +/* ------------------------------------------------------------------------- */ + +#endif diff --git a/src/crypto/astrobwt/salsa20_ref/ecrypt-machine.h b/src/crypto/astrobwt/salsa20_ref/ecrypt-machine.h new file mode 100644 index 00000000..3e550d02 --- /dev/null +++ b/src/crypto/astrobwt/salsa20_ref/ecrypt-machine.h @@ -0,0 +1,46 @@ +/* ecrypt-machine.h */ + +/* + * This file is included by 'ecrypt-portable.h'. It allows to override + * the default macros for specific platforms. Please carefully check + * the machine code generated by your compiler (with optimisations + * turned on) before deciding to edit this file. + */ + +/* ------------------------------------------------------------------------- */ + +#if (defined(ECRYPT_DEFAULT_ROT) && !defined(ECRYPT_MACHINE_ROT)) + +#define ECRYPT_MACHINE_ROT + +#if (defined(WIN32) && defined(_MSC_VER)) + +#undef ROTL32 +#undef ROTR32 +#undef ROTL64 +#undef ROTR64 + +#include + +#define ROTL32(v, n) _lrotl(v, n) +#define ROTR32(v, n) _lrotr(v, n) +#define ROTL64(v, n) _rotl64(v, n) +#define ROTR64(v, n) _rotr64(v, n) + +#endif + +#endif + +/* ------------------------------------------------------------------------- */ + +#if (defined(ECRYPT_DEFAULT_SWAP) && !defined(ECRYPT_MACHINE_SWAP)) + +#define ECRYPT_MACHINE_SWAP + +/* + * If you want to overwrite the default swap macros, put it here. And so on. + */ + +#endif + +/* ------------------------------------------------------------------------- */ diff --git a/src/crypto/astrobwt/salsa20_ref/ecrypt-portable.h b/src/crypto/astrobwt/salsa20_ref/ecrypt-portable.h new file mode 100644 index 00000000..607fee1d --- /dev/null +++ b/src/crypto/astrobwt/salsa20_ref/ecrypt-portable.h @@ -0,0 +1,303 @@ +/* ecrypt-portable.h */ + +/* + * WARNING: the conversions defined below are implemented as macros, + * and should be used carefully. They should NOT be used with + * parameters which perform some action. E.g., the following two lines + * are not equivalent: + * + * 1) ++x; y = ROTL32(x, n); + * 2) y = ROTL32(++x, n); + */ + +/* + * *** Please do not edit this file. *** + * + * The default macros can be overridden for specific architectures by + * editing 'ecrypt-machine.h'. + */ + +#ifndef ECRYPT_PORTABLE +#define ECRYPT_PORTABLE + +#include "ecrypt-config.h" + +/* ------------------------------------------------------------------------- */ + +/* + * The following types are defined (if available): + * + * u8: unsigned integer type, at least 8 bits + * u16: unsigned integer type, at least 16 bits + * u32: unsigned integer type, at least 32 bits + * u64: unsigned integer type, at least 64 bits + * + * s8, s16, s32, s64 -> signed counterparts of u8, u16, u32, u64 + * + * The selection of minimum-width integer types is taken care of by + * 'ecrypt-config.h'. Note: to enable 64-bit types on 32-bit + * compilers, it might be necessary to switch from ISO C90 mode to ISO + * C99 mode (e.g., gcc -std=c99). + */ + +#ifdef I8T +typedef signed I8T s8; +typedef unsigned I8T u8; +#endif + +#ifdef I16T +typedef signed I16T s16; +typedef unsigned I16T u16; +#endif + +#ifdef I32T +typedef signed I32T s32; +typedef unsigned I32T u32; +#endif + +#ifdef I64T +typedef signed I64T s64; +typedef unsigned I64T u64; +#endif + +/* + * The following macros are used to obtain exact-width results. + */ + +#define U8V(v) ((u8)(v) & U8C(0xFF)) +#define U16V(v) ((u16)(v) & U16C(0xFFFF)) +#define U32V(v) ((u32)(v) & U32C(0xFFFFFFFF)) +#define U64V(v) ((u64)(v) & U64C(0xFFFFFFFFFFFFFFFF)) + +/* ------------------------------------------------------------------------- */ + +/* + * The following macros return words with their bits rotated over n + * positions to the left/right. + */ + +#define ECRYPT_DEFAULT_ROT + +#define ROTL8(v, n) \ + (U8V((v) << (n)) | ((v) >> (8 - (n)))) + +#define ROTL16(v, n) \ + (U16V((v) << (n)) | ((v) >> (16 - (n)))) + +#define ROTL32(v, n) \ + (U32V((v) << (n)) | ((v) >> (32 - (n)))) + +#define ROTL64(v, n) \ + (U64V((v) << (n)) | ((v) >> (64 - (n)))) + +#define ROTR8(v, n) ROTL8(v, 8 - (n)) +#define ROTR16(v, n) ROTL16(v, 16 - (n)) +#define ROTR32(v, n) ROTL32(v, 32 - (n)) +#define ROTR64(v, n) ROTL64(v, 64 - (n)) + +#include "ecrypt-machine.h" + +/* ------------------------------------------------------------------------- */ + +/* + * The following macros return a word with bytes in reverse order. + */ + +#define ECRYPT_DEFAULT_SWAP + +#define SWAP16(v) \ + ROTL16(v, 8) + +#define SWAP32(v) \ + ((ROTL32(v, 8) & U32C(0x00FF00FF)) | \ + (ROTL32(v, 24) & U32C(0xFF00FF00))) + +#ifdef ECRYPT_NATIVE64 +#define SWAP64(v) \ + ((ROTL64(v, 8) & U64C(0x000000FF000000FF)) | \ + (ROTL64(v, 24) & U64C(0x0000FF000000FF00)) | \ + (ROTL64(v, 40) & U64C(0x00FF000000FF0000)) | \ + (ROTL64(v, 56) & U64C(0xFF000000FF000000))) +#else +#define SWAP64(v) \ + (((u64)SWAP32(U32V(v)) << 32) | (u64)SWAP32(U32V(v >> 32))) +#endif + +#include "ecrypt-machine.h" + +#define ECRYPT_DEFAULT_WTOW + +#ifdef ECRYPT_LITTLE_ENDIAN +#define U16TO16_LITTLE(v) (v) +#define U32TO32_LITTLE(v) (v) +#define U64TO64_LITTLE(v) (v) + +#define U16TO16_BIG(v) SWAP16(v) +#define U32TO32_BIG(v) SWAP32(v) +#define U64TO64_BIG(v) SWAP64(v) +#endif + +#ifdef ECRYPT_BIG_ENDIAN +#define U16TO16_LITTLE(v) SWAP16(v) +#define U32TO32_LITTLE(v) SWAP32(v) +#define U64TO64_LITTLE(v) SWAP64(v) + +#define U16TO16_BIG(v) (v) +#define U32TO32_BIG(v) (v) +#define U64TO64_BIG(v) (v) +#endif + +#include "ecrypt-machine.h" + +/* + * The following macros load words from an array of bytes with + * different types of endianness, and vice versa. + */ + +#define ECRYPT_DEFAULT_BTOW + +#if (!defined(ECRYPT_UNKNOWN) && defined(ECRYPT_I8T_IS_BYTE)) + +#define U8TO16_LITTLE(p) U16TO16_LITTLE(((u16*)(p))[0]) +#define U8TO32_LITTLE(p) U32TO32_LITTLE(((u32*)(p))[0]) +#define U8TO64_LITTLE(p) U64TO64_LITTLE(((u64*)(p))[0]) + +#define U8TO16_BIG(p) U16TO16_BIG(((u16*)(p))[0]) +#define U8TO32_BIG(p) U32TO32_BIG(((u32*)(p))[0]) +#define U8TO64_BIG(p) U64TO64_BIG(((u64*)(p))[0]) + +#define U16TO8_LITTLE(p, v) (((u16*)(p))[0] = U16TO16_LITTLE(v)) +#define U32TO8_LITTLE(p, v) (((u32*)(p))[0] = U32TO32_LITTLE(v)) +#define U64TO8_LITTLE(p, v) (((u64*)(p))[0] = U64TO64_LITTLE(v)) + +#define U16TO8_BIG(p, v) (((u16*)(p))[0] = U16TO16_BIG(v)) +#define U32TO8_BIG(p, v) (((u32*)(p))[0] = U32TO32_BIG(v)) +#define U64TO8_BIG(p, v) (((u64*)(p))[0] = U64TO64_BIG(v)) + +#else + +#define U8TO16_LITTLE(p) \ + (((u16)((p)[0]) ) | \ + ((u16)((p)[1]) << 8)) + +#define U8TO32_LITTLE(p) \ + (((u32)((p)[0]) ) | \ + ((u32)((p)[1]) << 8) | \ + ((u32)((p)[2]) << 16) | \ + ((u32)((p)[3]) << 24)) + +#ifdef ECRYPT_NATIVE64 +#define U8TO64_LITTLE(p) \ + (((u64)((p)[0]) ) | \ + ((u64)((p)[1]) << 8) | \ + ((u64)((p)[2]) << 16) | \ + ((u64)((p)[3]) << 24) | \ + ((u64)((p)[4]) << 32) | \ + ((u64)((p)[5]) << 40) | \ + ((u64)((p)[6]) << 48) | \ + ((u64)((p)[7]) << 56)) +#else +#define U8TO64_LITTLE(p) \ + ((u64)U8TO32_LITTLE(p) | ((u64)U8TO32_LITTLE((p) + 4) << 32)) +#endif + +#define U8TO16_BIG(p) \ + (((u16)((p)[0]) << 8) | \ + ((u16)((p)[1]) )) + +#define U8TO32_BIG(p) \ + (((u32)((p)[0]) << 24) | \ + ((u32)((p)[1]) << 16) | \ + ((u32)((p)[2]) << 8) | \ + ((u32)((p)[3]) )) + +#ifdef ECRYPT_NATIVE64 +#define U8TO64_BIG(p) \ + (((u64)((p)[0]) << 56) | \ + ((u64)((p)[1]) << 48) | \ + ((u64)((p)[2]) << 40) | \ + ((u64)((p)[3]) << 32) | \ + ((u64)((p)[4]) << 24) | \ + ((u64)((p)[5]) << 16) | \ + ((u64)((p)[6]) << 8) | \ + ((u64)((p)[7]) )) +#else +#define U8TO64_BIG(p) \ + (((u64)U8TO32_BIG(p) << 32) | (u64)U8TO32_BIG((p) + 4)) +#endif + +#define U16TO8_LITTLE(p, v) \ + do { \ + (p)[0] = U8V((v) ); \ + (p)[1] = U8V((v) >> 8); \ + } while (0) + +#define U32TO8_LITTLE(p, v) \ + do { \ + (p)[0] = U8V((v) ); \ + (p)[1] = U8V((v) >> 8); \ + (p)[2] = U8V((v) >> 16); \ + (p)[3] = U8V((v) >> 24); \ + } while (0) + +#ifdef ECRYPT_NATIVE64 +#define U64TO8_LITTLE(p, v) \ + do { \ + (p)[0] = U8V((v) ); \ + (p)[1] = U8V((v) >> 8); \ + (p)[2] = U8V((v) >> 16); \ + (p)[3] = U8V((v) >> 24); \ + (p)[4] = U8V((v) >> 32); \ + (p)[5] = U8V((v) >> 40); \ + (p)[6] = U8V((v) >> 48); \ + (p)[7] = U8V((v) >> 56); \ + } while (0) +#else +#define U64TO8_LITTLE(p, v) \ + do { \ + U32TO8_LITTLE((p), U32V((v) )); \ + U32TO8_LITTLE((p) + 4, U32V((v) >> 32)); \ + } while (0) +#endif + +#define U16TO8_BIG(p, v) \ + do { \ + (p)[0] = U8V((v) ); \ + (p)[1] = U8V((v) >> 8); \ + } while (0) + +#define U32TO8_BIG(p, v) \ + do { \ + (p)[0] = U8V((v) >> 24); \ + (p)[1] = U8V((v) >> 16); \ + (p)[2] = U8V((v) >> 8); \ + (p)[3] = U8V((v) ); \ + } while (0) + +#ifdef ECRYPT_NATIVE64 +#define U64TO8_BIG(p, v) \ + do { \ + (p)[0] = U8V((v) >> 56); \ + (p)[1] = U8V((v) >> 48); \ + (p)[2] = U8V((v) >> 40); \ + (p)[3] = U8V((v) >> 32); \ + (p)[4] = U8V((v) >> 24); \ + (p)[5] = U8V((v) >> 16); \ + (p)[6] = U8V((v) >> 8); \ + (p)[7] = U8V((v) ); \ + } while (0) +#else +#define U64TO8_BIG(p, v) \ + do { \ + U32TO8_BIG((p), U32V((v) >> 32)); \ + U32TO8_BIG((p) + 4, U32V((v) )); \ + } while (0) +#endif + +#endif + +#include "ecrypt-machine.h" + +/* ------------------------------------------------------------------------- */ + +#endif diff --git a/src/crypto/astrobwt/salsa20_ref/ecrypt-sync.h b/src/crypto/astrobwt/salsa20_ref/ecrypt-sync.h new file mode 100644 index 00000000..971cd571 --- /dev/null +++ b/src/crypto/astrobwt/salsa20_ref/ecrypt-sync.h @@ -0,0 +1,279 @@ +/* ecrypt-sync.h */ + +/* + * Header file for synchronous stream ciphers without authentication + * mechanism. + * + * *** Please only edit parts marked with "[edit]". *** + */ + +#ifndef ECRYPT_SYNC +#define ECRYPT_SYNC + +#include "ecrypt-portable.h" + +/* ------------------------------------------------------------------------- */ + +/* Cipher parameters */ + +/* + * The name of your cipher. + */ +#define ECRYPT_NAME "Salsa20" /* [edit] */ +#define ECRYPT_PROFILE "S!_H." + +/* + * Specify which key and IV sizes are supported by your cipher. A user + * should be able to enumerate the supported sizes by running the + * following code: + * + * for (i = 0; ECRYPT_KEYSIZE(i) <= ECRYPT_MAXKEYSIZE; ++i) + * { + * keysize = ECRYPT_KEYSIZE(i); + * + * ... + * } + * + * All sizes are in bits. + */ + +#define ECRYPT_MAXKEYSIZE 256 /* [edit] */ +#define ECRYPT_KEYSIZE(i) (128 + (i)*128) /* [edit] */ + +#define ECRYPT_MAXIVSIZE 64 /* [edit] */ +#define ECRYPT_IVSIZE(i) (64 + (i)*64) /* [edit] */ + +/* ------------------------------------------------------------------------- */ + +/* Data structures */ + +/* + * ECRYPT_ctx is the structure containing the representation of the + * internal state of your cipher. + */ + +typedef struct +{ + u32 input[16]; /* could be compressed */ + /* + * [edit] + * + * Put here all state variable needed during the encryption process. + */ +} ECRYPT_ctx; + +/* ------------------------------------------------------------------------- */ + +/* Mandatory functions */ + +/* + * Key and message independent initialization. This function will be + * called once when the program starts (e.g., to build expanded S-box + * tables). + */ +void ECRYPT_init(); + +/* + * Key setup. It is the user's responsibility to select the values of + * keysize and ivsize from the set of supported values specified + * above. + */ +void ECRYPT_keysetup( + ECRYPT_ctx* ctx, + const u8* key, + u32 keysize, /* Key size in bits. */ + u32 ivsize); /* IV size in bits. */ + +/* + * IV setup. After having called ECRYPT_keysetup(), the user is + * allowed to call ECRYPT_ivsetup() different times in order to + * encrypt/decrypt different messages with the same key but different + * IV's. + */ +void ECRYPT_ivsetup( + ECRYPT_ctx* ctx, + const u8* iv); + +/* + * Encryption/decryption of arbitrary length messages. + * + * For efficiency reasons, the API provides two types of + * encrypt/decrypt functions. The ECRYPT_encrypt_bytes() function + * (declared here) encrypts byte strings of arbitrary length, while + * the ECRYPT_encrypt_blocks() function (defined later) only accepts + * lengths which are multiples of ECRYPT_BLOCKLENGTH. + * + * The user is allowed to make multiple calls to + * ECRYPT_encrypt_blocks() to incrementally encrypt a long message, + * but he is NOT allowed to make additional encryption calls once he + * has called ECRYPT_encrypt_bytes() (unless he starts a new message + * of course). For example, this sequence of calls is acceptable: + * + * ECRYPT_keysetup(); + * + * ECRYPT_ivsetup(); + * ECRYPT_encrypt_blocks(); + * ECRYPT_encrypt_blocks(); + * ECRYPT_encrypt_bytes(); + * + * ECRYPT_ivsetup(); + * ECRYPT_encrypt_blocks(); + * ECRYPT_encrypt_blocks(); + * + * ECRYPT_ivsetup(); + * ECRYPT_encrypt_bytes(); + * + * The following sequence is not: + * + * ECRYPT_keysetup(); + * ECRYPT_ivsetup(); + * ECRYPT_encrypt_blocks(); + * ECRYPT_encrypt_bytes(); + * ECRYPT_encrypt_blocks(); + */ + +void ECRYPT_encrypt_bytes( + ECRYPT_ctx* ctx, + const u8* plaintext, + u8* ciphertext, + u32 msglen); /* Message length in bytes. */ + +void ECRYPT_decrypt_bytes( + ECRYPT_ctx* ctx, + const u8* ciphertext, + u8* plaintext, + u32 msglen); /* Message length in bytes. */ + +/* ------------------------------------------------------------------------- */ + +/* Optional features */ + +/* + * For testing purposes it can sometimes be useful to have a function + * which immediately generates keystream without having to provide it + * with a zero plaintext. If your cipher cannot provide this function + * (e.g., because it is not strictly a synchronous cipher), please + * reset the ECRYPT_GENERATES_KEYSTREAM flag. + */ + +#define ECRYPT_GENERATES_KEYSTREAM +#ifdef ECRYPT_GENERATES_KEYSTREAM + +void ECRYPT_keystream_bytes( + ECRYPT_ctx* ctx, + u8* keystream, + u32 length); /* Length of keystream in bytes. */ + +#endif + +/* ------------------------------------------------------------------------- */ + +/* Optional optimizations */ + +/* + * By default, the functions in this section are implemented using + * calls to functions declared above. However, you might want to + * implement them differently for performance reasons. + */ + +/* + * All-in-one encryption/decryption of (short) packets. + * + * The default definitions of these functions can be found in + * "ecrypt-sync.c". If you want to implement them differently, please + * undef the ECRYPT_USES_DEFAULT_ALL_IN_ONE flag. + */ +#define ECRYPT_USES_DEFAULT_ALL_IN_ONE /* [edit] */ + +void ECRYPT_encrypt_packet( + ECRYPT_ctx* ctx, + const u8* iv, + const u8* plaintext, + u8* ciphertext, + u32 msglen); + +void ECRYPT_decrypt_packet( + ECRYPT_ctx* ctx, + const u8* iv, + const u8* ciphertext, + u8* plaintext, + u32 msglen); + +/* + * Encryption/decryption of blocks. + * + * By default, these functions are defined as macros. If you want to + * provide a different implementation, please undef the + * ECRYPT_USES_DEFAULT_BLOCK_MACROS flag and implement the functions + * declared below. + */ + +#define ECRYPT_BLOCKLENGTH 64 /* [edit] */ + +#define ECRYPT_USES_DEFAULT_BLOCK_MACROS /* [edit] */ +#ifdef ECRYPT_USES_DEFAULT_BLOCK_MACROS + +#define ECRYPT_encrypt_blocks(ctx, plaintext, ciphertext, blocks) \ + ECRYPT_encrypt_bytes(ctx, plaintext, ciphertext, \ + (blocks) * ECRYPT_BLOCKLENGTH) + +#define ECRYPT_decrypt_blocks(ctx, ciphertext, plaintext, blocks) \ + ECRYPT_decrypt_bytes(ctx, ciphertext, plaintext, \ + (blocks) * ECRYPT_BLOCKLENGTH) + +#ifdef ECRYPT_GENERATES_KEYSTREAM + +#define ECRYPT_keystream_blocks(ctx, keystream, blocks) \ + ECRYPT_keystream_bytes(ctx, keystream, \ + (blocks) * ECRYPT_BLOCKLENGTH) + +#endif + +#else + +void ECRYPT_encrypt_blocks( + ECRYPT_ctx* ctx, + const u8* plaintext, + u8* ciphertext, + u32 blocks); /* Message length in blocks. */ + +void ECRYPT_decrypt_blocks( + ECRYPT_ctx* ctx, + const u8* ciphertext, + u8* plaintext, + u32 blocks); /* Message length in blocks. */ + +#ifdef ECRYPT_GENERATES_KEYSTREAM + +void ECRYPT_keystream_blocks( + ECRYPT_ctx* ctx, + const u8* keystream, + u32 blocks); /* Keystream length in blocks. */ + +#endif + +#endif + +/* + * If your cipher can be implemented in different ways, you can use + * the ECRYPT_VARIANT parameter to allow the user to choose between + * them at compile time (e.g., gcc -DECRYPT_VARIANT=3 ...). Please + * only use this possibility if you really think it could make a + * significant difference and keep the number of variants + * (ECRYPT_MAXVARIANT) as small as possible (definitely not more than + * 10). Note also that all variants should have exactly the same + * external interface (i.e., the same ECRYPT_BLOCKLENGTH, etc.). + */ +#define ECRYPT_MAXVARIANT 1 /* [edit] */ + +#ifndef ECRYPT_VARIANT +#define ECRYPT_VARIANT 1 +#endif + +#if (ECRYPT_VARIANT > ECRYPT_MAXVARIANT) +#error this variant does not exist +#endif + +/* ------------------------------------------------------------------------- */ + +#endif diff --git a/src/crypto/astrobwt/salsa20_ref/salsa20.c b/src/crypto/astrobwt/salsa20_ref/salsa20.c new file mode 100644 index 00000000..bfced222 --- /dev/null +++ b/src/crypto/astrobwt/salsa20_ref/salsa20.c @@ -0,0 +1,219 @@ +/* +salsa20-merged.c version 20051118 +D. J. Bernstein +Public domain. +*/ + +#include "ecrypt-sync.h" + +#define ROTATE(v,c) (ROTL32(v,c)) +#define XOR(v,w) ((v) ^ (w)) +#define PLUS(v,w) (U32V((v) + (w))) +#define PLUSONE(v) (PLUS((v),1)) + +void ECRYPT_init(void) +{ + return; +} + +static const char sigma[16] = "expand 32-byte k"; +static const char tau[16] = "expand 16-byte k"; + +void ECRYPT_keysetup(ECRYPT_ctx *x,const u8 *k,u32 kbits,u32 ivbits) +{ + const char *constants; + + x->input[1] = U8TO32_LITTLE(k + 0); + x->input[2] = U8TO32_LITTLE(k + 4); + x->input[3] = U8TO32_LITTLE(k + 8); + x->input[4] = U8TO32_LITTLE(k + 12); + if (kbits == 256) { /* recommended */ + k += 16; + constants = sigma; + } else { /* kbits == 128 */ + constants = tau; + } + x->input[11] = U8TO32_LITTLE(k + 0); + x->input[12] = U8TO32_LITTLE(k + 4); + x->input[13] = U8TO32_LITTLE(k + 8); + x->input[14] = U8TO32_LITTLE(k + 12); + x->input[0] = U8TO32_LITTLE(constants + 0); + x->input[5] = U8TO32_LITTLE(constants + 4); + x->input[10] = U8TO32_LITTLE(constants + 8); + x->input[15] = U8TO32_LITTLE(constants + 12); +} + +void ECRYPT_ivsetup(ECRYPT_ctx *x,const u8 *iv) +{ + x->input[6] = U8TO32_LITTLE(iv + 0); + x->input[7] = U8TO32_LITTLE(iv + 4); + x->input[8] = 0; + x->input[9] = 0; +} + +void ECRYPT_encrypt_bytes(ECRYPT_ctx *x,const u8 *m,u8 *c,u32 bytes) +{ + u32 x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15; + u32 j0, j1, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14, j15; + u8 *ctarget = 0; + u8 tmp[64]; + int i; + + if (!bytes) return; + + j0 = x->input[0]; + j1 = x->input[1]; + j2 = x->input[2]; + j3 = x->input[3]; + j4 = x->input[4]; + j5 = x->input[5]; + j6 = x->input[6]; + j7 = x->input[7]; + j8 = x->input[8]; + j9 = x->input[9]; + j10 = x->input[10]; + j11 = x->input[11]; + j12 = x->input[12]; + j13 = x->input[13]; + j14 = x->input[14]; + j15 = x->input[15]; + + for (;;) { + if (bytes < 64) { + for (i = 0;i < bytes;++i) tmp[i] = m[i]; + m = tmp; + ctarget = c; + c = tmp; + } + x0 = j0; + x1 = j1; + x2 = j2; + x3 = j3; + x4 = j4; + x5 = j5; + x6 = j6; + x7 = j7; + x8 = j8; + x9 = j9; + x10 = j10; + x11 = j11; + x12 = j12; + x13 = j13; + x14 = j14; + x15 = j15; + for (i = 20;i > 0;i -= 2) { + x4 = XOR( x4,ROTATE(PLUS( x0,x12), 7)); + x8 = XOR( x8,ROTATE(PLUS( x4, x0), 9)); + x12 = XOR(x12,ROTATE(PLUS( x8, x4),13)); + x0 = XOR( x0,ROTATE(PLUS(x12, x8),18)); + x9 = XOR( x9,ROTATE(PLUS( x5, x1), 7)); + x13 = XOR(x13,ROTATE(PLUS( x9, x5), 9)); + x1 = XOR( x1,ROTATE(PLUS(x13, x9),13)); + x5 = XOR( x5,ROTATE(PLUS( x1,x13),18)); + x14 = XOR(x14,ROTATE(PLUS(x10, x6), 7)); + x2 = XOR( x2,ROTATE(PLUS(x14,x10), 9)); + x6 = XOR( x6,ROTATE(PLUS( x2,x14),13)); + x10 = XOR(x10,ROTATE(PLUS( x6, x2),18)); + x3 = XOR( x3,ROTATE(PLUS(x15,x11), 7)); + x7 = XOR( x7,ROTATE(PLUS( x3,x15), 9)); + x11 = XOR(x11,ROTATE(PLUS( x7, x3),13)); + x15 = XOR(x15,ROTATE(PLUS(x11, x7),18)); + x1 = XOR( x1,ROTATE(PLUS( x0, x3), 7)); + x2 = XOR( x2,ROTATE(PLUS( x1, x0), 9)); + x3 = XOR( x3,ROTATE(PLUS( x2, x1),13)); + x0 = XOR( x0,ROTATE(PLUS( x3, x2),18)); + x6 = XOR( x6,ROTATE(PLUS( x5, x4), 7)); + x7 = XOR( x7,ROTATE(PLUS( x6, x5), 9)); + x4 = XOR( x4,ROTATE(PLUS( x7, x6),13)); + x5 = XOR( x5,ROTATE(PLUS( x4, x7),18)); + x11 = XOR(x11,ROTATE(PLUS(x10, x9), 7)); + x8 = XOR( x8,ROTATE(PLUS(x11,x10), 9)); + x9 = XOR( x9,ROTATE(PLUS( x8,x11),13)); + x10 = XOR(x10,ROTATE(PLUS( x9, x8),18)); + x12 = XOR(x12,ROTATE(PLUS(x15,x14), 7)); + x13 = XOR(x13,ROTATE(PLUS(x12,x15), 9)); + x14 = XOR(x14,ROTATE(PLUS(x13,x12),13)); + x15 = XOR(x15,ROTATE(PLUS(x14,x13),18)); + } + x0 = PLUS(x0,j0); + x1 = PLUS(x1,j1); + x2 = PLUS(x2,j2); + x3 = PLUS(x3,j3); + x4 = PLUS(x4,j4); + x5 = PLUS(x5,j5); + x6 = PLUS(x6,j6); + x7 = PLUS(x7,j7); + x8 = PLUS(x8,j8); + x9 = PLUS(x9,j9); + x10 = PLUS(x10,j10); + x11 = PLUS(x11,j11); + x12 = PLUS(x12,j12); + x13 = PLUS(x13,j13); + x14 = PLUS(x14,j14); + x15 = PLUS(x15,j15); + + x0 = XOR(x0,U8TO32_LITTLE(m + 0)); + x1 = XOR(x1,U8TO32_LITTLE(m + 4)); + x2 = XOR(x2,U8TO32_LITTLE(m + 8)); + x3 = XOR(x3,U8TO32_LITTLE(m + 12)); + x4 = XOR(x4,U8TO32_LITTLE(m + 16)); + x5 = XOR(x5,U8TO32_LITTLE(m + 20)); + x6 = XOR(x6,U8TO32_LITTLE(m + 24)); + x7 = XOR(x7,U8TO32_LITTLE(m + 28)); + x8 = XOR(x8,U8TO32_LITTLE(m + 32)); + x9 = XOR(x9,U8TO32_LITTLE(m + 36)); + x10 = XOR(x10,U8TO32_LITTLE(m + 40)); + x11 = XOR(x11,U8TO32_LITTLE(m + 44)); + x12 = XOR(x12,U8TO32_LITTLE(m + 48)); + x13 = XOR(x13,U8TO32_LITTLE(m + 52)); + x14 = XOR(x14,U8TO32_LITTLE(m + 56)); + x15 = XOR(x15,U8TO32_LITTLE(m + 60)); + + j8 = PLUSONE(j8); + if (!j8) { + j9 = PLUSONE(j9); + /* stopping at 2^70 bytes per nonce is user's responsibility */ + } + + U32TO8_LITTLE(c + 0,x0); + U32TO8_LITTLE(c + 4,x1); + U32TO8_LITTLE(c + 8,x2); + U32TO8_LITTLE(c + 12,x3); + U32TO8_LITTLE(c + 16,x4); + U32TO8_LITTLE(c + 20,x5); + U32TO8_LITTLE(c + 24,x6); + U32TO8_LITTLE(c + 28,x7); + U32TO8_LITTLE(c + 32,x8); + U32TO8_LITTLE(c + 36,x9); + U32TO8_LITTLE(c + 40,x10); + U32TO8_LITTLE(c + 44,x11); + U32TO8_LITTLE(c + 48,x12); + U32TO8_LITTLE(c + 52,x13); + U32TO8_LITTLE(c + 56,x14); + U32TO8_LITTLE(c + 60,x15); + + if (bytes <= 64) { + if (bytes < 64) { + for (i = 0;i < bytes;++i) ctarget[i] = c[i]; + } + x->input[8] = j8; + x->input[9] = j9; + return; + } + bytes -= 64; + c += 64; + m += 64; + } +} + +void ECRYPT_decrypt_bytes(ECRYPT_ctx *x,const u8 *c,u8 *m,u32 bytes) +{ + ECRYPT_encrypt_bytes(x,c,m,bytes); +} + +void ECRYPT_keystream_bytes(ECRYPT_ctx *x,u8 *stream,u32 bytes) +{ + u32 i; + for (i = 0; i < bytes; ++i) stream[i] = 0; + ECRYPT_encrypt_bytes(x,stream,stream,bytes); +} diff --git a/src/crypto/astrobwt/sha3_256_avx2.S b/src/crypto/astrobwt/sha3_256_avx2.S new file mode 100644 index 00000000..f1d4e3ee --- /dev/null +++ b/src/crypto/astrobwt/sha3_256_avx2.S @@ -0,0 +1,57 @@ +;# XMRig +;# Copyright 2010 Jeff Garzik +;# Copyright 2012-2014 pooler +;# Copyright 2014 Lucas Jones +;# Copyright 2014-2016 Wolf9466 +;# Copyright 2016 Jay D Dee +;# Copyright 2017-2019 XMR-Stak , +;# Copyright 2018 Lee Clagett +;# Copyright 2018-2019 tevador +;# Copyright 2000 Transmeta Corporation +;# Copyright 2004-2008 H. Peter Anvin +;# Copyright 2018-2020 SChernykh +;# Copyright 2016-2020 XMRig , +;# +;# This program is free software: you can redistribute it and/or modify +;# it under the terms of the GNU General Public License as published by +;# the Free Software Foundation, either version 3 of the License, or +;# (at your option) any later version. +;# +;# This program is distributed in the hope that it will be useful, +;# but WITHOUT ANY WARRANTY; without even the implied warranty of +;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;# GNU General Public License for more details. +;# +;# You should have received a copy of the GNU General Public License +;# along with this program. If not, see . +;# + +.intel_syntax noprefix +#if defined(__APPLE__) +.text +#define DECL(x) _##x +#else +.section .text +#define DECL(x) x +#endif + +#define ALIGN .balign +#define dq .quad + +.global DECL(SHA3_256_AVX2_ASM) + +ALIGN 64 +DECL(SHA3_256_AVX2_ASM): + +#include "sha3_256_avx2.inc" + +KeccakF1600_AVX2_ASM: + lea r8,[rip+rot_left+96] + lea r9,[rip+rot_right+96] + lea r10,[rip+rndc] + +#include "sha3_256_keccakf1600_avx2.inc" + +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif diff --git a/src/crypto/astrobwt/sha3_256_avx2.asm b/src/crypto/astrobwt/sha3_256_avx2.asm new file mode 100644 index 00000000..f38e09f1 --- /dev/null +++ b/src/crypto/astrobwt/sha3_256_avx2.asm @@ -0,0 +1,45 @@ +;# XMRig +;# Copyright 2010 Jeff Garzik +;# Copyright 2012-2014 pooler +;# Copyright 2014 Lucas Jones +;# Copyright 2014-2016 Wolf9466 +;# Copyright 2016 Jay D Dee +;# Copyright 2017-2019 XMR-Stak , +;# Copyright 2018 Lee Clagett +;# Copyright 2018-2019 tevador +;# Copyright 2000 Transmeta Corporation +;# Copyright 2004-2008 H. Peter Anvin +;# Copyright 2018-2020 SChernykh +;# Copyright 2016-2020 XMRig , +;# +;# This program is free software: you can redistribute it and/or modify +;# it under the terms of the GNU General Public License as published by +;# the Free Software Foundation, either version 3 of the License, or +;# (at your option) any later version. +;# +;# This program is distributed in the hope that it will be useful, +;# but WITHOUT ANY WARRANTY; without even the implied warranty of +;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;# GNU General Public License for more details. +;# +;# You should have received a copy of the GNU General Public License +;# along with this program. If not, see . +;# + +_SHA3_256_AVX2_ASM SEGMENT PAGE READ EXECUTE +PUBLIC SHA3_256_AVX2_ASM + +ALIGN 64 +SHA3_256_AVX2_ASM: + +include sha3_256_avx2.inc + +KeccakF1600_AVX2_ASM: + lea r8,[rot_left+96] + lea r9,[rot_right+96] + lea r10,[rndc] + +include sha3_256_keccakf1600_avx2.inc + +_SHA3_256_AVX2_ASM ENDS +END diff --git a/src/crypto/astrobwt/sha3_256_avx2.inc b/src/crypto/astrobwt/sha3_256_avx2.inc new file mode 100644 index 00000000..81753dba --- /dev/null +++ b/src/crypto/astrobwt/sha3_256_avx2.inc @@ -0,0 +1,162 @@ +;# XMRig +;# Copyright 2010 Jeff Garzik +;# Copyright 2012-2014 pooler +;# Copyright 2014 Lucas Jones +;# Copyright 2014-2016 Wolf9466 +;# Copyright 2016 Jay D Dee +;# Copyright 2017-2019 XMR-Stak , +;# Copyright 2018 Lee Clagett +;# Copyright 2018-2019 tevador +;# Copyright 2000 Transmeta Corporation +;# Copyright 2004-2008 H. Peter Anvin +;# Copyright 2018-2020 SChernykh +;# Copyright 2016-2020 XMRig , +;# +;# This program is free software: you can redistribute it and/or modify +;# it under the terms of the GNU General Public License as published by +;# the Free Software Foundation, either version 3 of the License, or +;# (at your option) any later version. +;# +;# This program is distributed in the hope that it will be useful, +;# but WITHOUT ANY WARRANTY; without even the implied warranty of +;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;# GNU General Public License for more details. +;# +;# You should have received a copy of the GNU General Public License +;# along with this program. If not, see . +;# + + vzeroupper + + mov qword ptr [rsp+8],rbx + mov qword ptr [rsp+16],rsi + mov qword ptr [rsp+24],rdi + push rbp + push r12 + push r13 + push r14 + push r15 + + sub rsp, 80 + movdqu xmmword ptr [rsp+64], xmm6 + movdqu xmmword ptr [rsp+48], xmm7 + movdqu xmmword ptr [rsp+32], xmm8 + movdqu xmmword ptr [rsp+16], xmm9 + movdqu xmmword ptr [rsp+0], xmm10 + sub rsp, 80 + movdqu xmmword ptr [rsp+64], xmm11 + movdqu xmmword ptr [rsp+48], xmm12 + movdqu xmmword ptr [rsp+32], xmm13 + movdqu xmmword ptr [rsp+16], xmm14 + movdqu xmmword ptr [rsp+0], xmm15 + + sub rsp,320 + lea rbp,[rsp+64] + and rbp,-32 + vpxor xmm0,xmm0,xmm0 + xor edi,edi + mov dword ptr [rbp],50462976 + mov r12,rdx + mov dword ptr [rbp+4],169150212 + mov r14,rdx + mov dword ptr [rbp+8],218436623 + shr r14,3 + and r12d,7 + mov dword ptr [rbp+12],135009046 + mov r13,r8 + mov byte ptr [rbp+16],9 + mov rsi,rcx + mov ebx,edi + vmovdqa ymmword ptr [rbp+32],ymm0 + vmovdqa ymmword ptr [rbp+64],ymm0 + vmovdqa ymmword ptr [rbp+96],ymm0 + vmovdqa ymmword ptr [rbp+128],ymm0 + vmovdqa ymmword ptr [rbp+160],ymm0 + vmovdqa ymmword ptr [rbp+192],ymm0 + vmovdqa ymmword ptr [rbp+224],ymm0 + test r14,r14 + je sha3_main_loop_end + +sha3_main_loop: + movzx eax,byte ptr [rbp+rbx] + lea rcx,[rbp+32] + lea rcx,[rcx+rax*8] + mov rax,qword ptr [rsi] + xor qword ptr [rcx],rax + lea r15,[rbx+1] + cmp rbx,16 + jne skip_keccak + + lea rcx,[rbp+32] + call KeccakF1600_AVX2_ASM + +skip_keccak: + cmp rbx,16 + mov rax,rdi + cmovne rax,r15 + add rsi,8 + mov rbx,rax + sub r14,1 + jne sha3_main_loop + +sha3_main_loop_end: + mov rdx,rdi + test r12,r12 + je sha3_tail_loop_end + mov r8,rdi + +sha3_tail_loop: + movzx eax,byte ptr [rdx+rsi] + inc rdx + shlx rcx,rax,r8 + or rdi,rcx + add r8,8 + cmp rdx,r12 + jb sha3_tail_loop + +sha3_tail_loop_end: + movzx eax,byte ptr [rbp+rbx] + lea rdx,[rbp+32] + lea rdx,[rdx+rax*8] + mov ecx,6 + lea rax,[r12*8] + shlx rcx,rcx,rax + xor rcx,qword ptr [rdx] + mov eax,1 + shl rax,63 + xor rcx,rdi + mov qword ptr [rdx],rcx + xor qword ptr [rbp+104],rax + + lea rcx,[rbp+32] + call KeccakF1600_AVX2_ASM + + vmovups ymm0,ymmword ptr [rbp+32] + vmovups ymmword ptr [r13],ymm0 + vzeroupper + + add rsp,320 + + movdqu xmm15, xmmword ptr [rsp] + movdqu xmm14, xmmword ptr [rsp+16] + movdqu xmm13, xmmword ptr [rsp+32] + movdqu xmm12, xmmword ptr [rsp+48] + movdqu xmm11, xmmword ptr [rsp+64] + add rsp, 80 + movdqu xmm10, xmmword ptr [rsp] + movdqu xmm9, xmmword ptr [rsp+16] + movdqu xmm8, xmmword ptr [rsp+32] + movdqu xmm7, xmmword ptr [rsp+48] + movdqu xmm6, xmmword ptr [rsp+64] + add rsp, 80 + + pop r15 + pop r14 + pop r13 + pop r12 + pop rbp + mov rbx,qword ptr [rsp+8] + mov rsi,qword ptr [rsp+16] + mov rdi,qword ptr [rsp+24] + + ret diff --git a/src/crypto/astrobwt/sha3_256_keccakf1600_avx2.inc b/src/crypto/astrobwt/sha3_256_keccakf1600_avx2.inc new file mode 100644 index 00000000..a9bae47a --- /dev/null +++ b/src/crypto/astrobwt/sha3_256_keccakf1600_avx2.inc @@ -0,0 +1,203 @@ +;# XMRig +;# Copyright 2010 Jeff Garzik +;# Copyright 2012-2014 pooler +;# Copyright 2014 Lucas Jones +;# Copyright 2014-2016 Wolf9466 +;# Copyright 2016 Jay D Dee +;# Copyright 2017-2019 XMR-Stak , +;# Copyright 2018 Lee Clagett +;# Copyright 2018-2019 tevador +;# Copyright 2000 Transmeta Corporation +;# Copyright 2004-2008 H. Peter Anvin +;# Copyright 2018-2020 SChernykh +;# Copyright 2016-2020 XMRig , +;# +;# This program is free software: you can redistribute it and/or modify +;# it under the terms of the GNU General Public License as published by +;# the Free Software Foundation, either version 3 of the License, or +;# (at your option) any later version. +;# +;# This program is distributed in the hope that it will be useful, +;# but WITHOUT ANY WARRANTY; without even the implied warranty of +;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;# GNU General Public License for more details. +;# +;# You should have received a copy of the GNU General Public License +;# along with this program. If not, see . +;# + + mov eax,24 + lea rcx,[rcx+96] + vpbroadcastq ymm0,QWORD PTR [rcx-96] + vmovdqu ymm1,YMMWORD PTR [rcx-88] + vmovdqu ymm2,YMMWORD PTR [rcx-56] + vmovdqu ymm3,YMMWORD PTR [rcx-24] + vmovdqu ymm4,YMMWORD PTR [rcx+8] + vmovdqu ymm5,YMMWORD PTR [rcx+40] + vmovdqu ymm6,YMMWORD PTR [rcx+72] + +ALIGN 64 +Loop_avx2: + vpshufd ymm13,ymm2,78 + vpxor ymm12,ymm5,ymm3 + vpxor ymm9,ymm4,ymm6 + vpxor ymm12,ymm12,ymm1 + vpxor ymm12,ymm12,ymm9 + vpermq ymm11,ymm12,147 + vpxor ymm13,ymm13,ymm2 + vpermq ymm7,ymm13,78 + vpsrlq ymm8,ymm12,63 + vpaddq ymm9,ymm12,ymm12 + vpor ymm8,ymm8,ymm9 + vpermq ymm15,ymm8,57 + vpxor ymm14,ymm8,ymm11 + vpermq ymm14,ymm14,0 + vpxor ymm13,ymm13,ymm0 + vpxor ymm13,ymm13,ymm7 + vpsrlq ymm7,ymm13,63 + vpaddq ymm8,ymm13,ymm13 + vpor ymm8,ymm8,ymm7 + vpxor ymm2,ymm2,ymm14 + vpxor ymm0,ymm0,ymm14 + vpblendd ymm15,ymm15,ymm8,192 + vpblendd ymm11,ymm11,ymm13,3 + vpxor ymm15,ymm15,ymm11 + vpsllvq ymm10,ymm2,YMMWORD PTR [r8-96] + vpsrlvq ymm2,ymm2,YMMWORD PTR [r9-96] + vpor ymm2,ymm2,ymm10 + vpxor ymm3,ymm3,ymm15 + vpsllvq ymm11,ymm3,YMMWORD PTR [r8-32] + vpsrlvq ymm3,ymm3,YMMWORD PTR [r9-32] + vpor ymm3,ymm3,ymm11 + vpxor ymm4,ymm4,ymm15 + vpsllvq ymm12,ymm4,YMMWORD PTR [r8] + vpsrlvq ymm4,ymm4,YMMWORD PTR [r9] + vpor ymm4,ymm4,ymm12 + vpxor ymm5,ymm5,ymm15 + vpsllvq ymm13,ymm5,YMMWORD PTR [r8+32] + vpsrlvq ymm5,ymm5,YMMWORD PTR [r9+32] + vpor ymm5,ymm5,ymm13 + vpxor ymm6,ymm6,ymm15 + vpermq ymm10,ymm2,141 + vpermq ymm11,ymm3,141 + vpsllvq ymm14,ymm6,YMMWORD PTR [r8+64] + vpsrlvq ymm8,ymm6,YMMWORD PTR [r9+64] + vpor ymm8,ymm8,ymm14 + vpxor ymm1,ymm1,ymm15 + vpermq ymm12,ymm4,27 + vpermq ymm13,ymm5,114 + vpsllvq ymm15,ymm1,YMMWORD PTR [r8-64] + vpsrlvq ymm9,ymm1,YMMWORD PTR [r9-64] + vpor ymm9,ymm9,ymm15 + vpsrldq ymm14,ymm8,8 + vpandn ymm7,ymm8,ymm14 + vpblendd ymm3,ymm9,ymm13,12 + vpblendd ymm15,ymm11,ymm9,12 + vpblendd ymm5,ymm10,ymm11,12 + vpblendd ymm14,ymm9,ymm10,12 + vpblendd ymm3,ymm3,ymm11,48 + vpblendd ymm15,ymm15,ymm12,48 + vpblendd ymm5,ymm5,ymm9,48 + vpblendd ymm14,ymm14,ymm13,48 + vpblendd ymm3,ymm3,ymm12,192 + vpblendd ymm15,ymm15,ymm13,192 + vpblendd ymm5,ymm5,ymm13,192 + vpblendd ymm14,ymm14,ymm11,192 + vpandn ymm3,ymm3,ymm15 + vpandn ymm5,ymm5,ymm14 + vpblendd ymm6,ymm12,ymm9,12 + vpblendd ymm15,ymm10,ymm12,12 + vpxor ymm3,ymm3,ymm10 + vpblendd ymm6,ymm6,ymm10,48 + vpblendd ymm15,ymm15,ymm11,48 + vpxor ymm5,ymm5,ymm12 + vpblendd ymm6,ymm6,ymm11,192 + vpblendd ymm15,ymm15,ymm9,192 + vpandn ymm6,ymm6,ymm15 + vpxor ymm6,ymm6,ymm13 + vpermq ymm4,ymm8,30 + vpblendd ymm15,ymm4,ymm0,48 + vpermq ymm1,ymm8,57 + vpblendd ymm1,ymm1,ymm0,192 + vpandn ymm1,ymm1,ymm15 + vpblendd ymm2,ymm11,ymm12,12 + vpblendd ymm14,ymm13,ymm11,12 + vpblendd ymm2,ymm2,ymm13,48 + vpblendd ymm14,ymm14,ymm10,48 + vpblendd ymm2,ymm2,ymm10,192 + vpblendd ymm14,ymm14,ymm12,192 + vpandn ymm2,ymm2,ymm14 + vpxor ymm2,ymm2,ymm9 + vpermq ymm7,ymm7,0 + vpermq ymm3,ymm3,27 + vpermq ymm5,ymm5,141 + vpermq ymm6,ymm6,114 + vpblendd ymm4,ymm13,ymm10,12 + vpblendd ymm14,ymm12,ymm13,12 + vpblendd ymm4,ymm4,ymm12,48 + vpblendd ymm14,ymm14,ymm9,48 + vpblendd ymm4,ymm4,ymm9,192 + vpblendd ymm14,ymm14,ymm10,192 + vpandn ymm4,ymm4,ymm14 + vpxor ymm0,ymm0,ymm7 + vpxor ymm1,ymm1,ymm8 + vpxor ymm4,ymm4,ymm11 + vpxor ymm0,ymm0,YMMWORD PTR [r10] + lea r10,[r10+32] + dec eax + jnz Loop_avx2 + + vmovq QWORD PTR [rcx-96],xmm0 + vmovdqu YMMWORD PTR [rcx-88],ymm1 + vmovdqu YMMWORD PTR [rcx-56],ymm2 + vmovdqu YMMWORD PTR [rcx-24],ymm3 + vmovdqu YMMWORD PTR [rcx+8],ymm4 + vmovdqu YMMWORD PTR [rcx+40],ymm5 + vmovdqu YMMWORD PTR [rcx+72],ymm6 + + ret + +ALIGN 32 +rot_left: + dq 3, 18, 36, 41 + dq 1, 62, 28, 27 + dq 45, 6, 56, 39 + dq 10, 61, 55, 8 + dq 2, 15, 25, 20 + dq 44, 43, 21, 14 + +ALIGN 32 +rot_right: + dq 64-3, 64-18, 64-36, 64-41 + dq 64-1, 64-62, 64-28, 64-27 + dq 64-45, 64-6, 64-56, 64-39 + dq 64-10, 64-61, 64-55, 64-8 + dq 64-2, 64-15, 64-25, 64-20 + dq 64-44, 64-43, 64-21, 64-14 + +ALIGN 32 +rndc: + dq 1, 1, 1, 1 + dq 32898, 32898, 32898, 32898 + dq 9223372036854808714, 9223372036854808714, 9223372036854808714, 9223372036854808714 + dq 9223372039002292224, 9223372039002292224, 9223372039002292224, 9223372039002292224 + dq 32907, 32907, 32907, 32907 + dq 2147483649, 2147483649, 2147483649, 2147483649 + dq 9223372039002292353, 9223372039002292353, 9223372039002292353, 9223372039002292353 + dq 9223372036854808585, 9223372036854808585, 9223372036854808585, 9223372036854808585 + dq 138, 138, 138, 138 + dq 136, 136, 136, 136 + dq 2147516425, 2147516425, 2147516425, 2147516425 + dq 2147483658, 2147483658, 2147483658, 2147483658 + dq 2147516555, 2147516555, 2147516555, 2147516555 + dq 9223372036854775947, 9223372036854775947, 9223372036854775947, 9223372036854775947 + dq 9223372036854808713, 9223372036854808713, 9223372036854808713, 9223372036854808713 + dq 9223372036854808579, 9223372036854808579, 9223372036854808579, 9223372036854808579 + dq 9223372036854808578, 9223372036854808578, 9223372036854808578, 9223372036854808578 + dq 9223372036854775936, 9223372036854775936, 9223372036854775936, 9223372036854775936 + dq 32778, 32778, 32778, 32778 + dq 9223372039002259466, 9223372039002259466, 9223372039002259466, 9223372039002259466 + dq 9223372039002292353, 9223372039002292353, 9223372039002292353, 9223372039002292353 + dq 9223372036854808704, 9223372036854808704, 9223372036854808704, 9223372036854808704 + dq 2147483649, 2147483649, 2147483649, 2147483649 + dq 9223372039002292232, 9223372039002292232, 9223372039002292232, 9223372039002292232 diff --git a/src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c b/src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c new file mode 100644 index 00000000..dab2b74d --- /dev/null +++ b/src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c @@ -0,0 +1,98 @@ +/* + * ISC License + * + * Copyright (c) 2013-2021 + * Frank Denis + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include +#include +#include + +#include +#include +#include +#include + +#define ROUNDS 20 + +typedef struct salsa_ctx { + uint32_t input[16]; +} salsa_ctx; + +static const int TR[16] = { + 0, 5, 10, 15, 12, 1, 6, 11, 8, 13, 2, 7, 4, 9, 14, 3 +}; + +#define LOAD32_LE(p) *((uint32_t*)(p)) +#define STORE32_LE(dst, src) memcpy((dst), &(src), sizeof(uint32_t)) + +static void +salsa_keysetup(salsa_ctx *ctx, const uint8_t *k) +{ + ctx->input[TR[1]] = LOAD32_LE(k + 0); + ctx->input[TR[2]] = LOAD32_LE(k + 4); + ctx->input[TR[3]] = LOAD32_LE(k + 8); + ctx->input[TR[4]] = LOAD32_LE(k + 12); + ctx->input[TR[11]] = LOAD32_LE(k + 16); + ctx->input[TR[12]] = LOAD32_LE(k + 20); + ctx->input[TR[13]] = LOAD32_LE(k + 24); + ctx->input[TR[14]] = LOAD32_LE(k + 28); + ctx->input[TR[0]] = 0x61707865; + ctx->input[TR[5]] = 0x3320646e; + ctx->input[TR[10]] = 0x79622d32; + ctx->input[TR[15]] = 0x6b206574; +} + +static void +salsa_ivsetup(salsa_ctx *ctx, const uint8_t *iv, const uint8_t *counter) +{ + ctx->input[TR[6]] = LOAD32_LE(iv + 0); + ctx->input[TR[7]] = LOAD32_LE(iv + 4); + ctx->input[TR[8]] = counter == NULL ? 0 : LOAD32_LE(counter + 0); + ctx->input[TR[9]] = counter == NULL ? 0 : LOAD32_LE(counter + 4); +} + +static void +salsa20_encrypt_bytes(salsa_ctx *ctx, const uint8_t *m, uint8_t *c, + unsigned long long bytes) +{ + uint32_t * const x = &ctx->input[0]; + + if (!bytes) { + return; /* LCOV_EXCL_LINE */ + } + +#include "u8.h" +#include "u4.h" +#include "u1.h" +#include "u0.h" +} + +int salsa20_stream_avx2(void* c, uint64_t clen, const void* iv, const void* key) +{ + struct salsa_ctx ctx; + + if (!clen) { + return 0; + } + + salsa_keysetup(&ctx, (const uint8_t*)key); + salsa_ivsetup(&ctx, (const uint8_t*)iv, NULL); + memset(c, 0, clen); + salsa20_encrypt_bytes(&ctx, (const uint8_t*)c, (uint8_t*)c, clen); + + return 0; +} diff --git a/src/crypto/astrobwt/xmm6int/u0.h b/src/crypto/astrobwt/xmm6int/u0.h new file mode 100644 index 00000000..ab93f742 --- /dev/null +++ b/src/crypto/astrobwt/xmm6int/u0.h @@ -0,0 +1,193 @@ +if (bytes > 0) { + __m128i diag0 = _mm_loadu_si128((const __m128i *) (x + 0)); + __m128i diag1 = _mm_loadu_si128((const __m128i *) (x + 4)); + __m128i diag2 = _mm_loadu_si128((const __m128i *) (x + 8)); + __m128i diag3 = _mm_loadu_si128((const __m128i *) (x + 12)); + __m128i a0, a1, a2, a3, a4, a5, a6, a7; + __m128i b0, b1, b2, b3, b4, b5, b6, b7; + uint8_t partialblock[64]; + + unsigned int i; + + a0 = diag1; + for (i = 0; i < ROUNDS; i += 4) { + a0 = _mm_add_epi32(a0, diag0); + a1 = diag0; + b0 = a0; + a0 = _mm_slli_epi32(a0, 7); + b0 = _mm_srli_epi32(b0, 25); + diag3 = _mm_xor_si128(diag3, a0); + + diag3 = _mm_xor_si128(diag3, b0); + + a1 = _mm_add_epi32(a1, diag3); + a2 = diag3; + b1 = a1; + a1 = _mm_slli_epi32(a1, 9); + b1 = _mm_srli_epi32(b1, 23); + diag2 = _mm_xor_si128(diag2, a1); + diag3 = _mm_shuffle_epi32(diag3, 0x93); + diag2 = _mm_xor_si128(diag2, b1); + + a2 = _mm_add_epi32(a2, diag2); + a3 = diag2; + b2 = a2; + a2 = _mm_slli_epi32(a2, 13); + b2 = _mm_srli_epi32(b2, 19); + diag1 = _mm_xor_si128(diag1, a2); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag1 = _mm_xor_si128(diag1, b2); + + a3 = _mm_add_epi32(a3, diag1); + a4 = diag3; + b3 = a3; + a3 = _mm_slli_epi32(a3, 18); + b3 = _mm_srli_epi32(b3, 14); + diag0 = _mm_xor_si128(diag0, a3); + diag1 = _mm_shuffle_epi32(diag1, 0x39); + diag0 = _mm_xor_si128(diag0, b3); + + a4 = _mm_add_epi32(a4, diag0); + a5 = diag0; + b4 = a4; + a4 = _mm_slli_epi32(a4, 7); + b4 = _mm_srli_epi32(b4, 25); + diag1 = _mm_xor_si128(diag1, a4); + + diag1 = _mm_xor_si128(diag1, b4); + + a5 = _mm_add_epi32(a5, diag1); + a6 = diag1; + b5 = a5; + a5 = _mm_slli_epi32(a5, 9); + b5 = _mm_srli_epi32(b5, 23); + diag2 = _mm_xor_si128(diag2, a5); + diag1 = _mm_shuffle_epi32(diag1, 0x93); + diag2 = _mm_xor_si128(diag2, b5); + + a6 = _mm_add_epi32(a6, diag2); + a7 = diag2; + b6 = a6; + a6 = _mm_slli_epi32(a6, 13); + b6 = _mm_srli_epi32(b6, 19); + diag3 = _mm_xor_si128(diag3, a6); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag3 = _mm_xor_si128(diag3, b6); + + a7 = _mm_add_epi32(a7, diag3); + a0 = diag1; + b7 = a7; + a7 = _mm_slli_epi32(a7, 18); + b7 = _mm_srli_epi32(b7, 14); + diag0 = _mm_xor_si128(diag0, a7); + diag3 = _mm_shuffle_epi32(diag3, 0x39); + diag0 = _mm_xor_si128(diag0, b7); + + a0 = _mm_add_epi32(a0, diag0); + a1 = diag0; + b0 = a0; + a0 = _mm_slli_epi32(a0, 7); + b0 = _mm_srli_epi32(b0, 25); + diag3 = _mm_xor_si128(diag3, a0); + + diag3 = _mm_xor_si128(diag3, b0); + + a1 = _mm_add_epi32(a1, diag3); + a2 = diag3; + b1 = a1; + a1 = _mm_slli_epi32(a1, 9); + b1 = _mm_srli_epi32(b1, 23); + diag2 = _mm_xor_si128(diag2, a1); + diag3 = _mm_shuffle_epi32(diag3, 0x93); + diag2 = _mm_xor_si128(diag2, b1); + + a2 = _mm_add_epi32(a2, diag2); + a3 = diag2; + b2 = a2; + a2 = _mm_slli_epi32(a2, 13); + b2 = _mm_srli_epi32(b2, 19); + diag1 = _mm_xor_si128(diag1, a2); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag1 = _mm_xor_si128(diag1, b2); + + a3 = _mm_add_epi32(a3, diag1); + a4 = diag3; + b3 = a3; + a3 = _mm_slli_epi32(a3, 18); + b3 = _mm_srli_epi32(b3, 14); + diag0 = _mm_xor_si128(diag0, a3); + diag1 = _mm_shuffle_epi32(diag1, 0x39); + diag0 = _mm_xor_si128(diag0, b3); + + a4 = _mm_add_epi32(a4, diag0); + a5 = diag0; + b4 = a4; + a4 = _mm_slli_epi32(a4, 7); + b4 = _mm_srli_epi32(b4, 25); + diag1 = _mm_xor_si128(diag1, a4); + + diag1 = _mm_xor_si128(diag1, b4); + + a5 = _mm_add_epi32(a5, diag1); + a6 = diag1; + b5 = a5; + a5 = _mm_slli_epi32(a5, 9); + b5 = _mm_srli_epi32(b5, 23); + diag2 = _mm_xor_si128(diag2, a5); + diag1 = _mm_shuffle_epi32(diag1, 0x93); + diag2 = _mm_xor_si128(diag2, b5); + + a6 = _mm_add_epi32(a6, diag2); + a7 = diag2; + b6 = a6; + a6 = _mm_slli_epi32(a6, 13); + b6 = _mm_srli_epi32(b6, 19); + diag3 = _mm_xor_si128(diag3, a6); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag3 = _mm_xor_si128(diag3, b6); + + a7 = _mm_add_epi32(a7, diag3); + a0 = diag1; + b7 = a7; + a7 = _mm_slli_epi32(a7, 18); + b7 = _mm_srli_epi32(b7, 14); + diag0 = _mm_xor_si128(diag0, a7); + diag3 = _mm_shuffle_epi32(diag3, 0x39); + diag0 = _mm_xor_si128(diag0, b7); + } + + diag0 = _mm_add_epi32(diag0, _mm_loadu_si128((const __m128i *) (x + 0))); + diag1 = _mm_add_epi32(diag1, _mm_loadu_si128((const __m128i *) (x + 4))); + diag2 = _mm_add_epi32(diag2, _mm_loadu_si128((const __m128i *) (x + 8))); + diag3 = _mm_add_epi32(diag3, _mm_loadu_si128((const __m128i *) (x + 12))); + +#define ONEQUAD_SHUFFLE(A, B, C, D) \ + do { \ + uint32_t in##A = _mm_cvtsi128_si32(diag0); \ + uint32_t in##B = _mm_cvtsi128_si32(diag1); \ + uint32_t in##C = _mm_cvtsi128_si32(diag2); \ + uint32_t in##D = _mm_cvtsi128_si32(diag3); \ + diag0 = _mm_shuffle_epi32(diag0, 0x39); \ + diag1 = _mm_shuffle_epi32(diag1, 0x39); \ + diag2 = _mm_shuffle_epi32(diag2, 0x39); \ + diag3 = _mm_shuffle_epi32(diag3, 0x39); \ + *(uint32_t *) (partialblock + (A * 4)) = in##A; \ + *(uint32_t *) (partialblock + (B * 4)) = in##B; \ + *(uint32_t *) (partialblock + (C * 4)) = in##C; \ + *(uint32_t *) (partialblock + (D * 4)) = in##D; \ + } while (0) + +#define ONEQUAD(A, B, C, D) ONEQUAD_SHUFFLE(A, B, C, D) + + ONEQUAD(0, 12, 8, 4); + ONEQUAD(5, 1, 13, 9); + ONEQUAD(10, 6, 2, 14); + ONEQUAD(15, 11, 7, 3); + +#undef ONEQUAD +#undef ONEQUAD_SHUFFLE + + for (i = 0; i < bytes; i++) { + c[i] = m[i] ^ partialblock[i]; + } +} diff --git a/src/crypto/astrobwt/xmm6int/u1.h b/src/crypto/astrobwt/xmm6int/u1.h new file mode 100644 index 00000000..e82521cd --- /dev/null +++ b/src/crypto/astrobwt/xmm6int/u1.h @@ -0,0 +1,207 @@ +while (bytes >= 64) { + __m128i diag0 = _mm_loadu_si128((const __m128i *) (x + 0)); + __m128i diag1 = _mm_loadu_si128((const __m128i *) (x + 4)); + __m128i diag2 = _mm_loadu_si128((const __m128i *) (x + 8)); + __m128i diag3 = _mm_loadu_si128((const __m128i *) (x + 12)); + __m128i a0, a1, a2, a3, a4, a5, a6, a7; + __m128i b0, b1, b2, b3, b4, b5, b6, b7; + + uint32_t in8; + uint32_t in9; + int i; + + a0 = diag1; + for (i = 0; i < ROUNDS; i += 4) { + a0 = _mm_add_epi32(a0, diag0); + a1 = diag0; + b0 = a0; + a0 = _mm_slli_epi32(a0, 7); + b0 = _mm_srli_epi32(b0, 25); + diag3 = _mm_xor_si128(diag3, a0); + + diag3 = _mm_xor_si128(diag3, b0); + + a1 = _mm_add_epi32(a1, diag3); + a2 = diag3; + b1 = a1; + a1 = _mm_slli_epi32(a1, 9); + b1 = _mm_srli_epi32(b1, 23); + diag2 = _mm_xor_si128(diag2, a1); + diag3 = _mm_shuffle_epi32(diag3, 0x93); + diag2 = _mm_xor_si128(diag2, b1); + + a2 = _mm_add_epi32(a2, diag2); + a3 = diag2; + b2 = a2; + a2 = _mm_slli_epi32(a2, 13); + b2 = _mm_srli_epi32(b2, 19); + diag1 = _mm_xor_si128(diag1, a2); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag1 = _mm_xor_si128(diag1, b2); + + a3 = _mm_add_epi32(a3, diag1); + a4 = diag3; + b3 = a3; + a3 = _mm_slli_epi32(a3, 18); + b3 = _mm_srli_epi32(b3, 14); + diag0 = _mm_xor_si128(diag0, a3); + diag1 = _mm_shuffle_epi32(diag1, 0x39); + diag0 = _mm_xor_si128(diag0, b3); + + a4 = _mm_add_epi32(a4, diag0); + a5 = diag0; + b4 = a4; + a4 = _mm_slli_epi32(a4, 7); + b4 = _mm_srli_epi32(b4, 25); + diag1 = _mm_xor_si128(diag1, a4); + + diag1 = _mm_xor_si128(diag1, b4); + + a5 = _mm_add_epi32(a5, diag1); + a6 = diag1; + b5 = a5; + a5 = _mm_slli_epi32(a5, 9); + b5 = _mm_srli_epi32(b5, 23); + diag2 = _mm_xor_si128(diag2, a5); + diag1 = _mm_shuffle_epi32(diag1, 0x93); + diag2 = _mm_xor_si128(diag2, b5); + + a6 = _mm_add_epi32(a6, diag2); + a7 = diag2; + b6 = a6; + a6 = _mm_slli_epi32(a6, 13); + b6 = _mm_srli_epi32(b6, 19); + diag3 = _mm_xor_si128(diag3, a6); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag3 = _mm_xor_si128(diag3, b6); + + a7 = _mm_add_epi32(a7, diag3); + a0 = diag1; + b7 = a7; + a7 = _mm_slli_epi32(a7, 18); + b7 = _mm_srli_epi32(b7, 14); + diag0 = _mm_xor_si128(diag0, a7); + diag3 = _mm_shuffle_epi32(diag3, 0x39); + diag0 = _mm_xor_si128(diag0, b7); + + a0 = _mm_add_epi32(a0, diag0); + a1 = diag0; + b0 = a0; + a0 = _mm_slli_epi32(a0, 7); + b0 = _mm_srli_epi32(b0, 25); + diag3 = _mm_xor_si128(diag3, a0); + + diag3 = _mm_xor_si128(diag3, b0); + + a1 = _mm_add_epi32(a1, diag3); + a2 = diag3; + b1 = a1; + a1 = _mm_slli_epi32(a1, 9); + b1 = _mm_srli_epi32(b1, 23); + diag2 = _mm_xor_si128(diag2, a1); + diag3 = _mm_shuffle_epi32(diag3, 0x93); + diag2 = _mm_xor_si128(diag2, b1); + + a2 = _mm_add_epi32(a2, diag2); + a3 = diag2; + b2 = a2; + a2 = _mm_slli_epi32(a2, 13); + b2 = _mm_srli_epi32(b2, 19); + diag1 = _mm_xor_si128(diag1, a2); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag1 = _mm_xor_si128(diag1, b2); + + a3 = _mm_add_epi32(a3, diag1); + a4 = diag3; + b3 = a3; + a3 = _mm_slli_epi32(a3, 18); + b3 = _mm_srli_epi32(b3, 14); + diag0 = _mm_xor_si128(diag0, a3); + diag1 = _mm_shuffle_epi32(diag1, 0x39); + diag0 = _mm_xor_si128(diag0, b3); + + a4 = _mm_add_epi32(a4, diag0); + a5 = diag0; + b4 = a4; + a4 = _mm_slli_epi32(a4, 7); + b4 = _mm_srli_epi32(b4, 25); + diag1 = _mm_xor_si128(diag1, a4); + + diag1 = _mm_xor_si128(diag1, b4); + + a5 = _mm_add_epi32(a5, diag1); + a6 = diag1; + b5 = a5; + a5 = _mm_slli_epi32(a5, 9); + b5 = _mm_srli_epi32(b5, 23); + diag2 = _mm_xor_si128(diag2, a5); + diag1 = _mm_shuffle_epi32(diag1, 0x93); + diag2 = _mm_xor_si128(diag2, b5); + + a6 = _mm_add_epi32(a6, diag2); + a7 = diag2; + b6 = a6; + a6 = _mm_slli_epi32(a6, 13); + b6 = _mm_srli_epi32(b6, 19); + diag3 = _mm_xor_si128(diag3, a6); + diag2 = _mm_shuffle_epi32(diag2, 0x4e); + diag3 = _mm_xor_si128(diag3, b6); + + a7 = _mm_add_epi32(a7, diag3); + a0 = diag1; + b7 = a7; + a7 = _mm_slli_epi32(a7, 18); + b7 = _mm_srli_epi32(b7, 14); + diag0 = _mm_xor_si128(diag0, a7); + diag3 = _mm_shuffle_epi32(diag3, 0x39); + diag0 = _mm_xor_si128(diag0, b7); + } + + diag0 = _mm_add_epi32(diag0, _mm_loadu_si128((const __m128i *) (x + 0))); + diag1 = _mm_add_epi32(diag1, _mm_loadu_si128((const __m128i *) (x + 4))); + diag2 = _mm_add_epi32(diag2, _mm_loadu_si128((const __m128i *) (x + 8))); + diag3 = _mm_add_epi32(diag3, _mm_loadu_si128((const __m128i *) (x + 12))); + +#define ONEQUAD_SHUFFLE(A, B, C, D) \ + do { \ + uint32_t in##A = _mm_cvtsi128_si32(diag0); \ + uint32_t in##B = _mm_cvtsi128_si32(diag1); \ + uint32_t in##C = _mm_cvtsi128_si32(diag2); \ + uint32_t in##D = _mm_cvtsi128_si32(diag3); \ + diag0 = _mm_shuffle_epi32(diag0, 0x39); \ + diag1 = _mm_shuffle_epi32(diag1, 0x39); \ + diag2 = _mm_shuffle_epi32(diag2, 0x39); \ + diag3 = _mm_shuffle_epi32(diag3, 0x39); \ + in##A ^= *(const uint32_t *) (m + (A * 4)); \ + in##B ^= *(const uint32_t *) (m + (B * 4)); \ + in##C ^= *(const uint32_t *) (m + (C * 4)); \ + in##D ^= *(const uint32_t *) (m + (D * 4)); \ + *(uint32_t *) (c + (A * 4)) = in##A; \ + *(uint32_t *) (c + (B * 4)) = in##B; \ + *(uint32_t *) (c + (C * 4)) = in##C; \ + *(uint32_t *) (c + (D * 4)) = in##D; \ + } while (0) + +#define ONEQUAD(A, B, C, D) ONEQUAD_SHUFFLE(A, B, C, D) + + ONEQUAD(0, 12, 8, 4); + ONEQUAD(5, 1, 13, 9); + ONEQUAD(10, 6, 2, 14); + ONEQUAD(15, 11, 7, 3); + +#undef ONEQUAD +#undef ONEQUAD_SHUFFLE + + in8 = x[8]; + in9 = x[13]; + in8++; + if (in8 == 0) { + in9++; + } + x[8] = in8; + x[13] = in9; + + c += 64; + m += 64; + bytes -= 64; +} diff --git a/src/crypto/astrobwt/xmm6int/u4.h b/src/crypto/astrobwt/xmm6int/u4.h new file mode 100644 index 00000000..474f4860 --- /dev/null +++ b/src/crypto/astrobwt/xmm6int/u4.h @@ -0,0 +1,547 @@ +if (bytes >= 256) { + __m128i y0, y1, y2, y3, y4, y5, y6, y7, y8, y9, y10, y11, y12, y13, y14, + y15; + __m128i z0, z1, z2, z3, z4, z5, z6, z7, z8, z9, z10, z11, z12, z13, z14, + z15; + __m128i orig0, orig1, orig2, orig3, orig4, orig5, orig6, orig7, orig8, + orig9, orig10, orig11, orig12, orig13, orig14, orig15; + + uint32_t in8; + uint32_t in9; + int i; + + /* element broadcast immediate for _mm_shuffle_epi32 are in order: + 0x00, 0x55, 0xaa, 0xff */ + z0 = _mm_loadu_si128((const __m128i *) (x + 0)); + z5 = _mm_shuffle_epi32(z0, 0x55); + z10 = _mm_shuffle_epi32(z0, 0xaa); + z15 = _mm_shuffle_epi32(z0, 0xff); + z0 = _mm_shuffle_epi32(z0, 0x00); + z1 = _mm_loadu_si128((const __m128i *) (x + 4)); + z6 = _mm_shuffle_epi32(z1, 0xaa); + z11 = _mm_shuffle_epi32(z1, 0xff); + z12 = _mm_shuffle_epi32(z1, 0x00); + z1 = _mm_shuffle_epi32(z1, 0x55); + z2 = _mm_loadu_si128((const __m128i *) (x + 8)); + z7 = _mm_shuffle_epi32(z2, 0xff); + z13 = _mm_shuffle_epi32(z2, 0x55); + z2 = _mm_shuffle_epi32(z2, 0xaa); + /* no z8 -> first half of the nonce, will fill later */ + z3 = _mm_loadu_si128((const __m128i *) (x + 12)); + z4 = _mm_shuffle_epi32(z3, 0x00); + z14 = _mm_shuffle_epi32(z3, 0xaa); + z3 = _mm_shuffle_epi32(z3, 0xff); + /* no z9 -> second half of the nonce, will fill later */ + orig0 = z0; + orig1 = z1; + orig2 = z2; + orig3 = z3; + orig4 = z4; + orig5 = z5; + orig6 = z6; + orig7 = z7; + orig10 = z10; + orig11 = z11; + orig12 = z12; + orig13 = z13; + orig14 = z14; + orig15 = z15; + + while (bytes >= 256) { + /* vector implementation for z8 and z9 */ + /* not sure if it helps for only 4 blocks */ + const __m128i addv8 = _mm_set_epi64x(1, 0); + const __m128i addv9 = _mm_set_epi64x(3, 2); + __m128i t8, t9; + uint64_t in89; + + in8 = x[8]; + in9 = x[13]; + in89 = ((uint64_t) in8) | (((uint64_t) in9) << 32); + t8 = _mm_set1_epi64x(in89); + t9 = _mm_set1_epi64x(in89); + + z8 = _mm_add_epi64(addv8, t8); + z9 = _mm_add_epi64(addv9, t9); + + t8 = _mm_unpacklo_epi32(z8, z9); + t9 = _mm_unpackhi_epi32(z8, z9); + + z8 = _mm_unpacklo_epi32(t8, t9); + z9 = _mm_unpackhi_epi32(t8, t9); + + orig8 = z8; + orig9 = z9; + + in89 += 4; + + x[8] = in89 & 0xFFFFFFFF; + x[13] = (in89 >> 32) & 0xFFFFFFFF; + + z5 = orig5; + z10 = orig10; + z15 = orig15; + z14 = orig14; + z3 = orig3; + z6 = orig6; + z11 = orig11; + z1 = orig1; + + z7 = orig7; + z13 = orig13; + z2 = orig2; + z9 = orig9; + z0 = orig0; + z12 = orig12; + z4 = orig4; + z8 = orig8; + + for (i = 0; i < ROUNDS; i += 2) { + /* the inner loop is a direct translation (regexp search/replace) + * from the amd64-xmm6 ASM */ + __m128i r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, + r14, r15; + + y4 = z12; + y4 = _mm_add_epi32(y4, z0); + r4 = y4; + y4 = _mm_slli_epi32(y4, 7); + z4 = _mm_xor_si128(z4, y4); + r4 = _mm_srli_epi32(r4, 25); + z4 = _mm_xor_si128(z4, r4); + + y9 = z1; + y9 = _mm_add_epi32(y9, z5); + r9 = y9; + y9 = _mm_slli_epi32(y9, 7); + z9 = _mm_xor_si128(z9, y9); + r9 = _mm_srli_epi32(r9, 25); + z9 = _mm_xor_si128(z9, r9); + + y8 = z0; + y8 = _mm_add_epi32(y8, z4); + r8 = y8; + y8 = _mm_slli_epi32(y8, 9); + z8 = _mm_xor_si128(z8, y8); + r8 = _mm_srli_epi32(r8, 23); + z8 = _mm_xor_si128(z8, r8); + + y13 = z5; + y13 = _mm_add_epi32(y13, z9); + r13 = y13; + y13 = _mm_slli_epi32(y13, 9); + z13 = _mm_xor_si128(z13, y13); + r13 = _mm_srli_epi32(r13, 23); + z13 = _mm_xor_si128(z13, r13); + + y12 = z4; + y12 = _mm_add_epi32(y12, z8); + r12 = y12; + y12 = _mm_slli_epi32(y12, 13); + z12 = _mm_xor_si128(z12, y12); + r12 = _mm_srli_epi32(r12, 19); + z12 = _mm_xor_si128(z12, r12); + + y1 = z9; + y1 = _mm_add_epi32(y1, z13); + r1 = y1; + y1 = _mm_slli_epi32(y1, 13); + z1 = _mm_xor_si128(z1, y1); + r1 = _mm_srli_epi32(r1, 19); + z1 = _mm_xor_si128(z1, r1); + + y0 = z8; + y0 = _mm_add_epi32(y0, z12); + r0 = y0; + y0 = _mm_slli_epi32(y0, 18); + z0 = _mm_xor_si128(z0, y0); + r0 = _mm_srli_epi32(r0, 14); + z0 = _mm_xor_si128(z0, r0); + + y5 = z13; + y5 = _mm_add_epi32(y5, z1); + r5 = y5; + y5 = _mm_slli_epi32(y5, 18); + z5 = _mm_xor_si128(z5, y5); + r5 = _mm_srli_epi32(r5, 14); + z5 = _mm_xor_si128(z5, r5); + + y14 = z6; + y14 = _mm_add_epi32(y14, z10); + r14 = y14; + y14 = _mm_slli_epi32(y14, 7); + z14 = _mm_xor_si128(z14, y14); + r14 = _mm_srli_epi32(r14, 25); + z14 = _mm_xor_si128(z14, r14); + + y3 = z11; + y3 = _mm_add_epi32(y3, z15); + r3 = y3; + y3 = _mm_slli_epi32(y3, 7); + z3 = _mm_xor_si128(z3, y3); + r3 = _mm_srli_epi32(r3, 25); + z3 = _mm_xor_si128(z3, r3); + + y2 = z10; + y2 = _mm_add_epi32(y2, z14); + r2 = y2; + y2 = _mm_slli_epi32(y2, 9); + z2 = _mm_xor_si128(z2, y2); + r2 = _mm_srli_epi32(r2, 23); + z2 = _mm_xor_si128(z2, r2); + + y7 = z15; + y7 = _mm_add_epi32(y7, z3); + r7 = y7; + y7 = _mm_slli_epi32(y7, 9); + z7 = _mm_xor_si128(z7, y7); + r7 = _mm_srli_epi32(r7, 23); + z7 = _mm_xor_si128(z7, r7); + + y6 = z14; + y6 = _mm_add_epi32(y6, z2); + r6 = y6; + y6 = _mm_slli_epi32(y6, 13); + z6 = _mm_xor_si128(z6, y6); + r6 = _mm_srli_epi32(r6, 19); + z6 = _mm_xor_si128(z6, r6); + + y11 = z3; + y11 = _mm_add_epi32(y11, z7); + r11 = y11; + y11 = _mm_slli_epi32(y11, 13); + z11 = _mm_xor_si128(z11, y11); + r11 = _mm_srli_epi32(r11, 19); + z11 = _mm_xor_si128(z11, r11); + + y10 = z2; + y10 = _mm_add_epi32(y10, z6); + r10 = y10; + y10 = _mm_slli_epi32(y10, 18); + z10 = _mm_xor_si128(z10, y10); + r10 = _mm_srli_epi32(r10, 14); + z10 = _mm_xor_si128(z10, r10); + + y1 = z3; + y1 = _mm_add_epi32(y1, z0); + r1 = y1; + y1 = _mm_slli_epi32(y1, 7); + z1 = _mm_xor_si128(z1, y1); + r1 = _mm_srli_epi32(r1, 25); + z1 = _mm_xor_si128(z1, r1); + + y15 = z7; + y15 = _mm_add_epi32(y15, z11); + r15 = y15; + y15 = _mm_slli_epi32(y15, 18); + z15 = _mm_xor_si128(z15, y15); + r15 = _mm_srli_epi32(r15, 14); + z15 = _mm_xor_si128(z15, r15); + + y6 = z4; + y6 = _mm_add_epi32(y6, z5); + r6 = y6; + y6 = _mm_slli_epi32(y6, 7); + z6 = _mm_xor_si128(z6, y6); + r6 = _mm_srli_epi32(r6, 25); + z6 = _mm_xor_si128(z6, r6); + + y2 = z0; + y2 = _mm_add_epi32(y2, z1); + r2 = y2; + y2 = _mm_slli_epi32(y2, 9); + z2 = _mm_xor_si128(z2, y2); + r2 = _mm_srli_epi32(r2, 23); + z2 = _mm_xor_si128(z2, r2); + + y7 = z5; + y7 = _mm_add_epi32(y7, z6); + r7 = y7; + y7 = _mm_slli_epi32(y7, 9); + z7 = _mm_xor_si128(z7, y7); + r7 = _mm_srli_epi32(r7, 23); + z7 = _mm_xor_si128(z7, r7); + + y3 = z1; + y3 = _mm_add_epi32(y3, z2); + r3 = y3; + y3 = _mm_slli_epi32(y3, 13); + z3 = _mm_xor_si128(z3, y3); + r3 = _mm_srli_epi32(r3, 19); + z3 = _mm_xor_si128(z3, r3); + + y4 = z6; + y4 = _mm_add_epi32(y4, z7); + r4 = y4; + y4 = _mm_slli_epi32(y4, 13); + z4 = _mm_xor_si128(z4, y4); + r4 = _mm_srli_epi32(r4, 19); + z4 = _mm_xor_si128(z4, r4); + + y0 = z2; + y0 = _mm_add_epi32(y0, z3); + r0 = y0; + y0 = _mm_slli_epi32(y0, 18); + z0 = _mm_xor_si128(z0, y0); + r0 = _mm_srli_epi32(r0, 14); + z0 = _mm_xor_si128(z0, r0); + + y5 = z7; + y5 = _mm_add_epi32(y5, z4); + r5 = y5; + y5 = _mm_slli_epi32(y5, 18); + z5 = _mm_xor_si128(z5, y5); + r5 = _mm_srli_epi32(r5, 14); + z5 = _mm_xor_si128(z5, r5); + + y11 = z9; + y11 = _mm_add_epi32(y11, z10); + r11 = y11; + y11 = _mm_slli_epi32(y11, 7); + z11 = _mm_xor_si128(z11, y11); + r11 = _mm_srli_epi32(r11, 25); + z11 = _mm_xor_si128(z11, r11); + + y12 = z14; + y12 = _mm_add_epi32(y12, z15); + r12 = y12; + y12 = _mm_slli_epi32(y12, 7); + z12 = _mm_xor_si128(z12, y12); + r12 = _mm_srli_epi32(r12, 25); + z12 = _mm_xor_si128(z12, r12); + + y8 = z10; + y8 = _mm_add_epi32(y8, z11); + r8 = y8; + y8 = _mm_slli_epi32(y8, 9); + z8 = _mm_xor_si128(z8, y8); + r8 = _mm_srli_epi32(r8, 23); + z8 = _mm_xor_si128(z8, r8); + + y13 = z15; + y13 = _mm_add_epi32(y13, z12); + r13 = y13; + y13 = _mm_slli_epi32(y13, 9); + z13 = _mm_xor_si128(z13, y13); + r13 = _mm_srli_epi32(r13, 23); + z13 = _mm_xor_si128(z13, r13); + + y9 = z11; + y9 = _mm_add_epi32(y9, z8); + r9 = y9; + y9 = _mm_slli_epi32(y9, 13); + z9 = _mm_xor_si128(z9, y9); + r9 = _mm_srli_epi32(r9, 19); + z9 = _mm_xor_si128(z9, r9); + + y14 = z12; + y14 = _mm_add_epi32(y14, z13); + r14 = y14; + y14 = _mm_slli_epi32(y14, 13); + z14 = _mm_xor_si128(z14, y14); + r14 = _mm_srli_epi32(r14, 19); + z14 = _mm_xor_si128(z14, r14); + + y10 = z8; + y10 = _mm_add_epi32(y10, z9); + r10 = y10; + y10 = _mm_slli_epi32(y10, 18); + z10 = _mm_xor_si128(z10, y10); + r10 = _mm_srli_epi32(r10, 14); + z10 = _mm_xor_si128(z10, r10); + + y15 = z13; + y15 = _mm_add_epi32(y15, z14); + r15 = y15; + y15 = _mm_slli_epi32(y15, 18); + z15 = _mm_xor_si128(z15, y15); + r15 = _mm_srli_epi32(r15, 14); + z15 = _mm_xor_si128(z15, r15); + } + +/* store data ; this macro replicates the original amd64-xmm6 code */ +#define ONEQUAD_SHUFFLE(A, B, C, D) \ + z##A = _mm_add_epi32(z##A, orig##A); \ + z##B = _mm_add_epi32(z##B, orig##B); \ + z##C = _mm_add_epi32(z##C, orig##C); \ + z##D = _mm_add_epi32(z##D, orig##D); \ + in##A = _mm_cvtsi128_si32(z##A); \ + in##B = _mm_cvtsi128_si32(z##B); \ + in##C = _mm_cvtsi128_si32(z##C); \ + in##D = _mm_cvtsi128_si32(z##D); \ + z##A = _mm_shuffle_epi32(z##A, 0x39); \ + z##B = _mm_shuffle_epi32(z##B, 0x39); \ + z##C = _mm_shuffle_epi32(z##C, 0x39); \ + z##D = _mm_shuffle_epi32(z##D, 0x39); \ + \ + in##A ^= *(uint32_t *) (m + 0); \ + in##B ^= *(uint32_t *) (m + 4); \ + in##C ^= *(uint32_t *) (m + 8); \ + in##D ^= *(uint32_t *) (m + 12); \ + \ + *(uint32_t *) (c + 0) = in##A; \ + *(uint32_t *) (c + 4) = in##B; \ + *(uint32_t *) (c + 8) = in##C; \ + *(uint32_t *) (c + 12) = in##D; \ + \ + in##A = _mm_cvtsi128_si32(z##A); \ + in##B = _mm_cvtsi128_si32(z##B); \ + in##C = _mm_cvtsi128_si32(z##C); \ + in##D = _mm_cvtsi128_si32(z##D); \ + z##A = _mm_shuffle_epi32(z##A, 0x39); \ + z##B = _mm_shuffle_epi32(z##B, 0x39); \ + z##C = _mm_shuffle_epi32(z##C, 0x39); \ + z##D = _mm_shuffle_epi32(z##D, 0x39); \ + \ + in##A ^= *(uint32_t *) (m + 64); \ + in##B ^= *(uint32_t *) (m + 68); \ + in##C ^= *(uint32_t *) (m + 72); \ + in##D ^= *(uint32_t *) (m + 76); \ + *(uint32_t *) (c + 64) = in##A; \ + *(uint32_t *) (c + 68) = in##B; \ + *(uint32_t *) (c + 72) = in##C; \ + *(uint32_t *) (c + 76) = in##D; \ + \ + in##A = _mm_cvtsi128_si32(z##A); \ + in##B = _mm_cvtsi128_si32(z##B); \ + in##C = _mm_cvtsi128_si32(z##C); \ + in##D = _mm_cvtsi128_si32(z##D); \ + z##A = _mm_shuffle_epi32(z##A, 0x39); \ + z##B = _mm_shuffle_epi32(z##B, 0x39); \ + z##C = _mm_shuffle_epi32(z##C, 0x39); \ + z##D = _mm_shuffle_epi32(z##D, 0x39); \ + \ + in##A ^= *(uint32_t *) (m + 128); \ + in##B ^= *(uint32_t *) (m + 132); \ + in##C ^= *(uint32_t *) (m + 136); \ + in##D ^= *(uint32_t *) (m + 140); \ + *(uint32_t *) (c + 128) = in##A; \ + *(uint32_t *) (c + 132) = in##B; \ + *(uint32_t *) (c + 136) = in##C; \ + *(uint32_t *) (c + 140) = in##D; \ + \ + in##A = _mm_cvtsi128_si32(z##A); \ + in##B = _mm_cvtsi128_si32(z##B); \ + in##C = _mm_cvtsi128_si32(z##C); \ + in##D = _mm_cvtsi128_si32(z##D); \ + \ + in##A ^= *(uint32_t *) (m + 192); \ + in##B ^= *(uint32_t *) (m + 196); \ + in##C ^= *(uint32_t *) (m + 200); \ + in##D ^= *(uint32_t *) (m + 204); \ + *(uint32_t *) (c + 192) = in##A; \ + *(uint32_t *) (c + 196) = in##B; \ + *(uint32_t *) (c + 200) = in##C; \ + *(uint32_t *) (c + 204) = in##D + +/* store data ; this macro replaces shuffle+mov by a direct extract; not much + * difference */ +#define ONEQUAD_EXTRACT(A, B, C, D) \ + z##A = _mm_add_epi32(z##A, orig##A); \ + z##B = _mm_add_epi32(z##B, orig##B); \ + z##C = _mm_add_epi32(z##C, orig##C); \ + z##D = _mm_add_epi32(z##D, orig##D); \ + in##A = _mm_cvtsi128_si32(z##A); \ + in##B = _mm_cvtsi128_si32(z##B); \ + in##C = _mm_cvtsi128_si32(z##C); \ + in##D = _mm_cvtsi128_si32(z##D); \ + in##A ^= *(uint32_t *) (m + 0); \ + in##B ^= *(uint32_t *) (m + 4); \ + in##C ^= *(uint32_t *) (m + 8); \ + in##D ^= *(uint32_t *) (m + 12); \ + *(uint32_t *) (c + 0) = in##A; \ + *(uint32_t *) (c + 4) = in##B; \ + *(uint32_t *) (c + 8) = in##C; \ + *(uint32_t *) (c + 12) = in##D; \ + \ + in##A = _mm_extract_epi32(z##A, 1); \ + in##B = _mm_extract_epi32(z##B, 1); \ + in##C = _mm_extract_epi32(z##C, 1); \ + in##D = _mm_extract_epi32(z##D, 1); \ + \ + in##A ^= *(uint32_t *) (m + 64); \ + in##B ^= *(uint32_t *) (m + 68); \ + in##C ^= *(uint32_t *) (m + 72); \ + in##D ^= *(uint32_t *) (m + 76); \ + *(uint32_t *) (c + 64) = in##A; \ + *(uint32_t *) (c + 68) = in##B; \ + *(uint32_t *) (c + 72) = in##C; \ + *(uint32_t *) (c + 76) = in##D; \ + \ + in##A = _mm_extract_epi32(z##A, 2); \ + in##B = _mm_extract_epi32(z##B, 2); \ + in##C = _mm_extract_epi32(z##C, 2); \ + in##D = _mm_extract_epi32(z##D, 2); \ + \ + in##A ^= *(uint32_t *) (m + 128); \ + in##B ^= *(uint32_t *) (m + 132); \ + in##C ^= *(uint32_t *) (m + 136); \ + in##D ^= *(uint32_t *) (m + 140); \ + *(uint32_t *) (c + 128) = in##A; \ + *(uint32_t *) (c + 132) = in##B; \ + *(uint32_t *) (c + 136) = in##C; \ + *(uint32_t *) (c + 140) = in##D; \ + \ + in##A = _mm_extract_epi32(z##A, 3); \ + in##B = _mm_extract_epi32(z##B, 3); \ + in##C = _mm_extract_epi32(z##C, 3); \ + in##D = _mm_extract_epi32(z##D, 3); \ + \ + in##A ^= *(uint32_t *) (m + 192); \ + in##B ^= *(uint32_t *) (m + 196); \ + in##C ^= *(uint32_t *) (m + 200); \ + in##D ^= *(uint32_t *) (m + 204); \ + *(uint32_t *) (c + 192) = in##A; \ + *(uint32_t *) (c + 196) = in##B; \ + *(uint32_t *) (c + 200) = in##C; \ + *(uint32_t *) (c + 204) = in##D + +/* store data ; this macro first transpose data in-registers, and then store + * them in memory. much faster with icc. */ +#define ONEQUAD_TRANSPOSE(A, B, C, D) \ + z##A = _mm_add_epi32(z##A, orig##A); \ + z##B = _mm_add_epi32(z##B, orig##B); \ + z##C = _mm_add_epi32(z##C, orig##C); \ + z##D = _mm_add_epi32(z##D, orig##D); \ + y##A = _mm_unpacklo_epi32(z##A, z##B); \ + y##B = _mm_unpacklo_epi32(z##C, z##D); \ + y##C = _mm_unpackhi_epi32(z##A, z##B); \ + y##D = _mm_unpackhi_epi32(z##C, z##D); \ + z##A = _mm_unpacklo_epi64(y##A, y##B); \ + z##B = _mm_unpackhi_epi64(y##A, y##B); \ + z##C = _mm_unpacklo_epi64(y##C, y##D); \ + z##D = _mm_unpackhi_epi64(y##C, y##D); \ + y##A = _mm_xor_si128(z##A, _mm_loadu_si128((const __m128i *) (m + 0))); \ + _mm_storeu_si128((__m128i *) (c + 0), y##A); \ + y##B = _mm_xor_si128(z##B, _mm_loadu_si128((const __m128i *) (m + 64))); \ + _mm_storeu_si128((__m128i *) (c + 64), y##B); \ + y##C = _mm_xor_si128(z##C, _mm_loadu_si128((const __m128i *) (m + 128))); \ + _mm_storeu_si128((__m128i *) (c + 128), y##C); \ + y##D = _mm_xor_si128(z##D, _mm_loadu_si128((const __m128i *) (m + 192))); \ + _mm_storeu_si128((__m128i *) (c + 192), y##D) + +#define ONEQUAD(A, B, C, D) ONEQUAD_TRANSPOSE(A, B, C, D) + + ONEQUAD(0, 1, 2, 3); + m += 16; + c += 16; + ONEQUAD(4, 5, 6, 7); + m += 16; + c += 16; + ONEQUAD(8, 9, 10, 11); + m += 16; + c += 16; + ONEQUAD(12, 13, 14, 15); + m -= 48; + c -= 48; + +#undef ONEQUAD +#undef ONEQUAD_TRANSPOSE +#undef ONEQUAD_EXTRACT +#undef ONEQUAD_SHUFFLE + + bytes -= 256; + c += 256; + m += 256; + } +} diff --git a/src/crypto/astrobwt/xmm6int/u8.h b/src/crypto/astrobwt/xmm6int/u8.h new file mode 100644 index 00000000..581b22c2 --- /dev/null +++ b/src/crypto/astrobwt/xmm6int/u8.h @@ -0,0 +1,477 @@ +if (bytes >= 512) { + __m256i y0, y1, y2, y3, y4, y5, y6, y7, y8, y9, y10, y11, y12, y13, y14, + y15; + + /* the naive way seems as fast (if not a bit faster) than the vector way */ + __m256i z0 = _mm256_set1_epi32(x[0]); + __m256i z5 = _mm256_set1_epi32(x[1]); + __m256i z10 = _mm256_set1_epi32(x[2]); + __m256i z15 = _mm256_set1_epi32(x[3]); + __m256i z12 = _mm256_set1_epi32(x[4]); + __m256i z1 = _mm256_set1_epi32(x[5]); + __m256i z6 = _mm256_set1_epi32(x[6]); + __m256i z11 = _mm256_set1_epi32(x[7]); + __m256i z8; /* useless */ + __m256i z13 = _mm256_set1_epi32(x[9]); + __m256i z2 = _mm256_set1_epi32(x[10]); + __m256i z7 = _mm256_set1_epi32(x[11]); + __m256i z4 = _mm256_set1_epi32(x[12]); + __m256i z9; /* useless */ + __m256i z14 = _mm256_set1_epi32(x[14]); + __m256i z3 = _mm256_set1_epi32(x[15]); + + __m256i orig0 = z0; + __m256i orig1 = z1; + __m256i orig2 = z2; + __m256i orig3 = z3; + __m256i orig4 = z4; + __m256i orig5 = z5; + __m256i orig6 = z6; + __m256i orig7 = z7; + __m256i orig8; + __m256i orig9; + __m256i orig10 = z10; + __m256i orig11 = z11; + __m256i orig12 = z12; + __m256i orig13 = z13; + __m256i orig14 = z14; + __m256i orig15 = z15; + + uint32_t in8; + uint32_t in9; + int i; + + while (bytes >= 512) { + /* vector implementation for z8 and z9 */ + /* faster than the naive version for 8 blocks */ + const __m256i addv8 = _mm256_set_epi64x(3, 2, 1, 0); + const __m256i addv9 = _mm256_set_epi64x(7, 6, 5, 4); + const __m256i permute = _mm256_set_epi32(7, 6, 3, 2, 5, 4, 1, 0); + + __m256i t8, t9; + uint64_t in89; + + in8 = x[8]; + in9 = x[13]; /* see arrays above for the address translation */ + in89 = ((uint64_t) in8) | (((uint64_t) in9) << 32); + + z8 = z9 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in89)); + + t8 = _mm256_add_epi64(addv8, z8); + t9 = _mm256_add_epi64(addv9, z9); + + z8 = _mm256_unpacklo_epi32(t8, t9); + z9 = _mm256_unpackhi_epi32(t8, t9); + + t8 = _mm256_unpacklo_epi32(z8, z9); + t9 = _mm256_unpackhi_epi32(z8, z9); + + /* required because unpack* are intra-lane */ + z8 = _mm256_permutevar8x32_epi32(t8, permute); + z9 = _mm256_permutevar8x32_epi32(t9, permute); + + orig8 = z8; + orig9 = z9; + + in89 += 8; + + x[8] = in89 & 0xFFFFFFFF; + x[13] = (in89 >> 32) & 0xFFFFFFFF; + + z5 = orig5; + z10 = orig10; + z15 = orig15; + z14 = orig14; + z3 = orig3; + z6 = orig6; + z11 = orig11; + z1 = orig1; + + z7 = orig7; + z13 = orig13; + z2 = orig2; + z9 = orig9; + z0 = orig0; + z12 = orig12; + z4 = orig4; + z8 = orig8; + + for (i = 0; i < ROUNDS; i += 2) { + /* the inner loop is a direct translation (regexp search/replace) + * from the amd64-xmm6 ASM */ + __m256i r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, + r14, r15; + + y4 = z12; + y4 = _mm256_add_epi32(y4, z0); + r4 = y4; + y4 = _mm256_slli_epi32(y4, 7); + z4 = _mm256_xor_si256(z4, y4); + r4 = _mm256_srli_epi32(r4, 25); + z4 = _mm256_xor_si256(z4, r4); + + y9 = z1; + y9 = _mm256_add_epi32(y9, z5); + r9 = y9; + y9 = _mm256_slli_epi32(y9, 7); + z9 = _mm256_xor_si256(z9, y9); + r9 = _mm256_srli_epi32(r9, 25); + z9 = _mm256_xor_si256(z9, r9); + + y8 = z0; + y8 = _mm256_add_epi32(y8, z4); + r8 = y8; + y8 = _mm256_slli_epi32(y8, 9); + z8 = _mm256_xor_si256(z8, y8); + r8 = _mm256_srli_epi32(r8, 23); + z8 = _mm256_xor_si256(z8, r8); + + y13 = z5; + y13 = _mm256_add_epi32(y13, z9); + r13 = y13; + y13 = _mm256_slli_epi32(y13, 9); + z13 = _mm256_xor_si256(z13, y13); + r13 = _mm256_srli_epi32(r13, 23); + z13 = _mm256_xor_si256(z13, r13); + + y12 = z4; + y12 = _mm256_add_epi32(y12, z8); + r12 = y12; + y12 = _mm256_slli_epi32(y12, 13); + z12 = _mm256_xor_si256(z12, y12); + r12 = _mm256_srli_epi32(r12, 19); + z12 = _mm256_xor_si256(z12, r12); + + y1 = z9; + y1 = _mm256_add_epi32(y1, z13); + r1 = y1; + y1 = _mm256_slli_epi32(y1, 13); + z1 = _mm256_xor_si256(z1, y1); + r1 = _mm256_srli_epi32(r1, 19); + z1 = _mm256_xor_si256(z1, r1); + + y0 = z8; + y0 = _mm256_add_epi32(y0, z12); + r0 = y0; + y0 = _mm256_slli_epi32(y0, 18); + z0 = _mm256_xor_si256(z0, y0); + r0 = _mm256_srli_epi32(r0, 14); + z0 = _mm256_xor_si256(z0, r0); + + y5 = z13; + y5 = _mm256_add_epi32(y5, z1); + r5 = y5; + y5 = _mm256_slli_epi32(y5, 18); + z5 = _mm256_xor_si256(z5, y5); + r5 = _mm256_srli_epi32(r5, 14); + z5 = _mm256_xor_si256(z5, r5); + + y14 = z6; + y14 = _mm256_add_epi32(y14, z10); + r14 = y14; + y14 = _mm256_slli_epi32(y14, 7); + z14 = _mm256_xor_si256(z14, y14); + r14 = _mm256_srli_epi32(r14, 25); + z14 = _mm256_xor_si256(z14, r14); + + y3 = z11; + y3 = _mm256_add_epi32(y3, z15); + r3 = y3; + y3 = _mm256_slli_epi32(y3, 7); + z3 = _mm256_xor_si256(z3, y3); + r3 = _mm256_srli_epi32(r3, 25); + z3 = _mm256_xor_si256(z3, r3); + + y2 = z10; + y2 = _mm256_add_epi32(y2, z14); + r2 = y2; + y2 = _mm256_slli_epi32(y2, 9); + z2 = _mm256_xor_si256(z2, y2); + r2 = _mm256_srli_epi32(r2, 23); + z2 = _mm256_xor_si256(z2, r2); + + y7 = z15; + y7 = _mm256_add_epi32(y7, z3); + r7 = y7; + y7 = _mm256_slli_epi32(y7, 9); + z7 = _mm256_xor_si256(z7, y7); + r7 = _mm256_srli_epi32(r7, 23); + z7 = _mm256_xor_si256(z7, r7); + + y6 = z14; + y6 = _mm256_add_epi32(y6, z2); + r6 = y6; + y6 = _mm256_slli_epi32(y6, 13); + z6 = _mm256_xor_si256(z6, y6); + r6 = _mm256_srli_epi32(r6, 19); + z6 = _mm256_xor_si256(z6, r6); + + y11 = z3; + y11 = _mm256_add_epi32(y11, z7); + r11 = y11; + y11 = _mm256_slli_epi32(y11, 13); + z11 = _mm256_xor_si256(z11, y11); + r11 = _mm256_srli_epi32(r11, 19); + z11 = _mm256_xor_si256(z11, r11); + + y10 = z2; + y10 = _mm256_add_epi32(y10, z6); + r10 = y10; + y10 = _mm256_slli_epi32(y10, 18); + z10 = _mm256_xor_si256(z10, y10); + r10 = _mm256_srli_epi32(r10, 14); + z10 = _mm256_xor_si256(z10, r10); + + y1 = z3; + y1 = _mm256_add_epi32(y1, z0); + r1 = y1; + y1 = _mm256_slli_epi32(y1, 7); + z1 = _mm256_xor_si256(z1, y1); + r1 = _mm256_srli_epi32(r1, 25); + z1 = _mm256_xor_si256(z1, r1); + + y15 = z7; + y15 = _mm256_add_epi32(y15, z11); + r15 = y15; + y15 = _mm256_slli_epi32(y15, 18); + z15 = _mm256_xor_si256(z15, y15); + r15 = _mm256_srli_epi32(r15, 14); + z15 = _mm256_xor_si256(z15, r15); + + y6 = z4; + y6 = _mm256_add_epi32(y6, z5); + r6 = y6; + y6 = _mm256_slli_epi32(y6, 7); + z6 = _mm256_xor_si256(z6, y6); + r6 = _mm256_srli_epi32(r6, 25); + z6 = _mm256_xor_si256(z6, r6); + + y2 = z0; + y2 = _mm256_add_epi32(y2, z1); + r2 = y2; + y2 = _mm256_slli_epi32(y2, 9); + z2 = _mm256_xor_si256(z2, y2); + r2 = _mm256_srli_epi32(r2, 23); + z2 = _mm256_xor_si256(z2, r2); + + y7 = z5; + y7 = _mm256_add_epi32(y7, z6); + r7 = y7; + y7 = _mm256_slli_epi32(y7, 9); + z7 = _mm256_xor_si256(z7, y7); + r7 = _mm256_srli_epi32(r7, 23); + z7 = _mm256_xor_si256(z7, r7); + + y3 = z1; + y3 = _mm256_add_epi32(y3, z2); + r3 = y3; + y3 = _mm256_slli_epi32(y3, 13); + z3 = _mm256_xor_si256(z3, y3); + r3 = _mm256_srli_epi32(r3, 19); + z3 = _mm256_xor_si256(z3, r3); + + y4 = z6; + y4 = _mm256_add_epi32(y4, z7); + r4 = y4; + y4 = _mm256_slli_epi32(y4, 13); + z4 = _mm256_xor_si256(z4, y4); + r4 = _mm256_srli_epi32(r4, 19); + z4 = _mm256_xor_si256(z4, r4); + + y0 = z2; + y0 = _mm256_add_epi32(y0, z3); + r0 = y0; + y0 = _mm256_slli_epi32(y0, 18); + z0 = _mm256_xor_si256(z0, y0); + r0 = _mm256_srli_epi32(r0, 14); + z0 = _mm256_xor_si256(z0, r0); + + y5 = z7; + y5 = _mm256_add_epi32(y5, z4); + r5 = y5; + y5 = _mm256_slli_epi32(y5, 18); + z5 = _mm256_xor_si256(z5, y5); + r5 = _mm256_srli_epi32(r5, 14); + z5 = _mm256_xor_si256(z5, r5); + + y11 = z9; + y11 = _mm256_add_epi32(y11, z10); + r11 = y11; + y11 = _mm256_slli_epi32(y11, 7); + z11 = _mm256_xor_si256(z11, y11); + r11 = _mm256_srli_epi32(r11, 25); + z11 = _mm256_xor_si256(z11, r11); + + y12 = z14; + y12 = _mm256_add_epi32(y12, z15); + r12 = y12; + y12 = _mm256_slli_epi32(y12, 7); + z12 = _mm256_xor_si256(z12, y12); + r12 = _mm256_srli_epi32(r12, 25); + z12 = _mm256_xor_si256(z12, r12); + + y8 = z10; + y8 = _mm256_add_epi32(y8, z11); + r8 = y8; + y8 = _mm256_slli_epi32(y8, 9); + z8 = _mm256_xor_si256(z8, y8); + r8 = _mm256_srli_epi32(r8, 23); + z8 = _mm256_xor_si256(z8, r8); + + y13 = z15; + y13 = _mm256_add_epi32(y13, z12); + r13 = y13; + y13 = _mm256_slli_epi32(y13, 9); + z13 = _mm256_xor_si256(z13, y13); + r13 = _mm256_srli_epi32(r13, 23); + z13 = _mm256_xor_si256(z13, r13); + + y9 = z11; + y9 = _mm256_add_epi32(y9, z8); + r9 = y9; + y9 = _mm256_slli_epi32(y9, 13); + z9 = _mm256_xor_si256(z9, y9); + r9 = _mm256_srli_epi32(r9, 19); + z9 = _mm256_xor_si256(z9, r9); + + y14 = z12; + y14 = _mm256_add_epi32(y14, z13); + r14 = y14; + y14 = _mm256_slli_epi32(y14, 13); + z14 = _mm256_xor_si256(z14, y14); + r14 = _mm256_srli_epi32(r14, 19); + z14 = _mm256_xor_si256(z14, r14); + + y10 = z8; + y10 = _mm256_add_epi32(y10, z9); + r10 = y10; + y10 = _mm256_slli_epi32(y10, 18); + z10 = _mm256_xor_si256(z10, y10); + r10 = _mm256_srli_epi32(r10, 14); + z10 = _mm256_xor_si256(z10, r10); + + y15 = z13; + y15 = _mm256_add_epi32(y15, z14); + r15 = y15; + y15 = _mm256_slli_epi32(y15, 18); + z15 = _mm256_xor_si256(z15, y15); + r15 = _mm256_srli_epi32(r15, 14); + z15 = _mm256_xor_si256(z15, r15); + } + +/* store data ; this macro first transpose data in-registers, and then store + * them in memory. much faster with icc. */ +#define ONEQUAD_TRANSPOSE(A, B, C, D) \ + { \ + __m128i t0, t1, t2, t3; \ + z##A = _mm256_add_epi32(z##A, orig##A); \ + z##B = _mm256_add_epi32(z##B, orig##B); \ + z##C = _mm256_add_epi32(z##C, orig##C); \ + z##D = _mm256_add_epi32(z##D, orig##D); \ + y##A = _mm256_unpacklo_epi32(z##A, z##B); \ + y##B = _mm256_unpacklo_epi32(z##C, z##D); \ + y##C = _mm256_unpackhi_epi32(z##A, z##B); \ + y##D = _mm256_unpackhi_epi32(z##C, z##D); \ + z##A = _mm256_unpacklo_epi64(y##A, y##B); \ + z##B = _mm256_unpackhi_epi64(y##A, y##B); \ + z##C = _mm256_unpacklo_epi64(y##C, y##D); \ + z##D = _mm256_unpackhi_epi64(y##C, y##D); \ + t0 = _mm_xor_si128(_mm256_extracti128_si256(z##A, 0), \ + _mm_loadu_si128((const __m128i*) (m + 0))); \ + _mm_storeu_si128((__m128i*) (c + 0), t0); \ + t1 = _mm_xor_si128(_mm256_extracti128_si256(z##B, 0), \ + _mm_loadu_si128((const __m128i*) (m + 64))); \ + _mm_storeu_si128((__m128i*) (c + 64), t1); \ + t2 = _mm_xor_si128(_mm256_extracti128_si256(z##C, 0), \ + _mm_loadu_si128((const __m128i*) (m + 128))); \ + _mm_storeu_si128((__m128i*) (c + 128), t2); \ + t3 = _mm_xor_si128(_mm256_extracti128_si256(z##D, 0), \ + _mm_loadu_si128((const __m128i*) (m + 192))); \ + _mm_storeu_si128((__m128i*) (c + 192), t3); \ + t0 = _mm_xor_si128(_mm256_extracti128_si256(z##A, 1), \ + _mm_loadu_si128((const __m128i*) (m + 256))); \ + _mm_storeu_si128((__m128i*) (c + 256), t0); \ + t1 = _mm_xor_si128(_mm256_extracti128_si256(z##B, 1), \ + _mm_loadu_si128((const __m128i*) (m + 320))); \ + _mm_storeu_si128((__m128i*) (c + 320), t1); \ + t2 = _mm_xor_si128(_mm256_extracti128_si256(z##C, 1), \ + _mm_loadu_si128((const __m128i*) (m + 384))); \ + _mm_storeu_si128((__m128i*) (c + 384), t2); \ + t3 = _mm_xor_si128(_mm256_extracti128_si256(z##D, 1), \ + _mm_loadu_si128((const __m128i*) (m + 448))); \ + _mm_storeu_si128((__m128i*) (c + 448), t3); \ + } + +#define ONEQUAD(A, B, C, D) ONEQUAD_TRANSPOSE(A, B, C, D) + +#define ONEQUAD_UNPCK(A, B, C, D) \ + { \ + z##A = _mm256_add_epi32(z##A, orig##A); \ + z##B = _mm256_add_epi32(z##B, orig##B); \ + z##C = _mm256_add_epi32(z##C, orig##C); \ + z##D = _mm256_add_epi32(z##D, orig##D); \ + y##A = _mm256_unpacklo_epi32(z##A, z##B); \ + y##B = _mm256_unpacklo_epi32(z##C, z##D); \ + y##C = _mm256_unpackhi_epi32(z##A, z##B); \ + y##D = _mm256_unpackhi_epi32(z##C, z##D); \ + z##A = _mm256_unpacklo_epi64(y##A, y##B); \ + z##B = _mm256_unpackhi_epi64(y##A, y##B); \ + z##C = _mm256_unpacklo_epi64(y##C, y##D); \ + z##D = _mm256_unpackhi_epi64(y##C, y##D); \ + } + +#define ONEOCTO(A, B, C, D, A2, B2, C2, D2) \ + { \ + ONEQUAD_UNPCK(A, B, C, D); \ + ONEQUAD_UNPCK(A2, B2, C2, D2); \ + y##A = _mm256_permute2x128_si256(z##A, z##A2, 0x20); \ + y##A2 = _mm256_permute2x128_si256(z##A, z##A2, 0x31); \ + y##B = _mm256_permute2x128_si256(z##B, z##B2, 0x20); \ + y##B2 = _mm256_permute2x128_si256(z##B, z##B2, 0x31); \ + y##C = _mm256_permute2x128_si256(z##C, z##C2, 0x20); \ + y##C2 = _mm256_permute2x128_si256(z##C, z##C2, 0x31); \ + y##D = _mm256_permute2x128_si256(z##D, z##D2, 0x20); \ + y##D2 = _mm256_permute2x128_si256(z##D, z##D2, 0x31); \ + y##A = _mm256_xor_si256(y##A, \ + _mm256_loadu_si256((const __m256i*) (m + 0))); \ + y##B = _mm256_xor_si256( \ + y##B, _mm256_loadu_si256((const __m256i*) (m + 64))); \ + y##C = _mm256_xor_si256( \ + y##C, _mm256_loadu_si256((const __m256i*) (m + 128))); \ + y##D = _mm256_xor_si256( \ + y##D, _mm256_loadu_si256((const __m256i*) (m + 192))); \ + y##A2 = _mm256_xor_si256( \ + y##A2, _mm256_loadu_si256((const __m256i*) (m + 256))); \ + y##B2 = _mm256_xor_si256( \ + y##B2, _mm256_loadu_si256((const __m256i*) (m + 320))); \ + y##C2 = _mm256_xor_si256( \ + y##C2, _mm256_loadu_si256((const __m256i*) (m + 384))); \ + y##D2 = _mm256_xor_si256( \ + y##D2, _mm256_loadu_si256((const __m256i*) (m + 448))); \ + _mm256_storeu_si256((__m256i*) (c + 0), y##A); \ + _mm256_storeu_si256((__m256i*) (c + 64), y##B); \ + _mm256_storeu_si256((__m256i*) (c + 128), y##C); \ + _mm256_storeu_si256((__m256i*) (c + 192), y##D); \ + _mm256_storeu_si256((__m256i*) (c + 256), y##A2); \ + _mm256_storeu_si256((__m256i*) (c + 320), y##B2); \ + _mm256_storeu_si256((__m256i*) (c + 384), y##C2); \ + _mm256_storeu_si256((__m256i*) (c + 448), y##D2); \ + } + + ONEOCTO(0, 1, 2, 3, 4, 5, 6, 7); + m += 32; + c += 32; + ONEOCTO(8, 9, 10, 11, 12, 13, 14, 15); + m -= 32; + c -= 32; + +#undef ONEQUAD +#undef ONEQUAD_TRANSPOSE +#undef ONEQUAD_UNPCK +#undef ONEOCTO + + bytes -= 512; + c += 512; + m += 512; + } +} diff --git a/src/crypto/cn/CnHash.cpp b/src/crypto/cn/CnHash.cpp index 4b4b006f..0df12bca 100644 --- a/src/crypto/cn/CnHash.cpp +++ b/src/crypto/cn/CnHash.cpp @@ -35,6 +35,11 @@ #endif +#ifdef XMRIG_ALGO_ASTROBWT +# include "crypto/astrobwt/AstroBWT.h" +#endif + + #define ADD_FN(algo) do { \ m_map[algo] = new cn_hash_fun_array{}; \ m_map[algo]->data[AV_SINGLE][Assembly::NONE] = cryptonight_single_hash; \ @@ -50,10 +55,6 @@ } while (0) -bool cn_sse41_enabled = false; -bool cn_vaes_enabled = false; - - #ifdef XMRIG_FEATURE_ASM # define ADD_FN_ASM(algo) do { \ m_map[algo]->data[AV_SINGLE][Assembly::INTEL] = cryptonight_single_hash_asm; \ @@ -96,27 +97,6 @@ cn_mainloop_fun cn_double_double_mainloop_sandybridge_asm = nullptr; cn_mainloop_fun cn_upx2_mainloop_asm = nullptr; cn_mainloop_fun cn_upx2_double_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr0_single_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr1_single_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr2_single_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr3_single_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr4_single_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr5_single_mainloop_asm = nullptr; - -cn_mainloop_fun cn_gr0_double_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr1_double_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr2_double_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr3_double_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr4_double_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr5_double_mainloop_asm = nullptr; - -cn_mainloop_fun cn_gr0_quad_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr1_quad_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr2_quad_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr3_quad_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr4_quad_mainloop_asm = nullptr; -cn_mainloop_fun cn_gr5_quad_mainloop_asm = nullptr; - template static void patchCode(T dst, U src, const uint32_t iterations, const uint32_t mask = CnAlgo().mask()) @@ -156,7 +136,7 @@ static void patchCode(T dst, U src, const uint32_t iterations, const uint32_t ma static void patchAsmVariants() { - constexpr size_t allocation_size = 0x20000; + const int allocation_size = 131072; auto base = static_cast(VirtualMemory::allocateExecutableMemory(allocation_size, false)); cn_half_mainloop_ivybridge_asm = reinterpret_cast (base + 0x0000); @@ -193,29 +173,6 @@ static void patchAsmVariants() cn_upx2_double_mainloop_asm = reinterpret_cast (base + 0x15000); # endif -# ifdef XMRIG_ALGO_GHOSTRIDER - cn_gr0_single_mainloop_asm = reinterpret_cast (base + 0x16000); - cn_gr1_single_mainloop_asm = reinterpret_cast (base + 0x16800); - cn_gr2_single_mainloop_asm = reinterpret_cast (base + 0x17000); - cn_gr3_single_mainloop_asm = reinterpret_cast (base + 0x17800); - cn_gr4_single_mainloop_asm = reinterpret_cast (base + 0x18000); - cn_gr5_single_mainloop_asm = reinterpret_cast (base + 0x18800); - - cn_gr0_double_mainloop_asm = reinterpret_cast (base + 0x19000); - cn_gr1_double_mainloop_asm = reinterpret_cast (base + 0x19800); - cn_gr2_double_mainloop_asm = reinterpret_cast (base + 0x1A000); - cn_gr3_double_mainloop_asm = reinterpret_cast (base + 0x1A800); - cn_gr4_double_mainloop_asm = reinterpret_cast (base + 0x1B000); - cn_gr5_double_mainloop_asm = reinterpret_cast (base + 0x1B800); - - cn_gr0_quad_mainloop_asm = reinterpret_cast (base + 0x1C000); - cn_gr1_quad_mainloop_asm = reinterpret_cast (base + 0x1C800); - cn_gr2_quad_mainloop_asm = reinterpret_cast (base + 0x1D000); - cn_gr3_quad_mainloop_asm = reinterpret_cast (base + 0x1D800); - cn_gr4_quad_mainloop_asm = reinterpret_cast (base + 0x1E000); - cn_gr5_quad_mainloop_asm = reinterpret_cast (base + 0x1E800); -# endif - { constexpr uint32_t ITER = CnAlgo().iterations(); @@ -273,30 +230,7 @@ static void patchAsmVariants() patchCode(cn_upx2_mainloop_asm, cnv2_rwz_mainloop_asm, ITER, MASK); patchCode(cn_upx2_double_mainloop_asm, cnv2_rwz_double_mainloop_asm, ITER, MASK); } -# endif - -# ifdef XMRIG_ALGO_GHOSTRIDER - patchCode(cn_gr0_single_mainloop_asm, cnv1_single_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr1_single_mainloop_asm, cnv1_single_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr2_single_mainloop_asm, cnv1_single_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr3_single_mainloop_asm, cnv1_single_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr4_single_mainloop_asm, cnv1_single_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr5_single_mainloop_asm, cnv1_single_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - - patchCode(cn_gr0_double_mainloop_asm, cnv1_double_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr1_double_mainloop_asm, cnv1_double_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr2_double_mainloop_asm, cnv1_double_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr3_double_mainloop_asm, cnv1_double_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr4_double_mainloop_asm, cnv1_double_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr5_double_mainloop_asm, cnv1_double_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - - patchCode(cn_gr0_quad_mainloop_asm, cnv1_quad_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr1_quad_mainloop_asm, cnv1_quad_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr2_quad_mainloop_asm, cnv1_quad_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr3_quad_mainloop_asm, cnv1_quad_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr4_quad_mainloop_asm, cnv1_quad_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); - patchCode(cn_gr5_quad_mainloop_asm, cnv1_quad_mainloop_asm, CnAlgo().iterations(), CnAlgo().mask()); -# endif +#endif VirtualMemory::protectRX(base, allocation_size); VirtualMemory::flushInstructionCache(base, allocation_size); @@ -370,6 +304,12 @@ xmrig::CnHash::CnHash() m_map[Algorithm::AR2_WRKZ]->data[AV_SINGLE_SOFT][Assembly::NONE] = argon2::single_hash; # endif +# ifdef XMRIG_ALGO_ASTROBWT + m_map[Algorithm::ASTROBWT_DERO] = new cn_hash_fun_array{}; + m_map[Algorithm::ASTROBWT_DERO]->data[AV_SINGLE][Assembly::NONE] = astrobwt::single_hash; + m_map[Algorithm::ASTROBWT_DERO]->data[AV_SINGLE_SOFT][Assembly::NONE] = astrobwt::single_hash; +# endif + # ifdef XMRIG_ALGO_GHOSTRIDER ADD_FN(Algorithm::CN_GR_0); ADD_FN(Algorithm::CN_GR_1); @@ -407,12 +347,8 @@ xmrig::cn_hash_fun xmrig::CnHash::fn(const Algorithm &algorithm, AlgoVariant av, } # ifdef XMRIG_ALGO_CN_HEAVY - // cn-heavy optimization for Zen3/Zen4 CPUs - const auto arch = Cpu::info()->arch(); - const uint32_t model = Cpu::info()->model(); - const bool is_vermeer = (arch == ICpuInfo::ARCH_ZEN3) && (model == 0x21); - const bool is_raphael = (arch == ICpuInfo::ARCH_ZEN4) && (model == 0x61); - if ((av == AV_SINGLE) && (assembly != Assembly::NONE) && (is_vermeer || is_raphael)) { + // cn-heavy optimization for Zen3 CPUs + if ((av == AV_SINGLE) && (assembly != Assembly::NONE) && (Cpu::info()->arch() == ICpuInfo::ARCH_ZEN3) && (Cpu::info()->model() == 0x21)) { switch (algorithm.id()) { case Algorithm::CN_HEAVY_0: return cryptonight_single_hash; diff --git a/src/crypto/cn/CryptoNight.h b/src/crypto/cn/CryptoNight.h index 897890d2..fc8d6787 100644 --- a/src/crypto/cn/CryptoNight.h +++ b/src/crypto/cn/CryptoNight.h @@ -52,10 +52,8 @@ struct cryptonight_r_data { struct cryptonight_ctx { alignas(16) uint8_t state[224]; alignas(16) uint8_t *memory; - const uint32_t* tweak1_table; - uint64_t tweak1_2; - uint8_t unused[24]; + uint8_t unused[40]; const uint32_t *saes_table; cn_mainloop_fun_ms_abi generated_code; diff --git a/src/crypto/cn/CryptoNight_monero.h b/src/crypto/cn/CryptoNight_monero.h index a9975e78..f34c963c 100644 --- a/src/crypto/cn/CryptoNight_monero.h +++ b/src/crypto/cn/CryptoNight_monero.h @@ -204,7 +204,4 @@ v4_random_math(code##part, r##part); \ } -extern bool cn_sse41_enabled; -extern bool cn_vaes_enabled; - #endif /* XMRIG_CRYPTONIGHT_MONERO_H */ diff --git a/src/crypto/cn/CryptoNight_test.h b/src/crypto/cn/CryptoNight_test.h index 0ce7ca46..1df168e0 100644 --- a/src/crypto/cn/CryptoNight_test.h +++ b/src/crypto/cn/CryptoNight_test.h @@ -432,6 +432,24 @@ const static uint8_t argon2_wrkz_test_out[256] = { #endif +#ifdef XMRIG_ALGO_ASTROBWT +// "astrobwt" +const static uint8_t astrobwt_dero_test_out[256] = { + 0x7E, 0x88, 0x44, 0xF2, 0xD6, 0xB7, 0xA4, 0x34, 0x98, 0xFE, 0x6D, 0x22, 0x65, 0x27, 0x68, 0x90, + 0x23, 0xDA, 0x8A, 0x52, 0xF9, 0xFC, 0x4E, 0xC6, 0x9E, 0x5A, 0xAA, 0xA6, 0x3E, 0xDC, 0xE1, 0xC1, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + +#endif + + #ifdef XMRIG_ALGO_GHOSTRIDER // "GhostRider" const static uint8_t test_output_gr[256] = { diff --git a/src/crypto/cn/CryptoNight_x86.h b/src/crypto/cn/CryptoNight_x86.h index 64622ee4..2fe64edb 100644 --- a/src/crypto/cn/CryptoNight_x86.h +++ b/src/crypto/cn/CryptoNight_x86.h @@ -80,7 +80,7 @@ static inline void do_skein_hash(const uint8_t *input, size_t len, uint8_t *outp void (* const extra_hashes[4])(const uint8_t *, size_t, uint8_t *) = {do_blake_hash, do_groestl_hash, do_jh_hash, do_skein_hash}; -#if (defined(__i386__) || defined(_M_IX86)) && !(defined(__clang__) && defined(__clang_major__) && (__clang_major__ >= 15)) +#if defined(__i386__) || defined(_M_IX86) static inline int64_t _mm_cvtsi128_si64(__m128i a) { return ((uint64_t)(uint32_t)_mm_cvtsi128_si32(a) | ((uint64_t)(uint32_t)_mm_cvtsi128_si32(_mm_srli_si128(a, 4)) << 32)); @@ -295,8 +295,8 @@ static NOINLINE void cn_explode_scratchpad(cryptonight_ctx *ctx) constexpr CnAlgo props; # ifdef XMRIG_VAES - if (!SOFT_AES && !props.isHeavy() && cn_vaes_enabled) { - cn_explode_scratchpad_vaes(ctx, props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_explode_scratchpad_vaes(ctx); return; } # endif @@ -409,8 +409,8 @@ static NOINLINE void cn_implode_scratchpad(cryptonight_ctx *ctx) constexpr CnAlgo props; # ifdef XMRIG_VAES - if (!SOFT_AES && !props.isHeavy() && cn_vaes_enabled) { - cn_implode_scratchpad_vaes(ctx, props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_implode_scratchpad_vaes(ctx); return; } # endif @@ -634,35 +634,9 @@ static inline void cryptonight_conceal_tweak(__m128i& cx, __m128& conc_var) cx = _mm_xor_si128(cx, _mm_cvttps_epi32(nc)); } -#ifdef XMRIG_FEATURE_ASM -template -static void cryptonight_single_hash_gr_sse41(const uint8_t* __restrict__ input, size_t size, uint8_t* __restrict__ output, cryptonight_ctx** __restrict__ ctx, uint64_t height); -#endif - template inline void cryptonight_single_hash(const uint8_t *__restrict__ input, size_t size, uint8_t *__restrict__ output, cryptonight_ctx **__restrict__ ctx, uint64_t height) { -# ifdef XMRIG_FEATURE_ASM - if (!SOFT_AES) { - switch (ALGO) { - case Algorithm::CN_GR_0: - case Algorithm::CN_GR_1: - case Algorithm::CN_GR_2: - case Algorithm::CN_GR_3: - case Algorithm::CN_GR_4: - case Algorithm::CN_GR_5: - if (cn_sse41_enabled) { - cryptonight_single_hash_gr_sse41(input, size, output, ctx, height); - return; - } - break; - - default: - break; - } - } -# endif - constexpr CnAlgo props; constexpr size_t MASK = props.mask(); constexpr Algorithm::Id BASE = props.base(); @@ -808,7 +782,7 @@ inline void cryptonight_single_hash(const uint8_t *__restrict__ input, size_t si int64_t d5; -# if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 8)) || !defined(XMRIG_64_BIT) +# if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 8)) d5 = d | 5; # else // Workaround for stupid GCC which converts to 32 bit before doing "| 5" and then converts back to 64 bit @@ -848,16 +822,13 @@ inline void cryptonight_single_hash(const uint8_t *__restrict__ input, size_t si #ifdef XMRIG_FEATURE_ASM -extern "C" void cnv1_single_mainloop_asm(cryptonight_ctx * *ctx); -extern "C" void cnv1_double_mainloop_asm(cryptonight_ctx **ctx); -extern "C" void cnv1_quad_mainloop_asm(cryptonight_ctx **ctx); extern "C" void cnv2_mainloop_ivybridge_asm(cryptonight_ctx **ctx); extern "C" void cnv2_mainloop_ryzen_asm(cryptonight_ctx **ctx); extern "C" void cnv2_mainloop_bulldozer_asm(cryptonight_ctx **ctx); extern "C" void cnv2_double_mainloop_sandybridge_asm(cryptonight_ctx **ctx); extern "C" void cnv2_rwz_mainloop_asm(cryptonight_ctx **ctx); extern "C" void cnv2_rwz_double_mainloop_asm(cryptonight_ctx **ctx); -extern "C" void cnv2_upx_double_mainloop_zen3_asm(cryptonight_ctx **ctx); +extern "C" void cnv2_upx_double_mainloop_zen3_asm(cryptonight_ctx * *ctx); namespace xmrig { @@ -894,28 +865,6 @@ extern cn_mainloop_fun cn_double_double_mainloop_sandybridge_asm; extern cn_mainloop_fun cn_upx2_mainloop_asm; extern cn_mainloop_fun cn_upx2_double_mainloop_asm; -extern cn_mainloop_fun cn_gr0_single_mainloop_asm; -extern cn_mainloop_fun cn_gr1_single_mainloop_asm; -extern cn_mainloop_fun cn_gr2_single_mainloop_asm; -extern cn_mainloop_fun cn_gr3_single_mainloop_asm; -extern cn_mainloop_fun cn_gr4_single_mainloop_asm; -extern cn_mainloop_fun cn_gr5_single_mainloop_asm; - -extern cn_mainloop_fun cn_gr0_double_mainloop_asm; -extern cn_mainloop_fun cn_gr1_double_mainloop_asm; -extern cn_mainloop_fun cn_gr2_double_mainloop_asm; -extern cn_mainloop_fun cn_gr3_double_mainloop_asm; -extern cn_mainloop_fun cn_gr4_double_mainloop_asm; -extern cn_mainloop_fun cn_gr5_double_mainloop_asm; - -extern cn_mainloop_fun cn_gr0_quad_mainloop_asm; -extern cn_mainloop_fun cn_gr1_quad_mainloop_asm; -extern cn_mainloop_fun cn_gr2_quad_mainloop_asm; -extern cn_mainloop_fun cn_gr3_quad_mainloop_asm; -extern cn_mainloop_fun cn_gr4_quad_mainloop_asm; -extern cn_mainloop_fun cn_gr5_quad_mainloop_asm; - - } // namespace xmrig @@ -1068,8 +1017,8 @@ inline void cryptonight_double_hash_asm(const uint8_t *__restrict__ input, size_ } # ifdef XMRIG_VAES - if (!props.isHeavy() && cn_vaes_enabled) { - cn_explode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); + if (!props.isHeavy() && Cpu::info()->hasVAES()) { + cn_explode_scratchpad_vaes_double(ctx[0], ctx[1]); } else # endif @@ -1116,8 +1065,8 @@ inline void cryptonight_double_hash_asm(const uint8_t *__restrict__ input, size_ } # ifdef XMRIG_VAES - if (!props.isHeavy() && cn_vaes_enabled) { - cn_implode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); + if (!props.isHeavy() && Cpu::info()->hasVAES()) { + cn_implode_scratchpad_vaes_double(ctx[0], ctx[1]); } else # endif @@ -1141,130 +1090,9 @@ inline void cryptonight_double_hash_asm(const uint8_t *__restrict__ input, size_ namespace xmrig { -#ifdef XMRIG_FEATURE_ASM -template -static NOINLINE void cryptonight_single_hash_gr_sse41(const uint8_t* __restrict__ input, size_t size, uint8_t* __restrict__ output, cryptonight_ctx** __restrict__ ctx, uint64_t height) -{ - constexpr CnAlgo props; - constexpr Algorithm::Id BASE = props.base(); - - if (BASE == Algorithm::CN_1 && size < 43) { - memset(output, 0, 32); - return; - } - - keccak(input, size, ctx[0]->state); - - if (props.half_mem()) { - ctx[0]->first_half = true; - } - cn_explode_scratchpad(ctx[0]); - - VARIANT1_INIT(0); - ctx[0]->tweak1_2 = tweak1_2_0; - ctx[0]->tweak1_table = tweak1_table; - if (ALGO == Algorithm::CN_GR_0) cn_gr0_single_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_1) cn_gr1_single_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_2) cn_gr2_single_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_3) cn_gr3_single_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_4) cn_gr4_single_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_5) cn_gr5_single_mainloop_asm(ctx); - - cn_implode_scratchpad(ctx[0]); - keccakf(reinterpret_cast(ctx[0]->state), 24); - extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output); -} - - -template -static NOINLINE void cryptonight_double_hash_gr_sse41(const uint8_t *__restrict__ input, size_t size, uint8_t *__restrict__ output, cryptonight_ctx **__restrict__ ctx, uint64_t height) -{ - constexpr CnAlgo props; - constexpr Algorithm::Id BASE = props.base(); - - if (BASE == Algorithm::CN_1 && size < 43) { - memset(output, 0, 64); - return; - } - - keccak(input, size, ctx[0]->state); - keccak(input + size, size, ctx[1]->state); - - if (props.half_mem()) { - ctx[0]->first_half = true; - ctx[1]->first_half = true; - } - -# ifdef XMRIG_VAES - if (!props.isHeavy() && cn_vaes_enabled) { - cn_explode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); - } - else -# endif - { - cn_explode_scratchpad(ctx[0]); - cn_explode_scratchpad(ctx[1]); - } - - VARIANT1_INIT(0); - VARIANT1_INIT(1); - - ctx[0]->tweak1_2 = tweak1_2_0; - ctx[1]->tweak1_2 = tweak1_2_1; - - ctx[0]->tweak1_table = tweak1_table; - - if (ALGO == Algorithm::CN_GR_0) cn_gr0_double_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_1) cn_gr1_double_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_2) cn_gr2_double_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_3) cn_gr3_double_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_4) cn_gr4_double_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_5) cn_gr5_double_mainloop_asm(ctx); - -# ifdef XMRIG_VAES - if (!props.isHeavy() && cn_vaes_enabled) { - cn_implode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); - } - else -# endif - { - cn_implode_scratchpad(ctx[0]); - cn_implode_scratchpad(ctx[1]); - } - - keccakf(reinterpret_cast(ctx[0]->state), 24); - keccakf(reinterpret_cast(ctx[1]->state), 24); - - extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output); - extra_hashes[ctx[1]->state[0] & 3](ctx[1]->state, 200, output + 32); -} -#endif - - template inline void cryptonight_double_hash(const uint8_t *__restrict__ input, size_t size, uint8_t *__restrict__ output, cryptonight_ctx **__restrict__ ctx, uint64_t height) { -# ifdef XMRIG_FEATURE_ASM - if (!SOFT_AES) { - switch (ALGO) { - case Algorithm::CN_GR_0: - case Algorithm::CN_GR_1: - case Algorithm::CN_GR_2: - case Algorithm::CN_GR_3: - case Algorithm::CN_GR_4: - case Algorithm::CN_GR_5: - if (cn_sse41_enabled) { - cryptonight_double_hash_gr_sse41(input, size, output, ctx, height); - return; - } - break; - - default: - break; - } - } -# endif - constexpr CnAlgo props; constexpr size_t MASK = props.mask(); constexpr Algorithm::Id BASE = props.base(); @@ -1302,8 +1130,8 @@ inline void cryptonight_double_hash(const uint8_t *__restrict__ input, size_t si } # ifdef XMRIG_VAES - if (!SOFT_AES && !props.isHeavy() && cn_vaes_enabled) { - cn_explode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_explode_scratchpad_vaes_double(ctx[0], ctx[1]); } else # endif @@ -1506,8 +1334,8 @@ inline void cryptonight_double_hash(const uint8_t *__restrict__ input, size_t si } # ifdef XMRIG_VAES - if (!SOFT_AES && !props.isHeavy() && cn_vaes_enabled) { - cn_implode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_implode_scratchpad_vaes_double(ctx[0], ctx[1]); } else # endif @@ -1524,15 +1352,27 @@ inline void cryptonight_double_hash(const uint8_t *__restrict__ input, size_t si } -#ifdef XMRIG_FEATURE_ASM -template -static NOINLINE void cryptonight_quad_hash_gr_sse41(const uint8_t* __restrict__ input, size_t size, uint8_t* __restrict__ output, cryptonight_ctx** __restrict__ ctx, uint64_t height) +static inline void cryptonight_monero_tweak_gr(uint64_t* mem_out, const uint8_t* l, uint64_t idx, __m128i ax0, __m128i bx0, __m128i cx) +{ + __m128i tmp = _mm_xor_si128(bx0, cx); + mem_out[0] = _mm_cvtsi128_si64(tmp); + + tmp = _mm_castps_si128(_mm_movehl_ps(_mm_castsi128_ps(tmp), _mm_castsi128_ps(tmp))); + uint64_t vh = _mm_cvtsi128_si64(tmp); + + mem_out[1] = vh ^ tweak1_table[static_cast(vh) >> 24]; +} + + +template +void cryptonight_quad_hash_zen(const uint8_t* __restrict__ input, size_t size, uint8_t* __restrict__ output, cryptonight_ctx** __restrict__ ctx, uint64_t height) { constexpr CnAlgo props; + constexpr size_t MASK = props.mask(); constexpr Algorithm::Id BASE = props.base(); if (BASE == Algorithm::CN_1 && size < 43) { - memset(output, 0, 32 * 4); + memset(output, 0, 64); return; } @@ -1541,6 +1381,21 @@ static NOINLINE void cryptonight_quad_hash_gr_sse41(const uint8_t* __restrict__ keccak(input + size * 2, size, ctx[2]->state); keccak(input + size * 3, size, ctx[3]->state); + uint8_t* l0 = ctx[0]->memory; + uint8_t* l1 = ctx[1]->memory; + uint8_t* l2 = ctx[2]->memory; + uint8_t* l3 = ctx[3]->memory; + + uint64_t* h0 = reinterpret_cast(ctx[0]->state); + uint64_t* h1 = reinterpret_cast(ctx[1]->state); + uint64_t* h2 = reinterpret_cast(ctx[2]->state); + uint64_t* h3 = reinterpret_cast(ctx[3]->state); + + VARIANT1_INIT(0); + VARIANT1_INIT(1); + VARIANT1_INIT(2); + VARIANT1_INIT(3); + if (props.half_mem()) { ctx[0]->first_half = true; ctx[1]->first_half = true; @@ -1549,58 +1404,162 @@ static NOINLINE void cryptonight_quad_hash_gr_sse41(const uint8_t* __restrict__ } # ifdef XMRIG_VAES - if (!props.isHeavy() && cn_vaes_enabled) { - cn_explode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); - cn_explode_scratchpad_vaes_double(ctx[2], ctx[3], props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_explode_scratchpad_vaes_double(ctx[0], ctx[1]); + cn_explode_scratchpad_vaes_double(ctx[2], ctx[3]); } else # endif { - cn_explode_scratchpad(ctx[0]); - cn_explode_scratchpad(ctx[1]); - cn_explode_scratchpad(ctx[2]); - cn_explode_scratchpad(ctx[3]); + cn_explode_scratchpad(ctx[0]); + cn_explode_scratchpad(ctx[1]); + cn_explode_scratchpad(ctx[2]); + cn_explode_scratchpad(ctx[3]); } - VARIANT1_INIT(0); ctx[0]->tweak1_2 = tweak1_2_0; - VARIANT1_INIT(1); ctx[1]->tweak1_2 = tweak1_2_1; - VARIANT1_INIT(2); ctx[2]->tweak1_2 = tweak1_2_2; - VARIANT1_INIT(3); ctx[3]->tweak1_2 = tweak1_2_3; + uint64_t al0 = h0[0] ^ h0[4]; + uint64_t al1 = h1[0] ^ h1[4]; + uint64_t al2 = h2[0] ^ h2[4]; + uint64_t al3 = h3[0] ^ h3[4]; - ctx[0]->tweak1_table = tweak1_table; + uint64_t ah0 = h0[1] ^ h0[5]; + uint64_t ah1 = h1[1] ^ h1[5]; + uint64_t ah2 = h2[1] ^ h2[5]; + uint64_t ah3 = h3[1] ^ h3[5]; - if (ALGO == Algorithm::CN_GR_0) cn_gr0_quad_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_1) cn_gr1_quad_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_2) cn_gr2_quad_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_3) cn_gr3_quad_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_4) cn_gr4_quad_mainloop_asm(ctx); - if (ALGO == Algorithm::CN_GR_5) cn_gr5_quad_mainloop_asm(ctx); + __m128i bx00 = _mm_set_epi64x(h0[3] ^ h0[7], h0[2] ^ h0[6]); + __m128i bx10 = _mm_set_epi64x(h1[3] ^ h1[7], h1[2] ^ h1[6]); + __m128i bx20 = _mm_set_epi64x(h2[3] ^ h2[7], h2[2] ^ h2[6]); + __m128i bx30 = _mm_set_epi64x(h3[3] ^ h3[7], h3[2] ^ h3[6]); + + uint64_t idx0 = al0; + uint64_t idx1 = al1; + uint64_t idx2 = al2; + uint64_t idx3 = al3; + + __m128i cx0, cx1, cx2, cx3; + + if (!SOFT_AES) { + cx0 = _mm_load_si128(reinterpret_cast(&l0[idx0 & MASK])); + cx1 = _mm_load_si128(reinterpret_cast(&l1[idx1 & MASK])); + cx2 = _mm_load_si128(reinterpret_cast(&l2[idx2 & MASK])); + cx3 = _mm_load_si128(reinterpret_cast(&l3[idx3 & MASK])); + } + + for (size_t i = 0; i < props.iterations(); i++) { + const __m128i ax0 = _mm_set_epi64x(ah0, al0); + const __m128i ax1 = _mm_set_epi64x(ah1, al1); + const __m128i ax2 = _mm_set_epi64x(ah2, al2); + const __m128i ax3 = _mm_set_epi64x(ah3, al3); + + if (SOFT_AES) { + cx0 = soft_aesenc(&l0[idx0 & MASK], ax0, reinterpret_cast(saes_table)); + cx1 = soft_aesenc(&l1[idx1 & MASK], ax1, reinterpret_cast(saes_table)); + cx2 = soft_aesenc(&l2[idx2 & MASK], ax2, reinterpret_cast(saes_table)); + cx3 = soft_aesenc(&l3[idx3 & MASK], ax3, reinterpret_cast(saes_table)); + } + else { + cx0 = _mm_aesenc_si128(cx0, ax0); + cx1 = _mm_aesenc_si128(cx1, ax1); + cx2 = _mm_aesenc_si128(cx2, ax2); + cx3 = _mm_aesenc_si128(cx3, ax3); + if (MASK > 131072) { + _mm_prefetch((const char*)(&l0[_mm_cvtsi128_si32(cx0) & MASK]), _MM_HINT_T0); + _mm_prefetch((const char*)(&l1[_mm_cvtsi128_si32(cx1) & MASK]), _MM_HINT_T0); + _mm_prefetch((const char*)(&l2[_mm_cvtsi128_si32(cx2) & MASK]), _MM_HINT_T0); + _mm_prefetch((const char*)(&l3[_mm_cvtsi128_si32(cx3) & MASK]), _MM_HINT_T0); + } + } + + cryptonight_monero_tweak_gr((uint64_t*)&l0[idx0 & MASK], l0, idx0 & MASK, ax0, bx00, cx0); + cryptonight_monero_tweak_gr((uint64_t*)&l1[idx1 & MASK], l1, idx1 & MASK, ax1, bx10, cx1); + cryptonight_monero_tweak_gr((uint64_t*)&l2[idx2 & MASK], l2, idx2 & MASK, ax2, bx20, cx2); + cryptonight_monero_tweak_gr((uint64_t*)&l3[idx3 & MASK], l3, idx3 & MASK, ax3, bx30, cx3); + + idx0 = _mm_cvtsi128_si64(cx0); + idx1 = _mm_cvtsi128_si64(cx1); + idx2 = _mm_cvtsi128_si64(cx2); + idx3 = _mm_cvtsi128_si64(cx3); + + uint64_t hi, lo, cl, ch; + + cl = ((uint64_t*)&l0[idx0 & MASK])[0]; + ch = ((uint64_t*)&l0[idx0 & MASK])[1]; + lo = __umul128(idx0, cl, &hi); + al0 += hi; + ah0 += lo; + ((uint64_t*)&l0[idx0 & MASK])[0] = al0; + ((uint64_t*)&l0[idx0 & MASK])[1] = ah0 ^ tweak1_2_0; + al0 ^= cl; + ah0 ^= ch; + idx0 = al0; + bx00 = cx0; + if (!SOFT_AES) cx0 = _mm_load_si128(reinterpret_cast(&l0[idx0 & MASK])); + + cl = ((uint64_t*)&l1[idx1 & MASK])[0]; + ch = ((uint64_t*)&l1[idx1 & MASK])[1]; + lo = __umul128(idx1, cl, &hi); + al1 += hi; + ah1 += lo; + ((uint64_t*)&l1[idx1 & MASK])[0] = al1; + ((uint64_t*)&l1[idx1 & MASK])[1] = ah1 ^ tweak1_2_1; + al1 ^= cl; + ah1 ^= ch; + idx1 = al1; + bx10 = cx1; + if (!SOFT_AES) cx1 = _mm_load_si128(reinterpret_cast(&l1[idx1 & MASK])); + + cl = ((uint64_t*)&l2[idx2 & MASK])[0]; + ch = ((uint64_t*)&l2[idx2 & MASK])[1]; + lo = __umul128(idx2, cl, &hi); + al2 += hi; + ah2 += lo; + ((uint64_t*)&l2[idx2 & MASK])[0] = al2; + ((uint64_t*)&l2[idx2 & MASK])[1] = ah2 ^ tweak1_2_2; + al2 ^= cl; + ah2 ^= ch; + idx2 = al2; + bx20 = cx2; + if (!SOFT_AES) cx2 = _mm_load_si128(reinterpret_cast(&l2[idx2 & MASK])); + + cl = ((uint64_t*)&l3[idx3 & MASK])[0]; + ch = ((uint64_t*)&l3[idx3 & MASK])[1]; + lo = __umul128(idx3, cl, &hi); + al3 += hi; + ah3 += lo; + ((uint64_t*)&l3[idx3 & MASK])[0] = al3; + ((uint64_t*)&l3[idx3 & MASK])[1] = ah3 ^ tweak1_2_3; + al3 ^= cl; + ah3 ^= ch; + idx3 = al3; + bx30 = cx3; + if (!SOFT_AES) cx3 = _mm_load_si128(reinterpret_cast(&l3[idx3 & MASK])); + } # ifdef XMRIG_VAES - if (!props.isHeavy() && cn_vaes_enabled) { - cn_implode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); - cn_implode_scratchpad_vaes_double(ctx[2], ctx[3], props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_implode_scratchpad_vaes_double(ctx[0], ctx[1]); + cn_implode_scratchpad_vaes_double(ctx[2], ctx[3]); } else # endif { - cn_implode_scratchpad(ctx[0]); - cn_implode_scratchpad(ctx[1]); - cn_implode_scratchpad(ctx[2]); - cn_implode_scratchpad(ctx[3]); + cn_implode_scratchpad(ctx[0]); + cn_implode_scratchpad(ctx[1]); + cn_implode_scratchpad(ctx[2]); + cn_implode_scratchpad(ctx[3]); } - keccakf(reinterpret_cast(ctx[0]->state), 24); - keccakf(reinterpret_cast(ctx[1]->state), 24); - keccakf(reinterpret_cast(ctx[2]->state), 24); - keccakf(reinterpret_cast(ctx[3]->state), 24); + keccakf(h0, 24); + keccakf(h1, 24); + keccakf(h2, 24); + keccakf(h3, 24); extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output); extra_hashes[ctx[1]->state[0] & 3](ctx[1]->state, 200, output + 32); extra_hashes[ctx[2]->state[0] & 3](ctx[2]->state, 200, output + 64); extra_hashes[ctx[3]->state[0] & 3](ctx[3]->state, 200, output + 96); } -#endif #define CN_STEP1(a, b0, b1, c, l, ptr, idx, conc_var) \ @@ -1796,26 +1755,13 @@ inline void cryptonight_triple_hash(const uint8_t *__restrict__ input, size_t si template inline void cryptonight_quad_hash(const uint8_t *__restrict__ input, size_t size, uint8_t *__restrict__ output, cryptonight_ctx **__restrict__ ctx, uint64_t height) { -# ifdef XMRIG_FEATURE_ASM - if (!SOFT_AES) { - switch (ALGO) { - case Algorithm::CN_GR_0: - case Algorithm::CN_GR_1: - case Algorithm::CN_GR_2: - case Algorithm::CN_GR_3: - case Algorithm::CN_GR_4: - case Algorithm::CN_GR_5: - if (cn_sse41_enabled) { - cryptonight_quad_hash_gr_sse41(input, size, output, ctx, height); - return; - } - break; - - default: - break; + const auto arch = Cpu::info()->arch(); + if ((arch >= ICpuInfo::ARCH_ZEN) && (arch <= ICpuInfo::ARCH_ZEN3)) { + if ((ALGO == Algorithm::CN_GR_0) || (ALGO == Algorithm::CN_GR_1) || (ALGO == Algorithm::CN_GR_2) || (ALGO == Algorithm::CN_GR_3) || (ALGO == Algorithm::CN_GR_4) || (ALGO == Algorithm::CN_GR_5)) { + cryptonight_quad_hash_zen(input, size, output, ctx, height); + return; } } -# endif constexpr CnAlgo props; constexpr size_t MASK = props.mask(); @@ -1842,9 +1788,9 @@ inline void cryptonight_quad_hash(const uint8_t *__restrict__ input, size_t size } # ifdef XMRIG_VAES - if (!SOFT_AES && !props.isHeavy() && cn_vaes_enabled) { - cn_explode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); - cn_explode_scratchpad_vaes_double(ctx[2], ctx[3], props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_explode_scratchpad_vaes_double(ctx[0], ctx[1]); + cn_explode_scratchpad_vaes_double(ctx[2], ctx[3]); } else # endif @@ -1905,9 +1851,9 @@ inline void cryptonight_quad_hash(const uint8_t *__restrict__ input, size_t size } # ifdef XMRIG_VAES - if (!SOFT_AES && !props.isHeavy() && cn_vaes_enabled) { - cn_implode_scratchpad_vaes_double(ctx[0], ctx[1], props.memory(), props.half_mem()); - cn_implode_scratchpad_vaes_double(ctx[2], ctx[3], props.memory(), props.half_mem()); + if (!SOFT_AES && !props.isHeavy() && Cpu::info()->hasVAES()) { + cn_implode_scratchpad_vaes_double(ctx[0], ctx[1]); + cn_implode_scratchpad_vaes_double(ctx[2], ctx[3]); } else # endif diff --git a/src/crypto/cn/CryptoNight_x86_vaes.cpp b/src/crypto/cn/CryptoNight_x86_vaes.cpp index 41da111b..177da813 100644 --- a/src/crypto/cn/CryptoNight_x86_vaes.cpp +++ b/src/crypto/cn/CryptoNight_x86_vaes.cpp @@ -162,9 +162,12 @@ static FORCEINLINE void vaes_round(__m256i key, __m256i& x0, __m256i& x1, __m256 namespace xmrig { -NOINLINE void cn_explode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bool half_mem) +template +NOINLINE void cn_explode_scratchpad_vaes(cryptonight_ctx* ctx) { - const size_t N = (memory / sizeof(__m256i)) / (half_mem ? 2 : 1); + constexpr CnAlgo props; + + constexpr size_t N = (props.memory() / sizeof(__m256i)) / (props.half_mem() ? 2 : 1); __m256i xin01, xin23, xin45, xin67; __m256i k0, k1, k2, k3, k4, k5, k6, k7, k8, k9; @@ -174,18 +177,18 @@ NOINLINE void cn_explode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bo vaes_genkey(input, &k0, &k1, &k2, &k3, &k4, &k5, &k6, &k7, &k8, &k9); - if (half_mem && !ctx->first_half) { + if (props.half_mem() && !ctx->first_half) { const __m256i* p = reinterpret_cast(ctx->save_state); - xin01 = _mm256_loadu_si256(p + 0); - xin23 = _mm256_loadu_si256(p + 1); - xin45 = _mm256_loadu_si256(p + 2); - xin67 = _mm256_loadu_si256(p + 3); + xin01 = _mm256_load_si256(p + 0); + xin23 = _mm256_load_si256(p + 1); + xin45 = _mm256_load_si256(p + 2); + xin67 = _mm256_load_si256(p + 3); } else { - xin01 = _mm256_loadu_si256(reinterpret_cast(input + 4)); - xin23 = _mm256_loadu_si256(reinterpret_cast(input + 6)); - xin45 = _mm256_loadu_si256(reinterpret_cast(input + 8)); - xin67 = _mm256_loadu_si256(reinterpret_cast(input + 10)); + xin01 = _mm256_load_si256(reinterpret_cast(input + 4)); + xin23 = _mm256_load_si256(reinterpret_cast(input + 6)); + xin45 = _mm256_load_si256(reinterpret_cast(input + 8)); + xin67 = _mm256_load_si256(reinterpret_cast(input + 10)); } constexpr int output_increment = 64 / sizeof(__m256i); @@ -223,21 +226,24 @@ NOINLINE void cn_explode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bo prefetch_ptr = output; } - if (half_mem && ctx->first_half) { + if (props.half_mem() && ctx->first_half) { __m256i* p = reinterpret_cast<__m256i*>(ctx->save_state); - _mm256_storeu_si256(p + 0, xin01); - _mm256_storeu_si256(p + 1, xin23); - _mm256_storeu_si256(p + 2, xin45); - _mm256_storeu_si256(p + 3, xin67); + _mm256_store_si256(p + 0, xin01); + _mm256_store_si256(p + 1, xin23); + _mm256_store_si256(p + 2, xin45); + _mm256_store_si256(p + 3, xin67); } _mm256_zeroupper(); } -NOINLINE void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2, size_t memory, bool half_mem) +template +NOINLINE void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2) { - const size_t N = (memory / sizeof(__m128i)) / (half_mem ? 2 : 1); + constexpr CnAlgo props; + + constexpr size_t N = (props.memory() / sizeof(__m128i)) / (props.half_mem() ? 2 : 1); __m256i xin0, xin1, xin2, xin3, xin4, xin5, xin6, xin7; __m256i k0, k1, k2, k3, k4, k5, k6, k7, k8, k9; @@ -251,7 +257,7 @@ NOINLINE void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonig vaes_genkey_double(input1, input2, &k0, &k1, &k2, &k3, &k4, &k5, &k6, &k7, &k8, &k9); { - const bool b = half_mem && !ctx1->first_half && !ctx2->first_half; + const bool b = props.half_mem() && !ctx1->first_half && !ctx2->first_half; const __m128i* p1 = b ? reinterpret_cast(ctx1->save_state) : (input1 + 4); const __m128i* p2 = b ? reinterpret_cast(ctx2->save_state) : (input2 + 4); xin0 = _mm256_loadu2_m128i(p2 + 0, p1 + 0); @@ -309,7 +315,7 @@ NOINLINE void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonig prefetch_ptr2 = output2; } - if (half_mem && ctx1->first_half && ctx2->first_half) { + if (props.half_mem() && ctx1->first_half && ctx2->first_half) { __m128i* p1 = reinterpret_cast<__m128i*>(ctx1->save_state); __m128i* p2 = reinterpret_cast<__m128i*>(ctx2->save_state); _mm256_storeu2_m128i(p2 + 0, p1 + 0, xin0); @@ -326,9 +332,12 @@ NOINLINE void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonig } -NOINLINE void cn_implode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bool half_mem) +template +NOINLINE void cn_implode_scratchpad_vaes(cryptonight_ctx* ctx) { - const size_t N = (memory / sizeof(__m256i)) / (half_mem ? 2 : 1); + constexpr CnAlgo props; + + constexpr size_t N = (props.memory() / sizeof(__m256i)) / (props.half_mem() ? 2 : 1); __m256i xout01, xout23, xout45, xout67; __m256i k0, k1, k2, k3, k4, k5, k6, k7, k8, k9; @@ -338,17 +347,17 @@ NOINLINE void cn_implode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bo vaes_genkey(reinterpret_cast<__m128i*>(output) + 2, &k0, &k1, &k2, &k3, &k4, &k5, &k6, &k7, &k8, &k9); - xout01 = _mm256_loadu_si256(output + 2); - xout23 = _mm256_loadu_si256(output + 3); - xout45 = _mm256_loadu_si256(output + 4); - xout67 = _mm256_loadu_si256(output + 5); + xout01 = _mm256_load_si256(output + 2); + xout23 = _mm256_load_si256(output + 3); + xout45 = _mm256_load_si256(output + 4); + xout67 = _mm256_load_si256(output + 5); const __m256i* input_begin = input; - for (size_t part = 0; part < (half_mem ? 2 : 1); ++part) { - if (half_mem && (part == 1)) { + for (size_t part = 0; part < (props.half_mem() ? 2 : 1); ++part) { + if (props.half_mem() && (part == 1)) { input = input_begin; ctx->first_half = false; - cn_explode_scratchpad_vaes(ctx, memory, half_mem); + cn_explode_scratchpad_vaes(ctx); } for (size_t i = 0; i < N;) { @@ -381,18 +390,21 @@ NOINLINE void cn_implode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bo } } - _mm256_storeu_si256(output + 2, xout01); - _mm256_storeu_si256(output + 3, xout23); - _mm256_storeu_si256(output + 4, xout45); - _mm256_storeu_si256(output + 5, xout67); + _mm256_store_si256(output + 2, xout01); + _mm256_store_si256(output + 3, xout23); + _mm256_store_si256(output + 4, xout45); + _mm256_store_si256(output + 5, xout67); _mm256_zeroupper(); } -NOINLINE void cn_implode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2, size_t memory, bool half_mem) +template +NOINLINE void cn_implode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2) { - const size_t N = (memory / sizeof(__m128i)) / (half_mem ? 2 : 1); + constexpr CnAlgo props; + + constexpr size_t N = (props.memory() / sizeof(__m128i)) / (props.half_mem() ? 2 : 1); __m256i xout0, xout1, xout2, xout3, xout4, xout5, xout6, xout7; __m256i k0, k1, k2, k3, k4, k5, k6, k7, k8, k9; @@ -416,13 +428,13 @@ NOINLINE void cn_implode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonig const __m128i* input_begin1 = input1; const __m128i* input_begin2 = input2; - for (size_t part = 0; part < (half_mem ? 2 : 1); ++part) { - if (half_mem && (part == 1)) { + for (size_t part = 0; part < (props.half_mem() ? 2 : 1); ++part) { + if (props.half_mem() && (part == 1)) { input1 = input_begin1; input2 = input_begin2; ctx1->first_half = false; ctx2->first_half = false; - cn_explode_scratchpad_vaes_double(ctx1, ctx2, memory, half_mem); + cn_explode_scratchpad_vaes_double(ctx1, ctx2); } for (size_t i = 0; i < N;) { @@ -475,4 +487,44 @@ NOINLINE void cn_implode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonig } +template +void VAES_Instance() +{ + cn_explode_scratchpad_vaes(nullptr); + cn_explode_scratchpad_vaes_double(nullptr, nullptr); + cn_implode_scratchpad_vaes(nullptr); + cn_implode_scratchpad_vaes_double(nullptr, nullptr); +} + + +void (*vaes_instances[])() = { + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, + VAES_Instance, +}; + + } // xmrig diff --git a/src/crypto/cn/CryptoNight_x86_vaes.h b/src/crypto/cn/CryptoNight_x86_vaes.h index 1c824ecf..475780b8 100644 --- a/src/crypto/cn/CryptoNight_x86_vaes.h +++ b/src/crypto/cn/CryptoNight_x86_vaes.h @@ -36,10 +36,10 @@ struct cryptonight_ctx; namespace xmrig { -void cn_explode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bool half_mem); -void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2, size_t memory, bool half_mem); -void cn_implode_scratchpad_vaes(cryptonight_ctx* ctx, size_t memory, bool half_mem); -void cn_implode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2, size_t memory, bool half_mem); +template void cn_explode_scratchpad_vaes(cryptonight_ctx* ctx); +template void cn_explode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2); +template void cn_implode_scratchpad_vaes(cryptonight_ctx* ctx); +template void cn_implode_scratchpad_vaes_double(cryptonight_ctx* ctx1, cryptonight_ctx* ctx2); } // xmrig diff --git a/src/crypto/cn/asm/cn1/cnv1_double_main_loop.inc b/src/crypto/cn/asm/cn1/cnv1_double_main_loop.inc deleted file mode 100644 index 896c1a2c..00000000 --- a/src/crypto/cn/asm/cn1/cnv1_double_main_loop.inc +++ /dev/null @@ -1,132 +0,0 @@ - mov QWORD PTR [rsp+8], rbx - mov QWORD PTR [rsp+16], rbp - mov QWORD PTR [rsp+24], rsi - push rdi - push r12 - push r13 - push r14 - push r15 - sub rsp, 32 - mov rdx, QWORD PTR [rcx] - mov r8, QWORD PTR [rcx+8] - mov r12d, 524288 - movaps XMMWORD PTR [rsp+16], xmm6 - mov rbx, QWORD PTR [rdx+32] - xor rbx, QWORD PTR [rdx] - mov rsi, QWORD PTR [rdx+40] - mov r10, rbx - xor rsi, QWORD PTR [rdx+8] - and r10d, 2097136 - mov rdi, QWORD PTR [r8+32] - xor rdi, QWORD PTR [r8] - movq xmm3, rbx - mov rbp, QWORD PTR [r8+40] - mov r9, rdi - xor rbp, QWORD PTR [r8+8] - movq xmm0, rsi - mov rcx, QWORD PTR [rdx+56] - and r9d, 2097136 - xor rcx, QWORD PTR [rdx+24] - movq xmm4, rdi - mov rax, QWORD PTR [rdx+48] - xor rax, QWORD PTR [rdx+16] - mov r14, QWORD PTR [rdx+224] - mov r13, QWORD PTR [rdx+232] - mov r15, QWORD PTR [r8+224] - punpcklqdq xmm3, xmm0 - movq xmm0, rbp - movq xmm5, rax - punpcklqdq xmm4, xmm0 - mov rax, QWORD PTR [r8+48] - movq xmm0, rcx - xor rax, QWORD PTR [r8+16] - mov rcx, QWORD PTR [r8+56] - xor rcx, QWORD PTR [r8+24] - movdqu xmm1, XMMWORD PTR [r14+r10] - movq xmm6, rax - punpcklqdq xmm5, xmm0 - mov rax, QWORD PTR [rdx+240] - movq xmm0, rcx - movdqu xmm2, XMMWORD PTR [r15+r9] - mov QWORD PTR [rsp], rax - mov rax, QWORD PTR [r8+240] - mov QWORD PTR [rsp+8], rax - punpcklqdq xmm6, xmm0 - - ALIGN(64) -main_loop_cnv1_double: - aesenc xmm1, xmm3 - aesenc xmm2, xmm4 - movdqa xmm0, xmm1 - movq r11, xmm2 - pxor xmm0, xmm5 - movdqa xmm5, xmm1 - movq QWORD PTR [r14+r10], xmm0 - pextrq rcx, xmm0, 1 - mov eax, ecx - movdqa xmm0, xmm2 - shr rax, 24 - pxor xmm0, xmm6 - movdqa xmm6, xmm2 - mov eax, DWORD PTR [r13+rax*4] - xor rax, rcx - mov QWORD PTR [r14+r10+8], rax - movq QWORD PTR [r15+r9], xmm0 - pextrq rcx, xmm0, 1 - mov eax, ecx - shr rax, 24 - mov eax, DWORD PTR [r13+rax*4] - xor rax, rcx - movq rcx, xmm1 - mov QWORD PTR [r15+r9+8], rax - mov r9, rcx - and r9d, 2097136 - mov r10, QWORD PTR [r14+r9] - mov r8, QWORD PTR [r14+r9+8] - mov rax, r10 - mul rcx - add rsi, rax - add rbx, rdx - mov rax, QWORD PTR [rsp] - mov QWORD PTR [r14+r9], rbx - xor rax, rsi - mov QWORD PTR [r14+r9+8], rax - xor rsi, r8 - xor rbx, r10 - mov r8, r11 - and r8d, 2097136 - mov r10, rbx - and r10d, 2097136 - movq xmm3, rbx - pinsrq xmm3, rsi, 1 - mov r9, QWORD PTR [r15+r8] - mov rcx, QWORD PTR [r15+r8+8] - mov rax, r9 - movdqu xmm1, XMMWORD PTR [r14+r10] - mul r11 - add rbp, rax - add rdi, rdx - mov rax, QWORD PTR [rsp+8] - mov QWORD PTR [r15+r8], rdi - xor rax, rbp - xor rdi, r9 - mov QWORD PTR [r15+r8+8], rax - mov r9, rdi - xor rbp, rcx - and r9d, 2097136 - movq xmm4, rdi - pinsrq xmm4, rbp, 1 - movdqu xmm2, XMMWORD PTR [r15+r9] - sub r12, 1 - jne main_loop_cnv1_double - - mov rbx, QWORD PTR [rsp+80] - mov rbp, QWORD PTR [rsp+88] - mov rsi, QWORD PTR [rsp+96] - movaps xmm6, XMMWORD PTR [rsp+16] - add rsp, 32 - pop r15 - pop r14 - pop r13 - pop r12 - pop rdi diff --git a/src/crypto/cn/asm/cn1/cnv1_quad_main_loop.inc b/src/crypto/cn/asm/cn1/cnv1_quad_main_loop.inc deleted file mode 100644 index 2b61ced0..00000000 --- a/src/crypto/cn/asm/cn1/cnv1_quad_main_loop.inc +++ /dev/null @@ -1,263 +0,0 @@ - mov rax, rsp - mov QWORD PTR [rax+8], rbx - mov QWORD PTR [rax+16], rbp - mov QWORD PTR [rax+24], rsi - push rdi - push r12 - push r13 - push r14 - push r15 - sub rsp, 144 - mov r8, QWORD PTR [rcx] - mov r9, QWORD PTR [rcx+8] - mov r10, QWORD PTR [rcx+16] - mov r11, QWORD PTR [rcx+24] - mov rbp, QWORD PTR [r8+224] - mov r13, QWORD PTR [r8+232] - mov r14, QWORD PTR [r9+224] - mov r15, QWORD PTR [r10+224] - mov r12, QWORD PTR [r11+224] - mov rcx, QWORD PTR [r8+40] - xor rcx, QWORD PTR [r8+8] - mov rbx, QWORD PTR [r8+32] - xor rbx, QWORD PTR [r8] - mov rdi, QWORD PTR [r9+32] - xor rdi, QWORD PTR [r9] - movq xmm0, rcx - mov rcx, QWORD PTR [r9+40] - xor rcx, QWORD PTR [r9+8] - movq xmm1, rbx - movaps XMMWORD PTR [rax-56], xmm6 - movaps XMMWORD PTR [rax-72], xmm7 - movaps XMMWORD PTR [rax-88], xmm8 - movaps XMMWORD PTR [rax-104], xmm9 - movaps XMMWORD PTR [rax-120], xmm10 - movaps XMMWORD PTR [rsp+48], xmm11 - movaps XMMWORD PTR [rsp+32], xmm12 - and ebx, 2097136 - mov rsi, QWORD PTR [r10+32] - movq xmm2, rdi - mov rax, QWORD PTR [r8+240] - and edi, 2097136 - xor rsi, QWORD PTR [r10] - mov rdx, QWORD PTR [r8+56] - xor rdx, QWORD PTR [r8+24] - mov QWORD PTR [rsp], rax - mov rax, QWORD PTR [r9+240] - movq xmm3, rsi - mov QWORD PTR [rsp+8], rax - and esi, 2097136 - mov rax, QWORD PTR [r10+240] - punpcklqdq xmm1, xmm0 - movq xmm0, rcx - mov rcx, QWORD PTR [r10+40] - xor rcx, QWORD PTR [r10+8] - mov QWORD PTR [rsp+16], rax - mov rax, QWORD PTR [r11+240] - punpcklqdq xmm2, xmm0 - movq xmm0, rcx - mov QWORD PTR [rsp+24], rax - mov rcx, QWORD PTR [r11+40] - xor rcx, QWORD PTR [r11+8] - mov rax, QWORD PTR [r11+32] - xor rax, QWORD PTR [r11] - punpcklqdq xmm3, xmm0 - movq xmm0, rcx - mov rcx, QWORD PTR [r8+48] - xor rcx, QWORD PTR [r8+16] - movq xmm4, rax - and eax, 2097136 - punpcklqdq xmm4, xmm0 - movq xmm0, rdx - mov rdx, QWORD PTR [r9+56] - xor rdx, QWORD PTR [r9+24] - movq xmm5, rcx - mov rcx, QWORD PTR [r9+48] - xor rcx, QWORD PTR [r9+16] - punpcklqdq xmm5, xmm0 - movq xmm0, rdx - mov rdx, QWORD PTR [r10+56] - xor rdx, QWORD PTR [r10+24] - movq xmm6, rcx - mov rcx, QWORD PTR [r10+48] - xor rcx, QWORD PTR [r10+16] - punpcklqdq xmm6, xmm0 - movq xmm0, rdx - mov rdx, QWORD PTR [r11+56] - movq xmm7, rcx - punpcklqdq xmm7, xmm0 - xor rdx, QWORD PTR [r11+24] - mov rcx, QWORD PTR [r11+48] - xor rcx, QWORD PTR [r11+16] - mov r11d, 524288 - movdqu xmm9, XMMWORD PTR [rbp+rbx] - movdqu xmm10, XMMWORD PTR [r14+rdi] - movq xmm0, rdx - movdqu xmm11, XMMWORD PTR [r15+rsi] - movdqu xmm12, XMMWORD PTR [r12+rax] - movq xmm8, rcx - punpcklqdq xmm8, xmm0 - - ALIGN(64) -main_loop_cnv1_quad: - aesenc xmm9, xmm1 - aesenc xmm10, xmm2 - aesenc xmm11, xmm3 - aesenc xmm12, xmm4 - movd ecx, xmm9 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+rbp] - movd ecx, xmm10 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+r14] - movd ecx, xmm11 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+r15] - movd ecx, xmm12 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+r12] - movdqa xmm0, xmm9 - pxor xmm0, xmm5 - movdqa xmm5, xmm9 - movq QWORD PTR [rbp+rbx], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - movdqa xmm0, xmm10 - shr rcx, 24 - pxor xmm0, xmm6 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [rbp+rbx+8], rcx - movq rbx, xmm1 - movq QWORD PTR [r14+rdi], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - movdqa xmm0, xmm11 - shr rcx, 24 - pxor xmm0, xmm7 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [r14+rdi+8], rcx - movq rdi, xmm2 - movq QWORD PTR [r15+rsi], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - movdqa xmm0, xmm12 - shr rcx, 24 - pxor xmm0, xmm8 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [r15+rsi+8], rcx - movq QWORD PTR [r12+rax], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - shr rcx, 24 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [r12+rax+8], rcx - movq rcx, xmm9 - mov r8, rcx - and r8d, 2097136 - mov r9, QWORD PTR [rbp+r8] - mov r10, QWORD PTR [rbp+r8+8] - mov rax, r9 - mul rcx - pextrq rcx, xmm1, 1 - add rcx, rax - add rbx, rdx - mov rax, QWORD PTR [rsp] - mov QWORD PTR [rbp+r8], rbx - xor rax, rcx - mov QWORD PTR [rbp+r8+8], rax - xor rcx, r10 - xor rbx, r9 - movq xmm1, rbx - and ebx, 2097136 - pinsrq xmm1, rcx, 1 - movq rcx, xmm10 - mov r8, rcx - and r8d, 2097136 - movdqu xmm9, XMMWORD PTR [rbp+rbx] - mov r9, QWORD PTR [r14+r8] - mov r10, QWORD PTR [r14+r8+8] - mov rax, r9 - mul rcx - pextrq rcx, xmm2, 1 - add rcx, rax - add rdi, rdx - mov rax, QWORD PTR [rsp+8] - mov QWORD PTR [r14+r8], rdi - xor rax, rcx - xor rdi, r9 - mov QWORD PTR [r14+r8+8], rax - xor rcx, r10 - movq xmm2, rdi - and edi, 2097136 - pinsrq xmm2, rcx, 1 - movq rcx, xmm11 - movq rsi, xmm3 - mov r8, rcx - and r8d, 2097136 - movdqa xmm6, xmm10 - movdqa xmm7, xmm11 - movdqa xmm8, xmm12 - movdqu xmm10, XMMWORD PTR [r14+rdi] - mov r9, QWORD PTR [r15+r8] - mov r10, QWORD PTR [r15+r8+8] - mov rax, r9 - mul rcx - pextrq rcx, xmm3, 1 - add rcx, rax - add rsi, rdx - mov rax, QWORD PTR [rsp+16] - xor rax, rcx - mov QWORD PTR [r15+r8], rsi - mov QWORD PTR [r15+r8+8], rax - xor rcx, r10 - xor rsi, r9 - movq xmm3, rsi - and esi, 2097136 - pinsrq xmm3, rcx, 1 - movq rcx, xmm12 - mov r8, rcx - and r8d, 2097136 - movdqu xmm11, XMMWORD PTR [r15+rsi] - mov r9, QWORD PTR [r12+r8] - mov r10, QWORD PTR [r12+r8+8] - mov rax, r9 - mul rcx - mov rcx, rax - movq rax, xmm4 - add rax, rdx - mov QWORD PTR [r12+r8], rax - xor rax, r9 - pextrq rdx, xmm4, 1 - add rdx, rcx - mov rcx, QWORD PTR [rsp+24] - xor rcx, rdx - xor rdx, r10 - movq xmm4, rax - mov QWORD PTR [r12+r8+8], rcx - and eax, 2097136 - pinsrq xmm4, rdx, 1 - movdqu xmm12, XMMWORD PTR [r12+rax] - sub r11, 1 - jne main_loop_cnv1_quad - - movaps xmm7, XMMWORD PTR [rsp+112] - lea r11, QWORD PTR [rsp+144] - mov rbx, QWORD PTR [r11+48] - mov rbp, QWORD PTR [r11+56] - mov rsi, QWORD PTR [r11+64] - movaps xmm6, XMMWORD PTR [r11-16] - movaps xmm8, XMMWORD PTR [r11-48] - movaps xmm9, XMMWORD PTR [r11-64] - movaps xmm10, XMMWORD PTR [r11-80] - movaps xmm11, XMMWORD PTR [r11-96] - movaps xmm12, XMMWORD PTR [r11-112] - mov rsp, r11 - pop r15 - pop r14 - pop r13 - pop r12 - pop rdi diff --git a/src/crypto/cn/asm/cn1/cnv1_single_main_loop.inc b/src/crypto/cn/asm/cn1/cnv1_single_main_loop.inc deleted file mode 100644 index 62558c3c..00000000 --- a/src/crypto/cn/asm/cn1/cnv1_single_main_loop.inc +++ /dev/null @@ -1,66 +0,0 @@ - mov QWORD PTR [rsp+8], rbx - mov QWORD PTR [rsp+16], rbp - mov QWORD PTR [rsp+24], rsi - mov QWORD PTR [rsp+32], rdi - push r13 - push r14 - push r15 - mov rdx, QWORD PTR [rcx] - mov esi, 524288 - mov r11, QWORD PTR [rdx+32] - xor r11, QWORD PTR [rdx] - mov rdi, QWORD PTR [rdx+224] - mov rbx, QWORD PTR [rdx+40] - xor rbx, QWORD PTR [rdx+8] - mov rcx, QWORD PTR [rdx+56] - xor rcx, QWORD PTR [rdx+24] - mov rax, QWORD PTR [rdx+48] - xor rax, QWORD PTR [rdx+16] - mov rbp, QWORD PTR [rdx+240] - mov r14, QWORD PTR [rdx+232] - movq xmm2, rax - pinsrq xmm2, rcx, 1 - - ALIGN(64) -main_loop_cnv1_single: - mov r8, r11 - and r8d, 2097136 - movdqu xmm1, XMMWORD PTR [rdi+r8] - movq xmm0, r11 - pinsrq xmm0, rbx, 1 - aesenc xmm1, xmm0 - movq r15, xmm1 - mov r9, r15 - and r9d, 2097136 - movdqa xmm0, xmm1 - pxor xmm0, xmm2 - movdqa xmm2, xmm1 - movq QWORD PTR [rdi+r8], xmm0 - pextrq rdx, xmm0, 1 - mov eax, edx - shr rax, 24 - mov ecx, DWORD PTR [r14+rax*4] - xor rcx, rdx - mov QWORD PTR [rdi+r8+8], rcx - mov r10, QWORD PTR [rdi+r9] - mov r8, QWORD PTR [rdi+r9+8] - mov rax, r10 - mul r15 - add rbx, rax - add r11, rdx - mov QWORD PTR [rdi+r9], r11 - mov rax, rbx - xor rbx, r8 - xor r11, r10 - xor rax, rbp - mov QWORD PTR [rdi+r9+8], rax - sub rsi, 1 - jne main_loop_cnv1_single - - pop r15 - pop r14 - pop r13 - mov rbx, QWORD PTR [rsp+8] - mov rbp, QWORD PTR [rsp+16] - mov rsi, QWORD PTR [rsp+24] - mov rdi, QWORD PTR [rsp+32] diff --git a/src/crypto/cn/asm/cn_main_loop.S b/src/crypto/cn/asm/cn_main_loop.S index 527e20e1..0dfd3ee2 100644 --- a/src/crypto/cn/asm/cn_main_loop.S +++ b/src/crypto/cn/asm/cn_main_loop.S @@ -11,9 +11,6 @@ # define FN_PREFIX(fn) fn .section .text #endif -.global FN_PREFIX(cnv1_single_mainloop_asm) -.global FN_PREFIX(cnv1_double_mainloop_asm) -.global FN_PREFIX(cnv1_quad_mainloop_asm) .global FN_PREFIX(cnv2_mainloop_ivybridge_asm) .global FN_PREFIX(cnv2_mainloop_ryzen_asm) .global FN_PREFIX(cnv2_mainloop_bulldozer_asm) @@ -22,33 +19,6 @@ .global FN_PREFIX(cnv2_rwz_double_mainloop_asm) .global FN_PREFIX(cnv2_upx_double_mainloop_zen3_asm) -ALIGN(64) -FN_PREFIX(cnv1_single_mainloop_asm): - sub rsp, 48 - mov rcx, rdi - #include "cn1/cnv1_single_main_loop.inc" - add rsp, 48 - ret 0 - mov eax, 3735929054 - -ALIGN(64) -FN_PREFIX(cnv1_double_mainloop_asm): - sub rsp, 48 - mov rcx, rdi - #include "cn1/cnv1_double_main_loop.inc" - add rsp, 48 - ret 0 - mov eax, 3735929054 - -ALIGN(64) -FN_PREFIX(cnv1_quad_mainloop_asm): - sub rsp, 48 - mov rcx, rdi - #include "cn1/cnv1_quad_main_loop.inc" - add rsp, 48 - ret 0 - mov eax, 3735929054 - ALIGN(64) FN_PREFIX(cnv2_mainloop_ivybridge_asm): sub rsp, 48 diff --git a/src/crypto/cn/asm/cn_main_loop.asm b/src/crypto/cn/asm/cn_main_loop.asm index da1c19a1..97ae5299 100644 --- a/src/crypto/cn/asm/cn_main_loop.asm +++ b/src/crypto/cn/asm/cn_main_loop.asm @@ -1,35 +1,10 @@ _TEXT_CNV2_MAINLOOP SEGMENT PAGE READ EXECUTE -PUBLIC cnv1_single_mainloop_asm -PUBLIC cnv1_double_mainloop_asm -PUBLIC cnv1_quad_mainloop_asm PUBLIC cnv2_mainloop_ivybridge_asm PUBLIC cnv2_mainloop_ryzen_asm PUBLIC cnv2_mainloop_bulldozer_asm PUBLIC cnv2_double_mainloop_sandybridge_asm PUBLIC cnv2_rwz_mainloop_asm PUBLIC cnv2_rwz_double_mainloop_asm -PUBLIC cnv2_upx_double_mainloop_zen3_asm - -ALIGN(64) -cnv1_single_mainloop_asm PROC - INCLUDE cn1/cnv1_single_main_loop.inc - ret 0 - mov eax, 3735929054 -cnv1_single_mainloop_asm ENDP - -ALIGN(64) -cnv1_double_mainloop_asm PROC - INCLUDE cn1/cnv1_double_main_loop.inc - ret 0 - mov eax, 3735929054 -cnv1_double_mainloop_asm ENDP - -ALIGN(64) -cnv1_quad_mainloop_asm PROC - INCLUDE cn1/cnv1_quad_main_loop.inc - ret 0 - mov eax, 3735929054 -cnv1_quad_mainloop_asm ENDP ALIGN(64) cnv2_mainloop_ivybridge_asm PROC diff --git a/src/crypto/cn/asm/win64/cn1/cnv1_double_main_loop.inc b/src/crypto/cn/asm/win64/cn1/cnv1_double_main_loop.inc deleted file mode 100644 index ac0cdb21..00000000 --- a/src/crypto/cn/asm/win64/cn1/cnv1_double_main_loop.inc +++ /dev/null @@ -1,132 +0,0 @@ - mov QWORD PTR [rsp+8], rbx - mov QWORD PTR [rsp+16], rbp - mov QWORD PTR [rsp+24], rsi - push rdi - push r12 - push r13 - push r14 - push r15 - sub rsp, 32 - mov rdx, QWORD PTR [rcx] - mov r8, QWORD PTR [rcx+8] - mov r12d, 524288 - movaps XMMWORD PTR [rsp+16], xmm6 - mov rbx, QWORD PTR [rdx+32] - xor rbx, QWORD PTR [rdx] - mov rsi, QWORD PTR [rdx+40] - mov r10, rbx - xor rsi, QWORD PTR [rdx+8] - and r10d, 2097136 - mov rdi, QWORD PTR [r8+32] - xor rdi, QWORD PTR [r8] - movd xmm3, rbx - mov rbp, QWORD PTR [r8+40] - mov r9, rdi - xor rbp, QWORD PTR [r8+8] - movd xmm0, rsi - mov rcx, QWORD PTR [rdx+56] - and r9d, 2097136 - xor rcx, QWORD PTR [rdx+24] - movd xmm4, rdi - mov rax, QWORD PTR [rdx+48] - xor rax, QWORD PTR [rdx+16] - mov r14, QWORD PTR [rdx+224] - mov r13, QWORD PTR [rdx+232] - mov r15, QWORD PTR [r8+224] - punpcklqdq xmm3, xmm0 - movd xmm0, rbp - movd xmm5, rax - punpcklqdq xmm4, xmm0 - mov rax, QWORD PTR [r8+48] - movd xmm0, rcx - xor rax, QWORD PTR [r8+16] - mov rcx, QWORD PTR [r8+56] - xor rcx, QWORD PTR [r8+24] - movdqu xmm1, XMMWORD PTR [r14+r10] - movd xmm6, rax - punpcklqdq xmm5, xmm0 - mov rax, QWORD PTR [rdx+240] - movd xmm0, rcx - movdqu xmm2, XMMWORD PTR [r15+r9] - mov QWORD PTR [rsp], rax - mov rax, QWORD PTR [r8+240] - mov QWORD PTR [rsp+8], rax - punpcklqdq xmm6, xmm0 - - ALIGN(64) -main_loop_cnv1_double: - aesenc xmm1, xmm3 - aesenc xmm2, xmm4 - movdqa xmm0, xmm1 - movd r11, xmm2 - pxor xmm0, xmm5 - movdqa xmm5, xmm1 - movd QWORD PTR [r14+r10], xmm0 - pextrq rcx, xmm0, 1 - mov eax, ecx - movdqa xmm0, xmm2 - shr rax, 24 - pxor xmm0, xmm6 - movdqa xmm6, xmm2 - mov eax, DWORD PTR [r13+rax*4] - xor rax, rcx - mov QWORD PTR [r14+r10+8], rax - movd QWORD PTR [r15+r9], xmm0 - pextrq rcx, xmm0, 1 - mov eax, ecx - shr rax, 24 - mov eax, DWORD PTR [r13+rax*4] - xor rax, rcx - movd rcx, xmm1 - mov QWORD PTR [r15+r9+8], rax - mov r9, rcx - and r9d, 2097136 - mov r10, QWORD PTR [r14+r9] - mov r8, QWORD PTR [r14+r9+8] - mov rax, r10 - mul rcx - add rsi, rax - add rbx, rdx - mov rax, QWORD PTR [rsp] - mov QWORD PTR [r14+r9], rbx - xor rax, rsi - mov QWORD PTR [r14+r9+8], rax - xor rsi, r8 - xor rbx, r10 - mov r8, r11 - and r8d, 2097136 - mov r10, rbx - and r10d, 2097136 - movd xmm3, rbx - pinsrq xmm3, rsi, 1 - mov r9, QWORD PTR [r15+r8] - mov rcx, QWORD PTR [r15+r8+8] - mov rax, r9 - movdqu xmm1, XMMWORD PTR [r14+r10] - mul r11 - add rbp, rax - add rdi, rdx - mov rax, QWORD PTR [rsp+8] - mov QWORD PTR [r15+r8], rdi - xor rax, rbp - xor rdi, r9 - mov QWORD PTR [r15+r8+8], rax - mov r9, rdi - xor rbp, rcx - and r9d, 2097136 - movd xmm4, rdi - pinsrq xmm4, rbp, 1 - movdqu xmm2, XMMWORD PTR [r15+r9] - sub r12, 1 - jne main_loop_cnv1_double - - mov rbx, QWORD PTR [rsp+80] - mov rbp, QWORD PTR [rsp+88] - mov rsi, QWORD PTR [rsp+96] - movaps xmm6, XMMWORD PTR [rsp+16] - add rsp, 32 - pop r15 - pop r14 - pop r13 - pop r12 - pop rdi diff --git a/src/crypto/cn/asm/win64/cn1/cnv1_quad_main_loop.inc b/src/crypto/cn/asm/win64/cn1/cnv1_quad_main_loop.inc deleted file mode 100644 index 78d145a1..00000000 --- a/src/crypto/cn/asm/win64/cn1/cnv1_quad_main_loop.inc +++ /dev/null @@ -1,263 +0,0 @@ - mov rax, rsp - mov QWORD PTR [rax+8], rbx - mov QWORD PTR [rax+16], rbp - mov QWORD PTR [rax+24], rsi - push rdi - push r12 - push r13 - push r14 - push r15 - sub rsp, 144 - mov r8, QWORD PTR [rcx] - mov r9, QWORD PTR [rcx+8] - mov r10, QWORD PTR [rcx+16] - mov r11, QWORD PTR [rcx+24] - mov rbp, QWORD PTR [r8+224] - mov r13, QWORD PTR [r8+232] - mov r14, QWORD PTR [r9+224] - mov r15, QWORD PTR [r10+224] - mov r12, QWORD PTR [r11+224] - mov rcx, QWORD PTR [r8+40] - xor rcx, QWORD PTR [r8+8] - mov rbx, QWORD PTR [r8+32] - xor rbx, QWORD PTR [r8] - mov rdi, QWORD PTR [r9+32] - xor rdi, QWORD PTR [r9] - movd xmm0, rcx - mov rcx, QWORD PTR [r9+40] - xor rcx, QWORD PTR [r9+8] - movd xmm1, rbx - movaps XMMWORD PTR [rax-56], xmm6 - movaps XMMWORD PTR [rax-72], xmm7 - movaps XMMWORD PTR [rax-88], xmm8 - movaps XMMWORD PTR [rax-104], xmm9 - movaps XMMWORD PTR [rax-120], xmm10 - movaps XMMWORD PTR [rsp+48], xmm11 - movaps XMMWORD PTR [rsp+32], xmm12 - and ebx, 2097136 - mov rsi, QWORD PTR [r10+32] - movd xmm2, rdi - mov rax, QWORD PTR [r8+240] - and edi, 2097136 - xor rsi, QWORD PTR [r10] - mov rdx, QWORD PTR [r8+56] - xor rdx, QWORD PTR [r8+24] - mov QWORD PTR [rsp], rax - mov rax, QWORD PTR [r9+240] - movd xmm3, rsi - mov QWORD PTR [rsp+8], rax - and esi, 2097136 - mov rax, QWORD PTR [r10+240] - punpcklqdq xmm1, xmm0 - movd xmm0, rcx - mov rcx, QWORD PTR [r10+40] - xor rcx, QWORD PTR [r10+8] - mov QWORD PTR [rsp+16], rax - mov rax, QWORD PTR [r11+240] - punpcklqdq xmm2, xmm0 - movd xmm0, rcx - mov QWORD PTR [rsp+24], rax - mov rcx, QWORD PTR [r11+40] - xor rcx, QWORD PTR [r11+8] - mov rax, QWORD PTR [r11+32] - xor rax, QWORD PTR [r11] - punpcklqdq xmm3, xmm0 - movd xmm0, rcx - mov rcx, QWORD PTR [r8+48] - xor rcx, QWORD PTR [r8+16] - movd xmm4, rax - and eax, 2097136 - punpcklqdq xmm4, xmm0 - movd xmm0, rdx - mov rdx, QWORD PTR [r9+56] - xor rdx, QWORD PTR [r9+24] - movd xmm5, rcx - mov rcx, QWORD PTR [r9+48] - xor rcx, QWORD PTR [r9+16] - punpcklqdq xmm5, xmm0 - movd xmm0, rdx - mov rdx, QWORD PTR [r10+56] - xor rdx, QWORD PTR [r10+24] - movd xmm6, rcx - mov rcx, QWORD PTR [r10+48] - xor rcx, QWORD PTR [r10+16] - punpcklqdq xmm6, xmm0 - movd xmm0, rdx - mov rdx, QWORD PTR [r11+56] - movd xmm7, rcx - punpcklqdq xmm7, xmm0 - xor rdx, QWORD PTR [r11+24] - mov rcx, QWORD PTR [r11+48] - xor rcx, QWORD PTR [r11+16] - mov r11d, 524288 - movdqu xmm9, XMMWORD PTR [rbp+rbx] - movdqu xmm10, XMMWORD PTR [r14+rdi] - movd xmm0, rdx - movdqu xmm11, XMMWORD PTR [r15+rsi] - movdqu xmm12, XMMWORD PTR [r12+rax] - movd xmm8, rcx - punpcklqdq xmm8, xmm0 - - ALIGN(64) -main_loop_cnv1_quad: - aesenc xmm9, xmm1 - aesenc xmm10, xmm2 - aesenc xmm11, xmm3 - aesenc xmm12, xmm4 - movd ecx, xmm9 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+rbp] - movd ecx, xmm10 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+r14] - movd ecx, xmm11 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+r15] - movd ecx, xmm12 - and ecx, 2097136 - prefetcht0 BYTE PTR [rcx+r12] - movdqa xmm0, xmm9 - pxor xmm0, xmm5 - movdqa xmm5, xmm9 - movd QWORD PTR [rbp+rbx], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - movdqa xmm0, xmm10 - shr rcx, 24 - pxor xmm0, xmm6 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [rbp+rbx+8], rcx - movd rbx, xmm1 - movd QWORD PTR [r14+rdi], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - movdqa xmm0, xmm11 - shr rcx, 24 - pxor xmm0, xmm7 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [r14+rdi+8], rcx - movd rdi, xmm2 - movd QWORD PTR [r15+rsi], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - movdqa xmm0, xmm12 - shr rcx, 24 - pxor xmm0, xmm8 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [r15+rsi+8], rcx - movd QWORD PTR [r12+rax], xmm0 - pextrq rdx, xmm0, 1 - mov ecx, edx - shr rcx, 24 - mov ecx, DWORD PTR [r13+rcx*4] - xor rcx, rdx - mov QWORD PTR [r12+rax+8], rcx - movd rcx, xmm9 - mov r8, rcx - and r8d, 2097136 - mov r9, QWORD PTR [rbp+r8] - mov r10, QWORD PTR [rbp+r8+8] - mov rax, r9 - mul rcx - pextrq rcx, xmm1, 1 - add rcx, rax - add rbx, rdx - mov rax, QWORD PTR [rsp] - mov QWORD PTR [rbp+r8], rbx - xor rax, rcx - mov QWORD PTR [rbp+r8+8], rax - xor rcx, r10 - xor rbx, r9 - movd xmm1, rbx - and ebx, 2097136 - pinsrq xmm1, rcx, 1 - movd rcx, xmm10 - mov r8, rcx - and r8d, 2097136 - movdqu xmm9, XMMWORD PTR [rbp+rbx] - mov r9, QWORD PTR [r14+r8] - mov r10, QWORD PTR [r14+r8+8] - mov rax, r9 - mul rcx - pextrq rcx, xmm2, 1 - add rcx, rax - add rdi, rdx - mov rax, QWORD PTR [rsp+8] - mov QWORD PTR [r14+r8], rdi - xor rax, rcx - xor rdi, r9 - mov QWORD PTR [r14+r8+8], rax - xor rcx, r10 - movd xmm2, rdi - and edi, 2097136 - pinsrq xmm2, rcx, 1 - movd rcx, xmm11 - movd rsi, xmm3 - mov r8, rcx - and r8d, 2097136 - movdqa xmm6, xmm10 - movdqa xmm7, xmm11 - movdqa xmm8, xmm12 - movdqu xmm10, XMMWORD PTR [r14+rdi] - mov r9, QWORD PTR [r15+r8] - mov r10, QWORD PTR [r15+r8+8] - mov rax, r9 - mul rcx - pextrq rcx, xmm3, 1 - add rcx, rax - add rsi, rdx - mov rax, QWORD PTR [rsp+16] - xor rax, rcx - mov QWORD PTR [r15+r8], rsi - mov QWORD PTR [r15+r8+8], rax - xor rcx, r10 - xor rsi, r9 - movd xmm3, rsi - and esi, 2097136 - pinsrq xmm3, rcx, 1 - movd rcx, xmm12 - mov r8, rcx - and r8d, 2097136 - movdqu xmm11, XMMWORD PTR [r15+rsi] - mov r9, QWORD PTR [r12+r8] - mov r10, QWORD PTR [r12+r8+8] - mov rax, r9 - mul rcx - mov rcx, rax - movd rax, xmm4 - add rax, rdx - mov QWORD PTR [r12+r8], rax - xor rax, r9 - pextrq rdx, xmm4, 1 - add rdx, rcx - mov rcx, QWORD PTR [rsp+24] - xor rcx, rdx - xor rdx, r10 - movd xmm4, rax - mov QWORD PTR [r12+r8+8], rcx - and eax, 2097136 - pinsrq xmm4, rdx, 1 - movdqu xmm12, XMMWORD PTR [r12+rax] - sub r11, 1 - jne main_loop_cnv1_quad - - movaps xmm7, XMMWORD PTR [rsp+112] - lea r11, QWORD PTR [rsp+144] - mov rbx, QWORD PTR [r11+48] - mov rbp, QWORD PTR [r11+56] - mov rsi, QWORD PTR [r11+64] - movaps xmm6, XMMWORD PTR [r11-16] - movaps xmm8, XMMWORD PTR [r11-48] - movaps xmm9, XMMWORD PTR [r11-64] - movaps xmm10, XMMWORD PTR [r11-80] - movaps xmm11, XMMWORD PTR [r11-96] - movaps xmm12, XMMWORD PTR [r11-112] - mov rsp, r11 - pop r15 - pop r14 - pop r13 - pop r12 - pop rdi diff --git a/src/crypto/cn/asm/win64/cn1/cnv1_single_main_loop.inc b/src/crypto/cn/asm/win64/cn1/cnv1_single_main_loop.inc deleted file mode 100644 index 37413f23..00000000 --- a/src/crypto/cn/asm/win64/cn1/cnv1_single_main_loop.inc +++ /dev/null @@ -1,66 +0,0 @@ - mov QWORD PTR [rsp+8], rbx - mov QWORD PTR [rsp+16], rbp - mov QWORD PTR [rsp+24], rsi - mov QWORD PTR [rsp+32], rdi - push r13 - push r14 - push r15 - mov rdx, QWORD PTR [rcx] - mov esi, 524288 - mov r11, QWORD PTR [rdx+32] - xor r11, QWORD PTR [rdx] - mov rdi, QWORD PTR [rdx+224] - mov rbx, QWORD PTR [rdx+40] - xor rbx, QWORD PTR [rdx+8] - mov rcx, QWORD PTR [rdx+56] - xor rcx, QWORD PTR [rdx+24] - mov rax, QWORD PTR [rdx+48] - xor rax, QWORD PTR [rdx+16] - mov rbp, QWORD PTR [rdx+240] - mov r14, QWORD PTR [rdx+232] - movd xmm2, rax - pinsrq xmm2, rcx, 1 - - ALIGN(64) -main_loop_cnv1_single: - mov r8, r11 - and r8d, 2097136 - movdqu xmm1, XMMWORD PTR [rdi+r8] - movd xmm0, r11 - pinsrq xmm0, rbx, 1 - aesenc xmm1, xmm0 - movd r15, xmm1 - mov r9, r15 - and r9d, 2097136 - movdqa xmm0, xmm1 - pxor xmm0, xmm2 - movdqa xmm2, xmm1 - movd QWORD PTR [rdi+r8], xmm0 - pextrq rdx, xmm0, 1 - mov eax, edx - shr rax, 24 - mov ecx, DWORD PTR [r14+rax*4] - xor rcx, rdx - mov QWORD PTR [rdi+r8+8], rcx - mov r10, QWORD PTR [rdi+r9] - mov r8, QWORD PTR [rdi+r9+8] - mov rax, r10 - mul r15 - add rbx, rax - add r11, rdx - mov QWORD PTR [rdi+r9], r11 - mov rax, rbx - xor rbx, r8 - xor r11, r10 - xor rax, rbp - mov QWORD PTR [rdi+r9+8], rax - sub rsi, 1 - jne main_loop_cnv1_single - - pop r15 - pop r14 - pop r13 - mov rbx, QWORD PTR [rsp+8] - mov rbp, QWORD PTR [rsp+16] - mov rsi, QWORD PTR [rsp+24] - mov rdi, QWORD PTR [rsp+32] diff --git a/src/crypto/cn/asm/win64/cn_main_loop.S b/src/crypto/cn/asm/win64/cn_main_loop.S index 9a227f0a..9361469a 100644 --- a/src/crypto/cn/asm/win64/cn_main_loop.S +++ b/src/crypto/cn/asm/win64/cn_main_loop.S @@ -1,9 +1,6 @@ #define ALIGN(x) .align 64 .intel_syntax noprefix .section .text -.global cnv1_single_mainloop_asm -.global cnv1_double_mainloop_asm -.global cnv1_quad_mainloop_asm .global cnv2_mainloop_ivybridge_asm .global cnv2_mainloop_ryzen_asm .global cnv2_mainloop_bulldozer_asm @@ -12,24 +9,6 @@ .global cnv2_rwz_double_mainloop_asm .global cnv2_upx_double_mainloop_zen3_asm -ALIGN(64) -cnv1_single_mainloop_asm: - #include "../cn1/cnv1_single_main_loop.inc" - ret 0 - mov eax, 3735929054 - -ALIGN(64) -cnv1_double_mainloop_asm: - #include "../cn1/cnv1_double_main_loop.inc" - ret 0 - mov eax, 3735929054 - -ALIGN(64) -cnv1_quad_mainloop_asm: - #include "../cn1/cnv1_quad_main_loop.inc" - ret 0 - mov eax, 3735929054 - ALIGN(64) cnv2_mainloop_ivybridge_asm: #include "../cn2/cnv2_main_loop_ivybridge.inc" diff --git a/src/crypto/cn/asm/win64/cn_main_loop.asm b/src/crypto/cn/asm/win64/cn_main_loop.asm index da1c19a1..7f83e682 100644 --- a/src/crypto/cn/asm/win64/cn_main_loop.asm +++ b/src/crypto/cn/asm/win64/cn_main_loop.asm @@ -1,58 +1,33 @@ _TEXT_CNV2_MAINLOOP SEGMENT PAGE READ EXECUTE -PUBLIC cnv1_single_mainloop_asm -PUBLIC cnv1_double_mainloop_asm -PUBLIC cnv1_quad_mainloop_asm PUBLIC cnv2_mainloop_ivybridge_asm PUBLIC cnv2_mainloop_ryzen_asm PUBLIC cnv2_mainloop_bulldozer_asm PUBLIC cnv2_double_mainloop_sandybridge_asm PUBLIC cnv2_rwz_mainloop_asm PUBLIC cnv2_rwz_double_mainloop_asm -PUBLIC cnv2_upx_double_mainloop_zen3_asm -ALIGN(64) -cnv1_single_mainloop_asm PROC - INCLUDE cn1/cnv1_single_main_loop.inc - ret 0 - mov eax, 3735929054 -cnv1_single_mainloop_asm ENDP - -ALIGN(64) -cnv1_double_mainloop_asm PROC - INCLUDE cn1/cnv1_double_main_loop.inc - ret 0 - mov eax, 3735929054 -cnv1_double_mainloop_asm ENDP - -ALIGN(64) -cnv1_quad_mainloop_asm PROC - INCLUDE cn1/cnv1_quad_main_loop.inc - ret 0 - mov eax, 3735929054 -cnv1_quad_mainloop_asm ENDP - -ALIGN(64) +ALIGN 64 cnv2_mainloop_ivybridge_asm PROC INCLUDE cn2/cnv2_main_loop_ivybridge.inc ret 0 mov eax, 3735929054 cnv2_mainloop_ivybridge_asm ENDP -ALIGN(64) +ALIGN 64 cnv2_mainloop_ryzen_asm PROC INCLUDE cn2/cnv2_main_loop_ryzen.inc ret 0 mov eax, 3735929054 cnv2_mainloop_ryzen_asm ENDP -ALIGN(64) +ALIGN 64 cnv2_mainloop_bulldozer_asm PROC INCLUDE cn2/cnv2_main_loop_bulldozer.inc ret 0 mov eax, 3735929054 cnv2_mainloop_bulldozer_asm ENDP -ALIGN(64) +ALIGN 64 cnv2_double_mainloop_sandybridge_asm PROC INCLUDE cn2/cnv2_double_main_loop_sandybridge.inc ret 0 diff --git a/src/crypto/cn/sse2neon.h b/src/crypto/cn/sse2neon.h index 8d605973..e41d8c18 100644 --- a/src/crypto/cn/sse2neon.h +++ b/src/crypto/cn/sse2neon.h @@ -4,6 +4,8 @@ // This header file provides a simple API translation layer // between SSE intrinsics to their corresponding Arm/Aarch64 NEON versions // +// This header file does not yet translate all of the SSE intrinsics. +// // Contributors to this work are: // John W. Ratcliff // Brandon Rowlett @@ -11,8 +13,8 @@ // Eric van Beurden // Alexander Potylitsin // Hasindu Gamaarachchi -// Jim Huang -// Mark Cheng +// Jim Huang +// Mark Cheng // Malcolm James MacLeod // Devin Hussey (easyaspi314) // Sebastian Pop @@ -20,13 +22,9 @@ // Danila Kutenin // François Turban (JishinMaster) // Pei-Hsuan Hung -// Yang-Hao Yuan +// Yang-Hao Yuan // Syoyo Fujita // Brecht Van Lommel -// Jonathan Hue -// Cuda Chen -// Aymen Qader -// Anthony Roberts /* * sse2neon is freely redistributable under the MIT License. @@ -54,9 +52,9 @@ /* Enable precise implementation of math operations * This would slow down the computation a bit, but gives consistent result with - * x86 SSE. (e.g. would solve a hole or NaN pixel in the rendering result) + * x86 SSE2. (e.g. would solve a hole or NaN pixel in the rendering result) */ -/* _mm_min|max_ps|ss|pd|sd */ +/* _mm_min_ps and _mm_max_ps */ #ifndef SSE2NEON_PRECISE_MINMAX #define SSE2NEON_PRECISE_MINMAX (0) #endif @@ -68,144 +66,38 @@ #ifndef SSE2NEON_PRECISE_SQRT #define SSE2NEON_PRECISE_SQRT (0) #endif -/* _mm_dp_pd */ -#ifndef SSE2NEON_PRECISE_DP -#define SSE2NEON_PRECISE_DP (0) -#endif -/* Enable inclusion of windows.h on MSVC platforms - * This makes _mm_clflush functional on windows, as there is no builtin. - */ -#ifndef SSE2NEON_INCLUDE_WINDOWS_H -#define SSE2NEON_INCLUDE_WINDOWS_H (0) -#endif - -/* compiler specific definitions */ #if defined(__GNUC__) || defined(__clang__) #pragma push_macro("FORCE_INLINE") #pragma push_macro("ALIGN_STRUCT") #define FORCE_INLINE static inline __attribute__((always_inline)) #define ALIGN_STRUCT(x) __attribute__((aligned(x))) -#define _sse2neon_likely(x) __builtin_expect(!!(x), 1) -#define _sse2neon_unlikely(x) __builtin_expect(!!(x), 0) -#elif defined(_MSC_VER) -#if _MSVC_TRADITIONAL -#error Using the traditional MSVC preprocessor is not supported! Use /Zc:preprocessor instead. +#ifndef likely +#define likely(x) __builtin_expect(!!(x), 1) +#endif +#ifndef unlikely +#define unlikely(x) __builtin_expect(!!(x), 0) +#endif +#else +#error "Macro name collisions may happen with unsupported compiler." +#ifdef FORCE_INLINE +#undef FORCE_INLINE #endif -#ifndef FORCE_INLINE #define FORCE_INLINE static inline -#endif #ifndef ALIGN_STRUCT #define ALIGN_STRUCT(x) __declspec(align(x)) #endif -#define _sse2neon_likely(x) (x) -#define _sse2neon_unlikely(x) (x) -#else -#pragma message("Macro name collisions may happen with unsupported compilers.") #endif - -/* C language does not allow initializing a variable with a function call. */ -#ifdef __cplusplus -#define _sse2neon_const static const -#else -#define _sse2neon_const const +#ifndef likely +#define likely(x) (x) +#endif +#ifndef unlikely +#define unlikely(x) (x) #endif #include #include -#if defined(_WIN32) -/* Definitions for _mm_{malloc,free} are provided by - * from both MinGW-w64 and MSVC. - */ -#define SSE2NEON_ALLOC_DEFINED -#endif - -/* If using MSVC */ -#ifdef _MSC_VER -#include -#if SSE2NEON_INCLUDE_WINDOWS_H -#include -#include -#endif - -#if !defined(__cplusplus) -#error sse2neon only supports C++ compilation with this compiler -#endif - -#ifdef SSE2NEON_ALLOC_DEFINED -#include -#endif - -#if (defined(_M_AMD64) || defined(__x86_64__)) || \ - (defined(_M_ARM64) || defined(__arm64__)) -#define SSE2NEON_HAS_BITSCAN64 -#endif -#endif - -#if defined(__GNUC__) || defined(__clang__) -#define _sse2neon_define0(type, s, body) \ - __extension__({ \ - type _a = (s); \ - body \ - }) -#define _sse2neon_define1(type, s, body) \ - __extension__({ \ - type _a = (s); \ - body \ - }) -#define _sse2neon_define2(type, a, b, body) \ - __extension__({ \ - type _a = (a), _b = (b); \ - body \ - }) -#define _sse2neon_return(ret) (ret) -#else -#define _sse2neon_define0(type, a, body) [=](type _a) { body }(a) -#define _sse2neon_define1(type, a, body) [](type _a) { body }(a) -#define _sse2neon_define2(type, a, b, body) \ - [](type _a, type _b) { body }((a), (b)) -#define _sse2neon_return(ret) return ret -#endif - -#define _sse2neon_init(...) \ - { \ - __VA_ARGS__ \ - } - -/* Compiler barrier */ -#if defined(_MSC_VER) -#define SSE2NEON_BARRIER() _ReadWriteBarrier() -#else -#define SSE2NEON_BARRIER() \ - do { \ - __asm__ __volatile__("" ::: "memory"); \ - (void) 0; \ - } while (0) -#endif - -/* Memory barriers - * __atomic_thread_fence does not include a compiler barrier; instead, - * the barrier is part of __atomic_load/__atomic_store's "volatile-like" - * semantics. - */ -#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) -#include -#endif - -FORCE_INLINE void _sse2neon_smp_mb(void) -{ - SSE2NEON_BARRIER(); -#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \ - !defined(__STDC_NO_ATOMICS__) - atomic_thread_fence(memory_order_seq_cst); -#elif defined(__GNUC__) || defined(__clang__) - __atomic_thread_fence(__ATOMIC_SEQ_CST); -#else /* MSVC */ - __dmb(_ARM64_BARRIER_ISH); -#endif -} - /* Architecture-specific build options */ /* FIXME: #pragma GCC push_options is only available on GCC */ #if defined(__GNUC__) @@ -221,75 +113,32 @@ FORCE_INLINE void _sse2neon_smp_mb(void) #pragma GCC push_options #pragma GCC target("fpu=neon") #endif -#elif defined(__aarch64__) || defined(_M_ARM64) -#if !defined(__clang__) && !defined(_MSC_VER) +#elif defined(__aarch64__) +#if !defined(__clang__) #pragma GCC push_options #pragma GCC target("+simd") #endif -#elif __ARM_ARCH == 8 -#if !defined(__ARM_NEON) || !defined(__ARM_NEON__) -#error \ - "You must enable NEON instructions (e.g. -mfpu=neon-fp-armv8) to use SSE2NEON." -#endif -#if !defined(__clang__) && !defined(_MSC_VER) -#pragma GCC push_options -#endif #else #error "Unsupported target. Must be either ARMv7-A+NEON or ARMv8-A." #endif #endif #include -#if (!defined(__aarch64__) && !defined(_M_ARM64)) && (__ARM_ARCH == 8) -#if defined __has_include && __has_include() -#include -#endif -#endif -/* Apple Silicon cache lines are double of what is commonly used by Intel, AMD - * and other Arm microarchitectures use. - * From sysctl -a on Apple M1: - * hw.cachelinesize: 128 - */ -#if defined(__APPLE__) && (defined(__aarch64__) || defined(__arm64__)) -#define SSE2NEON_CACHELINE_SIZE 128 -#else -#define SSE2NEON_CACHELINE_SIZE 64 -#endif - -/* Rounding functions require either Aarch64 instructions or libm fallback */ -#if !defined(__aarch64__) && !defined(_M_ARM64) +/* Rounding functions require either Aarch64 instructions or libm failback */ +#if !defined(__aarch64__) #include #endif -/* On ARMv7, some registers, such as PMUSERENR and PMCCNTR, are read-only - * or even not accessible in user mode. - * To write or access to these registers in user mode, - * we have to perform syscall instead. - */ -#if (!defined(__aarch64__) && !defined(_M_ARM64)) -#include -#endif - /* "__has_builtin" can be used to query support for built-in functions * provided by gcc/clang and other compilers that support it. */ #ifndef __has_builtin /* GCC prior to 10 or non-clang compilers */ /* Compatibility with gcc <= 9 */ -#if defined(__GNUC__) && (__GNUC__ <= 9) +#if __GNUC__ <= 9 #define __has_builtin(x) HAS##x #define HAS__builtin_popcount 1 #define HAS__builtin_popcountll 1 - -// __builtin_shuffle introduced in GCC 4.7.0 -#if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) -#define HAS__builtin_shuffle 1 -#else -#define HAS__builtin_shuffle 0 -#endif - -#define HAS__builtin_shufflevector 0 -#define HAS__builtin_nontemporal_store 0 #else #define __has_builtin(x) 0 #endif @@ -306,26 +155,6 @@ FORCE_INLINE void _sse2neon_smp_mb(void) #define _MM_SHUFFLE(fp3, fp2, fp1, fp0) \ (((fp3) << 6) | ((fp2) << 4) | ((fp1) << 2) | ((fp0))) -#if __has_builtin(__builtin_shufflevector) -#define _sse2neon_shuffle(type, a, b, ...) \ - __builtin_shufflevector(a, b, __VA_ARGS__) -#elif __has_builtin(__builtin_shuffle) -#define _sse2neon_shuffle(type, a, b, ...) \ - __extension__({ \ - type tmp = {__VA_ARGS__}; \ - __builtin_shuffle(a, b, tmp); \ - }) -#endif - -#ifdef _sse2neon_shuffle -#define vshuffle_s16(a, b, ...) _sse2neon_shuffle(int16x4_t, a, b, __VA_ARGS__) -#define vshuffleq_s16(a, b, ...) _sse2neon_shuffle(int16x8_t, a, b, __VA_ARGS__) -#define vshuffle_s32(a, b, ...) _sse2neon_shuffle(int32x2_t, a, b, __VA_ARGS__) -#define vshuffleq_s32(a, b, ...) _sse2neon_shuffle(int32x4_t, a, b, __VA_ARGS__) -#define vshuffle_s64(a, b, ...) _sse2neon_shuffle(int64x1_t, a, b, __VA_ARGS__) -#define vshuffleq_s64(a, b, ...) _sse2neon_shuffle(int64x2_t, a, b, __VA_ARGS__) -#endif - /* Rounding mode macros. */ #define _MM_FROUND_TO_NEAREST_INT 0x00 #define _MM_FROUND_TO_NEG_INF 0x01 @@ -333,25 +162,10 @@ FORCE_INLINE void _sse2neon_smp_mb(void) #define _MM_FROUND_TO_ZERO 0x03 #define _MM_FROUND_CUR_DIRECTION 0x04 #define _MM_FROUND_NO_EXC 0x08 -#define _MM_FROUND_RAISE_EXC 0x00 -#define _MM_FROUND_NINT (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_RAISE_EXC) -#define _MM_FROUND_FLOOR (_MM_FROUND_TO_NEG_INF | _MM_FROUND_RAISE_EXC) -#define _MM_FROUND_CEIL (_MM_FROUND_TO_POS_INF | _MM_FROUND_RAISE_EXC) -#define _MM_FROUND_TRUNC (_MM_FROUND_TO_ZERO | _MM_FROUND_RAISE_EXC) -#define _MM_FROUND_RINT (_MM_FROUND_CUR_DIRECTION | _MM_FROUND_RAISE_EXC) -#define _MM_FROUND_NEARBYINT (_MM_FROUND_CUR_DIRECTION | _MM_FROUND_NO_EXC) #define _MM_ROUND_NEAREST 0x0000 #define _MM_ROUND_DOWN 0x2000 #define _MM_ROUND_UP 0x4000 #define _MM_ROUND_TOWARD_ZERO 0x6000 -/* Flush zero mode macros. */ -#define _MM_FLUSH_ZERO_MASK 0x8000 -#define _MM_FLUSH_ZERO_ON 0x8000 -#define _MM_FLUSH_ZERO_OFF 0x0000 -/* Denormals are zeros mode macros. */ -#define _MM_DENORMALS_ZERO_MASK 0x0040 -#define _MM_DENORMALS_ZERO_ON 0x0040 -#define _MM_DENORMALS_ZERO_OFF 0x0000 /* indicate immediate constant argument in a given range */ #define __constrange(a, b) const @@ -367,23 +181,13 @@ typedef float32x4_t __m128; /* 128-bit vector containing 4 floats */ // On ARM 32-bit architecture, the float64x2_t is not supported. // The data type __m128d should be represented in a different way for related // intrinsic conversion. -#if defined(__aarch64__) || defined(_M_ARM64) +#if defined(__aarch64__) typedef float64x2_t __m128d; /* 128-bit vector containing 2 doubles */ #else typedef float32x4_t __m128d; #endif typedef int64x2_t __m128i; /* 128-bit vector containing integers */ -// __int64 is defined in the Intrinsics Guide which maps to different datatype -// in different data model -#if !(defined(_WIN32) || defined(_WIN64) || defined(__int64)) -#if (defined(__x86_64__) || defined(__i386__)) -#define __int64 long long -#else -#define __int64 int64_t -#endif -#endif - /* type-safe casting between types */ #define vreinterpretq_m128_f16(x) vreinterpretq_f32_f16(x) @@ -463,7 +267,7 @@ typedef int64x2_t __m128i; /* 128-bit vector containing integers */ #define vreinterpret_f32_m64(x) vreinterpret_f32_s64(x) -#if defined(__aarch64__) || defined(_M_ARM64) +#if defined(__aarch64__) #define vreinterpretq_m128d_s32(x) vreinterpretq_f64_s32(x) #define vreinterpretq_m128d_s64(x) vreinterpretq_f64_s64(x) @@ -497,10 +301,10 @@ typedef int64x2_t __m128i; /* 128-bit vector containing integers */ #endif // A struct is defined in this header file called 'SIMDVec' which can be used -// by applications which attempt to access the contents of an __m128 struct +// by applications which attempt to access the contents of an _m128 struct // directly. It is important to note that accessing the __m128 struct directly // is bad coding practice by Microsoft: @see: -// https://learn.microsoft.com/en-us/cpp/cpp/m128 +// https://msdn.microsoft.com/en-us/library/ayeb3ayc.aspx // // However, some legacy source code may try to access the contents of an __m128 // struct directly so the developer can use the SIMDVec as an alias for it. Any @@ -536,46 +340,11 @@ typedef union ALIGN_STRUCT(16) SIMDVec { #define vreinterpretq_nth_u32_m128i(x, n) (((SIMDVec *) &x)->m128_u32[n]) #define vreinterpretq_nth_u8_m128i(x, n) (((SIMDVec *) &x)->m128_u8[n]) -/* SSE macros */ -#define _MM_GET_FLUSH_ZERO_MODE _sse2neon_mm_get_flush_zero_mode -#define _MM_SET_FLUSH_ZERO_MODE _sse2neon_mm_set_flush_zero_mode -#define _MM_GET_DENORMALS_ZERO_MODE _sse2neon_mm_get_denormals_zero_mode -#define _MM_SET_DENORMALS_ZERO_MODE _sse2neon_mm_set_denormals_zero_mode - -// Function declaration -// SSE -FORCE_INLINE unsigned int _MM_GET_ROUNDING_MODE(void); -FORCE_INLINE __m128 _mm_move_ss(__m128, __m128); -FORCE_INLINE __m128 _mm_or_ps(__m128, __m128); -FORCE_INLINE __m128 _mm_set_ps1(float); -FORCE_INLINE __m128 _mm_setzero_ps(void); -// SSE2 -FORCE_INLINE __m128i _mm_and_si128(__m128i, __m128i); -FORCE_INLINE __m128i _mm_castps_si128(__m128); -FORCE_INLINE __m128i _mm_cmpeq_epi32(__m128i, __m128i); -FORCE_INLINE __m128i _mm_cvtps_epi32(__m128); -FORCE_INLINE __m128d _mm_move_sd(__m128d, __m128d); -FORCE_INLINE __m128i _mm_or_si128(__m128i, __m128i); -FORCE_INLINE __m128i _mm_set_epi32(int, int, int, int); -FORCE_INLINE __m128i _mm_set_epi64x(int64_t, int64_t); -FORCE_INLINE __m128d _mm_set_pd(double, double); -FORCE_INLINE __m128i _mm_set1_epi32(int); -FORCE_INLINE __m128i _mm_setzero_si128(void); -// SSE4.1 -FORCE_INLINE __m128d _mm_ceil_pd(__m128d); -FORCE_INLINE __m128 _mm_ceil_ps(__m128); -FORCE_INLINE __m128d _mm_floor_pd(__m128d); -FORCE_INLINE __m128 _mm_floor_ps(__m128); -FORCE_INLINE __m128d _mm_round_pd(__m128d, int); -FORCE_INLINE __m128 _mm_round_ps(__m128, int); -// SSE4.2 -FORCE_INLINE uint32_t _mm_crc32_u8(uint32_t, uint8_t); - /* Backwards compatibility for compilers with lack of specific type support */ // Older gcc does not define vld1q_u8_x4 type #if defined(__GNUC__) && !defined(__clang__) && \ - ((__GNUC__ <= 13 && defined(__arm__)) || \ + ((__GNUC__ <= 10 && defined(__arm__)) || \ (__GNUC__ == 10 && __GNUC_MINOR__ < 3 && defined(__aarch64__)) || \ (__GNUC__ <= 9 && defined(__aarch64__))) FORCE_INLINE uint8x16x4_t _sse2neon_vld1q_u8_x4(const uint8_t *p) @@ -595,57 +364,6 @@ FORCE_INLINE uint8x16x4_t _sse2neon_vld1q_u8_x4(const uint8_t *p) } #endif -#if !defined(__aarch64__) && !defined(_M_ARM64) -/* emulate vaddv u8 variant */ -FORCE_INLINE uint8_t _sse2neon_vaddv_u8(uint8x8_t v8) -{ - const uint64x1_t v1 = vpaddl_u32(vpaddl_u16(vpaddl_u8(v8))); - return vget_lane_u8(vreinterpret_u8_u64(v1), 0); -} -#else -// Wraps vaddv_u8 -FORCE_INLINE uint8_t _sse2neon_vaddv_u8(uint8x8_t v8) -{ - return vaddv_u8(v8); -} -#endif - -#if !defined(__aarch64__) && !defined(_M_ARM64) -/* emulate vaddvq u8 variant */ -FORCE_INLINE uint8_t _sse2neon_vaddvq_u8(uint8x16_t a) -{ - uint8x8_t tmp = vpadd_u8(vget_low_u8(a), vget_high_u8(a)); - uint8_t res = 0; - for (int i = 0; i < 8; ++i) - res += tmp[i]; - return res; -} -#else -// Wraps vaddvq_u8 -FORCE_INLINE uint8_t _sse2neon_vaddvq_u8(uint8x16_t a) -{ - return vaddvq_u8(a); -} -#endif - -#if !defined(__aarch64__) && !defined(_M_ARM64) -/* emulate vaddvq u16 variant */ -FORCE_INLINE uint16_t _sse2neon_vaddvq_u16(uint16x8_t a) -{ - uint32x4_t m = vpaddlq_u16(a); - uint64x2_t n = vpaddlq_u32(m); - uint64x1_t o = vget_low_u64(n) + vget_high_u64(n); - - return vget_lane_u32((uint32x2_t) o, 0); -} -#else -// Wraps vaddvq_u16 -FORCE_INLINE uint16_t _sse2neon_vaddvq_u16(uint16x8_t a) -{ - return vaddvq_u16(a); -} -#endif - /* Function Naming Conventions * The naming convention of SSE intrinsics is straightforward. A generic SSE * intrinsic function is given as follows: @@ -658,7 +376,7 @@ FORCE_INLINE uint16_t _sse2neon_vaddvq_u16(uint16x8_t a) * This last part, , is a little complicated. It identifies the * content of the input values, and can be set to any of the following values: * + ps - vectors contain floats (ps stands for packed single-precision) - * + pd - vectors contain doubles (pd stands for packed double-precision) + * + pd - vectors cantain doubles (pd stands for packed double-precision) * + epi8/epi16/epi32/epi64 - vectors contain 8-bit/16-bit/32-bit/64-bit * signed integers * + epu8/epu16/epu32/epu64 - vectors contain 8-bit/16-bit/32-bit/64-bit @@ -680,28 +398,1380 @@ FORCE_INLINE uint16_t _sse2neon_vaddvq_u16(uint16x8_t a) * 4, 5, 12, 13, 6, 7, 14, 15); * // Shuffle packed 8-bit integers * __m128i v_out = _mm_shuffle_epi8(v_in, v_perm); // pshufb + * + * Data (Number, Binary, Byte Index): + +------+------+-------------+------+------+-------------+ + | 1 | 2 | 3 | 4 | Number + +------+------+------+------+------+------+------+------+ + | 0000 | 0001 | 0000 | 0010 | 0000 | 0011 | 0000 | 0100 | Binary + +------+------+------+------+------+------+------+------+ + | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Index + +------+------+------+------+------+------+------+------+ + + +------+------+------+------+------+------+------+------+ + | 5 | 6 | 7 | 8 | Number + +------+------+------+------+------+------+------+------+ + | 0000 | 0101 | 0000 | 0110 | 0000 | 0111 | 0000 | 1000 | Binary + +------+------+------+------+------+------+------+------+ + | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Index + +------+------+------+------+------+------+------+------+ + * Index (Byte Index): + +------+------+------+------+------+------+------+------+ + | 1 | 0 | 2 | 3 | 8 | 9 | 10 | 11 | + +------+------+------+------+------+------+------+------+ + + +------+------+------+------+------+------+------+------+ + | 4 | 5 | 12 | 13 | 6 | 7 | 14 | 15 | + +------+------+------+------+------+------+------+------+ + * Result: + +------+------+------+------+------+------+------+------+ + | 1 | 0 | 2 | 3 | 8 | 9 | 10 | 11 | Index + +------+------+------+------+------+------+------+------+ + | 0001 | 0000 | 0000 | 0010 | 0000 | 0101 | 0000 | 0110 | Binary + +------+------+------+------+------+------+------+------+ + | 256 | 2 | 5 | 6 | Number + +------+------+------+------+------+------+------+------+ + + +------+------+------+------+------+------+------+------+ + | 4 | 5 | 12 | 13 | 6 | 7 | 14 | 15 | Index + +------+------+------+------+------+------+------+------+ + | 0000 | 0011 | 0000 | 0111 | 0000 | 0100 | 0000 | 1000 | Binary + +------+------+------+------+------+------+------+------+ + | 3 | 7 | 4 | 8 | Number + +------+------+------+------+------+------+-------------+ */ -/* Constants for use with _mm_prefetch. */ +/* Set/get methods */ + +/* Constants for use with _mm_prefetch. */ enum _mm_hint { - _MM_HINT_NTA = 0, /* load data to L1 and L2 cache, mark it as NTA */ - _MM_HINT_T0 = 1, /* load data to L1 and L2 cache */ - _MM_HINT_T1 = 2, /* load data to L2 cache only */ - _MM_HINT_T2 = 3, /* load data to L2 cache only, mark it as NTA */ + _MM_HINT_NTA = 0, /* load data to L1 and L2 cache, mark it as NTA */ + _MM_HINT_T0 = 1, /* load data to L1 and L2 cache */ + _MM_HINT_T1 = 2, /* load data to L2 cache only */ + _MM_HINT_T2 = 3, /* load data to L2 cache only, mark it as NTA */ + _MM_HINT_ENTA = 4, /* exclusive version of _MM_HINT_NTA */ + _MM_HINT_ET0 = 5, /* exclusive version of _MM_HINT_T0 */ + _MM_HINT_ET1 = 6, /* exclusive version of _MM_HINT_T1 */ + _MM_HINT_ET2 = 7 /* exclusive version of _MM_HINT_T2 */ }; -// The bit field mapping to the FPCR(floating-point control register) -typedef struct { - uint16_t res0; - uint8_t res1 : 6; - uint8_t bit22 : 1; - uint8_t bit23 : 1; - uint8_t bit24 : 1; - uint8_t res2 : 7; -#if defined(__aarch64__) || defined(_M_ARM64) - uint32_t res3; +// Loads one cache line of data from address p to a location closer to the +// processor. https://msdn.microsoft.com/en-us/library/84szxsww(v=vs.100).aspx +FORCE_INLINE void _mm_prefetch(const void *p, int i) +{ + (void) i; + __builtin_prefetch(p); +} + +// Pause the processor. This is typically used in spin-wait loops and depending +// on the x86 processor typical values are in the 40-100 cycle range. The +// 'yield' instruction isn't a good fit beacuse it's effectively a nop on most +// Arm cores. Experience with several databases has shown has shown an 'isb' is +// a reasonable approximation. +FORCE_INLINE void _mm_pause() +{ + __asm__ __volatile__("isb\n"); +} + +// Copy the lower single-precision (32-bit) floating-point element of a to dst. +// +// dst[31:0] := a[31:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtss_f32 +FORCE_INLINE float _mm_cvtss_f32(__m128 a) +{ + return vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); +} + +// Convert the lower single-precision (32-bit) floating-point element in b to a +// double-precision (64-bit) floating-point element, store the result in the +// lower element of dst, and copy the upper element from a to the upper element +// of dst. +// +// dst[63:0] := Convert_FP32_To_FP64(b[31:0]) +// dst[127:64] := a[127:64] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtss_sd +FORCE_INLINE __m128d _mm_cvtss_sd(__m128d a, __m128 b) +{ + double d = (double) vgetq_lane_f32(vreinterpretq_f32_m128(b), 0); +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vsetq_lane_f64(d, vreinterpretq_f64_m128d(a), 0)); +#else + return vreinterpretq_m128d_s64( + vsetq_lane_s64(*(int64_t *) &d, vreinterpretq_s64_m128d(a), 0)); #endif -} fpcr_bitfield; +} + +// Convert the lower single-precision (32-bit) floating-point element in a to a +// 32-bit integer, and store the result in dst. +// +// dst[31:0] := Convert_FP32_To_Int32(a[31:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtss_si32 +#define _mm_cvtss_si32(a) _mm_cvt_ss2si(a) + +// Convert the lower single-precision (32-bit) floating-point element in a to a +// 64-bit integer, and store the result in dst. +// +// dst[63:0] := Convert_FP32_To_Int64(a[31:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtss_si64 +FORCE_INLINE int _mm_cvtss_si64(__m128 a) +{ +#if defined(__aarch64__) + return vgetq_lane_s64( + vreinterpretq_s64_s32(vcvtnq_s32_f32(vreinterpretq_f32_m128(a))), 0); +#else + float32_t data = vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); + float32_t diff = data - floor(data); + if (diff > 0.5) + return (int64_t) ceil(data); + if (unlikely(diff == 0.5)) { + int64_t f = (int64_t) floor(data); + int64_t c = (int64_t) ceil(data); + return c & 1 ? f : c; + } + return (int64_t) floor(data); +#endif +} + +// Convert packed single-precision (32-bit) floating-point elements in a to +// packed 32-bit integers with truncation, and store the results in dst. +// +// FOR j := 0 to 1 +// i := 32*j +// dst[i+31:i] := Convert_FP32_To_Int32_Truncate(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtt_ps2pi +FORCE_INLINE __m64 _mm_cvtt_ps2pi(__m128 a) +{ + return vreinterpret_m64_s32( + vget_low_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a)))); +} + +// Convert the lower single-precision (32-bit) floating-point element in a to a +// 32-bit integer with truncation, and store the result in dst. +// +// dst[31:0] := Convert_FP32_To_Int32_Truncate(a[31:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtt_ss2si +FORCE_INLINE int _mm_cvtt_ss2si(__m128 a) +{ + return vgetq_lane_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a)), 0); +} + +// Convert packed single-precision (32-bit) floating-point elements in a to +// packed 32-bit integers with truncation, and store the results in dst. +// +// FOR j := 0 to 1 +// i := 32*j +// dst[i+31:i] := Convert_FP32_To_Int32_Truncate(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvttps_pi32 +#define _mm_cvttps_pi32(a) _mm_cvtt_ps2pi(a) + +// Convert the lower single-precision (32-bit) floating-point element in a to a +// 32-bit integer with truncation, and store the result in dst. +// +// dst[31:0] := Convert_FP32_To_Int32_Truncate(a[31:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvttss_si32 +#define _mm_cvttss_si32(a) _mm_cvtt_ss2si(a) + +// Convert the lower single-precision (32-bit) floating-point element in a to a +// 64-bit integer with truncation, and store the result in dst. +// +// dst[63:0] := Convert_FP32_To_Int64_Truncate(a[31:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvttss_si64 +FORCE_INLINE int64_t _mm_cvttss_si64(__m128 a) +{ + return vgetq_lane_s64( + vmovl_s32(vget_low_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a)))), 0); +} + +// Sets the 128-bit value to zero +// https://msdn.microsoft.com/en-us/library/vstudio/ys7dw0kh(v=vs.100).aspx +FORCE_INLINE __m128i _mm_setzero_si128(void) +{ + return vreinterpretq_m128i_s32(vdupq_n_s32(0)); +} + +// Clears the four single-precision, floating-point values. +// https://msdn.microsoft.com/en-us/library/vstudio/tk1t2tbz(v=vs.100).aspx +FORCE_INLINE __m128 _mm_setzero_ps(void) +{ + return vreinterpretq_m128_f32(vdupq_n_f32(0)); +} + +// Return vector of type __m128d with all elements set to zero. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_setzero_pd +FORCE_INLINE __m128d _mm_setzero_pd(void) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vdupq_n_f64(0)); +#else + return vreinterpretq_m128d_f32(vdupq_n_f32(0)); +#endif +} + +// Sets the four single-precision, floating-point values to w. +// +// r0 := r1 := r2 := r3 := w +// +// https://msdn.microsoft.com/en-us/library/vstudio/2x1se8ha(v=vs.100).aspx +FORCE_INLINE __m128 _mm_set1_ps(float _w) +{ + return vreinterpretq_m128_f32(vdupq_n_f32(_w)); +} + +// Sets the four single-precision, floating-point values to w. +// https://msdn.microsoft.com/en-us/library/vstudio/2x1se8ha(v=vs.100).aspx +FORCE_INLINE __m128 _mm_set_ps1(float _w) +{ + return vreinterpretq_m128_f32(vdupq_n_f32(_w)); +} + +// Sets the four single-precision, floating-point values to the four inputs. +// https://msdn.microsoft.com/en-us/library/vstudio/afh0zf75(v=vs.100).aspx +FORCE_INLINE __m128 _mm_set_ps(float w, float z, float y, float x) +{ + float ALIGN_STRUCT(16) data[4] = {x, y, z, w}; + return vreinterpretq_m128_f32(vld1q_f32(data)); +} + +// Copy single-precision (32-bit) floating-point element a to the lower element +// of dst, and zero the upper 3 elements. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_set_ss +FORCE_INLINE __m128 _mm_set_ss(float a) +{ + float ALIGN_STRUCT(16) data[4] = {a, 0, 0, 0}; + return vreinterpretq_m128_f32(vld1q_f32(data)); +} + +// Sets the four single-precision, floating-point values to the four inputs in +// reverse order. +// https://msdn.microsoft.com/en-us/library/vstudio/d2172ct3(v=vs.100).aspx +FORCE_INLINE __m128 _mm_setr_ps(float w, float z, float y, float x) +{ + float ALIGN_STRUCT(16) data[4] = {w, z, y, x}; + return vreinterpretq_m128_f32(vld1q_f32(data)); +} + +// Sets the 8 signed 16-bit integer values in reverse order. +// +// Return Value +// r0 := w0 +// r1 := w1 +// ... +// r7 := w7 +FORCE_INLINE __m128i _mm_setr_epi16(short w0, + short w1, + short w2, + short w3, + short w4, + short w5, + short w6, + short w7) +{ + int16_t ALIGN_STRUCT(16) data[8] = {w0, w1, w2, w3, w4, w5, w6, w7}; + return vreinterpretq_m128i_s16(vld1q_s16((int16_t *) data)); +} + +// Sets the 4 signed 32-bit integer values in reverse order +// https://technet.microsoft.com/en-us/library/security/27yb3ee5(v=vs.90).aspx +FORCE_INLINE __m128i _mm_setr_epi32(int i3, int i2, int i1, int i0) +{ + int32_t ALIGN_STRUCT(16) data[4] = {i3, i2, i1, i0}; + return vreinterpretq_m128i_s32(vld1q_s32(data)); +} + +// Set packed 64-bit integers in dst with the supplied values in reverse order. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_setr_epi64 +FORCE_INLINE __m128i _mm_setr_epi64(__m64 e1, __m64 e0) +{ + return vreinterpretq_m128i_s64(vcombine_s64(e1, e0)); +} + +// Sets the 16 signed 8-bit integer values to b. +// +// r0 := b +// r1 := b +// ... +// r15 := b +// +// https://msdn.microsoft.com/en-us/library/6e14xhyf(v=vs.100).aspx +FORCE_INLINE __m128i _mm_set1_epi8(signed char w) +{ + return vreinterpretq_m128i_s8(vdupq_n_s8(w)); +} + +// Broadcast double-precision (64-bit) floating-point value a to all elements of +// dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_set1_pd +FORCE_INLINE __m128d _mm_set1_pd(double d) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vdupq_n_f64(d)); +#else + return vreinterpretq_m128d_s64(vdupq_n_s64(*(int64_t *) &d)); +#endif +} + +// Sets the 8 signed 16-bit integer values to w. +// +// r0 := w +// r1 := w +// ... +// r7 := w +// +// https://msdn.microsoft.com/en-us/library/k0ya3x0e(v=vs.90).aspx +FORCE_INLINE __m128i _mm_set1_epi16(short w) +{ + return vreinterpretq_m128i_s16(vdupq_n_s16(w)); +} + +// Sets the 16 signed 8-bit integer values. +// https://msdn.microsoft.com/en-us/library/x0cx8zd3(v=vs.90).aspx +FORCE_INLINE __m128i _mm_set_epi8(signed char b15, + signed char b14, + signed char b13, + signed char b12, + signed char b11, + signed char b10, + signed char b9, + signed char b8, + signed char b7, + signed char b6, + signed char b5, + signed char b4, + signed char b3, + signed char b2, + signed char b1, + signed char b0) +{ + int8_t ALIGN_STRUCT(16) + data[16] = {(int8_t) b0, (int8_t) b1, (int8_t) b2, (int8_t) b3, + (int8_t) b4, (int8_t) b5, (int8_t) b6, (int8_t) b7, + (int8_t) b8, (int8_t) b9, (int8_t) b10, (int8_t) b11, + (int8_t) b12, (int8_t) b13, (int8_t) b14, (int8_t) b15}; + return (__m128i) vld1q_s8(data); +} + +// Sets the 8 signed 16-bit integer values. +// https://msdn.microsoft.com/en-au/library/3e0fek84(v=vs.90).aspx +FORCE_INLINE __m128i _mm_set_epi16(short i7, + short i6, + short i5, + short i4, + short i3, + short i2, + short i1, + short i0) +{ + int16_t ALIGN_STRUCT(16) data[8] = {i0, i1, i2, i3, i4, i5, i6, i7}; + return vreinterpretq_m128i_s16(vld1q_s16(data)); +} + +// Sets the 16 signed 8-bit integer values in reverse order. +// https://msdn.microsoft.com/en-us/library/2khb9c7k(v=vs.90).aspx +FORCE_INLINE __m128i _mm_setr_epi8(signed char b0, + signed char b1, + signed char b2, + signed char b3, + signed char b4, + signed char b5, + signed char b6, + signed char b7, + signed char b8, + signed char b9, + signed char b10, + signed char b11, + signed char b12, + signed char b13, + signed char b14, + signed char b15) +{ + int8_t ALIGN_STRUCT(16) + data[16] = {(int8_t) b0, (int8_t) b1, (int8_t) b2, (int8_t) b3, + (int8_t) b4, (int8_t) b5, (int8_t) b6, (int8_t) b7, + (int8_t) b8, (int8_t) b9, (int8_t) b10, (int8_t) b11, + (int8_t) b12, (int8_t) b13, (int8_t) b14, (int8_t) b15}; + return (__m128i) vld1q_s8(data); +} + +// Sets the 4 signed 32-bit integer values to i. +// +// r0 := i +// r1 := i +// r2 := i +// r3 := I +// +// https://msdn.microsoft.com/en-us/library/vstudio/h4xscxat(v=vs.100).aspx +FORCE_INLINE __m128i _mm_set1_epi32(int _i) +{ + return vreinterpretq_m128i_s32(vdupq_n_s32(_i)); +} + +// Sets the 2 signed 64-bit integer values to i. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/whtfzhzk(v=vs.100) +FORCE_INLINE __m128i _mm_set1_epi64(__m64 _i) +{ + return vreinterpretq_m128i_s64(vdupq_n_s64((int64_t) _i)); +} + +// Sets the 2 signed 64-bit integer values to i. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_set1_epi64x +FORCE_INLINE __m128i _mm_set1_epi64x(int64_t _i) +{ + return vreinterpretq_m128i_s64(vdupq_n_s64(_i)); +} + +// Sets the 4 signed 32-bit integer values. +// https://msdn.microsoft.com/en-us/library/vstudio/019beekt(v=vs.100).aspx +FORCE_INLINE __m128i _mm_set_epi32(int i3, int i2, int i1, int i0) +{ + int32_t ALIGN_STRUCT(16) data[4] = {i0, i1, i2, i3}; + return vreinterpretq_m128i_s32(vld1q_s32(data)); +} + +// Returns the __m128i structure with its two 64-bit integer values +// initialized to the values of the two 64-bit integers passed in. +// https://msdn.microsoft.com/en-us/library/dk2sdw0h(v=vs.120).aspx +FORCE_INLINE __m128i _mm_set_epi64x(int64_t i1, int64_t i2) +{ + return vreinterpretq_m128i_s64( + vcombine_s64(vcreate_s64(i2), vcreate_s64(i1))); +} + +// Returns the __m128i structure with its two 64-bit integer values +// initialized to the values of the two 64-bit integers passed in. +// https://msdn.microsoft.com/en-us/library/dk2sdw0h(v=vs.120).aspx +FORCE_INLINE __m128i _mm_set_epi64(__m64 i1, __m64 i2) +{ + return _mm_set_epi64x((int64_t) i1, (int64_t) i2); +} + +// Set packed double-precision (64-bit) floating-point elements in dst with the +// supplied values. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_set_pd +FORCE_INLINE __m128d _mm_set_pd(double e1, double e0) +{ + double ALIGN_STRUCT(16) data[2] = {e0, e1}; +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vld1q_f64((float64_t *) data)); +#else + return vreinterpretq_m128d_f32(vld1q_f32((float32_t *) data)); +#endif +} + +// Set packed double-precision (64-bit) floating-point elements in dst with the +// supplied values in reverse order. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_setr_pd +FORCE_INLINE __m128d _mm_setr_pd(double e1, double e0) +{ + return _mm_set_pd(e0, e1); +} + +// Copy double-precision (64-bit) floating-point element a to the lower element +// of dst, and zero the upper element. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_set_sd +FORCE_INLINE __m128d _mm_set_sd(double a) +{ + return _mm_set_pd(0, a); +} + +// Broadcast double-precision (64-bit) floating-point value a to all elements of +// dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_set_pd1 +#define _mm_set_pd1 _mm_set1_pd + +// Stores four single-precision, floating-point values. +// https://msdn.microsoft.com/en-us/library/vstudio/s3h4ay6y(v=vs.100).aspx +FORCE_INLINE void _mm_store_ps(float *p, __m128 a) +{ + vst1q_f32(p, vreinterpretq_f32_m128(a)); +} + +// Store the lower single-precision (32-bit) floating-point element from a into +// 4 contiguous elements in memory. mem_addr must be aligned on a 16-byte +// boundary or a general-protection exception may be generated. +// +// MEM[mem_addr+31:mem_addr] := a[31:0] +// MEM[mem_addr+63:mem_addr+32] := a[31:0] +// MEM[mem_addr+95:mem_addr+64] := a[31:0] +// MEM[mem_addr+127:mem_addr+96] := a[31:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_store_ps1 +FORCE_INLINE void _mm_store_ps1(float *p, __m128 a) +{ + float32_t a0 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); + vst1q_f32(p, vdupq_n_f32(a0)); +} + +// Store the lower single-precision (32-bit) floating-point element from a into +// 4 contiguous elements in memory. mem_addr must be aligned on a 16-byte +// boundary or a general-protection exception may be generated. +// +// MEM[mem_addr+31:mem_addr] := a[31:0] +// MEM[mem_addr+63:mem_addr+32] := a[31:0] +// MEM[mem_addr+95:mem_addr+64] := a[31:0] +// MEM[mem_addr+127:mem_addr+96] := a[31:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_store1_ps +#define _mm_store1_ps _mm_store_ps1 + +// Store 4 single-precision (32-bit) floating-point elements from a into memory +// in reverse order. mem_addr must be aligned on a 16-byte boundary or a +// general-protection exception may be generated. +// +// MEM[mem_addr+31:mem_addr] := a[127:96] +// MEM[mem_addr+63:mem_addr+32] := a[95:64] +// MEM[mem_addr+95:mem_addr+64] := a[63:32] +// MEM[mem_addr+127:mem_addr+96] := a[31:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storer_ps +FORCE_INLINE void _mm_storer_ps(float *p, __m128 a) +{ + float32x4_t tmp = vrev64q_f32(vreinterpretq_f32_m128(a)); + float32x4_t rev = vextq_f32(tmp, tmp, 2); + vst1q_f32(p, rev); +} + +// Stores four single-precision, floating-point values. +// https://msdn.microsoft.com/en-us/library/44e30x22(v=vs.100).aspx +FORCE_INLINE void _mm_storeu_ps(float *p, __m128 a) +{ + vst1q_f32(p, vreinterpretq_f32_m128(a)); +} + +// Stores four 32-bit integer values as (as a __m128i value) at the address p. +// https://msdn.microsoft.com/en-us/library/vstudio/edk11s13(v=vs.100).aspx +FORCE_INLINE void _mm_store_si128(__m128i *p, __m128i a) +{ + vst1q_s32((int32_t *) p, vreinterpretq_s32_m128i(a)); +} + +// Stores 128-bits of integer data a at the address p. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeu_si128 +FORCE_INLINE void _mm_storeu_si128(__m128i *p, __m128i a) +{ + vst1q_s32((int32_t *) p, vreinterpretq_s32_m128i(a)); +} + +// Stores 64-bits of integer data a at the address p. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeu_si64 +FORCE_INLINE void _mm_storeu_si64(void *p, __m128i a) +{ + vst1q_lane_s64((int64_t *) p, vreinterpretq_s64_m128i(a), 0); +} + +// Stores 32-bits of integer data a at the address p. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeu_si32 +FORCE_INLINE void _mm_storeu_si32(void *p, __m128i a) +{ + vst1q_lane_s32((int32_t *) p, vreinterpretq_s32_m128i(a), 0); +} + +// Stores 16-bits of integer data a at the address p. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeu_si16 +FORCE_INLINE void _mm_storeu_si16(void *p, __m128i a) +{ + vst1q_lane_s16((int16_t *) p, vreinterpretq_s16_m128i(a), 0); +} + +// Stores the lower single - precision, floating - point value. +// https://msdn.microsoft.com/en-us/library/tzz10fbx(v=vs.100).aspx +FORCE_INLINE void _mm_store_ss(float *p, __m128 a) +{ + vst1q_lane_f32(p, vreinterpretq_f32_m128(a), 0); +} + +// Store 128-bits (composed of 2 packed double-precision (64-bit) floating-point +// elements) from a into memory. mem_addr must be aligned on a 16-byte boundary +// or a general-protection exception may be generated. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_store_pd +FORCE_INLINE void _mm_store_pd(double *mem_addr, __m128d a) +{ +#if defined(__aarch64__) + vst1q_f64((float64_t *) mem_addr, vreinterpretq_f64_m128d(a)); +#else + vst1q_f32((float32_t *) mem_addr, vreinterpretq_f32_m128d(a)); +#endif +} + +// Store the upper double-precision (64-bit) floating-point element from a into +// memory. +// +// MEM[mem_addr+63:mem_addr] := a[127:64] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeh_pd +FORCE_INLINE void _mm_storeh_pd(double *mem_addr, __m128d a) +{ +#if defined(__aarch64__) + vst1_f64((float64_t *) mem_addr, vget_high_f64(vreinterpretq_f64_m128d(a))); +#else + vst1_f32((float32_t *) mem_addr, vget_high_f32(vreinterpretq_f32_m128d(a))); +#endif +} + +// Store the lower double-precision (64-bit) floating-point element from a into +// memory. +// +// MEM[mem_addr+63:mem_addr] := a[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storel_pd +FORCE_INLINE void _mm_storel_pd(double *mem_addr, __m128d a) +{ +#if defined(__aarch64__) + vst1_f64((float64_t *) mem_addr, vget_low_f64(vreinterpretq_f64_m128d(a))); +#else + vst1_f32((float32_t *) mem_addr, vget_low_f32(vreinterpretq_f32_m128d(a))); +#endif +} + +// Store 2 double-precision (64-bit) floating-point elements from a into memory +// in reverse order. mem_addr must be aligned on a 16-byte boundary or a +// general-protection exception may be generated. +// +// MEM[mem_addr+63:mem_addr] := a[127:64] +// MEM[mem_addr+127:mem_addr+64] := a[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storer_pd +FORCE_INLINE void _mm_storer_pd(double *mem_addr, __m128d a) +{ + float32x4_t f = vreinterpretq_f32_m128d(a); + _mm_store_pd(mem_addr, vreinterpretq_m128d_f32(vextq_f32(f, f, 2))); +} + +// Store the lower double-precision (64-bit) floating-point element from a into +// 2 contiguous elements in memory. mem_addr must be aligned on a 16-byte +// boundary or a general-protection exception may be generated. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_store_pd1 +FORCE_INLINE void _mm_store_pd1(double *mem_addr, __m128d a) +{ +#if defined(__aarch64__) + float64x1_t a_low = vget_low_f64(vreinterpretq_f64_m128d(a)); + vst1q_f64((float64_t *) mem_addr, + vreinterpretq_f64_m128d(vcombine_f64(a_low, a_low))); +#else + float32x2_t a_low = vget_low_f32(vreinterpretq_f32_m128d(a)); + vst1q_f32((float32_t *) mem_addr, + vreinterpretq_f32_m128d(vcombine_f32(a_low, a_low))); +#endif +} + +// Store the lower double-precision (64-bit) floating-point element from a into +// memory. mem_addr does not need to be aligned on any particular boundary. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=mm_store_sd +FORCE_INLINE void _mm_store_sd(double *mem_addr, __m128d a) +{ +#if defined(__aarch64__) + vst1_f64((float64_t *) mem_addr, vget_low_f64(vreinterpretq_f64_m128d(a))); +#else + vst1_u64((uint64_t *) mem_addr, vget_low_u64(vreinterpretq_u64_m128d(a))); +#endif +} + +// Store the lower double-precision (64-bit) floating-point element from a into +// 2 contiguous elements in memory. mem_addr must be aligned on a 16-byte +// boundary or a general-protection exception may be generated. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#expand=9,526,5601&text=_mm_store1_pd +#define _mm_store1_pd _mm_store_pd1 + +// Store 128-bits (composed of 2 packed double-precision (64-bit) floating-point +// elements) from a into memory. mem_addr does not need to be aligned on any +// particular boundary. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_storeu_pd +FORCE_INLINE void _mm_storeu_pd(double *mem_addr, __m128d a) +{ + _mm_store_pd(mem_addr, a); +} + +// Reads the lower 64 bits of b and stores them into the lower 64 bits of a. +// https://msdn.microsoft.com/en-us/library/hhwf428f%28v=vs.90%29.aspx +FORCE_INLINE void _mm_storel_epi64(__m128i *a, __m128i b) +{ + uint64x1_t hi = vget_high_u64(vreinterpretq_u64_m128i(*a)); + uint64x1_t lo = vget_low_u64(vreinterpretq_u64_m128i(b)); + *a = vreinterpretq_m128i_u64(vcombine_u64(lo, hi)); +} + +// Stores the lower two single-precision floating point values of a to the +// address p. +// +// *p0 := a0 +// *p1 := a1 +// +// https://msdn.microsoft.com/en-us/library/h54t98ks(v=vs.90).aspx +FORCE_INLINE void _mm_storel_pi(__m64 *p, __m128 a) +{ + *p = vreinterpret_m64_f32(vget_low_f32(a)); +} + +// Stores the upper two single-precision, floating-point values of a to the +// address p. +// +// *p0 := a2 +// *p1 := a3 +// +// https://msdn.microsoft.com/en-us/library/a7525fs8(v%3dvs.90).aspx +FORCE_INLINE void _mm_storeh_pi(__m64 *p, __m128 a) +{ + *p = vreinterpret_m64_f32(vget_high_f32(a)); +} + +// Loads a single single-precision, floating-point value, copying it into all +// four words +// https://msdn.microsoft.com/en-us/library/vstudio/5cdkf716(v=vs.100).aspx +FORCE_INLINE __m128 _mm_load1_ps(const float *p) +{ + return vreinterpretq_m128_f32(vld1q_dup_f32(p)); +} + +// Load a single-precision (32-bit) floating-point element from memory into all +// elements of dst. +// +// dst[31:0] := MEM[mem_addr+31:mem_addr] +// dst[63:32] := MEM[mem_addr+31:mem_addr] +// dst[95:64] := MEM[mem_addr+31:mem_addr] +// dst[127:96] := MEM[mem_addr+31:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_load_ps1 +#define _mm_load_ps1 _mm_load1_ps + +// Sets the lower two single-precision, floating-point values with 64 +// bits of data loaded from the address p; the upper two values are passed +// through from a. +// +// Return Value +// r0 := *p0 +// r1 := *p1 +// r2 := a2 +// r3 := a3 +// +// https://msdn.microsoft.com/en-us/library/s57cyak2(v=vs.100).aspx +FORCE_INLINE __m128 _mm_loadl_pi(__m128 a, __m64 const *p) +{ + return vreinterpretq_m128_f32( + vcombine_f32(vld1_f32((const float32_t *) p), vget_high_f32(a))); +} + +// Load 4 single-precision (32-bit) floating-point elements from memory into dst +// in reverse order. mem_addr must be aligned on a 16-byte boundary or a +// general-protection exception may be generated. +// +// dst[31:0] := MEM[mem_addr+127:mem_addr+96] +// dst[63:32] := MEM[mem_addr+95:mem_addr+64] +// dst[95:64] := MEM[mem_addr+63:mem_addr+32] +// dst[127:96] := MEM[mem_addr+31:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadr_ps +FORCE_INLINE __m128 _mm_loadr_ps(const float *p) +{ + float32x4_t v = vrev64q_f32(vld1q_f32(p)); + return vreinterpretq_m128_f32(vextq_f32(v, v, 2)); +} + +// Sets the upper two single-precision, floating-point values with 64 +// bits of data loaded from the address p; the lower two values are passed +// through from a. +// +// r0 := a0 +// r1 := a1 +// r2 := *p0 +// r3 := *p1 +// +// https://msdn.microsoft.com/en-us/library/w92wta0x(v%3dvs.100).aspx +FORCE_INLINE __m128 _mm_loadh_pi(__m128 a, __m64 const *p) +{ + return vreinterpretq_m128_f32( + vcombine_f32(vget_low_f32(a), vld1_f32((const float32_t *) p))); +} + +// Loads four single-precision, floating-point values. +// https://msdn.microsoft.com/en-us/library/vstudio/zzd50xxt(v=vs.100).aspx +FORCE_INLINE __m128 _mm_load_ps(const float *p) +{ + return vreinterpretq_m128_f32(vld1q_f32(p)); +} + +// Loads four single-precision, floating-point values. +// https://msdn.microsoft.com/en-us/library/x1b16s7z%28v=vs.90%29.aspx +FORCE_INLINE __m128 _mm_loadu_ps(const float *p) +{ + // for neon, alignment doesn't matter, so _mm_load_ps and _mm_loadu_ps are + // equivalent for neon + return vreinterpretq_m128_f32(vld1q_f32(p)); +} + +// Load unaligned 16-bit integer from memory into the first element of dst. +// +// dst[15:0] := MEM[mem_addr+15:mem_addr] +// dst[MAX:16] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadu_si16 +FORCE_INLINE __m128i _mm_loadu_si16(const void *p) +{ + return vreinterpretq_m128i_s16( + vsetq_lane_s16(*(const int16_t *) p, vdupq_n_s16(0), 0)); +} + +// Load unaligned 64-bit integer from memory into the first element of dst. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[MAX:64] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadu_si64 +FORCE_INLINE __m128i _mm_loadu_si64(const void *p) +{ + return vreinterpretq_m128i_s64( + vcombine_s64(vld1_s64((const int64_t *) p), vdup_n_s64(0))); +} + +// Load a double-precision (64-bit) floating-point element from memory into the +// lower of dst, and zero the upper element. mem_addr does not need to be +// aligned on any particular boundary. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_load_sd +FORCE_INLINE __m128d _mm_load_sd(const double *p) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vsetq_lane_f64(*p, vdupq_n_f64(0), 0)); +#else + const float *fp = (const float *) p; + float ALIGN_STRUCT(16) data[4] = {fp[0], fp[1], 0, 0}; + return vreinterpretq_m128d_f32(vld1q_f32(data)); +#endif +} + +// Loads two double-precision from 16-byte aligned memory, floating-point +// values. +// +// dst[127:0] := MEM[mem_addr+127:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_load_pd +FORCE_INLINE __m128d _mm_load_pd(const double *p) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vld1q_f64(p)); +#else + const float *fp = (const float *) p; + float ALIGN_STRUCT(16) data[4] = {fp[0], fp[1], fp[2], fp[3]}; + return vreinterpretq_m128d_f32(vld1q_f32(data)); +#endif +} + +// Loads two double-precision from unaligned memory, floating-point values. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadu_pd +FORCE_INLINE __m128d _mm_loadu_pd(const double *p) +{ + return _mm_load_pd(p); +} + +// Loads an single - precision, floating - point value into the low word and +// clears the upper three words. +// https://msdn.microsoft.com/en-us/library/548bb9h4%28v=vs.90%29.aspx +FORCE_INLINE __m128 _mm_load_ss(const float *p) +{ + return vreinterpretq_m128_f32(vsetq_lane_f32(*p, vdupq_n_f32(0), 0)); +} + +// Load 64-bit integer from memory into the first element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadl_epi64 +FORCE_INLINE __m128i _mm_loadl_epi64(__m128i const *p) +{ + /* Load the lower 64 bits of the value pointed to by p into the + * lower 64 bits of the result, zeroing the upper 64 bits of the result. + */ + return vreinterpretq_m128i_s32( + vcombine_s32(vld1_s32((int32_t const *) p), vcreate_s32(0))); +} + +// Load a double-precision (64-bit) floating-point element from memory into the +// lower element of dst, and copy the upper element from a to dst. mem_addr does +// not need to be aligned on any particular boundary. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := a[127:64] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadl_pd +FORCE_INLINE __m128d _mm_loadl_pd(__m128d a, const double *p) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vcombine_f64(vld1_f64(p), vget_high_f64(vreinterpretq_f64_m128d(a)))); +#else + return vreinterpretq_m128d_f32( + vcombine_f32(vld1_f32((const float *) p), + vget_high_f32(vreinterpretq_f32_m128d(a)))); +#endif +} + +// Load 2 double-precision (64-bit) floating-point elements from memory into dst +// in reverse order. mem_addr must be aligned on a 16-byte boundary or a +// general-protection exception may be generated. +// +// dst[63:0] := MEM[mem_addr+127:mem_addr+64] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadr_pd +FORCE_INLINE __m128d _mm_loadr_pd(const double *p) +{ +#if defined(__aarch64__) + float64x2_t v = vld1q_f64(p); + return vreinterpretq_m128d_f64(vextq_f64(v, v, 1)); +#else + int64x2_t v = vld1q_s64((const int64_t *) p); + return vreinterpretq_m128d_s64(vextq_s64(v, v, 1)); +#endif +} + +// Sets the low word to the single-precision, floating-point value of b +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/35hdzazd(v=vs.100) +FORCE_INLINE __m128 _mm_move_ss(__m128 a, __m128 b) +{ + return vreinterpretq_m128_f32( + vsetq_lane_f32(vgetq_lane_f32(vreinterpretq_f32_m128(b), 0), + vreinterpretq_f32_m128(a), 0)); +} + +// Move the lower double-precision (64-bit) floating-point element from b to the +// lower element of dst, and copy the upper element from a to the upper element +// of dst. +// +// dst[63:0] := b[63:0] +// dst[127:64] := a[127:64] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_move_sd +FORCE_INLINE __m128d _mm_move_sd(__m128d a, __m128d b) +{ + return vreinterpretq_m128d_f32( + vcombine_f32(vget_low_f32(vreinterpretq_f32_m128d(b)), + vget_high_f32(vreinterpretq_f32_m128d(a)))); +} + +// Copy the lower 64-bit integer in a to the lower element of dst, and zero the +// upper element. +// +// dst[63:0] := a[63:0] +// dst[127:64] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_move_epi64 +FORCE_INLINE __m128i _mm_move_epi64(__m128i a) +{ + return vreinterpretq_m128i_s64( + vsetq_lane_s64(0, vreinterpretq_s64_m128i(a), 1)); +} + +// Return vector of type __m128 with undefined elements. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_undefined_ps +FORCE_INLINE __m128 _mm_undefined_ps(void) +{ +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wuninitialized" +#endif + __m128 a; + return a; +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif +} + +/* Logic/Binary operations */ + +// Computes the bitwise AND-NOT of the four single-precision, floating-point +// values of a and b. +// +// r0 := ~a0 & b0 +// r1 := ~a1 & b1 +// r2 := ~a2 & b2 +// r3 := ~a3 & b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/68h7wd02(v=vs.100).aspx +FORCE_INLINE __m128 _mm_andnot_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_s32( + vbicq_s32(vreinterpretq_s32_m128(b), + vreinterpretq_s32_m128(a))); // *NOTE* argument swap +} + +// Compute the bitwise NOT of packed double-precision (64-bit) floating-point +// elements in a and then AND with b, and store the results in dst. +// +// FOR j := 0 to 1 +// i := j*64 +// dst[i+63:i] := ((NOT a[i+63:i]) AND b[i+63:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_andnot_pd +FORCE_INLINE __m128d _mm_andnot_pd(__m128d a, __m128d b) +{ + // *NOTE* argument swap + return vreinterpretq_m128d_s64( + vbicq_s64(vreinterpretq_s64_m128d(b), vreinterpretq_s64_m128d(a))); +} + +// Computes the bitwise AND of the 128-bit value in b and the bitwise NOT of the +// 128-bit value in a. +// +// r := (~a) & b +// +// https://msdn.microsoft.com/en-us/library/vstudio/1beaceh8(v=vs.100).aspx +FORCE_INLINE __m128i _mm_andnot_si128(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vbicq_s32(vreinterpretq_s32_m128i(b), + vreinterpretq_s32_m128i(a))); // *NOTE* argument swap +} + +// Computes the bitwise AND of the 128-bit value in a and the 128-bit value in +// b. +// +// r := a & b +// +// https://msdn.microsoft.com/en-us/library/vstudio/6d1txsa8(v=vs.100).aspx +FORCE_INLINE __m128i _mm_and_si128(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vandq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Computes the bitwise AND of the four single-precision, floating-point values +// of a and b. +// +// r0 := a0 & b0 +// r1 := a1 & b1 +// r2 := a2 & b2 +// r3 := a3 & b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/73ck1xc5(v=vs.100).aspx +FORCE_INLINE __m128 _mm_and_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_s32( + vandq_s32(vreinterpretq_s32_m128(a), vreinterpretq_s32_m128(b))); +} + +// Compute the bitwise AND of packed double-precision (64-bit) floating-point +// elements in a and b, and store the results in dst. +// +// FOR j := 0 to 1 +// i := j*64 +// dst[i+63:i] := a[i+63:i] AND b[i+63:i] +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_and_pd +FORCE_INLINE __m128d _mm_and_pd(__m128d a, __m128d b) +{ + return vreinterpretq_m128d_s64( + vandq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b))); +} + +// Computes the bitwise OR of the four single-precision, floating-point values +// of a and b. +// https://msdn.microsoft.com/en-us/library/vstudio/7ctdsyy0(v=vs.100).aspx +FORCE_INLINE __m128 _mm_or_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_s32( + vorrq_s32(vreinterpretq_s32_m128(a), vreinterpretq_s32_m128(b))); +} + +// Computes bitwise EXOR (exclusive-or) of the four single-precision, +// floating-point values of a and b. +// https://msdn.microsoft.com/en-us/library/ss6k3wk8(v=vs.100).aspx +FORCE_INLINE __m128 _mm_xor_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_s32( + veorq_s32(vreinterpretq_s32_m128(a), vreinterpretq_s32_m128(b))); +} + +// Compute the bitwise XOR of packed double-precision (64-bit) floating-point +// elements in a and b, and store the results in dst. +// +// FOR j := 0 to 1 +// i := j*64 +// dst[i+63:i] := a[i+63:i] XOR b[i+63:i] +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_xor_pd +FORCE_INLINE __m128d _mm_xor_pd(__m128d a, __m128d b) +{ + return vreinterpretq_m128d_s64( + veorq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b))); +} + +// Compute the bitwise OR of packed double-precision (64-bit) floating-point +// elements in a and b, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=mm_or_pd +FORCE_INLINE __m128d _mm_or_pd(__m128d a, __m128d b) +{ + return vreinterpretq_m128d_s64( + vorrq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b))); +} + +// Computes the bitwise OR of the 128-bit value in a and the 128-bit value in b. +// +// r := a | b +// +// https://msdn.microsoft.com/en-us/library/vstudio/ew8ty0db(v=vs.100).aspx +FORCE_INLINE __m128i _mm_or_si128(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vorrq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Computes the bitwise XOR of the 128-bit value in a and the 128-bit value in +// b. https://msdn.microsoft.com/en-us/library/fzt08www(v=vs.100).aspx +FORCE_INLINE __m128i _mm_xor_si128(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + veorq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Duplicate the low double-precision (64-bit) floating-point element from a, +// and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_movedup_pd +FORCE_INLINE __m128d _mm_movedup_pd(__m128d a) +{ +#if (__aarch64__) + return vreinterpretq_m128d_f64( + vdupq_laneq_f64(vreinterpretq_f64_m128d(a), 0)); +#else + return vreinterpretq_m128d_u64( + vdupq_n_u64(vgetq_lane_u64(vreinterpretq_u64_m128d(a), 0))); +#endif +} + +// Duplicate odd-indexed single-precision (32-bit) floating-point elements +// from a, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_movehdup_ps +FORCE_INLINE __m128 _mm_movehdup_ps(__m128 a) +{ +#if __has_builtin(__builtin_shufflevector) + return vreinterpretq_m128_f32(__builtin_shufflevector( + vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a), 1, 1, 3, 3)); +#else + float32_t a1 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 1); + float32_t a3 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 3); + float ALIGN_STRUCT(16) data[4] = {a1, a1, a3, a3}; + return vreinterpretq_m128_f32(vld1q_f32(data)); +#endif +} + +// Duplicate even-indexed single-precision (32-bit) floating-point elements +// from a, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_moveldup_ps +FORCE_INLINE __m128 _mm_moveldup_ps(__m128 a) +{ +#if __has_builtin(__builtin_shufflevector) + return vreinterpretq_m128_f32(__builtin_shufflevector( + vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a), 0, 0, 2, 2)); +#else + float32_t a0 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); + float32_t a2 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 2); + float ALIGN_STRUCT(16) data[4] = {a0, a0, a2, a2}; + return vreinterpretq_m128_f32(vld1q_f32(data)); +#endif +} + +// Moves the upper two values of B into the lower two values of A. +// +// r3 := a3 +// r2 := a2 +// r1 := b3 +// r0 := b2 +FORCE_INLINE __m128 _mm_movehl_ps(__m128 __A, __m128 __B) +{ + float32x2_t a32 = vget_high_f32(vreinterpretq_f32_m128(__A)); + float32x2_t b32 = vget_high_f32(vreinterpretq_f32_m128(__B)); + return vreinterpretq_m128_f32(vcombine_f32(b32, a32)); +} + +// Moves the lower two values of B into the upper two values of A. +// +// r3 := b1 +// r2 := b0 +// r1 := a1 +// r0 := a0 +FORCE_INLINE __m128 _mm_movelh_ps(__m128 __A, __m128 __B) +{ + float32x2_t a10 = vget_low_f32(vreinterpretq_f32_m128(__A)); + float32x2_t b10 = vget_low_f32(vreinterpretq_f32_m128(__B)); + return vreinterpretq_m128_f32(vcombine_f32(a10, b10)); +} + +// Create mask from the most significant bit of each 8-bit element in a, and +// store the result in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_movemask_pi8 +FORCE_INLINE int _mm_movemask_pi8(__m64 a) +{ + uint8x8_t input = vreinterpret_u8_m64(a); +#if defined(__aarch64__) + static const int8x8_t shift = {0, 1, 2, 3, 4, 5, 6, 7}; + uint8x8_t tmp = vshr_n_u8(input, 7); + return vaddv_u8(vshl_u8(tmp, shift)); +#else + // Refer the implementation of `_mm_movemask_epi8` + uint16x4_t high_bits = vreinterpret_u16_u8(vshr_n_u8(input, 7)); + uint32x2_t paired16 = + vreinterpret_u32_u16(vsra_n_u16(high_bits, high_bits, 7)); + uint8x8_t paired32 = + vreinterpret_u8_u32(vsra_n_u32(paired16, paired16, 14)); + return vget_lane_u8(paired32, 0) | ((int) vget_lane_u8(paired32, 4) << 4); +#endif +} + +// Compute the absolute value of packed signed 32-bit integers in a, and store +// the unsigned results in dst. +// +// FOR j := 0 to 3 +// i := j*32 +// dst[i+31:i] := ABS(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_abs_epi32 +FORCE_INLINE __m128i _mm_abs_epi32(__m128i a) +{ + return vreinterpretq_m128i_s32(vabsq_s32(vreinterpretq_s32_m128i(a))); +} + +// Compute the absolute value of packed signed 16-bit integers in a, and store +// the unsigned results in dst. +// +// FOR j := 0 to 7 +// i := j*16 +// dst[i+15:i] := ABS(a[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_abs_epi16 +FORCE_INLINE __m128i _mm_abs_epi16(__m128i a) +{ + return vreinterpretq_m128i_s16(vabsq_s16(vreinterpretq_s16_m128i(a))); +} + +// Compute the absolute value of packed signed 8-bit integers in a, and store +// the unsigned results in dst. +// +// FOR j := 0 to 15 +// i := j*8 +// dst[i+7:i] := ABS(a[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_abs_epi8 +FORCE_INLINE __m128i _mm_abs_epi8(__m128i a) +{ + return vreinterpretq_m128i_s8(vabsq_s8(vreinterpretq_s8_m128i(a))); +} + +// Compute the absolute value of packed signed 32-bit integers in a, and store +// the unsigned results in dst. +// +// FOR j := 0 to 1 +// i := j*32 +// dst[i+31:i] := ABS(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_abs_pi32 +FORCE_INLINE __m64 _mm_abs_pi32(__m64 a) +{ + return vreinterpret_m64_s32(vabs_s32(vreinterpret_s32_m64(a))); +} + +// Compute the absolute value of packed signed 16-bit integers in a, and store +// the unsigned results in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := ABS(a[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_abs_pi16 +FORCE_INLINE __m64 _mm_abs_pi16(__m64 a) +{ + return vreinterpret_m64_s16(vabs_s16(vreinterpret_s16_m64(a))); +} + +// Compute the absolute value of packed signed 8-bit integers in a, and store +// the unsigned results in dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := ABS(a[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_abs_pi8 +FORCE_INLINE __m64 _mm_abs_pi8(__m64 a) +{ + return vreinterpret_m64_s8(vabs_s8(vreinterpret_s8_m64(a))); +} + +// Concatenate 16-byte blocks in a and b into a 32-byte temporary result, shift +// the result right by imm8 bytes, and store the low 16 bytes in dst. +// +// tmp[255:0] := ((a[127:0] << 128)[255:0] OR b[127:0]) >> (imm8*8) +// dst[127:0] := tmp[127:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_alignr_epi8 +#define _mm_alignr_epi8(a, b, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm) >= 32)) { \ + ret = _mm_setzero_si128(); \ + } else { \ + uint8x16_t tmp_low, tmp_high; \ + if (imm >= 16) { \ + const int idx = imm - 16; \ + tmp_low = vreinterpretq_u8_m128i(a); \ + tmp_high = vdupq_n_u8(0); \ + ret = \ + vreinterpretq_m128i_u8(vextq_u8(tmp_low, tmp_high, idx)); \ + } else { \ + const int idx = imm; \ + tmp_low = vreinterpretq_u8_m128i(b); \ + tmp_high = vreinterpretq_u8_m128i(a); \ + ret = \ + vreinterpretq_m128i_u8(vextq_u8(tmp_low, tmp_high, idx)); \ + } \ + } \ + ret; \ + }) + +// Concatenate 8-byte blocks in a and b into a 16-byte temporary result, shift +// the result right by imm8 bytes, and store the low 8 bytes in dst. +// +// tmp[127:0] := ((a[63:0] << 64)[127:0] OR b[63:0]) >> (imm8*8) +// dst[63:0] := tmp[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_alignr_pi8 +#define _mm_alignr_pi8(a, b, imm) \ + __extension__({ \ + __m64 ret; \ + if (unlikely((imm) >= 16)) { \ + ret = vreinterpret_m64_s8(vdup_n_s8(0)); \ + } else { \ + uint8x8_t tmp_low, tmp_high; \ + if (imm >= 8) { \ + const int idx = imm - 8; \ + tmp_low = vreinterpret_u8_m64(a); \ + tmp_high = vdup_n_u8(0); \ + ret = vreinterpret_m64_u8(vext_u8(tmp_low, tmp_high, idx)); \ + } else { \ + const int idx = imm; \ + tmp_low = vreinterpret_u8_m64(b); \ + tmp_high = vreinterpret_u8_m64(a); \ + ret = vreinterpret_m64_u8(vext_u8(tmp_low, tmp_high, idx)); \ + } \ + } \ + ret; \ + }) // Takes the upper 64 bits of a and places it in the low end of the result // Takes the lower 64 bits of b and places it into the high end of the result. @@ -838,24 +1908,5127 @@ FORCE_INLINE __m128 _mm_shuffle_ps_2032(__m128 a, __m128 b) return vreinterpretq_m128_f32(vcombine_f32(a32, b20)); } -// For MSVC, we check only if it is ARM64, as every single ARM64 processor -// supported by WoA has crypto extensions. If this changes in the future, -// this can be verified via the runtime-only method of: -// IsProcessorFeaturePresent(PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE) -#if (defined(_M_ARM64) && !defined(__clang__)) || \ - (defined(__ARM_FEATURE_CRYPTO) && \ - (defined(__aarch64__) || __has_builtin(__builtin_arm_crypto_vmullp64))) +// NEON does not support a general purpose permute intrinsic +// Selects four specific single-precision, floating-point values from a and b, +// based on the mask i. +// +// C equivalent: +// __m128 _mm_shuffle_ps_default(__m128 a, __m128 b, +// __constrange(0, 255) int imm) { +// __m128 ret; +// ret[0] = a[imm & 0x3]; ret[1] = a[(imm >> 2) & 0x3]; +// ret[2] = b[(imm >> 4) & 0x03]; ret[3] = b[(imm >> 6) & 0x03]; +// return ret; +// } +// +// https://msdn.microsoft.com/en-us/library/vstudio/5f0858x0(v=vs.100).aspx +#define _mm_shuffle_ps_default(a, b, imm) \ + __extension__({ \ + float32x4_t ret; \ + ret = vmovq_n_f32( \ + vgetq_lane_f32(vreinterpretq_f32_m128(a), (imm) & (0x3))); \ + ret = vsetq_lane_f32( \ + vgetq_lane_f32(vreinterpretq_f32_m128(a), ((imm) >> 2) & 0x3), \ + ret, 1); \ + ret = vsetq_lane_f32( \ + vgetq_lane_f32(vreinterpretq_f32_m128(b), ((imm) >> 4) & 0x3), \ + ret, 2); \ + ret = vsetq_lane_f32( \ + vgetq_lane_f32(vreinterpretq_f32_m128(b), ((imm) >> 6) & 0x3), \ + ret, 3); \ + vreinterpretq_m128_f32(ret); \ + }) + +// FORCE_INLINE __m128 _mm_shuffle_ps(__m128 a, __m128 b, __constrange(0,255) +// int imm) +#if __has_builtin(__builtin_shufflevector) +#define _mm_shuffle_ps(a, b, imm) \ + __extension__({ \ + float32x4_t _input1 = vreinterpretq_f32_m128(a); \ + float32x4_t _input2 = vreinterpretq_f32_m128(b); \ + float32x4_t _shuf = __builtin_shufflevector( \ + _input1, _input2, (imm) & (0x3), ((imm) >> 2) & 0x3, \ + (((imm) >> 4) & 0x3) + 4, (((imm) >> 6) & 0x3) + 4); \ + vreinterpretq_m128_f32(_shuf); \ + }) +#else // generic +#define _mm_shuffle_ps(a, b, imm) \ + __extension__({ \ + __m128 ret; \ + switch (imm) { \ + case _MM_SHUFFLE(1, 0, 3, 2): \ + ret = _mm_shuffle_ps_1032((a), (b)); \ + break; \ + case _MM_SHUFFLE(2, 3, 0, 1): \ + ret = _mm_shuffle_ps_2301((a), (b)); \ + break; \ + case _MM_SHUFFLE(0, 3, 2, 1): \ + ret = _mm_shuffle_ps_0321((a), (b)); \ + break; \ + case _MM_SHUFFLE(2, 1, 0, 3): \ + ret = _mm_shuffle_ps_2103((a), (b)); \ + break; \ + case _MM_SHUFFLE(1, 0, 1, 0): \ + ret = _mm_movelh_ps((a), (b)); \ + break; \ + case _MM_SHUFFLE(1, 0, 0, 1): \ + ret = _mm_shuffle_ps_1001((a), (b)); \ + break; \ + case _MM_SHUFFLE(0, 1, 0, 1): \ + ret = _mm_shuffle_ps_0101((a), (b)); \ + break; \ + case _MM_SHUFFLE(3, 2, 1, 0): \ + ret = _mm_shuffle_ps_3210((a), (b)); \ + break; \ + case _MM_SHUFFLE(0, 0, 1, 1): \ + ret = _mm_shuffle_ps_0011((a), (b)); \ + break; \ + case _MM_SHUFFLE(0, 0, 2, 2): \ + ret = _mm_shuffle_ps_0022((a), (b)); \ + break; \ + case _MM_SHUFFLE(2, 2, 0, 0): \ + ret = _mm_shuffle_ps_2200((a), (b)); \ + break; \ + case _MM_SHUFFLE(3, 2, 0, 2): \ + ret = _mm_shuffle_ps_3202((a), (b)); \ + break; \ + case _MM_SHUFFLE(3, 2, 3, 2): \ + ret = _mm_movehl_ps((b), (a)); \ + break; \ + case _MM_SHUFFLE(1, 1, 3, 3): \ + ret = _mm_shuffle_ps_1133((a), (b)); \ + break; \ + case _MM_SHUFFLE(2, 0, 1, 0): \ + ret = _mm_shuffle_ps_2010((a), (b)); \ + break; \ + case _MM_SHUFFLE(2, 0, 0, 1): \ + ret = _mm_shuffle_ps_2001((a), (b)); \ + break; \ + case _MM_SHUFFLE(2, 0, 3, 2): \ + ret = _mm_shuffle_ps_2032((a), (b)); \ + break; \ + default: \ + ret = _mm_shuffle_ps_default((a), (b), (imm)); \ + break; \ + } \ + ret; \ + }) +#endif + +// Takes the upper 64 bits of a and places it in the low end of the result +// Takes the lower 64 bits of a and places it into the high end of the result. +FORCE_INLINE __m128i _mm_shuffle_epi_1032(__m128i a) +{ + int32x2_t a32 = vget_high_s32(vreinterpretq_s32_m128i(a)); + int32x2_t a10 = vget_low_s32(vreinterpretq_s32_m128i(a)); + return vreinterpretq_m128i_s32(vcombine_s32(a32, a10)); +} + +// takes the lower two 32-bit values from a and swaps them and places in low end +// of result takes the higher two 32 bit values from a and swaps them and places +// in high end of result. +FORCE_INLINE __m128i _mm_shuffle_epi_2301(__m128i a) +{ + int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); + int32x2_t a23 = vrev64_s32(vget_high_s32(vreinterpretq_s32_m128i(a))); + return vreinterpretq_m128i_s32(vcombine_s32(a01, a23)); +} + +// rotates the least significant 32 bits into the most signficant 32 bits, and +// shifts the rest down +FORCE_INLINE __m128i _mm_shuffle_epi_0321(__m128i a) +{ + return vreinterpretq_m128i_s32( + vextq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(a), 1)); +} + +// rotates the most significant 32 bits into the least signficant 32 bits, and +// shifts the rest up +FORCE_INLINE __m128i _mm_shuffle_epi_2103(__m128i a) +{ + return vreinterpretq_m128i_s32( + vextq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(a), 3)); +} + +// gets the lower 64 bits of a, and places it in the upper 64 bits +// gets the lower 64 bits of a and places it in the lower 64 bits +FORCE_INLINE __m128i _mm_shuffle_epi_1010(__m128i a) +{ + int32x2_t a10 = vget_low_s32(vreinterpretq_s32_m128i(a)); + return vreinterpretq_m128i_s32(vcombine_s32(a10, a10)); +} + +// gets the lower 64 bits of a, swaps the 0 and 1 elements, and places it in the +// lower 64 bits gets the lower 64 bits of a, and places it in the upper 64 bits +FORCE_INLINE __m128i _mm_shuffle_epi_1001(__m128i a) +{ + int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); + int32x2_t a10 = vget_low_s32(vreinterpretq_s32_m128i(a)); + return vreinterpretq_m128i_s32(vcombine_s32(a01, a10)); +} + +// gets the lower 64 bits of a, swaps the 0 and 1 elements and places it in the +// upper 64 bits gets the lower 64 bits of a, swaps the 0 and 1 elements, and +// places it in the lower 64 bits +FORCE_INLINE __m128i _mm_shuffle_epi_0101(__m128i a) +{ + int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); + return vreinterpretq_m128i_s32(vcombine_s32(a01, a01)); +} + +FORCE_INLINE __m128i _mm_shuffle_epi_2211(__m128i a) +{ + int32x2_t a11 = vdup_lane_s32(vget_low_s32(vreinterpretq_s32_m128i(a)), 1); + int32x2_t a22 = vdup_lane_s32(vget_high_s32(vreinterpretq_s32_m128i(a)), 0); + return vreinterpretq_m128i_s32(vcombine_s32(a11, a22)); +} + +FORCE_INLINE __m128i _mm_shuffle_epi_0122(__m128i a) +{ + int32x2_t a22 = vdup_lane_s32(vget_high_s32(vreinterpretq_s32_m128i(a)), 0); + int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); + return vreinterpretq_m128i_s32(vcombine_s32(a22, a01)); +} + +FORCE_INLINE __m128i _mm_shuffle_epi_3332(__m128i a) +{ + int32x2_t a32 = vget_high_s32(vreinterpretq_s32_m128i(a)); + int32x2_t a33 = vdup_lane_s32(vget_high_s32(vreinterpretq_s32_m128i(a)), 1); + return vreinterpretq_m128i_s32(vcombine_s32(a32, a33)); +} + +// Shuffle packed 8-bit integers in a according to shuffle control mask in the +// corresponding 8-bit element of b, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_shuffle_epi8 +FORCE_INLINE __m128i _mm_shuffle_epi8(__m128i a, __m128i b) +{ + int8x16_t tbl = vreinterpretq_s8_m128i(a); // input a + uint8x16_t idx = vreinterpretq_u8_m128i(b); // input b + uint8x16_t idx_masked = + vandq_u8(idx, vdupq_n_u8(0x8F)); // avoid using meaningless bits +#if defined(__aarch64__) + return vreinterpretq_m128i_s8(vqtbl1q_s8(tbl, idx_masked)); +#elif defined(__GNUC__) + int8x16_t ret; + // %e and %f represent the even and odd D registers + // respectively. + __asm__ __volatile__( + "vtbl.8 %e[ret], {%e[tbl], %f[tbl]}, %e[idx]\n" + "vtbl.8 %f[ret], {%e[tbl], %f[tbl]}, %f[idx]\n" + : [ret] "=&w"(ret) + : [tbl] "w"(tbl), [idx] "w"(idx_masked)); + return vreinterpretq_m128i_s8(ret); +#else + // use this line if testing on aarch64 + int8x8x2_t a_split = {vget_low_s8(tbl), vget_high_s8(tbl)}; + return vreinterpretq_m128i_s8( + vcombine_s8(vtbl2_s8(a_split, vget_low_u8(idx_masked)), + vtbl2_s8(a_split, vget_high_u8(idx_masked)))); +#endif +} + +// C equivalent: +// __m128i _mm_shuffle_epi32_default(__m128i a, +// __constrange(0, 255) int imm) { +// __m128i ret; +// ret[0] = a[imm & 0x3]; ret[1] = a[(imm >> 2) & 0x3]; +// ret[2] = a[(imm >> 4) & 0x03]; ret[3] = a[(imm >> 6) & 0x03]; +// return ret; +// } +#define _mm_shuffle_epi32_default(a, imm) \ + __extension__({ \ + int32x4_t ret; \ + ret = vmovq_n_s32( \ + vgetq_lane_s32(vreinterpretq_s32_m128i(a), (imm) & (0x3))); \ + ret = vsetq_lane_s32( \ + vgetq_lane_s32(vreinterpretq_s32_m128i(a), ((imm) >> 2) & 0x3), \ + ret, 1); \ + ret = vsetq_lane_s32( \ + vgetq_lane_s32(vreinterpretq_s32_m128i(a), ((imm) >> 4) & 0x3), \ + ret, 2); \ + ret = vsetq_lane_s32( \ + vgetq_lane_s32(vreinterpretq_s32_m128i(a), ((imm) >> 6) & 0x3), \ + ret, 3); \ + vreinterpretq_m128i_s32(ret); \ + }) + +// FORCE_INLINE __m128i _mm_shuffle_epi32_splat(__m128i a, __constrange(0,255) +// int imm) +#if defined(__aarch64__) +#define _mm_shuffle_epi32_splat(a, imm) \ + __extension__({ \ + vreinterpretq_m128i_s32( \ + vdupq_laneq_s32(vreinterpretq_s32_m128i(a), (imm))); \ + }) +#else +#define _mm_shuffle_epi32_splat(a, imm) \ + __extension__({ \ + vreinterpretq_m128i_s32( \ + vdupq_n_s32(vgetq_lane_s32(vreinterpretq_s32_m128i(a), (imm)))); \ + }) +#endif + +// Shuffles the 4 signed or unsigned 32-bit integers in a as specified by imm. +// https://msdn.microsoft.com/en-us/library/56f67xbk%28v=vs.90%29.aspx +// FORCE_INLINE __m128i _mm_shuffle_epi32(__m128i a, +// __constrange(0,255) int imm) +#if __has_builtin(__builtin_shufflevector) +#define _mm_shuffle_epi32(a, imm) \ + __extension__({ \ + int32x4_t _input = vreinterpretq_s32_m128i(a); \ + int32x4_t _shuf = __builtin_shufflevector( \ + _input, _input, (imm) & (0x3), ((imm) >> 2) & 0x3, \ + ((imm) >> 4) & 0x3, ((imm) >> 6) & 0x3); \ + vreinterpretq_m128i_s32(_shuf); \ + }) +#else // generic +#define _mm_shuffle_epi32(a, imm) \ + __extension__({ \ + __m128i ret; \ + switch (imm) { \ + case _MM_SHUFFLE(1, 0, 3, 2): \ + ret = _mm_shuffle_epi_1032((a)); \ + break; \ + case _MM_SHUFFLE(2, 3, 0, 1): \ + ret = _mm_shuffle_epi_2301((a)); \ + break; \ + case _MM_SHUFFLE(0, 3, 2, 1): \ + ret = _mm_shuffle_epi_0321((a)); \ + break; \ + case _MM_SHUFFLE(2, 1, 0, 3): \ + ret = _mm_shuffle_epi_2103((a)); \ + break; \ + case _MM_SHUFFLE(1, 0, 1, 0): \ + ret = _mm_shuffle_epi_1010((a)); \ + break; \ + case _MM_SHUFFLE(1, 0, 0, 1): \ + ret = _mm_shuffle_epi_1001((a)); \ + break; \ + case _MM_SHUFFLE(0, 1, 0, 1): \ + ret = _mm_shuffle_epi_0101((a)); \ + break; \ + case _MM_SHUFFLE(2, 2, 1, 1): \ + ret = _mm_shuffle_epi_2211((a)); \ + break; \ + case _MM_SHUFFLE(0, 1, 2, 2): \ + ret = _mm_shuffle_epi_0122((a)); \ + break; \ + case _MM_SHUFFLE(3, 3, 3, 2): \ + ret = _mm_shuffle_epi_3332((a)); \ + break; \ + case _MM_SHUFFLE(0, 0, 0, 0): \ + ret = _mm_shuffle_epi32_splat((a), 0); \ + break; \ + case _MM_SHUFFLE(1, 1, 1, 1): \ + ret = _mm_shuffle_epi32_splat((a), 1); \ + break; \ + case _MM_SHUFFLE(2, 2, 2, 2): \ + ret = _mm_shuffle_epi32_splat((a), 2); \ + break; \ + case _MM_SHUFFLE(3, 3, 3, 3): \ + ret = _mm_shuffle_epi32_splat((a), 3); \ + break; \ + default: \ + ret = _mm_shuffle_epi32_default((a), (imm)); \ + break; \ + } \ + ret; \ + }) +#endif + +// Shuffles the lower 4 signed or unsigned 16-bit integers in a as specified +// by imm. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/y41dkk37(v=vs.100) +// FORCE_INLINE __m128i _mm_shufflelo_epi16_function(__m128i a, +// __constrange(0,255) int +// imm) +#define _mm_shufflelo_epi16_function(a, imm) \ + __extension__({ \ + int16x8_t ret = vreinterpretq_s16_m128i(a); \ + int16x4_t lowBits = vget_low_s16(ret); \ + ret = vsetq_lane_s16(vget_lane_s16(lowBits, (imm) & (0x3)), ret, 0); \ + ret = vsetq_lane_s16(vget_lane_s16(lowBits, ((imm) >> 2) & 0x3), ret, \ + 1); \ + ret = vsetq_lane_s16(vget_lane_s16(lowBits, ((imm) >> 4) & 0x3), ret, \ + 2); \ + ret = vsetq_lane_s16(vget_lane_s16(lowBits, ((imm) >> 6) & 0x3), ret, \ + 3); \ + vreinterpretq_m128i_s16(ret); \ + }) + +// FORCE_INLINE __m128i _mm_shufflelo_epi16(__m128i a, +// __constrange(0,255) int imm) +#if __has_builtin(__builtin_shufflevector) +#define _mm_shufflelo_epi16(a, imm) \ + __extension__({ \ + int16x8_t _input = vreinterpretq_s16_m128i(a); \ + int16x8_t _shuf = __builtin_shufflevector( \ + _input, _input, ((imm) & (0x3)), (((imm) >> 2) & 0x3), \ + (((imm) >> 4) & 0x3), (((imm) >> 6) & 0x3), 4, 5, 6, 7); \ + vreinterpretq_m128i_s16(_shuf); \ + }) +#else // generic +#define _mm_shufflelo_epi16(a, imm) _mm_shufflelo_epi16_function((a), (imm)) +#endif + +// Shuffles the upper 4 signed or unsigned 16-bit integers in a as specified +// by imm. +// https://msdn.microsoft.com/en-us/library/13ywktbs(v=vs.100).aspx +// FORCE_INLINE __m128i _mm_shufflehi_epi16_function(__m128i a, +// __constrange(0,255) int +// imm) +#define _mm_shufflehi_epi16_function(a, imm) \ + __extension__({ \ + int16x8_t ret = vreinterpretq_s16_m128i(a); \ + int16x4_t highBits = vget_high_s16(ret); \ + ret = vsetq_lane_s16(vget_lane_s16(highBits, (imm) & (0x3)), ret, 4); \ + ret = vsetq_lane_s16(vget_lane_s16(highBits, ((imm) >> 2) & 0x3), ret, \ + 5); \ + ret = vsetq_lane_s16(vget_lane_s16(highBits, ((imm) >> 4) & 0x3), ret, \ + 6); \ + ret = vsetq_lane_s16(vget_lane_s16(highBits, ((imm) >> 6) & 0x3), ret, \ + 7); \ + vreinterpretq_m128i_s16(ret); \ + }) + +// FORCE_INLINE __m128i _mm_shufflehi_epi16(__m128i a, +// __constrange(0,255) int imm) +#if __has_builtin(__builtin_shufflevector) +#define _mm_shufflehi_epi16(a, imm) \ + __extension__({ \ + int16x8_t _input = vreinterpretq_s16_m128i(a); \ + int16x8_t _shuf = __builtin_shufflevector( \ + _input, _input, 0, 1, 2, 3, ((imm) & (0x3)) + 4, \ + (((imm) >> 2) & 0x3) + 4, (((imm) >> 4) & 0x3) + 4, \ + (((imm) >> 6) & 0x3) + 4); \ + vreinterpretq_m128i_s16(_shuf); \ + }) +#else // generic +#define _mm_shufflehi_epi16(a, imm) _mm_shufflehi_epi16_function((a), (imm)) +#endif + +// Shuffle double-precision (64-bit) floating-point elements using the control +// in imm8, and store the results in dst. +// +// dst[63:0] := (imm8[0] == 0) ? a[63:0] : a[127:64] +// dst[127:64] := (imm8[1] == 0) ? b[63:0] : b[127:64] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_shuffle_pd +#if __has_builtin(__builtin_shufflevector) +#define _mm_shuffle_pd(a, b, imm8) \ + vreinterpretq_m128d_s64(__builtin_shufflevector( \ + vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b), imm8 & 0x1, \ + ((imm8 & 0x2) >> 1) + 2)) +#else +#define _mm_shuffle_pd(a, b, imm8) \ + _mm_castsi128_pd(_mm_set_epi64x( \ + vgetq_lane_s64(vreinterpretq_s64_m128d(b), (imm8 & 0x2) >> 1), \ + vgetq_lane_s64(vreinterpretq_s64_m128d(a), imm8 & 0x1))) +#endif + +// Blend packed 16-bit integers from a and b using control mask imm8, and store +// the results in dst. +// +// FOR j := 0 to 7 +// i := j*16 +// IF imm8[j] +// dst[i+15:i] := b[i+15:i] +// ELSE +// dst[i+15:i] := a[i+15:i] +// FI +// ENDFOR +// FORCE_INLINE __m128i _mm_blend_epi16(__m128i a, __m128i b, +// __constrange(0,255) int imm) +#define _mm_blend_epi16(a, b, imm) \ + __extension__({ \ + const uint16_t _mask[8] = {((imm) & (1 << 0)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 1)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 2)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 3)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 4)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 5)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 6)) ? (uint16_t) -1 : 0x0, \ + ((imm) & (1 << 7)) ? (uint16_t) -1 : 0x0}; \ + uint16x8_t _mask_vec = vld1q_u16(_mask); \ + uint16x8_t _a = vreinterpretq_u16_m128i(a); \ + uint16x8_t _b = vreinterpretq_u16_m128i(b); \ + vreinterpretq_m128i_u16(vbslq_u16(_mask_vec, _b, _a)); \ + }) + +// Blend packed double-precision (64-bit) floating-point elements from a and b +// using control mask imm8, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_blend_pd +#define _mm_blend_pd(a, b, imm) \ + __extension__({ \ + const uint64_t _mask[2] = { \ + ((imm) & (1 << 0)) ? ~UINT64_C(0) : UINT64_C(0), \ + ((imm) & (1 << 1)) ? ~UINT64_C(0) : UINT64_C(0)}; \ + uint64x2_t _mask_vec = vld1q_u64(_mask); \ + uint64x2_t _a = vreinterpretq_u64_m128d(a); \ + uint64x2_t _b = vreinterpretq_u64_m128d(b); \ + vreinterpretq_m128d_u64(vbslq_u64(_mask_vec, _b, _a)); \ + }) + +// Blend packed 8-bit integers from a and b using mask, and store the results in +// dst. +// +// FOR j := 0 to 15 +// i := j*8 +// IF mask[i+7] +// dst[i+7:i] := b[i+7:i] +// ELSE +// dst[i+7:i] := a[i+7:i] +// FI +// ENDFOR +FORCE_INLINE __m128i _mm_blendv_epi8(__m128i _a, __m128i _b, __m128i _mask) +{ + // Use a signed shift right to create a mask with the sign bit + uint8x16_t mask = + vreinterpretq_u8_s8(vshrq_n_s8(vreinterpretq_s8_m128i(_mask), 7)); + uint8x16_t a = vreinterpretq_u8_m128i(_a); + uint8x16_t b = vreinterpretq_u8_m128i(_b); + return vreinterpretq_m128i_u8(vbslq_u8(mask, b, a)); +} + +/* Shifts */ + + +// Shift packed 16-bit integers in a right by imm while shifting in sign +// bits, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_srai_epi16 +FORCE_INLINE __m128i _mm_srai_epi16(__m128i a, int imm) +{ + const int count = (imm & ~15) ? 15 : imm; + return (__m128i) vshlq_s16((int16x8_t) a, vdupq_n_s16(-count)); +} + +// Shifts the 8 signed or unsigned 16-bit integers in a left by count bits while +// shifting in zeros. +// +// r0 := a0 << count +// r1 := a1 << count +// ... +// r7 := a7 << count +// +// https://msdn.microsoft.com/en-us/library/es73bcsy(v=vs.90).aspx +#define _mm_slli_epi16(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm)) <= 0) { \ + ret = a; \ + } \ + if (unlikely((imm) > 15)) { \ + ret = _mm_setzero_si128(); \ + } else { \ + ret = vreinterpretq_m128i_s16( \ + vshlq_n_s16(vreinterpretq_s16_m128i(a), (imm))); \ + } \ + ret; \ + }) + +// Shifts the 4 signed or unsigned 32-bit integers in a left by count bits while +// shifting in zeros. : +// https://msdn.microsoft.com/en-us/library/z2k3bbtb%28v=vs.90%29.aspx +// FORCE_INLINE __m128i _mm_slli_epi32(__m128i a, __constrange(0,255) int imm) +FORCE_INLINE __m128i _mm_slli_epi32(__m128i a, int imm) +{ + if (unlikely(imm <= 0)) /* TODO: add constant range macro: [0, 255] */ + return a; + if (unlikely(imm > 31)) + return _mm_setzero_si128(); + return vreinterpretq_m128i_s32( + vshlq_s32(vreinterpretq_s32_m128i(a), vdupq_n_s32(imm))); +} + +// Shift packed 64-bit integers in a left by imm8 while shifting in zeros, and +// store the results in dst. +FORCE_INLINE __m128i _mm_slli_epi64(__m128i a, int imm) +{ + if (unlikely(imm <= 0)) /* TODO: add constant range macro: [0, 255] */ + return a; + if (unlikely(imm > 63)) + return _mm_setzero_si128(); + return vreinterpretq_m128i_s64( + vshlq_s64(vreinterpretq_s64_m128i(a), vdupq_n_s64(imm))); +} + +// Shift packed 16-bit integers in a right by imm8 while shifting in zeros, and +// store the results in dst. +// +// FOR j := 0 to 7 +// i := j*16 +// IF imm8[7:0] > 15 +// dst[i+15:i] := 0 +// ELSE +// dst[i+15:i] := ZeroExtend16(a[i+15:i] >> imm8[7:0]) +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_srli_epi16 +#define _mm_srli_epi16(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely(imm) == 0) { \ + ret = a; \ + } else if (likely(0 < (imm) && (imm) < 16)) { \ + ret = vreinterpretq_m128i_u16( \ + vshlq_u16(vreinterpretq_u16_m128i(a), vdupq_n_s16(-imm))); \ + } else { \ + ret = _mm_setzero_si128(); \ + } \ + ret; \ + }) + +// Shift packed 32-bit integers in a right by imm8 while shifting in zeros, and +// store the results in dst. +// +// FOR j := 0 to 3 +// i := j*32 +// IF imm8[7:0] > 31 +// dst[i+31:i] := 0 +// ELSE +// dst[i+31:i] := ZeroExtend32(a[i+31:i] >> imm8[7:0]) +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_srli_epi32 +// FORCE_INLINE __m128i _mm_srli_epi32(__m128i a, __constrange(0,255) int imm) +#define _mm_srli_epi32(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm) == 0)) { \ + ret = a; \ + } else if (likely(0 < (imm) && (imm) < 32)) { \ + ret = vreinterpretq_m128i_u32( \ + vshlq_u32(vreinterpretq_u32_m128i(a), vdupq_n_s32(-imm))); \ + } else { \ + ret = _mm_setzero_si128(); \ + } \ + ret; \ + }) + +// Shift packed 64-bit integers in a right by imm8 while shifting in zeros, and +// store the results in dst. +// +// FOR j := 0 to 1 +// i := j*64 +// IF imm8[7:0] > 63 +// dst[i+63:i] := 0 +// ELSE +// dst[i+63:i] := ZeroExtend64(a[i+63:i] >> imm8[7:0]) +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_srli_epi64 +#define _mm_srli_epi64(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm) == 0)) { \ + ret = a; \ + } else if (likely(0 < (imm) && (imm) < 64)) { \ + ret = vreinterpretq_m128i_u64( \ + vshlq_u64(vreinterpretq_u64_m128i(a), vdupq_n_s64(-imm))); \ + } else { \ + ret = _mm_setzero_si128(); \ + } \ + ret; \ + }) + +// Shift packed 32-bit integers in a right by imm8 while shifting in sign bits, +// and store the results in dst. +// +// FOR j := 0 to 3 +// i := j*32 +// IF imm8[7:0] > 31 +// dst[i+31:i] := (a[i+31] ? 0xFFFFFFFF : 0x0) +// ELSE +// dst[i+31:i] := SignExtend32(a[i+31:i] >> imm8[7:0]) +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_srai_epi32 +// FORCE_INLINE __m128i _mm_srai_epi32(__m128i a, __constrange(0,255) int imm) +#define _mm_srai_epi32(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm) == 0)) { \ + ret = a; \ + } else if (likely(0 < (imm) && (imm) < 32)) { \ + ret = vreinterpretq_m128i_s32( \ + vshlq_s32(vreinterpretq_s32_m128i(a), vdupq_n_s32(-imm))); \ + } else { \ + ret = vreinterpretq_m128i_s32( \ + vshrq_n_s32(vreinterpretq_s32_m128i(a), 31)); \ + } \ + ret; \ + }) + +// Shifts the 128 - bit value in a right by imm bytes while shifting in +// zeros.imm must be an immediate. +// +// r := srl(a, imm*8) +// +// https://msdn.microsoft.com/en-us/library/305w28yz(v=vs.100).aspx +// FORCE_INLINE _mm_srli_si128(__m128i a, __constrange(0,255) int imm) +#define _mm_srli_si128(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm) <= 0)) { \ + ret = a; \ + } \ + if (unlikely((imm) > 15)) { \ + ret = _mm_setzero_si128(); \ + } else { \ + ret = vreinterpretq_m128i_s8( \ + vextq_s8(vreinterpretq_s8_m128i(a), vdupq_n_s8(0), (imm))); \ + } \ + ret; \ + }) + +// Shifts the 128-bit value in a left by imm bytes while shifting in zeros. imm +// must be an immediate. +// +// r := a << (imm * 8) +// +// https://msdn.microsoft.com/en-us/library/34d3k2kt(v=vs.100).aspx +// FORCE_INLINE __m128i _mm_slli_si128(__m128i a, __constrange(0,255) int imm) +#define _mm_slli_si128(a, imm) \ + __extension__({ \ + __m128i ret; \ + if (unlikely((imm) <= 0)) { \ + ret = a; \ + } \ + if (unlikely((imm) > 15)) { \ + ret = _mm_setzero_si128(); \ + } else { \ + ret = vreinterpretq_m128i_s8(vextq_s8( \ + vdupq_n_s8(0), vreinterpretq_s8_m128i(a), 16 - (imm))); \ + } \ + ret; \ + }) + +// Compute the square root of packed double-precision (64-bit) floating-point +// elements in a, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sqrt_pd +FORCE_INLINE __m128d _mm_sqrt_pd(__m128d a) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vsqrtq_f64(vreinterpretq_f64_m128d(a))); +#else + double a0 = sqrt(((double *) &a)[0]); + double a1 = sqrt(((double *) &a)[1]); + return _mm_set_pd(a1, a0); +#endif +} + +// Compute the square root of the lower double-precision (64-bit) floating-point +// element in b, store the result in the lower element of dst, and copy the +// upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sqrt_sd +FORCE_INLINE __m128d _mm_sqrt_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_sqrt_pd(b)); +#else + return _mm_set_pd(((double *) &a)[1], sqrt(((double *) &b)[0])); +#endif +} + +// Shifts the 8 signed or unsigned 16-bit integers in a left by count bits while +// shifting in zeros. +// +// r0 := a0 << count +// r1 := a1 << count +// ... +// r7 := a7 << count +// +// https://msdn.microsoft.com/en-us/library/c79w388h(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_sll_epi16(__m128i a, __m128i count) +{ + uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); + if (unlikely(c > 15)) + return _mm_setzero_si128(); + + int16x8_t vc = vdupq_n_s16((int16_t) c); + return vreinterpretq_m128i_s16(vshlq_s16(vreinterpretq_s16_m128i(a), vc)); +} + +// Shifts the 4 signed or unsigned 32-bit integers in a left by count bits while +// shifting in zeros. +// +// r0 := a0 << count +// r1 := a1 << count +// r2 := a2 << count +// r3 := a3 << count +// +// https://msdn.microsoft.com/en-us/library/6fe5a6s9(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_sll_epi32(__m128i a, __m128i count) +{ + uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); + if (unlikely(c > 31)) + return _mm_setzero_si128(); + + int32x4_t vc = vdupq_n_s32((int32_t) c); + return vreinterpretq_m128i_s32(vshlq_s32(vreinterpretq_s32_m128i(a), vc)); +} + +// Shifts the 2 signed or unsigned 64-bit integers in a left by count bits while +// shifting in zeros. +// +// r0 := a0 << count +// r1 := a1 << count +// +// https://msdn.microsoft.com/en-us/library/6ta9dffd(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_sll_epi64(__m128i a, __m128i count) +{ + uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); + if (unlikely(c > 63)) + return _mm_setzero_si128(); + + int64x2_t vc = vdupq_n_s64((int64_t) c); + return vreinterpretq_m128i_s64(vshlq_s64(vreinterpretq_s64_m128i(a), vc)); +} + +// Shifts the 8 signed or unsigned 16-bit integers in a right by count bits +// while shifting in zeros. +// +// r0 := srl(a0, count) +// r1 := srl(a1, count) +// ... +// r7 := srl(a7, count) +// +// https://msdn.microsoft.com/en-us/library/wd5ax830(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_srl_epi16(__m128i a, __m128i count) +{ + uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); + if (unlikely(c > 15)) + return _mm_setzero_si128(); + + int16x8_t vc = vdupq_n_s16(-(int16_t) c); + return vreinterpretq_m128i_u16(vshlq_u16(vreinterpretq_u16_m128i(a), vc)); +} + +// Shifts the 4 signed or unsigned 32-bit integers in a right by count bits +// while shifting in zeros. +// +// r0 := srl(a0, count) +// r1 := srl(a1, count) +// r2 := srl(a2, count) +// r3 := srl(a3, count) +// +// https://msdn.microsoft.com/en-us/library/a9cbttf4(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_srl_epi32(__m128i a, __m128i count) +{ + uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); + if (unlikely(c > 31)) + return _mm_setzero_si128(); + + int32x4_t vc = vdupq_n_s32(-(int32_t) c); + return vreinterpretq_m128i_u32(vshlq_u32(vreinterpretq_u32_m128i(a), vc)); +} + +// Shifts the 2 signed or unsigned 64-bit integers in a right by count bits +// while shifting in zeros. +// +// r0 := srl(a0, count) +// r1 := srl(a1, count) +// +// https://msdn.microsoft.com/en-us/library/yf6cf9k8(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_srl_epi64(__m128i a, __m128i count) +{ + uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); + if (unlikely(c > 63)) + return _mm_setzero_si128(); + + int64x2_t vc = vdupq_n_s64(-(int64_t) c); + return vreinterpretq_m128i_u64(vshlq_u64(vreinterpretq_u64_m128i(a), vc)); +} + +// NEON does not provide a version of this function. +// Creates a 16-bit mask from the most significant bits of the 16 signed or +// unsigned 8-bit integers in a and zero extends the upper bits. +// https://msdn.microsoft.com/en-us/library/vstudio/s090c8fk(v=vs.100).aspx +FORCE_INLINE int _mm_movemask_epi8(__m128i a) +{ + // Use increasingly wide shifts+adds to collect the sign bits + // together. + // Since the widening shifts would be rather confusing to follow in little + // endian, everything will be illustrated in big endian order instead. This + // has a different result - the bits would actually be reversed on a big + // endian machine. + + // Starting input (only half the elements are shown): + // 89 ff 1d c0 00 10 99 33 + uint8x16_t input = vreinterpretq_u8_m128i(a); + + // Shift out everything but the sign bits with an unsigned shift right. + // + // Bytes of the vector:: + // 89 ff 1d c0 00 10 99 33 + // \ \ \ \ \ \ \ \ high_bits = (uint16x4_t)(input >> 7) + // | | | | | | | | + // 01 01 00 01 00 00 01 00 + // + // Bits of first important lane(s): + // 10001001 (89) + // \______ + // | + // 00000001 (01) + uint16x8_t high_bits = vreinterpretq_u16_u8(vshrq_n_u8(input, 7)); + + // Merge the even lanes together with a 16-bit unsigned shift right + add. + // 'xx' represents garbage data which will be ignored in the final result. + // In the important bytes, the add functions like a binary OR. + // + // 01 01 00 01 00 00 01 00 + // \_ | \_ | \_ | \_ | paired16 = (uint32x4_t)(input + (input >> 7)) + // \| \| \| \| + // xx 03 xx 01 xx 00 xx 02 + // + // 00000001 00000001 (01 01) + // \_______ | + // \| + // xxxxxxxx xxxxxx11 (xx 03) + uint32x4_t paired16 = + vreinterpretq_u32_u16(vsraq_n_u16(high_bits, high_bits, 7)); + + // Repeat with a wider 32-bit shift + add. + // xx 03 xx 01 xx 00 xx 02 + // \____ | \____ | paired32 = (uint64x1_t)(paired16 + (paired16 >> + // 14)) + // \| \| + // xx xx xx 0d xx xx xx 02 + // + // 00000011 00000001 (03 01) + // \\_____ || + // '----.\|| + // xxxxxxxx xxxx1101 (xx 0d) + uint64x2_t paired32 = + vreinterpretq_u64_u32(vsraq_n_u32(paired16, paired16, 14)); + + // Last, an even wider 64-bit shift + add to get our result in the low 8 bit + // lanes. xx xx xx 0d xx xx xx 02 + // \_________ | paired64 = (uint8x8_t)(paired32 + (paired32 >> + // 28)) + // \| + // xx xx xx xx xx xx xx d2 + // + // 00001101 00000010 (0d 02) + // \ \___ | | + // '---. \| | + // xxxxxxxx 11010010 (xx d2) + uint8x16_t paired64 = + vreinterpretq_u8_u64(vsraq_n_u64(paired32, paired32, 28)); + + // Extract the low 8 bits from each 64-bit lane with 2 8-bit extracts. + // xx xx xx xx xx xx xx d2 + // || return paired64[0] + // d2 + // Note: Little endian would return the correct value 4b (01001011) instead. + return vgetq_lane_u8(paired64, 0) | ((int) vgetq_lane_u8(paired64, 8) << 8); +} + +// Set each bit of mask dst based on the most significant bit of the +// corresponding packed double-precision (64-bit) floating-point element in a. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_movemask_pd +FORCE_INLINE int _mm_movemask_pd(__m128d a) +{ + uint64x2_t input = vreinterpretq_u64_m128d(a); + uint64x2_t high_bits = vshrq_n_u64(input, 63); + return vgetq_lane_u64(high_bits, 0) | (vgetq_lane_u64(high_bits, 1) << 1); +} + +// Copy the lower 64-bit integer in a to dst. +// +// dst[63:0] := a[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_movepi64_pi64 +FORCE_INLINE __m64 _mm_movepi64_pi64(__m128i a) +{ + return vreinterpret_m64_s64(vget_low_s64(vreinterpretq_s64_m128i(a))); +} + +// Copy the 64-bit integer a to the lower element of dst, and zero the upper +// element. +// +// dst[63:0] := a[63:0] +// dst[127:64] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_movpi64_epi64 +FORCE_INLINE __m128i _mm_movpi64_epi64(__m64 a) +{ + return vreinterpretq_m128i_s64( + vcombine_s64(vreinterpret_s64_m64(a), vdup_n_s64(0))); +} + +// NEON does not provide this method +// Creates a 4-bit mask from the most significant bits of the four +// single-precision, floating-point values. +// https://msdn.microsoft.com/en-us/library/vstudio/4490ys29(v=vs.100).aspx +FORCE_INLINE int _mm_movemask_ps(__m128 a) +{ + uint32x4_t input = vreinterpretq_u32_m128(a); +#if defined(__aarch64__) + static const int32x4_t shift = {0, 1, 2, 3}; + uint32x4_t tmp = vshrq_n_u32(input, 31); + return vaddvq_u32(vshlq_u32(tmp, shift)); +#else + // Uses the exact same method as _mm_movemask_epi8, see that for details. + // Shift out everything but the sign bits with a 32-bit unsigned shift + // right. + uint64x2_t high_bits = vreinterpretq_u64_u32(vshrq_n_u32(input, 31)); + // Merge the two pairs together with a 64-bit unsigned shift right + add. + uint8x16_t paired = + vreinterpretq_u8_u64(vsraq_n_u64(high_bits, high_bits, 31)); + // Extract the result. + return vgetq_lane_u8(paired, 0) | (vgetq_lane_u8(paired, 8) << 2); +#endif +} + +// Compute the bitwise NOT of a and then AND with a 128-bit vector containing +// all 1's, and return 1 if the result is zero, otherwise return 0. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_test_all_ones +FORCE_INLINE int _mm_test_all_ones(__m128i a) +{ + return (uint64_t)(vgetq_lane_s64(a, 0) & vgetq_lane_s64(a, 1)) == + ~(uint64_t) 0; +} + +// Compute the bitwise AND of 128 bits (representing integer data) in a and +// mask, and return 1 if the result is zero, otherwise return 0. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_test_all_zeros +FORCE_INLINE int _mm_test_all_zeros(__m128i a, __m128i mask) +{ + int64x2_t a_and_mask = + vandq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(mask)); + return (vgetq_lane_s64(a_and_mask, 0) | vgetq_lane_s64(a_and_mask, 1)) ? 0 + : 1; +} + +/* Math operations */ + +// Subtracts the four single-precision, floating-point values of a and b. +// +// r0 := a0 - b0 +// r1 := a1 - b1 +// r2 := a2 - b2 +// r3 := a3 - b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/1zad2k61(v=vs.100).aspx +FORCE_INLINE __m128 _mm_sub_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_f32( + vsubq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Subtract the lower single-precision (32-bit) floating-point element in b from +// the lower single-precision (32-bit) floating-point element in a, store the +// result in the lower element of dst, and copy the upper 3 packed elements from +// a to the upper elements of dst. +// +// dst[31:0] := a[31:0] - b[31:0] +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sub_ss +FORCE_INLINE __m128 _mm_sub_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_sub_ps(a, b)); +} + +// Subtract 2 packed 64-bit integers in b from 2 packed 64-bit integers in a, +// and store the results in dst. +// r0 := a0 - b0 +// r1 := a1 - b1 +FORCE_INLINE __m128i _mm_sub_epi64(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s64( + vsubq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); +} + +// Subtracts the 4 signed or unsigned 32-bit integers of b from the 4 signed or +// unsigned 32-bit integers of a. +// +// r0 := a0 - b0 +// r1 := a1 - b1 +// r2 := a2 - b2 +// r3 := a3 - b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/fhh866h0(v=vs.100).aspx +FORCE_INLINE __m128i _mm_sub_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vsubq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Subtract packed 16-bit integers in b from packed 16-bit integers in a, and +// store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sub_epi16 +FORCE_INLINE __m128i _mm_sub_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vsubq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Subtract packed 8-bit integers in b from packed 8-bit integers in a, and +// store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sub_epi8 +FORCE_INLINE __m128i _mm_sub_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vsubq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Subtract 64-bit integer b from 64-bit integer a, and store the result in dst. +// +// dst[63:0] := a[63:0] - b[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sub_si64 +FORCE_INLINE __m64 _mm_sub_si64(__m64 a, __m64 b) +{ + return vreinterpret_m64_s64( + vsub_s64(vreinterpret_s64_m64(a), vreinterpret_s64_m64(b))); +} + +// Subtracts the 8 unsigned 16-bit integers of bfrom the 8 unsigned 16-bit +// integers of a and saturates.. +// https://technet.microsoft.com/en-us/subscriptions/index/f44y0s19(v=vs.90).aspx +FORCE_INLINE __m128i _mm_subs_epu16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vqsubq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); +} + +// Subtracts the 16 unsigned 8-bit integers of b from the 16 unsigned 8-bit +// integers of a and saturates. +// +// r0 := UnsignedSaturate(a0 - b0) +// r1 := UnsignedSaturate(a1 - b1) +// ... +// r15 := UnsignedSaturate(a15 - b15) +// +// https://technet.microsoft.com/en-us/subscriptions/yadkxc18(v=vs.90) +FORCE_INLINE __m128i _mm_subs_epu8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vqsubq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); +} + +#define _mm_ucomieq_sd _mm_comieq_sd +#define _mm_ucomige_sd _mm_comige_sd +#define _mm_ucomigt_sd _mm_comigt_sd +#define _mm_ucomile_sd _mm_comile_sd +#define _mm_ucomilt_sd _mm_comilt_sd +#define _mm_ucomineq_sd _mm_comineq_sd + +// Subtracts the 16 signed 8-bit integers of b from the 16 signed 8-bit integers +// of a and saturates. +// +// r0 := SignedSaturate(a0 - b0) +// r1 := SignedSaturate(a1 - b1) +// ... +// r15 := SignedSaturate(a15 - b15) +// +// https://technet.microsoft.com/en-us/subscriptions/by7kzks1(v=vs.90) +FORCE_INLINE __m128i _mm_subs_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vqsubq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Subtracts the 8 signed 16-bit integers of b from the 8 signed 16-bit integers +// of a and saturates. +// +// r0 := SignedSaturate(a0 - b0) +// r1 := SignedSaturate(a1 - b1) +// ... +// r7 := SignedSaturate(a7 - b7) +// +// https://technet.microsoft.com/en-us/subscriptions/3247z5b8(v=vs.90) +FORCE_INLINE __m128i _mm_subs_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vqsubq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Subtract packed double-precision (64-bit) floating-point elements in b from +// packed double-precision (64-bit) floating-point elements in a, and store the +// results in dst. +// +// FOR j := 0 to 1 +// i := j*64 +// dst[i+63:i] := a[i+63:i] - b[i+63:i] +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=mm_sub_pd +FORCE_INLINE __m128d _mm_sub_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vsubq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2]; + c[0] = da[0] - db[0]; + c[1] = da[1] - db[1]; + return vld1q_f32((float32_t *) c); +#endif +} + +// Subtract the lower double-precision (64-bit) floating-point element in b from +// the lower double-precision (64-bit) floating-point element in a, store the +// result in the lower element of dst, and copy the upper element from a to the +// upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sub_sd +FORCE_INLINE __m128d _mm_sub_sd(__m128d a, __m128d b) +{ + return _mm_move_sd(a, _mm_sub_pd(a, b)); +} + +// Add packed unsigned 16-bit integers in a and b using saturation, and store +// the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_adds_epu16 +FORCE_INLINE __m128i _mm_adds_epu16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vqaddq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); +} + +// Negate packed 8-bit integers in a when the corresponding signed +// 8-bit integer in b is negative, and store the results in dst. +// Element in dst are zeroed out when the corresponding element +// in b is zero. +// +// for i in 0..15 +// if b[i] < 0 +// r[i] := -a[i] +// else if b[i] == 0 +// r[i] := 0 +// else +// r[i] := a[i] +// fi +// done +FORCE_INLINE __m128i _mm_sign_epi8(__m128i _a, __m128i _b) +{ + int8x16_t a = vreinterpretq_s8_m128i(_a); + int8x16_t b = vreinterpretq_s8_m128i(_b); + + // signed shift right: faster than vclt + // (b < 0) ? 0xFF : 0 + uint8x16_t ltMask = vreinterpretq_u8_s8(vshrq_n_s8(b, 7)); + + // (b == 0) ? 0xFF : 0 +#if defined(__aarch64__) + int8x16_t zeroMask = vreinterpretq_s8_u8(vceqzq_s8(b)); +#else + int8x16_t zeroMask = vreinterpretq_s8_u8(vceqq_s8(b, vdupq_n_s8(0))); +#endif + + // bitwise select either a or nagative 'a' (vnegq_s8(a) return nagative 'a') + // based on ltMask + int8x16_t masked = vbslq_s8(ltMask, vnegq_s8(a), a); + // res = masked & (~zeroMask) + int8x16_t res = vbicq_s8(masked, zeroMask); + + return vreinterpretq_m128i_s8(res); +} + +// Negate packed 16-bit integers in a when the corresponding signed +// 16-bit integer in b is negative, and store the results in dst. +// Element in dst are zeroed out when the corresponding element +// in b is zero. +// +// for i in 0..7 +// if b[i] < 0 +// r[i] := -a[i] +// else if b[i] == 0 +// r[i] := 0 +// else +// r[i] := a[i] +// fi +// done +FORCE_INLINE __m128i _mm_sign_epi16(__m128i _a, __m128i _b) +{ + int16x8_t a = vreinterpretq_s16_m128i(_a); + int16x8_t b = vreinterpretq_s16_m128i(_b); + + // signed shift right: faster than vclt + // (b < 0) ? 0xFFFF : 0 + uint16x8_t ltMask = vreinterpretq_u16_s16(vshrq_n_s16(b, 15)); + // (b == 0) ? 0xFFFF : 0 +#if defined(__aarch64__) + int16x8_t zeroMask = vreinterpretq_s16_u16(vceqzq_s16(b)); +#else + int16x8_t zeroMask = vreinterpretq_s16_u16(vceqq_s16(b, vdupq_n_s16(0))); +#endif + + // bitwise select either a or negative 'a' (vnegq_s16(a) equals to negative + // 'a') based on ltMask + int16x8_t masked = vbslq_s16(ltMask, vnegq_s16(a), a); + // res = masked & (~zeroMask) + int16x8_t res = vbicq_s16(masked, zeroMask); + return vreinterpretq_m128i_s16(res); +} + +// Negate packed 32-bit integers in a when the corresponding signed +// 32-bit integer in b is negative, and store the results in dst. +// Element in dst are zeroed out when the corresponding element +// in b is zero. +// +// for i in 0..3 +// if b[i] < 0 +// r[i] := -a[i] +// else if b[i] == 0 +// r[i] := 0 +// else +// r[i] := a[i] +// fi +// done +FORCE_INLINE __m128i _mm_sign_epi32(__m128i _a, __m128i _b) +{ + int32x4_t a = vreinterpretq_s32_m128i(_a); + int32x4_t b = vreinterpretq_s32_m128i(_b); + + // signed shift right: faster than vclt + // (b < 0) ? 0xFFFFFFFF : 0 + uint32x4_t ltMask = vreinterpretq_u32_s32(vshrq_n_s32(b, 31)); + + // (b == 0) ? 0xFFFFFFFF : 0 +#if defined(__aarch64__) + int32x4_t zeroMask = vreinterpretq_s32_u32(vceqzq_s32(b)); +#else + int32x4_t zeroMask = vreinterpretq_s32_u32(vceqq_s32(b, vdupq_n_s32(0))); +#endif + + // bitwise select either a or negative 'a' (vnegq_s32(a) equals to negative + // 'a') based on ltMask + int32x4_t masked = vbslq_s32(ltMask, vnegq_s32(a), a); + // res = masked & (~zeroMask) + int32x4_t res = vbicq_s32(masked, zeroMask); + return vreinterpretq_m128i_s32(res); +} + +// Negate packed 16-bit integers in a when the corresponding signed 16-bit +// integer in b is negative, and store the results in dst. Element in dst are +// zeroed out when the corresponding element in b is zero. +// +// FOR j := 0 to 3 +// i := j*16 +// IF b[i+15:i] < 0 +// dst[i+15:i] := -(a[i+15:i]) +// ELSE IF b[i+15:i] == 0 +// dst[i+15:i] := 0 +// ELSE +// dst[i+15:i] := a[i+15:i] +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sign_pi16 +FORCE_INLINE __m64 _mm_sign_pi16(__m64 _a, __m64 _b) +{ + int16x4_t a = vreinterpret_s16_m64(_a); + int16x4_t b = vreinterpret_s16_m64(_b); + + // signed shift right: faster than vclt + // (b < 0) ? 0xFFFF : 0 + uint16x4_t ltMask = vreinterpret_u16_s16(vshr_n_s16(b, 15)); + + // (b == 0) ? 0xFFFF : 0 +#if defined(__aarch64__) + int16x4_t zeroMask = vreinterpret_s16_u16(vceqz_s16(b)); +#else + int16x4_t zeroMask = vreinterpret_s16_u16(vceq_s16(b, vdup_n_s16(0))); +#endif + + // bitwise select either a or nagative 'a' (vneg_s16(a) return nagative 'a') + // based on ltMask + int16x4_t masked = vbsl_s16(ltMask, vneg_s16(a), a); + // res = masked & (~zeroMask) + int16x4_t res = vbic_s16(masked, zeroMask); + + return vreinterpret_m64_s16(res); +} + +// Negate packed 32-bit integers in a when the corresponding signed 32-bit +// integer in b is negative, and store the results in dst. Element in dst are +// zeroed out when the corresponding element in b is zero. +// +// FOR j := 0 to 1 +// i := j*32 +// IF b[i+31:i] < 0 +// dst[i+31:i] := -(a[i+31:i]) +// ELSE IF b[i+31:i] == 0 +// dst[i+31:i] := 0 +// ELSE +// dst[i+31:i] := a[i+31:i] +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sign_pi32 +FORCE_INLINE __m64 _mm_sign_pi32(__m64 _a, __m64 _b) +{ + int32x2_t a = vreinterpret_s32_m64(_a); + int32x2_t b = vreinterpret_s32_m64(_b); + + // signed shift right: faster than vclt + // (b < 0) ? 0xFFFFFFFF : 0 + uint32x2_t ltMask = vreinterpret_u32_s32(vshr_n_s32(b, 31)); + + // (b == 0) ? 0xFFFFFFFF : 0 +#if defined(__aarch64__) + int32x2_t zeroMask = vreinterpret_s32_u32(vceqz_s32(b)); +#else + int32x2_t zeroMask = vreinterpret_s32_u32(vceq_s32(b, vdup_n_s32(0))); +#endif + + // bitwise select either a or nagative 'a' (vneg_s32(a) return nagative 'a') + // based on ltMask + int32x2_t masked = vbsl_s32(ltMask, vneg_s32(a), a); + // res = masked & (~zeroMask) + int32x2_t res = vbic_s32(masked, zeroMask); + + return vreinterpret_m64_s32(res); +} + +// Negate packed 8-bit integers in a when the corresponding signed 8-bit integer +// in b is negative, and store the results in dst. Element in dst are zeroed out +// when the corresponding element in b is zero. +// +// FOR j := 0 to 7 +// i := j*8 +// IF b[i+7:i] < 0 +// dst[i+7:i] := -(a[i+7:i]) +// ELSE IF b[i+7:i] == 0 +// dst[i+7:i] := 0 +// ELSE +// dst[i+7:i] := a[i+7:i] +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sign_pi8 +FORCE_INLINE __m64 _mm_sign_pi8(__m64 _a, __m64 _b) +{ + int8x8_t a = vreinterpret_s8_m64(_a); + int8x8_t b = vreinterpret_s8_m64(_b); + + // signed shift right: faster than vclt + // (b < 0) ? 0xFF : 0 + uint8x8_t ltMask = vreinterpret_u8_s8(vshr_n_s8(b, 7)); + + // (b == 0) ? 0xFF : 0 +#if defined(__aarch64__) + int8x8_t zeroMask = vreinterpret_s8_u8(vceqz_s8(b)); +#else + int8x8_t zeroMask = vreinterpret_s8_u8(vceq_s8(b, vdup_n_s8(0))); +#endif + + // bitwise select either a or nagative 'a' (vneg_s8(a) return nagative 'a') + // based on ltMask + int8x8_t masked = vbsl_s8(ltMask, vneg_s8(a), a); + // res = masked & (~zeroMask) + int8x8_t res = vbic_s8(masked, zeroMask); + + return vreinterpret_m64_s8(res); +} + +// Average packed unsigned 16-bit integers in a and b, and store the results in +// dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := (a[i+15:i] + b[i+15:i] + 1) >> 1 +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_avg_pu16 +FORCE_INLINE __m64 _mm_avg_pu16(__m64 a, __m64 b) +{ + return vreinterpret_m64_u16( + vrhadd_u16(vreinterpret_u16_m64(a), vreinterpret_u16_m64(b))); +} + +// Average packed unsigned 8-bit integers in a and b, and store the results in +// dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := (a[i+7:i] + b[i+7:i] + 1) >> 1 +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_avg_pu8 +FORCE_INLINE __m64 _mm_avg_pu8(__m64 a, __m64 b) +{ + return vreinterpret_m64_u8( + vrhadd_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); +} + +// Average packed unsigned 8-bit integers in a and b, and store the results in +// dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := (a[i+7:i] + b[i+7:i] + 1) >> 1 +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pavgb +#define _m_pavgb(a, b) _mm_avg_pu8(a, b) + +// Average packed unsigned 16-bit integers in a and b, and store the results in +// dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := (a[i+15:i] + b[i+15:i] + 1) >> 1 +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pavgw +#define _m_pavgw(a, b) _mm_avg_pu16(a, b) + +// Extract a 16-bit integer from a, selected with imm8, and store the result in +// the lower element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pextrw +#define _m_pextrw(a, imm) _mm_extract_pi16(a, imm) + +// Copy a to dst, and insert the 16-bit integer i into dst at the location +// specified by imm8. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=m_pinsrw +#define _m_pinsrw(a, i, imm) _mm_insert_pi16(a, i, imm) + +// Compare packed signed 16-bit integers in a and b, and store packed maximum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pmaxsw +#define _m_pmaxsw(a, b) _mm_max_pi16(a, b) + +// Compare packed unsigned 8-bit integers in a and b, and store packed maximum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pmaxub +#define _m_pmaxub(a, b) _mm_max_pu8(a, b) + +// Compare packed signed 16-bit integers in a and b, and store packed minimum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pminsw +#define _m_pminsw(a, b) _mm_min_pi16(a, b) + +// Compare packed unsigned 8-bit integers in a and b, and store packed minimum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pminub +#define _m_pminub(a, b) _mm_min_pu8(a, b) + +// Create mask from the most significant bit of each 8-bit element in a, and +// store the result in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pmovmskb +#define _m_pmovmskb(a) _mm_movemask_pi8(a) + +// Multiply the packed unsigned 16-bit integers in a and b, producing +// intermediate 32-bit integers, and store the high 16 bits of the intermediate +// integers in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pmulhuw +#define _m_pmulhuw(a, b) _mm_mulhi_pu16(a, b) + +// Compute the absolute differences of packed unsigned 8-bit integers in a and +// b, then horizontally sum each consecutive 8 differences to produce four +// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low +// 16 bits of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=m_psadbw +#define _m_psadbw(a, b) _mm_sad_pu8(a, b) + +// Computes the average of the 16 unsigned 8-bit integers in a and the 16 +// unsigned 8-bit integers in b and rounds. +// +// r0 := (a0 + b0) / 2 +// r1 := (a1 + b1) / 2 +// ... +// r15 := (a15 + b15) / 2 +// +// https://msdn.microsoft.com/en-us/library/vstudio/8zwh554a(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_avg_epu8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vrhaddq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); +} + +// Shift a left by imm8 bytes while shifting in zeros, and store the results in +// dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_bslli_si128 +#define _mm_bslli_si128(a, imm) _mm_slli_si128(a, imm) + +// Shift a right by imm8 bytes while shifting in zeros, and store the results in +// dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_bsrli_si128 +#define _mm_bsrli_si128(a, imm) _mm_srli_si128(a, imm) + +// Computes the average of the 8 unsigned 16-bit integers in a and the 8 +// unsigned 16-bit integers in b and rounds. +// +// r0 := (a0 + b0) / 2 +// r1 := (a1 + b1) / 2 +// ... +// r7 := (a7 + b7) / 2 +// +// https://msdn.microsoft.com/en-us/library/vstudio/y13ca3c8(v=vs.90).aspx +FORCE_INLINE __m128i _mm_avg_epu16(__m128i a, __m128i b) +{ + return (__m128i) vrhaddq_u16(vreinterpretq_u16_m128i(a), + vreinterpretq_u16_m128i(b)); +} + +// Adds the four single-precision, floating-point values of a and b. +// +// r0 := a0 + b0 +// r1 := a1 + b1 +// r2 := a2 + b2 +// r3 := a3 + b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/c9848chc(v=vs.100).aspx +FORCE_INLINE __m128 _mm_add_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_f32( + vaddq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Add packed double-precision (64-bit) floating-point elements in a and b, and +// store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_add_pd +FORCE_INLINE __m128d _mm_add_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vaddq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2]; + c[0] = da[0] + db[0]; + c[1] = da[1] + db[1]; + return vld1q_f32((float32_t *) c); +#endif +} + +// Add the lower double-precision (64-bit) floating-point element in a and b, +// store the result in the lower element of dst, and copy the upper element from +// a to the upper element of dst. +// +// dst[63:0] := a[63:0] + b[63:0] +// dst[127:64] := a[127:64] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_add_sd +FORCE_INLINE __m128d _mm_add_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_add_pd(a, b)); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2]; + c[0] = da[0] + db[0]; + c[1] = da[1]; + return vld1q_f32((float32_t *) c); +#endif +} + +// Add 64-bit integers a and b, and store the result in dst. +// +// dst[63:0] := a[63:0] + b[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_add_si64 +FORCE_INLINE __m64 _mm_add_si64(__m64 a, __m64 b) +{ + return vreinterpret_m64_s64( + vadd_s64(vreinterpret_s64_m64(a), vreinterpret_s64_m64(b))); +} + +// adds the scalar single-precision floating point values of a and b. +// https://msdn.microsoft.com/en-us/library/be94x2y6(v=vs.100).aspx +FORCE_INLINE __m128 _mm_add_ss(__m128 a, __m128 b) +{ + float32_t b0 = vgetq_lane_f32(vreinterpretq_f32_m128(b), 0); + float32x4_t value = vsetq_lane_f32(b0, vdupq_n_f32(0), 0); + // the upper values in the result must be the remnants of . + return vreinterpretq_m128_f32(vaddq_f32(a, value)); +} + +// Adds the 4 signed or unsigned 64-bit integers in a to the 4 signed or +// unsigned 32-bit integers in b. +// https://msdn.microsoft.com/en-us/library/vstudio/09xs4fkk(v=vs.100).aspx +FORCE_INLINE __m128i _mm_add_epi64(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s64( + vaddq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); +} + +// Adds the 4 signed or unsigned 32-bit integers in a to the 4 signed or +// unsigned 32-bit integers in b. +// +// r0 := a0 + b0 +// r1 := a1 + b1 +// r2 := a2 + b2 +// r3 := a3 + b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/09xs4fkk(v=vs.100).aspx +FORCE_INLINE __m128i _mm_add_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vaddq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Adds the 8 signed or unsigned 16-bit integers in a to the 8 signed or +// unsigned 16-bit integers in b. +// https://msdn.microsoft.com/en-us/library/fceha5k4(v=vs.100).aspx +FORCE_INLINE __m128i _mm_add_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vaddq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Adds the 16 signed or unsigned 8-bit integers in a to the 16 signed or +// unsigned 8-bit integers in b. +// https://technet.microsoft.com/en-us/subscriptions/yc7tcyzs(v=vs.90) +FORCE_INLINE __m128i _mm_add_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vaddq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Adds the 8 signed 16-bit integers in a to the 8 signed 16-bit integers in b +// and saturates. +// +// r0 := SignedSaturate(a0 + b0) +// r1 := SignedSaturate(a1 + b1) +// ... +// r7 := SignedSaturate(a7 + b7) +// +// https://msdn.microsoft.com/en-us/library/1a306ef8(v=vs.100).aspx +FORCE_INLINE __m128i _mm_adds_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vqaddq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Add packed signed 8-bit integers in a and b using saturation, and store the +// results in dst. +// +// FOR j := 0 to 15 +// i := j*8 +// dst[i+7:i] := Saturate8( a[i+7:i] + b[i+7:i] ) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_adds_epi8 +FORCE_INLINE __m128i _mm_adds_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vqaddq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Adds the 16 unsigned 8-bit integers in a to the 16 unsigned 8-bit integers in +// b and saturates.. +// https://msdn.microsoft.com/en-us/library/9hahyddy(v=vs.100).aspx +FORCE_INLINE __m128i _mm_adds_epu8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vqaddq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); +} + +// Multiplies the 8 signed or unsigned 16-bit integers from a by the 8 signed or +// unsigned 16-bit integers from b. +// +// r0 := (a0 * b0)[15:0] +// r1 := (a1 * b1)[15:0] +// ... +// r7 := (a7 * b7)[15:0] +// +// https://msdn.microsoft.com/en-us/library/vstudio/9ks1472s(v=vs.100).aspx +FORCE_INLINE __m128i _mm_mullo_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vmulq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Multiplies the 4 signed or unsigned 32-bit integers from a by the 4 signed or +// unsigned 32-bit integers from b. +// https://msdn.microsoft.com/en-us/library/vstudio/bb531409(v=vs.100).aspx +FORCE_INLINE __m128i _mm_mullo_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vmulq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Multiply the packed unsigned 16-bit integers in a and b, producing +// intermediate 32-bit integers, and store the high 16 bits of the intermediate +// integers in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// tmp[31:0] := a[i+15:i] * b[i+15:i] +// dst[i+15:i] := tmp[31:16] +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_pmulhuw +#define _m_pmulhuw(a, b) _mm_mulhi_pu16(a, b) + +// Multiplies the four single-precision, floating-point values of a and b. +// +// r0 := a0 * b0 +// r1 := a1 * b1 +// r2 := a2 * b2 +// r3 := a3 * b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/22kbk6t9(v=vs.100).aspx +FORCE_INLINE __m128 _mm_mul_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_f32( + vmulq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Multiply packed double-precision (64-bit) floating-point elements in a and b, +// and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_mul_pd +FORCE_INLINE __m128d _mm_mul_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vmulq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2]; + c[0] = da[0] * db[0]; + c[1] = da[1] * db[1]; + return vld1q_f32((float32_t *) c); +#endif +} + +// Multiply the lower double-precision (64-bit) floating-point element in a and +// b, store the result in the lower element of dst, and copy the upper element +// from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=mm_mul_sd +FORCE_INLINE __m128d _mm_mul_sd(__m128d a, __m128d b) +{ + return _mm_move_sd(a, _mm_mul_pd(a, b)); +} + +// Multiply the lower single-precision (32-bit) floating-point element in a and +// b, store the result in the lower element of dst, and copy the upper 3 packed +// elements from a to the upper elements of dst. +// +// dst[31:0] := a[31:0] * b[31:0] +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_mul_ss +FORCE_INLINE __m128 _mm_mul_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_mul_ps(a, b)); +} + +// Multiply the low unsigned 32-bit integers from each packed 64-bit element in +// a and b, and store the unsigned 64-bit results in dst. +// +// r0 := (a0 & 0xFFFFFFFF) * (b0 & 0xFFFFFFFF) +// r1 := (a2 & 0xFFFFFFFF) * (b2 & 0xFFFFFFFF) +FORCE_INLINE __m128i _mm_mul_epu32(__m128i a, __m128i b) +{ + // vmull_u32 upcasts instead of masking, so we downcast. + uint32x2_t a_lo = vmovn_u64(vreinterpretq_u64_m128i(a)); + uint32x2_t b_lo = vmovn_u64(vreinterpretq_u64_m128i(b)); + return vreinterpretq_m128i_u64(vmull_u32(a_lo, b_lo)); +} + +// Multiply the low unsigned 32-bit integers from a and b, and store the +// unsigned 64-bit result in dst. +// +// dst[63:0] := a[31:0] * b[31:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_mul_su32 +FORCE_INLINE __m64 _mm_mul_su32(__m64 a, __m64 b) +{ + return vreinterpret_m64_u64(vget_low_u64( + vmull_u32(vreinterpret_u32_m64(a), vreinterpret_u32_m64(b)))); +} + +// Multiply the low signed 32-bit integers from each packed 64-bit element in +// a and b, and store the signed 64-bit results in dst. +// +// r0 := (int64_t)(int32_t)a0 * (int64_t)(int32_t)b0 +// r1 := (int64_t)(int32_t)a2 * (int64_t)(int32_t)b2 +FORCE_INLINE __m128i _mm_mul_epi32(__m128i a, __m128i b) +{ + // vmull_s32 upcasts instead of masking, so we downcast. + int32x2_t a_lo = vmovn_s64(vreinterpretq_s64_m128i(a)); + int32x2_t b_lo = vmovn_s64(vreinterpretq_s64_m128i(b)); + return vreinterpretq_m128i_s64(vmull_s32(a_lo, b_lo)); +} + +// Multiplies the 8 signed 16-bit integers from a by the 8 signed 16-bit +// integers from b. +// +// r0 := (a0 * b0) + (a1 * b1) +// r1 := (a2 * b2) + (a3 * b3) +// r2 := (a4 * b4) + (a5 * b5) +// r3 := (a6 * b6) + (a7 * b7) +// https://msdn.microsoft.com/en-us/library/yht36sa6(v=vs.90).aspx +FORCE_INLINE __m128i _mm_madd_epi16(__m128i a, __m128i b) +{ + int32x4_t low = vmull_s16(vget_low_s16(vreinterpretq_s16_m128i(a)), + vget_low_s16(vreinterpretq_s16_m128i(b))); + int32x4_t high = vmull_s16(vget_high_s16(vreinterpretq_s16_m128i(a)), + vget_high_s16(vreinterpretq_s16_m128i(b))); + + int32x2_t low_sum = vpadd_s32(vget_low_s32(low), vget_high_s32(low)); + int32x2_t high_sum = vpadd_s32(vget_low_s32(high), vget_high_s32(high)); + + return vreinterpretq_m128i_s32(vcombine_s32(low_sum, high_sum)); +} + +// Conditionally store 8-bit integer elements from a into memory using mask +// (elements are not stored when the highest bit is not set in the corresponding +// element) and a non-temporal memory hint. mem_addr does not need to be aligned +// on any particular boundary. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_maskmoveu_si128 +FORCE_INLINE void _mm_maskmoveu_si128(__m128i a, __m128i mask, char *mem_addr) +{ + int8x16_t shr_mask = vshrq_n_s8(vreinterpretq_s8_m128i(mask), 7); + __m128 b = _mm_load_ps((const float *) mem_addr); + int8x16_t masked = + vbslq_s8(vreinterpretq_u8_s8(shr_mask), vreinterpretq_s8_m128i(a), + vreinterpretq_s8_m128(b)); + vst1q_s8((int8_t *) mem_addr, masked); +} + +// Multiply packed signed 16-bit integers in a and b, producing intermediate +// signed 32-bit integers. Shift right by 15 bits while rounding up, and store +// the packed 16-bit integers in dst. +// +// r0 := Round(((int32_t)a0 * (int32_t)b0) >> 15) +// r1 := Round(((int32_t)a1 * (int32_t)b1) >> 15) +// r2 := Round(((int32_t)a2 * (int32_t)b2) >> 15) +// ... +// r7 := Round(((int32_t)a7 * (int32_t)b7) >> 15) +FORCE_INLINE __m128i _mm_mulhrs_epi16(__m128i a, __m128i b) +{ + // Has issues due to saturation + // return vreinterpretq_m128i_s16(vqrdmulhq_s16(a, b)); + + // Multiply + int32x4_t mul_lo = vmull_s16(vget_low_s16(vreinterpretq_s16_m128i(a)), + vget_low_s16(vreinterpretq_s16_m128i(b))); + int32x4_t mul_hi = vmull_s16(vget_high_s16(vreinterpretq_s16_m128i(a)), + vget_high_s16(vreinterpretq_s16_m128i(b))); + + // Rounding narrowing shift right + // narrow = (int16_t)((mul + 16384) >> 15); + int16x4_t narrow_lo = vrshrn_n_s32(mul_lo, 15); + int16x4_t narrow_hi = vrshrn_n_s32(mul_hi, 15); + + // Join together + return vreinterpretq_m128i_s16(vcombine_s16(narrow_lo, narrow_hi)); +} + +// Vertically multiply each unsigned 8-bit integer from a with the corresponding +// signed 8-bit integer from b, producing intermediate signed 16-bit integers. +// Horizontally add adjacent pairs of intermediate signed 16-bit integers, +// and pack the saturated results in dst. +// +// FOR j := 0 to 7 +// i := j*16 +// dst[i+15:i] := Saturate_To_Int16( a[i+15:i+8]*b[i+15:i+8] + +// a[i+7:i]*b[i+7:i] ) +// ENDFOR +FORCE_INLINE __m128i _mm_maddubs_epi16(__m128i _a, __m128i _b) +{ +#if defined(__aarch64__) + uint8x16_t a = vreinterpretq_u8_m128i(_a); + int8x16_t b = vreinterpretq_s8_m128i(_b); + int16x8_t tl = vmulq_s16(vreinterpretq_s16_u16(vmovl_u8(vget_low_u8(a))), + vmovl_s8(vget_low_s8(b))); + int16x8_t th = vmulq_s16(vreinterpretq_s16_u16(vmovl_u8(vget_high_u8(a))), + vmovl_s8(vget_high_s8(b))); + return vreinterpretq_m128i_s16( + vqaddq_s16(vuzp1q_s16(tl, th), vuzp2q_s16(tl, th))); +#else + // This would be much simpler if x86 would choose to zero extend OR sign + // extend, not both. This could probably be optimized better. + uint16x8_t a = vreinterpretq_u16_m128i(_a); + int16x8_t b = vreinterpretq_s16_m128i(_b); + + // Zero extend a + int16x8_t a_odd = vreinterpretq_s16_u16(vshrq_n_u16(a, 8)); + int16x8_t a_even = vreinterpretq_s16_u16(vbicq_u16(a, vdupq_n_u16(0xff00))); + + // Sign extend by shifting left then shifting right. + int16x8_t b_even = vshrq_n_s16(vshlq_n_s16(b, 8), 8); + int16x8_t b_odd = vshrq_n_s16(b, 8); + + // multiply + int16x8_t prod1 = vmulq_s16(a_even, b_even); + int16x8_t prod2 = vmulq_s16(a_odd, b_odd); + + // saturated add + return vreinterpretq_m128i_s16(vqaddq_s16(prod1, prod2)); +#endif +} + +// Computes the fused multiple add product of 32-bit floating point numbers. +// +// Return Value +// Multiplies A and B, and adds C to the temporary result before returning it. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_fmadd +FORCE_INLINE __m128 _mm_fmadd_ps(__m128 a, __m128 b, __m128 c) +{ +#if defined(__aarch64__) + return vreinterpretq_m128_f32(vfmaq_f32(vreinterpretq_f32_m128(c), + vreinterpretq_f32_m128(b), + vreinterpretq_f32_m128(a))); +#else + return _mm_add_ps(_mm_mul_ps(a, b), c); +#endif +} + +// Alternatively add and subtract packed double-precision (64-bit) +// floating-point elements in a to/from packed elements in b, and store the +// results in dst. +// +// FOR j := 0 to 1 +// i := j*64 +// IF ((j & 1) == 0) +// dst[i+63:i] := a[i+63:i] - b[i+63:i] +// ELSE +// dst[i+63:i] := a[i+63:i] + b[i+63:i] +// FI +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_addsub_pd +FORCE_INLINE __m128d _mm_addsub_pd(__m128d a, __m128d b) +{ + __m128d mask = _mm_set_pd(1.0f, -1.0f); +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vfmaq_f64(vreinterpretq_f64_m128d(a), + vreinterpretq_f64_m128d(b), + vreinterpretq_f64_m128d(mask))); +#else + return _mm_add_pd(_mm_mul_pd(b, mask), a); +#endif +} + +// Alternatively add and subtract packed single-precision (32-bit) +// floating-point elements in a to/from packed elements in b, and store the +// results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=addsub_ps +FORCE_INLINE __m128 _mm_addsub_ps(__m128 a, __m128 b) +{ + __m128 mask = {-1.0f, 1.0f, -1.0f, 1.0f}; + return _mm_fmadd_ps(b, mask, a); +} + +// Horizontally add adjacent pairs of double-precision (64-bit) floating-point +// elements in a and b, and pack the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_hadd_pd +FORCE_INLINE __m128d _mm_hadd_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vpaddq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[] = {da[0] + da[1], db[0] + db[1]}; + return vreinterpretq_m128d_u64(vld1q_u64((uint64_t *) c)); +#endif +} + +// Compute the absolute differences of packed unsigned 8-bit integers in a and +// b, then horizontally sum each consecutive 8 differences to produce two +// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low +// 16 bits of 64-bit elements in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sad_epu8 +FORCE_INLINE __m128i _mm_sad_epu8(__m128i a, __m128i b) +{ + uint16x8_t t = vpaddlq_u8(vabdq_u8((uint8x16_t) a, (uint8x16_t) b)); + uint16_t r0 = t[0] + t[1] + t[2] + t[3]; + uint16_t r4 = t[4] + t[5] + t[6] + t[7]; + uint16x8_t r = vsetq_lane_u16(r0, vdupq_n_u16(0), 0); + return (__m128i) vsetq_lane_u16(r4, r, 4); +} + +// Compute the absolute differences of packed unsigned 8-bit integers in a and +// b, then horizontally sum each consecutive 8 differences to produce four +// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low +// 16 bits of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_sad_pu8 +FORCE_INLINE __m64 _mm_sad_pu8(__m64 a, __m64 b) +{ + uint16x4_t t = + vpaddl_u8(vabd_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); + uint16_t r0 = t[0] + t[1] + t[2] + t[3]; + return vreinterpret_m64_u16(vset_lane_u16(r0, vdup_n_u16(0), 0)); +} + +// Compute the absolute differences of packed unsigned 8-bit integers in a and +// b, then horizontally sum each consecutive 8 differences to produce four +// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low +// 16 bits of dst. +// +// FOR j := 0 to 7 +// i := j*8 +// tmp[i+7:i] := ABS(a[i+7:i] - b[i+7:i]) +// ENDFOR +// dst[15:0] := tmp[7:0] + tmp[15:8] + tmp[23:16] + tmp[31:24] + tmp[39:32] + +// tmp[47:40] + tmp[55:48] + tmp[63:56] dst[63:16] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_psadbw +#define _m_psadbw(a, b) _mm_sad_pu8(a, b) + +// Divides the four single-precision, floating-point values of a and b. +// +// r0 := a0 / b0 +// r1 := a1 / b1 +// r2 := a2 / b2 +// r3 := a3 / b3 +// +// https://msdn.microsoft.com/en-us/library/edaw8147(v=vs.100).aspx +FORCE_INLINE __m128 _mm_div_ps(__m128 a, __m128 b) +{ +#if defined(__aarch64__) && !SSE2NEON_PRECISE_DIV + return vreinterpretq_m128_f32( + vdivq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +#else + float32x4_t recip = vrecpeq_f32(vreinterpretq_f32_m128(b)); + recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(b))); +#if SSE2NEON_PRECISE_DIV + // Additional Netwon-Raphson iteration for accuracy + recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(b))); +#endif + return vreinterpretq_m128_f32(vmulq_f32(vreinterpretq_f32_m128(a), recip)); +#endif +} + +// Divides the scalar single-precision floating point value of a by b. +// https://msdn.microsoft.com/en-us/library/4y73xa49(v=vs.100).aspx +FORCE_INLINE __m128 _mm_div_ss(__m128 a, __m128 b) +{ + float32_t value = + vgetq_lane_f32(vreinterpretq_f32_m128(_mm_div_ps(a, b)), 0); + return vreinterpretq_m128_f32( + vsetq_lane_f32(value, vreinterpretq_f32_m128(a), 0)); +} + +// Divide packed double-precision (64-bit) floating-point elements in a by +// packed elements in b, and store the results in dst. +// +// FOR j := 0 to 1 +// i := 64*j +// dst[i+63:i] := a[i+63:i] / b[i+63:i] +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_div_pd +FORCE_INLINE __m128d _mm_div_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vdivq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2]; + c[0] = da[0] / db[0]; + c[1] = da[1] / db[1]; + return vld1q_f32((float32_t *) c); +#endif +} + +// Divide the lower double-precision (64-bit) floating-point element in a by the +// lower double-precision (64-bit) floating-point element in b, store the result +// in the lower element of dst, and copy the upper element from a to the upper +// element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_div_sd +FORCE_INLINE __m128d _mm_div_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + float64x2_t tmp = + vdivq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b)); + return vreinterpretq_m128d_f64( + vsetq_lane_f64(vgetq_lane_f64(vreinterpretq_f64_m128d(a), 1), tmp, 1)); +#else + return _mm_move_sd(a, _mm_div_pd(a, b)); +#endif +} + +// Compute the approximate reciprocal of packed single-precision (32-bit) +// floating-point elements in a, and store the results in dst. The maximum +// relative error for this approximation is less than 1.5*2^-12. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_rcp_ps +FORCE_INLINE __m128 _mm_rcp_ps(__m128 in) +{ + float32x4_t recip = vrecpeq_f32(vreinterpretq_f32_m128(in)); + recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(in))); +#if SSE2NEON_PRECISE_DIV + // Additional Netwon-Raphson iteration for accuracy + recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(in))); +#endif + return vreinterpretq_m128_f32(recip); +} + +// Compute the approximate reciprocal of the lower single-precision (32-bit) +// floating-point element in a, store the result in the lower element of dst, +// and copy the upper 3 packed elements from a to the upper elements of dst. The +// maximum relative error for this approximation is less than 1.5*2^-12. +// +// dst[31:0] := (1.0 / a[31:0]) +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_rcp_ss +FORCE_INLINE __m128 _mm_rcp_ss(__m128 a) +{ + return _mm_move_ss(a, _mm_rcp_ps(a)); +} + +// Computes the approximations of square roots of the four single-precision, +// floating-point values of a. First computes reciprocal square roots and then +// reciprocals of the four values. +// +// r0 := sqrt(a0) +// r1 := sqrt(a1) +// r2 := sqrt(a2) +// r3 := sqrt(a3) +// +// https://msdn.microsoft.com/en-us/library/vstudio/8z67bwwk(v=vs.100).aspx +FORCE_INLINE __m128 _mm_sqrt_ps(__m128 in) +{ +#if SSE2NEON_PRECISE_SQRT + float32x4_t recip = vrsqrteq_f32(vreinterpretq_f32_m128(in)); + + // Test for vrsqrteq_f32(0) -> positive infinity case. + // Change to zero, so that s * 1/sqrt(s) result is zero too. + const uint32x4_t pos_inf = vdupq_n_u32(0x7F800000); + const uint32x4_t div_by_zero = + vceqq_u32(pos_inf, vreinterpretq_u32_f32(recip)); + recip = vreinterpretq_f32_u32( + vandq_u32(vmvnq_u32(div_by_zero), vreinterpretq_u32_f32(recip))); + + // Additional Netwon-Raphson iteration for accuracy + recip = vmulq_f32( + vrsqrtsq_f32(vmulq_f32(recip, recip), vreinterpretq_f32_m128(in)), + recip); + recip = vmulq_f32( + vrsqrtsq_f32(vmulq_f32(recip, recip), vreinterpretq_f32_m128(in)), + recip); + + // sqrt(s) = s * 1/sqrt(s) + return vreinterpretq_m128_f32(vmulq_f32(vreinterpretq_f32_m128(in), recip)); +#elif defined(__aarch64__) + return vreinterpretq_m128_f32(vsqrtq_f32(vreinterpretq_f32_m128(in))); +#else + float32x4_t recipsq = vrsqrteq_f32(vreinterpretq_f32_m128(in)); + float32x4_t sq = vrecpeq_f32(recipsq); + return vreinterpretq_m128_f32(sq); +#endif +} + +// Computes the approximation of the square root of the scalar single-precision +// floating point value of in. +// https://msdn.microsoft.com/en-us/library/ahfsc22d(v=vs.100).aspx +FORCE_INLINE __m128 _mm_sqrt_ss(__m128 in) +{ + float32_t value = + vgetq_lane_f32(vreinterpretq_f32_m128(_mm_sqrt_ps(in)), 0); + return vreinterpretq_m128_f32( + vsetq_lane_f32(value, vreinterpretq_f32_m128(in), 0)); +} + +// Computes the approximations of the reciprocal square roots of the four +// single-precision floating point values of in. +// The current precision is 1% error. +// https://msdn.microsoft.com/en-us/library/22hfsh53(v=vs.100).aspx +FORCE_INLINE __m128 _mm_rsqrt_ps(__m128 in) +{ + float32x4_t out = vrsqrteq_f32(vreinterpretq_f32_m128(in)); +#if SSE2NEON_PRECISE_SQRT + // Additional Netwon-Raphson iteration for accuracy + out = vmulq_f32( + out, vrsqrtsq_f32(vmulq_f32(vreinterpretq_f32_m128(in), out), out)); + out = vmulq_f32( + out, vrsqrtsq_f32(vmulq_f32(vreinterpretq_f32_m128(in), out), out)); +#endif + return vreinterpretq_m128_f32(out); +} + +// Compute the approximate reciprocal square root of the lower single-precision +// (32-bit) floating-point element in a, store the result in the lower element +// of dst, and copy the upper 3 packed elements from a to the upper elements of +// dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_rsqrt_ss +FORCE_INLINE __m128 _mm_rsqrt_ss(__m128 in) +{ + return vsetq_lane_f32(vgetq_lane_f32(_mm_rsqrt_ps(in), 0), in, 0); +} + +// Compare packed signed 16-bit integers in a and b, and store packed maximum +// values in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := MAX(a[i+15:i], b[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_pi16 +FORCE_INLINE __m64 _mm_max_pi16(__m64 a, __m64 b) +{ + return vreinterpret_m64_s16( + vmax_s16(vreinterpret_s16_m64(a), vreinterpret_s16_m64(b))); +} + +// Compare packed signed 16-bit integers in a and b, and store packed maximum +// values in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := MAX(a[i+15:i], b[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_pi16 +#define _m_pmaxsw(a, b) _mm_max_pi16(a, b) + +// Computes the maximums of the four single-precision, floating-point values of +// a and b. +// https://msdn.microsoft.com/en-us/library/vstudio/ff5d607a(v=vs.100).aspx +FORCE_INLINE __m128 _mm_max_ps(__m128 a, __m128 b) +{ +#if SSE2NEON_PRECISE_MINMAX + float32x4_t _a = vreinterpretq_f32_m128(a); + float32x4_t _b = vreinterpretq_f32_m128(b); + return vbslq_f32(vcltq_f32(_b, _a), _a, _b); +#else + return vreinterpretq_m128_f32( + vmaxq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +#endif +} + +// Compare packed unsigned 8-bit integers in a and b, and store packed maximum +// values in dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := MAX(a[i+7:i], b[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_pu8 +FORCE_INLINE __m64 _mm_max_pu8(__m64 a, __m64 b) +{ + return vreinterpret_m64_u8( + vmax_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); +} + +// Compare packed unsigned 8-bit integers in a and b, and store packed maximum +// values in dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := MAX(a[i+7:i], b[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_pu8 +#define _m_pmaxub(a, b) _mm_max_pu8(a, b) + +// Compare packed signed 16-bit integers in a and b, and store packed minimum +// values in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := MIN(a[i+15:i], b[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_pi16 +FORCE_INLINE __m64 _mm_min_pi16(__m64 a, __m64 b) +{ + return vreinterpret_m64_s16( + vmin_s16(vreinterpret_s16_m64(a), vreinterpret_s16_m64(b))); +} + +// Compare packed signed 16-bit integers in a and b, and store packed minimum +// values in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// dst[i+15:i] := MIN(a[i+15:i], b[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_pi16 +#define _m_pminsw(a, b) _mm_min_pi16(a, b) + +// Computes the minima of the four single-precision, floating-point values of a +// and b. +// https://msdn.microsoft.com/en-us/library/vstudio/wh13kadz(v=vs.100).aspx +FORCE_INLINE __m128 _mm_min_ps(__m128 a, __m128 b) +{ +#if SSE2NEON_PRECISE_MINMAX + float32x4_t _a = vreinterpretq_f32_m128(a); + float32x4_t _b = vreinterpretq_f32_m128(b); + return vbslq_f32(vcltq_f32(_a, _b), _a, _b); +#else + return vreinterpretq_m128_f32( + vminq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +#endif +} + +// Compare packed unsigned 8-bit integers in a and b, and store packed minimum +// values in dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := MIN(a[i+7:i], b[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_pu8 +FORCE_INLINE __m64 _mm_min_pu8(__m64 a, __m64 b) +{ + return vreinterpret_m64_u8( + vmin_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); +} + +// Compare packed unsigned 8-bit integers in a and b, and store packed minimum +// values in dst. +// +// FOR j := 0 to 7 +// i := j*8 +// dst[i+7:i] := MIN(a[i+7:i], b[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_pu8 +#define _m_pminub(a, b) _mm_min_pu8(a, b) + +// Computes the maximum of the two lower scalar single-precision floating point +// values of a and b. +// https://msdn.microsoft.com/en-us/library/s6db5esz(v=vs.100).aspx +FORCE_INLINE __m128 _mm_max_ss(__m128 a, __m128 b) +{ + float32_t value = vgetq_lane_f32(_mm_max_ps(a, b), 0); + return vreinterpretq_m128_f32( + vsetq_lane_f32(value, vreinterpretq_f32_m128(a), 0)); +} + +// Computes the minimum of the two lower scalar single-precision floating point +// values of a and b. +// https://msdn.microsoft.com/en-us/library/0a9y7xaa(v=vs.100).aspx +FORCE_INLINE __m128 _mm_min_ss(__m128 a, __m128 b) +{ + float32_t value = vgetq_lane_f32(_mm_min_ps(a, b), 0); + return vreinterpretq_m128_f32( + vsetq_lane_f32(value, vreinterpretq_f32_m128(a), 0)); +} + +// Computes the pairwise maxima of the 16 unsigned 8-bit integers from a and the +// 16 unsigned 8-bit integers from b. +// https://msdn.microsoft.com/en-us/library/st6634za(v=vs.100).aspx +FORCE_INLINE __m128i _mm_max_epu8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vmaxq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b, +// and store packed maximum values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_pd +FORCE_INLINE __m128d _mm_max_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vmaxq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) > (*(double *) &b0) ? a0 : b0; + d[1] = (*(double *) &a1) > (*(double *) &b1) ? a1 : b1; + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b, store the maximum value in the lower element of dst, and copy the upper +// element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_sd +FORCE_INLINE __m128d _mm_max_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_max_pd(a, b)); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2] = {fmax(da[0], db[0]), da[1]}; + return vld1q_f32((float32_t *) c); +#endif +} + +// Computes the pairwise minima of the 16 unsigned 8-bit integers from a and the +// 16 unsigned 8-bit integers from b. +// https://msdn.microsoft.com/ko-kr/library/17k8cf58(v=vs.100).aspxx +FORCE_INLINE __m128i _mm_min_epu8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vminq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b, +// and store packed minimum values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_pd +FORCE_INLINE __m128d _mm_min_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vminq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) < (*(double *) &b0) ? a0 : b0; + d[1] = (*(double *) &a1) < (*(double *) &b1) ? a1 : b1; + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b, store the minimum value in the lower element of dst, and copy the upper +// element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_sd +FORCE_INLINE __m128d _mm_min_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_min_pd(a, b)); +#else + double *da = (double *) &a; + double *db = (double *) &b; + double c[2] = {fmin(da[0], db[0]), da[1]}; + return vld1q_f32((float32_t *) c); +#endif +} + +// Computes the pairwise minima of the 8 signed 16-bit integers from a and the 8 +// signed 16-bit integers from b. +// https://msdn.microsoft.com/en-us/library/vstudio/6te997ew(v=vs.100).aspx +FORCE_INLINE __m128i _mm_min_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vminq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Compare packed signed 8-bit integers in a and b, and store packed maximum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_epi8 +FORCE_INLINE __m128i _mm_max_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vmaxq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Compare packed unsigned 16-bit integers in a and b, and store packed maximum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_epu16 +FORCE_INLINE __m128i _mm_max_epu16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vmaxq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); +} + +// Compare packed signed 8-bit integers in a and b, and store packed minimum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_epi8 +FORCE_INLINE __m128i _mm_min_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vminq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Compare packed unsigned 16-bit integers in a and b, and store packed minimum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_min_epu16 +FORCE_INLINE __m128i _mm_min_epu16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vminq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); +} + +// Computes the pairwise maxima of the 8 signed 16-bit integers from a and the 8 +// signed 16-bit integers from b. +// https://msdn.microsoft.com/en-us/LIBRary/3x060h7c(v=vs.100).aspx +FORCE_INLINE __m128i _mm_max_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vmaxq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// epi versions of min/max +// Computes the pariwise maximums of the four signed 32-bit integer values of a +// and b. +// +// A 128-bit parameter that can be defined with the following equations: +// r0 := (a0 > b0) ? a0 : b0 +// r1 := (a1 > b1) ? a1 : b1 +// r2 := (a2 > b2) ? a2 : b2 +// r3 := (a3 > b3) ? a3 : b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/bb514055(v=vs.100).aspx +FORCE_INLINE __m128i _mm_max_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vmaxq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Computes the pariwise minima of the four signed 32-bit integer values of a +// and b. +// +// A 128-bit parameter that can be defined with the following equations: +// r0 := (a0 < b0) ? a0 : b0 +// r1 := (a1 < b1) ? a1 : b1 +// r2 := (a2 < b2) ? a2 : b2 +// r3 := (a3 < b3) ? a3 : b3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/bb531476(v=vs.100).aspx +FORCE_INLINE __m128i _mm_min_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s32( + vminq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Compare packed unsigned 32-bit integers in a and b, and store packed maximum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_epu32 +FORCE_INLINE __m128i _mm_max_epu32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u32( + vmaxq_u32(vreinterpretq_u32_m128i(a), vreinterpretq_u32_m128i(b))); +} + +// Compare packed unsigned 32-bit integers in a and b, and store packed minimum +// values in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_max_epu32 +FORCE_INLINE __m128i _mm_min_epu32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u32( + vminq_u32(vreinterpretq_u32_m128i(a), vreinterpretq_u32_m128i(b))); +} + +// Multiply the packed unsigned 16-bit integers in a and b, producing +// intermediate 32-bit integers, and store the high 16 bits of the intermediate +// integers in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_mulhi_pu16 +FORCE_INLINE __m64 _mm_mulhi_pu16(__m64 a, __m64 b) +{ + return vreinterpret_m64_u16(vshrn_n_u32( + vmull_u16(vreinterpret_u16_m64(a), vreinterpret_u16_m64(b)), 16)); +} + +// Multiplies the 8 signed 16-bit integers from a by the 8 signed 16-bit +// integers from b. +// +// r0 := (a0 * b0)[31:16] +// r1 := (a1 * b1)[31:16] +// ... +// r7 := (a7 * b7)[31:16] +// +// https://msdn.microsoft.com/en-us/library/vstudio/59hddw1d(v=vs.100).aspx +FORCE_INLINE __m128i _mm_mulhi_epi16(__m128i a, __m128i b) +{ + /* FIXME: issue with large values because of result saturation */ + // int16x8_t ret = vqdmulhq_s16(vreinterpretq_s16_m128i(a), + // vreinterpretq_s16_m128i(b)); /* =2*a*b */ return + // vreinterpretq_m128i_s16(vshrq_n_s16(ret, 1)); + int16x4_t a3210 = vget_low_s16(vreinterpretq_s16_m128i(a)); + int16x4_t b3210 = vget_low_s16(vreinterpretq_s16_m128i(b)); + int32x4_t ab3210 = vmull_s16(a3210, b3210); /* 3333222211110000 */ + int16x4_t a7654 = vget_high_s16(vreinterpretq_s16_m128i(a)); + int16x4_t b7654 = vget_high_s16(vreinterpretq_s16_m128i(b)); + int32x4_t ab7654 = vmull_s16(a7654, b7654); /* 7777666655554444 */ + uint16x8x2_t r = + vuzpq_u16(vreinterpretq_u16_s32(ab3210), vreinterpretq_u16_s32(ab7654)); + return vreinterpretq_m128i_u16(r.val[1]); +} + +// Multiply the packed unsigned 16-bit integers in a and b, producing +// intermediate 32-bit integers, and store the high 16 bits of the intermediate +// integers in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_mulhi_epu16 +FORCE_INLINE __m128i _mm_mulhi_epu16(__m128i a, __m128i b) +{ + uint16x4_t a3210 = vget_low_u16(vreinterpretq_u16_m128i(a)); + uint16x4_t b3210 = vget_low_u16(vreinterpretq_u16_m128i(b)); + uint32x4_t ab3210 = vmull_u16(a3210, b3210); +#if defined(__aarch64__) + uint32x4_t ab7654 = + vmull_high_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b)); + uint16x8_t r = vuzp2q_u16(vreinterpretq_u16_u32(ab3210), + vreinterpretq_u16_u32(ab7654)); + return vreinterpretq_m128i_u16(r); +#else + uint16x4_t a7654 = vget_high_u16(vreinterpretq_u16_m128i(a)); + uint16x4_t b7654 = vget_high_u16(vreinterpretq_u16_m128i(b)); + uint32x4_t ab7654 = vmull_u16(a7654, b7654); + uint16x8x2_t r = + vuzpq_u16(vreinterpretq_u16_u32(ab3210), vreinterpretq_u16_u32(ab7654)); + return vreinterpretq_m128i_u16(r.val[1]); +#endif +} + +// Computes pairwise add of each argument as single-precision, floating-point +// values a and b. +// https://msdn.microsoft.com/en-us/library/yd9wecaa.aspx +FORCE_INLINE __m128 _mm_hadd_ps(__m128 a, __m128 b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128_f32( + vpaddq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +#else + float32x2_t a10 = vget_low_f32(vreinterpretq_f32_m128(a)); + float32x2_t a32 = vget_high_f32(vreinterpretq_f32_m128(a)); + float32x2_t b10 = vget_low_f32(vreinterpretq_f32_m128(b)); + float32x2_t b32 = vget_high_f32(vreinterpretq_f32_m128(b)); + return vreinterpretq_m128_f32( + vcombine_f32(vpadd_f32(a10, a32), vpadd_f32(b10, b32))); +#endif +} + +// Computes pairwise add of each argument as a 16-bit signed or unsigned integer +// values a and b. +FORCE_INLINE __m128i _mm_hadd_epi16(__m128i _a, __m128i _b) +{ + int16x8_t a = vreinterpretq_s16_m128i(_a); + int16x8_t b = vreinterpretq_s16_m128i(_b); +#if defined(__aarch64__) + return vreinterpretq_m128i_s16(vpaddq_s16(a, b)); +#else + return vreinterpretq_m128i_s16( + vcombine_s16(vpadd_s16(vget_low_s16(a), vget_high_s16(a)), + vpadd_s16(vget_low_s16(b), vget_high_s16(b)))); +#endif +} + +// Horizontally subtract adjacent pairs of double-precision (64-bit) +// floating-point elements in a and b, and pack the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_hsub_pd +FORCE_INLINE __m128d _mm_hsub_pd(__m128d _a, __m128d _b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vsubq_f64( + vuzp1q_f64(vreinterpretq_f64_m128d(_a), vreinterpretq_f64_m128d(_b)), + vuzp2q_f64(vreinterpretq_f64_m128d(_a), vreinterpretq_f64_m128d(_b)))); +#else + double *da = (double *) &_a; + double *db = (double *) &_b; + double c[] = {da[0] - da[1], db[0] - db[1]}; + return vreinterpretq_m128d_u64(vld1q_u64((uint64_t *) c)); +#endif +} + +// Horizontally substract adjacent pairs of single-precision (32-bit) +// floating-point elements in a and b, and pack the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_hsub_ps +FORCE_INLINE __m128 _mm_hsub_ps(__m128 _a, __m128 _b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128_f32(vsubq_f32( + vuzp1q_f32(vreinterpretq_f32_m128(_a), vreinterpretq_f32_m128(_b)), + vuzp2q_f32(vreinterpretq_f32_m128(_a), vreinterpretq_f32_m128(_b)))); +#else + float32x4x2_t c = + vuzpq_f32(vreinterpretq_f32_m128(_a), vreinterpretq_f32_m128(_b)); + return vreinterpretq_m128_f32(vsubq_f32(c.val[0], c.val[1])); +#endif +} + +// Horizontally add adjacent pairs of 16-bit integers in a and b, and pack the +// signed 16-bit results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_hadd_pi16 +FORCE_INLINE __m64 _mm_hadd_pi16(__m64 a, __m64 b) +{ + return vreinterpret_m64_s16( + vpadd_s16(vreinterpret_s16_m64(a), vreinterpret_s16_m64(b))); +} + +// Horizontally add adjacent pairs of 32-bit integers in a and b, and pack the +// signed 32-bit results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_hadd_pi32 +FORCE_INLINE __m64 _mm_hadd_pi32(__m64 a, __m64 b) +{ + return vreinterpret_m64_s32( + vpadd_s32(vreinterpret_s32_m64(a), vreinterpret_s32_m64(b))); +} + +// Computes pairwise difference of each argument as a 16-bit signed or unsigned +// integer values a and b. +FORCE_INLINE __m128i _mm_hsub_epi16(__m128i _a, __m128i _b) +{ + int32x4_t a = vreinterpretq_s32_m128i(_a); + int32x4_t b = vreinterpretq_s32_m128i(_b); + // Interleave using vshrn/vmovn + // [a0|a2|a4|a6|b0|b2|b4|b6] + // [a1|a3|a5|a7|b1|b3|b5|b7] + int16x8_t ab0246 = vcombine_s16(vmovn_s32(a), vmovn_s32(b)); + int16x8_t ab1357 = vcombine_s16(vshrn_n_s32(a, 16), vshrn_n_s32(b, 16)); + // Subtract + return vreinterpretq_m128i_s16(vsubq_s16(ab0246, ab1357)); +} + +// Computes saturated pairwise sub of each argument as a 16-bit signed +// integer values a and b. +FORCE_INLINE __m128i _mm_hadds_epi16(__m128i _a, __m128i _b) +{ +#if defined(__aarch64__) + int16x8_t a = vreinterpretq_s16_m128i(_a); + int16x8_t b = vreinterpretq_s16_m128i(_b); + return vreinterpretq_s64_s16( + vqaddq_s16(vuzp1q_s16(a, b), vuzp2q_s16(a, b))); +#else + int32x4_t a = vreinterpretq_s32_m128i(_a); + int32x4_t b = vreinterpretq_s32_m128i(_b); + // Interleave using vshrn/vmovn + // [a0|a2|a4|a6|b0|b2|b4|b6] + // [a1|a3|a5|a7|b1|b3|b5|b7] + int16x8_t ab0246 = vcombine_s16(vmovn_s32(a), vmovn_s32(b)); + int16x8_t ab1357 = vcombine_s16(vshrn_n_s32(a, 16), vshrn_n_s32(b, 16)); + // Saturated add + return vreinterpretq_m128i_s16(vqaddq_s16(ab0246, ab1357)); +#endif +} + +// Computes saturated pairwise difference of each argument as a 16-bit signed +// integer values a and b. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_hsubs_epi16 +FORCE_INLINE __m128i _mm_hsubs_epi16(__m128i _a, __m128i _b) +{ +#if defined(__aarch64__) + int16x8_t a = vreinterpretq_s16_m128i(_a); + int16x8_t b = vreinterpretq_s16_m128i(_b); + return vreinterpretq_s64_s16( + vqsubq_s16(vuzp1q_s16(a, b), vuzp2q_s16(a, b))); +#else + int32x4_t a = vreinterpretq_s32_m128i(_a); + int32x4_t b = vreinterpretq_s32_m128i(_b); + // Interleave using vshrn/vmovn + // [a0|a2|a4|a6|b0|b2|b4|b6] + // [a1|a3|a5|a7|b1|b3|b5|b7] + int16x8_t ab0246 = vcombine_s16(vmovn_s32(a), vmovn_s32(b)); + int16x8_t ab1357 = vcombine_s16(vshrn_n_s32(a, 16), vshrn_n_s32(b, 16)); + // Saturated subtract + return vreinterpretq_m128i_s16(vqsubq_s16(ab0246, ab1357)); +#endif +} + +// Computes pairwise add of each argument as a 32-bit signed or unsigned integer +// values a and b. +FORCE_INLINE __m128i _mm_hadd_epi32(__m128i _a, __m128i _b) +{ + int32x4_t a = vreinterpretq_s32_m128i(_a); + int32x4_t b = vreinterpretq_s32_m128i(_b); + return vreinterpretq_m128i_s32( + vcombine_s32(vpadd_s32(vget_low_s32(a), vget_high_s32(a)), + vpadd_s32(vget_low_s32(b), vget_high_s32(b)))); +} + +// Computes pairwise difference of each argument as a 32-bit signed or unsigned +// integer values a and b. +FORCE_INLINE __m128i _mm_hsub_epi32(__m128i _a, __m128i _b) +{ + int64x2_t a = vreinterpretq_s64_m128i(_a); + int64x2_t b = vreinterpretq_s64_m128i(_b); + // Interleave using vshrn/vmovn + // [a0|a2|b0|b2] + // [a1|a2|b1|b3] + int32x4_t ab02 = vcombine_s32(vmovn_s64(a), vmovn_s64(b)); + int32x4_t ab13 = vcombine_s32(vshrn_n_s64(a, 32), vshrn_n_s64(b, 32)); + // Subtract + return vreinterpretq_m128i_s32(vsubq_s32(ab02, ab13)); +} + +// Kahan summation for accurate summation of floating-point numbers. +// http://blog.zachbjornson.com/2019/08/11/fast-float-summation.html +FORCE_INLINE void _sse2neon_kadd_f32(float *sum, float *c, float y) +{ + y -= *c; + float t = *sum + y; + *c = (t - *sum) - y; + *sum = t; +} + +// Conditionally multiply the packed single-precision (32-bit) floating-point +// elements in a and b using the high 4 bits in imm8, sum the four products, +// and conditionally store the sum in dst using the low 4 bits of imm. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_dp_ps +FORCE_INLINE __m128 _mm_dp_ps(__m128 a, __m128 b, const int imm) +{ +#if defined(__aarch64__) + /* shortcuts */ + if (imm == 0xFF) { + return _mm_set1_ps(vaddvq_f32(_mm_mul_ps(a, b))); + } + if (imm == 0x7F) { + float32x4_t m = _mm_mul_ps(a, b); + m[3] = 0; + return _mm_set1_ps(vaddvq_f32(m)); + } +#endif + + float s = 0, c = 0; + float32x4_t f32a = vreinterpretq_f32_m128(a); + float32x4_t f32b = vreinterpretq_f32_m128(b); + + /* To improve the accuracy of floating-point summation, Kahan algorithm + * is used for each operation. + */ + if (imm & (1 << 4)) + _sse2neon_kadd_f32(&s, &c, f32a[0] * f32b[0]); + if (imm & (1 << 5)) + _sse2neon_kadd_f32(&s, &c, f32a[1] * f32b[1]); + if (imm & (1 << 6)) + _sse2neon_kadd_f32(&s, &c, f32a[2] * f32b[2]); + if (imm & (1 << 7)) + _sse2neon_kadd_f32(&s, &c, f32a[3] * f32b[3]); + s += c; + + float32x4_t res = { + (imm & 0x1) ? s : 0, + (imm & 0x2) ? s : 0, + (imm & 0x4) ? s : 0, + (imm & 0x8) ? s : 0, + }; + return vreinterpretq_m128_f32(res); +} + +/* Compare operations */ + +// Compares for less than +// https://msdn.microsoft.com/en-us/library/vstudio/f330yhc8(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cmplt_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_u32( + vcltq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Compares for less than +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/fy94wye7(v=vs.100) +FORCE_INLINE __m128 _mm_cmplt_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmplt_ps(a, b)); +} + +// Compares for greater than. +// +// r0 := (a0 > b0) ? 0xffffffff : 0x0 +// r1 := (a1 > b1) ? 0xffffffff : 0x0 +// r2 := (a2 > b2) ? 0xffffffff : 0x0 +// r3 := (a3 > b3) ? 0xffffffff : 0x0 +// +// https://msdn.microsoft.com/en-us/library/vstudio/11dy102s(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cmpgt_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_u32( + vcgtq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Compares for greater than. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/1xyyyy9e(v=vs.100) +FORCE_INLINE __m128 _mm_cmpgt_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmpgt_ps(a, b)); +} + +// Compares for greater than or equal. +// https://msdn.microsoft.com/en-us/library/vstudio/fs813y2t(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cmpge_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_u32( + vcgeq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Compares for greater than or equal. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/kesh3ddc(v=vs.100) +FORCE_INLINE __m128 _mm_cmpge_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmpge_ps(a, b)); +} + +// Compares for less than or equal. +// +// r0 := (a0 <= b0) ? 0xffffffff : 0x0 +// r1 := (a1 <= b1) ? 0xffffffff : 0x0 +// r2 := (a2 <= b2) ? 0xffffffff : 0x0 +// r3 := (a3 <= b3) ? 0xffffffff : 0x0 +// +// https://msdn.microsoft.com/en-us/library/vstudio/1s75w83z(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cmple_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_u32( + vcleq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Compares for less than or equal. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/a7x0hbhw(v=vs.100) +FORCE_INLINE __m128 _mm_cmple_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmple_ps(a, b)); +} + +// Compares for equality. +// https://msdn.microsoft.com/en-us/library/vstudio/36aectz5(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cmpeq_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_u32( + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +} + +// Compares for equality. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/k423z28e(v=vs.100) +FORCE_INLINE __m128 _mm_cmpeq_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmpeq_ps(a, b)); +} + +// Compares for inequality. +// https://msdn.microsoft.com/en-us/library/sf44thbx(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cmpneq_ps(__m128 a, __m128 b) +{ + return vreinterpretq_m128_u32(vmvnq_u32( + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)))); +} + +// Compares for inequality. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/ekya8fh4(v=vs.100) +FORCE_INLINE __m128 _mm_cmpneq_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmpneq_ps(a, b)); +} + +// Compares for not greater than or equal. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/wsexys62(v=vs.100) +FORCE_INLINE __m128 _mm_cmpnge_ps(__m128 a, __m128 b) +{ + return _mm_cmplt_ps(a, b); +} + +// Compares for not greater than or equal. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/fk2y80s8(v=vs.100) +FORCE_INLINE __m128 _mm_cmpnge_ss(__m128 a, __m128 b) +{ + return _mm_cmplt_ss(a, b); +} + +// Compares for not greater than. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/d0xh7w0s(v=vs.100) +FORCE_INLINE __m128 _mm_cmpngt_ps(__m128 a, __m128 b) +{ + return _mm_cmple_ps(a, b); +} + +// Compares for not greater than. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/z7x9ydwh(v=vs.100) +FORCE_INLINE __m128 _mm_cmpngt_ss(__m128 a, __m128 b) +{ + return _mm_cmple_ss(a, b); +} + +// Compares for not less than or equal. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/6a330kxw(v=vs.100) +FORCE_INLINE __m128 _mm_cmpnle_ps(__m128 a, __m128 b) +{ + return _mm_cmpgt_ps(a, b); +} + +// Compares for not less than or equal. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/z7x9ydwh(v=vs.100) +FORCE_INLINE __m128 _mm_cmpnle_ss(__m128 a, __m128 b) +{ + return _mm_cmpgt_ss(a, b); +} + +// Compares for not less than. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/4686bbdw(v=vs.100) +FORCE_INLINE __m128 _mm_cmpnlt_ps(__m128 a, __m128 b) +{ + return _mm_cmpge_ps(a, b); +} + +// Compares for not less than. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/56b9z2wf(v=vs.100) +FORCE_INLINE __m128 _mm_cmpnlt_ss(__m128 a, __m128 b) +{ + return _mm_cmpge_ss(a, b); +} + +// Compares the 16 signed or unsigned 8-bit integers in a and the 16 signed or +// unsigned 8-bit integers in b for equality. +// https://msdn.microsoft.com/en-us/library/windows/desktop/bz5xk21a(v=vs.90).aspx +FORCE_INLINE __m128i _mm_cmpeq_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vceqq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for equality, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpeq_pd +FORCE_INLINE __m128d _mm_cmpeq_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_u64( + vceqq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + // (a == b) -> (a_lo == b_lo) && (a_hi == b_hi) + uint32x4_t cmp = + vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(b)); + uint32x4_t swapped = vrev64q_u32(cmp); + return vreinterpretq_m128d_u32(vandq_u32(cmp, swapped)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for equality, store the result in the lower element of dst, and copy the +// upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpeq_sd +FORCE_INLINE __m128d _mm_cmpeq_sd(__m128d a, __m128d b) +{ + return _mm_move_sd(a, _mm_cmpeq_pd(a, b)); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for greater-than-or-equal, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpge_pd +FORCE_INLINE __m128d _mm_cmpge_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_u64( + vcgeq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) >= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = (*(double *) &a1) >= (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for greater-than-or-equal, store the result in the lower element of dst, +// and copy the upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpge_sd +FORCE_INLINE __m128d _mm_cmpge_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_cmpge_pd(a, b)); +#else + // expand "_mm_cmpge_pd()" to reduce unnecessary operations + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) >= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = a1; + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compares the 8 signed or unsigned 16-bit integers in a and the 8 signed or +// unsigned 16-bit integers in b for equality. +// https://msdn.microsoft.com/en-us/library/2ay060te(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cmpeq_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vceqq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Compare packed 32-bit integers in a and b for equality, and store the results +// in dst +FORCE_INLINE __m128i _mm_cmpeq_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u32( + vceqq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Compare packed 64-bit integers in a and b for equality, and store the results +// in dst +FORCE_INLINE __m128i _mm_cmpeq_epi64(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_u64( + vceqq_u64(vreinterpretq_u64_m128i(a), vreinterpretq_u64_m128i(b))); +#else + // ARMv7 lacks vceqq_u64 + // (a == b) -> (a_lo == b_lo) && (a_hi == b_hi) + uint32x4_t cmp = + vceqq_u32(vreinterpretq_u32_m128i(a), vreinterpretq_u32_m128i(b)); + uint32x4_t swapped = vrev64q_u32(cmp); + return vreinterpretq_m128i_u32(vandq_u32(cmp, swapped)); +#endif +} + +// Compares the 16 signed 8-bit integers in a and the 16 signed 8-bit integers +// in b for lesser than. +// https://msdn.microsoft.com/en-us/library/windows/desktop/9s46csht(v=vs.90).aspx +FORCE_INLINE __m128i _mm_cmplt_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vcltq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for less-than, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmplt_pd +FORCE_INLINE __m128d _mm_cmplt_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_u64( + vcltq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) < (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = (*(double *) &a1) < (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for less-than, store the result in the lower element of dst, and copy the +// upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmplt_sd +FORCE_INLINE __m128d _mm_cmplt_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_cmplt_pd(a, b)); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) < (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = a1; + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for not-equal, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpneq_pd +FORCE_INLINE __m128d _mm_cmpneq_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_s32(vmvnq_s32(vreinterpretq_s32_u64( + vceqq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))))); +#else + // (a == b) -> (a_lo == b_lo) && (a_hi == b_hi) + uint32x4_t cmp = + vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(b)); + uint32x4_t swapped = vrev64q_u32(cmp); + return vreinterpretq_m128d_u32(vmvnq_u32(vandq_u32(cmp, swapped))); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for not-equal, store the result in the lower element of dst, and copy the +// upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpneq_sd +FORCE_INLINE __m128d _mm_cmpneq_sd(__m128d a, __m128d b) +{ + return _mm_move_sd(a, _mm_cmpneq_pd(a, b)); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for not-greater-than-or-equal, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpnge_pd +FORCE_INLINE __m128d _mm_cmpnge_pd(__m128d a, __m128d b) +{ + return _mm_cmplt_pd(a, b); +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for not-greater-than-or-equal, store the result in the lower element of +// dst, and copy the upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpnge_sd +FORCE_INLINE __m128d _mm_cmpnge_sd(__m128d a, __m128d b) +{ + return _mm_cmplt_sd(a, b); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for not-greater-than, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_cmpngt_pd +#define _mm_cmpngt_pd(a, b) _mm_cmple_pd(a, b) + +// Compare the lower double-precision (64-bit) floating-point element in a and b +// for equality, and return the boolean result (0 or 1). +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_comieq_sd +FORCE_INLINE int _mm_comieq_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return !!vgetq_lane_u64(vceqq_f64(a, b), 0); +#else + uint32x4_t a_not_nan = + vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(a)); + uint32x4_t b_not_nan = + vceqq_u32(vreinterpretq_u32_m128d(b), vreinterpretq_u32_m128d(b)); + uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); + uint32x4_t a_eq_b = + vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(b)); + uint64x2_t and_results = vandq_u64(vreinterpretq_u64_u32(a_and_b_not_nan), + vreinterpretq_u64_u32(a_eq_b)); + return !!vgetq_lane_u64(and_results, 0); +#endif +} + +// Compares the 16 signed 8-bit integers in a and the 16 signed 8-bit integers +// in b for greater than. +// +// r0 := (a0 > b0) ? 0xff : 0x0 +// r1 := (a1 > b1) ? 0xff : 0x0 +// ... +// r15 := (a15 > b15) ? 0xff : 0x0 +// +// https://msdn.microsoft.com/zh-tw/library/wf45zt2b(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cmpgt_epi8(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u8( + vcgtq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for greater-than, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpgt_pd +FORCE_INLINE __m128d _mm_cmpgt_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_u64( + vcgtq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) > (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = (*(double *) &a1) > (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for greater-than, store the result in the lower element of dst, and copy +// the upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmpgt_sd +FORCE_INLINE __m128d _mm_cmpgt_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_cmpgt_pd(a, b)); +#else + // expand "_mm_cmpge_pd()" to reduce unnecessary operations + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) > (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = a1; + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare packed double-precision (64-bit) floating-point elements in a and b +// for less-than-or-equal, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmple_pd +FORCE_INLINE __m128d _mm_cmple_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_u64( + vcleq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) <= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = (*(double *) &a1) <= (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compare the lower double-precision (64-bit) floating-point elements in a and +// b for less-than-or-equal, store the result in the lower element of dst, and +// copy the upper element from a to the upper element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cmple_sd +FORCE_INLINE __m128d _mm_cmple_sd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return _mm_move_sd(a, _mm_cmple_pd(a, b)); +#else + // expand "_mm_cmpge_pd()" to reduce unnecessary operations + uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); + uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); + uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); + uint64_t d[2]; + d[0] = (*(double *) &a0) <= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); + d[1] = a1; + + return vreinterpretq_m128d_u64(vld1q_u64(d)); +#endif +} + +// Compares the 8 signed 16-bit integers in a and the 8 signed 16-bit integers +// in b for less than. +// +// r0 := (a0 < b0) ? 0xffff : 0x0 +// r1 := (a1 < b1) ? 0xffff : 0x0 +// ... +// r7 := (a7 < b7) ? 0xffff : 0x0 +// +// https://technet.microsoft.com/en-us/library/t863edb2(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cmplt_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vcltq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + +// Compares the 8 signed 16-bit integers in a and the 8 signed 16-bit integers +// in b for greater than. +// +// r0 := (a0 > b0) ? 0xffff : 0x0 +// r1 := (a1 > b1) ? 0xffff : 0x0 +// ... +// r7 := (a7 > b7) ? 0xffff : 0x0 +// +// https://technet.microsoft.com/en-us/library/xd43yfsa(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cmpgt_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vcgtq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +} + + +// Compares the 4 signed 32-bit integers in a and the 4 signed 32-bit integers +// in b for less than. +// https://msdn.microsoft.com/en-us/library/vstudio/4ak0bf5d(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cmplt_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u32( + vcltq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Compares the 4 signed 32-bit integers in a and the 4 signed 32-bit integers +// in b for greater than. +// https://msdn.microsoft.com/en-us/library/vstudio/1s9f2z0y(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cmpgt_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u32( + vcgtq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +} + +// Compares the 2 signed 64-bit integers in a and the 2 signed 64-bit integers +// in b for greater than. +FORCE_INLINE __m128i _mm_cmpgt_epi64(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_u64( + vcgtq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); +#else + return vreinterpretq_m128i_s64(vshrq_n_s64( + vqsubq_s64(vreinterpretq_s64_m128i(b), vreinterpretq_s64_m128i(a)), + 63)); +#endif +} + +// Compares the four 32-bit floats in a and b to check if any values are NaN. +// Ordered compare between each value returns true for "orderable" and false for +// "not orderable" (NaN). +// https://msdn.microsoft.com/en-us/library/vstudio/0h9w00fx(v=vs.100).aspx see +// also: +// http://stackoverflow.com/questions/8627331/what-does-ordered-unordered-comparison-mean +// http://stackoverflow.com/questions/29349621/neon-isnanval-intrinsics +FORCE_INLINE __m128 _mm_cmpord_ps(__m128 a, __m128 b) +{ + // Note: NEON does not have ordered compare builtin + // Need to compare a eq a and b eq b to check for NaN + // Do AND of results to get final + uint32x4_t ceqaa = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t ceqbb = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + return vreinterpretq_m128_u32(vandq_u32(ceqaa, ceqbb)); +} + +// Compares for ordered. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/343t62da(v=vs.100) +FORCE_INLINE __m128 _mm_cmpord_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmpord_ps(a, b)); +} + +// Compares for unordered. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/khy6fk1t(v=vs.100) +FORCE_INLINE __m128 _mm_cmpunord_ps(__m128 a, __m128 b) +{ + uint32x4_t f32a = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t f32b = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + return vreinterpretq_m128_u32(vmvnq_u32(vandq_u32(f32a, f32b))); +} + +// Compares for unordered. +// https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/2as2387b(v=vs.100) +FORCE_INLINE __m128 _mm_cmpunord_ss(__m128 a, __m128 b) +{ + return _mm_move_ss(a, _mm_cmpunord_ps(a, b)); +} + +// Compares the lower single-precision floating point scalar values of a and b +// using a less than operation. : +// https://msdn.microsoft.com/en-us/library/2kwe606b(v=vs.90).aspx Important +// note!! The documentation on MSDN is incorrect! If either of the values is a +// NAN the docs say you will get a one, but in fact, it will return a zero!! +FORCE_INLINE int _mm_comilt_ss(__m128 a, __m128 b) +{ + uint32x4_t a_not_nan = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t b_not_nan = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); + uint32x4_t a_lt_b = + vcltq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); + return (vgetq_lane_u32(vandq_u32(a_and_b_not_nan, a_lt_b), 0) != 0) ? 1 : 0; +} + +// Compares the lower single-precision floating point scalar values of a and b +// using a greater than operation. : +// https://msdn.microsoft.com/en-us/library/b0738e0t(v=vs.100).aspx +FORCE_INLINE int _mm_comigt_ss(__m128 a, __m128 b) +{ + // return vgetq_lane_u32(vcgtq_f32(vreinterpretq_f32_m128(a), + // vreinterpretq_f32_m128(b)), 0); + uint32x4_t a_not_nan = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t b_not_nan = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); + uint32x4_t a_gt_b = + vcgtq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); + return (vgetq_lane_u32(vandq_u32(a_and_b_not_nan, a_gt_b), 0) != 0) ? 1 : 0; +} + +// Compares the lower single-precision floating point scalar values of a and b +// using a less than or equal operation. : +// https://msdn.microsoft.com/en-us/library/1w4t7c57(v=vs.90).aspx +FORCE_INLINE int _mm_comile_ss(__m128 a, __m128 b) +{ + // return vgetq_lane_u32(vcleq_f32(vreinterpretq_f32_m128(a), + // vreinterpretq_f32_m128(b)), 0); + uint32x4_t a_not_nan = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t b_not_nan = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); + uint32x4_t a_le_b = + vcleq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); + return (vgetq_lane_u32(vandq_u32(a_and_b_not_nan, a_le_b), 0) != 0) ? 1 : 0; +} + +// Compares the lower single-precision floating point scalar values of a and b +// using a greater than or equal operation. : +// https://msdn.microsoft.com/en-us/library/8t80des6(v=vs.100).aspx +FORCE_INLINE int _mm_comige_ss(__m128 a, __m128 b) +{ + // return vgetq_lane_u32(vcgeq_f32(vreinterpretq_f32_m128(a), + // vreinterpretq_f32_m128(b)), 0); + uint32x4_t a_not_nan = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t b_not_nan = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); + uint32x4_t a_ge_b = + vcgeq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); + return (vgetq_lane_u32(vandq_u32(a_and_b_not_nan, a_ge_b), 0) != 0) ? 1 : 0; +} + +// Compares the lower single-precision floating point scalar values of a and b +// using an equality operation. : +// https://msdn.microsoft.com/en-us/library/93yx2h2b(v=vs.100).aspx +FORCE_INLINE int _mm_comieq_ss(__m128 a, __m128 b) +{ + // return vgetq_lane_u32(vceqq_f32(vreinterpretq_f32_m128(a), + // vreinterpretq_f32_m128(b)), 0); + uint32x4_t a_not_nan = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t b_not_nan = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); + uint32x4_t a_eq_b = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); + return (vgetq_lane_u32(vandq_u32(a_and_b_not_nan, a_eq_b), 0) != 0) ? 1 : 0; +} + +// Compares the lower single-precision floating point scalar values of a and b +// using an inequality operation. : +// https://msdn.microsoft.com/en-us/library/bafh5e0a(v=vs.90).aspx +FORCE_INLINE int _mm_comineq_ss(__m128 a, __m128 b) +{ + // return !vgetq_lane_u32(vceqq_f32(vreinterpretq_f32_m128(a), + // vreinterpretq_f32_m128(b)), 0); + uint32x4_t a_not_nan = + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); + uint32x4_t b_not_nan = + vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); + uint32x4_t a_or_b_nan = vmvnq_u32(vandq_u32(a_not_nan, b_not_nan)); + uint32x4_t a_neq_b = vmvnq_u32( + vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); + return (vgetq_lane_u32(vorrq_u32(a_or_b_nan, a_neq_b), 0) != 0) ? 1 : 0; +} + +// according to the documentation, these intrinsics behave the same as the +// non-'u' versions. We'll just alias them here. +#define _mm_ucomieq_ss _mm_comieq_ss +#define _mm_ucomige_ss _mm_comige_ss +#define _mm_ucomigt_ss _mm_comigt_ss +#define _mm_ucomile_ss _mm_comile_ss +#define _mm_ucomilt_ss _mm_comilt_ss +#define _mm_ucomineq_ss _mm_comineq_ss + +/* Conversions */ + +// Convert packed signed 32-bit integers in b to packed single-precision +// (32-bit) floating-point elements, store the results in the lower 2 elements +// of dst, and copy the upper 2 packed elements from a to the upper elements of +// dst. +// +// dst[31:0] := Convert_Int32_To_FP32(b[31:0]) +// dst[63:32] := Convert_Int32_To_FP32(b[63:32]) +// dst[95:64] := a[95:64] +// dst[127:96] := a[127:96] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvt_pi2ps +FORCE_INLINE __m128 _mm_cvt_pi2ps(__m128 a, __m64 b) +{ + return vreinterpretq_m128_f32( + vcombine_f32(vcvt_f32_s32(vreinterpret_s32_m64(b)), + vget_high_f32(vreinterpretq_f32_m128(a)))); +} + +// Convert the signed 32-bit integer b to a single-precision (32-bit) +// floating-point element, store the result in the lower element of dst, and +// copy the upper 3 packed elements from a to the upper elements of dst. +// +// dst[31:0] := Convert_Int32_To_FP32(b[31:0]) +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvt_si2ss +FORCE_INLINE __m128 _mm_cvt_si2ss(__m128 a, int b) +{ + return vreinterpretq_m128_f32( + vsetq_lane_f32((float) b, vreinterpretq_f32_m128(a), 0)); +} + +// Convert the signed 32-bit integer b to a single-precision (32-bit) +// floating-point element, store the result in the lower element of dst, and +// copy the upper 3 packed elements from a to the upper elements of dst. +// +// dst[31:0] := Convert_Int32_To_FP32(b[31:0]) +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtsi32_ss +#define _mm_cvtsi32_ss(a, b) _mm_cvt_si2ss(a, b) + +// Convert the signed 64-bit integer b to a single-precision (32-bit) +// floating-point element, store the result in the lower element of dst, and +// copy the upper 3 packed elements from a to the upper elements of dst. +// +// dst[31:0] := Convert_Int64_To_FP32(b[63:0]) +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtsi64_ss +FORCE_INLINE __m128 _mm_cvtsi64_ss(__m128 a, int64_t b) +{ + return vreinterpretq_m128_f32( + vsetq_lane_f32((float) b, vreinterpretq_f32_m128(a), 0)); +} + +// Convert the lower single-precision (32-bit) floating-point element in a to a +// 32-bit integer, and store the result in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvt_ss2si +FORCE_INLINE int _mm_cvt_ss2si(__m128 a) +{ +#if defined(__aarch64__) + return vgetq_lane_s32(vcvtnq_s32_f32(vreinterpretq_f32_m128(a)), 0); +#else + float32_t data = vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); + float32_t diff = data - floor(data); + if (diff > 0.5) + return (int32_t) ceil(data); + if (unlikely(diff == 0.5)) { + int32_t f = (int32_t) floor(data); + int32_t c = (int32_t) ceil(data); + return c & 1 ? f : c; + } + return (int32_t) floor(data); +#endif +} + +// Convert packed 16-bit integers in a to packed single-precision (32-bit) +// floating-point elements, and store the results in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// m := j*32 +// dst[m+31:m] := Convert_Int16_To_FP32(a[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpi16_ps +FORCE_INLINE __m128 _mm_cvtpi16_ps(__m64 a) +{ + return vreinterpretq_m128_f32( + vcvtq_f32_s32(vmovl_s16(vreinterpret_s16_m64(a)))); +} + +// Convert packed 32-bit integers in b to packed single-precision (32-bit) +// floating-point elements, store the results in the lower 2 elements of dst, +// and copy the upper 2 packed elements from a to the upper elements of dst. +// +// dst[31:0] := Convert_Int32_To_FP32(b[31:0]) +// dst[63:32] := Convert_Int32_To_FP32(b[63:32]) +// dst[95:64] := a[95:64] +// dst[127:96] := a[127:96] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpi32_ps +FORCE_INLINE __m128 _mm_cvtpi32_ps(__m128 a, __m64 b) +{ + return vreinterpretq_m128_f32( + vcombine_f32(vcvt_f32_s32(vreinterpret_s32_m64(b)), + vget_high_f32(vreinterpretq_f32_m128(a)))); +} + +// Convert packed signed 32-bit integers in a to packed single-precision +// (32-bit) floating-point elements, store the results in the lower 2 elements +// of dst, then covert the packed signed 32-bit integers in b to +// single-precision (32-bit) floating-point element, and store the results in +// the upper 2 elements of dst. +// +// dst[31:0] := Convert_Int32_To_FP32(a[31:0]) +// dst[63:32] := Convert_Int32_To_FP32(a[63:32]) +// dst[95:64] := Convert_Int32_To_FP32(b[31:0]) +// dst[127:96] := Convert_Int32_To_FP32(b[63:32]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpi32x2_ps +FORCE_INLINE __m128 _mm_cvtpi32x2_ps(__m64 a, __m64 b) +{ + return vreinterpretq_m128_f32(vcvtq_f32_s32( + vcombine_s32(vreinterpret_s32_m64(a), vreinterpret_s32_m64(b)))); +} + +// Convert the lower packed 8-bit integers in a to packed single-precision +// (32-bit) floating-point elements, and store the results in dst. +// +// FOR j := 0 to 3 +// i := j*8 +// m := j*32 +// dst[m+31:m] := Convert_Int8_To_FP32(a[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpi8_ps +FORCE_INLINE __m128 _mm_cvtpi8_ps(__m64 a) +{ + return vreinterpretq_m128_f32(vcvtq_f32_s32( + vmovl_s16(vget_low_s16(vmovl_s8(vreinterpret_s8_m64(a)))))); +} + +// Convert packed unsigned 16-bit integers in a to packed single-precision +// (32-bit) floating-point elements, and store the results in dst. +// +// FOR j := 0 to 3 +// i := j*16 +// m := j*32 +// dst[m+31:m] := Convert_UInt16_To_FP32(a[i+15:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpu16_ps +FORCE_INLINE __m128 _mm_cvtpu16_ps(__m64 a) +{ + return vreinterpretq_m128_f32( + vcvtq_f32_u32(vmovl_u16(vreinterpret_u16_m64(a)))); +} + +// Convert the lower packed unsigned 8-bit integers in a to packed +// single-precision (32-bit) floating-point elements, and store the results in +// dst. +// +// FOR j := 0 to 3 +// i := j*8 +// m := j*32 +// dst[m+31:m] := Convert_UInt8_To_FP32(a[i+7:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpu8_ps +FORCE_INLINE __m128 _mm_cvtpu8_ps(__m64 a) +{ + return vreinterpretq_m128_f32(vcvtq_f32_u32( + vmovl_u16(vget_low_u16(vmovl_u8(vreinterpret_u8_m64(a)))))); +} + +// Converts the four single-precision, floating-point values of a to signed +// 32-bit integer values using truncate. +// https://msdn.microsoft.com/en-us/library/vstudio/1h005y6x(v=vs.100).aspx +FORCE_INLINE __m128i _mm_cvttps_epi32(__m128 a) +{ + return vreinterpretq_m128i_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a))); +} + +// Convert the lower double-precision (64-bit) floating-point element in a to a +// 64-bit integer with truncation, and store the result in dst. +// +// dst[63:0] := Convert_FP64_To_Int64_Truncate(a[63:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvttsd_si64 +FORCE_INLINE int64_t _mm_cvttsd_si64(__m128d a) +{ +#if defined(__aarch64__) + return vgetq_lane_s64(vcvtq_s64_f64(vreinterpretq_f64_m128d(a)), 0); +#else + double ret = *((double *) &a); + return (int64_t) ret; +#endif +} + +// Convert the lower double-precision (64-bit) floating-point element in a to a +// 64-bit integer with truncation, and store the result in dst. +// +// dst[63:0] := Convert_FP64_To_Int64_Truncate(a[63:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvttsd_si64x +#define _mm_cvttsd_si64x(a) _mm_cvttsd_si64(a) + +// Converts the four signed 32-bit integer values of a to single-precision, +// floating-point values +// https://msdn.microsoft.com/en-us/library/vstudio/36bwxcx5(v=vs.100).aspx +FORCE_INLINE __m128 _mm_cvtepi32_ps(__m128i a) +{ + return vreinterpretq_m128_f32(vcvtq_f32_s32(vreinterpretq_s32_m128i(a))); +} + +// Convert packed signed 32-bit integers in a to packed double-precision +// (64-bit) floating-point elements, and store the results in dst. +// +// FOR j := 0 to 1 +// i := j*32 +// m := j*64 +// dst[m+63:m] := Convert_Int32_To_FP64(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtepi32_pd +FORCE_INLINE __m128d _mm_cvtepi32_pd(__m128i a) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vcvtq_f64_s64(vmovl_s32(vget_low_s32(vreinterpretq_s32_m128i(a))))); +#else + double a0 = (double) vgetq_lane_s32(vreinterpretq_s32_m128i(a), 0); + double a1 = (double) vgetq_lane_s32(vreinterpretq_s32_m128i(a), 1); + return _mm_set_pd(a1, a0); +#endif +} + +// Convert packed signed 32-bit integers in a to packed double-precision +// (64-bit) floating-point elements, and store the results in dst. +// +// FOR j := 0 to 1 +// i := j*32 +// m := j*64 +// dst[m+63:m] := Convert_Int32_To_FP64(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpi32_pd +FORCE_INLINE __m128d _mm_cvtpi32_pd(__m64 a) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vcvtq_f64_s64(vmovl_s32(vreinterpret_s32_m64(a)))); +#else + double a0 = (double) vget_lane_s32(vreinterpret_s32_m64(a), 0); + double a1 = (double) vget_lane_s32(vreinterpret_s32_m64(a), 1); + return _mm_set_pd(a1, a0); +#endif +} + +// Converts the four unsigned 8-bit integers in the lower 16 bits to four +// unsigned 32-bit integers. +FORCE_INLINE __m128i _mm_cvtepu8_epi16(__m128i a) +{ + uint8x16_t u8x16 = vreinterpretq_u8_m128i(a); /* xxxx xxxx xxxx DCBA */ + uint16x8_t u16x8 = vmovl_u8(vget_low_u8(u8x16)); /* 0x0x 0x0x 0D0C 0B0A */ + return vreinterpretq_m128i_u16(u16x8); +} + +// Converts the four unsigned 8-bit integers in the lower 32 bits to four +// unsigned 32-bit integers. +// https://msdn.microsoft.com/en-us/library/bb531467%28v=vs.100%29.aspx +FORCE_INLINE __m128i _mm_cvtepu8_epi32(__m128i a) +{ + uint8x16_t u8x16 = vreinterpretq_u8_m128i(a); /* xxxx xxxx xxxx DCBA */ + uint16x8_t u16x8 = vmovl_u8(vget_low_u8(u8x16)); /* 0x0x 0x0x 0D0C 0B0A */ + uint32x4_t u32x4 = vmovl_u16(vget_low_u16(u16x8)); /* 000D 000C 000B 000A */ + return vreinterpretq_m128i_u32(u32x4); +} + +// Converts the two unsigned 8-bit integers in the lower 16 bits to two +// unsigned 64-bit integers. +FORCE_INLINE __m128i _mm_cvtepu8_epi64(__m128i a) +{ + uint8x16_t u8x16 = vreinterpretq_u8_m128i(a); /* xxxx xxxx xxxx xxBA */ + uint16x8_t u16x8 = vmovl_u8(vget_low_u8(u8x16)); /* 0x0x 0x0x 0x0x 0B0A */ + uint32x4_t u32x4 = vmovl_u16(vget_low_u16(u16x8)); /* 000x 000x 000B 000A */ + uint64x2_t u64x2 = vmovl_u32(vget_low_u32(u32x4)); /* 0000 000B 0000 000A */ + return vreinterpretq_m128i_u64(u64x2); +} + +// Converts the four unsigned 8-bit integers in the lower 16 bits to four +// unsigned 32-bit integers. +FORCE_INLINE __m128i _mm_cvtepi8_epi16(__m128i a) +{ + int8x16_t s8x16 = vreinterpretq_s8_m128i(a); /* xxxx xxxx xxxx DCBA */ + int16x8_t s16x8 = vmovl_s8(vget_low_s8(s8x16)); /* 0x0x 0x0x 0D0C 0B0A */ + return vreinterpretq_m128i_s16(s16x8); +} + +// Converts the four unsigned 8-bit integers in the lower 32 bits to four +// unsigned 32-bit integers. +FORCE_INLINE __m128i _mm_cvtepi8_epi32(__m128i a) +{ + int8x16_t s8x16 = vreinterpretq_s8_m128i(a); /* xxxx xxxx xxxx DCBA */ + int16x8_t s16x8 = vmovl_s8(vget_low_s8(s8x16)); /* 0x0x 0x0x 0D0C 0B0A */ + int32x4_t s32x4 = vmovl_s16(vget_low_s16(s16x8)); /* 000D 000C 000B 000A */ + return vreinterpretq_m128i_s32(s32x4); +} + +// Converts the two signed 8-bit integers in the lower 32 bits to four +// signed 64-bit integers. +FORCE_INLINE __m128i _mm_cvtepi8_epi64(__m128i a) +{ + int8x16_t s8x16 = vreinterpretq_s8_m128i(a); /* xxxx xxxx xxxx xxBA */ + int16x8_t s16x8 = vmovl_s8(vget_low_s8(s8x16)); /* 0x0x 0x0x 0x0x 0B0A */ + int32x4_t s32x4 = vmovl_s16(vget_low_s16(s16x8)); /* 000x 000x 000B 000A */ + int64x2_t s64x2 = vmovl_s32(vget_low_s32(s32x4)); /* 0000 000B 0000 000A */ + return vreinterpretq_m128i_s64(s64x2); +} + +// Converts the four signed 16-bit integers in the lower 64 bits to four signed +// 32-bit integers. +FORCE_INLINE __m128i _mm_cvtepi16_epi32(__m128i a) +{ + return vreinterpretq_m128i_s32( + vmovl_s16(vget_low_s16(vreinterpretq_s16_m128i(a)))); +} + +// Converts the two signed 16-bit integers in the lower 32 bits two signed +// 32-bit integers. +FORCE_INLINE __m128i _mm_cvtepi16_epi64(__m128i a) +{ + int16x8_t s16x8 = vreinterpretq_s16_m128i(a); /* xxxx xxxx xxxx 0B0A */ + int32x4_t s32x4 = vmovl_s16(vget_low_s16(s16x8)); /* 000x 000x 000B 000A */ + int64x2_t s64x2 = vmovl_s32(vget_low_s32(s32x4)); /* 0000 000B 0000 000A */ + return vreinterpretq_m128i_s64(s64x2); +} + +// Converts the four unsigned 16-bit integers in the lower 64 bits to four +// unsigned 32-bit integers. +FORCE_INLINE __m128i _mm_cvtepu16_epi32(__m128i a) +{ + return vreinterpretq_m128i_u32( + vmovl_u16(vget_low_u16(vreinterpretq_u16_m128i(a)))); +} + +// Converts the two unsigned 16-bit integers in the lower 32 bits to two +// unsigned 64-bit integers. +FORCE_INLINE __m128i _mm_cvtepu16_epi64(__m128i a) +{ + uint16x8_t u16x8 = vreinterpretq_u16_m128i(a); /* xxxx xxxx xxxx 0B0A */ + uint32x4_t u32x4 = vmovl_u16(vget_low_u16(u16x8)); /* 000x 000x 000B 000A */ + uint64x2_t u64x2 = vmovl_u32(vget_low_u32(u32x4)); /* 0000 000B 0000 000A */ + return vreinterpretq_m128i_u64(u64x2); +} + +// Converts the two unsigned 32-bit integers in the lower 64 bits to two +// unsigned 64-bit integers. +FORCE_INLINE __m128i _mm_cvtepu32_epi64(__m128i a) +{ + return vreinterpretq_m128i_u64( + vmovl_u32(vget_low_u32(vreinterpretq_u32_m128i(a)))); +} + +// Converts the two signed 32-bit integers in the lower 64 bits to two signed +// 64-bit integers. +FORCE_INLINE __m128i _mm_cvtepi32_epi64(__m128i a) +{ + return vreinterpretq_m128i_s64( + vmovl_s32(vget_low_s32(vreinterpretq_s32_m128i(a)))); +} + +// Converts the four single-precision, floating-point values of a to signed +// 32-bit integer values. +// +// r0 := (int) a0 +// r1 := (int) a1 +// r2 := (int) a2 +// r3 := (int) a3 +// +// https://msdn.microsoft.com/en-us/library/vstudio/xdc42k5e(v=vs.100).aspx +// *NOTE*. The default rounding mode on SSE is 'round to even', which ARMv7-A +// does not support! It is supported on ARMv8-A however. +FORCE_INLINE __m128i _mm_cvtps_epi32(__m128 a) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s32(vcvtnq_s32_f32(a)); +#else + uint32x4_t signmask = vdupq_n_u32(0x80000000); + float32x4_t half = vbslq_f32(signmask, vreinterpretq_f32_m128(a), + vdupq_n_f32(0.5f)); /* +/- 0.5 */ + int32x4_t r_normal = vcvtq_s32_f32(vaddq_f32( + vreinterpretq_f32_m128(a), half)); /* round to integer: [a + 0.5]*/ + int32x4_t r_trunc = + vcvtq_s32_f32(vreinterpretq_f32_m128(a)); /* truncate to integer: [a] */ + int32x4_t plusone = vreinterpretq_s32_u32(vshrq_n_u32( + vreinterpretq_u32_s32(vnegq_s32(r_trunc)), 31)); /* 1 or 0 */ + int32x4_t r_even = vbicq_s32(vaddq_s32(r_trunc, plusone), + vdupq_n_s32(1)); /* ([a] + {0,1}) & ~1 */ + float32x4_t delta = vsubq_f32( + vreinterpretq_f32_m128(a), + vcvtq_f32_s32(r_trunc)); /* compute delta: delta = (a - [a]) */ + uint32x4_t is_delta_half = vceqq_f32(delta, half); /* delta == +/- 0.5 */ + return vreinterpretq_m128i_s32(vbslq_s32(is_delta_half, r_even, r_normal)); +#endif +} + +// Convert packed single-precision (32-bit) floating-point elements in a to +// packed 16-bit integers, and store the results in dst. Note: this intrinsic +// will generate 0x7FFF, rather than 0x8000, for input values between 0x7FFF and +// 0x7FFFFFFF. +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtps_pi16 +FORCE_INLINE __m64 _mm_cvtps_pi16(__m128 a) +{ + return vreinterpret_m64_s16( + vmovn_s32(vreinterpretq_s32_m128i(_mm_cvtps_epi32(a)))); +} + +// Copy the lower 32-bit integer in a to dst. +// +// dst[31:0] := a[31:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtsi128_si32 +FORCE_INLINE int _mm_cvtsi128_si32(__m128i a) +{ + return vgetq_lane_s32(vreinterpretq_s32_m128i(a), 0); +} + +// Copy the lower 64-bit integer in a to dst. +// +// dst[63:0] := a[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtsi128_si64 +FORCE_INLINE int64_t _mm_cvtsi128_si64(__m128i a) +{ + return vgetq_lane_s64(vreinterpretq_s64_m128i(a), 0); +} + +// Copy the lower 64-bit integer in a to dst. +// +// dst[63:0] := a[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtsi128_si64x +#define _mm_cvtsi128_si64x(a) _mm_cvtsi128_si64(a) + +// Moves 32-bit integer a to the least significant 32 bits of an __m128 object, +// zero extending the upper bits. +// +// r0 := a +// r1 := 0x0 +// r2 := 0x0 +// r3 := 0x0 +// +// https://msdn.microsoft.com/en-us/library/ct3539ha%28v=vs.90%29.aspx +FORCE_INLINE __m128i _mm_cvtsi32_si128(int a) +{ + return vreinterpretq_m128i_s32(vsetq_lane_s32(a, vdupq_n_s32(0), 0)); +} + +// Moves 64-bit integer a to the least significant 64 bits of an __m128 object, +// zero extending the upper bits. +// +// r0 := a +// r1 := 0x0 +FORCE_INLINE __m128i _mm_cvtsi64_si128(int64_t a) +{ + return vreinterpretq_m128i_s64(vsetq_lane_s64(a, vdupq_n_s64(0), 0)); +} + +// Cast vector of type __m128 to type __m128d. This intrinsic is only used for +// compilation and does not generate any instructions, thus it has zero latency. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castps_pd +FORCE_INLINE __m128d _mm_castps_pd(__m128 a) +{ + return vreinterpretq_m128d_s32(vreinterpretq_s32_m128(a)); +} + +// Applies a type cast to reinterpret four 32-bit floating point values passed +// in as a 128-bit parameter as packed 32-bit integers. +// https://msdn.microsoft.com/en-us/library/bb514099.aspx +FORCE_INLINE __m128i _mm_castps_si128(__m128 a) +{ + return vreinterpretq_m128i_s32(vreinterpretq_s32_m128(a)); +} + +// Cast vector of type __m128i to type __m128d. This intrinsic is only used for +// compilation and does not generate any instructions, thus it has zero latency. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castsi128_pd +FORCE_INLINE __m128d _mm_castsi128_pd(__m128i a) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vreinterpretq_f64_m128i(a)); +#else + return vreinterpretq_m128d_f32(vreinterpretq_f32_m128i(a)); +#endif +} + +// Applies a type cast to reinterpret four 32-bit integers passed in as a +// 128-bit parameter as packed 32-bit floating point values. +// https://msdn.microsoft.com/en-us/library/bb514029.aspx +FORCE_INLINE __m128 _mm_castsi128_ps(__m128i a) +{ + return vreinterpretq_m128_s32(vreinterpretq_s32_m128i(a)); +} + +// Loads 128-bit value. : +// https://msdn.microsoft.com/en-us/library/atzzad1h(v=vs.80).aspx +FORCE_INLINE __m128i _mm_load_si128(const __m128i *p) +{ + return vreinterpretq_m128i_s32(vld1q_s32((const int32_t *) p)); +} + +// Load a double-precision (64-bit) floating-point element from memory into both +// elements of dst. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_load1_pd +FORCE_INLINE __m128d _mm_load1_pd(const double *p) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64(vld1q_dup_f64(p)); +#else + return vreinterpretq_m128d_s64(vdupq_n_s64(*(const int64_t *) p)); +#endif +} + +// Load a double-precision (64-bit) floating-point element from memory into both +// elements of dst. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_load_pd1 +#define _mm_load_pd1 _mm_load1_pd + +// Load a double-precision (64-bit) floating-point element from memory into both +// elements of dst. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loaddup_pd +#define _mm_loaddup_pd _mm_load1_pd + +// Load a double-precision (64-bit) floating-point element from memory into the +// upper element of dst, and copy the lower element from a to dst. mem_addr does +// not need to be aligned on any particular boundary. +// +// dst[63:0] := a[63:0] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadh_pd +FORCE_INLINE __m128d _mm_loadh_pd(__m128d a, const double *p) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vcombine_f64(vget_low_f64(vreinterpretq_f64_m128d(a)), vld1_f64(p))); +#else + return vreinterpretq_m128d_f32(vcombine_f32( + vget_low_f32(vreinterpretq_f32_m128d(a)), vld1_f32((const float *) p))); +#endif +} + +// Load a double-precision (64-bit) floating-point element from memory into both +// elements of dst. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_load_pd1 +#define _mm_load_pd1 _mm_load1_pd + +// Load a double-precision (64-bit) floating-point element from memory into both +// elements of dst. +// +// dst[63:0] := MEM[mem_addr+63:mem_addr] +// dst[127:64] := MEM[mem_addr+63:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loaddup_pd +#define _mm_loaddup_pd _mm_load1_pd + +// Loads 128-bit value. : +// https://msdn.microsoft.com/zh-cn/library/f4k12ae8(v=vs.90).aspx +FORCE_INLINE __m128i _mm_loadu_si128(const __m128i *p) +{ + return vreinterpretq_m128i_s32(vld1q_s32((const int32_t *) p)); +} + +// Load unaligned 32-bit integer from memory into the first element of dst. +// +// dst[31:0] := MEM[mem_addr+31:mem_addr] +// dst[MAX:32] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_loadu_si32 +FORCE_INLINE __m128i _mm_loadu_si32(const void *p) +{ + return vreinterpretq_m128i_s32( + vsetq_lane_s32(*(const int32_t *) p, vdupq_n_s32(0), 0)); +} + +// Convert packed double-precision (64-bit) floating-point elements in a to +// packed single-precision (32-bit) floating-point elements, and store the +// results in dst. +// +// FOR j := 0 to 1 +// i := 32*j +// k := 64*j +// dst[i+31:i] := Convert_FP64_To_FP32(a[k+64:k]) +// ENDFOR +// dst[127:64] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtpd_ps +FORCE_INLINE __m128 _mm_cvtpd_ps(__m128d a) +{ +#if defined(__aarch64__) + float32x2_t tmp = vcvt_f32_f64(vreinterpretq_f64_m128d(a)); + return vreinterpretq_m128_f32(vcombine_f32(tmp, vdup_n_f32(0))); +#else + float a0 = (float) ((double *) &a)[0]; + float a1 = (float) ((double *) &a)[1]; + return _mm_set_ps(0, 0, a1, a0); +#endif +} + +// Copy the lower double-precision (64-bit) floating-point element of a to dst. +// +// dst[63:0] := a[63:0] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtsd_f64 +FORCE_INLINE double _mm_cvtsd_f64(__m128d a) +{ +#if defined(__aarch64__) + return (double) vgetq_lane_f64(vreinterpretq_f64_m128d(a), 0); +#else + return ((double *) &a)[0]; +#endif +} + +// Convert packed single-precision (32-bit) floating-point elements in a to +// packed double-precision (64-bit) floating-point elements, and store the +// results in dst. +// +// FOR j := 0 to 1 +// i := 64*j +// k := 32*j +// dst[i+63:i] := Convert_FP32_To_FP64(a[k+31:k]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtps_pd +FORCE_INLINE __m128d _mm_cvtps_pd(__m128 a) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vcvt_f64_f32(vget_low_f32(vreinterpretq_f32_m128(a)))); +#else + double a0 = (double) vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); + double a1 = (double) vgetq_lane_f32(vreinterpretq_f32_m128(a), 1); + return _mm_set_pd(a1, a0); +#endif +} + +// Cast vector of type __m128d to type __m128i. This intrinsic is only used for +// compilation and does not generate any instructions, thus it has zero latency. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castpd_si128 +FORCE_INLINE __m128i _mm_castpd_si128(__m128d a) +{ + return vreinterpretq_m128i_s64(vreinterpretq_s64_m128d(a)); +} + +// Cast vector of type __m128d to type __m128. This intrinsic is only used for +// compilation and does not generate any instructions, thus it has zero latency. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_castpd_ps +FORCE_INLINE __m128 _mm_castpd_ps(__m128d a) +{ + return vreinterpretq_m128_s64(vreinterpretq_s64_m128d(a)); +} + +// Blend packed single-precision (32-bit) floating-point elements from a and b +// using mask, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_blendv_ps +FORCE_INLINE __m128 _mm_blendv_ps(__m128 _a, __m128 _b, __m128 _mask) +{ + // Use a signed shift right to create a mask with the sign bit + uint32x4_t mask = + vreinterpretq_u32_s32(vshrq_n_s32(vreinterpretq_s32_m128(_mask), 31)); + float32x4_t a = vreinterpretq_f32_m128(_a); + float32x4_t b = vreinterpretq_f32_m128(_b); + return vreinterpretq_m128_f32(vbslq_f32(mask, b, a)); +} + +// Blend packed single-precision (32-bit) floating-point elements from a and b +// using mask, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_blend_ps +FORCE_INLINE __m128 _mm_blend_ps(__m128 _a, __m128 _b, const char imm8) +{ + const uint32_t ALIGN_STRUCT(16) + data[4] = {((imm8) & (1 << 0)) ? UINT32_MAX : 0, + ((imm8) & (1 << 1)) ? UINT32_MAX : 0, + ((imm8) & (1 << 2)) ? UINT32_MAX : 0, + ((imm8) & (1 << 3)) ? UINT32_MAX : 0}; + uint32x4_t mask = vld1q_u32(data); + float32x4_t a = vreinterpretq_f32_m128(_a); + float32x4_t b = vreinterpretq_f32_m128(_b); + return vreinterpretq_m128_f32(vbslq_f32(mask, b, a)); +} + +// Blend packed double-precision (64-bit) floating-point elements from a and b +// using mask, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_blendv_pd +FORCE_INLINE __m128d _mm_blendv_pd(__m128d _a, __m128d _b, __m128d _mask) +{ + uint64x2_t mask = + vreinterpretq_u64_s64(vshrq_n_s64(vreinterpretq_s64_m128d(_mask), 63)); +#if defined(__aarch64__) + float64x2_t a = vreinterpretq_f64_m128d(_a); + float64x2_t b = vreinterpretq_f64_m128d(_b); + return vreinterpretq_m128d_f64(vbslq_f64(mask, b, a)); +#else + uint64x2_t a = vreinterpretq_u64_m128d(_a); + uint64x2_t b = vreinterpretq_u64_m128d(_b); + return vreinterpretq_m128d_u64(vbslq_u64(mask, b, a)); +#endif +} + +typedef struct { + uint16_t res0; + uint8_t res1 : 6; + uint8_t bit22 : 1; + uint8_t bit23 : 1; + uint8_t res2; +#if defined(__aarch64__) + uint32_t res3; +#endif +} fpcr_bitfield; + +// Macro: Set the rounding mode bits of the MXCSR control and status register to +// the value in unsigned 32-bit integer a. The rounding mode may contain any of +// the following flags: _MM_ROUND_NEAREST, _MM_ROUND_DOWN, _MM_ROUND_UP, +// _MM_ROUND_TOWARD_ZERO +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_MM_SET_ROUNDING_MODE +FORCE_INLINE void _MM_SET_ROUNDING_MODE(int rounding) +{ + union { + fpcr_bitfield field; +#if defined(__aarch64__) + uint64_t value; +#else + uint32_t value; +#endif + } r; + +#if defined(__aarch64__) + asm volatile("mrs %0, FPCR" : "=r"(r.value)); /* read */ +#else + asm volatile("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ +#endif + + switch (rounding) { + case _MM_ROUND_TOWARD_ZERO: + r.field.bit22 = 1; + r.field.bit23 = 1; + break; + case _MM_ROUND_DOWN: + r.field.bit22 = 0; + r.field.bit23 = 1; + break; + case _MM_ROUND_UP: + r.field.bit22 = 1; + r.field.bit23 = 0; + break; + default: //_MM_ROUND_NEAREST + r.field.bit22 = 0; + r.field.bit23 = 0; + } + +#if defined(__aarch64__) + asm volatile("msr FPCR, %0" ::"r"(r)); /* write */ +#else + asm volatile("vmsr FPSCR, %0" ::"r"(r)); /* write */ +#endif +} + +FORCE_INLINE void _mm_setcsr(unsigned int a) +{ + _MM_SET_ROUNDING_MODE(a); +} + +// Round the packed single-precision (32-bit) floating-point elements in a using +// the rounding parameter, and store the results as packed single-precision +// floating-point elements in dst. +// software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_round_ps +FORCE_INLINE __m128 _mm_round_ps(__m128 a, int rounding) +{ +#if defined(__aarch64__) + switch (rounding) { + case (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC): + return vreinterpretq_m128_f32(vrndnq_f32(vreinterpretq_f32_m128(a))); + case (_MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC): + return vreinterpretq_m128_f32(vrndmq_f32(vreinterpretq_f32_m128(a))); + case (_MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC): + return vreinterpretq_m128_f32(vrndpq_f32(vreinterpretq_f32_m128(a))); + case (_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC): + return vreinterpretq_m128_f32(vrndq_f32(vreinterpretq_f32_m128(a))); + default: //_MM_FROUND_CUR_DIRECTION + return vreinterpretq_m128_f32(vrndiq_f32(vreinterpretq_f32_m128(a))); + } +#else + float *v_float = (float *) &a; + __m128 zero, neg_inf, pos_inf; + + switch (rounding) { + case (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC): + return _mm_cvtepi32_ps(_mm_cvtps_epi32(a)); + case (_MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC): + return (__m128){floorf(v_float[0]), floorf(v_float[1]), + floorf(v_float[2]), floorf(v_float[3])}; + case (_MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC): + return (__m128){ceilf(v_float[0]), ceilf(v_float[1]), ceilf(v_float[2]), + ceilf(v_float[3])}; + case (_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC): + zero = _mm_set_ps(0.0f, 0.0f, 0.0f, 0.0f); + neg_inf = _mm_set_ps(floorf(v_float[0]), floorf(v_float[1]), + floorf(v_float[2]), floorf(v_float[3])); + pos_inf = _mm_set_ps(ceilf(v_float[0]), ceilf(v_float[1]), + ceilf(v_float[2]), ceilf(v_float[3])); + return _mm_blendv_ps(pos_inf, neg_inf, _mm_cmple_ps(a, zero)); + default: //_MM_FROUND_CUR_DIRECTION + return (__m128){roundf(v_float[0]), roundf(v_float[1]), + roundf(v_float[2]), roundf(v_float[3])}; + } +#endif +} + +// Convert packed single-precision (32-bit) floating-point elements in a to +// packed 32-bit integers, and store the results in dst. +// +// FOR j := 0 to 1 +// i := 32*j +// dst[i+31:i] := Convert_FP32_To_Int32(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvt_ps2pi +FORCE_INLINE __m64 _mm_cvt_ps2pi(__m128 a) +{ +#if defined(__aarch64__) + return vreinterpret_m64_s32( + vget_low_s32(vcvtnq_s32_f32(vreinterpretq_f32_m128(a)))); +#else + return vreinterpret_m64_s32( + vcvt_s32_f32(vget_low_f32(vreinterpretq_f32_m128( + _mm_round_ps(a, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC))))); +#endif +} + +// Convert packed single-precision (32-bit) floating-point elements in a to +// packed 32-bit integers, and store the results in dst. +// +// FOR j := 0 to 1 +// i := 32*j +// dst[i+31:i] := Convert_FP32_To_Int32(a[i+31:i]) +// ENDFOR +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_cvtps_pi32 +#define _mm_cvtps_pi32(a) _mm_cvt_ps2pi(a) + +// Round the packed single-precision (32-bit) floating-point elements in a up to +// an integer value, and store the results as packed single-precision +// floating-point elements in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_ceil_ps +FORCE_INLINE __m128 _mm_ceil_ps(__m128 a) +{ + return _mm_round_ps(a, _MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC); +} + +// Round the lower single-precision (32-bit) floating-point element in b up to +// an integer value, store the result as a single-precision floating-point +// element in the lower element of dst, and copy the upper 3 packed elements +// from a to the upper elements of dst. +// +// dst[31:0] := CEIL(b[31:0]) +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_ceil_ss +FORCE_INLINE __m128 _mm_ceil_ss(__m128 a, __m128 b) +{ + return _mm_move_ss( + a, _mm_round_ps(b, _MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC)); +} + +// Round the packed single-precision (32-bit) floating-point elements in a down +// to an integer value, and store the results as packed single-precision +// floating-point elements in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_floor_ps +FORCE_INLINE __m128 _mm_floor_ps(__m128 a) +{ + return _mm_round_ps(a, _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC); +} + +// Round the lower single-precision (32-bit) floating-point element in b down to +// an integer value, store the result as a single-precision floating-point +// element in the lower element of dst, and copy the upper 3 packed elements +// from a to the upper elements of dst. +// +// dst[31:0] := FLOOR(b[31:0]) +// dst[127:32] := a[127:32] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_floor_ss +FORCE_INLINE __m128 _mm_floor_ss(__m128 a, __m128 b) +{ + return _mm_move_ss( + a, _mm_round_ps(b, _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC)); +} + +// Load 128-bits of integer data from unaligned memory into dst. This intrinsic +// may perform better than _mm_loadu_si128 when the data crosses a cache line +// boundary. +// +// dst[127:0] := MEM[mem_addr+127:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_lddqu_si128 +#define _mm_lddqu_si128 _mm_loadu_si128 + +/* Miscellaneous Operations */ + +// Shifts the 8 signed 16-bit integers in a right by count bits while shifting +// in the sign bit. +// +// r0 := a0 >> count +// r1 := a1 >> count +// ... +// r7 := a7 >> count +// +// https://msdn.microsoft.com/en-us/library/3c9997dk(v%3dvs.90).aspx +FORCE_INLINE __m128i _mm_sra_epi16(__m128i a, __m128i count) +{ + int64_t c = (int64_t) vget_low_s64((int64x2_t) count); + if (unlikely(c > 15)) + return _mm_cmplt_epi16(a, _mm_setzero_si128()); + return vreinterpretq_m128i_s16(vshlq_s16((int16x8_t) a, vdupq_n_s16(-c))); +} + +// Shifts the 4 signed 32-bit integers in a right by count bits while shifting +// in the sign bit. +// +// r0 := a0 >> count +// r1 := a1 >> count +// r2 := a2 >> count +// r3 := a3 >> count +// +// https://msdn.microsoft.com/en-us/library/ce40009e(v%3dvs.100).aspx +FORCE_INLINE __m128i _mm_sra_epi32(__m128i a, __m128i count) +{ + int64_t c = (int64_t) vget_low_s64((int64x2_t) count); + if (unlikely(c > 31)) + return _mm_cmplt_epi32(a, _mm_setzero_si128()); + return vreinterpretq_m128i_s32(vshlq_s32((int32x4_t) a, vdupq_n_s32(-c))); +} + +// Packs the 16 signed 16-bit integers from a and b into 8-bit integers and +// saturates. +// https://msdn.microsoft.com/en-us/library/k4y4f7w5%28v=vs.90%29.aspx +FORCE_INLINE __m128i _mm_packs_epi16(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s8( + vcombine_s8(vqmovn_s16(vreinterpretq_s16_m128i(a)), + vqmovn_s16(vreinterpretq_s16_m128i(b)))); +} + +// Packs the 16 signed 16 - bit integers from a and b into 8 - bit unsigned +// integers and saturates. +// +// r0 := UnsignedSaturate(a0) +// r1 := UnsignedSaturate(a1) +// ... +// r7 := UnsignedSaturate(a7) +// r8 := UnsignedSaturate(b0) +// r9 := UnsignedSaturate(b1) +// ... +// r15 := UnsignedSaturate(b7) +// +// https://msdn.microsoft.com/en-us/library/07ad1wx4(v=vs.100).aspx +FORCE_INLINE __m128i _mm_packus_epi16(const __m128i a, const __m128i b) +{ + return vreinterpretq_m128i_u8( + vcombine_u8(vqmovun_s16(vreinterpretq_s16_m128i(a)), + vqmovun_s16(vreinterpretq_s16_m128i(b)))); +} + +// Packs the 8 signed 32-bit integers from a and b into signed 16-bit integers +// and saturates. +// +// r0 := SignedSaturate(a0) +// r1 := SignedSaturate(a1) +// r2 := SignedSaturate(a2) +// r3 := SignedSaturate(a3) +// r4 := SignedSaturate(b0) +// r5 := SignedSaturate(b1) +// r6 := SignedSaturate(b2) +// r7 := SignedSaturate(b3) +// +// https://msdn.microsoft.com/en-us/library/393t56f9%28v=vs.90%29.aspx +FORCE_INLINE __m128i _mm_packs_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_s16( + vcombine_s16(vqmovn_s32(vreinterpretq_s32_m128i(a)), + vqmovn_s32(vreinterpretq_s32_m128i(b)))); +} + +// Packs the 8 unsigned 32-bit integers from a and b into unsigned 16-bit +// integers and saturates. +// +// r0 := UnsignedSaturate(a0) +// r1 := UnsignedSaturate(a1) +// r2 := UnsignedSaturate(a2) +// r3 := UnsignedSaturate(a3) +// r4 := UnsignedSaturate(b0) +// r5 := UnsignedSaturate(b1) +// r6 := UnsignedSaturate(b2) +// r7 := UnsignedSaturate(b3) +FORCE_INLINE __m128i _mm_packus_epi32(__m128i a, __m128i b) +{ + return vreinterpretq_m128i_u16( + vcombine_u16(vqmovun_s32(vreinterpretq_s32_m128i(a)), + vqmovun_s32(vreinterpretq_s32_m128i(b)))); +} + +// Interleaves the lower 8 signed or unsigned 8-bit integers in a with the lower +// 8 signed or unsigned 8-bit integers in b. +// +// r0 := a0 +// r1 := b0 +// r2 := a1 +// r3 := b1 +// ... +// r14 := a7 +// r15 := b7 +// +// https://msdn.microsoft.com/en-us/library/xf7k860c%28v=vs.90%29.aspx +FORCE_INLINE __m128i _mm_unpacklo_epi8(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s8( + vzip1q_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +#else + int8x8_t a1 = vreinterpret_s8_s16(vget_low_s16(vreinterpretq_s16_m128i(a))); + int8x8_t b1 = vreinterpret_s8_s16(vget_low_s16(vreinterpretq_s16_m128i(b))); + int8x8x2_t result = vzip_s8(a1, b1); + return vreinterpretq_m128i_s8(vcombine_s8(result.val[0], result.val[1])); +#endif +} + +// Interleaves the lower 4 signed or unsigned 16-bit integers in a with the +// lower 4 signed or unsigned 16-bit integers in b. +// +// r0 := a0 +// r1 := b0 +// r2 := a1 +// r3 := b1 +// r4 := a2 +// r5 := b2 +// r6 := a3 +// r7 := b3 +// +// https://msdn.microsoft.com/en-us/library/btxb17bw%28v=vs.90%29.aspx +FORCE_INLINE __m128i _mm_unpacklo_epi16(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s16( + vzip1q_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +#else + int16x4_t a1 = vget_low_s16(vreinterpretq_s16_m128i(a)); + int16x4_t b1 = vget_low_s16(vreinterpretq_s16_m128i(b)); + int16x4x2_t result = vzip_s16(a1, b1); + return vreinterpretq_m128i_s16(vcombine_s16(result.val[0], result.val[1])); +#endif +} + +// Interleaves the lower 2 signed or unsigned 32 - bit integers in a with the +// lower 2 signed or unsigned 32 - bit integers in b. +// +// r0 := a0 +// r1 := b0 +// r2 := a1 +// r3 := b1 +// +// https://msdn.microsoft.com/en-us/library/x8atst9d(v=vs.100).aspx +FORCE_INLINE __m128i _mm_unpacklo_epi32(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s32( + vzip1q_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +#else + int32x2_t a1 = vget_low_s32(vreinterpretq_s32_m128i(a)); + int32x2_t b1 = vget_low_s32(vreinterpretq_s32_m128i(b)); + int32x2x2_t result = vzip_s32(a1, b1); + return vreinterpretq_m128i_s32(vcombine_s32(result.val[0], result.val[1])); +#endif +} + +FORCE_INLINE __m128i _mm_unpacklo_epi64(__m128i a, __m128i b) +{ + int64x1_t a_l = vget_low_s64(vreinterpretq_s64_m128i(a)); + int64x1_t b_l = vget_low_s64(vreinterpretq_s64_m128i(b)); + return vreinterpretq_m128i_s64(vcombine_s64(a_l, b_l)); +} + +// Selects and interleaves the lower two single-precision, floating-point values +// from a and b. +// +// r0 := a0 +// r1 := b0 +// r2 := a1 +// r3 := b1 +// +// https://msdn.microsoft.com/en-us/library/25st103b%28v=vs.90%29.aspx +FORCE_INLINE __m128 _mm_unpacklo_ps(__m128 a, __m128 b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128_f32( + vzip1q_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +#else + float32x2_t a1 = vget_low_f32(vreinterpretq_f32_m128(a)); + float32x2_t b1 = vget_low_f32(vreinterpretq_f32_m128(b)); + float32x2x2_t result = vzip_f32(a1, b1); + return vreinterpretq_m128_f32(vcombine_f32(result.val[0], result.val[1])); +#endif +} + +// Unpack and interleave double-precision (64-bit) floating-point elements from +// the low half of a and b, and store the results in dst. +// +// DEFINE INTERLEAVE_QWORDS(src1[127:0], src2[127:0]) { +// dst[63:0] := src1[63:0] +// dst[127:64] := src2[63:0] +// RETURN dst[127:0] +// } +// dst[127:0] := INTERLEAVE_QWORDS(a[127:0], b[127:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_unpacklo_pd +FORCE_INLINE __m128d _mm_unpacklo_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vzip1q_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + return vreinterpretq_m128d_s64( + vcombine_s64(vget_low_s64(vreinterpretq_s64_m128d(a)), + vget_low_s64(vreinterpretq_s64_m128d(b)))); +#endif +} + +// Unpack and interleave double-precision (64-bit) floating-point elements from +// the high half of a and b, and store the results in dst. +// +// DEFINE INTERLEAVE_HIGH_QWORDS(src1[127:0], src2[127:0]) { +// dst[63:0] := src1[127:64] +// dst[127:64] := src2[127:64] +// RETURN dst[127:0] +// } +// dst[127:0] := INTERLEAVE_HIGH_QWORDS(a[127:0], b[127:0]) +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_unpackhi_pd +FORCE_INLINE __m128d _mm_unpackhi_pd(__m128d a, __m128d b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128d_f64( + vzip2q_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); +#else + return vreinterpretq_m128d_s64( + vcombine_s64(vget_high_s64(vreinterpretq_s64_m128d(a)), + vget_high_s64(vreinterpretq_s64_m128d(b)))); +#endif +} + +// Selects and interleaves the upper two single-precision, floating-point values +// from a and b. +// +// r0 := a2 +// r1 := b2 +// r2 := a3 +// r3 := b3 +// +// https://msdn.microsoft.com/en-us/library/skccxx7d%28v=vs.90%29.aspx +FORCE_INLINE __m128 _mm_unpackhi_ps(__m128 a, __m128 b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128_f32( + vzip2q_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); +#else + float32x2_t a1 = vget_high_f32(vreinterpretq_f32_m128(a)); + float32x2_t b1 = vget_high_f32(vreinterpretq_f32_m128(b)); + float32x2x2_t result = vzip_f32(a1, b1); + return vreinterpretq_m128_f32(vcombine_f32(result.val[0], result.val[1])); +#endif +} + +// Interleaves the upper 8 signed or unsigned 8-bit integers in a with the upper +// 8 signed or unsigned 8-bit integers in b. +// +// r0 := a8 +// r1 := b8 +// r2 := a9 +// r3 := b9 +// ... +// r14 := a15 +// r15 := b15 +// +// https://msdn.microsoft.com/en-us/library/t5h7783k(v=vs.100).aspx +FORCE_INLINE __m128i _mm_unpackhi_epi8(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s8( + vzip2q_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); +#else + int8x8_t a1 = + vreinterpret_s8_s16(vget_high_s16(vreinterpretq_s16_m128i(a))); + int8x8_t b1 = + vreinterpret_s8_s16(vget_high_s16(vreinterpretq_s16_m128i(b))); + int8x8x2_t result = vzip_s8(a1, b1); + return vreinterpretq_m128i_s8(vcombine_s8(result.val[0], result.val[1])); +#endif +} + +// Interleaves the upper 4 signed or unsigned 16-bit integers in a with the +// upper 4 signed or unsigned 16-bit integers in b. +// +// r0 := a4 +// r1 := b4 +// r2 := a5 +// r3 := b5 +// r4 := a6 +// r5 := b6 +// r6 := a7 +// r7 := b7 +// +// https://msdn.microsoft.com/en-us/library/03196cz7(v=vs.100).aspx +FORCE_INLINE __m128i _mm_unpackhi_epi16(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s16( + vzip2q_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); +#else + int16x4_t a1 = vget_high_s16(vreinterpretq_s16_m128i(a)); + int16x4_t b1 = vget_high_s16(vreinterpretq_s16_m128i(b)); + int16x4x2_t result = vzip_s16(a1, b1); + return vreinterpretq_m128i_s16(vcombine_s16(result.val[0], result.val[1])); +#endif +} + +// Interleaves the upper 2 signed or unsigned 32-bit integers in a with the +// upper 2 signed or unsigned 32-bit integers in b. +// https://msdn.microsoft.com/en-us/library/65sa7cbs(v=vs.100).aspx +FORCE_INLINE __m128i _mm_unpackhi_epi32(__m128i a, __m128i b) +{ +#if defined(__aarch64__) + return vreinterpretq_m128i_s32( + vzip2q_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); +#else + int32x2_t a1 = vget_high_s32(vreinterpretq_s32_m128i(a)); + int32x2_t b1 = vget_high_s32(vreinterpretq_s32_m128i(b)); + int32x2x2_t result = vzip_s32(a1, b1); + return vreinterpretq_m128i_s32(vcombine_s32(result.val[0], result.val[1])); +#endif +} + +// Interleaves the upper signed or unsigned 64-bit integer in a with the +// upper signed or unsigned 64-bit integer in b. +// +// r0 := a1 +// r1 := b1 +FORCE_INLINE __m128i _mm_unpackhi_epi64(__m128i a, __m128i b) +{ + int64x1_t a_h = vget_high_s64(vreinterpretq_s64_m128i(a)); + int64x1_t b_h = vget_high_s64(vreinterpretq_s64_m128i(b)); + return vreinterpretq_m128i_s64(vcombine_s64(a_h, b_h)); +} + +// Horizontally compute the minimum amongst the packed unsigned 16-bit integers +// in a, store the minimum and index in dst, and zero the remaining bits in dst. +// +// index[2:0] := 0 +// min[15:0] := a[15:0] +// FOR j := 0 to 7 +// i := j*16 +// IF a[i+15:i] < min[15:0] +// index[2:0] := j +// min[15:0] := a[i+15:i] +// FI +// ENDFOR +// dst[15:0] := min[15:0] +// dst[18:16] := index[2:0] +// dst[127:19] := 0 +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_minpos_epu16 +FORCE_INLINE __m128i _mm_minpos_epu16(__m128i a) +{ + __m128i dst; + uint16_t min, idx = 0; + // Find the minimum value +#if defined(__aarch64__) + min = vminvq_u16(vreinterpretq_u16_m128i(a)); +#else + __m64 tmp; + tmp = vreinterpret_m64_u16( + vmin_u16(vget_low_u16(vreinterpretq_u16_m128i(a)), + vget_high_u16(vreinterpretq_u16_m128i(a)))); + tmp = vreinterpret_m64_u16( + vpmin_u16(vreinterpret_u16_m64(tmp), vreinterpret_u16_m64(tmp))); + tmp = vreinterpret_m64_u16( + vpmin_u16(vreinterpret_u16_m64(tmp), vreinterpret_u16_m64(tmp))); + min = vget_lane_u16(vreinterpret_u16_m64(tmp), 0); +#endif + // Get the index of the minimum value + int i; + for (i = 0; i < 8; i++) { + if (min == vgetq_lane_u16(vreinterpretq_u16_m128i(a), 0)) { + idx = (uint16_t) i; + break; + } + a = _mm_srli_si128(a, 2); + } + // Generate result + dst = _mm_setzero_si128(); + dst = vreinterpretq_m128i_u16( + vsetq_lane_u16(min, vreinterpretq_u16_m128i(dst), 0)); + dst = vreinterpretq_m128i_u16( + vsetq_lane_u16(idx, vreinterpretq_u16_m128i(dst), 1)); + return dst; +} + +// Compute the bitwise AND of 128 bits (representing integer data) in a and b, +// and set ZF to 1 if the result is zero, otherwise set ZF to 0. Compute the +// bitwise NOT of a and then AND with b, and set CF to 1 if the result is zero, +// otherwise set CF to 0. Return the CF value. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_testc_si128 +FORCE_INLINE int _mm_testc_si128(__m128i a, __m128i b) +{ + int64x2_t s64 = + vandq_s64(vreinterpretq_s64_s32(vmvnq_s32(vreinterpretq_s32_m128i(a))), + vreinterpretq_s64_m128i(b)); + return !(vgetq_lane_s64(s64, 0) | vgetq_lane_s64(s64, 1)); +} + +// Compute the bitwise AND of 128 bits (representing integer data) in a and b, +// and set ZF to 1 if the result is zero, otherwise set ZF to 0. Compute the +// bitwise NOT of a and then AND with b, and set CF to 1 if the result is zero, +// otherwise set CF to 0. Return the ZF value. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_testz_si128 +FORCE_INLINE int _mm_testz_si128(__m128i a, __m128i b) +{ + int64x2_t s64 = + vandq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b)); + return !(vgetq_lane_s64(s64, 0) | vgetq_lane_s64(s64, 1)); +} + +// Extracts the selected signed or unsigned 8-bit integer from a and zero +// extends. +// FORCE_INLINE int _mm_extract_epi8(__m128i a, __constrange(0,16) int imm) +#define _mm_extract_epi8(a, imm) vgetq_lane_u8(vreinterpretq_u8_m128i(a), (imm)) + +// Inserts the least significant 8 bits of b into the selected 8-bit integer +// of a. +// FORCE_INLINE __m128i _mm_insert_epi8(__m128i a, int b, +// __constrange(0,16) int imm) +#define _mm_insert_epi8(a, b, imm) \ + __extension__({ \ + vreinterpretq_m128i_s8( \ + vsetq_lane_s8((b), vreinterpretq_s8_m128i(a), (imm))); \ + }) + +// Extracts the selected signed or unsigned 16-bit integer from a and zero +// extends. +// https://msdn.microsoft.com/en-us/library/6dceta0c(v=vs.100).aspx +// FORCE_INLINE int _mm_extract_epi16(__m128i a, __constrange(0,8) int imm) +#define _mm_extract_epi16(a, imm) \ + vgetq_lane_u16(vreinterpretq_u16_m128i(a), (imm)) + +// Extract a 16-bit integer from a, selected with imm8, and store the result in +// the lower element of dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_extract_pi16 +#define _mm_extract_pi16(a, imm) \ + (int32_t) vget_lane_u16(vreinterpret_u16_m64(a), (imm)) + +// Inserts the least significant 16 bits of b into the selected 16-bit integer +// of a. +// https://msdn.microsoft.com/en-us/library/kaze8hz1%28v=vs.100%29.aspx +// FORCE_INLINE __m128i _mm_insert_epi16(__m128i a, int b, +// __constrange(0,8) int imm) +#define _mm_insert_epi16(a, b, imm) \ + __extension__({ \ + vreinterpretq_m128i_s16( \ + vsetq_lane_s16((b), vreinterpretq_s16_m128i(a), (imm))); \ + }) + +// Copy a to dst, and insert the 16-bit integer i into dst at the location +// specified by imm8. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_insert_pi16 +#define _mm_insert_pi16(a, b, imm) \ + __extension__({ \ + vreinterpret_m64_s16( \ + vset_lane_s16((b), vreinterpret_s16_m64(a), (imm))); \ + }) + +// Extracts the selected signed or unsigned 32-bit integer from a and zero +// extends. +// FORCE_INLINE int _mm_extract_epi32(__m128i a, __constrange(0,4) int imm) +#define _mm_extract_epi32(a, imm) \ + vgetq_lane_s32(vreinterpretq_s32_m128i(a), (imm)) + +// Extracts the selected single-precision (32-bit) floating-point from a. +// FORCE_INLINE int _mm_extract_ps(__m128 a, __constrange(0,4) int imm) +#define _mm_extract_ps(a, imm) vgetq_lane_s32(vreinterpretq_s32_m128(a), (imm)) + +// Inserts the least significant 32 bits of b into the selected 32-bit integer +// of a. +// FORCE_INLINE __m128i _mm_insert_epi32(__m128i a, int b, +// __constrange(0,4) int imm) +#define _mm_insert_epi32(a, b, imm) \ + __extension__({ \ + vreinterpretq_m128i_s32( \ + vsetq_lane_s32((b), vreinterpretq_s32_m128i(a), (imm))); \ + }) + +// Extracts the selected signed or unsigned 64-bit integer from a and zero +// extends. +// FORCE_INLINE __int64 _mm_extract_epi64(__m128i a, __constrange(0,2) int imm) +#define _mm_extract_epi64(a, imm) \ + vgetq_lane_s64(vreinterpretq_s64_m128i(a), (imm)) + +// Inserts the least significant 64 bits of b into the selected 64-bit integer +// of a. +// FORCE_INLINE __m128i _mm_insert_epi64(__m128i a, __int64 b, +// __constrange(0,2) int imm) +#define _mm_insert_epi64(a, b, imm) \ + __extension__({ \ + vreinterpretq_m128i_s64( \ + vsetq_lane_s64((b), vreinterpretq_s64_m128i(a), (imm))); \ + }) + +// Count the number of bits set to 1 in unsigned 32-bit integer a, and +// return that count in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_popcnt_u32 +FORCE_INLINE int _mm_popcnt_u32(unsigned int a) +{ +#if defined(__aarch64__) +#if __has_builtin(__builtin_popcount) + return __builtin_popcount(a); +#else + return (int) vaddlv_u8(vcnt_u8(vcreate_u8((uint64_t) a))); +#endif +#else + uint32_t count = 0; + uint8x8_t input_val, count8x8_val; + uint16x4_t count16x4_val; + uint32x2_t count32x2_val; + + input_val = vld1_u8((uint8_t *) &a); + count8x8_val = vcnt_u8(input_val); + count16x4_val = vpaddl_u8(count8x8_val); + count32x2_val = vpaddl_u16(count16x4_val); + + vst1_u32(&count, count32x2_val); + return count; +#endif +} + +// Count the number of bits set to 1 in unsigned 64-bit integer a, and +// return that count in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_popcnt_u64 +FORCE_INLINE int64_t _mm_popcnt_u64(uint64_t a) +{ +#if defined(__aarch64__) +#if __has_builtin(__builtin_popcountll) + return __builtin_popcountll(a); +#else + return (int64_t) vaddlv_u8(vcnt_u8(vcreate_u8(a))); +#endif +#else + uint64_t count = 0; + uint8x8_t input_val, count8x8_val; + uint16x4_t count16x4_val; + uint32x2_t count32x2_val; + uint64x1_t count64x1_val; + + input_val = vld1_u8((uint8_t *) &a); + count8x8_val = vcnt_u8(input_val); + count16x4_val = vpaddl_u8(count8x8_val); + count32x2_val = vpaddl_u16(count16x4_val); + count64x1_val = vpaddl_u32(count32x2_val); + vst1_u64(&count, count64x1_val); + return count; +#endif +} + +// Macro: Transpose the 4x4 matrix formed by the 4 rows of single-precision +// (32-bit) floating-point elements in row0, row1, row2, and row3, and store the +// transposed matrix in these vectors (row0 now contains column 0, etc.). +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=MM_TRANSPOSE4_PS +#define _MM_TRANSPOSE4_PS(row0, row1, row2, row3) \ + do { \ + float32x4x2_t ROW01 = vtrnq_f32(row0, row1); \ + float32x4x2_t ROW23 = vtrnq_f32(row2, row3); \ + row0 = vcombine_f32(vget_low_f32(ROW01.val[0]), \ + vget_low_f32(ROW23.val[0])); \ + row1 = vcombine_f32(vget_low_f32(ROW01.val[1]), \ + vget_low_f32(ROW23.val[1])); \ + row2 = vcombine_f32(vget_high_f32(ROW01.val[0]), \ + vget_high_f32(ROW23.val[0])); \ + row3 = vcombine_f32(vget_high_f32(ROW01.val[1]), \ + vget_high_f32(ROW23.val[1])); \ + } while (0) + +/* Crypto Extensions */ + +#if defined(__ARM_FEATURE_CRYPTO) // Wraps vmull_p64 FORCE_INLINE uint64x2_t _sse2neon_vmull_p64(uint64x1_t _a, uint64x1_t _b) { poly64_t a = vget_lane_p64(vreinterpret_p64_u64(_a), 0); poly64_t b = vget_lane_p64(vreinterpret_p64_u64(_b), 0); -#if defined(_MSC_VER) - __n64 a1 = {a}, b1 = {b}; - return vreinterpretq_u64_p128(vmull_p64(a1, b1)); -#else return vreinterpretq_u64_p128(vmull_p64(a, b)); -#endif } #else // ARMv7 polyfill // ARMv7/some A64 lacks vmull_p64, but it has vmull_p8. @@ -964,7534 +7137,34 @@ static uint64x2_t _sse2neon_vmull_p64(uint64x1_t _a, uint64x1_t _b) } #endif // ARMv7 polyfill -// C equivalent: -// __m128i _mm_shuffle_epi32_default(__m128i a, -// __constrange(0, 255) int imm) { -// __m128i ret; -// ret[0] = a[imm & 0x3]; ret[1] = a[(imm >> 2) & 0x3]; -// ret[2] = a[(imm >> 4) & 0x03]; ret[3] = a[(imm >> 6) & 0x03]; -// return ret; -// } -#define _mm_shuffle_epi32_default(a, imm) \ - vreinterpretq_m128i_s32(vsetq_lane_s32( \ - vgetq_lane_s32(vreinterpretq_s32_m128i(a), ((imm) >> 6) & 0x3), \ - vsetq_lane_s32( \ - vgetq_lane_s32(vreinterpretq_s32_m128i(a), ((imm) >> 4) & 0x3), \ - vsetq_lane_s32(vgetq_lane_s32(vreinterpretq_s32_m128i(a), \ - ((imm) >> 2) & 0x3), \ - vmovq_n_s32(vgetq_lane_s32( \ - vreinterpretq_s32_m128i(a), (imm) & (0x3))), \ - 1), \ - 2), \ - 3)) - -// Takes the upper 64 bits of a and places it in the low end of the result -// Takes the lower 64 bits of a and places it into the high end of the result. -FORCE_INLINE __m128i _mm_shuffle_epi_1032(__m128i a) -{ - int32x2_t a32 = vget_high_s32(vreinterpretq_s32_m128i(a)); - int32x2_t a10 = vget_low_s32(vreinterpretq_s32_m128i(a)); - return vreinterpretq_m128i_s32(vcombine_s32(a32, a10)); -} - -// takes the lower two 32-bit values from a and swaps them and places in low end -// of result takes the higher two 32 bit values from a and swaps them and places -// in high end of result. -FORCE_INLINE __m128i _mm_shuffle_epi_2301(__m128i a) -{ - int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); - int32x2_t a23 = vrev64_s32(vget_high_s32(vreinterpretq_s32_m128i(a))); - return vreinterpretq_m128i_s32(vcombine_s32(a01, a23)); -} - -// rotates the least significant 32 bits into the most significant 32 bits, and -// shifts the rest down -FORCE_INLINE __m128i _mm_shuffle_epi_0321(__m128i a) -{ - return vreinterpretq_m128i_s32( - vextq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(a), 1)); -} - -// rotates the most significant 32 bits into the least significant 32 bits, and -// shifts the rest up -FORCE_INLINE __m128i _mm_shuffle_epi_2103(__m128i a) -{ - return vreinterpretq_m128i_s32( - vextq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(a), 3)); -} - -// gets the lower 64 bits of a, and places it in the upper 64 bits -// gets the lower 64 bits of a and places it in the lower 64 bits -FORCE_INLINE __m128i _mm_shuffle_epi_1010(__m128i a) -{ - int32x2_t a10 = vget_low_s32(vreinterpretq_s32_m128i(a)); - return vreinterpretq_m128i_s32(vcombine_s32(a10, a10)); -} - -// gets the lower 64 bits of a, swaps the 0 and 1 elements, and places it in the -// lower 64 bits gets the lower 64 bits of a, and places it in the upper 64 bits -FORCE_INLINE __m128i _mm_shuffle_epi_1001(__m128i a) -{ - int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); - int32x2_t a10 = vget_low_s32(vreinterpretq_s32_m128i(a)); - return vreinterpretq_m128i_s32(vcombine_s32(a01, a10)); -} - -// gets the lower 64 bits of a, swaps the 0 and 1 elements and places it in the -// upper 64 bits gets the lower 64 bits of a, swaps the 0 and 1 elements, and -// places it in the lower 64 bits -FORCE_INLINE __m128i _mm_shuffle_epi_0101(__m128i a) -{ - int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); - return vreinterpretq_m128i_s32(vcombine_s32(a01, a01)); -} - -FORCE_INLINE __m128i _mm_shuffle_epi_2211(__m128i a) -{ - int32x2_t a11 = vdup_lane_s32(vget_low_s32(vreinterpretq_s32_m128i(a)), 1); - int32x2_t a22 = vdup_lane_s32(vget_high_s32(vreinterpretq_s32_m128i(a)), 0); - return vreinterpretq_m128i_s32(vcombine_s32(a11, a22)); -} - -FORCE_INLINE __m128i _mm_shuffle_epi_0122(__m128i a) -{ - int32x2_t a22 = vdup_lane_s32(vget_high_s32(vreinterpretq_s32_m128i(a)), 0); - int32x2_t a01 = vrev64_s32(vget_low_s32(vreinterpretq_s32_m128i(a))); - return vreinterpretq_m128i_s32(vcombine_s32(a22, a01)); -} - -FORCE_INLINE __m128i _mm_shuffle_epi_3332(__m128i a) -{ - int32x2_t a32 = vget_high_s32(vreinterpretq_s32_m128i(a)); - int32x2_t a33 = vdup_lane_s32(vget_high_s32(vreinterpretq_s32_m128i(a)), 1); - return vreinterpretq_m128i_s32(vcombine_s32(a32, a33)); -} - -#if defined(__aarch64__) || defined(_M_ARM64) -#define _mm_shuffle_epi32_splat(a, imm) \ - vreinterpretq_m128i_s32(vdupq_laneq_s32(vreinterpretq_s32_m128i(a), (imm))) -#else -#define _mm_shuffle_epi32_splat(a, imm) \ - vreinterpretq_m128i_s32( \ - vdupq_n_s32(vgetq_lane_s32(vreinterpretq_s32_m128i(a), (imm)))) -#endif - -// NEON does not support a general purpose permute intrinsic. -// Shuffle single-precision (32-bit) floating-point elements in a using the -// control in imm8, and store the results in dst. -// -// C equivalent: -// __m128 _mm_shuffle_ps_default(__m128 a, __m128 b, -// __constrange(0, 255) int imm) { -// __m128 ret; -// ret[0] = a[imm & 0x3]; ret[1] = a[(imm >> 2) & 0x3]; -// ret[2] = b[(imm >> 4) & 0x03]; ret[3] = b[(imm >> 6) & 0x03]; -// return ret; -// } -// -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shuffle_ps -#define _mm_shuffle_ps_default(a, b, imm) \ - vreinterpretq_m128_f32(vsetq_lane_f32( \ - vgetq_lane_f32(vreinterpretq_f32_m128(b), ((imm) >> 6) & 0x3), \ - vsetq_lane_f32( \ - vgetq_lane_f32(vreinterpretq_f32_m128(b), ((imm) >> 4) & 0x3), \ - vsetq_lane_f32( \ - vgetq_lane_f32(vreinterpretq_f32_m128(a), ((imm) >> 2) & 0x3), \ - vmovq_n_f32( \ - vgetq_lane_f32(vreinterpretq_f32_m128(a), (imm) & (0x3))), \ - 1), \ - 2), \ - 3)) - -// Shuffle 16-bit integers in the low 64 bits of a using the control in imm8. -// Store the results in the low 64 bits of dst, with the high 64 bits being -// copied from a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shufflelo_epi16 -#define _mm_shufflelo_epi16_function(a, imm) \ - _sse2neon_define1( \ - __m128i, a, int16x8_t ret = vreinterpretq_s16_m128i(_a); \ - int16x4_t lowBits = vget_low_s16(ret); \ - ret = vsetq_lane_s16(vget_lane_s16(lowBits, (imm) & (0x3)), ret, 0); \ - ret = vsetq_lane_s16(vget_lane_s16(lowBits, ((imm) >> 2) & 0x3), ret, \ - 1); \ - ret = vsetq_lane_s16(vget_lane_s16(lowBits, ((imm) >> 4) & 0x3), ret, \ - 2); \ - ret = vsetq_lane_s16(vget_lane_s16(lowBits, ((imm) >> 6) & 0x3), ret, \ - 3); \ - _sse2neon_return(vreinterpretq_m128i_s16(ret));) - -// Shuffle 16-bit integers in the high 64 bits of a using the control in imm8. -// Store the results in the high 64 bits of dst, with the low 64 bits being -// copied from a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shufflehi_epi16 -#define _mm_shufflehi_epi16_function(a, imm) \ - _sse2neon_define1( \ - __m128i, a, int16x8_t ret = vreinterpretq_s16_m128i(_a); \ - int16x4_t highBits = vget_high_s16(ret); \ - ret = vsetq_lane_s16(vget_lane_s16(highBits, (imm) & (0x3)), ret, 4); \ - ret = vsetq_lane_s16(vget_lane_s16(highBits, ((imm) >> 2) & 0x3), ret, \ - 5); \ - ret = vsetq_lane_s16(vget_lane_s16(highBits, ((imm) >> 4) & 0x3), ret, \ - 6); \ - ret = vsetq_lane_s16(vget_lane_s16(highBits, ((imm) >> 6) & 0x3), ret, \ - 7); \ - _sse2neon_return(vreinterpretq_m128i_s16(ret));) - -/* MMX */ - -//_mm_empty is a no-op on arm -FORCE_INLINE void _mm_empty(void) {} - -/* SSE */ - -// Add packed single-precision (32-bit) floating-point elements in a and b, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_ps -FORCE_INLINE __m128 _mm_add_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_f32( - vaddq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Add the lower single-precision (32-bit) floating-point element in a and b, -// store the result in the lower element of dst, and copy the upper 3 packed -// elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_ss -FORCE_INLINE __m128 _mm_add_ss(__m128 a, __m128 b) -{ - float32_t b0 = vgetq_lane_f32(vreinterpretq_f32_m128(b), 0); - float32x4_t value = vsetq_lane_f32(b0, vdupq_n_f32(0), 0); - // the upper values in the result must be the remnants of . - return vreinterpretq_m128_f32(vaddq_f32(a, value)); -} - -// Compute the bitwise AND of packed single-precision (32-bit) floating-point -// elements in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_and_ps -FORCE_INLINE __m128 _mm_and_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_s32( - vandq_s32(vreinterpretq_s32_m128(a), vreinterpretq_s32_m128(b))); -} - -// Compute the bitwise NOT of packed single-precision (32-bit) floating-point -// elements in a and then AND with b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_andnot_ps -FORCE_INLINE __m128 _mm_andnot_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_s32( - vbicq_s32(vreinterpretq_s32_m128(b), - vreinterpretq_s32_m128(a))); // *NOTE* argument swap -} - -// Average packed unsigned 16-bit integers in a and b, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_avg_pu16 -FORCE_INLINE __m64 _mm_avg_pu16(__m64 a, __m64 b) -{ - return vreinterpret_m64_u16( - vrhadd_u16(vreinterpret_u16_m64(a), vreinterpret_u16_m64(b))); -} - -// Average packed unsigned 8-bit integers in a and b, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_avg_pu8 -FORCE_INLINE __m64 _mm_avg_pu8(__m64 a, __m64 b) -{ - return vreinterpret_m64_u8( - vrhadd_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for equality, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_ps -FORCE_INLINE __m128 _mm_cmpeq_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32( - vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for equality, store the result in the lower element of dst, and copy the -// upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_ss -FORCE_INLINE __m128 _mm_cmpeq_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpeq_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for greater-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpge_ps -FORCE_INLINE __m128 _mm_cmpge_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32( - vcgeq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for greater-than-or-equal, store the result in the lower element of dst, -// and copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpge_ss -FORCE_INLINE __m128 _mm_cmpge_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpge_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for greater-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_ps -FORCE_INLINE __m128 _mm_cmpgt_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32( - vcgtq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for greater-than, store the result in the lower element of dst, and copy -// the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_ss -FORCE_INLINE __m128 _mm_cmpgt_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpgt_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for less-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmple_ps -FORCE_INLINE __m128 _mm_cmple_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32( - vcleq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for less-than-or-equal, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmple_ss -FORCE_INLINE __m128 _mm_cmple_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmple_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for less-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_ps -FORCE_INLINE __m128 _mm_cmplt_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32( - vcltq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for less-than, store the result in the lower element of dst, and copy the -// upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_ss -FORCE_INLINE __m128 _mm_cmplt_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmplt_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for not-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpneq_ps -FORCE_INLINE __m128 _mm_cmpneq_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32(vmvnq_u32( - vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for not-equal, store the result in the lower element of dst, and copy the -// upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpneq_ss -FORCE_INLINE __m128 _mm_cmpneq_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpneq_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for not-greater-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnge_ps -FORCE_INLINE __m128 _mm_cmpnge_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32(vmvnq_u32( - vcgeq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for not-greater-than-or-equal, store the result in the lower element of -// dst, and copy the upper 3 packed elements from a to the upper elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnge_ss -FORCE_INLINE __m128 _mm_cmpnge_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpnge_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for not-greater-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpngt_ps -FORCE_INLINE __m128 _mm_cmpngt_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32(vmvnq_u32( - vcgtq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for not-greater-than, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpngt_ss -FORCE_INLINE __m128 _mm_cmpngt_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpngt_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for not-less-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnle_ps -FORCE_INLINE __m128 _mm_cmpnle_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32(vmvnq_u32( - vcleq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for not-less-than-or-equal, store the result in the lower element of dst, -// and copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnle_ss -FORCE_INLINE __m128 _mm_cmpnle_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpnle_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// for not-less-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnlt_ps -FORCE_INLINE __m128 _mm_cmpnlt_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_u32(vmvnq_u32( - vcltq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b for not-less-than, store the result in the lower element of dst, and copy -// the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnlt_ss -FORCE_INLINE __m128 _mm_cmpnlt_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpnlt_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// to see if neither is NaN, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpord_ps -// -// See also: -// http://stackoverflow.com/questions/8627331/what-does-ordered-unordered-comparison-mean -// http://stackoverflow.com/questions/29349621/neon-isnanval-intrinsics -FORCE_INLINE __m128 _mm_cmpord_ps(__m128 a, __m128 b) -{ - // Note: NEON does not have ordered compare builtin - // Need to compare a eq a and b eq b to check for NaN - // Do AND of results to get final - uint32x4_t ceqaa = - vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); - uint32x4_t ceqbb = - vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); - return vreinterpretq_m128_u32(vandq_u32(ceqaa, ceqbb)); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b to see if neither is NaN, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpord_ss -FORCE_INLINE __m128 _mm_cmpord_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpord_ps(a, b)); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b -// to see if either is NaN, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpunord_ps -FORCE_INLINE __m128 _mm_cmpunord_ps(__m128 a, __m128 b) -{ - uint32x4_t f32a = - vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a)); - uint32x4_t f32b = - vceqq_f32(vreinterpretq_f32_m128(b), vreinterpretq_f32_m128(b)); - return vreinterpretq_m128_u32(vmvnq_u32(vandq_u32(f32a, f32b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b to see if either is NaN, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpunord_ss -FORCE_INLINE __m128 _mm_cmpunord_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_cmpunord_ps(a, b)); -} - -// Compare the lower single-precision (32-bit) floating-point element in a and b -// for equality, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comieq_ss -FORCE_INLINE int _mm_comieq_ss(__m128 a, __m128 b) -{ - uint32x4_t a_eq_b = - vceqq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); - return vgetq_lane_u32(a_eq_b, 0) & 0x1; -} - -// Compare the lower single-precision (32-bit) floating-point element in a and b -// for greater-than-or-equal, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comige_ss -FORCE_INLINE int _mm_comige_ss(__m128 a, __m128 b) -{ - uint32x4_t a_ge_b = - vcgeq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); - return vgetq_lane_u32(a_ge_b, 0) & 0x1; -} - -// Compare the lower single-precision (32-bit) floating-point element in a and b -// for greater-than, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comigt_ss -FORCE_INLINE int _mm_comigt_ss(__m128 a, __m128 b) -{ - uint32x4_t a_gt_b = - vcgtq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); - return vgetq_lane_u32(a_gt_b, 0) & 0x1; -} - -// Compare the lower single-precision (32-bit) floating-point element in a and b -// for less-than-or-equal, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comile_ss -FORCE_INLINE int _mm_comile_ss(__m128 a, __m128 b) -{ - uint32x4_t a_le_b = - vcleq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); - return vgetq_lane_u32(a_le_b, 0) & 0x1; -} - -// Compare the lower single-precision (32-bit) floating-point element in a and b -// for less-than, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comilt_ss -FORCE_INLINE int _mm_comilt_ss(__m128 a, __m128 b) -{ - uint32x4_t a_lt_b = - vcltq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b)); - return vgetq_lane_u32(a_lt_b, 0) & 0x1; -} - -// Compare the lower single-precision (32-bit) floating-point element in a and b -// for not-equal, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comineq_ss -FORCE_INLINE int _mm_comineq_ss(__m128 a, __m128 b) -{ - return !_mm_comieq_ss(a, b); -} - -// Convert packed signed 32-bit integers in b to packed single-precision -// (32-bit) floating-point elements, store the results in the lower 2 elements -// of dst, and copy the upper 2 packed elements from a to the upper elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvt_pi2ps -FORCE_INLINE __m128 _mm_cvt_pi2ps(__m128 a, __m64 b) -{ - return vreinterpretq_m128_f32( - vcombine_f32(vcvt_f32_s32(vreinterpret_s32_m64(b)), - vget_high_f32(vreinterpretq_f32_m128(a)))); -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 32-bit integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvt_ps2pi -FORCE_INLINE __m64 _mm_cvt_ps2pi(__m128 a) -{ -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - return vreinterpret_m64_s32( - vget_low_s32(vcvtnq_s32_f32(vrndiq_f32(vreinterpretq_f32_m128(a))))); -#else - return vreinterpret_m64_s32(vcvt_s32_f32(vget_low_f32( - vreinterpretq_f32_m128(_mm_round_ps(a, _MM_FROUND_CUR_DIRECTION))))); -#endif -} - -// Convert the signed 32-bit integer b to a single-precision (32-bit) -// floating-point element, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvt_si2ss -FORCE_INLINE __m128 _mm_cvt_si2ss(__m128 a, int b) -{ - return vreinterpretq_m128_f32( - vsetq_lane_f32((float) b, vreinterpretq_f32_m128(a), 0)); -} - -// Convert the lower single-precision (32-bit) floating-point element in a to a -// 32-bit integer, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvt_ss2si -FORCE_INLINE int _mm_cvt_ss2si(__m128 a) -{ -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - return vgetq_lane_s32(vcvtnq_s32_f32(vrndiq_f32(vreinterpretq_f32_m128(a))), - 0); -#else - float32_t data = vgetq_lane_f32( - vreinterpretq_f32_m128(_mm_round_ps(a, _MM_FROUND_CUR_DIRECTION)), 0); - return (int32_t) data; -#endif -} - -// Convert packed 16-bit integers in a to packed single-precision (32-bit) -// floating-point elements, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpi16_ps -FORCE_INLINE __m128 _mm_cvtpi16_ps(__m64 a) -{ - return vreinterpretq_m128_f32( - vcvtq_f32_s32(vmovl_s16(vreinterpret_s16_m64(a)))); -} - -// Convert packed 32-bit integers in b to packed single-precision (32-bit) -// floating-point elements, store the results in the lower 2 elements of dst, -// and copy the upper 2 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpi32_ps -FORCE_INLINE __m128 _mm_cvtpi32_ps(__m128 a, __m64 b) -{ - return vreinterpretq_m128_f32( - vcombine_f32(vcvt_f32_s32(vreinterpret_s32_m64(b)), - vget_high_f32(vreinterpretq_f32_m128(a)))); -} - -// Convert packed signed 32-bit integers in a to packed single-precision -// (32-bit) floating-point elements, store the results in the lower 2 elements -// of dst, then convert the packed signed 32-bit integers in b to -// single-precision (32-bit) floating-point element, and store the results in -// the upper 2 elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpi32x2_ps -FORCE_INLINE __m128 _mm_cvtpi32x2_ps(__m64 a, __m64 b) -{ - return vreinterpretq_m128_f32(vcvtq_f32_s32( - vcombine_s32(vreinterpret_s32_m64(a), vreinterpret_s32_m64(b)))); -} - -// Convert the lower packed 8-bit integers in a to packed single-precision -// (32-bit) floating-point elements, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpi8_ps -FORCE_INLINE __m128 _mm_cvtpi8_ps(__m64 a) -{ - return vreinterpretq_m128_f32(vcvtq_f32_s32( - vmovl_s16(vget_low_s16(vmovl_s8(vreinterpret_s8_m64(a)))))); -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 16-bit integers, and store the results in dst. Note: this intrinsic -// will generate 0x7FFF, rather than 0x8000, for input values between 0x7FFF and -// 0x7FFFFFFF. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_pi16 -FORCE_INLINE __m64 _mm_cvtps_pi16(__m128 a) -{ - return vreinterpret_m64_s16( - vqmovn_s32(vreinterpretq_s32_m128i(_mm_cvtps_epi32(a)))); -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 32-bit integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_pi32 -#define _mm_cvtps_pi32(a) _mm_cvt_ps2pi(a) - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 8-bit integers, and store the results in lower 4 elements of dst. -// Note: this intrinsic will generate 0x7F, rather than 0x80, for input values -// between 0x7F and 0x7FFFFFFF. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_pi8 -FORCE_INLINE __m64 _mm_cvtps_pi8(__m128 a) -{ - return vreinterpret_m64_s8(vqmovn_s16( - vcombine_s16(vreinterpret_s16_m64(_mm_cvtps_pi16(a)), vdup_n_s16(0)))); -} - -// Convert packed unsigned 16-bit integers in a to packed single-precision -// (32-bit) floating-point elements, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpu16_ps -FORCE_INLINE __m128 _mm_cvtpu16_ps(__m64 a) -{ - return vreinterpretq_m128_f32( - vcvtq_f32_u32(vmovl_u16(vreinterpret_u16_m64(a)))); -} - -// Convert the lower packed unsigned 8-bit integers in a to packed -// single-precision (32-bit) floating-point elements, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpu8_ps -FORCE_INLINE __m128 _mm_cvtpu8_ps(__m64 a) -{ - return vreinterpretq_m128_f32(vcvtq_f32_u32( - vmovl_u16(vget_low_u16(vmovl_u8(vreinterpret_u8_m64(a)))))); -} - -// Convert the signed 32-bit integer b to a single-precision (32-bit) -// floating-point element, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi32_ss -#define _mm_cvtsi32_ss(a, b) _mm_cvt_si2ss(a, b) - -// Convert the signed 64-bit integer b to a single-precision (32-bit) -// floating-point element, store the result in the lower element of dst, and -// copy the upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi64_ss -FORCE_INLINE __m128 _mm_cvtsi64_ss(__m128 a, int64_t b) -{ - return vreinterpretq_m128_f32( - vsetq_lane_f32((float) b, vreinterpretq_f32_m128(a), 0)); -} - -// Copy the lower single-precision (32-bit) floating-point element of a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtss_f32 -FORCE_INLINE float _mm_cvtss_f32(__m128 a) -{ - return vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); -} - -// Convert the lower single-precision (32-bit) floating-point element in a to a -// 32-bit integer, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtss_si32 -#define _mm_cvtss_si32(a) _mm_cvt_ss2si(a) - -// Convert the lower single-precision (32-bit) floating-point element in a to a -// 64-bit integer, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtss_si64 -FORCE_INLINE int64_t _mm_cvtss_si64(__m128 a) -{ -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - return (int64_t) vgetq_lane_f32(vrndiq_f32(vreinterpretq_f32_m128(a)), 0); -#else - float32_t data = vgetq_lane_f32( - vreinterpretq_f32_m128(_mm_round_ps(a, _MM_FROUND_CUR_DIRECTION)), 0); - return (int64_t) data; -#endif -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 32-bit integers with truncation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtt_ps2pi -FORCE_INLINE __m64 _mm_cvtt_ps2pi(__m128 a) -{ - return vreinterpret_m64_s32( - vget_low_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a)))); -} - -// Convert the lower single-precision (32-bit) floating-point element in a to a -// 32-bit integer with truncation, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtt_ss2si -FORCE_INLINE int _mm_cvtt_ss2si(__m128 a) -{ - return vgetq_lane_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a)), 0); -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 32-bit integers with truncation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttps_pi32 -#define _mm_cvttps_pi32(a) _mm_cvtt_ps2pi(a) - -// Convert the lower single-precision (32-bit) floating-point element in a to a -// 32-bit integer with truncation, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttss_si32 -#define _mm_cvttss_si32(a) _mm_cvtt_ss2si(a) - -// Convert the lower single-precision (32-bit) floating-point element in a to a -// 64-bit integer with truncation, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttss_si64 -FORCE_INLINE int64_t _mm_cvttss_si64(__m128 a) -{ - return (int64_t) vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); -} - -// Divide packed single-precision (32-bit) floating-point elements in a by -// packed elements in b, and store the results in dst. -// Due to ARMv7-A NEON's lack of a precise division intrinsic, we implement -// division by multiplying a by b's reciprocal before using the Newton-Raphson -// method to approximate the results. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_div_ps -FORCE_INLINE __m128 _mm_div_ps(__m128 a, __m128 b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vdivq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -#else - float32x4_t recip = vrecpeq_f32(vreinterpretq_f32_m128(b)); - recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(b))); - // Additional Netwon-Raphson iteration for accuracy - recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(b))); - return vreinterpretq_m128_f32(vmulq_f32(vreinterpretq_f32_m128(a), recip)); -#endif -} - -// Divide the lower single-precision (32-bit) floating-point element in a by the -// lower single-precision (32-bit) floating-point element in b, store the result -// in the lower element of dst, and copy the upper 3 packed elements from a to -// the upper elements of dst. -// Warning: ARMv7-A does not produce the same result compared to Intel and not -// IEEE-compliant. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_div_ss -FORCE_INLINE __m128 _mm_div_ss(__m128 a, __m128 b) -{ - float32_t value = - vgetq_lane_f32(vreinterpretq_f32_m128(_mm_div_ps(a, b)), 0); - return vreinterpretq_m128_f32( - vsetq_lane_f32(value, vreinterpretq_f32_m128(a), 0)); -} - -// Extract a 16-bit integer from a, selected with imm8, and store the result in -// the lower element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_extract_pi16 -#define _mm_extract_pi16(a, imm) \ - (int32_t) vget_lane_u16(vreinterpret_u16_m64(a), (imm)) - -// Free aligned memory that was allocated with _mm_malloc. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_free -#if !defined(SSE2NEON_ALLOC_DEFINED) -FORCE_INLINE void _mm_free(void *addr) -{ - free(addr); -} -#endif - -FORCE_INLINE uint64_t _sse2neon_get_fpcr(void) -{ - uint64_t value; -#if defined(_MSC_VER) - value = _ReadStatusReg(ARM64_FPCR); -#else - __asm__ __volatile__("mrs %0, FPCR" : "=r"(value)); /* read */ -#endif - return value; -} - -FORCE_INLINE void _sse2neon_set_fpcr(uint64_t value) -{ -#if defined(_MSC_VER) - _WriteStatusReg(ARM64_FPCR, value); -#else - __asm__ __volatile__("msr FPCR, %0" ::"r"(value)); /* write */ -#endif -} - -// Macro: Get the flush zero bits from the MXCSR control and status register. -// The flush zero may contain any of the following flags: _MM_FLUSH_ZERO_ON or -// _MM_FLUSH_ZERO_OFF -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_MM_GET_FLUSH_ZERO_MODE -FORCE_INLINE unsigned int _sse2neon_mm_get_flush_zero_mode(void) -{ - union { - fpcr_bitfield field; -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t value; -#else - uint32_t value; -#endif - } r; - -#if defined(__aarch64__) || defined(_M_ARM64) - r.value = _sse2neon_get_fpcr(); -#else - __asm__ __volatile__("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ -#endif - - return r.field.bit24 ? _MM_FLUSH_ZERO_ON : _MM_FLUSH_ZERO_OFF; -} - -// Macro: Get the rounding mode bits from the MXCSR control and status register. -// The rounding mode may contain any of the following flags: _MM_ROUND_NEAREST, -// _MM_ROUND_DOWN, _MM_ROUND_UP, _MM_ROUND_TOWARD_ZERO -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_MM_GET_ROUNDING_MODE -FORCE_INLINE unsigned int _MM_GET_ROUNDING_MODE(void) -{ - union { - fpcr_bitfield field; -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t value; -#else - uint32_t value; -#endif - } r; - -#if defined(__aarch64__) || defined(_M_ARM64) - r.value = _sse2neon_get_fpcr(); -#else - __asm__ __volatile__("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ -#endif - - if (r.field.bit22) { - return r.field.bit23 ? _MM_ROUND_TOWARD_ZERO : _MM_ROUND_UP; - } else { - return r.field.bit23 ? _MM_ROUND_DOWN : _MM_ROUND_NEAREST; - } -} - -// Copy a to dst, and insert the 16-bit integer i into dst at the location -// specified by imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_insert_pi16 -#define _mm_insert_pi16(a, b, imm) \ - vreinterpret_m64_s16(vset_lane_s16((b), vreinterpret_s16_m64(a), (imm))) - -// Load 128-bits (composed of 4 packed single-precision (32-bit) floating-point -// elements) from memory into dst. mem_addr must be aligned on a 16-byte -// boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_ps -FORCE_INLINE __m128 _mm_load_ps(const float *p) -{ - return vreinterpretq_m128_f32(vld1q_f32(p)); -} - -// Load a single-precision (32-bit) floating-point element from memory into all -// elements of dst. -// -// dst[31:0] := MEM[mem_addr+31:mem_addr] -// dst[63:32] := MEM[mem_addr+31:mem_addr] -// dst[95:64] := MEM[mem_addr+31:mem_addr] -// dst[127:96] := MEM[mem_addr+31:mem_addr] -// -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_ps1 -#define _mm_load_ps1 _mm_load1_ps - -// Load a single-precision (32-bit) floating-point element from memory into the -// lower of dst, and zero the upper 3 elements. mem_addr does not need to be -// aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_ss -FORCE_INLINE __m128 _mm_load_ss(const float *p) -{ - return vreinterpretq_m128_f32(vsetq_lane_f32(*p, vdupq_n_f32(0), 0)); -} - -// Load a single-precision (32-bit) floating-point element from memory into all -// elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load1_ps -FORCE_INLINE __m128 _mm_load1_ps(const float *p) -{ - return vreinterpretq_m128_f32(vld1q_dup_f32(p)); -} - -// Load 2 single-precision (32-bit) floating-point elements from memory into the -// upper 2 elements of dst, and copy the lower 2 elements from a to dst. -// mem_addr does not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadh_pi -FORCE_INLINE __m128 _mm_loadh_pi(__m128 a, __m64 const *p) -{ - return vreinterpretq_m128_f32( - vcombine_f32(vget_low_f32(a), vld1_f32((const float32_t *) p))); -} - -// Load 2 single-precision (32-bit) floating-point elements from memory into the -// lower 2 elements of dst, and copy the upper 2 elements from a to dst. -// mem_addr does not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadl_pi -FORCE_INLINE __m128 _mm_loadl_pi(__m128 a, __m64 const *p) -{ - return vreinterpretq_m128_f32( - vcombine_f32(vld1_f32((const float32_t *) p), vget_high_f32(a))); -} - -// Load 4 single-precision (32-bit) floating-point elements from memory into dst -// in reverse order. mem_addr must be aligned on a 16-byte boundary or a -// general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadr_ps -FORCE_INLINE __m128 _mm_loadr_ps(const float *p) -{ - float32x4_t v = vrev64q_f32(vld1q_f32(p)); - return vreinterpretq_m128_f32(vextq_f32(v, v, 2)); -} - -// Load 128-bits (composed of 4 packed single-precision (32-bit) floating-point -// elements) from memory into dst. mem_addr does not need to be aligned on any -// particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadu_ps -FORCE_INLINE __m128 _mm_loadu_ps(const float *p) -{ - // for neon, alignment doesn't matter, so _mm_load_ps and _mm_loadu_ps are - // equivalent for neon - return vreinterpretq_m128_f32(vld1q_f32(p)); -} - -// Load unaligned 16-bit integer from memory into the first element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadu_si16 -FORCE_INLINE __m128i _mm_loadu_si16(const void *p) -{ - return vreinterpretq_m128i_s16( - vsetq_lane_s16(*(const int16_t *) p, vdupq_n_s16(0), 0)); -} - -// Load unaligned 64-bit integer from memory into the first element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadu_si64 -FORCE_INLINE __m128i _mm_loadu_si64(const void *p) -{ - return vreinterpretq_m128i_s64( - vcombine_s64(vld1_s64((const int64_t *) p), vdup_n_s64(0))); -} - -// Allocate size bytes of memory, aligned to the alignment specified in align, -// and return a pointer to the allocated memory. _mm_free should be used to free -// memory that is allocated with _mm_malloc. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_malloc -#if !defined(SSE2NEON_ALLOC_DEFINED) -FORCE_INLINE void *_mm_malloc(size_t size, size_t align) -{ - void *ptr; - if (align == 1) - return malloc(size); - if (align == 2 || (sizeof(void *) == 8 && align == 4)) - align = sizeof(void *); - if (!posix_memalign(&ptr, align, size)) - return ptr; - return NULL; -} -#endif - -// Conditionally store 8-bit integer elements from a into memory using mask -// (elements are not stored when the highest bit is not set in the corresponding -// element) and a non-temporal memory hint. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_maskmove_si64 -FORCE_INLINE void _mm_maskmove_si64(__m64 a, __m64 mask, char *mem_addr) -{ - int8x8_t shr_mask = vshr_n_s8(vreinterpret_s8_m64(mask), 7); - __m128 b = _mm_load_ps((const float *) mem_addr); - int8x8_t masked = - vbsl_s8(vreinterpret_u8_s8(shr_mask), vreinterpret_s8_m64(a), - vreinterpret_s8_u64(vget_low_u64(vreinterpretq_u64_m128(b)))); - vst1_s8((int8_t *) mem_addr, masked); -} - -// Conditionally store 8-bit integer elements from a into memory using mask -// (elements are not stored when the highest bit is not set in the corresponding -// element) and a non-temporal memory hint. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_maskmovq -#define _m_maskmovq(a, mask, mem_addr) _mm_maskmove_si64(a, mask, mem_addr) - -// Compare packed signed 16-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_pi16 -FORCE_INLINE __m64 _mm_max_pi16(__m64 a, __m64 b) -{ - return vreinterpret_m64_s16( - vmax_s16(vreinterpret_s16_m64(a), vreinterpret_s16_m64(b))); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b, -// and store packed maximum values in dst. dst does not follow the IEEE Standard -// for Floating-Point Arithmetic (IEEE 754) maximum value when inputs are NaN or -// signed-zero values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_ps -FORCE_INLINE __m128 _mm_max_ps(__m128 a, __m128 b) -{ -#if SSE2NEON_PRECISE_MINMAX - float32x4_t _a = vreinterpretq_f32_m128(a); - float32x4_t _b = vreinterpretq_f32_m128(b); - return vreinterpretq_m128_f32(vbslq_f32(vcgtq_f32(_a, _b), _a, _b)); -#else - return vreinterpretq_m128_f32( - vmaxq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -#endif -} - -// Compare packed unsigned 8-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_pu8 -FORCE_INLINE __m64 _mm_max_pu8(__m64 a, __m64 b) -{ - return vreinterpret_m64_u8( - vmax_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b, store the maximum value in the lower element of dst, and copy the upper 3 -// packed elements from a to the upper element of dst. dst does not follow the -// IEEE Standard for Floating-Point Arithmetic (IEEE 754) maximum value when -// inputs are NaN or signed-zero values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_ss -FORCE_INLINE __m128 _mm_max_ss(__m128 a, __m128 b) -{ - float32_t value = vgetq_lane_f32(_mm_max_ps(a, b), 0); - return vreinterpretq_m128_f32( - vsetq_lane_f32(value, vreinterpretq_f32_m128(a), 0)); -} - -// Compare packed signed 16-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_pi16 -FORCE_INLINE __m64 _mm_min_pi16(__m64 a, __m64 b) -{ - return vreinterpret_m64_s16( - vmin_s16(vreinterpret_s16_m64(a), vreinterpret_s16_m64(b))); -} - -// Compare packed single-precision (32-bit) floating-point elements in a and b, -// and store packed minimum values in dst. dst does not follow the IEEE Standard -// for Floating-Point Arithmetic (IEEE 754) minimum value when inputs are NaN or -// signed-zero values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_ps -FORCE_INLINE __m128 _mm_min_ps(__m128 a, __m128 b) -{ -#if SSE2NEON_PRECISE_MINMAX - float32x4_t _a = vreinterpretq_f32_m128(a); - float32x4_t _b = vreinterpretq_f32_m128(b); - return vreinterpretq_m128_f32(vbslq_f32(vcltq_f32(_a, _b), _a, _b)); -#else - return vreinterpretq_m128_f32( - vminq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -#endif -} - -// Compare packed unsigned 8-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_pu8 -FORCE_INLINE __m64 _mm_min_pu8(__m64 a, __m64 b) -{ - return vreinterpret_m64_u8( - vmin_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))); -} - -// Compare the lower single-precision (32-bit) floating-point elements in a and -// b, store the minimum value in the lower element of dst, and copy the upper 3 -// packed elements from a to the upper element of dst. dst does not follow the -// IEEE Standard for Floating-Point Arithmetic (IEEE 754) minimum value when -// inputs are NaN or signed-zero values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_ss -FORCE_INLINE __m128 _mm_min_ss(__m128 a, __m128 b) -{ - float32_t value = vgetq_lane_f32(_mm_min_ps(a, b), 0); - return vreinterpretq_m128_f32( - vsetq_lane_f32(value, vreinterpretq_f32_m128(a), 0)); -} - -// Move the lower single-precision (32-bit) floating-point element from b to the -// lower element of dst, and copy the upper 3 packed elements from a to the -// upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_move_ss -FORCE_INLINE __m128 _mm_move_ss(__m128 a, __m128 b) -{ - return vreinterpretq_m128_f32( - vsetq_lane_f32(vgetq_lane_f32(vreinterpretq_f32_m128(b), 0), - vreinterpretq_f32_m128(a), 0)); -} - -// Move the upper 2 single-precision (32-bit) floating-point elements from b to -// the lower 2 elements of dst, and copy the upper 2 elements from a to the -// upper 2 elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movehl_ps -FORCE_INLINE __m128 _mm_movehl_ps(__m128 a, __m128 b) -{ -#if defined(aarch64__) - return vreinterpretq_m128_u64( - vzip2q_u64(vreinterpretq_u64_m128(b), vreinterpretq_u64_m128(a))); -#else - float32x2_t a32 = vget_high_f32(vreinterpretq_f32_m128(a)); - float32x2_t b32 = vget_high_f32(vreinterpretq_f32_m128(b)); - return vreinterpretq_m128_f32(vcombine_f32(b32, a32)); -#endif -} - -// Move the lower 2 single-precision (32-bit) floating-point elements from b to -// the upper 2 elements of dst, and copy the lower 2 elements from a to the -// lower 2 elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movelh_ps -FORCE_INLINE __m128 _mm_movelh_ps(__m128 __A, __m128 __B) -{ - float32x2_t a10 = vget_low_f32(vreinterpretq_f32_m128(__A)); - float32x2_t b10 = vget_low_f32(vreinterpretq_f32_m128(__B)); - return vreinterpretq_m128_f32(vcombine_f32(a10, b10)); -} - -// Create mask from the most significant bit of each 8-bit element in a, and -// store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movemask_pi8 -FORCE_INLINE int _mm_movemask_pi8(__m64 a) -{ - uint8x8_t input = vreinterpret_u8_m64(a); -#if defined(__aarch64__) || defined(_M_ARM64) - static const int8_t shift[8] = {0, 1, 2, 3, 4, 5, 6, 7}; - uint8x8_t tmp = vshr_n_u8(input, 7); - return vaddv_u8(vshl_u8(tmp, vld1_s8(shift))); -#else - // Refer the implementation of `_mm_movemask_epi8` - uint16x4_t high_bits = vreinterpret_u16_u8(vshr_n_u8(input, 7)); - uint32x2_t paired16 = - vreinterpret_u32_u16(vsra_n_u16(high_bits, high_bits, 7)); - uint8x8_t paired32 = - vreinterpret_u8_u32(vsra_n_u32(paired16, paired16, 14)); - return vget_lane_u8(paired32, 0) | ((int) vget_lane_u8(paired32, 4) << 4); -#endif -} - -// Set each bit of mask dst based on the most significant bit of the -// corresponding packed single-precision (32-bit) floating-point element in a. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movemask_ps -FORCE_INLINE int _mm_movemask_ps(__m128 a) -{ - uint32x4_t input = vreinterpretq_u32_m128(a); -#if defined(__aarch64__) || defined(_M_ARM64) - static const int32_t shift[4] = {0, 1, 2, 3}; - uint32x4_t tmp = vshrq_n_u32(input, 31); - return vaddvq_u32(vshlq_u32(tmp, vld1q_s32(shift))); -#else - // Uses the exact same method as _mm_movemask_epi8, see that for details. - // Shift out everything but the sign bits with a 32-bit unsigned shift - // right. - uint64x2_t high_bits = vreinterpretq_u64_u32(vshrq_n_u32(input, 31)); - // Merge the two pairs together with a 64-bit unsigned shift right + add. - uint8x16_t paired = - vreinterpretq_u8_u64(vsraq_n_u64(high_bits, high_bits, 31)); - // Extract the result. - return vgetq_lane_u8(paired, 0) | (vgetq_lane_u8(paired, 8) << 2); -#endif -} - -// Multiply packed single-precision (32-bit) floating-point elements in a and b, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mul_ps -FORCE_INLINE __m128 _mm_mul_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_f32( - vmulq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Multiply the lower single-precision (32-bit) floating-point element in a and -// b, store the result in the lower element of dst, and copy the upper 3 packed -// elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mul_ss -FORCE_INLINE __m128 _mm_mul_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_mul_ps(a, b)); -} - -// Multiply the packed unsigned 16-bit integers in a and b, producing -// intermediate 32-bit integers, and store the high 16 bits of the intermediate -// integers in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mulhi_pu16 -FORCE_INLINE __m64 _mm_mulhi_pu16(__m64 a, __m64 b) -{ - return vreinterpret_m64_u16(vshrn_n_u32( - vmull_u16(vreinterpret_u16_m64(a), vreinterpret_u16_m64(b)), 16)); -} - -// Compute the bitwise OR of packed single-precision (32-bit) floating-point -// elements in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_or_ps -FORCE_INLINE __m128 _mm_or_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_s32( - vorrq_s32(vreinterpretq_s32_m128(a), vreinterpretq_s32_m128(b))); -} - -// Average packed unsigned 8-bit integers in a and b, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pavgb -#define _m_pavgb(a, b) _mm_avg_pu8(a, b) - -// Average packed unsigned 16-bit integers in a and b, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pavgw -#define _m_pavgw(a, b) _mm_avg_pu16(a, b) - -// Extract a 16-bit integer from a, selected with imm8, and store the result in -// the lower element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pextrw -#define _m_pextrw(a, imm) _mm_extract_pi16(a, imm) - -// Copy a to dst, and insert the 16-bit integer i into dst at the location -// specified by imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=m_pinsrw -#define _m_pinsrw(a, i, imm) _mm_insert_pi16(a, i, imm) - -// Compare packed signed 16-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pmaxsw -#define _m_pmaxsw(a, b) _mm_max_pi16(a, b) - -// Compare packed unsigned 8-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pmaxub -#define _m_pmaxub(a, b) _mm_max_pu8(a, b) - -// Compare packed signed 16-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pminsw -#define _m_pminsw(a, b) _mm_min_pi16(a, b) - -// Compare packed unsigned 8-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pminub -#define _m_pminub(a, b) _mm_min_pu8(a, b) - -// Create mask from the most significant bit of each 8-bit element in a, and -// store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pmovmskb -#define _m_pmovmskb(a) _mm_movemask_pi8(a) - -// Multiply the packed unsigned 16-bit integers in a and b, producing -// intermediate 32-bit integers, and store the high 16 bits of the intermediate -// integers in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pmulhuw -#define _m_pmulhuw(a, b) _mm_mulhi_pu16(a, b) - -// Fetch the line of data from memory that contains address p to a location in -// the cache hierarchy specified by the locality hint i. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_prefetch -FORCE_INLINE void _mm_prefetch(char const *p, int i) -{ - (void) i; -#if defined(_MSC_VER) - switch (i) { - case _MM_HINT_NTA: - __prefetch2(p, 1); - break; - case _MM_HINT_T0: - __prefetch2(p, 0); - break; - case _MM_HINT_T1: - __prefetch2(p, 2); - break; - case _MM_HINT_T2: - __prefetch2(p, 4); - break; - } -#else - switch (i) { - case _MM_HINT_NTA: - __builtin_prefetch(p, 0, 0); - break; - case _MM_HINT_T0: - __builtin_prefetch(p, 0, 3); - break; - case _MM_HINT_T1: - __builtin_prefetch(p, 0, 2); - break; - case _MM_HINT_T2: - __builtin_prefetch(p, 0, 1); - break; - } -#endif -} - -// Compute the absolute differences of packed unsigned 8-bit integers in a and -// b, then horizontally sum each consecutive 8 differences to produce four -// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low -// 16 bits of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=m_psadbw -#define _m_psadbw(a, b) _mm_sad_pu8(a, b) - -// Shuffle 16-bit integers in a using the control in imm8, and store the results -// in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_m_pshufw -#define _m_pshufw(a, imm) _mm_shuffle_pi16(a, imm) - -// Compute the approximate reciprocal of packed single-precision (32-bit) -// floating-point elements in a, and store the results in dst. The maximum -// relative error for this approximation is less than 1.5*2^-12. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_rcp_ps -FORCE_INLINE __m128 _mm_rcp_ps(__m128 in) -{ - float32x4_t recip = vrecpeq_f32(vreinterpretq_f32_m128(in)); - recip = vmulq_f32(recip, vrecpsq_f32(recip, vreinterpretq_f32_m128(in))); - return vreinterpretq_m128_f32(recip); -} - -// Compute the approximate reciprocal of the lower single-precision (32-bit) -// floating-point element in a, store the result in the lower element of dst, -// and copy the upper 3 packed elements from a to the upper elements of dst. The -// maximum relative error for this approximation is less than 1.5*2^-12. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_rcp_ss -FORCE_INLINE __m128 _mm_rcp_ss(__m128 a) -{ - return _mm_move_ss(a, _mm_rcp_ps(a)); -} - -// Compute the approximate reciprocal square root of packed single-precision -// (32-bit) floating-point elements in a, and store the results in dst. The -// maximum relative error for this approximation is less than 1.5*2^-12. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_rsqrt_ps -FORCE_INLINE __m128 _mm_rsqrt_ps(__m128 in) -{ - float32x4_t out = vrsqrteq_f32(vreinterpretq_f32_m128(in)); - - // Generate masks for detecting whether input has any 0.0f/-0.0f - // (which becomes positive/negative infinity by IEEE-754 arithmetic rules). - const uint32x4_t pos_inf = vdupq_n_u32(0x7F800000); - const uint32x4_t neg_inf = vdupq_n_u32(0xFF800000); - const uint32x4_t has_pos_zero = - vceqq_u32(pos_inf, vreinterpretq_u32_f32(out)); - const uint32x4_t has_neg_zero = - vceqq_u32(neg_inf, vreinterpretq_u32_f32(out)); - - out = vmulq_f32( - out, vrsqrtsq_f32(vmulq_f32(vreinterpretq_f32_m128(in), out), out)); - - // Set output vector element to infinity/negative-infinity if - // the corresponding input vector element is 0.0f/-0.0f. - out = vbslq_f32(has_pos_zero, (float32x4_t) pos_inf, out); - out = vbslq_f32(has_neg_zero, (float32x4_t) neg_inf, out); - - return vreinterpretq_m128_f32(out); -} - -// Compute the approximate reciprocal square root of the lower single-precision -// (32-bit) floating-point element in a, store the result in the lower element -// of dst, and copy the upper 3 packed elements from a to the upper elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_rsqrt_ss -FORCE_INLINE __m128 _mm_rsqrt_ss(__m128 in) -{ - return vsetq_lane_f32(vgetq_lane_f32(_mm_rsqrt_ps(in), 0), in, 0); -} - -// Compute the absolute differences of packed unsigned 8-bit integers in a and -// b, then horizontally sum each consecutive 8 differences to produce four -// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low -// 16 bits of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sad_pu8 -FORCE_INLINE __m64 _mm_sad_pu8(__m64 a, __m64 b) -{ - uint64x1_t t = vpaddl_u32(vpaddl_u16( - vpaddl_u8(vabd_u8(vreinterpret_u8_m64(a), vreinterpret_u8_m64(b))))); - return vreinterpret_m64_u16( - vset_lane_u16((int) vget_lane_u64(t, 0), vdup_n_u16(0), 0)); -} - -// Macro: Set the flush zero bits of the MXCSR control and status register to -// the value in unsigned 32-bit integer a. The flush zero may contain any of the -// following flags: _MM_FLUSH_ZERO_ON or _MM_FLUSH_ZERO_OFF -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_MM_SET_FLUSH_ZERO_MODE -FORCE_INLINE void _sse2neon_mm_set_flush_zero_mode(unsigned int flag) -{ - // AArch32 Advanced SIMD arithmetic always uses the Flush-to-zero setting, - // regardless of the value of the FZ bit. - union { - fpcr_bitfield field; -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t value; -#else - uint32_t value; -#endif - } r; - -#if defined(__aarch64__) || defined(_M_ARM64) - r.value = _sse2neon_get_fpcr(); -#else - __asm__ __volatile__("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ -#endif - - r.field.bit24 = (flag & _MM_FLUSH_ZERO_MASK) == _MM_FLUSH_ZERO_ON; - -#if defined(__aarch64__) || defined(_M_ARM64) - _sse2neon_set_fpcr(r.value); -#else - __asm__ __volatile__("vmsr FPSCR, %0" ::"r"(r)); /* write */ -#endif -} - -// Set packed single-precision (32-bit) floating-point elements in dst with the -// supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_ps -FORCE_INLINE __m128 _mm_set_ps(float w, float z, float y, float x) -{ - float ALIGN_STRUCT(16) data[4] = {x, y, z, w}; - return vreinterpretq_m128_f32(vld1q_f32(data)); -} - -// Broadcast single-precision (32-bit) floating-point value a to all elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_ps1 -FORCE_INLINE __m128 _mm_set_ps1(float _w) -{ - return vreinterpretq_m128_f32(vdupq_n_f32(_w)); -} - -// Macro: Set the rounding mode bits of the MXCSR control and status register to -// the value in unsigned 32-bit integer a. The rounding mode may contain any of -// the following flags: _MM_ROUND_NEAREST, _MM_ROUND_DOWN, _MM_ROUND_UP, -// _MM_ROUND_TOWARD_ZERO -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_MM_SET_ROUNDING_MODE -FORCE_INLINE void _MM_SET_ROUNDING_MODE(int rounding) -{ - union { - fpcr_bitfield field; -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t value; -#else - uint32_t value; -#endif - } r; - -#if defined(__aarch64__) || defined(_M_ARM64) - r.value = _sse2neon_get_fpcr(); -#else - __asm__ __volatile__("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ -#endif - - switch (rounding) { - case _MM_ROUND_TOWARD_ZERO: - r.field.bit22 = 1; - r.field.bit23 = 1; - break; - case _MM_ROUND_DOWN: - r.field.bit22 = 0; - r.field.bit23 = 1; - break; - case _MM_ROUND_UP: - r.field.bit22 = 1; - r.field.bit23 = 0; - break; - default: //_MM_ROUND_NEAREST - r.field.bit22 = 0; - r.field.bit23 = 0; - } - -#if defined(__aarch64__) || defined(_M_ARM64) - _sse2neon_set_fpcr(r.value); -#else - __asm__ __volatile__("vmsr FPSCR, %0" ::"r"(r)); /* write */ -#endif -} - -// Copy single-precision (32-bit) floating-point element a to the lower element -// of dst, and zero the upper 3 elements. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_ss -FORCE_INLINE __m128 _mm_set_ss(float a) -{ - return vreinterpretq_m128_f32(vsetq_lane_f32(a, vdupq_n_f32(0), 0)); -} - -// Broadcast single-precision (32-bit) floating-point value a to all elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_ps -FORCE_INLINE __m128 _mm_set1_ps(float _w) -{ - return vreinterpretq_m128_f32(vdupq_n_f32(_w)); -} - -// Set the MXCSR control and status register with the value in unsigned 32-bit -// integer a. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setcsr -// FIXME: _mm_setcsr() implementation supports changing the rounding mode only. -FORCE_INLINE void _mm_setcsr(unsigned int a) -{ - _MM_SET_ROUNDING_MODE(a); -} - -// Get the unsigned 32-bit value of the MXCSR control and status register. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_getcsr -// FIXME: _mm_getcsr() implementation supports reading the rounding mode only. -FORCE_INLINE unsigned int _mm_getcsr(void) -{ - return _MM_GET_ROUNDING_MODE(); -} - -// Set packed single-precision (32-bit) floating-point elements in dst with the -// supplied values in reverse order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setr_ps -FORCE_INLINE __m128 _mm_setr_ps(float w, float z, float y, float x) -{ - float ALIGN_STRUCT(16) data[4] = {w, z, y, x}; - return vreinterpretq_m128_f32(vld1q_f32(data)); -} - -// Return vector of type __m128 with all elements set to zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setzero_ps -FORCE_INLINE __m128 _mm_setzero_ps(void) -{ - return vreinterpretq_m128_f32(vdupq_n_f32(0)); -} - -// Shuffle 16-bit integers in a using the control in imm8, and store the results -// in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shuffle_pi16 -#ifdef _sse2neon_shuffle -#define _mm_shuffle_pi16(a, imm) \ - vreinterpret_m64_s16(vshuffle_s16( \ - vreinterpret_s16_m64(a), vreinterpret_s16_m64(a), (imm & 0x3), \ - ((imm >> 2) & 0x3), ((imm >> 4) & 0x3), ((imm >> 6) & 0x3))) -#else -#define _mm_shuffle_pi16(a, imm) \ - _sse2neon_define1( \ - __m64, a, int16x4_t ret; \ - ret = vmov_n_s16( \ - vget_lane_s16(vreinterpret_s16_m64(_a), (imm) & (0x3))); \ - ret = vset_lane_s16( \ - vget_lane_s16(vreinterpret_s16_m64(_a), ((imm) >> 2) & 0x3), ret, \ - 1); \ - ret = vset_lane_s16( \ - vget_lane_s16(vreinterpret_s16_m64(_a), ((imm) >> 4) & 0x3), ret, \ - 2); \ - ret = vset_lane_s16( \ - vget_lane_s16(vreinterpret_s16_m64(_a), ((imm) >> 6) & 0x3), ret, \ - 3); \ - _sse2neon_return(vreinterpret_m64_s16(ret));) -#endif - -// Perform a serializing operation on all store-to-memory instructions that were -// issued prior to this instruction. Guarantees that every store instruction -// that precedes, in program order, is globally visible before any store -// instruction which follows the fence in program order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sfence -FORCE_INLINE void _mm_sfence(void) -{ - _sse2neon_smp_mb(); -} - -// Perform a serializing operation on all load-from-memory and store-to-memory -// instructions that were issued prior to this instruction. Guarantees that -// every memory access that precedes, in program order, the memory fence -// instruction is globally visible before any memory instruction which follows -// the fence in program order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mfence -FORCE_INLINE void _mm_mfence(void) -{ - _sse2neon_smp_mb(); -} - -// Perform a serializing operation on all load-from-memory instructions that -// were issued prior to this instruction. Guarantees that every load instruction -// that precedes, in program order, is globally visible before any load -// instruction which follows the fence in program order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_lfence -FORCE_INLINE void _mm_lfence(void) -{ - _sse2neon_smp_mb(); -} - -// FORCE_INLINE __m128 _mm_shuffle_ps(__m128 a, __m128 b, __constrange(0,255) -// int imm) -#ifdef _sse2neon_shuffle -#define _mm_shuffle_ps(a, b, imm) \ - __extension__({ \ - float32x4_t _input1 = vreinterpretq_f32_m128(a); \ - float32x4_t _input2 = vreinterpretq_f32_m128(b); \ - float32x4_t _shuf = \ - vshuffleq_s32(_input1, _input2, (imm) & (0x3), ((imm) >> 2) & 0x3, \ - (((imm) >> 4) & 0x3) + 4, (((imm) >> 6) & 0x3) + 4); \ - vreinterpretq_m128_f32(_shuf); \ - }) -#else // generic -#define _mm_shuffle_ps(a, b, imm) \ - _sse2neon_define2( \ - __m128, a, b, __m128 ret; switch (imm) { \ - case _MM_SHUFFLE(1, 0, 3, 2): \ - ret = _mm_shuffle_ps_1032(_a, _b); \ - break; \ - case _MM_SHUFFLE(2, 3, 0, 1): \ - ret = _mm_shuffle_ps_2301(_a, _b); \ - break; \ - case _MM_SHUFFLE(0, 3, 2, 1): \ - ret = _mm_shuffle_ps_0321(_a, _b); \ - break; \ - case _MM_SHUFFLE(2, 1, 0, 3): \ - ret = _mm_shuffle_ps_2103(_a, _b); \ - break; \ - case _MM_SHUFFLE(1, 0, 1, 0): \ - ret = _mm_movelh_ps(_a, _b); \ - break; \ - case _MM_SHUFFLE(1, 0, 0, 1): \ - ret = _mm_shuffle_ps_1001(_a, _b); \ - break; \ - case _MM_SHUFFLE(0, 1, 0, 1): \ - ret = _mm_shuffle_ps_0101(_a, _b); \ - break; \ - case _MM_SHUFFLE(3, 2, 1, 0): \ - ret = _mm_shuffle_ps_3210(_a, _b); \ - break; \ - case _MM_SHUFFLE(0, 0, 1, 1): \ - ret = _mm_shuffle_ps_0011(_a, _b); \ - break; \ - case _MM_SHUFFLE(0, 0, 2, 2): \ - ret = _mm_shuffle_ps_0022(_a, _b); \ - break; \ - case _MM_SHUFFLE(2, 2, 0, 0): \ - ret = _mm_shuffle_ps_2200(_a, _b); \ - break; \ - case _MM_SHUFFLE(3, 2, 0, 2): \ - ret = _mm_shuffle_ps_3202(_a, _b); \ - break; \ - case _MM_SHUFFLE(3, 2, 3, 2): \ - ret = _mm_movehl_ps(_b, _a); \ - break; \ - case _MM_SHUFFLE(1, 1, 3, 3): \ - ret = _mm_shuffle_ps_1133(_a, _b); \ - break; \ - case _MM_SHUFFLE(2, 0, 1, 0): \ - ret = _mm_shuffle_ps_2010(_a, _b); \ - break; \ - case _MM_SHUFFLE(2, 0, 0, 1): \ - ret = _mm_shuffle_ps_2001(_a, _b); \ - break; \ - case _MM_SHUFFLE(2, 0, 3, 2): \ - ret = _mm_shuffle_ps_2032(_a, _b); \ - break; \ - default: \ - ret = _mm_shuffle_ps_default(_a, _b, (imm)); \ - break; \ - } _sse2neon_return(ret);) -#endif - -// Compute the square root of packed single-precision (32-bit) floating-point -// elements in a, and store the results in dst. -// Due to ARMv7-A NEON's lack of a precise square root intrinsic, we implement -// square root by multiplying input in with its reciprocal square root before -// using the Newton-Raphson method to approximate the results. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sqrt_ps -FORCE_INLINE __m128 _mm_sqrt_ps(__m128 in) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32(vsqrtq_f32(vreinterpretq_f32_m128(in))); -#else - float32x4_t recip = vrsqrteq_f32(vreinterpretq_f32_m128(in)); - - // Test for vrsqrteq_f32(0) -> positive infinity case. - // Change to zero, so that s * 1/sqrt(s) result is zero too. - const uint32x4_t pos_inf = vdupq_n_u32(0x7F800000); - const uint32x4_t div_by_zero = - vceqq_u32(pos_inf, vreinterpretq_u32_f32(recip)); - recip = vreinterpretq_f32_u32( - vandq_u32(vmvnq_u32(div_by_zero), vreinterpretq_u32_f32(recip))); - - recip = vmulq_f32( - vrsqrtsq_f32(vmulq_f32(recip, recip), vreinterpretq_f32_m128(in)), - recip); - // Additional Netwon-Raphson iteration for accuracy - recip = vmulq_f32( - vrsqrtsq_f32(vmulq_f32(recip, recip), vreinterpretq_f32_m128(in)), - recip); - - // sqrt(s) = s * 1/sqrt(s) - return vreinterpretq_m128_f32(vmulq_f32(vreinterpretq_f32_m128(in), recip)); -#endif -} - -// Compute the square root of the lower single-precision (32-bit) floating-point -// element in a, store the result in the lower element of dst, and copy the -// upper 3 packed elements from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sqrt_ss -FORCE_INLINE __m128 _mm_sqrt_ss(__m128 in) -{ - float32_t value = - vgetq_lane_f32(vreinterpretq_f32_m128(_mm_sqrt_ps(in)), 0); - return vreinterpretq_m128_f32( - vsetq_lane_f32(value, vreinterpretq_f32_m128(in), 0)); -} - -// Store 128-bits (composed of 4 packed single-precision (32-bit) floating-point -// elements) from a into memory. mem_addr must be aligned on a 16-byte boundary -// or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store_ps -FORCE_INLINE void _mm_store_ps(float *p, __m128 a) -{ - vst1q_f32(p, vreinterpretq_f32_m128(a)); -} - -// Store the lower single-precision (32-bit) floating-point element from a into -// 4 contiguous elements in memory. mem_addr must be aligned on a 16-byte -// boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store_ps1 -FORCE_INLINE void _mm_store_ps1(float *p, __m128 a) -{ - float32_t a0 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); - vst1q_f32(p, vdupq_n_f32(a0)); -} - -// Store the lower single-precision (32-bit) floating-point element from a into -// memory. mem_addr does not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store_ss -FORCE_INLINE void _mm_store_ss(float *p, __m128 a) -{ - vst1q_lane_f32(p, vreinterpretq_f32_m128(a), 0); -} - -// Store the lower single-precision (32-bit) floating-point element from a into -// 4 contiguous elements in memory. mem_addr must be aligned on a 16-byte -// boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store1_ps -#define _mm_store1_ps _mm_store_ps1 - -// Store the upper 2 single-precision (32-bit) floating-point elements from a -// into memory. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeh_pi -FORCE_INLINE void _mm_storeh_pi(__m64 *p, __m128 a) -{ - *p = vreinterpret_m64_f32(vget_high_f32(a)); -} - -// Store the lower 2 single-precision (32-bit) floating-point elements from a -// into memory. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storel_pi -FORCE_INLINE void _mm_storel_pi(__m64 *p, __m128 a) -{ - *p = vreinterpret_m64_f32(vget_low_f32(a)); -} - -// Store 4 single-precision (32-bit) floating-point elements from a into memory -// in reverse order. mem_addr must be aligned on a 16-byte boundary or a -// general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storer_ps -FORCE_INLINE void _mm_storer_ps(float *p, __m128 a) -{ - float32x4_t tmp = vrev64q_f32(vreinterpretq_f32_m128(a)); - float32x4_t rev = vextq_f32(tmp, tmp, 2); - vst1q_f32(p, rev); -} - -// Store 128-bits (composed of 4 packed single-precision (32-bit) floating-point -// elements) from a into memory. mem_addr does not need to be aligned on any -// particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeu_ps -FORCE_INLINE void _mm_storeu_ps(float *p, __m128 a) -{ - vst1q_f32(p, vreinterpretq_f32_m128(a)); -} - -// Stores 16-bits of integer data a at the address p. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeu_si16 -FORCE_INLINE void _mm_storeu_si16(void *p, __m128i a) -{ - vst1q_lane_s16((int16_t *) p, vreinterpretq_s16_m128i(a), 0); -} - -// Stores 64-bits of integer data a at the address p. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeu_si64 -FORCE_INLINE void _mm_storeu_si64(void *p, __m128i a) -{ - vst1q_lane_s64((int64_t *) p, vreinterpretq_s64_m128i(a), 0); -} - -// Store 64-bits of integer data from a into memory using a non-temporal memory -// hint. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_pi -FORCE_INLINE void _mm_stream_pi(__m64 *p, __m64 a) -{ - vst1_s64((int64_t *) p, vreinterpret_s64_m64(a)); -} - -// Store 128-bits (composed of 4 packed single-precision (32-bit) floating- -// point elements) from a into memory using a non-temporal memory hint. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_ps -FORCE_INLINE void _mm_stream_ps(float *p, __m128 a) -{ -#if __has_builtin(__builtin_nontemporal_store) - __builtin_nontemporal_store(a, (float32x4_t *) p); -#else - vst1q_f32(p, vreinterpretq_f32_m128(a)); -#endif -} - -// Subtract packed single-precision (32-bit) floating-point elements in b from -// packed single-precision (32-bit) floating-point elements in a, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_ps -FORCE_INLINE __m128 _mm_sub_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_f32( - vsubq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -} - -// Subtract the lower single-precision (32-bit) floating-point element in b from -// the lower single-precision (32-bit) floating-point element in a, store the -// result in the lower element of dst, and copy the upper 3 packed elements from -// a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_ss -FORCE_INLINE __m128 _mm_sub_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_sub_ps(a, b)); -} - -// Macro: Transpose the 4x4 matrix formed by the 4 rows of single-precision -// (32-bit) floating-point elements in row0, row1, row2, and row3, and store the -// transposed matrix in these vectors (row0 now contains column 0, etc.). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=MM_TRANSPOSE4_PS -#define _MM_TRANSPOSE4_PS(row0, row1, row2, row3) \ - do { \ - float32x4x2_t ROW01 = vtrnq_f32(row0, row1); \ - float32x4x2_t ROW23 = vtrnq_f32(row2, row3); \ - row0 = vcombine_f32(vget_low_f32(ROW01.val[0]), \ - vget_low_f32(ROW23.val[0])); \ - row1 = vcombine_f32(vget_low_f32(ROW01.val[1]), \ - vget_low_f32(ROW23.val[1])); \ - row2 = vcombine_f32(vget_high_f32(ROW01.val[0]), \ - vget_high_f32(ROW23.val[0])); \ - row3 = vcombine_f32(vget_high_f32(ROW01.val[1]), \ - vget_high_f32(ROW23.val[1])); \ - } while (0) - -// according to the documentation, these intrinsics behave the same as the -// non-'u' versions. We'll just alias them here. -#define _mm_ucomieq_ss _mm_comieq_ss -#define _mm_ucomige_ss _mm_comige_ss -#define _mm_ucomigt_ss _mm_comigt_ss -#define _mm_ucomile_ss _mm_comile_ss -#define _mm_ucomilt_ss _mm_comilt_ss -#define _mm_ucomineq_ss _mm_comineq_ss - -// Return vector of type __m128i with undefined elements. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_undefined_si128 -FORCE_INLINE __m128i _mm_undefined_si128(void) -{ -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wuninitialized" -#endif - __m128i a; -#if defined(_MSC_VER) - a = _mm_setzero_si128(); -#endif - return a; -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -} - -// Return vector of type __m128 with undefined elements. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_undefined_ps -FORCE_INLINE __m128 _mm_undefined_ps(void) -{ -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wuninitialized" -#endif - __m128 a; -#if defined(_MSC_VER) - a = _mm_setzero_ps(); -#endif - return a; -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -} - -// Unpack and interleave single-precision (32-bit) floating-point elements from -// the high half a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpackhi_ps -FORCE_INLINE __m128 _mm_unpackhi_ps(__m128 a, __m128 b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vzip2q_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -#else - float32x2_t a1 = vget_high_f32(vreinterpretq_f32_m128(a)); - float32x2_t b1 = vget_high_f32(vreinterpretq_f32_m128(b)); - float32x2x2_t result = vzip_f32(a1, b1); - return vreinterpretq_m128_f32(vcombine_f32(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave single-precision (32-bit) floating-point elements from -// the low half of a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpacklo_ps -FORCE_INLINE __m128 _mm_unpacklo_ps(__m128 a, __m128 b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vzip1q_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -#else - float32x2_t a1 = vget_low_f32(vreinterpretq_f32_m128(a)); - float32x2_t b1 = vget_low_f32(vreinterpretq_f32_m128(b)); - float32x2x2_t result = vzip_f32(a1, b1); - return vreinterpretq_m128_f32(vcombine_f32(result.val[0], result.val[1])); -#endif -} - -// Compute the bitwise XOR of packed single-precision (32-bit) floating-point -// elements in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_xor_ps -FORCE_INLINE __m128 _mm_xor_ps(__m128 a, __m128 b) -{ - return vreinterpretq_m128_s32( - veorq_s32(vreinterpretq_s32_m128(a), vreinterpretq_s32_m128(b))); -} - -/* SSE2 */ - -// Add packed 16-bit integers in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_epi16 -FORCE_INLINE __m128i _mm_add_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vaddq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Add packed 32-bit integers in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_epi32 -FORCE_INLINE __m128i _mm_add_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vaddq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Add packed 64-bit integers in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_epi64 -FORCE_INLINE __m128i _mm_add_epi64(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s64( - vaddq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); -} - -// Add packed 8-bit integers in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_epi8 -FORCE_INLINE __m128i _mm_add_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vaddq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Add packed double-precision (64-bit) floating-point elements in a and b, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_pd -FORCE_INLINE __m128d _mm_add_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vaddq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2]; - c[0] = da[0] + db[0]; - c[1] = da[1] + db[1]; - return vld1q_f32((float32_t *) c); -#endif -} - -// Add the lower double-precision (64-bit) floating-point element in a and b, -// store the result in the lower element of dst, and copy the upper element from -// a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_sd -FORCE_INLINE __m128d _mm_add_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_add_pd(a, b)); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2]; - c[0] = da[0] + db[0]; - c[1] = da[1]; - return vld1q_f32((float32_t *) c); -#endif -} - -// Add 64-bit integers a and b, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_add_si64 -FORCE_INLINE __m64 _mm_add_si64(__m64 a, __m64 b) -{ - return vreinterpret_m64_s64( - vadd_s64(vreinterpret_s64_m64(a), vreinterpret_s64_m64(b))); -} - -// Add packed signed 16-bit integers in a and b using saturation, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_adds_epi16 -FORCE_INLINE __m128i _mm_adds_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vqaddq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Add packed signed 8-bit integers in a and b using saturation, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_adds_epi8 -FORCE_INLINE __m128i _mm_adds_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vqaddq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Add packed unsigned 16-bit integers in a and b using saturation, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_adds_epu16 -FORCE_INLINE __m128i _mm_adds_epu16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vqaddq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); -} - -// Add packed unsigned 8-bit integers in a and b using saturation, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_adds_epu8 -FORCE_INLINE __m128i _mm_adds_epu8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vqaddq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); -} - -// Compute the bitwise AND of packed double-precision (64-bit) floating-point -// elements in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_and_pd -FORCE_INLINE __m128d _mm_and_pd(__m128d a, __m128d b) -{ - return vreinterpretq_m128d_s64( - vandq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b))); -} - -// Compute the bitwise AND of 128 bits (representing integer data) in a and b, -// and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_and_si128 -FORCE_INLINE __m128i _mm_and_si128(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vandq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Compute the bitwise NOT of packed double-precision (64-bit) floating-point -// elements in a and then AND with b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_andnot_pd -FORCE_INLINE __m128d _mm_andnot_pd(__m128d a, __m128d b) -{ - // *NOTE* argument swap - return vreinterpretq_m128d_s64( - vbicq_s64(vreinterpretq_s64_m128d(b), vreinterpretq_s64_m128d(a))); -} - -// Compute the bitwise NOT of 128 bits (representing integer data) in a and then -// AND with b, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_andnot_si128 -FORCE_INLINE __m128i _mm_andnot_si128(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vbicq_s32(vreinterpretq_s32_m128i(b), - vreinterpretq_s32_m128i(a))); // *NOTE* argument swap -} - -// Average packed unsigned 16-bit integers in a and b, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_avg_epu16 -FORCE_INLINE __m128i _mm_avg_epu16(__m128i a, __m128i b) -{ - return (__m128i) vrhaddq_u16(vreinterpretq_u16_m128i(a), - vreinterpretq_u16_m128i(b)); -} - -// Average packed unsigned 8-bit integers in a and b, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_avg_epu8 -FORCE_INLINE __m128i _mm_avg_epu8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vrhaddq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); -} - -// Shift a left by imm8 bytes while shifting in zeros, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_bslli_si128 -#define _mm_bslli_si128(a, imm) _mm_slli_si128(a, imm) - -// Shift a right by imm8 bytes while shifting in zeros, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_bsrli_si128 -#define _mm_bsrli_si128(a, imm) _mm_srli_si128(a, imm) - -// Cast vector of type __m128d to type __m128. This intrinsic is only used for -// compilation and does not generate any instructions, thus it has zero latency. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_castpd_ps -FORCE_INLINE __m128 _mm_castpd_ps(__m128d a) -{ - return vreinterpretq_m128_s64(vreinterpretq_s64_m128d(a)); -} - -// Cast vector of type __m128d to type __m128i. This intrinsic is only used for -// compilation and does not generate any instructions, thus it has zero latency. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_castpd_si128 -FORCE_INLINE __m128i _mm_castpd_si128(__m128d a) -{ - return vreinterpretq_m128i_s64(vreinterpretq_s64_m128d(a)); -} - -// Cast vector of type __m128 to type __m128d. This intrinsic is only used for -// compilation and does not generate any instructions, thus it has zero latency. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_castps_pd -FORCE_INLINE __m128d _mm_castps_pd(__m128 a) -{ - return vreinterpretq_m128d_s32(vreinterpretq_s32_m128(a)); -} - -// Cast vector of type __m128 to type __m128i. This intrinsic is only used for -// compilation and does not generate any instructions, thus it has zero latency. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_castps_si128 -FORCE_INLINE __m128i _mm_castps_si128(__m128 a) -{ - return vreinterpretq_m128i_s32(vreinterpretq_s32_m128(a)); -} - -// Cast vector of type __m128i to type __m128d. This intrinsic is only used for -// compilation and does not generate any instructions, thus it has zero latency. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_castsi128_pd -FORCE_INLINE __m128d _mm_castsi128_pd(__m128i a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vreinterpretq_f64_m128i(a)); -#else - return vreinterpretq_m128d_f32(vreinterpretq_f32_m128i(a)); -#endif -} - -// Cast vector of type __m128i to type __m128. This intrinsic is only used for -// compilation and does not generate any instructions, thus it has zero latency. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_castsi128_ps -FORCE_INLINE __m128 _mm_castsi128_ps(__m128i a) -{ - return vreinterpretq_m128_s32(vreinterpretq_s32_m128i(a)); -} - -// Invalidate and flush the cache line that contains p from all levels of the -// cache hierarchy. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_clflush -#if defined(__APPLE__) -#include -#endif -FORCE_INLINE void _mm_clflush(void const *p) -{ - (void) p; - - /* sys_icache_invalidate is supported since macOS 10.5. - * However, it does not work on non-jailbroken iOS devices, although the - * compilation is successful. - */ -#if defined(__APPLE__) - sys_icache_invalidate((void *) (uintptr_t) p, SSE2NEON_CACHELINE_SIZE); -#elif defined(__GNUC__) || defined(__clang__) - uintptr_t ptr = (uintptr_t) p; - __builtin___clear_cache((char *) ptr, - (char *) ptr + SSE2NEON_CACHELINE_SIZE); -#elif (_MSC_VER) && SSE2NEON_INCLUDE_WINDOWS_H - FlushInstructionCache(GetCurrentProcess(), p, SSE2NEON_CACHELINE_SIZE); -#endif -} - -// Compare packed 16-bit integers in a and b for equality, and store the results -// in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_epi16 -FORCE_INLINE __m128i _mm_cmpeq_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vceqq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Compare packed 32-bit integers in a and b for equality, and store the results -// in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_epi32 -FORCE_INLINE __m128i _mm_cmpeq_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u32( - vceqq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Compare packed 8-bit integers in a and b for equality, and store the results -// in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_epi8 -FORCE_INLINE __m128i _mm_cmpeq_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vceqq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for equality, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_pd -FORCE_INLINE __m128d _mm_cmpeq_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64( - vceqq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - // (a == b) -> (a_lo == b_lo) && (a_hi == b_hi) - uint32x4_t cmp = - vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(b)); - uint32x4_t swapped = vrev64q_u32(cmp); - return vreinterpretq_m128d_u32(vandq_u32(cmp, swapped)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for equality, store the result in the lower element of dst, and copy the -// upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpeq_sd -FORCE_INLINE __m128d _mm_cmpeq_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_cmpeq_pd(a, b)); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for greater-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpge_pd -FORCE_INLINE __m128d _mm_cmpge_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64( - vcgeq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) >= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = (*(double *) &a1) >= (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for greater-than-or-equal, store the result in the lower element of dst, -// and copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpge_sd -FORCE_INLINE __m128d _mm_cmpge_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_cmpge_pd(a, b)); -#else - // expand "_mm_cmpge_pd()" to reduce unnecessary operations - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) >= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = a1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare packed signed 16-bit integers in a and b for greater-than, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_epi16 -FORCE_INLINE __m128i _mm_cmpgt_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vcgtq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Compare packed signed 32-bit integers in a and b for greater-than, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_epi32 -FORCE_INLINE __m128i _mm_cmpgt_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u32( - vcgtq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Compare packed signed 8-bit integers in a and b for greater-than, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_epi8 -FORCE_INLINE __m128i _mm_cmpgt_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vcgtq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for greater-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_pd -FORCE_INLINE __m128d _mm_cmpgt_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64( - vcgtq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) > (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = (*(double *) &a1) > (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for greater-than, store the result in the lower element of dst, and copy -// the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpgt_sd -FORCE_INLINE __m128d _mm_cmpgt_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_cmpgt_pd(a, b)); -#else - // expand "_mm_cmpge_pd()" to reduce unnecessary operations - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) > (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = a1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for less-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmple_pd -FORCE_INLINE __m128d _mm_cmple_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64( - vcleq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) <= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = (*(double *) &a1) <= (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for less-than-or-equal, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmple_sd -FORCE_INLINE __m128d _mm_cmple_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_cmple_pd(a, b)); -#else - // expand "_mm_cmpge_pd()" to reduce unnecessary operations - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) <= (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = a1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare packed signed 16-bit integers in a and b for less-than, and store the -// results in dst. Note: This intrinsic emits the pcmpgtw instruction with the -// order of the operands switched. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_epi16 -FORCE_INLINE __m128i _mm_cmplt_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vcltq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Compare packed signed 32-bit integers in a and b for less-than, and store the -// results in dst. Note: This intrinsic emits the pcmpgtd instruction with the -// order of the operands switched. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_epi32 -FORCE_INLINE __m128i _mm_cmplt_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u32( - vcltq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Compare packed signed 8-bit integers in a and b for less-than, and store the -// results in dst. Note: This intrinsic emits the pcmpgtb instruction with the -// order of the operands switched. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_epi8 -FORCE_INLINE __m128i _mm_cmplt_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vcltq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for less-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_pd -FORCE_INLINE __m128d _mm_cmplt_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64( - vcltq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) < (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = (*(double *) &a1) < (*(double *) &b1) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for less-than, store the result in the lower element of dst, and copy the -// upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmplt_sd -FORCE_INLINE __m128d _mm_cmplt_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_cmplt_pd(a, b)); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) < (*(double *) &b0) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = a1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for not-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpneq_pd -FORCE_INLINE __m128d _mm_cmpneq_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_s32(vmvnq_s32(vreinterpretq_s32_u64( - vceqq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))))); -#else - // (a == b) -> (a_lo == b_lo) && (a_hi == b_hi) - uint32x4_t cmp = - vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(b)); - uint32x4_t swapped = vrev64q_u32(cmp); - return vreinterpretq_m128d_u32(vmvnq_u32(vandq_u32(cmp, swapped))); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for not-equal, store the result in the lower element of dst, and copy the -// upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpneq_sd -FORCE_INLINE __m128d _mm_cmpneq_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_cmpneq_pd(a, b)); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for not-greater-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnge_pd -FORCE_INLINE __m128d _mm_cmpnge_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64(veorq_u64( - vcgeq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b)), - vdupq_n_u64(UINT64_MAX))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = - !((*(double *) &a0) >= (*(double *) &b0)) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = - !((*(double *) &a1) >= (*(double *) &b1)) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for not-greater-than-or-equal, store the result in the lower element of -// dst, and copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnge_sd -FORCE_INLINE __m128d _mm_cmpnge_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_cmpnge_pd(a, b)); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for not-greater-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_cmpngt_pd -FORCE_INLINE __m128d _mm_cmpngt_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64(veorq_u64( - vcgtq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b)), - vdupq_n_u64(UINT64_MAX))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = - !((*(double *) &a0) > (*(double *) &b0)) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = - !((*(double *) &a1) > (*(double *) &b1)) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for not-greater-than, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpngt_sd -FORCE_INLINE __m128d _mm_cmpngt_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_cmpngt_pd(a, b)); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for not-less-than-or-equal, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnle_pd -FORCE_INLINE __m128d _mm_cmpnle_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64(veorq_u64( - vcleq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b)), - vdupq_n_u64(UINT64_MAX))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = - !((*(double *) &a0) <= (*(double *) &b0)) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = - !((*(double *) &a1) <= (*(double *) &b1)) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for not-less-than-or-equal, store the result in the lower element of dst, -// and copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnle_sd -FORCE_INLINE __m128d _mm_cmpnle_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_cmpnle_pd(a, b)); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// for not-less-than, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnlt_pd -FORCE_INLINE __m128d _mm_cmpnlt_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_u64(veorq_u64( - vcltq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b)), - vdupq_n_u64(UINT64_MAX))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = - !((*(double *) &a0) < (*(double *) &b0)) ? ~UINT64_C(0) : UINT64_C(0); - d[1] = - !((*(double *) &a1) < (*(double *) &b1)) ? ~UINT64_C(0) : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b for not-less-than, store the result in the lower element of dst, and copy -// the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpnlt_sd -FORCE_INLINE __m128d _mm_cmpnlt_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_cmpnlt_pd(a, b)); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// to see if neither is NaN, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpord_pd -FORCE_INLINE __m128d _mm_cmpord_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - // Excluding NaNs, any two floating point numbers can be compared. - uint64x2_t not_nan_a = - vceqq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(a)); - uint64x2_t not_nan_b = - vceqq_f64(vreinterpretq_f64_m128d(b), vreinterpretq_f64_m128d(b)); - return vreinterpretq_m128d_u64(vandq_u64(not_nan_a, not_nan_b)); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = ((*(double *) &a0) == (*(double *) &a0) && - (*(double *) &b0) == (*(double *) &b0)) - ? ~UINT64_C(0) - : UINT64_C(0); - d[1] = ((*(double *) &a1) == (*(double *) &a1) && - (*(double *) &b1) == (*(double *) &b1)) - ? ~UINT64_C(0) - : UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b to see if neither is NaN, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpord_sd -FORCE_INLINE __m128d _mm_cmpord_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_cmpord_pd(a, b)); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t d[2]; - d[0] = ((*(double *) &a0) == (*(double *) &a0) && - (*(double *) &b0) == (*(double *) &b0)) - ? ~UINT64_C(0) - : UINT64_C(0); - d[1] = a1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b -// to see if either is NaN, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpunord_pd -FORCE_INLINE __m128d _mm_cmpunord_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - // Two NaNs are not equal in comparison operation. - uint64x2_t not_nan_a = - vceqq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(a)); - uint64x2_t not_nan_b = - vceqq_f64(vreinterpretq_f64_m128d(b), vreinterpretq_f64_m128d(b)); - return vreinterpretq_m128d_s32( - vmvnq_s32(vreinterpretq_s32_u64(vandq_u64(not_nan_a, not_nan_b)))); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = ((*(double *) &a0) == (*(double *) &a0) && - (*(double *) &b0) == (*(double *) &b0)) - ? UINT64_C(0) - : ~UINT64_C(0); - d[1] = ((*(double *) &a1) == (*(double *) &a1) && - (*(double *) &b1) == (*(double *) &b1)) - ? UINT64_C(0) - : ~UINT64_C(0); - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b to see if either is NaN, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpunord_sd -FORCE_INLINE __m128d _mm_cmpunord_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_cmpunord_pd(a, b)); -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t d[2]; - d[0] = ((*(double *) &a0) == (*(double *) &a0) && - (*(double *) &b0) == (*(double *) &b0)) - ? UINT64_C(0) - : ~UINT64_C(0); - d[1] = a1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point element in a and b -// for greater-than-or-equal, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comige_sd -FORCE_INLINE int _mm_comige_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vgetq_lane_u64(vcgeq_f64(a, b), 0) & 0x1; -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - - return (*(double *) &a0 >= *(double *) &b0); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point element in a and b -// for greater-than, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comigt_sd -FORCE_INLINE int _mm_comigt_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vgetq_lane_u64(vcgtq_f64(a, b), 0) & 0x1; -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - - return (*(double *) &a0 > *(double *) &b0); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point element in a and b -// for less-than-or-equal, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comile_sd -FORCE_INLINE int _mm_comile_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vgetq_lane_u64(vcleq_f64(a, b), 0) & 0x1; -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - - return (*(double *) &a0 <= *(double *) &b0); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point element in a and b -// for less-than, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comilt_sd -FORCE_INLINE int _mm_comilt_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vgetq_lane_u64(vcltq_f64(a, b), 0) & 0x1; -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - - return (*(double *) &a0 < *(double *) &b0); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point element in a and b -// for equality, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comieq_sd -FORCE_INLINE int _mm_comieq_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vgetq_lane_u64(vceqq_f64(a, b), 0) & 0x1; -#else - uint32x4_t a_not_nan = - vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(a)); - uint32x4_t b_not_nan = - vceqq_u32(vreinterpretq_u32_m128d(b), vreinterpretq_u32_m128d(b)); - uint32x4_t a_and_b_not_nan = vandq_u32(a_not_nan, b_not_nan); - uint32x4_t a_eq_b = - vceqq_u32(vreinterpretq_u32_m128d(a), vreinterpretq_u32_m128d(b)); - uint64x2_t and_results = vandq_u64(vreinterpretq_u64_u32(a_and_b_not_nan), - vreinterpretq_u64_u32(a_eq_b)); - return vgetq_lane_u64(and_results, 0) & 0x1; -#endif -} - -// Compare the lower double-precision (64-bit) floating-point element in a and b -// for not-equal, and return the boolean result (0 or 1). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_comineq_sd -FORCE_INLINE int _mm_comineq_sd(__m128d a, __m128d b) -{ - return !_mm_comieq_sd(a, b); -} - -// Convert packed signed 32-bit integers in a to packed double-precision -// (64-bit) floating-point elements, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi32_pd -FORCE_INLINE __m128d _mm_cvtepi32_pd(__m128i a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vcvtq_f64_s64(vmovl_s32(vget_low_s32(vreinterpretq_s32_m128i(a))))); -#else - double a0 = (double) vgetq_lane_s32(vreinterpretq_s32_m128i(a), 0); - double a1 = (double) vgetq_lane_s32(vreinterpretq_s32_m128i(a), 1); - return _mm_set_pd(a1, a0); -#endif -} - -// Convert packed signed 32-bit integers in a to packed single-precision -// (32-bit) floating-point elements, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi32_ps -FORCE_INLINE __m128 _mm_cvtepi32_ps(__m128i a) -{ - return vreinterpretq_m128_f32(vcvtq_f32_s32(vreinterpretq_s32_m128i(a))); -} - -// Convert packed double-precision (64-bit) floating-point elements in a to -// packed 32-bit integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpd_epi32 -FORCE_INLINE __m128i _mm_cvtpd_epi32(__m128d a) -{ -// vrnd32xq_f64 not supported on clang -#if defined(__ARM_FEATURE_FRINT) && !defined(__clang__) - float64x2_t rounded = vrnd32xq_f64(vreinterpretq_f64_m128d(a)); - int64x2_t integers = vcvtq_s64_f64(rounded); - return vreinterpretq_m128i_s32( - vcombine_s32(vmovn_s64(integers), vdup_n_s32(0))); -#else - __m128d rnd = _mm_round_pd(a, _MM_FROUND_CUR_DIRECTION); - double d0 = ((double *) &rnd)[0]; - double d1 = ((double *) &rnd)[1]; - return _mm_set_epi32(0, 0, (int32_t) d1, (int32_t) d0); -#endif -} - -// Convert packed double-precision (64-bit) floating-point elements in a to -// packed 32-bit integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpd_pi32 -FORCE_INLINE __m64 _mm_cvtpd_pi32(__m128d a) -{ - __m128d rnd = _mm_round_pd(a, _MM_FROUND_CUR_DIRECTION); - double d0 = ((double *) &rnd)[0]; - double d1 = ((double *) &rnd)[1]; - int32_t ALIGN_STRUCT(16) data[2] = {(int32_t) d0, (int32_t) d1}; - return vreinterpret_m64_s32(vld1_s32(data)); -} - -// Convert packed double-precision (64-bit) floating-point elements in a to -// packed single-precision (32-bit) floating-point elements, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpd_ps -FORCE_INLINE __m128 _mm_cvtpd_ps(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - float32x2_t tmp = vcvt_f32_f64(vreinterpretq_f64_m128d(a)); - return vreinterpretq_m128_f32(vcombine_f32(tmp, vdup_n_f32(0))); -#else - float a0 = (float) ((double *) &a)[0]; - float a1 = (float) ((double *) &a)[1]; - return _mm_set_ps(0, 0, a1, a0); -#endif -} - -// Convert packed signed 32-bit integers in a to packed double-precision -// (64-bit) floating-point elements, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtpi32_pd -FORCE_INLINE __m128d _mm_cvtpi32_pd(__m64 a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vcvtq_f64_s64(vmovl_s32(vreinterpret_s32_m64(a)))); -#else - double a0 = (double) vget_lane_s32(vreinterpret_s32_m64(a), 0); - double a1 = (double) vget_lane_s32(vreinterpret_s32_m64(a), 1); - return _mm_set_pd(a1, a0); -#endif -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 32-bit integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_epi32 -// *NOTE*. The default rounding mode on SSE is 'round to even', which ARMv7-A -// does not support! It is supported on ARMv8-A however. -FORCE_INLINE __m128i _mm_cvtps_epi32(__m128 a) -{ -#if defined(__ARM_FEATURE_FRINT) - return vreinterpretq_m128i_s32(vcvtq_s32_f32(vrnd32xq_f32(a))); -#elif (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - switch (_MM_GET_ROUNDING_MODE()) { - case _MM_ROUND_NEAREST: - return vreinterpretq_m128i_s32(vcvtnq_s32_f32(a)); - case _MM_ROUND_DOWN: - return vreinterpretq_m128i_s32(vcvtmq_s32_f32(a)); - case _MM_ROUND_UP: - return vreinterpretq_m128i_s32(vcvtpq_s32_f32(a)); - default: // _MM_ROUND_TOWARD_ZERO - return vreinterpretq_m128i_s32(vcvtq_s32_f32(a)); - } -#else - float *f = (float *) &a; - switch (_MM_GET_ROUNDING_MODE()) { - case _MM_ROUND_NEAREST: { - uint32x4_t signmask = vdupq_n_u32(0x80000000); - float32x4_t half = vbslq_f32(signmask, vreinterpretq_f32_m128(a), - vdupq_n_f32(0.5f)); /* +/- 0.5 */ - int32x4_t r_normal = vcvtq_s32_f32(vaddq_f32( - vreinterpretq_f32_m128(a), half)); /* round to integer: [a + 0.5]*/ - int32x4_t r_trunc = vcvtq_s32_f32( - vreinterpretq_f32_m128(a)); /* truncate to integer: [a] */ - int32x4_t plusone = vreinterpretq_s32_u32(vshrq_n_u32( - vreinterpretq_u32_s32(vnegq_s32(r_trunc)), 31)); /* 1 or 0 */ - int32x4_t r_even = vbicq_s32(vaddq_s32(r_trunc, plusone), - vdupq_n_s32(1)); /* ([a] + {0,1}) & ~1 */ - float32x4_t delta = vsubq_f32( - vreinterpretq_f32_m128(a), - vcvtq_f32_s32(r_trunc)); /* compute delta: delta = (a - [a]) */ - uint32x4_t is_delta_half = - vceqq_f32(delta, half); /* delta == +/- 0.5 */ - return vreinterpretq_m128i_s32( - vbslq_s32(is_delta_half, r_even, r_normal)); - } - case _MM_ROUND_DOWN: - return _mm_set_epi32(floorf(f[3]), floorf(f[2]), floorf(f[1]), - floorf(f[0])); - case _MM_ROUND_UP: - return _mm_set_epi32(ceilf(f[3]), ceilf(f[2]), ceilf(f[1]), - ceilf(f[0])); - default: // _MM_ROUND_TOWARD_ZERO - return _mm_set_epi32((int32_t) f[3], (int32_t) f[2], (int32_t) f[1], - (int32_t) f[0]); - } -#endif -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed double-precision (64-bit) floating-point elements, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_pd -FORCE_INLINE __m128d _mm_cvtps_pd(__m128 a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vcvt_f64_f32(vget_low_f32(vreinterpretq_f32_m128(a)))); -#else - double a0 = (double) vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); - double a1 = (double) vgetq_lane_f32(vreinterpretq_f32_m128(a), 1); - return _mm_set_pd(a1, a0); -#endif -} - -// Copy the lower double-precision (64-bit) floating-point element of a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsd_f64 -FORCE_INLINE double _mm_cvtsd_f64(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return (double) vgetq_lane_f64(vreinterpretq_f64_m128d(a), 0); -#else - return ((double *) &a)[0]; -#endif -} - -// Convert the lower double-precision (64-bit) floating-point element in a to a -// 32-bit integer, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsd_si32 -FORCE_INLINE int32_t _mm_cvtsd_si32(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return (int32_t) vgetq_lane_f64(vrndiq_f64(vreinterpretq_f64_m128d(a)), 0); -#else - __m128d rnd = _mm_round_pd(a, _MM_FROUND_CUR_DIRECTION); - double ret = ((double *) &rnd)[0]; - return (int32_t) ret; -#endif -} - -// Convert the lower double-precision (64-bit) floating-point element in a to a -// 64-bit integer, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsd_si64 -FORCE_INLINE int64_t _mm_cvtsd_si64(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return (int64_t) vgetq_lane_f64(vrndiq_f64(vreinterpretq_f64_m128d(a)), 0); -#else - __m128d rnd = _mm_round_pd(a, _MM_FROUND_CUR_DIRECTION); - double ret = ((double *) &rnd)[0]; - return (int64_t) ret; -#endif -} - -// Convert the lower double-precision (64-bit) floating-point element in a to a -// 64-bit integer, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsd_si64x -#define _mm_cvtsd_si64x _mm_cvtsd_si64 - -// Convert the lower double-precision (64-bit) floating-point element in b to a -// single-precision (32-bit) floating-point element, store the result in the -// lower element of dst, and copy the upper 3 packed elements from a to the -// upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsd_ss -FORCE_INLINE __m128 _mm_cvtsd_ss(__m128 a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32(vsetq_lane_f32( - vget_lane_f32(vcvt_f32_f64(vreinterpretq_f64_m128d(b)), 0), - vreinterpretq_f32_m128(a), 0)); -#else - return vreinterpretq_m128_f32(vsetq_lane_f32((float) ((double *) &b)[0], - vreinterpretq_f32_m128(a), 0)); -#endif -} - -// Copy the lower 32-bit integer in a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi128_si32 -FORCE_INLINE int _mm_cvtsi128_si32(__m128i a) -{ - return vgetq_lane_s32(vreinterpretq_s32_m128i(a), 0); -} - -// Copy the lower 64-bit integer in a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi128_si64 -FORCE_INLINE int64_t _mm_cvtsi128_si64(__m128i a) -{ - return vgetq_lane_s64(vreinterpretq_s64_m128i(a), 0); -} - -// Copy the lower 64-bit integer in a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi128_si64x -#define _mm_cvtsi128_si64x(a) _mm_cvtsi128_si64(a) - -// Convert the signed 32-bit integer b to a double-precision (64-bit) -// floating-point element, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi32_sd -FORCE_INLINE __m128d _mm_cvtsi32_sd(__m128d a, int32_t b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vsetq_lane_f64((double) b, vreinterpretq_f64_m128d(a), 0)); -#else - double bf = (double) b; - return vreinterpretq_m128d_s64( - vsetq_lane_s64(*(int64_t *) &bf, vreinterpretq_s64_m128d(a), 0)); -#endif -} - -// Copy the lower 64-bit integer in a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi128_si64x -#define _mm_cvtsi128_si64x(a) _mm_cvtsi128_si64(a) - -// Copy 32-bit integer a to the lower elements of dst, and zero the upper -// elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi32_si128 -FORCE_INLINE __m128i _mm_cvtsi32_si128(int a) -{ - return vreinterpretq_m128i_s32(vsetq_lane_s32(a, vdupq_n_s32(0), 0)); -} - -// Convert the signed 64-bit integer b to a double-precision (64-bit) -// floating-point element, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi64_sd -FORCE_INLINE __m128d _mm_cvtsi64_sd(__m128d a, int64_t b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vsetq_lane_f64((double) b, vreinterpretq_f64_m128d(a), 0)); -#else - double bf = (double) b; - return vreinterpretq_m128d_s64( - vsetq_lane_s64(*(int64_t *) &bf, vreinterpretq_s64_m128d(a), 0)); -#endif -} - -// Copy 64-bit integer a to the lower element of dst, and zero the upper -// element. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi64_si128 -FORCE_INLINE __m128i _mm_cvtsi64_si128(int64_t a) -{ - return vreinterpretq_m128i_s64(vsetq_lane_s64(a, vdupq_n_s64(0), 0)); -} - -// Copy 64-bit integer a to the lower element of dst, and zero the upper -// element. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi64x_si128 -#define _mm_cvtsi64x_si128(a) _mm_cvtsi64_si128(a) - -// Convert the signed 64-bit integer b to a double-precision (64-bit) -// floating-point element, store the result in the lower element of dst, and -// copy the upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtsi64x_sd -#define _mm_cvtsi64x_sd(a, b) _mm_cvtsi64_sd(a, b) - -// Convert the lower single-precision (32-bit) floating-point element in b to a -// double-precision (64-bit) floating-point element, store the result in the -// lower element of dst, and copy the upper element from a to the upper element -// of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtss_sd -FORCE_INLINE __m128d _mm_cvtss_sd(__m128d a, __m128 b) -{ - double d = (double) vgetq_lane_f32(vreinterpretq_f32_m128(b), 0); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vsetq_lane_f64(d, vreinterpretq_f64_m128d(a), 0)); -#else - return vreinterpretq_m128d_s64( - vsetq_lane_s64(*(int64_t *) &d, vreinterpretq_s64_m128d(a), 0)); -#endif -} - -// Convert packed double-precision (64-bit) floating-point elements in a to -// packed 32-bit integers with truncation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttpd_epi32 -FORCE_INLINE __m128i _mm_cvttpd_epi32(__m128d a) -{ - double a0 = ((double *) &a)[0]; - double a1 = ((double *) &a)[1]; - return _mm_set_epi32(0, 0, (int32_t) a1, (int32_t) a0); -} - -// Convert packed double-precision (64-bit) floating-point elements in a to -// packed 32-bit integers with truncation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttpd_pi32 -FORCE_INLINE __m64 _mm_cvttpd_pi32(__m128d a) -{ - double a0 = ((double *) &a)[0]; - double a1 = ((double *) &a)[1]; - int32_t ALIGN_STRUCT(16) data[2] = {(int32_t) a0, (int32_t) a1}; - return vreinterpret_m64_s32(vld1_s32(data)); -} - -// Convert packed single-precision (32-bit) floating-point elements in a to -// packed 32-bit integers with truncation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttps_epi32 -FORCE_INLINE __m128i _mm_cvttps_epi32(__m128 a) -{ - return vreinterpretq_m128i_s32(vcvtq_s32_f32(vreinterpretq_f32_m128(a))); -} - -// Convert the lower double-precision (64-bit) floating-point element in a to a -// 32-bit integer with truncation, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttsd_si32 -FORCE_INLINE int32_t _mm_cvttsd_si32(__m128d a) -{ - double ret = *((double *) &a); - return (int32_t) ret; -} - -// Convert the lower double-precision (64-bit) floating-point element in a to a -// 64-bit integer with truncation, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttsd_si64 -FORCE_INLINE int64_t _mm_cvttsd_si64(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vgetq_lane_s64(vcvtq_s64_f64(vreinterpretq_f64_m128d(a)), 0); -#else - double ret = *((double *) &a); - return (int64_t) ret; -#endif -} - -// Convert the lower double-precision (64-bit) floating-point element in a to a -// 64-bit integer with truncation, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvttsd_si64x -#define _mm_cvttsd_si64x(a) _mm_cvttsd_si64(a) - -// Divide packed double-precision (64-bit) floating-point elements in a by -// packed elements in b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_div_pd -FORCE_INLINE __m128d _mm_div_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vdivq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2]; - c[0] = da[0] / db[0]; - c[1] = da[1] / db[1]; - return vld1q_f32((float32_t *) c); -#endif -} - -// Divide the lower double-precision (64-bit) floating-point element in a by the -// lower double-precision (64-bit) floating-point element in b, store the result -// in the lower element of dst, and copy the upper element from a to the upper -// element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_div_sd -FORCE_INLINE __m128d _mm_div_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - float64x2_t tmp = - vdivq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b)); - return vreinterpretq_m128d_f64( - vsetq_lane_f64(vgetq_lane_f64(vreinterpretq_f64_m128d(a), 1), tmp, 1)); -#else - return _mm_move_sd(a, _mm_div_pd(a, b)); -#endif -} - -// Extract a 16-bit integer from a, selected with imm8, and store the result in -// the lower element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_extract_epi16 -// FORCE_INLINE int _mm_extract_epi16(__m128i a, __constrange(0,8) int imm) -#define _mm_extract_epi16(a, imm) \ - vgetq_lane_u16(vreinterpretq_u16_m128i(a), (imm)) - -// Copy a to dst, and insert the 16-bit integer i into dst at the location -// specified by imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_insert_epi16 -// FORCE_INLINE __m128i _mm_insert_epi16(__m128i a, int b, -// __constrange(0,8) int imm) -#define _mm_insert_epi16(a, b, imm) \ - vreinterpretq_m128i_s16( \ - vsetq_lane_s16((b), vreinterpretq_s16_m128i(a), (imm))) - -// Load 128-bits (composed of 2 packed double-precision (64-bit) floating-point -// elements) from memory into dst. mem_addr must be aligned on a 16-byte -// boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_pd -FORCE_INLINE __m128d _mm_load_pd(const double *p) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vld1q_f64(p)); -#else - const float *fp = (const float *) p; - float ALIGN_STRUCT(16) data[4] = {fp[0], fp[1], fp[2], fp[3]}; - return vreinterpretq_m128d_f32(vld1q_f32(data)); -#endif -} - -// Load a double-precision (64-bit) floating-point element from memory into both -// elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_pd1 -#define _mm_load_pd1 _mm_load1_pd - -// Load a double-precision (64-bit) floating-point element from memory into the -// lower of dst, and zero the upper element. mem_addr does not need to be -// aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_sd -FORCE_INLINE __m128d _mm_load_sd(const double *p) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vsetq_lane_f64(*p, vdupq_n_f64(0), 0)); -#else - const float *fp = (const float *) p; - float ALIGN_STRUCT(16) data[4] = {fp[0], fp[1], 0, 0}; - return vreinterpretq_m128d_f32(vld1q_f32(data)); -#endif -} - -// Load 128-bits of integer data from memory into dst. mem_addr must be aligned -// on a 16-byte boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load_si128 -FORCE_INLINE __m128i _mm_load_si128(const __m128i *p) -{ - return vreinterpretq_m128i_s32(vld1q_s32((const int32_t *) p)); -} - -// Load a double-precision (64-bit) floating-point element from memory into both -// elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_load1_pd -FORCE_INLINE __m128d _mm_load1_pd(const double *p) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vld1q_dup_f64(p)); -#else - return vreinterpretq_m128d_s64(vdupq_n_s64(*(const int64_t *) p)); -#endif -} - -// Load a double-precision (64-bit) floating-point element from memory into the -// upper element of dst, and copy the lower element from a to dst. mem_addr does -// not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadh_pd -FORCE_INLINE __m128d _mm_loadh_pd(__m128d a, const double *p) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vcombine_f64(vget_low_f64(vreinterpretq_f64_m128d(a)), vld1_f64(p))); -#else - return vreinterpretq_m128d_f32(vcombine_f32( - vget_low_f32(vreinterpretq_f32_m128d(a)), vld1_f32((const float *) p))); -#endif -} - -// Load 64-bit integer from memory into the first element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadl_epi64 -FORCE_INLINE __m128i _mm_loadl_epi64(__m128i const *p) -{ - /* Load the lower 64 bits of the value pointed to by p into the - * lower 64 bits of the result, zeroing the upper 64 bits of the result. - */ - return vreinterpretq_m128i_s32( - vcombine_s32(vld1_s32((int32_t const *) p), vcreate_s32(0))); -} - -// Load a double-precision (64-bit) floating-point element from memory into the -// lower element of dst, and copy the upper element from a to dst. mem_addr does -// not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadl_pd -FORCE_INLINE __m128d _mm_loadl_pd(__m128d a, const double *p) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vcombine_f64(vld1_f64(p), vget_high_f64(vreinterpretq_f64_m128d(a)))); -#else - return vreinterpretq_m128d_f32( - vcombine_f32(vld1_f32((const float *) p), - vget_high_f32(vreinterpretq_f32_m128d(a)))); -#endif -} - -// Load 2 double-precision (64-bit) floating-point elements from memory into dst -// in reverse order. mem_addr must be aligned on a 16-byte boundary or a -// general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadr_pd -FORCE_INLINE __m128d _mm_loadr_pd(const double *p) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - float64x2_t v = vld1q_f64(p); - return vreinterpretq_m128d_f64(vextq_f64(v, v, 1)); -#else - int64x2_t v = vld1q_s64((const int64_t *) p); - return vreinterpretq_m128d_s64(vextq_s64(v, v, 1)); -#endif -} - -// Loads two double-precision from unaligned memory, floating-point values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadu_pd -FORCE_INLINE __m128d _mm_loadu_pd(const double *p) -{ - return _mm_load_pd(p); -} - -// Load 128-bits of integer data from memory into dst. mem_addr does not need to -// be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadu_si128 -FORCE_INLINE __m128i _mm_loadu_si128(const __m128i *p) -{ - return vreinterpretq_m128i_s32(vld1q_s32((const int32_t *) p)); -} - -// Load unaligned 32-bit integer from memory into the first element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loadu_si32 -FORCE_INLINE __m128i _mm_loadu_si32(const void *p) -{ - return vreinterpretq_m128i_s32( - vsetq_lane_s32(*(const int32_t *) p, vdupq_n_s32(0), 0)); -} - -// Multiply packed signed 16-bit integers in a and b, producing intermediate -// signed 32-bit integers. Horizontally add adjacent pairs of intermediate -// 32-bit integers, and pack the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_madd_epi16 -FORCE_INLINE __m128i _mm_madd_epi16(__m128i a, __m128i b) -{ - int32x4_t low = vmull_s16(vget_low_s16(vreinterpretq_s16_m128i(a)), - vget_low_s16(vreinterpretq_s16_m128i(b))); -#if defined(__aarch64__) || defined(_M_ARM64) - int32x4_t high = - vmull_high_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b)); - - return vreinterpretq_m128i_s32(vpaddq_s32(low, high)); -#else - int32x4_t high = vmull_s16(vget_high_s16(vreinterpretq_s16_m128i(a)), - vget_high_s16(vreinterpretq_s16_m128i(b))); - - int32x2_t low_sum = vpadd_s32(vget_low_s32(low), vget_high_s32(low)); - int32x2_t high_sum = vpadd_s32(vget_low_s32(high), vget_high_s32(high)); - - return vreinterpretq_m128i_s32(vcombine_s32(low_sum, high_sum)); -#endif -} - -// Conditionally store 8-bit integer elements from a into memory using mask -// (elements are not stored when the highest bit is not set in the corresponding -// element) and a non-temporal memory hint. mem_addr does not need to be aligned -// on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_maskmoveu_si128 -FORCE_INLINE void _mm_maskmoveu_si128(__m128i a, __m128i mask, char *mem_addr) -{ - int8x16_t shr_mask = vshrq_n_s8(vreinterpretq_s8_m128i(mask), 7); - __m128 b = _mm_load_ps((const float *) mem_addr); - int8x16_t masked = - vbslq_s8(vreinterpretq_u8_s8(shr_mask), vreinterpretq_s8_m128i(a), - vreinterpretq_s8_m128(b)); - vst1q_s8((int8_t *) mem_addr, masked); -} - -// Compare packed signed 16-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epi16 -FORCE_INLINE __m128i _mm_max_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vmaxq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Compare packed unsigned 8-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epu8 -FORCE_INLINE __m128i _mm_max_epu8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vmaxq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b, -// and store packed maximum values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_pd -FORCE_INLINE __m128d _mm_max_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) -#if SSE2NEON_PRECISE_MINMAX - float64x2_t _a = vreinterpretq_f64_m128d(a); - float64x2_t _b = vreinterpretq_f64_m128d(b); - return vreinterpretq_m128d_f64(vbslq_f64(vcgtq_f64(_a, _b), _a, _b)); -#else - return vreinterpretq_m128d_f64( - vmaxq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#endif -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) > (*(double *) &b0) ? a0 : b0; - d[1] = (*(double *) &a1) > (*(double *) &b1) ? a1 : b1; - - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b, store the maximum value in the lower element of dst, and copy the upper -// element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_sd -FORCE_INLINE __m128d _mm_max_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_max_pd(a, b)); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2] = {da[0] > db[0] ? da[0] : db[0], da[1]}; - return vreinterpretq_m128d_f32(vld1q_f32((float32_t *) c)); -#endif -} - -// Compare packed signed 16-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_epi16 -FORCE_INLINE __m128i _mm_min_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vminq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Compare packed unsigned 8-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_epu8 -FORCE_INLINE __m128i _mm_min_epu8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vminq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); -} - -// Compare packed double-precision (64-bit) floating-point elements in a and b, -// and store packed minimum values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_pd -FORCE_INLINE __m128d _mm_min_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) -#if SSE2NEON_PRECISE_MINMAX - float64x2_t _a = vreinterpretq_f64_m128d(a); - float64x2_t _b = vreinterpretq_f64_m128d(b); - return vreinterpretq_m128d_f64(vbslq_f64(vcltq_f64(_a, _b), _a, _b)); -#else - return vreinterpretq_m128d_f64( - vminq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#endif -#else - uint64_t a0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(a)); - uint64_t a1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(a)); - uint64_t b0 = (uint64_t) vget_low_u64(vreinterpretq_u64_m128d(b)); - uint64_t b1 = (uint64_t) vget_high_u64(vreinterpretq_u64_m128d(b)); - uint64_t d[2]; - d[0] = (*(double *) &a0) < (*(double *) &b0) ? a0 : b0; - d[1] = (*(double *) &a1) < (*(double *) &b1) ? a1 : b1; - return vreinterpretq_m128d_u64(vld1q_u64(d)); -#endif -} - -// Compare the lower double-precision (64-bit) floating-point elements in a and -// b, store the minimum value in the lower element of dst, and copy the upper -// element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_sd -FORCE_INLINE __m128d _mm_min_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_min_pd(a, b)); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2] = {da[0] < db[0] ? da[0] : db[0], da[1]}; - return vreinterpretq_m128d_f32(vld1q_f32((float32_t *) c)); -#endif -} - -// Copy the lower 64-bit integer in a to the lower element of dst, and zero the -// upper element. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_move_epi64 -FORCE_INLINE __m128i _mm_move_epi64(__m128i a) -{ - return vreinterpretq_m128i_s64( - vsetq_lane_s64(0, vreinterpretq_s64_m128i(a), 1)); -} - -// Move the lower double-precision (64-bit) floating-point element from b to the -// lower element of dst, and copy the upper element from a to the upper element -// of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_move_sd -FORCE_INLINE __m128d _mm_move_sd(__m128d a, __m128d b) -{ - return vreinterpretq_m128d_f32( - vcombine_f32(vget_low_f32(vreinterpretq_f32_m128d(b)), - vget_high_f32(vreinterpretq_f32_m128d(a)))); -} - -// Create mask from the most significant bit of each 8-bit element in a, and -// store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movemask_epi8 -FORCE_INLINE int _mm_movemask_epi8(__m128i a) -{ - // Use increasingly wide shifts+adds to collect the sign bits - // together. - // Since the widening shifts would be rather confusing to follow in little - // endian, everything will be illustrated in big endian order instead. This - // has a different result - the bits would actually be reversed on a big - // endian machine. - - // Starting input (only half the elements are shown): - // 89 ff 1d c0 00 10 99 33 - uint8x16_t input = vreinterpretq_u8_m128i(a); - - // Shift out everything but the sign bits with an unsigned shift right. - // - // Bytes of the vector:: - // 89 ff 1d c0 00 10 99 33 - // \ \ \ \ \ \ \ \ high_bits = (uint16x4_t)(input >> 7) - // | | | | | | | | - // 01 01 00 01 00 00 01 00 - // - // Bits of first important lane(s): - // 10001001 (89) - // \______ - // | - // 00000001 (01) - uint16x8_t high_bits = vreinterpretq_u16_u8(vshrq_n_u8(input, 7)); - - // Merge the even lanes together with a 16-bit unsigned shift right + add. - // 'xx' represents garbage data which will be ignored in the final result. - // In the important bytes, the add functions like a binary OR. - // - // 01 01 00 01 00 00 01 00 - // \_ | \_ | \_ | \_ | paired16 = (uint32x4_t)(input + (input >> 7)) - // \| \| \| \| - // xx 03 xx 01 xx 00 xx 02 - // - // 00000001 00000001 (01 01) - // \_______ | - // \| - // xxxxxxxx xxxxxx11 (xx 03) - uint32x4_t paired16 = - vreinterpretq_u32_u16(vsraq_n_u16(high_bits, high_bits, 7)); - - // Repeat with a wider 32-bit shift + add. - // xx 03 xx 01 xx 00 xx 02 - // \____ | \____ | paired32 = (uint64x1_t)(paired16 + (paired16 >> - // 14)) - // \| \| - // xx xx xx 0d xx xx xx 02 - // - // 00000011 00000001 (03 01) - // \\_____ || - // '----.\|| - // xxxxxxxx xxxx1101 (xx 0d) - uint64x2_t paired32 = - vreinterpretq_u64_u32(vsraq_n_u32(paired16, paired16, 14)); - - // Last, an even wider 64-bit shift + add to get our result in the low 8 bit - // lanes. xx xx xx 0d xx xx xx 02 - // \_________ | paired64 = (uint8x8_t)(paired32 + (paired32 >> - // 28)) - // \| - // xx xx xx xx xx xx xx d2 - // - // 00001101 00000010 (0d 02) - // \ \___ | | - // '---. \| | - // xxxxxxxx 11010010 (xx d2) - uint8x16_t paired64 = - vreinterpretq_u8_u64(vsraq_n_u64(paired32, paired32, 28)); - - // Extract the low 8 bits from each 64-bit lane with 2 8-bit extracts. - // xx xx xx xx xx xx xx d2 - // || return paired64[0] - // d2 - // Note: Little endian would return the correct value 4b (01001011) instead. - return vgetq_lane_u8(paired64, 0) | ((int) vgetq_lane_u8(paired64, 8) << 8); -} - -// Set each bit of mask dst based on the most significant bit of the -// corresponding packed double-precision (64-bit) floating-point element in a. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movemask_pd -FORCE_INLINE int _mm_movemask_pd(__m128d a) -{ - uint64x2_t input = vreinterpretq_u64_m128d(a); - uint64x2_t high_bits = vshrq_n_u64(input, 63); - return (int) (vgetq_lane_u64(high_bits, 0) | - (vgetq_lane_u64(high_bits, 1) << 1)); -} - -// Copy the lower 64-bit integer in a to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movepi64_pi64 -FORCE_INLINE __m64 _mm_movepi64_pi64(__m128i a) -{ - return vreinterpret_m64_s64(vget_low_s64(vreinterpretq_s64_m128i(a))); -} - -// Copy the 64-bit integer a to the lower element of dst, and zero the upper -// element. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movpi64_epi64 -FORCE_INLINE __m128i _mm_movpi64_epi64(__m64 a) -{ - return vreinterpretq_m128i_s64( - vcombine_s64(vreinterpret_s64_m64(a), vdup_n_s64(0))); -} - -// Multiply the low unsigned 32-bit integers from each packed 64-bit element in -// a and b, and store the unsigned 64-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mul_epu32 -FORCE_INLINE __m128i _mm_mul_epu32(__m128i a, __m128i b) -{ - // vmull_u32 upcasts instead of masking, so we downcast. - uint32x2_t a_lo = vmovn_u64(vreinterpretq_u64_m128i(a)); - uint32x2_t b_lo = vmovn_u64(vreinterpretq_u64_m128i(b)); - return vreinterpretq_m128i_u64(vmull_u32(a_lo, b_lo)); -} - -// Multiply packed double-precision (64-bit) floating-point elements in a and b, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mul_pd -FORCE_INLINE __m128d _mm_mul_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vmulq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2]; - c[0] = da[0] * db[0]; - c[1] = da[1] * db[1]; - return vld1q_f32((float32_t *) c); -#endif -} - -// Multiply the lower double-precision (64-bit) floating-point element in a and -// b, store the result in the lower element of dst, and copy the upper element -// from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_mul_sd -FORCE_INLINE __m128d _mm_mul_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_mul_pd(a, b)); -} - -// Multiply the low unsigned 32-bit integers from a and b, and store the -// unsigned 64-bit result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mul_su32 -FORCE_INLINE __m64 _mm_mul_su32(__m64 a, __m64 b) -{ - return vreinterpret_m64_u64(vget_low_u64( - vmull_u32(vreinterpret_u32_m64(a), vreinterpret_u32_m64(b)))); -} - -// Multiply the packed signed 16-bit integers in a and b, producing intermediate -// 32-bit integers, and store the high 16 bits of the intermediate integers in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mulhi_epi16 -FORCE_INLINE __m128i _mm_mulhi_epi16(__m128i a, __m128i b) -{ - /* FIXME: issue with large values because of result saturation */ - // int16x8_t ret = vqdmulhq_s16(vreinterpretq_s16_m128i(a), - // vreinterpretq_s16_m128i(b)); /* =2*a*b */ return - // vreinterpretq_m128i_s16(vshrq_n_s16(ret, 1)); - int16x4_t a3210 = vget_low_s16(vreinterpretq_s16_m128i(a)); - int16x4_t b3210 = vget_low_s16(vreinterpretq_s16_m128i(b)); - int32x4_t ab3210 = vmull_s16(a3210, b3210); /* 3333222211110000 */ - int16x4_t a7654 = vget_high_s16(vreinterpretq_s16_m128i(a)); - int16x4_t b7654 = vget_high_s16(vreinterpretq_s16_m128i(b)); - int32x4_t ab7654 = vmull_s16(a7654, b7654); /* 7777666655554444 */ - uint16x8x2_t r = - vuzpq_u16(vreinterpretq_u16_s32(ab3210), vreinterpretq_u16_s32(ab7654)); - return vreinterpretq_m128i_u16(r.val[1]); -} - -// Multiply the packed unsigned 16-bit integers in a and b, producing -// intermediate 32-bit integers, and store the high 16 bits of the intermediate -// integers in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mulhi_epu16 -FORCE_INLINE __m128i _mm_mulhi_epu16(__m128i a, __m128i b) -{ - uint16x4_t a3210 = vget_low_u16(vreinterpretq_u16_m128i(a)); - uint16x4_t b3210 = vget_low_u16(vreinterpretq_u16_m128i(b)); - uint32x4_t ab3210 = vmull_u16(a3210, b3210); -#if defined(__aarch64__) || defined(_M_ARM64) - uint32x4_t ab7654 = - vmull_high_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b)); - uint16x8_t r = vuzp2q_u16(vreinterpretq_u16_u32(ab3210), - vreinterpretq_u16_u32(ab7654)); - return vreinterpretq_m128i_u16(r); -#else - uint16x4_t a7654 = vget_high_u16(vreinterpretq_u16_m128i(a)); - uint16x4_t b7654 = vget_high_u16(vreinterpretq_u16_m128i(b)); - uint32x4_t ab7654 = vmull_u16(a7654, b7654); - uint16x8x2_t r = - vuzpq_u16(vreinterpretq_u16_u32(ab3210), vreinterpretq_u16_u32(ab7654)); - return vreinterpretq_m128i_u16(r.val[1]); -#endif -} - -// Multiply the packed 16-bit integers in a and b, producing intermediate 32-bit -// integers, and store the low 16 bits of the intermediate integers in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mullo_epi16 -FORCE_INLINE __m128i _mm_mullo_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vmulq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Compute the bitwise OR of packed double-precision (64-bit) floating-point -// elements in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_or_pd -FORCE_INLINE __m128d _mm_or_pd(__m128d a, __m128d b) -{ - return vreinterpretq_m128d_s64( - vorrq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b))); -} - -// Compute the bitwise OR of 128 bits (representing integer data) in a and b, -// and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_or_si128 -FORCE_INLINE __m128i _mm_or_si128(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vorrq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Convert packed signed 16-bit integers from a and b to packed 8-bit integers -// using signed saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi16 -FORCE_INLINE __m128i _mm_packs_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vcombine_s8(vqmovn_s16(vreinterpretq_s16_m128i(a)), - vqmovn_s16(vreinterpretq_s16_m128i(b)))); -} - -// Convert packed signed 32-bit integers from a and b to packed 16-bit integers -// using signed saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi32 -FORCE_INLINE __m128i _mm_packs_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vcombine_s16(vqmovn_s32(vreinterpretq_s32_m128i(a)), - vqmovn_s32(vreinterpretq_s32_m128i(b)))); -} - -// Convert packed signed 16-bit integers from a and b to packed 8-bit integers -// using unsigned saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi16 -FORCE_INLINE __m128i _mm_packus_epi16(const __m128i a, const __m128i b) -{ - return vreinterpretq_m128i_u8( - vcombine_u8(vqmovun_s16(vreinterpretq_s16_m128i(a)), - vqmovun_s16(vreinterpretq_s16_m128i(b)))); -} - -// Pause the processor. This is typically used in spin-wait loops and depending -// on the x86 processor typical values are in the 40-100 cycle range. The -// 'yield' instruction isn't a good fit because it's effectively a nop on most -// Arm cores. Experience with several databases has shown has shown an 'isb' is -// a reasonable approximation. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_pause -FORCE_INLINE void _mm_pause(void) -{ -#if defined(_MSC_VER) - __isb(_ARM64_BARRIER_SY); -#else - __asm__ __volatile__("isb\n"); -#endif -} - -// Compute the absolute differences of packed unsigned 8-bit integers in a and -// b, then horizontally sum each consecutive 8 differences to produce two -// unsigned 16-bit integers, and pack these unsigned 16-bit integers in the low -// 16 bits of 64-bit elements in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sad_epu8 -FORCE_INLINE __m128i _mm_sad_epu8(__m128i a, __m128i b) -{ - uint16x8_t t = vpaddlq_u8(vabdq_u8((uint8x16_t) a, (uint8x16_t) b)); - return vreinterpretq_m128i_u64(vpaddlq_u32(vpaddlq_u16(t))); -} - -// Set packed 16-bit integers in dst with the supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_epi16 -FORCE_INLINE __m128i _mm_set_epi16(short i7, - short i6, - short i5, - short i4, - short i3, - short i2, - short i1, - short i0) -{ - int16_t ALIGN_STRUCT(16) data[8] = {i0, i1, i2, i3, i4, i5, i6, i7}; - return vreinterpretq_m128i_s16(vld1q_s16(data)); -} - -// Set packed 32-bit integers in dst with the supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_epi32 -FORCE_INLINE __m128i _mm_set_epi32(int i3, int i2, int i1, int i0) -{ - int32_t ALIGN_STRUCT(16) data[4] = {i0, i1, i2, i3}; - return vreinterpretq_m128i_s32(vld1q_s32(data)); -} - -// Set packed 64-bit integers in dst with the supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_epi64 -FORCE_INLINE __m128i _mm_set_epi64(__m64 i1, __m64 i2) -{ - return _mm_set_epi64x(vget_lane_s64(i1, 0), vget_lane_s64(i2, 0)); -} - -// Set packed 64-bit integers in dst with the supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_epi64x -FORCE_INLINE __m128i _mm_set_epi64x(int64_t i1, int64_t i2) -{ - return vreinterpretq_m128i_s64( - vcombine_s64(vcreate_s64(i2), vcreate_s64(i1))); -} - -// Set packed 8-bit integers in dst with the supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_epi8 -FORCE_INLINE __m128i _mm_set_epi8(signed char b15, - signed char b14, - signed char b13, - signed char b12, - signed char b11, - signed char b10, - signed char b9, - signed char b8, - signed char b7, - signed char b6, - signed char b5, - signed char b4, - signed char b3, - signed char b2, - signed char b1, - signed char b0) -{ - int8_t ALIGN_STRUCT(16) - data[16] = {(int8_t) b0, (int8_t) b1, (int8_t) b2, (int8_t) b3, - (int8_t) b4, (int8_t) b5, (int8_t) b6, (int8_t) b7, - (int8_t) b8, (int8_t) b9, (int8_t) b10, (int8_t) b11, - (int8_t) b12, (int8_t) b13, (int8_t) b14, (int8_t) b15}; - return (__m128i) vld1q_s8(data); -} - -// Set packed double-precision (64-bit) floating-point elements in dst with the -// supplied values. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_pd -FORCE_INLINE __m128d _mm_set_pd(double e1, double e0) -{ - double ALIGN_STRUCT(16) data[2] = {e0, e1}; -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vld1q_f64((float64_t *) data)); -#else - return vreinterpretq_m128d_f32(vld1q_f32((float32_t *) data)); -#endif -} - -// Broadcast double-precision (64-bit) floating-point value a to all elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_pd1 -#define _mm_set_pd1 _mm_set1_pd - -// Copy double-precision (64-bit) floating-point element a to the lower element -// of dst, and zero the upper element. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set_sd -FORCE_INLINE __m128d _mm_set_sd(double a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vsetq_lane_f64(a, vdupq_n_f64(0), 0)); -#else - return _mm_set_pd(0, a); -#endif -} - -// Broadcast 16-bit integer a to all elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_epi16 -FORCE_INLINE __m128i _mm_set1_epi16(short w) -{ - return vreinterpretq_m128i_s16(vdupq_n_s16(w)); -} - -// Broadcast 32-bit integer a to all elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_epi32 -FORCE_INLINE __m128i _mm_set1_epi32(int _i) -{ - return vreinterpretq_m128i_s32(vdupq_n_s32(_i)); -} - -// Broadcast 64-bit integer a to all elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_epi64 -FORCE_INLINE __m128i _mm_set1_epi64(__m64 _i) -{ - return vreinterpretq_m128i_s64(vdupq_lane_s64(_i, 0)); -} - -// Broadcast 64-bit integer a to all elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_epi64x -FORCE_INLINE __m128i _mm_set1_epi64x(int64_t _i) -{ - return vreinterpretq_m128i_s64(vdupq_n_s64(_i)); -} - -// Broadcast 8-bit integer a to all elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_epi8 -FORCE_INLINE __m128i _mm_set1_epi8(signed char w) -{ - return vreinterpretq_m128i_s8(vdupq_n_s8(w)); -} - -// Broadcast double-precision (64-bit) floating-point value a to all elements of -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_set1_pd -FORCE_INLINE __m128d _mm_set1_pd(double d) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vdupq_n_f64(d)); -#else - return vreinterpretq_m128d_s64(vdupq_n_s64(*(int64_t *) &d)); -#endif -} - -// Set packed 16-bit integers in dst with the supplied values in reverse order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setr_epi16 -FORCE_INLINE __m128i _mm_setr_epi16(short w0, - short w1, - short w2, - short w3, - short w4, - short w5, - short w6, - short w7) -{ - int16_t ALIGN_STRUCT(16) data[8] = {w0, w1, w2, w3, w4, w5, w6, w7}; - return vreinterpretq_m128i_s16(vld1q_s16((int16_t *) data)); -} - -// Set packed 32-bit integers in dst with the supplied values in reverse order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setr_epi32 -FORCE_INLINE __m128i _mm_setr_epi32(int i3, int i2, int i1, int i0) -{ - int32_t ALIGN_STRUCT(16) data[4] = {i3, i2, i1, i0}; - return vreinterpretq_m128i_s32(vld1q_s32(data)); -} - -// Set packed 64-bit integers in dst with the supplied values in reverse order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setr_epi64 -FORCE_INLINE __m128i _mm_setr_epi64(__m64 e1, __m64 e0) -{ - return vreinterpretq_m128i_s64(vcombine_s64(e1, e0)); -} - -// Set packed 8-bit integers in dst with the supplied values in reverse order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setr_epi8 -FORCE_INLINE __m128i _mm_setr_epi8(signed char b0, - signed char b1, - signed char b2, - signed char b3, - signed char b4, - signed char b5, - signed char b6, - signed char b7, - signed char b8, - signed char b9, - signed char b10, - signed char b11, - signed char b12, - signed char b13, - signed char b14, - signed char b15) -{ - int8_t ALIGN_STRUCT(16) - data[16] = {(int8_t) b0, (int8_t) b1, (int8_t) b2, (int8_t) b3, - (int8_t) b4, (int8_t) b5, (int8_t) b6, (int8_t) b7, - (int8_t) b8, (int8_t) b9, (int8_t) b10, (int8_t) b11, - (int8_t) b12, (int8_t) b13, (int8_t) b14, (int8_t) b15}; - return (__m128i) vld1q_s8(data); -} - -// Set packed double-precision (64-bit) floating-point elements in dst with the -// supplied values in reverse order. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setr_pd -FORCE_INLINE __m128d _mm_setr_pd(double e1, double e0) -{ - return _mm_set_pd(e0, e1); -} - -// Return vector of type __m128d with all elements set to zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setzero_pd -FORCE_INLINE __m128d _mm_setzero_pd(void) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vdupq_n_f64(0)); -#else - return vreinterpretq_m128d_f32(vdupq_n_f32(0)); -#endif -} - -// Return vector of type __m128i with all elements set to zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_setzero_si128 -FORCE_INLINE __m128i _mm_setzero_si128(void) -{ - return vreinterpretq_m128i_s32(vdupq_n_s32(0)); -} - -// Shuffle 32-bit integers in a using the control in imm8, and store the results -// in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shuffle_epi32 -// FORCE_INLINE __m128i _mm_shuffle_epi32(__m128i a, -// __constrange(0,255) int imm) -#if defined(_sse2neon_shuffle) -#define _mm_shuffle_epi32(a, imm) \ - __extension__({ \ - int32x4_t _input = vreinterpretq_s32_m128i(a); \ - int32x4_t _shuf = \ - vshuffleq_s32(_input, _input, (imm) & (0x3), ((imm) >> 2) & 0x3, \ - ((imm) >> 4) & 0x3, ((imm) >> 6) & 0x3); \ - vreinterpretq_m128i_s32(_shuf); \ - }) -#else // generic -#define _mm_shuffle_epi32(a, imm) \ - _sse2neon_define1( \ - __m128i, a, __m128i ret; switch (imm) { \ - case _MM_SHUFFLE(1, 0, 3, 2): \ - ret = _mm_shuffle_epi_1032(_a); \ - break; \ - case _MM_SHUFFLE(2, 3, 0, 1): \ - ret = _mm_shuffle_epi_2301(_a); \ - break; \ - case _MM_SHUFFLE(0, 3, 2, 1): \ - ret = _mm_shuffle_epi_0321(_a); \ - break; \ - case _MM_SHUFFLE(2, 1, 0, 3): \ - ret = _mm_shuffle_epi_2103(_a); \ - break; \ - case _MM_SHUFFLE(1, 0, 1, 0): \ - ret = _mm_shuffle_epi_1010(_a); \ - break; \ - case _MM_SHUFFLE(1, 0, 0, 1): \ - ret = _mm_shuffle_epi_1001(_a); \ - break; \ - case _MM_SHUFFLE(0, 1, 0, 1): \ - ret = _mm_shuffle_epi_0101(_a); \ - break; \ - case _MM_SHUFFLE(2, 2, 1, 1): \ - ret = _mm_shuffle_epi_2211(_a); \ - break; \ - case _MM_SHUFFLE(0, 1, 2, 2): \ - ret = _mm_shuffle_epi_0122(_a); \ - break; \ - case _MM_SHUFFLE(3, 3, 3, 2): \ - ret = _mm_shuffle_epi_3332(_a); \ - break; \ - case _MM_SHUFFLE(0, 0, 0, 0): \ - ret = _mm_shuffle_epi32_splat(_a, 0); \ - break; \ - case _MM_SHUFFLE(1, 1, 1, 1): \ - ret = _mm_shuffle_epi32_splat(_a, 1); \ - break; \ - case _MM_SHUFFLE(2, 2, 2, 2): \ - ret = _mm_shuffle_epi32_splat(_a, 2); \ - break; \ - case _MM_SHUFFLE(3, 3, 3, 3): \ - ret = _mm_shuffle_epi32_splat(_a, 3); \ - break; \ - default: \ - ret = _mm_shuffle_epi32_default(_a, (imm)); \ - break; \ - } _sse2neon_return(ret);) -#endif - -// Shuffle double-precision (64-bit) floating-point elements using the control -// in imm8, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shuffle_pd -#ifdef _sse2neon_shuffle -#define _mm_shuffle_pd(a, b, imm8) \ - vreinterpretq_m128d_s64( \ - vshuffleq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b), \ - imm8 & 0x1, ((imm8 & 0x2) >> 1) + 2)) -#else -#define _mm_shuffle_pd(a, b, imm8) \ - _mm_castsi128_pd(_mm_set_epi64x( \ - vgetq_lane_s64(vreinterpretq_s64_m128d(b), (imm8 & 0x2) >> 1), \ - vgetq_lane_s64(vreinterpretq_s64_m128d(a), imm8 & 0x1))) -#endif - -// FORCE_INLINE __m128i _mm_shufflehi_epi16(__m128i a, -// __constrange(0,255) int imm) -#if defined(_sse2neon_shuffle) -#define _mm_shufflehi_epi16(a, imm) \ - __extension__({ \ - int16x8_t _input = vreinterpretq_s16_m128i(a); \ - int16x8_t _shuf = \ - vshuffleq_s16(_input, _input, 0, 1, 2, 3, ((imm) & (0x3)) + 4, \ - (((imm) >> 2) & 0x3) + 4, (((imm) >> 4) & 0x3) + 4, \ - (((imm) >> 6) & 0x3) + 4); \ - vreinterpretq_m128i_s16(_shuf); \ - }) -#else // generic -#define _mm_shufflehi_epi16(a, imm) _mm_shufflehi_epi16_function((a), (imm)) -#endif - -// FORCE_INLINE __m128i _mm_shufflelo_epi16(__m128i a, -// __constrange(0,255) int imm) -#if defined(_sse2neon_shuffle) -#define _mm_shufflelo_epi16(a, imm) \ - __extension__({ \ - int16x8_t _input = vreinterpretq_s16_m128i(a); \ - int16x8_t _shuf = vshuffleq_s16( \ - _input, _input, ((imm) & (0x3)), (((imm) >> 2) & 0x3), \ - (((imm) >> 4) & 0x3), (((imm) >> 6) & 0x3), 4, 5, 6, 7); \ - vreinterpretq_m128i_s16(_shuf); \ - }) -#else // generic -#define _mm_shufflelo_epi16(a, imm) _mm_shufflelo_epi16_function((a), (imm)) -#endif - -// Shift packed 16-bit integers in a left by count while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sll_epi16 -FORCE_INLINE __m128i _mm_sll_epi16(__m128i a, __m128i count) -{ - uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); - if (_sse2neon_unlikely(c & ~15)) - return _mm_setzero_si128(); - - int16x8_t vc = vdupq_n_s16((int16_t) c); - return vreinterpretq_m128i_s16(vshlq_s16(vreinterpretq_s16_m128i(a), vc)); -} - -// Shift packed 32-bit integers in a left by count while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sll_epi32 -FORCE_INLINE __m128i _mm_sll_epi32(__m128i a, __m128i count) -{ - uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); - if (_sse2neon_unlikely(c & ~31)) - return _mm_setzero_si128(); - - int32x4_t vc = vdupq_n_s32((int32_t) c); - return vreinterpretq_m128i_s32(vshlq_s32(vreinterpretq_s32_m128i(a), vc)); -} - -// Shift packed 64-bit integers in a left by count while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sll_epi64 -FORCE_INLINE __m128i _mm_sll_epi64(__m128i a, __m128i count) -{ - uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); - if (_sse2neon_unlikely(c & ~63)) - return _mm_setzero_si128(); - - int64x2_t vc = vdupq_n_s64((int64_t) c); - return vreinterpretq_m128i_s64(vshlq_s64(vreinterpretq_s64_m128i(a), vc)); -} - -// Shift packed 16-bit integers in a left by imm8 while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_slli_epi16 -FORCE_INLINE __m128i _mm_slli_epi16(__m128i a, int imm) -{ - if (_sse2neon_unlikely(imm & ~15)) - return _mm_setzero_si128(); - return vreinterpretq_m128i_s16( - vshlq_s16(vreinterpretq_s16_m128i(a), vdupq_n_s16(imm))); -} - -// Shift packed 32-bit integers in a left by imm8 while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_slli_epi32 -FORCE_INLINE __m128i _mm_slli_epi32(__m128i a, int imm) -{ - if (_sse2neon_unlikely(imm & ~31)) - return _mm_setzero_si128(); - return vreinterpretq_m128i_s32( - vshlq_s32(vreinterpretq_s32_m128i(a), vdupq_n_s32(imm))); -} - -// Shift packed 64-bit integers in a left by imm8 while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_slli_epi64 -FORCE_INLINE __m128i _mm_slli_epi64(__m128i a, int imm) -{ - if (_sse2neon_unlikely(imm & ~63)) - return _mm_setzero_si128(); - return vreinterpretq_m128i_s64( - vshlq_s64(vreinterpretq_s64_m128i(a), vdupq_n_s64(imm))); -} - -// Shift a left by imm8 bytes while shifting in zeros, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_slli_si128 -#define _mm_slli_si128(a, imm) \ - _sse2neon_define1( \ - __m128i, a, int8x16_t ret; \ - if (_sse2neon_unlikely(imm == 0)) ret = vreinterpretq_s8_m128i(_a); \ - else if (_sse2neon_unlikely((imm) & ~15)) ret = vdupq_n_s8(0); \ - else ret = vextq_s8(vdupq_n_s8(0), vreinterpretq_s8_m128i(_a), \ - ((imm <= 0 || imm > 15) ? 0 : (16 - imm))); \ - _sse2neon_return(vreinterpretq_m128i_s8(ret));) - -// Compute the square root of packed double-precision (64-bit) floating-point -// elements in a, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sqrt_pd -FORCE_INLINE __m128d _mm_sqrt_pd(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vsqrtq_f64(vreinterpretq_f64_m128d(a))); -#else - double a0 = sqrt(((double *) &a)[0]); - double a1 = sqrt(((double *) &a)[1]); - return _mm_set_pd(a1, a0); -#endif -} - -// Compute the square root of the lower double-precision (64-bit) floating-point -// element in b, store the result in the lower element of dst, and copy the -// upper element from a to the upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sqrt_sd -FORCE_INLINE __m128d _mm_sqrt_sd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return _mm_move_sd(a, _mm_sqrt_pd(b)); -#else - return _mm_set_pd(((double *) &a)[1], sqrt(((double *) &b)[0])); -#endif -} - -// Shift packed 16-bit integers in a right by count while shifting in sign bits, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sra_epi16 -FORCE_INLINE __m128i _mm_sra_epi16(__m128i a, __m128i count) -{ - int64_t c = vgetq_lane_s64(count, 0); - if (_sse2neon_unlikely(c & ~15)) - return _mm_cmplt_epi16(a, _mm_setzero_si128()); - return vreinterpretq_m128i_s16( - vshlq_s16((int16x8_t) a, vdupq_n_s16((int) -c))); -} - -// Shift packed 32-bit integers in a right by count while shifting in sign bits, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sra_epi32 -FORCE_INLINE __m128i _mm_sra_epi32(__m128i a, __m128i count) -{ - int64_t c = vgetq_lane_s64(count, 0); - if (_sse2neon_unlikely(c & ~31)) - return _mm_cmplt_epi32(a, _mm_setzero_si128()); - return vreinterpretq_m128i_s32( - vshlq_s32((int32x4_t) a, vdupq_n_s32((int) -c))); -} - -// Shift packed 16-bit integers in a right by imm8 while shifting in sign -// bits, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srai_epi16 -FORCE_INLINE __m128i _mm_srai_epi16(__m128i a, int imm) -{ - const int count = (imm & ~15) ? 15 : imm; - return (__m128i) vshlq_s16((int16x8_t) a, vdupq_n_s16(-count)); -} - -// Shift packed 32-bit integers in a right by imm8 while shifting in sign bits, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srai_epi32 -// FORCE_INLINE __m128i _mm_srai_epi32(__m128i a, __constrange(0,255) int imm) -#define _mm_srai_epi32(a, imm) \ - _sse2neon_define0( \ - __m128i, a, __m128i ret; if (_sse2neon_unlikely((imm) == 0)) { \ - ret = _a; \ - } else if (_sse2neon_likely(0 < (imm) && (imm) < 32)) { \ - ret = vreinterpretq_m128i_s32( \ - vshlq_s32(vreinterpretq_s32_m128i(_a), vdupq_n_s32(-(imm)))); \ - } else { \ - ret = vreinterpretq_m128i_s32( \ - vshrq_n_s32(vreinterpretq_s32_m128i(_a), 31)); \ - } _sse2neon_return(ret);) - -// Shift packed 16-bit integers in a right by count while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srl_epi16 -FORCE_INLINE __m128i _mm_srl_epi16(__m128i a, __m128i count) -{ - uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); - if (_sse2neon_unlikely(c & ~15)) - return _mm_setzero_si128(); - - int16x8_t vc = vdupq_n_s16(-(int16_t) c); - return vreinterpretq_m128i_u16(vshlq_u16(vreinterpretq_u16_m128i(a), vc)); -} - -// Shift packed 32-bit integers in a right by count while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srl_epi32 -FORCE_INLINE __m128i _mm_srl_epi32(__m128i a, __m128i count) -{ - uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); - if (_sse2neon_unlikely(c & ~31)) - return _mm_setzero_si128(); - - int32x4_t vc = vdupq_n_s32(-(int32_t) c); - return vreinterpretq_m128i_u32(vshlq_u32(vreinterpretq_u32_m128i(a), vc)); -} - -// Shift packed 64-bit integers in a right by count while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srl_epi64 -FORCE_INLINE __m128i _mm_srl_epi64(__m128i a, __m128i count) -{ - uint64_t c = vreinterpretq_nth_u64_m128i(count, 0); - if (_sse2neon_unlikely(c & ~63)) - return _mm_setzero_si128(); - - int64x2_t vc = vdupq_n_s64(-(int64_t) c); - return vreinterpretq_m128i_u64(vshlq_u64(vreinterpretq_u64_m128i(a), vc)); -} - -// Shift packed 16-bit integers in a right by imm8 while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srli_epi16 -#define _mm_srli_epi16(a, imm) \ - _sse2neon_define0( \ - __m128i, a, __m128i ret; if (_sse2neon_unlikely((imm) & ~15)) { \ - ret = _mm_setzero_si128(); \ - } else { \ - ret = vreinterpretq_m128i_u16( \ - vshlq_u16(vreinterpretq_u16_m128i(_a), vdupq_n_s16(-(imm)))); \ - } _sse2neon_return(ret);) - -// Shift packed 32-bit integers in a right by imm8 while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srli_epi32 -// FORCE_INLINE __m128i _mm_srli_epi32(__m128i a, __constrange(0,255) int imm) -#define _mm_srli_epi32(a, imm) \ - _sse2neon_define0( \ - __m128i, a, __m128i ret; if (_sse2neon_unlikely((imm) & ~31)) { \ - ret = _mm_setzero_si128(); \ - } else { \ - ret = vreinterpretq_m128i_u32( \ - vshlq_u32(vreinterpretq_u32_m128i(_a), vdupq_n_s32(-(imm)))); \ - } _sse2neon_return(ret);) - -// Shift packed 64-bit integers in a right by imm8 while shifting in zeros, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srli_epi64 -#define _mm_srli_epi64(a, imm) \ - _sse2neon_define0( \ - __m128i, a, __m128i ret; if (_sse2neon_unlikely((imm) & ~63)) { \ - ret = _mm_setzero_si128(); \ - } else { \ - ret = vreinterpretq_m128i_u64( \ - vshlq_u64(vreinterpretq_u64_m128i(_a), vdupq_n_s64(-(imm)))); \ - } _sse2neon_return(ret);) - -// Shift a right by imm8 bytes while shifting in zeros, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_srli_si128 -#define _mm_srli_si128(a, imm) \ - _sse2neon_define1( \ - __m128i, a, int8x16_t ret; \ - if (_sse2neon_unlikely((imm) & ~15)) ret = vdupq_n_s8(0); \ - else ret = vextq_s8(vreinterpretq_s8_m128i(_a), vdupq_n_s8(0), \ - (imm > 15 ? 0 : imm)); \ - _sse2neon_return(vreinterpretq_m128i_s8(ret));) - -// Store 128-bits (composed of 2 packed double-precision (64-bit) floating-point -// elements) from a into memory. mem_addr must be aligned on a 16-byte boundary -// or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store_pd -FORCE_INLINE void _mm_store_pd(double *mem_addr, __m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - vst1q_f64((float64_t *) mem_addr, vreinterpretq_f64_m128d(a)); -#else - vst1q_f32((float32_t *) mem_addr, vreinterpretq_f32_m128d(a)); -#endif -} - -// Store the lower double-precision (64-bit) floating-point element from a into -// 2 contiguous elements in memory. mem_addr must be aligned on a 16-byte -// boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store_pd1 -FORCE_INLINE void _mm_store_pd1(double *mem_addr, __m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - float64x1_t a_low = vget_low_f64(vreinterpretq_f64_m128d(a)); - vst1q_f64((float64_t *) mem_addr, - vreinterpretq_f64_m128d(vcombine_f64(a_low, a_low))); -#else - float32x2_t a_low = vget_low_f32(vreinterpretq_f32_m128d(a)); - vst1q_f32((float32_t *) mem_addr, - vreinterpretq_f32_m128d(vcombine_f32(a_low, a_low))); -#endif -} - -// Store the lower double-precision (64-bit) floating-point element from a into -// memory. mem_addr does not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_store_sd -FORCE_INLINE void _mm_store_sd(double *mem_addr, __m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - vst1_f64((float64_t *) mem_addr, vget_low_f64(vreinterpretq_f64_m128d(a))); -#else - vst1_u64((uint64_t *) mem_addr, vget_low_u64(vreinterpretq_u64_m128d(a))); -#endif -} - -// Store 128-bits of integer data from a into memory. mem_addr must be aligned -// on a 16-byte boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_store_si128 -FORCE_INLINE void _mm_store_si128(__m128i *p, __m128i a) -{ - vst1q_s32((int32_t *) p, vreinterpretq_s32_m128i(a)); -} - -// Store the lower double-precision (64-bit) floating-point element from a into -// 2 contiguous elements in memory. mem_addr must be aligned on a 16-byte -// boundary or a general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#expand=9,526,5601&text=_mm_store1_pd -#define _mm_store1_pd _mm_store_pd1 - -// Store the upper double-precision (64-bit) floating-point element from a into -// memory. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeh_pd -FORCE_INLINE void _mm_storeh_pd(double *mem_addr, __m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - vst1_f64((float64_t *) mem_addr, vget_high_f64(vreinterpretq_f64_m128d(a))); -#else - vst1_f32((float32_t *) mem_addr, vget_high_f32(vreinterpretq_f32_m128d(a))); -#endif -} - -// Store 64-bit integer from the first element of a into memory. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storel_epi64 -FORCE_INLINE void _mm_storel_epi64(__m128i *a, __m128i b) -{ - vst1_u64((uint64_t *) a, vget_low_u64(vreinterpretq_u64_m128i(b))); -} - -// Store the lower double-precision (64-bit) floating-point element from a into -// memory. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storel_pd -FORCE_INLINE void _mm_storel_pd(double *mem_addr, __m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - vst1_f64((float64_t *) mem_addr, vget_low_f64(vreinterpretq_f64_m128d(a))); -#else - vst1_f32((float32_t *) mem_addr, vget_low_f32(vreinterpretq_f32_m128d(a))); -#endif -} - -// Store 2 double-precision (64-bit) floating-point elements from a into memory -// in reverse order. mem_addr must be aligned on a 16-byte boundary or a -// general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storer_pd -FORCE_INLINE void _mm_storer_pd(double *mem_addr, __m128d a) -{ - float32x4_t f = vreinterpretq_f32_m128d(a); - _mm_store_pd(mem_addr, vreinterpretq_m128d_f32(vextq_f32(f, f, 2))); -} - -// Store 128-bits (composed of 2 packed double-precision (64-bit) floating-point -// elements) from a into memory. mem_addr does not need to be aligned on any -// particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeu_pd -FORCE_INLINE void _mm_storeu_pd(double *mem_addr, __m128d a) -{ - _mm_store_pd(mem_addr, a); -} - -// Store 128-bits of integer data from a into memory. mem_addr does not need to -// be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeu_si128 -FORCE_INLINE void _mm_storeu_si128(__m128i *p, __m128i a) -{ - vst1q_s32((int32_t *) p, vreinterpretq_s32_m128i(a)); -} - -// Store 32-bit integer from the first element of a into memory. mem_addr does -// not need to be aligned on any particular boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_storeu_si32 -FORCE_INLINE void _mm_storeu_si32(void *p, __m128i a) -{ - vst1q_lane_s32((int32_t *) p, vreinterpretq_s32_m128i(a), 0); -} - -// Store 128-bits (composed of 2 packed double-precision (64-bit) floating-point -// elements) from a into memory using a non-temporal memory hint. mem_addr must -// be aligned on a 16-byte boundary or a general-protection exception may be -// generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_pd -FORCE_INLINE void _mm_stream_pd(double *p, __m128d a) -{ -#if __has_builtin(__builtin_nontemporal_store) - __builtin_nontemporal_store(a, (__m128d *) p); -#elif defined(__aarch64__) || defined(_M_ARM64) - vst1q_f64(p, vreinterpretq_f64_m128d(a)); -#else - vst1q_s64((int64_t *) p, vreinterpretq_s64_m128d(a)); -#endif -} - -// Store 128-bits of integer data from a into memory using a non-temporal memory -// hint. mem_addr must be aligned on a 16-byte boundary or a general-protection -// exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_si128 -FORCE_INLINE void _mm_stream_si128(__m128i *p, __m128i a) -{ -#if __has_builtin(__builtin_nontemporal_store) - __builtin_nontemporal_store(a, p); -#else - vst1q_s64((int64_t *) p, vreinterpretq_s64_m128i(a)); -#endif -} - -// Store 32-bit integer a into memory using a non-temporal hint to minimize -// cache pollution. If the cache line containing address mem_addr is already in -// the cache, the cache will be updated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_si32 -FORCE_INLINE void _mm_stream_si32(int *p, int a) -{ - vst1q_lane_s32((int32_t *) p, vdupq_n_s32(a), 0); -} - -// Store 64-bit integer a into memory using a non-temporal hint to minimize -// cache pollution. If the cache line containing address mem_addr is already in -// the cache, the cache will be updated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_si64 -FORCE_INLINE void _mm_stream_si64(__int64 *p, __int64 a) -{ - vst1_s64((int64_t *) p, vdup_n_s64((int64_t) a)); -} - -// Subtract packed 16-bit integers in b from packed 16-bit integers in a, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_epi16 -FORCE_INLINE __m128i _mm_sub_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vsubq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Subtract packed 32-bit integers in b from packed 32-bit integers in a, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_epi32 -FORCE_INLINE __m128i _mm_sub_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vsubq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Subtract packed 64-bit integers in b from packed 64-bit integers in a, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_epi64 -FORCE_INLINE __m128i _mm_sub_epi64(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s64( - vsubq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); -} - -// Subtract packed 8-bit integers in b from packed 8-bit integers in a, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_epi8 -FORCE_INLINE __m128i _mm_sub_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vsubq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Subtract packed double-precision (64-bit) floating-point elements in b from -// packed double-precision (64-bit) floating-point elements in a, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_sub_pd -FORCE_INLINE __m128d _mm_sub_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vsubq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[2]; - c[0] = da[0] - db[0]; - c[1] = da[1] - db[1]; - return vld1q_f32((float32_t *) c); -#endif -} - -// Subtract the lower double-precision (64-bit) floating-point element in b from -// the lower double-precision (64-bit) floating-point element in a, store the -// result in the lower element of dst, and copy the upper element from a to the -// upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_sd -FORCE_INLINE __m128d _mm_sub_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_sub_pd(a, b)); -} - -// Subtract 64-bit integer b from 64-bit integer a, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sub_si64 -FORCE_INLINE __m64 _mm_sub_si64(__m64 a, __m64 b) -{ - return vreinterpret_m64_s64( - vsub_s64(vreinterpret_s64_m64(a), vreinterpret_s64_m64(b))); -} - -// Subtract packed signed 16-bit integers in b from packed 16-bit integers in a -// using saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_subs_epi16 -FORCE_INLINE __m128i _mm_subs_epi16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s16( - vqsubq_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -} - -// Subtract packed signed 8-bit integers in b from packed 8-bit integers in a -// using saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_subs_epi8 -FORCE_INLINE __m128i _mm_subs_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vqsubq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Subtract packed unsigned 16-bit integers in b from packed unsigned 16-bit -// integers in a using saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_subs_epu16 -FORCE_INLINE __m128i _mm_subs_epu16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vqsubq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); -} - -// Subtract packed unsigned 8-bit integers in b from packed unsigned 8-bit -// integers in a using saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_subs_epu8 -FORCE_INLINE __m128i _mm_subs_epu8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u8( - vqsubq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b))); -} - -#define _mm_ucomieq_sd _mm_comieq_sd -#define _mm_ucomige_sd _mm_comige_sd -#define _mm_ucomigt_sd _mm_comigt_sd -#define _mm_ucomile_sd _mm_comile_sd -#define _mm_ucomilt_sd _mm_comilt_sd -#define _mm_ucomineq_sd _mm_comineq_sd - -// Return vector of type __m128d with undefined elements. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_undefined_pd -FORCE_INLINE __m128d _mm_undefined_pd(void) -{ -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wuninitialized" -#endif - __m128d a; -#if defined(_MSC_VER) - a = _mm_setzero_pd(); -#endif - return a; -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -} - -// Unpack and interleave 16-bit integers from the high half of a and b, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpackhi_epi16 -FORCE_INLINE __m128i _mm_unpackhi_epi16(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s16( - vzip2q_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -#else - int16x4_t a1 = vget_high_s16(vreinterpretq_s16_m128i(a)); - int16x4_t b1 = vget_high_s16(vreinterpretq_s16_m128i(b)); - int16x4x2_t result = vzip_s16(a1, b1); - return vreinterpretq_m128i_s16(vcombine_s16(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave 32-bit integers from the high half of a and b, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpackhi_epi32 -FORCE_INLINE __m128i _mm_unpackhi_epi32(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s32( - vzip2q_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -#else - int32x2_t a1 = vget_high_s32(vreinterpretq_s32_m128i(a)); - int32x2_t b1 = vget_high_s32(vreinterpretq_s32_m128i(b)); - int32x2x2_t result = vzip_s32(a1, b1); - return vreinterpretq_m128i_s32(vcombine_s32(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave 64-bit integers from the high half of a and b, and -// store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpackhi_epi64 -FORCE_INLINE __m128i _mm_unpackhi_epi64(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s64( - vzip2q_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); -#else - int64x1_t a_h = vget_high_s64(vreinterpretq_s64_m128i(a)); - int64x1_t b_h = vget_high_s64(vreinterpretq_s64_m128i(b)); - return vreinterpretq_m128i_s64(vcombine_s64(a_h, b_h)); -#endif -} - -// Unpack and interleave 8-bit integers from the high half of a and b, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpackhi_epi8 -FORCE_INLINE __m128i _mm_unpackhi_epi8(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s8( - vzip2q_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -#else - int8x8_t a1 = - vreinterpret_s8_s16(vget_high_s16(vreinterpretq_s16_m128i(a))); - int8x8_t b1 = - vreinterpret_s8_s16(vget_high_s16(vreinterpretq_s16_m128i(b))); - int8x8x2_t result = vzip_s8(a1, b1); - return vreinterpretq_m128i_s8(vcombine_s8(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave double-precision (64-bit) floating-point elements from -// the high half of a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpackhi_pd -FORCE_INLINE __m128d _mm_unpackhi_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vzip2q_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - return vreinterpretq_m128d_s64( - vcombine_s64(vget_high_s64(vreinterpretq_s64_m128d(a)), - vget_high_s64(vreinterpretq_s64_m128d(b)))); -#endif -} - -// Unpack and interleave 16-bit integers from the low half of a and b, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpacklo_epi16 -FORCE_INLINE __m128i _mm_unpacklo_epi16(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s16( - vzip1q_s16(vreinterpretq_s16_m128i(a), vreinterpretq_s16_m128i(b))); -#else - int16x4_t a1 = vget_low_s16(vreinterpretq_s16_m128i(a)); - int16x4_t b1 = vget_low_s16(vreinterpretq_s16_m128i(b)); - int16x4x2_t result = vzip_s16(a1, b1); - return vreinterpretq_m128i_s16(vcombine_s16(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave 32-bit integers from the low half of a and b, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpacklo_epi32 -FORCE_INLINE __m128i _mm_unpacklo_epi32(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s32( - vzip1q_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -#else - int32x2_t a1 = vget_low_s32(vreinterpretq_s32_m128i(a)); - int32x2_t b1 = vget_low_s32(vreinterpretq_s32_m128i(b)); - int32x2x2_t result = vzip_s32(a1, b1); - return vreinterpretq_m128i_s32(vcombine_s32(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave 64-bit integers from the low half of a and b, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpacklo_epi64 -FORCE_INLINE __m128i _mm_unpacklo_epi64(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s64( - vzip1q_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); -#else - int64x1_t a_l = vget_low_s64(vreinterpretq_s64_m128i(a)); - int64x1_t b_l = vget_low_s64(vreinterpretq_s64_m128i(b)); - return vreinterpretq_m128i_s64(vcombine_s64(a_l, b_l)); -#endif -} - -// Unpack and interleave 8-bit integers from the low half of a and b, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpacklo_epi8 -FORCE_INLINE __m128i _mm_unpacklo_epi8(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s8( - vzip1q_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -#else - int8x8_t a1 = vreinterpret_s8_s16(vget_low_s16(vreinterpretq_s16_m128i(a))); - int8x8_t b1 = vreinterpret_s8_s16(vget_low_s16(vreinterpretq_s16_m128i(b))); - int8x8x2_t result = vzip_s8(a1, b1); - return vreinterpretq_m128i_s8(vcombine_s8(result.val[0], result.val[1])); -#endif -} - -// Unpack and interleave double-precision (64-bit) floating-point elements from -// the low half of a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_unpacklo_pd -FORCE_INLINE __m128d _mm_unpacklo_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vzip1q_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - return vreinterpretq_m128d_s64( - vcombine_s64(vget_low_s64(vreinterpretq_s64_m128d(a)), - vget_low_s64(vreinterpretq_s64_m128d(b)))); -#endif -} - -// Compute the bitwise XOR of packed double-precision (64-bit) floating-point -// elements in a and b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_xor_pd -FORCE_INLINE __m128d _mm_xor_pd(__m128d a, __m128d b) -{ - return vreinterpretq_m128d_s64( - veorq_s64(vreinterpretq_s64_m128d(a), vreinterpretq_s64_m128d(b))); -} - -// Compute the bitwise XOR of 128 bits (representing integer data) in a and b, -// and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_xor_si128 -FORCE_INLINE __m128i _mm_xor_si128(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - veorq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -/* SSE3 */ - -// Alternatively add and subtract packed double-precision (64-bit) -// floating-point elements in a to/from packed elements in b, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_addsub_pd -FORCE_INLINE __m128d _mm_addsub_pd(__m128d a, __m128d b) -{ - _sse2neon_const __m128d mask = _mm_set_pd(1.0f, -1.0f); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vfmaq_f64(vreinterpretq_f64_m128d(a), - vreinterpretq_f64_m128d(b), - vreinterpretq_f64_m128d(mask))); -#else - return _mm_add_pd(_mm_mul_pd(b, mask), a); -#endif -} - -// Alternatively add and subtract packed single-precision (32-bit) -// floating-point elements in a to/from packed elements in b, and store the -// results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=addsub_ps -FORCE_INLINE __m128 _mm_addsub_ps(__m128 a, __m128 b) -{ - _sse2neon_const __m128 mask = _mm_setr_ps(-1.0f, 1.0f, -1.0f, 1.0f); -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_FMA) /* VFPv4+ */ - return vreinterpretq_m128_f32(vfmaq_f32(vreinterpretq_f32_m128(a), - vreinterpretq_f32_m128(mask), - vreinterpretq_f32_m128(b))); -#else - return _mm_add_ps(_mm_mul_ps(b, mask), a); -#endif -} - -// Horizontally add adjacent pairs of double-precision (64-bit) floating-point -// elements in a and b, and pack the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadd_pd -FORCE_INLINE __m128d _mm_hadd_pd(__m128d a, __m128d b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vpaddq_f64(vreinterpretq_f64_m128d(a), vreinterpretq_f64_m128d(b))); -#else - double *da = (double *) &a; - double *db = (double *) &b; - double c[] = {da[0] + da[1], db[0] + db[1]}; - return vreinterpretq_m128d_u64(vld1q_u64((uint64_t *) c)); -#endif -} - -// Horizontally add adjacent pairs of single-precision (32-bit) floating-point -// elements in a and b, and pack the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadd_ps -FORCE_INLINE __m128 _mm_hadd_ps(__m128 a, __m128 b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vpaddq_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(b))); -#else - float32x2_t a10 = vget_low_f32(vreinterpretq_f32_m128(a)); - float32x2_t a32 = vget_high_f32(vreinterpretq_f32_m128(a)); - float32x2_t b10 = vget_low_f32(vreinterpretq_f32_m128(b)); - float32x2_t b32 = vget_high_f32(vreinterpretq_f32_m128(b)); - return vreinterpretq_m128_f32( - vcombine_f32(vpadd_f32(a10, a32), vpadd_f32(b10, b32))); -#endif -} - -// Horizontally subtract adjacent pairs of double-precision (64-bit) -// floating-point elements in a and b, and pack the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsub_pd -FORCE_INLINE __m128d _mm_hsub_pd(__m128d _a, __m128d _b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - float64x2_t a = vreinterpretq_f64_m128d(_a); - float64x2_t b = vreinterpretq_f64_m128d(_b); - return vreinterpretq_m128d_f64( - vsubq_f64(vuzp1q_f64(a, b), vuzp2q_f64(a, b))); -#else - double *da = (double *) &_a; - double *db = (double *) &_b; - double c[] = {da[0] - da[1], db[0] - db[1]}; - return vreinterpretq_m128d_u64(vld1q_u64((uint64_t *) c)); -#endif -} - -// Horizontally subtract adjacent pairs of single-precision (32-bit) -// floating-point elements in a and b, and pack the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsub_ps -FORCE_INLINE __m128 _mm_hsub_ps(__m128 _a, __m128 _b) -{ - float32x4_t a = vreinterpretq_f32_m128(_a); - float32x4_t b = vreinterpretq_f32_m128(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vsubq_f32(vuzp1q_f32(a, b), vuzp2q_f32(a, b))); -#else - float32x4x2_t c = vuzpq_f32(a, b); - return vreinterpretq_m128_f32(vsubq_f32(c.val[0], c.val[1])); -#endif -} - -// Load 128-bits of integer data from unaligned memory into dst. This intrinsic -// may perform better than _mm_loadu_si128 when the data crosses a cache line -// boundary. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_lddqu_si128 -#define _mm_lddqu_si128 _mm_loadu_si128 - -// Load a double-precision (64-bit) floating-point element from memory into both -// elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_loaddup_pd -#define _mm_loaddup_pd _mm_load1_pd - -// Duplicate the low double-precision (64-bit) floating-point element from a, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movedup_pd -FORCE_INLINE __m128d _mm_movedup_pd(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64( - vdupq_laneq_f64(vreinterpretq_f64_m128d(a), 0)); -#else - return vreinterpretq_m128d_u64( - vdupq_n_u64(vgetq_lane_u64(vreinterpretq_u64_m128d(a), 0))); -#endif -} - -// Duplicate odd-indexed single-precision (32-bit) floating-point elements -// from a, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_movehdup_ps -FORCE_INLINE __m128 _mm_movehdup_ps(__m128 a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vtrn2q_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a))); -#elif defined(_sse2neon_shuffle) - return vreinterpretq_m128_f32(vshuffleq_s32( - vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a), 1, 1, 3, 3)); -#else - float32_t a1 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 1); - float32_t a3 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 3); - float ALIGN_STRUCT(16) data[4] = {a1, a1, a3, a3}; - return vreinterpretq_m128_f32(vld1q_f32(data)); -#endif -} - -// Duplicate even-indexed single-precision (32-bit) floating-point elements -// from a, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_moveldup_ps -FORCE_INLINE __m128 _mm_moveldup_ps(__m128 a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128_f32( - vtrn1q_f32(vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a))); -#elif defined(_sse2neon_shuffle) - return vreinterpretq_m128_f32(vshuffleq_s32( - vreinterpretq_f32_m128(a), vreinterpretq_f32_m128(a), 0, 0, 2, 2)); -#else - float32_t a0 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 0); - float32_t a2 = vgetq_lane_f32(vreinterpretq_f32_m128(a), 2); - float ALIGN_STRUCT(16) data[4] = {a0, a0, a2, a2}; - return vreinterpretq_m128_f32(vld1q_f32(data)); -#endif -} - -/* SSSE3 */ - -// Compute the absolute value of packed signed 16-bit integers in a, and store -// the unsigned results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_abs_epi16 -FORCE_INLINE __m128i _mm_abs_epi16(__m128i a) -{ - return vreinterpretq_m128i_s16(vabsq_s16(vreinterpretq_s16_m128i(a))); -} - -// Compute the absolute value of packed signed 32-bit integers in a, and store -// the unsigned results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_abs_epi32 -FORCE_INLINE __m128i _mm_abs_epi32(__m128i a) -{ - return vreinterpretq_m128i_s32(vabsq_s32(vreinterpretq_s32_m128i(a))); -} - -// Compute the absolute value of packed signed 8-bit integers in a, and store -// the unsigned results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_abs_epi8 -FORCE_INLINE __m128i _mm_abs_epi8(__m128i a) -{ - return vreinterpretq_m128i_s8(vabsq_s8(vreinterpretq_s8_m128i(a))); -} - -// Compute the absolute value of packed signed 16-bit integers in a, and store -// the unsigned results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_abs_pi16 -FORCE_INLINE __m64 _mm_abs_pi16(__m64 a) -{ - return vreinterpret_m64_s16(vabs_s16(vreinterpret_s16_m64(a))); -} - -// Compute the absolute value of packed signed 32-bit integers in a, and store -// the unsigned results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_abs_pi32 -FORCE_INLINE __m64 _mm_abs_pi32(__m64 a) -{ - return vreinterpret_m64_s32(vabs_s32(vreinterpret_s32_m64(a))); -} - -// Compute the absolute value of packed signed 8-bit integers in a, and store -// the unsigned results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_abs_pi8 -FORCE_INLINE __m64 _mm_abs_pi8(__m64 a) -{ - return vreinterpret_m64_s8(vabs_s8(vreinterpret_s8_m64(a))); -} - -// Concatenate 16-byte blocks in a and b into a 32-byte temporary result, shift -// the result right by imm8 bytes, and store the low 16 bytes in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_alignr_epi8 -#if defined(__GNUC__) && !defined(__clang__) -#define _mm_alignr_epi8(a, b, imm) \ - __extension__({ \ - uint8x16_t _a = vreinterpretq_u8_m128i(a); \ - uint8x16_t _b = vreinterpretq_u8_m128i(b); \ - __m128i ret; \ - if (_sse2neon_unlikely((imm) & ~31)) \ - ret = vreinterpretq_m128i_u8(vdupq_n_u8(0)); \ - else if (imm >= 16) \ - ret = _mm_srli_si128(a, imm >= 16 ? imm - 16 : 0); \ - else \ - ret = \ - vreinterpretq_m128i_u8(vextq_u8(_b, _a, imm < 16 ? imm : 0)); \ - ret; \ - }) - -#else -#define _mm_alignr_epi8(a, b, imm) \ - _sse2neon_define2( \ - __m128i, a, b, uint8x16_t __a = vreinterpretq_u8_m128i(_a); \ - uint8x16_t __b = vreinterpretq_u8_m128i(_b); __m128i ret; \ - if (_sse2neon_unlikely((imm) & ~31)) ret = \ - vreinterpretq_m128i_u8(vdupq_n_u8(0)); \ - else if (imm >= 16) ret = \ - _mm_srli_si128(_a, imm >= 16 ? imm - 16 : 0); \ - else ret = \ - vreinterpretq_m128i_u8(vextq_u8(__b, __a, imm < 16 ? imm : 0)); \ - _sse2neon_return(ret);) - -#endif - -// Concatenate 8-byte blocks in a and b into a 16-byte temporary result, shift -// the result right by imm8 bytes, and store the low 8 bytes in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_alignr_pi8 -#define _mm_alignr_pi8(a, b, imm) \ - _sse2neon_define2( \ - __m64, a, b, __m64 ret; if (_sse2neon_unlikely((imm) >= 16)) { \ - ret = vreinterpret_m64_s8(vdup_n_s8(0)); \ - } else { \ - uint8x8_t tmp_low; \ - uint8x8_t tmp_high; \ - if ((imm) >= 8) { \ - const int idx = (imm) -8; \ - tmp_low = vreinterpret_u8_m64(_a); \ - tmp_high = vdup_n_u8(0); \ - ret = vreinterpret_m64_u8(vext_u8(tmp_low, tmp_high, idx)); \ - } else { \ - const int idx = (imm); \ - tmp_low = vreinterpret_u8_m64(_b); \ - tmp_high = vreinterpret_u8_m64(_a); \ - ret = vreinterpret_m64_u8(vext_u8(tmp_low, tmp_high, idx)); \ - } \ - } _sse2neon_return(ret);) - -// Horizontally add adjacent pairs of 16-bit integers in a and b, and pack the -// signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadd_epi16 -FORCE_INLINE __m128i _mm_hadd_epi16(__m128i _a, __m128i _b) -{ - int16x8_t a = vreinterpretq_s16_m128i(_a); - int16x8_t b = vreinterpretq_s16_m128i(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s16(vpaddq_s16(a, b)); -#else - return vreinterpretq_m128i_s16( - vcombine_s16(vpadd_s16(vget_low_s16(a), vget_high_s16(a)), - vpadd_s16(vget_low_s16(b), vget_high_s16(b)))); -#endif -} - -// Horizontally add adjacent pairs of 32-bit integers in a and b, and pack the -// signed 32-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadd_epi32 -FORCE_INLINE __m128i _mm_hadd_epi32(__m128i _a, __m128i _b) -{ - int32x4_t a = vreinterpretq_s32_m128i(_a); - int32x4_t b = vreinterpretq_s32_m128i(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s32(vpaddq_s32(a, b)); -#else - return vreinterpretq_m128i_s32( - vcombine_s32(vpadd_s32(vget_low_s32(a), vget_high_s32(a)), - vpadd_s32(vget_low_s32(b), vget_high_s32(b)))); -#endif -} - -// Horizontally add adjacent pairs of 16-bit integers in a and b, and pack the -// signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadd_pi16 -FORCE_INLINE __m64 _mm_hadd_pi16(__m64 a, __m64 b) -{ - return vreinterpret_m64_s16( - vpadd_s16(vreinterpret_s16_m64(a), vreinterpret_s16_m64(b))); -} - -// Horizontally add adjacent pairs of 32-bit integers in a and b, and pack the -// signed 32-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadd_pi32 -FORCE_INLINE __m64 _mm_hadd_pi32(__m64 a, __m64 b) -{ - return vreinterpret_m64_s32( - vpadd_s32(vreinterpret_s32_m64(a), vreinterpret_s32_m64(b))); -} - -// Horizontally add adjacent pairs of signed 16-bit integers in a and b using -// saturation, and pack the signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadds_epi16 -FORCE_INLINE __m128i _mm_hadds_epi16(__m128i _a, __m128i _b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - int16x8_t a = vreinterpretq_s16_m128i(_a); - int16x8_t b = vreinterpretq_s16_m128i(_b); - return vreinterpretq_s64_s16( - vqaddq_s16(vuzp1q_s16(a, b), vuzp2q_s16(a, b))); -#else - int32x4_t a = vreinterpretq_s32_m128i(_a); - int32x4_t b = vreinterpretq_s32_m128i(_b); - // Interleave using vshrn/vmovn - // [a0|a2|a4|a6|b0|b2|b4|b6] - // [a1|a3|a5|a7|b1|b3|b5|b7] - int16x8_t ab0246 = vcombine_s16(vmovn_s32(a), vmovn_s32(b)); - int16x8_t ab1357 = vcombine_s16(vshrn_n_s32(a, 16), vshrn_n_s32(b, 16)); - // Saturated add - return vreinterpretq_m128i_s16(vqaddq_s16(ab0246, ab1357)); -#endif -} - -// Horizontally add adjacent pairs of signed 16-bit integers in a and b using -// saturation, and pack the signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hadds_pi16 -FORCE_INLINE __m64 _mm_hadds_pi16(__m64 _a, __m64 _b) -{ - int16x4_t a = vreinterpret_s16_m64(_a); - int16x4_t b = vreinterpret_s16_m64(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpret_s64_s16(vqadd_s16(vuzp1_s16(a, b), vuzp2_s16(a, b))); -#else - int16x4x2_t res = vuzp_s16(a, b); - return vreinterpret_s64_s16(vqadd_s16(res.val[0], res.val[1])); -#endif -} - -// Horizontally subtract adjacent pairs of 16-bit integers in a and b, and pack -// the signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsub_epi16 -FORCE_INLINE __m128i _mm_hsub_epi16(__m128i _a, __m128i _b) -{ - int16x8_t a = vreinterpretq_s16_m128i(_a); - int16x8_t b = vreinterpretq_s16_m128i(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s16( - vsubq_s16(vuzp1q_s16(a, b), vuzp2q_s16(a, b))); -#else - int16x8x2_t c = vuzpq_s16(a, b); - return vreinterpretq_m128i_s16(vsubq_s16(c.val[0], c.val[1])); -#endif -} - -// Horizontally subtract adjacent pairs of 32-bit integers in a and b, and pack -// the signed 32-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsub_epi32 -FORCE_INLINE __m128i _mm_hsub_epi32(__m128i _a, __m128i _b) -{ - int32x4_t a = vreinterpretq_s32_m128i(_a); - int32x4_t b = vreinterpretq_s32_m128i(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s32( - vsubq_s32(vuzp1q_s32(a, b), vuzp2q_s32(a, b))); -#else - int32x4x2_t c = vuzpq_s32(a, b); - return vreinterpretq_m128i_s32(vsubq_s32(c.val[0], c.val[1])); -#endif -} - -// Horizontally subtract adjacent pairs of 16-bit integers in a and b, and pack -// the signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsub_pi16 -FORCE_INLINE __m64 _mm_hsub_pi16(__m64 _a, __m64 _b) -{ - int16x4_t a = vreinterpret_s16_m64(_a); - int16x4_t b = vreinterpret_s16_m64(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpret_m64_s16(vsub_s16(vuzp1_s16(a, b), vuzp2_s16(a, b))); -#else - int16x4x2_t c = vuzp_s16(a, b); - return vreinterpret_m64_s16(vsub_s16(c.val[0], c.val[1])); -#endif -} - -// Horizontally subtract adjacent pairs of 32-bit integers in a and b, and pack -// the signed 32-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_hsub_pi32 -FORCE_INLINE __m64 _mm_hsub_pi32(__m64 _a, __m64 _b) -{ - int32x2_t a = vreinterpret_s32_m64(_a); - int32x2_t b = vreinterpret_s32_m64(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpret_m64_s32(vsub_s32(vuzp1_s32(a, b), vuzp2_s32(a, b))); -#else - int32x2x2_t c = vuzp_s32(a, b); - return vreinterpret_m64_s32(vsub_s32(c.val[0], c.val[1])); -#endif -} - -// Horizontally subtract adjacent pairs of signed 16-bit integers in a and b -// using saturation, and pack the signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsubs_epi16 -FORCE_INLINE __m128i _mm_hsubs_epi16(__m128i _a, __m128i _b) -{ - int16x8_t a = vreinterpretq_s16_m128i(_a); - int16x8_t b = vreinterpretq_s16_m128i(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s16( - vqsubq_s16(vuzp1q_s16(a, b), vuzp2q_s16(a, b))); -#else - int16x8x2_t c = vuzpq_s16(a, b); - return vreinterpretq_m128i_s16(vqsubq_s16(c.val[0], c.val[1])); -#endif -} - -// Horizontally subtract adjacent pairs of signed 16-bit integers in a and b -// using saturation, and pack the signed 16-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_hsubs_pi16 -FORCE_INLINE __m64 _mm_hsubs_pi16(__m64 _a, __m64 _b) -{ - int16x4_t a = vreinterpret_s16_m64(_a); - int16x4_t b = vreinterpret_s16_m64(_b); -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpret_m64_s16(vqsub_s16(vuzp1_s16(a, b), vuzp2_s16(a, b))); -#else - int16x4x2_t c = vuzp_s16(a, b); - return vreinterpret_m64_s16(vqsub_s16(c.val[0], c.val[1])); -#endif -} - -// Vertically multiply each unsigned 8-bit integer from a with the corresponding -// signed 8-bit integer from b, producing intermediate signed 16-bit integers. -// Horizontally add adjacent pairs of intermediate signed 16-bit integers, -// and pack the saturated results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_maddubs_epi16 -FORCE_INLINE __m128i _mm_maddubs_epi16(__m128i _a, __m128i _b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - uint8x16_t a = vreinterpretq_u8_m128i(_a); - int8x16_t b = vreinterpretq_s8_m128i(_b); - int16x8_t tl = vmulq_s16(vreinterpretq_s16_u16(vmovl_u8(vget_low_u8(a))), - vmovl_s8(vget_low_s8(b))); - int16x8_t th = vmulq_s16(vreinterpretq_s16_u16(vmovl_u8(vget_high_u8(a))), - vmovl_s8(vget_high_s8(b))); - return vreinterpretq_m128i_s16( - vqaddq_s16(vuzp1q_s16(tl, th), vuzp2q_s16(tl, th))); -#else - // This would be much simpler if x86 would choose to zero extend OR sign - // extend, not both. This could probably be optimized better. - uint16x8_t a = vreinterpretq_u16_m128i(_a); - int16x8_t b = vreinterpretq_s16_m128i(_b); - - // Zero extend a - int16x8_t a_odd = vreinterpretq_s16_u16(vshrq_n_u16(a, 8)); - int16x8_t a_even = vreinterpretq_s16_u16(vbicq_u16(a, vdupq_n_u16(0xff00))); - - // Sign extend by shifting left then shifting right. - int16x8_t b_even = vshrq_n_s16(vshlq_n_s16(b, 8), 8); - int16x8_t b_odd = vshrq_n_s16(b, 8); - - // multiply - int16x8_t prod1 = vmulq_s16(a_even, b_even); - int16x8_t prod2 = vmulq_s16(a_odd, b_odd); - - // saturated add - return vreinterpretq_m128i_s16(vqaddq_s16(prod1, prod2)); -#endif -} - -// Vertically multiply each unsigned 8-bit integer from a with the corresponding -// signed 8-bit integer from b, producing intermediate signed 16-bit integers. -// Horizontally add adjacent pairs of intermediate signed 16-bit integers, and -// pack the saturated results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_maddubs_pi16 -FORCE_INLINE __m64 _mm_maddubs_pi16(__m64 _a, __m64 _b) -{ - uint16x4_t a = vreinterpret_u16_m64(_a); - int16x4_t b = vreinterpret_s16_m64(_b); - - // Zero extend a - int16x4_t a_odd = vreinterpret_s16_u16(vshr_n_u16(a, 8)); - int16x4_t a_even = vreinterpret_s16_u16(vand_u16(a, vdup_n_u16(0xff))); - - // Sign extend by shifting left then shifting right. - int16x4_t b_even = vshr_n_s16(vshl_n_s16(b, 8), 8); - int16x4_t b_odd = vshr_n_s16(b, 8); - - // multiply - int16x4_t prod1 = vmul_s16(a_even, b_even); - int16x4_t prod2 = vmul_s16(a_odd, b_odd); - - // saturated add - return vreinterpret_m64_s16(vqadd_s16(prod1, prod2)); -} - -// Multiply packed signed 16-bit integers in a and b, producing intermediate -// signed 32-bit integers. Shift right by 15 bits while rounding up, and store -// the packed 16-bit integers in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mulhrs_epi16 -FORCE_INLINE __m128i _mm_mulhrs_epi16(__m128i a, __m128i b) -{ - // Has issues due to saturation - // return vreinterpretq_m128i_s16(vqrdmulhq_s16(a, b)); - - // Multiply - int32x4_t mul_lo = vmull_s16(vget_low_s16(vreinterpretq_s16_m128i(a)), - vget_low_s16(vreinterpretq_s16_m128i(b))); - int32x4_t mul_hi = vmull_s16(vget_high_s16(vreinterpretq_s16_m128i(a)), - vget_high_s16(vreinterpretq_s16_m128i(b))); - - // Rounding narrowing shift right - // narrow = (int16_t)((mul + 16384) >> 15); - int16x4_t narrow_lo = vrshrn_n_s32(mul_lo, 15); - int16x4_t narrow_hi = vrshrn_n_s32(mul_hi, 15); - - // Join together - return vreinterpretq_m128i_s16(vcombine_s16(narrow_lo, narrow_hi)); -} - -// Multiply packed signed 16-bit integers in a and b, producing intermediate -// signed 32-bit integers. Truncate each intermediate integer to the 18 most -// significant bits, round by adding 1, and store bits [16:1] to dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mulhrs_pi16 -FORCE_INLINE __m64 _mm_mulhrs_pi16(__m64 a, __m64 b) -{ - int32x4_t mul_extend = - vmull_s16((vreinterpret_s16_m64(a)), (vreinterpret_s16_m64(b))); - - // Rounding narrowing shift right - return vreinterpret_m64_s16(vrshrn_n_s32(mul_extend, 15)); -} - -// Shuffle packed 8-bit integers in a according to shuffle control mask in the -// corresponding 8-bit element of b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shuffle_epi8 -FORCE_INLINE __m128i _mm_shuffle_epi8(__m128i a, __m128i b) -{ - int8x16_t tbl = vreinterpretq_s8_m128i(a); // input a - uint8x16_t idx = vreinterpretq_u8_m128i(b); // input b - uint8x16_t idx_masked = - vandq_u8(idx, vdupq_n_u8(0x8F)); // avoid using meaningless bits -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_s8(vqtbl1q_s8(tbl, idx_masked)); -#elif defined(__GNUC__) - int8x16_t ret; - // %e and %f represent the even and odd D registers - // respectively. - __asm__ __volatile__( - "vtbl.8 %e[ret], {%e[tbl], %f[tbl]}, %e[idx]\n" - "vtbl.8 %f[ret], {%e[tbl], %f[tbl]}, %f[idx]\n" - : [ret] "=&w"(ret) - : [tbl] "w"(tbl), [idx] "w"(idx_masked)); - return vreinterpretq_m128i_s8(ret); -#else - // use this line if testing on aarch64 - int8x8x2_t a_split = {vget_low_s8(tbl), vget_high_s8(tbl)}; - return vreinterpretq_m128i_s8( - vcombine_s8(vtbl2_s8(a_split, vget_low_u8(idx_masked)), - vtbl2_s8(a_split, vget_high_u8(idx_masked)))); -#endif -} - -// Shuffle packed 8-bit integers in a according to shuffle control mask in the -// corresponding 8-bit element of b, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_shuffle_pi8 -FORCE_INLINE __m64 _mm_shuffle_pi8(__m64 a, __m64 b) -{ - const int8x8_t controlMask = - vand_s8(vreinterpret_s8_m64(b), vdup_n_s8((int8_t) (0x1 << 7 | 0x07))); - int8x8_t res = vtbl1_s8(vreinterpret_s8_m64(a), controlMask); - return vreinterpret_m64_s8(res); -} - -// Negate packed 16-bit integers in a when the corresponding signed -// 16-bit integer in b is negative, and store the results in dst. -// Element in dst are zeroed out when the corresponding element -// in b is zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sign_epi16 -FORCE_INLINE __m128i _mm_sign_epi16(__m128i _a, __m128i _b) -{ - int16x8_t a = vreinterpretq_s16_m128i(_a); - int16x8_t b = vreinterpretq_s16_m128i(_b); - - // signed shift right: faster than vclt - // (b < 0) ? 0xFFFF : 0 - uint16x8_t ltMask = vreinterpretq_u16_s16(vshrq_n_s16(b, 15)); - // (b == 0) ? 0xFFFF : 0 -#if defined(__aarch64__) || defined(_M_ARM64) - int16x8_t zeroMask = vreinterpretq_s16_u16(vceqzq_s16(b)); -#else - int16x8_t zeroMask = vreinterpretq_s16_u16(vceqq_s16(b, vdupq_n_s16(0))); -#endif - - // bitwise select either a or negative 'a' (vnegq_s16(a) equals to negative - // 'a') based on ltMask - int16x8_t masked = vbslq_s16(ltMask, vnegq_s16(a), a); - // res = masked & (~zeroMask) - int16x8_t res = vbicq_s16(masked, zeroMask); - return vreinterpretq_m128i_s16(res); -} - -// Negate packed 32-bit integers in a when the corresponding signed -// 32-bit integer in b is negative, and store the results in dst. -// Element in dst are zeroed out when the corresponding element -// in b is zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sign_epi32 -FORCE_INLINE __m128i _mm_sign_epi32(__m128i _a, __m128i _b) -{ - int32x4_t a = vreinterpretq_s32_m128i(_a); - int32x4_t b = vreinterpretq_s32_m128i(_b); - - // signed shift right: faster than vclt - // (b < 0) ? 0xFFFFFFFF : 0 - uint32x4_t ltMask = vreinterpretq_u32_s32(vshrq_n_s32(b, 31)); - - // (b == 0) ? 0xFFFFFFFF : 0 -#if defined(__aarch64__) || defined(_M_ARM64) - int32x4_t zeroMask = vreinterpretq_s32_u32(vceqzq_s32(b)); -#else - int32x4_t zeroMask = vreinterpretq_s32_u32(vceqq_s32(b, vdupq_n_s32(0))); -#endif - - // bitwise select either a or negative 'a' (vnegq_s32(a) equals to negative - // 'a') based on ltMask - int32x4_t masked = vbslq_s32(ltMask, vnegq_s32(a), a); - // res = masked & (~zeroMask) - int32x4_t res = vbicq_s32(masked, zeroMask); - return vreinterpretq_m128i_s32(res); -} - -// Negate packed 8-bit integers in a when the corresponding signed -// 8-bit integer in b is negative, and store the results in dst. -// Element in dst are zeroed out when the corresponding element -// in b is zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sign_epi8 -FORCE_INLINE __m128i _mm_sign_epi8(__m128i _a, __m128i _b) -{ - int8x16_t a = vreinterpretq_s8_m128i(_a); - int8x16_t b = vreinterpretq_s8_m128i(_b); - - // signed shift right: faster than vclt - // (b < 0) ? 0xFF : 0 - uint8x16_t ltMask = vreinterpretq_u8_s8(vshrq_n_s8(b, 7)); - - // (b == 0) ? 0xFF : 0 -#if defined(__aarch64__) || defined(_M_ARM64) - int8x16_t zeroMask = vreinterpretq_s8_u8(vceqzq_s8(b)); -#else - int8x16_t zeroMask = vreinterpretq_s8_u8(vceqq_s8(b, vdupq_n_s8(0))); -#endif - - // bitwise select either a or negative 'a' (vnegq_s8(a) return negative 'a') - // based on ltMask - int8x16_t masked = vbslq_s8(ltMask, vnegq_s8(a), a); - // res = masked & (~zeroMask) - int8x16_t res = vbicq_s8(masked, zeroMask); - - return vreinterpretq_m128i_s8(res); -} - -// Negate packed 16-bit integers in a when the corresponding signed 16-bit -// integer in b is negative, and store the results in dst. Element in dst are -// zeroed out when the corresponding element in b is zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sign_pi16 -FORCE_INLINE __m64 _mm_sign_pi16(__m64 _a, __m64 _b) -{ - int16x4_t a = vreinterpret_s16_m64(_a); - int16x4_t b = vreinterpret_s16_m64(_b); - - // signed shift right: faster than vclt - // (b < 0) ? 0xFFFF : 0 - uint16x4_t ltMask = vreinterpret_u16_s16(vshr_n_s16(b, 15)); - - // (b == 0) ? 0xFFFF : 0 -#if defined(__aarch64__) || defined(_M_ARM64) - int16x4_t zeroMask = vreinterpret_s16_u16(vceqz_s16(b)); -#else - int16x4_t zeroMask = vreinterpret_s16_u16(vceq_s16(b, vdup_n_s16(0))); -#endif - - // bitwise select either a or negative 'a' (vneg_s16(a) return negative 'a') - // based on ltMask - int16x4_t masked = vbsl_s16(ltMask, vneg_s16(a), a); - // res = masked & (~zeroMask) - int16x4_t res = vbic_s16(masked, zeroMask); - - return vreinterpret_m64_s16(res); -} - -// Negate packed 32-bit integers in a when the corresponding signed 32-bit -// integer in b is negative, and store the results in dst. Element in dst are -// zeroed out when the corresponding element in b is zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sign_pi32 -FORCE_INLINE __m64 _mm_sign_pi32(__m64 _a, __m64 _b) -{ - int32x2_t a = vreinterpret_s32_m64(_a); - int32x2_t b = vreinterpret_s32_m64(_b); - - // signed shift right: faster than vclt - // (b < 0) ? 0xFFFFFFFF : 0 - uint32x2_t ltMask = vreinterpret_u32_s32(vshr_n_s32(b, 31)); - - // (b == 0) ? 0xFFFFFFFF : 0 -#if defined(__aarch64__) || defined(_M_ARM64) - int32x2_t zeroMask = vreinterpret_s32_u32(vceqz_s32(b)); -#else - int32x2_t zeroMask = vreinterpret_s32_u32(vceq_s32(b, vdup_n_s32(0))); -#endif - - // bitwise select either a or negative 'a' (vneg_s32(a) return negative 'a') - // based on ltMask - int32x2_t masked = vbsl_s32(ltMask, vneg_s32(a), a); - // res = masked & (~zeroMask) - int32x2_t res = vbic_s32(masked, zeroMask); - - return vreinterpret_m64_s32(res); -} - -// Negate packed 8-bit integers in a when the corresponding signed 8-bit integer -// in b is negative, and store the results in dst. Element in dst are zeroed out -// when the corresponding element in b is zero. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_sign_pi8 -FORCE_INLINE __m64 _mm_sign_pi8(__m64 _a, __m64 _b) -{ - int8x8_t a = vreinterpret_s8_m64(_a); - int8x8_t b = vreinterpret_s8_m64(_b); - - // signed shift right: faster than vclt - // (b < 0) ? 0xFF : 0 - uint8x8_t ltMask = vreinterpret_u8_s8(vshr_n_s8(b, 7)); - - // (b == 0) ? 0xFF : 0 -#if defined(__aarch64__) || defined(_M_ARM64) - int8x8_t zeroMask = vreinterpret_s8_u8(vceqz_s8(b)); -#else - int8x8_t zeroMask = vreinterpret_s8_u8(vceq_s8(b, vdup_n_s8(0))); -#endif - - // bitwise select either a or negative 'a' (vneg_s8(a) return negative 'a') - // based on ltMask - int8x8_t masked = vbsl_s8(ltMask, vneg_s8(a), a); - // res = masked & (~zeroMask) - int8x8_t res = vbic_s8(masked, zeroMask); - - return vreinterpret_m64_s8(res); -} - -/* SSE4.1 */ - -// Blend packed 16-bit integers from a and b using control mask imm8, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_blend_epi16 -// FORCE_INLINE __m128i _mm_blend_epi16(__m128i a, __m128i b, -// __constrange(0,255) int imm) -#define _mm_blend_epi16(a, b, imm) \ - _sse2neon_define2( \ - __m128i, a, b, \ - const uint16_t _mask[8] = \ - _sse2neon_init(((imm) & (1 << 0)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 1)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 2)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 3)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 4)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 5)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 6)) ? (uint16_t) -1 : 0x0, \ - ((imm) & (1 << 7)) ? (uint16_t) -1 : 0x0); \ - uint16x8_t _mask_vec = vld1q_u16(_mask); \ - uint16x8_t __a = vreinterpretq_u16_m128i(_a); \ - uint16x8_t __b = vreinterpretq_u16_m128i(_b); _sse2neon_return( \ - vreinterpretq_m128i_u16(vbslq_u16(_mask_vec, __b, __a)));) - -// Blend packed double-precision (64-bit) floating-point elements from a and b -// using control mask imm8, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_blend_pd -#define _mm_blend_pd(a, b, imm) \ - _sse2neon_define2( \ - __m128d, a, b, \ - const uint64_t _mask[2] = \ - _sse2neon_init(((imm) & (1 << 0)) ? ~UINT64_C(0) : UINT64_C(0), \ - ((imm) & (1 << 1)) ? ~UINT64_C(0) : UINT64_C(0)); \ - uint64x2_t _mask_vec = vld1q_u64(_mask); \ - uint64x2_t __a = vreinterpretq_u64_m128d(_a); \ - uint64x2_t __b = vreinterpretq_u64_m128d(_b); _sse2neon_return( \ - vreinterpretq_m128d_u64(vbslq_u64(_mask_vec, __b, __a)));) - -// Blend packed single-precision (32-bit) floating-point elements from a and b -// using mask, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_blend_ps -FORCE_INLINE __m128 _mm_blend_ps(__m128 _a, __m128 _b, const char imm8) -{ - const uint32_t ALIGN_STRUCT(16) - data[4] = {((imm8) & (1 << 0)) ? UINT32_MAX : 0, - ((imm8) & (1 << 1)) ? UINT32_MAX : 0, - ((imm8) & (1 << 2)) ? UINT32_MAX : 0, - ((imm8) & (1 << 3)) ? UINT32_MAX : 0}; - uint32x4_t mask = vld1q_u32(data); - float32x4_t a = vreinterpretq_f32_m128(_a); - float32x4_t b = vreinterpretq_f32_m128(_b); - return vreinterpretq_m128_f32(vbslq_f32(mask, b, a)); -} - -// Blend packed 8-bit integers from a and b using mask, and store the results in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_blendv_epi8 -FORCE_INLINE __m128i _mm_blendv_epi8(__m128i _a, __m128i _b, __m128i _mask) -{ - // Use a signed shift right to create a mask with the sign bit - uint8x16_t mask = - vreinterpretq_u8_s8(vshrq_n_s8(vreinterpretq_s8_m128i(_mask), 7)); - uint8x16_t a = vreinterpretq_u8_m128i(_a); - uint8x16_t b = vreinterpretq_u8_m128i(_b); - return vreinterpretq_m128i_u8(vbslq_u8(mask, b, a)); -} - -// Blend packed double-precision (64-bit) floating-point elements from a and b -// using mask, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_blendv_pd -FORCE_INLINE __m128d _mm_blendv_pd(__m128d _a, __m128d _b, __m128d _mask) -{ - uint64x2_t mask = - vreinterpretq_u64_s64(vshrq_n_s64(vreinterpretq_s64_m128d(_mask), 63)); -#if defined(__aarch64__) || defined(_M_ARM64) - float64x2_t a = vreinterpretq_f64_m128d(_a); - float64x2_t b = vreinterpretq_f64_m128d(_b); - return vreinterpretq_m128d_f64(vbslq_f64(mask, b, a)); -#else - uint64x2_t a = vreinterpretq_u64_m128d(_a); - uint64x2_t b = vreinterpretq_u64_m128d(_b); - return vreinterpretq_m128d_u64(vbslq_u64(mask, b, a)); -#endif -} - -// Blend packed single-precision (32-bit) floating-point elements from a and b -// using mask, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_blendv_ps -FORCE_INLINE __m128 _mm_blendv_ps(__m128 _a, __m128 _b, __m128 _mask) -{ - // Use a signed shift right to create a mask with the sign bit - uint32x4_t mask = - vreinterpretq_u32_s32(vshrq_n_s32(vreinterpretq_s32_m128(_mask), 31)); - float32x4_t a = vreinterpretq_f32_m128(_a); - float32x4_t b = vreinterpretq_f32_m128(_b); - return vreinterpretq_m128_f32(vbslq_f32(mask, b, a)); -} - -// Round the packed double-precision (64-bit) floating-point elements in a up -// to an integer value, and store the results as packed double-precision -// floating-point elements in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_ceil_pd -FORCE_INLINE __m128d _mm_ceil_pd(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vrndpq_f64(vreinterpretq_f64_m128d(a))); -#else - double *f = (double *) &a; - return _mm_set_pd(ceil(f[1]), ceil(f[0])); -#endif -} - -// Round the packed single-precision (32-bit) floating-point elements in a up to -// an integer value, and store the results as packed single-precision -// floating-point elements in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_ceil_ps -FORCE_INLINE __m128 _mm_ceil_ps(__m128 a) -{ -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - return vreinterpretq_m128_f32(vrndpq_f32(vreinterpretq_f32_m128(a))); -#else - float *f = (float *) &a; - return _mm_set_ps(ceilf(f[3]), ceilf(f[2]), ceilf(f[1]), ceilf(f[0])); -#endif -} - -// Round the lower double-precision (64-bit) floating-point element in b up to -// an integer value, store the result as a double-precision floating-point -// element in the lower element of dst, and copy the upper element from a to the -// upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_ceil_sd -FORCE_INLINE __m128d _mm_ceil_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_ceil_pd(b)); -} - -// Round the lower single-precision (32-bit) floating-point element in b up to -// an integer value, store the result as a single-precision floating-point -// element in the lower element of dst, and copy the upper 3 packed elements -// from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_ceil_ss -FORCE_INLINE __m128 _mm_ceil_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_ceil_ps(b)); -} - -// Compare packed 64-bit integers in a and b for equality, and store the results -// in dst -FORCE_INLINE __m128i _mm_cmpeq_epi64(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_u64( - vceqq_u64(vreinterpretq_u64_m128i(a), vreinterpretq_u64_m128i(b))); -#else - // ARMv7 lacks vceqq_u64 - // (a == b) -> (a_lo == b_lo) && (a_hi == b_hi) - uint32x4_t cmp = - vceqq_u32(vreinterpretq_u32_m128i(a), vreinterpretq_u32_m128i(b)); - uint32x4_t swapped = vrev64q_u32(cmp); - return vreinterpretq_m128i_u32(vandq_u32(cmp, swapped)); -#endif -} - -// Sign extend packed 16-bit integers in a to packed 32-bit integers, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi16_epi32 -FORCE_INLINE __m128i _mm_cvtepi16_epi32(__m128i a) -{ - return vreinterpretq_m128i_s32( - vmovl_s16(vget_low_s16(vreinterpretq_s16_m128i(a)))); -} - -// Sign extend packed 16-bit integers in a to packed 64-bit integers, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi16_epi64 -FORCE_INLINE __m128i _mm_cvtepi16_epi64(__m128i a) -{ - int16x8_t s16x8 = vreinterpretq_s16_m128i(a); /* xxxx xxxx xxxx 0B0A */ - int32x4_t s32x4 = vmovl_s16(vget_low_s16(s16x8)); /* 000x 000x 000B 000A */ - int64x2_t s64x2 = vmovl_s32(vget_low_s32(s32x4)); /* 0000 000B 0000 000A */ - return vreinterpretq_m128i_s64(s64x2); -} - -// Sign extend packed 32-bit integers in a to packed 64-bit integers, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi32_epi64 -FORCE_INLINE __m128i _mm_cvtepi32_epi64(__m128i a) -{ - return vreinterpretq_m128i_s64( - vmovl_s32(vget_low_s32(vreinterpretq_s32_m128i(a)))); -} - -// Sign extend packed 8-bit integers in a to packed 16-bit integers, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi8_epi16 -FORCE_INLINE __m128i _mm_cvtepi8_epi16(__m128i a) -{ - int8x16_t s8x16 = vreinterpretq_s8_m128i(a); /* xxxx xxxx xxxx DCBA */ - int16x8_t s16x8 = vmovl_s8(vget_low_s8(s8x16)); /* 0x0x 0x0x 0D0C 0B0A */ - return vreinterpretq_m128i_s16(s16x8); -} - -// Sign extend packed 8-bit integers in a to packed 32-bit integers, and store -// the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi8_epi32 -FORCE_INLINE __m128i _mm_cvtepi8_epi32(__m128i a) -{ - int8x16_t s8x16 = vreinterpretq_s8_m128i(a); /* xxxx xxxx xxxx DCBA */ - int16x8_t s16x8 = vmovl_s8(vget_low_s8(s8x16)); /* 0x0x 0x0x 0D0C 0B0A */ - int32x4_t s32x4 = vmovl_s16(vget_low_s16(s16x8)); /* 000D 000C 000B 000A */ - return vreinterpretq_m128i_s32(s32x4); -} - -// Sign extend packed 8-bit integers in the low 8 bytes of a to packed 64-bit -// integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepi8_epi64 -FORCE_INLINE __m128i _mm_cvtepi8_epi64(__m128i a) -{ - int8x16_t s8x16 = vreinterpretq_s8_m128i(a); /* xxxx xxxx xxxx xxBA */ - int16x8_t s16x8 = vmovl_s8(vget_low_s8(s8x16)); /* 0x0x 0x0x 0x0x 0B0A */ - int32x4_t s32x4 = vmovl_s16(vget_low_s16(s16x8)); /* 000x 000x 000B 000A */ - int64x2_t s64x2 = vmovl_s32(vget_low_s32(s32x4)); /* 0000 000B 0000 000A */ - return vreinterpretq_m128i_s64(s64x2); -} - -// Zero extend packed unsigned 16-bit integers in a to packed 32-bit integers, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepu16_epi32 -FORCE_INLINE __m128i _mm_cvtepu16_epi32(__m128i a) -{ - return vreinterpretq_m128i_u32( - vmovl_u16(vget_low_u16(vreinterpretq_u16_m128i(a)))); -} - -// Zero extend packed unsigned 16-bit integers in a to packed 64-bit integers, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepu16_epi64 -FORCE_INLINE __m128i _mm_cvtepu16_epi64(__m128i a) -{ - uint16x8_t u16x8 = vreinterpretq_u16_m128i(a); /* xxxx xxxx xxxx 0B0A */ - uint32x4_t u32x4 = vmovl_u16(vget_low_u16(u16x8)); /* 000x 000x 000B 000A */ - uint64x2_t u64x2 = vmovl_u32(vget_low_u32(u32x4)); /* 0000 000B 0000 000A */ - return vreinterpretq_m128i_u64(u64x2); -} - -// Zero extend packed unsigned 32-bit integers in a to packed 64-bit integers, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepu32_epi64 -FORCE_INLINE __m128i _mm_cvtepu32_epi64(__m128i a) -{ - return vreinterpretq_m128i_u64( - vmovl_u32(vget_low_u32(vreinterpretq_u32_m128i(a)))); -} - -// Zero extend packed unsigned 8-bit integers in a to packed 16-bit integers, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepu8_epi16 -FORCE_INLINE __m128i _mm_cvtepu8_epi16(__m128i a) -{ - uint8x16_t u8x16 = vreinterpretq_u8_m128i(a); /* xxxx xxxx HGFE DCBA */ - uint16x8_t u16x8 = vmovl_u8(vget_low_u8(u8x16)); /* 0H0G 0F0E 0D0C 0B0A */ - return vreinterpretq_m128i_u16(u16x8); -} - -// Zero extend packed unsigned 8-bit integers in a to packed 32-bit integers, -// and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepu8_epi32 -FORCE_INLINE __m128i _mm_cvtepu8_epi32(__m128i a) -{ - uint8x16_t u8x16 = vreinterpretq_u8_m128i(a); /* xxxx xxxx xxxx DCBA */ - uint16x8_t u16x8 = vmovl_u8(vget_low_u8(u8x16)); /* 0x0x 0x0x 0D0C 0B0A */ - uint32x4_t u32x4 = vmovl_u16(vget_low_u16(u16x8)); /* 000D 000C 000B 000A */ - return vreinterpretq_m128i_u32(u32x4); -} - -// Zero extend packed unsigned 8-bit integers in the low 8 bytes of a to packed -// 64-bit integers, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtepu8_epi64 -FORCE_INLINE __m128i _mm_cvtepu8_epi64(__m128i a) -{ - uint8x16_t u8x16 = vreinterpretq_u8_m128i(a); /* xxxx xxxx xxxx xxBA */ - uint16x8_t u16x8 = vmovl_u8(vget_low_u8(u8x16)); /* 0x0x 0x0x 0x0x 0B0A */ - uint32x4_t u32x4 = vmovl_u16(vget_low_u16(u16x8)); /* 000x 000x 000B 000A */ - uint64x2_t u64x2 = vmovl_u32(vget_low_u32(u32x4)); /* 0000 000B 0000 000A */ - return vreinterpretq_m128i_u64(u64x2); -} - -// Conditionally multiply the packed double-precision (64-bit) floating-point -// elements in a and b using the high 4 bits in imm8, sum the four products, and -// conditionally store the sum in dst using the low 4 bits of imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_dp_pd -FORCE_INLINE __m128d _mm_dp_pd(__m128d a, __m128d b, const int imm) -{ - // Generate mask value from constant immediate bit value - const int64_t bit0Mask = imm & 0x01 ? UINT64_MAX : 0; - const int64_t bit1Mask = imm & 0x02 ? UINT64_MAX : 0; -#if !SSE2NEON_PRECISE_DP - const int64_t bit4Mask = imm & 0x10 ? UINT64_MAX : 0; - const int64_t bit5Mask = imm & 0x20 ? UINT64_MAX : 0; -#endif - // Conditional multiplication -#if !SSE2NEON_PRECISE_DP - __m128d mul = _mm_mul_pd(a, b); - const __m128d mulMask = - _mm_castsi128_pd(_mm_set_epi64x(bit5Mask, bit4Mask)); - __m128d tmp = _mm_and_pd(mul, mulMask); -#else -#if defined(__aarch64__) || defined(_M_ARM64) - double d0 = (imm & 0x10) ? vgetq_lane_f64(vreinterpretq_f64_m128d(a), 0) * - vgetq_lane_f64(vreinterpretq_f64_m128d(b), 0) - : 0; - double d1 = (imm & 0x20) ? vgetq_lane_f64(vreinterpretq_f64_m128d(a), 1) * - vgetq_lane_f64(vreinterpretq_f64_m128d(b), 1) - : 0; -#else - double d0 = (imm & 0x10) ? ((double *) &a)[0] * ((double *) &b)[0] : 0; - double d1 = (imm & 0x20) ? ((double *) &a)[1] * ((double *) &b)[1] : 0; -#endif - __m128d tmp = _mm_set_pd(d1, d0); -#endif - // Sum the products -#if defined(__aarch64__) || defined(_M_ARM64) - double sum = vpaddd_f64(vreinterpretq_f64_m128d(tmp)); -#else - double sum = *((double *) &tmp) + *(((double *) &tmp) + 1); -#endif - // Conditionally store the sum - const __m128d sumMask = - _mm_castsi128_pd(_mm_set_epi64x(bit1Mask, bit0Mask)); - __m128d res = _mm_and_pd(_mm_set_pd1(sum), sumMask); - return res; -} - -// Conditionally multiply the packed single-precision (32-bit) floating-point -// elements in a and b using the high 4 bits in imm8, sum the four products, -// and conditionally store the sum in dst using the low 4 bits of imm. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_dp_ps -FORCE_INLINE __m128 _mm_dp_ps(__m128 a, __m128 b, const int imm) -{ - float32x4_t elementwise_prod = _mm_mul_ps(a, b); - -#if defined(__aarch64__) || defined(_M_ARM64) - /* shortcuts */ - if (imm == 0xFF) { - return _mm_set1_ps(vaddvq_f32(elementwise_prod)); - } - - if ((imm & 0x0F) == 0x0F) { - if (!(imm & (1 << 4))) - elementwise_prod = vsetq_lane_f32(0.0f, elementwise_prod, 0); - if (!(imm & (1 << 5))) - elementwise_prod = vsetq_lane_f32(0.0f, elementwise_prod, 1); - if (!(imm & (1 << 6))) - elementwise_prod = vsetq_lane_f32(0.0f, elementwise_prod, 2); - if (!(imm & (1 << 7))) - elementwise_prod = vsetq_lane_f32(0.0f, elementwise_prod, 3); - - return _mm_set1_ps(vaddvq_f32(elementwise_prod)); - } -#endif - - float s = 0.0f; - - if (imm & (1 << 4)) - s += vgetq_lane_f32(elementwise_prod, 0); - if (imm & (1 << 5)) - s += vgetq_lane_f32(elementwise_prod, 1); - if (imm & (1 << 6)) - s += vgetq_lane_f32(elementwise_prod, 2); - if (imm & (1 << 7)) - s += vgetq_lane_f32(elementwise_prod, 3); - - const float32_t res[4] = { - (imm & 0x1) ? s : 0.0f, - (imm & 0x2) ? s : 0.0f, - (imm & 0x4) ? s : 0.0f, - (imm & 0x8) ? s : 0.0f, - }; - return vreinterpretq_m128_f32(vld1q_f32(res)); -} - -// Extract a 32-bit integer from a, selected with imm8, and store the result in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_extract_epi32 -// FORCE_INLINE int _mm_extract_epi32(__m128i a, __constrange(0,4) int imm) -#define _mm_extract_epi32(a, imm) \ - vgetq_lane_s32(vreinterpretq_s32_m128i(a), (imm)) - -// Extract a 64-bit integer from a, selected with imm8, and store the result in -// dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_extract_epi64 -// FORCE_INLINE __int64 _mm_extract_epi64(__m128i a, __constrange(0,2) int imm) -#define _mm_extract_epi64(a, imm) \ - vgetq_lane_s64(vreinterpretq_s64_m128i(a), (imm)) - -// Extract an 8-bit integer from a, selected with imm8, and store the result in -// the lower element of dst. FORCE_INLINE int _mm_extract_epi8(__m128i a, -// __constrange(0,16) int imm) -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_extract_epi8 -#define _mm_extract_epi8(a, imm) vgetq_lane_u8(vreinterpretq_u8_m128i(a), (imm)) - -// Extracts the selected single-precision (32-bit) floating-point from a. -// FORCE_INLINE int _mm_extract_ps(__m128 a, __constrange(0,4) int imm) -#define _mm_extract_ps(a, imm) vgetq_lane_s32(vreinterpretq_s32_m128(a), (imm)) - -// Round the packed double-precision (64-bit) floating-point elements in a down -// to an integer value, and store the results as packed double-precision -// floating-point elements in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_floor_pd -FORCE_INLINE __m128d _mm_floor_pd(__m128d a) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128d_f64(vrndmq_f64(vreinterpretq_f64_m128d(a))); -#else - double *f = (double *) &a; - return _mm_set_pd(floor(f[1]), floor(f[0])); -#endif -} - -// Round the packed single-precision (32-bit) floating-point elements in a down -// to an integer value, and store the results as packed single-precision -// floating-point elements in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_floor_ps -FORCE_INLINE __m128 _mm_floor_ps(__m128 a) -{ -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - return vreinterpretq_m128_f32(vrndmq_f32(vreinterpretq_f32_m128(a))); -#else - float *f = (float *) &a; - return _mm_set_ps(floorf(f[3]), floorf(f[2]), floorf(f[1]), floorf(f[0])); -#endif -} - -// Round the lower double-precision (64-bit) floating-point element in b down to -// an integer value, store the result as a double-precision floating-point -// element in the lower element of dst, and copy the upper element from a to the -// upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_floor_sd -FORCE_INLINE __m128d _mm_floor_sd(__m128d a, __m128d b) -{ - return _mm_move_sd(a, _mm_floor_pd(b)); -} - -// Round the lower single-precision (32-bit) floating-point element in b down to -// an integer value, store the result as a single-precision floating-point -// element in the lower element of dst, and copy the upper 3 packed elements -// from a to the upper elements of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_floor_ss -FORCE_INLINE __m128 _mm_floor_ss(__m128 a, __m128 b) -{ - return _mm_move_ss(a, _mm_floor_ps(b)); -} - -// Copy a to dst, and insert the 32-bit integer i into dst at the location -// specified by imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_insert_epi32 -// FORCE_INLINE __m128i _mm_insert_epi32(__m128i a, int b, -// __constrange(0,4) int imm) -#define _mm_insert_epi32(a, b, imm) \ - vreinterpretq_m128i_s32( \ - vsetq_lane_s32((b), vreinterpretq_s32_m128i(a), (imm))) - -// Copy a to dst, and insert the 64-bit integer i into dst at the location -// specified by imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_insert_epi64 -// FORCE_INLINE __m128i _mm_insert_epi64(__m128i a, __int64 b, -// __constrange(0,2) int imm) -#define _mm_insert_epi64(a, b, imm) \ - vreinterpretq_m128i_s64( \ - vsetq_lane_s64((b), vreinterpretq_s64_m128i(a), (imm))) - -// Copy a to dst, and insert the lower 8-bit integer from i into dst at the -// location specified by imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_insert_epi8 -// FORCE_INLINE __m128i _mm_insert_epi8(__m128i a, int b, -// __constrange(0,16) int imm) -#define _mm_insert_epi8(a, b, imm) \ - vreinterpretq_m128i_s8(vsetq_lane_s8((b), vreinterpretq_s8_m128i(a), (imm))) - -// Copy a to tmp, then insert a single-precision (32-bit) floating-point -// element from b into tmp using the control in imm8. Store tmp to dst using -// the mask in imm8 (elements are zeroed out when the corresponding bit is set). -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=insert_ps -#define _mm_insert_ps(a, b, imm8) \ - _sse2neon_define2( \ - __m128, a, b, \ - float32x4_t tmp1 = \ - vsetq_lane_f32(vgetq_lane_f32(_b, (imm8 >> 6) & 0x3), \ - vreinterpretq_f32_m128(_a), 0); \ - float32x4_t tmp2 = \ - vsetq_lane_f32(vgetq_lane_f32(tmp1, 0), \ - vreinterpretq_f32_m128(_a), ((imm8 >> 4) & 0x3)); \ - const uint32_t data[4] = \ - _sse2neon_init(((imm8) & (1 << 0)) ? UINT32_MAX : 0, \ - ((imm8) & (1 << 1)) ? UINT32_MAX : 0, \ - ((imm8) & (1 << 2)) ? UINT32_MAX : 0, \ - ((imm8) & (1 << 3)) ? UINT32_MAX : 0); \ - uint32x4_t mask = vld1q_u32(data); \ - float32x4_t all_zeros = vdupq_n_f32(0); \ - \ - _sse2neon_return(vreinterpretq_m128_f32( \ - vbslq_f32(mask, all_zeros, vreinterpretq_f32_m128(tmp2))));) - -// Compare packed signed 32-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epi32 -FORCE_INLINE __m128i _mm_max_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vmaxq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Compare packed signed 8-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epi8 -FORCE_INLINE __m128i _mm_max_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vmaxq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Compare packed unsigned 16-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epu16 -FORCE_INLINE __m128i _mm_max_epu16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vmaxq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); -} - -// Compare packed unsigned 32-bit integers in a and b, and store packed maximum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epu32 -FORCE_INLINE __m128i _mm_max_epu32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u32( - vmaxq_u32(vreinterpretq_u32_m128i(a), vreinterpretq_u32_m128i(b))); -} - -// Compare packed signed 32-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_epi32 -FORCE_INLINE __m128i _mm_min_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vminq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Compare packed signed 8-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_epi8 -FORCE_INLINE __m128i _mm_min_epi8(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s8( - vminq_s8(vreinterpretq_s8_m128i(a), vreinterpretq_s8_m128i(b))); -} - -// Compare packed unsigned 16-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_min_epu16 -FORCE_INLINE __m128i _mm_min_epu16(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vminq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b))); -} - -// Compare packed unsigned 32-bit integers in a and b, and store packed minimum -// values in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_max_epu32 -FORCE_INLINE __m128i _mm_min_epu32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u32( - vminq_u32(vreinterpretq_u32_m128i(a), vreinterpretq_u32_m128i(b))); -} - -// Horizontally compute the minimum amongst the packed unsigned 16-bit integers -// in a, store the minimum and index in dst, and zero the remaining bits in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_minpos_epu16 -FORCE_INLINE __m128i _mm_minpos_epu16(__m128i a) -{ - __m128i dst; - uint16_t min, idx = 0; -#if defined(__aarch64__) || defined(_M_ARM64) - // Find the minimum value - min = vminvq_u16(vreinterpretq_u16_m128i(a)); - - // Get the index of the minimum value - static const uint16_t idxv[] = {0, 1, 2, 3, 4, 5, 6, 7}; - uint16x8_t minv = vdupq_n_u16(min); - uint16x8_t cmeq = vceqq_u16(minv, vreinterpretq_u16_m128i(a)); - idx = vminvq_u16(vornq_u16(vld1q_u16(idxv), cmeq)); -#else - // Find the minimum value - __m64 tmp; - tmp = vreinterpret_m64_u16( - vmin_u16(vget_low_u16(vreinterpretq_u16_m128i(a)), - vget_high_u16(vreinterpretq_u16_m128i(a)))); - tmp = vreinterpret_m64_u16( - vpmin_u16(vreinterpret_u16_m64(tmp), vreinterpret_u16_m64(tmp))); - tmp = vreinterpret_m64_u16( - vpmin_u16(vreinterpret_u16_m64(tmp), vreinterpret_u16_m64(tmp))); - min = vget_lane_u16(vreinterpret_u16_m64(tmp), 0); - // Get the index of the minimum value - int i; - for (i = 0; i < 8; i++) { - if (min == vgetq_lane_u16(vreinterpretq_u16_m128i(a), 0)) { - idx = (uint16_t) i; - break; - } - a = _mm_srli_si128(a, 2); - } -#endif - // Generate result - dst = _mm_setzero_si128(); - dst = vreinterpretq_m128i_u16( - vsetq_lane_u16(min, vreinterpretq_u16_m128i(dst), 0)); - dst = vreinterpretq_m128i_u16( - vsetq_lane_u16(idx, vreinterpretq_u16_m128i(dst), 1)); - return dst; -} - -// Compute the sum of absolute differences (SADs) of quadruplets of unsigned -// 8-bit integers in a compared to those in b, and store the 16-bit results in -// dst. Eight SADs are performed using one quadruplet from b and eight -// quadruplets from a. One quadruplet is selected from b starting at on the -// offset specified in imm8. Eight quadruplets are formed from sequential 8-bit -// integers selected from a starting at the offset specified in imm8. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mpsadbw_epu8 -FORCE_INLINE __m128i _mm_mpsadbw_epu8(__m128i a, __m128i b, const int imm) -{ - uint8x16_t _a, _b; - - switch (imm & 0x4) { - case 0: - // do nothing - _a = vreinterpretq_u8_m128i(a); - break; - case 4: - _a = vreinterpretq_u8_u32(vextq_u32(vreinterpretq_u32_m128i(a), - vreinterpretq_u32_m128i(a), 1)); - break; +// Perform a carry-less multiplication of two 64-bit integers, selected from a +// and b according to imm8, and store the results in dst. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_clmulepi64_si128 +FORCE_INLINE __m128i _mm_clmulepi64_si128(__m128i _a, __m128i _b, const int imm) +{ + uint64x2_t a = vreinterpretq_u64_m128i(_a); + uint64x2_t b = vreinterpretq_u64_m128i(_b); + switch (imm & 0x11) { + case 0x00: + return vreinterpretq_m128i_u64( + _sse2neon_vmull_p64(vget_low_u64(a), vget_low_u64(b))); + case 0x01: + return vreinterpretq_m128i_u64( + _sse2neon_vmull_p64(vget_high_u64(a), vget_low_u64(b))); + case 0x10: + return vreinterpretq_m128i_u64( + _sse2neon_vmull_p64(vget_low_u64(a), vget_high_u64(b))); + case 0x11: + return vreinterpretq_m128i_u64( + _sse2neon_vmull_p64(vget_high_u64(a), vget_high_u64(b))); default: -#if defined(__GNUC__) || defined(__clang__) - __builtin_unreachable(); -#elif defined(_MSC_VER) - __assume(0); -#endif - break; + abort(); } - - switch (imm & 0x3) { - case 0: - _b = vreinterpretq_u8_u32( - vdupq_n_u32(vgetq_lane_u32(vreinterpretq_u32_m128i(b), 0))); - break; - case 1: - _b = vreinterpretq_u8_u32( - vdupq_n_u32(vgetq_lane_u32(vreinterpretq_u32_m128i(b), 1))); - break; - case 2: - _b = vreinterpretq_u8_u32( - vdupq_n_u32(vgetq_lane_u32(vreinterpretq_u32_m128i(b), 2))); - break; - case 3: - _b = vreinterpretq_u8_u32( - vdupq_n_u32(vgetq_lane_u32(vreinterpretq_u32_m128i(b), 3))); - break; - default: -#if defined(__GNUC__) || defined(__clang__) - __builtin_unreachable(); -#elif defined(_MSC_VER) - __assume(0); -#endif - break; - } - - int16x8_t c04, c15, c26, c37; - uint8x8_t low_b = vget_low_u8(_b); - c04 = vreinterpretq_s16_u16(vabdl_u8(vget_low_u8(_a), low_b)); - uint8x16_t _a_1 = vextq_u8(_a, _a, 1); - c15 = vreinterpretq_s16_u16(vabdl_u8(vget_low_u8(_a_1), low_b)); - uint8x16_t _a_2 = vextq_u8(_a, _a, 2); - c26 = vreinterpretq_s16_u16(vabdl_u8(vget_low_u8(_a_2), low_b)); - uint8x16_t _a_3 = vextq_u8(_a, _a, 3); - c37 = vreinterpretq_s16_u16(vabdl_u8(vget_low_u8(_a_3), low_b)); -#if defined(__aarch64__) || defined(_M_ARM64) - // |0|4|2|6| - c04 = vpaddq_s16(c04, c26); - // |1|5|3|7| - c15 = vpaddq_s16(c15, c37); - - int32x4_t trn1_c = - vtrn1q_s32(vreinterpretq_s32_s16(c04), vreinterpretq_s32_s16(c15)); - int32x4_t trn2_c = - vtrn2q_s32(vreinterpretq_s32_s16(c04), vreinterpretq_s32_s16(c15)); - return vreinterpretq_m128i_s16(vpaddq_s16(vreinterpretq_s16_s32(trn1_c), - vreinterpretq_s16_s32(trn2_c))); -#else - int16x4_t c01, c23, c45, c67; - c01 = vpadd_s16(vget_low_s16(c04), vget_low_s16(c15)); - c23 = vpadd_s16(vget_low_s16(c26), vget_low_s16(c37)); - c45 = vpadd_s16(vget_high_s16(c04), vget_high_s16(c15)); - c67 = vpadd_s16(vget_high_s16(c26), vget_high_s16(c37)); - - return vreinterpretq_m128i_s16( - vcombine_s16(vpadd_s16(c01, c23), vpadd_s16(c45, c67))); -#endif -} - -// Multiply the low signed 32-bit integers from each packed 64-bit element in -// a and b, and store the signed 64-bit results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mul_epi32 -FORCE_INLINE __m128i _mm_mul_epi32(__m128i a, __m128i b) -{ - // vmull_s32 upcasts instead of masking, so we downcast. - int32x2_t a_lo = vmovn_s64(vreinterpretq_s64_m128i(a)); - int32x2_t b_lo = vmovn_s64(vreinterpretq_s64_m128i(b)); - return vreinterpretq_m128i_s64(vmull_s32(a_lo, b_lo)); -} - -// Multiply the packed 32-bit integers in a and b, producing intermediate 64-bit -// integers, and store the low 32 bits of the intermediate integers in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_mullo_epi32 -FORCE_INLINE __m128i _mm_mullo_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_s32( - vmulq_s32(vreinterpretq_s32_m128i(a), vreinterpretq_s32_m128i(b))); -} - -// Convert packed signed 32-bit integers from a and b to packed 16-bit integers -// using unsigned saturation, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi32 -FORCE_INLINE __m128i _mm_packus_epi32(__m128i a, __m128i b) -{ - return vreinterpretq_m128i_u16( - vcombine_u16(vqmovun_s32(vreinterpretq_s32_m128i(a)), - vqmovun_s32(vreinterpretq_s32_m128i(b)))); -} - -// Round the packed double-precision (64-bit) floating-point elements in a using -// the rounding parameter, and store the results as packed double-precision -// floating-point elements in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_round_pd -FORCE_INLINE __m128d _mm_round_pd(__m128d a, int rounding) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - switch (rounding) { - case (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC): - return vreinterpretq_m128d_f64(vrndnq_f64(vreinterpretq_f64_m128d(a))); - case (_MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC): - return _mm_floor_pd(a); - case (_MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC): - return _mm_ceil_pd(a); - case (_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC): - return vreinterpretq_m128d_f64(vrndq_f64(vreinterpretq_f64_m128d(a))); - default: //_MM_FROUND_CUR_DIRECTION - return vreinterpretq_m128d_f64(vrndiq_f64(vreinterpretq_f64_m128d(a))); - } -#else - double *v_double = (double *) &a; - - if (rounding == (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC) || - (rounding == _MM_FROUND_CUR_DIRECTION && - _MM_GET_ROUNDING_MODE() == _MM_ROUND_NEAREST)) { - double res[2], tmp; - for (int i = 0; i < 2; i++) { - tmp = (v_double[i] < 0) ? -v_double[i] : v_double[i]; - double roundDown = floor(tmp); // Round down value - double roundUp = ceil(tmp); // Round up value - double diffDown = tmp - roundDown; - double diffUp = roundUp - tmp; - if (diffDown < diffUp) { - /* If it's closer to the round down value, then use it */ - res[i] = roundDown; - } else if (diffDown > diffUp) { - /* If it's closer to the round up value, then use it */ - res[i] = roundUp; - } else { - /* If it's equidistant between round up and round down value, - * pick the one which is an even number */ - double half = roundDown / 2; - if (half != floor(half)) { - /* If the round down value is odd, return the round up value - */ - res[i] = roundUp; - } else { - /* If the round up value is odd, return the round down value - */ - res[i] = roundDown; - } - } - res[i] = (v_double[i] < 0) ? -res[i] : res[i]; - } - return _mm_set_pd(res[1], res[0]); - } else if (rounding == (_MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC) || - (rounding == _MM_FROUND_CUR_DIRECTION && - _MM_GET_ROUNDING_MODE() == _MM_ROUND_DOWN)) { - return _mm_floor_pd(a); - } else if (rounding == (_MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC) || - (rounding == _MM_FROUND_CUR_DIRECTION && - _MM_GET_ROUNDING_MODE() == _MM_ROUND_UP)) { - return _mm_ceil_pd(a); - } - return _mm_set_pd(v_double[1] > 0 ? floor(v_double[1]) : ceil(v_double[1]), - v_double[0] > 0 ? floor(v_double[0]) : ceil(v_double[0])); -#endif -} - -// Round the packed single-precision (32-bit) floating-point elements in a using -// the rounding parameter, and store the results as packed single-precision -// floating-point elements in dst. -// software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_round_ps -FORCE_INLINE __m128 _mm_round_ps(__m128 a, int rounding) -{ -#if (defined(__aarch64__) || defined(_M_ARM64)) || \ - defined(__ARM_FEATURE_DIRECTED_ROUNDING) - switch (rounding) { - case (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC): - return vreinterpretq_m128_f32(vrndnq_f32(vreinterpretq_f32_m128(a))); - case (_MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC): - return _mm_floor_ps(a); - case (_MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC): - return _mm_ceil_ps(a); - case (_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC): - return vreinterpretq_m128_f32(vrndq_f32(vreinterpretq_f32_m128(a))); - default: //_MM_FROUND_CUR_DIRECTION - return vreinterpretq_m128_f32(vrndiq_f32(vreinterpretq_f32_m128(a))); - } -#else - float *v_float = (float *) &a; - - if (rounding == (_MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC) || - (rounding == _MM_FROUND_CUR_DIRECTION && - _MM_GET_ROUNDING_MODE() == _MM_ROUND_NEAREST)) { - uint32x4_t signmask = vdupq_n_u32(0x80000000); - float32x4_t half = vbslq_f32(signmask, vreinterpretq_f32_m128(a), - vdupq_n_f32(0.5f)); /* +/- 0.5 */ - int32x4_t r_normal = vcvtq_s32_f32(vaddq_f32( - vreinterpretq_f32_m128(a), half)); /* round to integer: [a + 0.5]*/ - int32x4_t r_trunc = vcvtq_s32_f32( - vreinterpretq_f32_m128(a)); /* truncate to integer: [a] */ - int32x4_t plusone = vreinterpretq_s32_u32(vshrq_n_u32( - vreinterpretq_u32_s32(vnegq_s32(r_trunc)), 31)); /* 1 or 0 */ - int32x4_t r_even = vbicq_s32(vaddq_s32(r_trunc, plusone), - vdupq_n_s32(1)); /* ([a] + {0,1}) & ~1 */ - float32x4_t delta = vsubq_f32( - vreinterpretq_f32_m128(a), - vcvtq_f32_s32(r_trunc)); /* compute delta: delta = (a - [a]) */ - uint32x4_t is_delta_half = - vceqq_f32(delta, half); /* delta == +/- 0.5 */ - return vreinterpretq_m128_f32( - vcvtq_f32_s32(vbslq_s32(is_delta_half, r_even, r_normal))); - } else if (rounding == (_MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC) || - (rounding == _MM_FROUND_CUR_DIRECTION && - _MM_GET_ROUNDING_MODE() == _MM_ROUND_DOWN)) { - return _mm_floor_ps(a); - } else if (rounding == (_MM_FROUND_TO_POS_INF | _MM_FROUND_NO_EXC) || - (rounding == _MM_FROUND_CUR_DIRECTION && - _MM_GET_ROUNDING_MODE() == _MM_ROUND_UP)) { - return _mm_ceil_ps(a); - } - return _mm_set_ps(v_float[3] > 0 ? floorf(v_float[3]) : ceilf(v_float[3]), - v_float[2] > 0 ? floorf(v_float[2]) : ceilf(v_float[2]), - v_float[1] > 0 ? floorf(v_float[1]) : ceilf(v_float[1]), - v_float[0] > 0 ? floorf(v_float[0]) : ceilf(v_float[0])); -#endif -} - -// Round the lower double-precision (64-bit) floating-point element in b using -// the rounding parameter, store the result as a double-precision floating-point -// element in the lower element of dst, and copy the upper element from a to the -// upper element of dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_round_sd -FORCE_INLINE __m128d _mm_round_sd(__m128d a, __m128d b, int rounding) -{ - return _mm_move_sd(a, _mm_round_pd(b, rounding)); -} - -// Round the lower single-precision (32-bit) floating-point element in b using -// the rounding parameter, store the result as a single-precision floating-point -// element in the lower element of dst, and copy the upper 3 packed elements -// from a to the upper elements of dst. Rounding is done according to the -// rounding[3:0] parameter, which can be one of: -// (_MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC) // round to nearest, and -// suppress exceptions -// (_MM_FROUND_TO_NEG_INF |_MM_FROUND_NO_EXC) // round down, and -// suppress exceptions -// (_MM_FROUND_TO_POS_INF |_MM_FROUND_NO_EXC) // round up, and suppress -// exceptions -// (_MM_FROUND_TO_ZERO |_MM_FROUND_NO_EXC) // truncate, and suppress -// exceptions _MM_FROUND_CUR_DIRECTION // use MXCSR.RC; see -// _MM_SET_ROUNDING_MODE -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_round_ss -FORCE_INLINE __m128 _mm_round_ss(__m128 a, __m128 b, int rounding) -{ - return _mm_move_ss(a, _mm_round_ps(b, rounding)); -} - -// Load 128-bits of integer data from memory into dst using a non-temporal -// memory hint. mem_addr must be aligned on a 16-byte boundary or a -// general-protection exception may be generated. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_stream_load_si128 -FORCE_INLINE __m128i _mm_stream_load_si128(__m128i *p) -{ -#if __has_builtin(__builtin_nontemporal_store) - return __builtin_nontemporal_load(p); -#else - return vreinterpretq_m128i_s64(vld1q_s64((int64_t *) p)); -#endif -} - -// Compute the bitwise NOT of a and then AND with a 128-bit vector containing -// all 1's, and return 1 if the result is zero, otherwise return 0. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_test_all_ones -FORCE_INLINE int _mm_test_all_ones(__m128i a) -{ - return (uint64_t) (vgetq_lane_s64(a, 0) & vgetq_lane_s64(a, 1)) == - ~(uint64_t) 0; -} - -// Compute the bitwise AND of 128 bits (representing integer data) in a and -// mask, and return 1 if the result is zero, otherwise return 0. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_test_all_zeros -FORCE_INLINE int _mm_test_all_zeros(__m128i a, __m128i mask) -{ - int64x2_t a_and_mask = - vandq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(mask)); - return !(vgetq_lane_s64(a_and_mask, 0) | vgetq_lane_s64(a_and_mask, 1)); -} - -// Compute the bitwise AND of 128 bits (representing integer data) in a and -// mask, and set ZF to 1 if the result is zero, otherwise set ZF to 0. Compute -// the bitwise NOT of a and then AND with mask, and set CF to 1 if the result is -// zero, otherwise set CF to 0. Return 1 if both the ZF and CF values are zero, -// otherwise return 0. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=mm_test_mix_ones_zero -FORCE_INLINE int _mm_test_mix_ones_zeros(__m128i a, __m128i mask) -{ - uint64x2_t zf = - vandq_u64(vreinterpretq_u64_m128i(mask), vreinterpretq_u64_m128i(a)); - uint64x2_t cf = - vbicq_u64(vreinterpretq_u64_m128i(mask), vreinterpretq_u64_m128i(a)); - uint64x2_t result = vandq_u64(zf, cf); - return !(vgetq_lane_u64(result, 0) | vgetq_lane_u64(result, 1)); -} - -// Compute the bitwise AND of 128 bits (representing integer data) in a and b, -// and set ZF to 1 if the result is zero, otherwise set ZF to 0. Compute the -// bitwise NOT of a and then AND with b, and set CF to 1 if the result is zero, -// otherwise set CF to 0. Return the CF value. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_testc_si128 -FORCE_INLINE int _mm_testc_si128(__m128i a, __m128i b) -{ - int64x2_t s64 = - vbicq_s64(vreinterpretq_s64_m128i(b), vreinterpretq_s64_m128i(a)); - return !(vgetq_lane_s64(s64, 0) | vgetq_lane_s64(s64, 1)); -} - -// Compute the bitwise AND of 128 bits (representing integer data) in a and b, -// and set ZF to 1 if the result is zero, otherwise set ZF to 0. Compute the -// bitwise NOT of a and then AND with b, and set CF to 1 if the result is zero, -// otherwise set CF to 0. Return 1 if both the ZF and CF values are zero, -// otherwise return 0. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_testnzc_si128 -#define _mm_testnzc_si128(a, b) _mm_test_mix_ones_zeros(a, b) - -// Compute the bitwise AND of 128 bits (representing integer data) in a and b, -// and set ZF to 1 if the result is zero, otherwise set ZF to 0. Compute the -// bitwise NOT of a and then AND with b, and set CF to 1 if the result is zero, -// otherwise set CF to 0. Return the ZF value. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_testz_si128 -FORCE_INLINE int _mm_testz_si128(__m128i a, __m128i b) -{ - int64x2_t s64 = - vandq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b)); - return !(vgetq_lane_s64(s64, 0) | vgetq_lane_s64(s64, 1)); -} - -/* SSE4.2 */ - -static const uint16_t ALIGN_STRUCT(16) _sse2neon_cmpestr_mask16b[8] = { - 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, -}; -static const uint8_t ALIGN_STRUCT(16) _sse2neon_cmpestr_mask8b[16] = { - 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, - 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, -}; - -/* specify the source data format */ -#define _SIDD_UBYTE_OPS 0x00 /* unsigned 8-bit characters */ -#define _SIDD_UWORD_OPS 0x01 /* unsigned 16-bit characters */ -#define _SIDD_SBYTE_OPS 0x02 /* signed 8-bit characters */ -#define _SIDD_SWORD_OPS 0x03 /* signed 16-bit characters */ - -/* specify the comparison operation */ -#define _SIDD_CMP_EQUAL_ANY 0x00 /* compare equal any: strchr */ -#define _SIDD_CMP_RANGES 0x04 /* compare ranges */ -#define _SIDD_CMP_EQUAL_EACH 0x08 /* compare equal each: strcmp */ -#define _SIDD_CMP_EQUAL_ORDERED 0x0C /* compare equal ordered */ - -/* specify the polarity */ -#define _SIDD_POSITIVE_POLARITY 0x00 -#define _SIDD_MASKED_POSITIVE_POLARITY 0x20 -#define _SIDD_NEGATIVE_POLARITY 0x10 /* negate results */ -#define _SIDD_MASKED_NEGATIVE_POLARITY \ - 0x30 /* negate results only before end of string */ - -/* specify the output selection in _mm_cmpXstri */ -#define _SIDD_LEAST_SIGNIFICANT 0x00 -#define _SIDD_MOST_SIGNIFICANT 0x40 - -/* specify the output selection in _mm_cmpXstrm */ -#define _SIDD_BIT_MASK 0x00 -#define _SIDD_UNIT_MASK 0x40 - -/* Pattern Matching for C macros. - * https://github.com/pfultz2/Cloak/wiki/C-Preprocessor-tricks,-tips,-and-idioms - */ - -/* catenate */ -#define SSE2NEON_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__ -#define SSE2NEON_CAT(a, b) SSE2NEON_PRIMITIVE_CAT(a, b) - -#define SSE2NEON_IIF(c) SSE2NEON_PRIMITIVE_CAT(SSE2NEON_IIF_, c) -/* run the 2nd parameter */ -#define SSE2NEON_IIF_0(t, ...) __VA_ARGS__ -/* run the 1st parameter */ -#define SSE2NEON_IIF_1(t, ...) t - -#define SSE2NEON_COMPL(b) SSE2NEON_PRIMITIVE_CAT(SSE2NEON_COMPL_, b) -#define SSE2NEON_COMPL_0 1 -#define SSE2NEON_COMPL_1 0 - -#define SSE2NEON_DEC(x) SSE2NEON_PRIMITIVE_CAT(SSE2NEON_DEC_, x) -#define SSE2NEON_DEC_1 0 -#define SSE2NEON_DEC_2 1 -#define SSE2NEON_DEC_3 2 -#define SSE2NEON_DEC_4 3 -#define SSE2NEON_DEC_5 4 -#define SSE2NEON_DEC_6 5 -#define SSE2NEON_DEC_7 6 -#define SSE2NEON_DEC_8 7 -#define SSE2NEON_DEC_9 8 -#define SSE2NEON_DEC_10 9 -#define SSE2NEON_DEC_11 10 -#define SSE2NEON_DEC_12 11 -#define SSE2NEON_DEC_13 12 -#define SSE2NEON_DEC_14 13 -#define SSE2NEON_DEC_15 14 -#define SSE2NEON_DEC_16 15 - -/* detection */ -#define SSE2NEON_CHECK_N(x, n, ...) n -#define SSE2NEON_CHECK(...) SSE2NEON_CHECK_N(__VA_ARGS__, 0, ) -#define SSE2NEON_PROBE(x) x, 1, - -#define SSE2NEON_NOT(x) SSE2NEON_CHECK(SSE2NEON_PRIMITIVE_CAT(SSE2NEON_NOT_, x)) -#define SSE2NEON_NOT_0 SSE2NEON_PROBE(~) - -#define SSE2NEON_BOOL(x) SSE2NEON_COMPL(SSE2NEON_NOT(x)) -#define SSE2NEON_IF(c) SSE2NEON_IIF(SSE2NEON_BOOL(c)) - -#define SSE2NEON_EAT(...) -#define SSE2NEON_EXPAND(...) __VA_ARGS__ -#define SSE2NEON_WHEN(c) SSE2NEON_IF(c)(SSE2NEON_EXPAND, SSE2NEON_EAT) - -/* recursion */ -/* deferred expression */ -#define SSE2NEON_EMPTY() -#define SSE2NEON_DEFER(id) id SSE2NEON_EMPTY() -#define SSE2NEON_OBSTRUCT(...) __VA_ARGS__ SSE2NEON_DEFER(SSE2NEON_EMPTY)() -#define SSE2NEON_EXPAND(...) __VA_ARGS__ - -#define SSE2NEON_EVAL(...) \ - SSE2NEON_EVAL1(SSE2NEON_EVAL1(SSE2NEON_EVAL1(__VA_ARGS__))) -#define SSE2NEON_EVAL1(...) \ - SSE2NEON_EVAL2(SSE2NEON_EVAL2(SSE2NEON_EVAL2(__VA_ARGS__))) -#define SSE2NEON_EVAL2(...) \ - SSE2NEON_EVAL3(SSE2NEON_EVAL3(SSE2NEON_EVAL3(__VA_ARGS__))) -#define SSE2NEON_EVAL3(...) __VA_ARGS__ - -#define SSE2NEON_REPEAT(count, macro, ...) \ - SSE2NEON_WHEN(count) \ - (SSE2NEON_OBSTRUCT(SSE2NEON_REPEAT_INDIRECT)()( \ - SSE2NEON_DEC(count), macro, \ - __VA_ARGS__) SSE2NEON_OBSTRUCT(macro)(SSE2NEON_DEC(count), \ - __VA_ARGS__)) -#define SSE2NEON_REPEAT_INDIRECT() SSE2NEON_REPEAT - -#define SSE2NEON_SIZE_OF_byte 8 -#define SSE2NEON_NUMBER_OF_LANES_byte 16 -#define SSE2NEON_SIZE_OF_word 16 -#define SSE2NEON_NUMBER_OF_LANES_word 8 - -#define SSE2NEON_COMPARE_EQUAL_THEN_FILL_LANE(i, type) \ - mtx[i] = vreinterpretq_m128i_##type(vceqq_##type( \ - vdupq_n_##type(vgetq_lane_##type(vreinterpretq_##type##_m128i(b), i)), \ - vreinterpretq_##type##_m128i(a))); - -#define SSE2NEON_FILL_LANE(i, type) \ - vec_b[i] = \ - vdupq_n_##type(vgetq_lane_##type(vreinterpretq_##type##_m128i(b), i)); - -#define PCMPSTR_RANGES(a, b, mtx, data_type_prefix, type_prefix, size, \ - number_of_lanes, byte_or_word) \ - do { \ - SSE2NEON_CAT( \ - data_type_prefix, \ - SSE2NEON_CAT(size, \ - SSE2NEON_CAT(x, SSE2NEON_CAT(number_of_lanes, _t)))) \ - vec_b[number_of_lanes]; \ - __m128i mask = SSE2NEON_IIF(byte_or_word)( \ - vreinterpretq_m128i_u16(vdupq_n_u16(0xff)), \ - vreinterpretq_m128i_u32(vdupq_n_u32(0xffff))); \ - SSE2NEON_EVAL(SSE2NEON_REPEAT(number_of_lanes, SSE2NEON_FILL_LANE, \ - SSE2NEON_CAT(type_prefix, size))) \ - for (int i = 0; i < number_of_lanes; i++) { \ - mtx[i] = SSE2NEON_CAT(vreinterpretq_m128i_u, \ - size)(SSE2NEON_CAT(vbslq_u, size)( \ - SSE2NEON_CAT(vreinterpretq_u, \ - SSE2NEON_CAT(size, _m128i))(mask), \ - SSE2NEON_CAT(vcgeq_, SSE2NEON_CAT(type_prefix, size))( \ - vec_b[i], \ - SSE2NEON_CAT( \ - vreinterpretq_, \ - SSE2NEON_CAT(type_prefix, \ - SSE2NEON_CAT(size, _m128i(a))))), \ - SSE2NEON_CAT(vcleq_, SSE2NEON_CAT(type_prefix, size))( \ - vec_b[i], \ - SSE2NEON_CAT( \ - vreinterpretq_, \ - SSE2NEON_CAT(type_prefix, \ - SSE2NEON_CAT(size, _m128i(a))))))); \ - } \ - } while (0) - -#define PCMPSTR_EQ(a, b, mtx, size, number_of_lanes) \ - do { \ - SSE2NEON_EVAL(SSE2NEON_REPEAT(number_of_lanes, \ - SSE2NEON_COMPARE_EQUAL_THEN_FILL_LANE, \ - SSE2NEON_CAT(u, size))) \ - } while (0) - -#define SSE2NEON_CMP_EQUAL_ANY_IMPL(type) \ - static int _sse2neon_cmp_##type##_equal_any(__m128i a, int la, __m128i b, \ - int lb) \ - { \ - __m128i mtx[16]; \ - PCMPSTR_EQ(a, b, mtx, SSE2NEON_CAT(SSE2NEON_SIZE_OF_, type), \ - SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, type)); \ - return SSE2NEON_CAT( \ - _sse2neon_aggregate_equal_any_, \ - SSE2NEON_CAT( \ - SSE2NEON_CAT(SSE2NEON_SIZE_OF_, type), \ - SSE2NEON_CAT(x, SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, \ - type))))(la, lb, mtx); \ - } - -#define SSE2NEON_CMP_RANGES_IMPL(type, data_type, us, byte_or_word) \ - static int _sse2neon_cmp_##us##type##_ranges(__m128i a, int la, __m128i b, \ - int lb) \ - { \ - __m128i mtx[16]; \ - PCMPSTR_RANGES( \ - a, b, mtx, data_type, us, SSE2NEON_CAT(SSE2NEON_SIZE_OF_, type), \ - SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, type), byte_or_word); \ - return SSE2NEON_CAT( \ - _sse2neon_aggregate_ranges_, \ - SSE2NEON_CAT( \ - SSE2NEON_CAT(SSE2NEON_SIZE_OF_, type), \ - SSE2NEON_CAT(x, SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, \ - type))))(la, lb, mtx); \ - } - -#define SSE2NEON_CMP_EQUAL_ORDERED_IMPL(type) \ - static int _sse2neon_cmp_##type##_equal_ordered(__m128i a, int la, \ - __m128i b, int lb) \ - { \ - __m128i mtx[16]; \ - PCMPSTR_EQ(a, b, mtx, SSE2NEON_CAT(SSE2NEON_SIZE_OF_, type), \ - SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, type)); \ - return SSE2NEON_CAT( \ - _sse2neon_aggregate_equal_ordered_, \ - SSE2NEON_CAT( \ - SSE2NEON_CAT(SSE2NEON_SIZE_OF_, type), \ - SSE2NEON_CAT(x, \ - SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, type))))( \ - SSE2NEON_CAT(SSE2NEON_NUMBER_OF_LANES_, type), la, lb, mtx); \ - } - -static int _sse2neon_aggregate_equal_any_8x16(int la, int lb, __m128i mtx[16]) -{ - int res = 0; - int m = (1 << la) - 1; - uint8x8_t vec_mask = vld1_u8(_sse2neon_cmpestr_mask8b); - uint8x8_t t_lo = vtst_u8(vdup_n_u8(m & 0xff), vec_mask); - uint8x8_t t_hi = vtst_u8(vdup_n_u8(m >> 8), vec_mask); - uint8x16_t vec = vcombine_u8(t_lo, t_hi); - for (int j = 0; j < lb; j++) { - mtx[j] = vreinterpretq_m128i_u8( - vandq_u8(vec, vreinterpretq_u8_m128i(mtx[j]))); - mtx[j] = vreinterpretq_m128i_u8( - vshrq_n_u8(vreinterpretq_u8_m128i(mtx[j]), 7)); - int tmp = _sse2neon_vaddvq_u8(vreinterpretq_u8_m128i(mtx[j])) ? 1 : 0; - res |= (tmp << j); - } - return res; -} - -static int _sse2neon_aggregate_equal_any_16x8(int la, int lb, __m128i mtx[16]) -{ - int res = 0; - int m = (1 << la) - 1; - uint16x8_t vec = - vtstq_u16(vdupq_n_u16(m), vld1q_u16(_sse2neon_cmpestr_mask16b)); - for (int j = 0; j < lb; j++) { - mtx[j] = vreinterpretq_m128i_u16( - vandq_u16(vec, vreinterpretq_u16_m128i(mtx[j]))); - mtx[j] = vreinterpretq_m128i_u16( - vshrq_n_u16(vreinterpretq_u16_m128i(mtx[j]), 15)); - int tmp = _sse2neon_vaddvq_u16(vreinterpretq_u16_m128i(mtx[j])) ? 1 : 0; - res |= (tmp << j); - } - return res; } +#if !defined(__ARM_FEATURE_CRYPTO) /* clang-format off */ -#define SSE2NEON_GENERATE_CMP_EQUAL_ANY(prefix) \ - prefix##IMPL(byte) \ - prefix##IMPL(word) -/* clang-format on */ - -SSE2NEON_GENERATE_CMP_EQUAL_ANY(SSE2NEON_CMP_EQUAL_ANY_) - -static int _sse2neon_aggregate_ranges_16x8(int la, int lb, __m128i mtx[16]) -{ - int res = 0; - int m = (1 << la) - 1; - uint16x8_t vec = - vtstq_u16(vdupq_n_u16(m), vld1q_u16(_sse2neon_cmpestr_mask16b)); - for (int j = 0; j < lb; j++) { - mtx[j] = vreinterpretq_m128i_u16( - vandq_u16(vec, vreinterpretq_u16_m128i(mtx[j]))); - mtx[j] = vreinterpretq_m128i_u16( - vshrq_n_u16(vreinterpretq_u16_m128i(mtx[j]), 15)); - __m128i tmp = vreinterpretq_m128i_u32( - vshrq_n_u32(vreinterpretq_u32_m128i(mtx[j]), 16)); - uint32x4_t vec_res = vandq_u32(vreinterpretq_u32_m128i(mtx[j]), - vreinterpretq_u32_m128i(tmp)); -#if defined(__aarch64__) || defined(_M_ARM64) - int t = vaddvq_u32(vec_res) ? 1 : 0; -#else - uint64x2_t sumh = vpaddlq_u32(vec_res); - int t = vgetq_lane_u64(sumh, 0) + vgetq_lane_u64(sumh, 1); -#endif - res |= (t << j); - } - return res; -} - -static int _sse2neon_aggregate_ranges_8x16(int la, int lb, __m128i mtx[16]) -{ - int res = 0; - int m = (1 << la) - 1; - uint8x8_t vec_mask = vld1_u8(_sse2neon_cmpestr_mask8b); - uint8x8_t t_lo = vtst_u8(vdup_n_u8(m & 0xff), vec_mask); - uint8x8_t t_hi = vtst_u8(vdup_n_u8(m >> 8), vec_mask); - uint8x16_t vec = vcombine_u8(t_lo, t_hi); - for (int j = 0; j < lb; j++) { - mtx[j] = vreinterpretq_m128i_u8( - vandq_u8(vec, vreinterpretq_u8_m128i(mtx[j]))); - mtx[j] = vreinterpretq_m128i_u8( - vshrq_n_u8(vreinterpretq_u8_m128i(mtx[j]), 7)); - __m128i tmp = vreinterpretq_m128i_u16( - vshrq_n_u16(vreinterpretq_u16_m128i(mtx[j]), 8)); - uint16x8_t vec_res = vandq_u16(vreinterpretq_u16_m128i(mtx[j]), - vreinterpretq_u16_m128i(tmp)); - int t = _sse2neon_vaddvq_u16(vec_res) ? 1 : 0; - res |= (t << j); - } - return res; -} - -#define SSE2NEON_CMP_RANGES_IS_BYTE 1 -#define SSE2NEON_CMP_RANGES_IS_WORD 0 - -/* clang-format off */ -#define SSE2NEON_GENERATE_CMP_RANGES(prefix) \ - prefix##IMPL(byte, uint, u, prefix##IS_BYTE) \ - prefix##IMPL(byte, int, s, prefix##IS_BYTE) \ - prefix##IMPL(word, uint, u, prefix##IS_WORD) \ - prefix##IMPL(word, int, s, prefix##IS_WORD) -/* clang-format on */ - -SSE2NEON_GENERATE_CMP_RANGES(SSE2NEON_CMP_RANGES_) - -#undef SSE2NEON_CMP_RANGES_IS_BYTE -#undef SSE2NEON_CMP_RANGES_IS_WORD - -static int _sse2neon_cmp_byte_equal_each(__m128i a, int la, __m128i b, int lb) -{ - uint8x16_t mtx = - vceqq_u8(vreinterpretq_u8_m128i(a), vreinterpretq_u8_m128i(b)); - int m0 = (la < lb) ? 0 : ((1 << la) - (1 << lb)); - int m1 = 0x10000 - (1 << la); - int tb = 0x10000 - (1 << lb); - uint8x8_t vec_mask, vec0_lo, vec0_hi, vec1_lo, vec1_hi; - uint8x8_t tmp_lo, tmp_hi, res_lo, res_hi; - vec_mask = vld1_u8(_sse2neon_cmpestr_mask8b); - vec0_lo = vtst_u8(vdup_n_u8(m0), vec_mask); - vec0_hi = vtst_u8(vdup_n_u8(m0 >> 8), vec_mask); - vec1_lo = vtst_u8(vdup_n_u8(m1), vec_mask); - vec1_hi = vtst_u8(vdup_n_u8(m1 >> 8), vec_mask); - tmp_lo = vtst_u8(vdup_n_u8(tb), vec_mask); - tmp_hi = vtst_u8(vdup_n_u8(tb >> 8), vec_mask); - - res_lo = vbsl_u8(vec0_lo, vdup_n_u8(0), vget_low_u8(mtx)); - res_hi = vbsl_u8(vec0_hi, vdup_n_u8(0), vget_high_u8(mtx)); - res_lo = vbsl_u8(vec1_lo, tmp_lo, res_lo); - res_hi = vbsl_u8(vec1_hi, tmp_hi, res_hi); - res_lo = vand_u8(res_lo, vec_mask); - res_hi = vand_u8(res_hi, vec_mask); - - int res = _sse2neon_vaddv_u8(res_lo) + (_sse2neon_vaddv_u8(res_hi) << 8); - return res; -} - -static int _sse2neon_cmp_word_equal_each(__m128i a, int la, __m128i b, int lb) -{ - uint16x8_t mtx = - vceqq_u16(vreinterpretq_u16_m128i(a), vreinterpretq_u16_m128i(b)); - int m0 = (la < lb) ? 0 : ((1 << la) - (1 << lb)); - int m1 = 0x100 - (1 << la); - int tb = 0x100 - (1 << lb); - uint16x8_t vec_mask = vld1q_u16(_sse2neon_cmpestr_mask16b); - uint16x8_t vec0 = vtstq_u16(vdupq_n_u16(m0), vec_mask); - uint16x8_t vec1 = vtstq_u16(vdupq_n_u16(m1), vec_mask); - uint16x8_t tmp = vtstq_u16(vdupq_n_u16(tb), vec_mask); - mtx = vbslq_u16(vec0, vdupq_n_u16(0), mtx); - mtx = vbslq_u16(vec1, tmp, mtx); - mtx = vandq_u16(mtx, vec_mask); - return _sse2neon_vaddvq_u16(mtx); -} - -#define SSE2NEON_AGGREGATE_EQUAL_ORDER_IS_UBYTE 1 -#define SSE2NEON_AGGREGATE_EQUAL_ORDER_IS_UWORD 0 - -#define SSE2NEON_AGGREGATE_EQUAL_ORDER_IMPL(size, number_of_lanes, data_type) \ - static int _sse2neon_aggregate_equal_ordered_##size##x##number_of_lanes( \ - int bound, int la, int lb, __m128i mtx[16]) \ - { \ - int res = 0; \ - int m1 = SSE2NEON_IIF(data_type)(0x10000, 0x100) - (1 << la); \ - uint##size##x8_t vec_mask = SSE2NEON_IIF(data_type)( \ - vld1_u##size(_sse2neon_cmpestr_mask##size##b), \ - vld1q_u##size(_sse2neon_cmpestr_mask##size##b)); \ - uint##size##x##number_of_lanes##_t vec1 = SSE2NEON_IIF(data_type)( \ - vcombine_u##size(vtst_u##size(vdup_n_u##size(m1), vec_mask), \ - vtst_u##size(vdup_n_u##size(m1 >> 8), vec_mask)), \ - vtstq_u##size(vdupq_n_u##size(m1), vec_mask)); \ - uint##size##x##number_of_lanes##_t vec_minusone = vdupq_n_u##size(-1); \ - uint##size##x##number_of_lanes##_t vec_zero = vdupq_n_u##size(0); \ - for (int j = 0; j < lb; j++) { \ - mtx[j] = vreinterpretq_m128i_u##size(vbslq_u##size( \ - vec1, vec_minusone, vreinterpretq_u##size##_m128i(mtx[j]))); \ - } \ - for (int j = lb; j < bound; j++) { \ - mtx[j] = vreinterpretq_m128i_u##size( \ - vbslq_u##size(vec1, vec_minusone, vec_zero)); \ - } \ - unsigned SSE2NEON_IIF(data_type)(char, short) *ptr = \ - (unsigned SSE2NEON_IIF(data_type)(char, short) *) mtx; \ - for (int i = 0; i < bound; i++) { \ - int val = 1; \ - for (int j = 0, k = i; j < bound - i && k < bound; j++, k++) \ - val &= ptr[k * bound + j]; \ - res += val << i; \ - } \ - return res; \ - } - -/* clang-format off */ -#define SSE2NEON_GENERATE_AGGREGATE_EQUAL_ORDER(prefix) \ - prefix##IMPL(8, 16, prefix##IS_UBYTE) \ - prefix##IMPL(16, 8, prefix##IS_UWORD) -/* clang-format on */ - -SSE2NEON_GENERATE_AGGREGATE_EQUAL_ORDER(SSE2NEON_AGGREGATE_EQUAL_ORDER_) - -#undef SSE2NEON_AGGREGATE_EQUAL_ORDER_IS_UBYTE -#undef SSE2NEON_AGGREGATE_EQUAL_ORDER_IS_UWORD - -/* clang-format off */ -#define SSE2NEON_GENERATE_CMP_EQUAL_ORDERED(prefix) \ - prefix##IMPL(byte) \ - prefix##IMPL(word) -/* clang-format on */ - -SSE2NEON_GENERATE_CMP_EQUAL_ORDERED(SSE2NEON_CMP_EQUAL_ORDERED_) - -#define SSE2NEON_CMPESTR_LIST \ - _(CMP_UBYTE_EQUAL_ANY, cmp_byte_equal_any) \ - _(CMP_UWORD_EQUAL_ANY, cmp_word_equal_any) \ - _(CMP_SBYTE_EQUAL_ANY, cmp_byte_equal_any) \ - _(CMP_SWORD_EQUAL_ANY, cmp_word_equal_any) \ - _(CMP_UBYTE_RANGES, cmp_ubyte_ranges) \ - _(CMP_UWORD_RANGES, cmp_uword_ranges) \ - _(CMP_SBYTE_RANGES, cmp_sbyte_ranges) \ - _(CMP_SWORD_RANGES, cmp_sword_ranges) \ - _(CMP_UBYTE_EQUAL_EACH, cmp_byte_equal_each) \ - _(CMP_UWORD_EQUAL_EACH, cmp_word_equal_each) \ - _(CMP_SBYTE_EQUAL_EACH, cmp_byte_equal_each) \ - _(CMP_SWORD_EQUAL_EACH, cmp_word_equal_each) \ - _(CMP_UBYTE_EQUAL_ORDERED, cmp_byte_equal_ordered) \ - _(CMP_UWORD_EQUAL_ORDERED, cmp_word_equal_ordered) \ - _(CMP_SBYTE_EQUAL_ORDERED, cmp_byte_equal_ordered) \ - _(CMP_SWORD_EQUAL_ORDERED, cmp_word_equal_ordered) - -enum { -#define _(name, func_suffix) name, - SSE2NEON_CMPESTR_LIST -#undef _ -}; -typedef int (*cmpestr_func_t)(__m128i a, int la, __m128i b, int lb); -static cmpestr_func_t _sse2neon_cmpfunc_table[] = { -#define _(name, func_suffix) _sse2neon_##func_suffix, - SSE2NEON_CMPESTR_LIST -#undef _ -}; - -FORCE_INLINE int _sse2neon_sido_negative(int res, int lb, int imm8, int bound) -{ - switch (imm8 & 0x30) { - case _SIDD_NEGATIVE_POLARITY: - res ^= 0xffffffff; - break; - case _SIDD_MASKED_NEGATIVE_POLARITY: - res ^= (1 << lb) - 1; - break; - default: - break; - } - - return res & ((bound == 8) ? 0xFF : 0xFFFF); -} - -FORCE_INLINE int _sse2neon_clz(unsigned int x) -{ -#ifdef _MSC_VER - unsigned long cnt = 0; - if (_BitScanReverse(&cnt, x)) - return 31 - cnt; - return 32; -#else - return x != 0 ? __builtin_clz(x) : 32; -#endif -} - -FORCE_INLINE int _sse2neon_ctz(unsigned int x) -{ -#ifdef _MSC_VER - unsigned long cnt = 0; - if (_BitScanForward(&cnt, x)) - return cnt; - return 32; -#else - return x != 0 ? __builtin_ctz(x) : 32; -#endif -} - -FORCE_INLINE int _sse2neon_ctzll(unsigned long long x) -{ -#ifdef _MSC_VER - unsigned long cnt; -#if defined(SSE2NEON_HAS_BITSCAN64) - if (_BitScanForward64(&cnt, x)) - return (int) (cnt); -#else - if (_BitScanForward(&cnt, (unsigned long) (x))) - return (int) cnt; - if (_BitScanForward(&cnt, (unsigned long) (x >> 32))) - return (int) (cnt + 32); -#endif /* SSE2NEON_HAS_BITSCAN64 */ - return 64; -#else /* assume GNU compatible compilers */ - return x != 0 ? __builtin_ctzll(x) : 64; -#endif -} - -#define SSE2NEON_MIN(x, y) (x) < (y) ? (x) : (y) - -#define SSE2NEON_CMPSTR_SET_UPPER(var, imm) \ - const int var = (imm & 0x01) ? 8 : 16 - -#define SSE2NEON_CMPESTRX_LEN_PAIR(a, b, la, lb) \ - int tmp1 = la ^ (la >> 31); \ - la = tmp1 - (la >> 31); \ - int tmp2 = lb ^ (lb >> 31); \ - lb = tmp2 - (lb >> 31); \ - la = SSE2NEON_MIN(la, bound); \ - lb = SSE2NEON_MIN(lb, bound) - -// Compare all pairs of character in string a and b, -// then aggregate the result. -// As the only difference of PCMPESTR* and PCMPISTR* is the way to calculate the -// length of string, we use SSE2NEON_CMP{I,E}STRX_GET_LEN to get the length of -// string a and b. -#define SSE2NEON_COMP_AGG(a, b, la, lb, imm8, IE) \ - SSE2NEON_CMPSTR_SET_UPPER(bound, imm8); \ - SSE2NEON_##IE##_LEN_PAIR(a, b, la, lb); \ - int r2 = (_sse2neon_cmpfunc_table[imm8 & 0x0f])(a, la, b, lb); \ - r2 = _sse2neon_sido_negative(r2, lb, imm8, bound) - -#define SSE2NEON_CMPSTR_GENERATE_INDEX(r2, bound, imm8) \ - return (r2 == 0) ? bound \ - : ((imm8 & 0x40) ? (31 - _sse2neon_clz(r2)) \ - : _sse2neon_ctz(r2)) - -#define SSE2NEON_CMPSTR_GENERATE_MASK(dst) \ - __m128i dst = vreinterpretq_m128i_u8(vdupq_n_u8(0)); \ - if (imm8 & 0x40) { \ - if (bound == 8) { \ - uint16x8_t tmp = vtstq_u16(vdupq_n_u16(r2), \ - vld1q_u16(_sse2neon_cmpestr_mask16b)); \ - dst = vreinterpretq_m128i_u16(vbslq_u16( \ - tmp, vdupq_n_u16(-1), vreinterpretq_u16_m128i(dst))); \ - } else { \ - uint8x16_t vec_r2 = \ - vcombine_u8(vdup_n_u8(r2), vdup_n_u8(r2 >> 8)); \ - uint8x16_t tmp = \ - vtstq_u8(vec_r2, vld1q_u8(_sse2neon_cmpestr_mask8b)); \ - dst = vreinterpretq_m128i_u8( \ - vbslq_u8(tmp, vdupq_n_u8(-1), vreinterpretq_u8_m128i(dst))); \ - } \ - } else { \ - if (bound == 16) { \ - dst = vreinterpretq_m128i_u16( \ - vsetq_lane_u16(r2 & 0xffff, vreinterpretq_u16_m128i(dst), 0)); \ - } else { \ - dst = vreinterpretq_m128i_u8( \ - vsetq_lane_u8(r2 & 0xff, vreinterpretq_u8_m128i(dst), 0)); \ - } \ - } \ - return dst - -// Compare packed strings in a and b with lengths la and lb using the control -// in imm8, and returns 1 if b did not contain a null character and the -// resulting mask was zero, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestra -FORCE_INLINE int _mm_cmpestra(__m128i a, - int la, - __m128i b, - int lb, - const int imm8) -{ - int lb_cpy = lb; - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPESTRX); - return !r2 & (lb_cpy > bound); -} - -// Compare packed strings in a and b with lengths la and lb using the control in -// imm8, and returns 1 if the resulting mask was non-zero, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestrc -FORCE_INLINE int _mm_cmpestrc(__m128i a, - int la, - __m128i b, - int lb, - const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPESTRX); - return r2 != 0; -} - -// Compare packed strings in a and b with lengths la and lb using the control -// in imm8, and store the generated index in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestri -FORCE_INLINE int _mm_cmpestri(__m128i a, - int la, - __m128i b, - int lb, - const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPESTRX); - SSE2NEON_CMPSTR_GENERATE_INDEX(r2, bound, imm8); -} - -// Compare packed strings in a and b with lengths la and lb using the control -// in imm8, and store the generated mask in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestrm -FORCE_INLINE __m128i -_mm_cmpestrm(__m128i a, int la, __m128i b, int lb, const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPESTRX); - SSE2NEON_CMPSTR_GENERATE_MASK(dst); -} - -// Compare packed strings in a and b with lengths la and lb using the control in -// imm8, and returns bit 0 of the resulting bit mask. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestro -FORCE_INLINE int _mm_cmpestro(__m128i a, - int la, - __m128i b, - int lb, - const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPESTRX); - return r2 & 1; -} - -// Compare packed strings in a and b with lengths la and lb using the control in -// imm8, and returns 1 if any character in a was null, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestrs -FORCE_INLINE int _mm_cmpestrs(__m128i a, - int la, - __m128i b, - int lb, - const int imm8) -{ - (void) a; - (void) b; - (void) lb; - SSE2NEON_CMPSTR_SET_UPPER(bound, imm8); - return la <= (bound - 1); -} - -// Compare packed strings in a and b with lengths la and lb using the control in -// imm8, and returns 1 if any character in b was null, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpestrz -FORCE_INLINE int _mm_cmpestrz(__m128i a, - int la, - __m128i b, - int lb, - const int imm8) -{ - (void) a; - (void) b; - (void) la; - SSE2NEON_CMPSTR_SET_UPPER(bound, imm8); - return lb <= (bound - 1); -} - -#define SSE2NEON_CMPISTRX_LENGTH(str, len, imm8) \ - do { \ - if (imm8 & 0x01) { \ - uint16x8_t equal_mask_##str = \ - vceqq_u16(vreinterpretq_u16_m128i(str), vdupq_n_u16(0)); \ - uint8x8_t res_##str = vshrn_n_u16(equal_mask_##str, 4); \ - uint64_t matches_##str = \ - vget_lane_u64(vreinterpret_u64_u8(res_##str), 0); \ - len = _sse2neon_ctzll(matches_##str) >> 3; \ - } else { \ - uint16x8_t equal_mask_##str = vreinterpretq_u16_u8( \ - vceqq_u8(vreinterpretq_u8_m128i(str), vdupq_n_u8(0))); \ - uint8x8_t res_##str = vshrn_n_u16(equal_mask_##str, 4); \ - uint64_t matches_##str = \ - vget_lane_u64(vreinterpret_u64_u8(res_##str), 0); \ - len = _sse2neon_ctzll(matches_##str) >> 2; \ - } \ - } while (0) - -#define SSE2NEON_CMPISTRX_LEN_PAIR(a, b, la, lb) \ - int la, lb; \ - do { \ - SSE2NEON_CMPISTRX_LENGTH(a, la, imm8); \ - SSE2NEON_CMPISTRX_LENGTH(b, lb, imm8); \ - } while (0) - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and returns 1 if b did not contain a null character and the resulting -// mask was zero, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistra -FORCE_INLINE int _mm_cmpistra(__m128i a, __m128i b, const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPISTRX); - return !r2 & (lb >= bound); -} - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and returns 1 if the resulting mask was non-zero, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistrc -FORCE_INLINE int _mm_cmpistrc(__m128i a, __m128i b, const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPISTRX); - return r2 != 0; -} - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and store the generated index in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistri -FORCE_INLINE int _mm_cmpistri(__m128i a, __m128i b, const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPISTRX); - SSE2NEON_CMPSTR_GENERATE_INDEX(r2, bound, imm8); -} - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and store the generated mask in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistrm -FORCE_INLINE __m128i _mm_cmpistrm(__m128i a, __m128i b, const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPISTRX); - SSE2NEON_CMPSTR_GENERATE_MASK(dst); -} - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and returns bit 0 of the resulting bit mask. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistro -FORCE_INLINE int _mm_cmpistro(__m128i a, __m128i b, const int imm8) -{ - SSE2NEON_COMP_AGG(a, b, la, lb, imm8, CMPISTRX); - return r2 & 1; -} - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and returns 1 if any character in a was null, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistrs -FORCE_INLINE int _mm_cmpistrs(__m128i a, __m128i b, const int imm8) -{ - (void) b; - SSE2NEON_CMPSTR_SET_UPPER(bound, imm8); - int la; - SSE2NEON_CMPISTRX_LENGTH(a, la, imm8); - return la <= (bound - 1); -} - -// Compare packed strings with implicit lengths in a and b using the control in -// imm8, and returns 1 if any character in b was null, and 0 otherwise. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cmpistrz -FORCE_INLINE int _mm_cmpistrz(__m128i a, __m128i b, const int imm8) -{ - (void) a; - SSE2NEON_CMPSTR_SET_UPPER(bound, imm8); - int lb; - SSE2NEON_CMPISTRX_LENGTH(b, lb, imm8); - return lb <= (bound - 1); -} - -// Compares the 2 signed 64-bit integers in a and the 2 signed 64-bit integers -// in b for greater than. -FORCE_INLINE __m128i _mm_cmpgt_epi64(__m128i a, __m128i b) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - return vreinterpretq_m128i_u64( - vcgtq_s64(vreinterpretq_s64_m128i(a), vreinterpretq_s64_m128i(b))); -#else - return vreinterpretq_m128i_s64(vshrq_n_s64( - vqsubq_s64(vreinterpretq_s64_m128i(b), vreinterpretq_s64_m128i(a)), - 63)); -#endif -} - -// Starting with the initial value in crc, accumulates a CRC32 value for -// unsigned 16-bit integer v, and stores the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_crc32_u16 -FORCE_INLINE uint32_t _mm_crc32_u16(uint32_t crc, uint16_t v) -{ -#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) - __asm__ __volatile__("crc32ch %w[c], %w[c], %w[v]\n\t" - : [c] "+r"(crc) - : [v] "r"(v)); -#elif ((__ARM_ARCH == 8) && defined(__ARM_FEATURE_CRC32)) || \ - (defined(_M_ARM64) && !defined(__clang__)) - crc = __crc32ch(crc, v); -#else - crc = _mm_crc32_u8(crc, v & 0xff); - crc = _mm_crc32_u8(crc, (v >> 8) & 0xff); -#endif - return crc; -} - -// Starting with the initial value in crc, accumulates a CRC32 value for -// unsigned 32-bit integer v, and stores the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_crc32_u32 -FORCE_INLINE uint32_t _mm_crc32_u32(uint32_t crc, uint32_t v) -{ -#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) - __asm__ __volatile__("crc32cw %w[c], %w[c], %w[v]\n\t" - : [c] "+r"(crc) - : [v] "r"(v)); -#elif ((__ARM_ARCH == 8) && defined(__ARM_FEATURE_CRC32)) || \ - (defined(_M_ARM64) && !defined(__clang__)) - crc = __crc32cw(crc, v); -#else - crc = _mm_crc32_u16(crc, v & 0xffff); - crc = _mm_crc32_u16(crc, (v >> 16) & 0xffff); -#endif - return crc; -} - -// Starting with the initial value in crc, accumulates a CRC32 value for -// unsigned 64-bit integer v, and stores the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_crc32_u64 -FORCE_INLINE uint64_t _mm_crc32_u64(uint64_t crc, uint64_t v) -{ -#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) - __asm__ __volatile__("crc32cx %w[c], %w[c], %x[v]\n\t" - : [c] "+r"(crc) - : [v] "r"(v)); -#elif (defined(_M_ARM64) && !defined(__clang__)) - crc = __crc32cd((uint32_t) crc, v); -#else - crc = _mm_crc32_u32((uint32_t) (crc), v & 0xffffffff); - crc = _mm_crc32_u32((uint32_t) (crc), (v >> 32) & 0xffffffff); -#endif - return crc; -} - -// Starting with the initial value in crc, accumulates a CRC32 value for -// unsigned 8-bit integer v, and stores the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_crc32_u8 -FORCE_INLINE uint32_t _mm_crc32_u8(uint32_t crc, uint8_t v) -{ -#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) - __asm__ __volatile__("crc32cb %w[c], %w[c], %w[v]\n\t" - : [c] "+r"(crc) - : [v] "r"(v)); -#elif ((__ARM_ARCH == 8) && defined(__ARM_FEATURE_CRC32)) || \ - (defined(_M_ARM64) && !defined(__clang__)) - crc = __crc32cb(crc, v); -#else - crc ^= v; - for (int bit = 0; bit < 8; bit++) { - if (crc & 1) - crc = (crc >> 1) ^ UINT32_C(0x82f63b78); - else - crc = (crc >> 1); - } -#endif - return crc; -} - -/* AES */ - -#if !defined(__ARM_FEATURE_CRYPTO) && (!defined(_M_ARM64) || defined(__clang__)) -/* clang-format off */ -#define SSE2NEON_AES_SBOX(w) \ +#define SSE2NEON_AES_DATA(w) \ { \ w(0x63), w(0x7c), w(0x77), w(0x7b), w(0xf2), w(0x6b), w(0x6f), \ w(0xc5), w(0x30), w(0x01), w(0x67), w(0x2b), w(0xfe), w(0xd7), \ @@ -8531,114 +7204,53 @@ FORCE_INLINE uint32_t _mm_crc32_u8(uint32_t crc, uint8_t v) w(0xe6), w(0x42), w(0x68), w(0x41), w(0x99), w(0x2d), w(0x0f), \ w(0xb0), w(0x54), w(0xbb), w(0x16) \ } -#define SSE2NEON_AES_RSBOX(w) \ - { \ - w(0x52), w(0x09), w(0x6a), w(0xd5), w(0x30), w(0x36), w(0xa5), \ - w(0x38), w(0xbf), w(0x40), w(0xa3), w(0x9e), w(0x81), w(0xf3), \ - w(0xd7), w(0xfb), w(0x7c), w(0xe3), w(0x39), w(0x82), w(0x9b), \ - w(0x2f), w(0xff), w(0x87), w(0x34), w(0x8e), w(0x43), w(0x44), \ - w(0xc4), w(0xde), w(0xe9), w(0xcb), w(0x54), w(0x7b), w(0x94), \ - w(0x32), w(0xa6), w(0xc2), w(0x23), w(0x3d), w(0xee), w(0x4c), \ - w(0x95), w(0x0b), w(0x42), w(0xfa), w(0xc3), w(0x4e), w(0x08), \ - w(0x2e), w(0xa1), w(0x66), w(0x28), w(0xd9), w(0x24), w(0xb2), \ - w(0x76), w(0x5b), w(0xa2), w(0x49), w(0x6d), w(0x8b), w(0xd1), \ - w(0x25), w(0x72), w(0xf8), w(0xf6), w(0x64), w(0x86), w(0x68), \ - w(0x98), w(0x16), w(0xd4), w(0xa4), w(0x5c), w(0xcc), w(0x5d), \ - w(0x65), w(0xb6), w(0x92), w(0x6c), w(0x70), w(0x48), w(0x50), \ - w(0xfd), w(0xed), w(0xb9), w(0xda), w(0x5e), w(0x15), w(0x46), \ - w(0x57), w(0xa7), w(0x8d), w(0x9d), w(0x84), w(0x90), w(0xd8), \ - w(0xab), w(0x00), w(0x8c), w(0xbc), w(0xd3), w(0x0a), w(0xf7), \ - w(0xe4), w(0x58), w(0x05), w(0xb8), w(0xb3), w(0x45), w(0x06), \ - w(0xd0), w(0x2c), w(0x1e), w(0x8f), w(0xca), w(0x3f), w(0x0f), \ - w(0x02), w(0xc1), w(0xaf), w(0xbd), w(0x03), w(0x01), w(0x13), \ - w(0x8a), w(0x6b), w(0x3a), w(0x91), w(0x11), w(0x41), w(0x4f), \ - w(0x67), w(0xdc), w(0xea), w(0x97), w(0xf2), w(0xcf), w(0xce), \ - w(0xf0), w(0xb4), w(0xe6), w(0x73), w(0x96), w(0xac), w(0x74), \ - w(0x22), w(0xe7), w(0xad), w(0x35), w(0x85), w(0xe2), w(0xf9), \ - w(0x37), w(0xe8), w(0x1c), w(0x75), w(0xdf), w(0x6e), w(0x47), \ - w(0xf1), w(0x1a), w(0x71), w(0x1d), w(0x29), w(0xc5), w(0x89), \ - w(0x6f), w(0xb7), w(0x62), w(0x0e), w(0xaa), w(0x18), w(0xbe), \ - w(0x1b), w(0xfc), w(0x56), w(0x3e), w(0x4b), w(0xc6), w(0xd2), \ - w(0x79), w(0x20), w(0x9a), w(0xdb), w(0xc0), w(0xfe), w(0x78), \ - w(0xcd), w(0x5a), w(0xf4), w(0x1f), w(0xdd), w(0xa8), w(0x33), \ - w(0x88), w(0x07), w(0xc7), w(0x31), w(0xb1), w(0x12), w(0x10), \ - w(0x59), w(0x27), w(0x80), w(0xec), w(0x5f), w(0x60), w(0x51), \ - w(0x7f), w(0xa9), w(0x19), w(0xb5), w(0x4a), w(0x0d), w(0x2d), \ - w(0xe5), w(0x7a), w(0x9f), w(0x93), w(0xc9), w(0x9c), w(0xef), \ - w(0xa0), w(0xe0), w(0x3b), w(0x4d), w(0xae), w(0x2a), w(0xf5), \ - w(0xb0), w(0xc8), w(0xeb), w(0xbb), w(0x3c), w(0x83), w(0x53), \ - w(0x99), w(0x61), w(0x17), w(0x2b), w(0x04), w(0x7e), w(0xba), \ - w(0x77), w(0xd6), w(0x26), w(0xe1), w(0x69), w(0x14), w(0x63), \ - w(0x55), w(0x21), w(0x0c), w(0x7d) \ - } /* clang-format on */ /* X Macro trick. See https://en.wikipedia.org/wiki/X_Macro */ #define SSE2NEON_AES_H0(x) (x) -static const uint8_t _sse2neon_sbox[256] = SSE2NEON_AES_SBOX(SSE2NEON_AES_H0); -static const uint8_t _sse2neon_rsbox[256] = SSE2NEON_AES_RSBOX(SSE2NEON_AES_H0); +static const uint8_t SSE2NEON_sbox[256] = SSE2NEON_AES_DATA(SSE2NEON_AES_H0); #undef SSE2NEON_AES_H0 -/* x_time function and matrix multiply function */ -#if !defined(__aarch64__) && !defined(_M_ARM64) -#define SSE2NEON_XT(x) (((x) << 1) ^ ((((x) >> 7) & 1) * 0x1b)) -#define SSE2NEON_MULTIPLY(x, y) \ - (((y & 1) * x) ^ ((y >> 1 & 1) * SSE2NEON_XT(x)) ^ \ - ((y >> 2 & 1) * SSE2NEON_XT(SSE2NEON_XT(x))) ^ \ - ((y >> 3 & 1) * SSE2NEON_XT(SSE2NEON_XT(SSE2NEON_XT(x)))) ^ \ - ((y >> 4 & 1) * SSE2NEON_XT(SSE2NEON_XT(SSE2NEON_XT(SSE2NEON_XT(x)))))) -#endif - -// In the absence of crypto extensions, implement aesenc using regular NEON +// In the absence of crypto extensions, implement aesenc using regular neon // intrinsics instead. See: // https://www.workofard.com/2017/01/accelerated-aes-for-the-arm64-linux-kernel/ // https://www.workofard.com/2017/07/ghash-for-low-end-cores/ and -// for more information. -FORCE_INLINE __m128i _mm_aesenc_si128(__m128i a, __m128i RoundKey) +// https://github.com/ColinIanKing/linux-next-mirror/blob/b5f466091e130caaf0735976648f72bd5e09aa84/crypto/aegis128-neon-inner.c#L52 +// for more information Reproduced with permission of the author. +FORCE_INLINE __m128i _mm_aesenc_si128(__m128i EncBlock, __m128i RoundKey) { -#if defined(__aarch64__) || defined(_M_ARM64) - static const uint8_t shift_rows[] = { - 0x0, 0x5, 0xa, 0xf, 0x4, 0x9, 0xe, 0x3, - 0x8, 0xd, 0x2, 0x7, 0xc, 0x1, 0x6, 0xb, - }; - static const uint8_t ror32by8[] = { - 0x1, 0x2, 0x3, 0x0, 0x5, 0x6, 0x7, 0x4, - 0x9, 0xa, 0xb, 0x8, 0xd, 0xe, 0xf, 0xc, - }; +#if defined(__aarch64__) + static const uint8_t shift_rows[] = {0x0, 0x5, 0xa, 0xf, 0x4, 0x9, + 0xe, 0x3, 0x8, 0xd, 0x2, 0x7, + 0xc, 0x1, 0x6, 0xb}; + static const uint8_t ror32by8[] = {0x1, 0x2, 0x3, 0x0, 0x5, 0x6, 0x7, 0x4, + 0x9, 0xa, 0xb, 0x8, 0xd, 0xe, 0xf, 0xc}; uint8x16_t v; - uint8x16_t w = vreinterpretq_u8_m128i(a); + uint8x16_t w = vreinterpretq_u8_m128i(EncBlock); - /* shift rows */ + // shift rows w = vqtbl1q_u8(w, vld1q_u8(shift_rows)); - /* sub bytes */ - // Here, we separate the whole 256-bytes table into 4 64-bytes tables, and - // look up each of the table. After each lookup, we load the next table - // which locates at the next 64-bytes. In the meantime, the index in the - // table would be smaller than it was, so the index parameters of - // `vqtbx4q_u8()` need to be added the same constant as the loaded tables. - v = vqtbl4q_u8(_sse2neon_vld1q_u8_x4(_sse2neon_sbox), w); - // 'w-0x40' equals to 'vsubq_u8(w, vdupq_n_u8(0x40))' - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0x40), w - 0x40); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0x80), w - 0x80); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0xc0), w - 0xc0); + // sub bytes + v = vqtbl4q_u8(_sse2neon_vld1q_u8_x4(SSE2NEON_sbox), w); + v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(SSE2NEON_sbox + 0x40), w - 0x40); + v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(SSE2NEON_sbox + 0x80), w - 0x80); + v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(SSE2NEON_sbox + 0xc0), w - 0xc0); - /* mix columns */ - w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) & 0x1b); + // mix columns + w = (v << 1) ^ (uint8x16_t)(((int8x16_t) v >> 7) & 0x1b); w ^= (uint8x16_t) vrev32q_u16((uint16x8_t) v); w ^= vqtbl1q_u8(v ^ w, vld1q_u8(ror32by8)); - /* add round key */ + // add round key return vreinterpretq_m128i_u8(w) ^ RoundKey; -#else /* ARMv7-A implementation for a table-based AES */ -#define SSE2NEON_AES_B2W(b0, b1, b2, b3) \ - (((uint32_t) (b3) << 24) | ((uint32_t) (b2) << 16) | \ - ((uint32_t) (b1) << 8) | (uint32_t) (b0)) -// muliplying 'x' by 2 in GF(2^8) +#else /* ARMv7-A NEON implementation */ +#define SSE2NEON_AES_B2W(b0, b1, b2, b3) \ + (((uint32_t)(b3) << 24) | ((uint32_t)(b2) << 16) | ((uint32_t)(b1) << 8) | \ + (b0)) #define SSE2NEON_AES_F2(x) ((x << 1) ^ (((x >> 7) & 1) * 0x011b /* WPOLY */)) -// muliplying 'x' by 3 in GF(2^8) #define SSE2NEON_AES_F3(x) (SSE2NEON_AES_F2(x) ^ x) #define SSE2NEON_AES_U0(p) \ SSE2NEON_AES_B2W(SSE2NEON_AES_F2(p), p, p, SSE2NEON_AES_F3(p)) @@ -8648,14 +7260,11 @@ FORCE_INLINE __m128i _mm_aesenc_si128(__m128i a, __m128i RoundKey) SSE2NEON_AES_B2W(p, SSE2NEON_AES_F3(p), SSE2NEON_AES_F2(p), p) #define SSE2NEON_AES_U3(p) \ SSE2NEON_AES_B2W(p, p, SSE2NEON_AES_F3(p), SSE2NEON_AES_F2(p)) - - // this generates a table containing every possible permutation of - // shift_rows() and sub_bytes() with mix_columns(). static const uint32_t ALIGN_STRUCT(16) aes_table[4][256] = { - SSE2NEON_AES_SBOX(SSE2NEON_AES_U0), - SSE2NEON_AES_SBOX(SSE2NEON_AES_U1), - SSE2NEON_AES_SBOX(SSE2NEON_AES_U2), - SSE2NEON_AES_SBOX(SSE2NEON_AES_U3), + SSE2NEON_AES_DATA(SSE2NEON_AES_U0), + SSE2NEON_AES_DATA(SSE2NEON_AES_U1), + SSE2NEON_AES_DATA(SSE2NEON_AES_U2), + SSE2NEON_AES_DATA(SSE2NEON_AES_U3), }; #undef SSE2NEON_AES_B2W #undef SSE2NEON_AES_F2 @@ -8665,15 +7274,11 @@ FORCE_INLINE __m128i _mm_aesenc_si128(__m128i a, __m128i RoundKey) #undef SSE2NEON_AES_U2 #undef SSE2NEON_AES_U3 - uint32_t x0 = _mm_cvtsi128_si32(a); // get a[31:0] - uint32_t x1 = - _mm_cvtsi128_si32(_mm_shuffle_epi32(a, 0x55)); // get a[63:32] - uint32_t x2 = - _mm_cvtsi128_si32(_mm_shuffle_epi32(a, 0xAA)); // get a[95:64] - uint32_t x3 = - _mm_cvtsi128_si32(_mm_shuffle_epi32(a, 0xFF)); // get a[127:96] + uint32_t x0 = _mm_cvtsi128_si32(EncBlock); + uint32_t x1 = _mm_cvtsi128_si32(_mm_shuffle_epi32(EncBlock, 0x55)); + uint32_t x2 = _mm_cvtsi128_si32(_mm_shuffle_epi32(EncBlock, 0xAA)); + uint32_t x3 = _mm_cvtsi128_si32(_mm_shuffle_epi32(EncBlock, 0xFF)); - // finish the modulo addition step in mix_columns() __m128i out = _mm_set_epi32( (aes_table[0][x3 & 0xff] ^ aes_table[1][(x0 >> 8) & 0xff] ^ aes_table[2][(x1 >> 16) & 0xff] ^ aes_table[3][x2 >> 24]), @@ -8688,254 +7293,54 @@ FORCE_INLINE __m128i _mm_aesenc_si128(__m128i a, __m128i RoundKey) #endif } -// Perform one round of an AES decryption flow on data (state) in a using the -// round key in RoundKey, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesdec_si128 -FORCE_INLINE __m128i _mm_aesdec_si128(__m128i a, __m128i RoundKey) -{ -#if defined(__aarch64__) - static const uint8_t inv_shift_rows[] = { - 0x0, 0xd, 0xa, 0x7, 0x4, 0x1, 0xe, 0xb, - 0x8, 0x5, 0x2, 0xf, 0xc, 0x9, 0x6, 0x3, - }; - static const uint8_t ror32by8[] = { - 0x1, 0x2, 0x3, 0x0, 0x5, 0x6, 0x7, 0x4, - 0x9, 0xa, 0xb, 0x8, 0xd, 0xe, 0xf, 0xc, - }; - - uint8x16_t v; - uint8x16_t w = vreinterpretq_u8_m128i(a); - - // inverse shift rows - w = vqtbl1q_u8(w, vld1q_u8(inv_shift_rows)); - - // inverse sub bytes - v = vqtbl4q_u8(_sse2neon_vld1q_u8_x4(_sse2neon_rsbox), w); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0x40), w - 0x40); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0x80), w - 0x80); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0xc0), w - 0xc0); - - // inverse mix columns - // multiplying 'v' by 4 in GF(2^8) - w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) & 0x1b); - w = (w << 1) ^ (uint8x16_t) (((int8x16_t) w >> 7) & 0x1b); - v ^= w; - v ^= (uint8x16_t) vrev32q_u16((uint16x8_t) w); - - w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) & - 0x1b); // muliplying 'v' by 2 in GF(2^8) - w ^= (uint8x16_t) vrev32q_u16((uint16x8_t) v); - w ^= vqtbl1q_u8(v ^ w, vld1q_u8(ror32by8)); - - // add round key - return vreinterpretq_m128i_u8(w) ^ RoundKey; - -#else /* ARMv7-A NEON implementation */ - /* FIXME: optimized for NEON */ - uint8_t i, e, f, g, h, v[4][4]; - uint8_t *_a = (uint8_t *) &a; - for (i = 0; i < 16; ++i) { - v[((i / 4) + (i % 4)) % 4][i % 4] = _sse2neon_rsbox[_a[i]]; - } - - // inverse mix columns - for (i = 0; i < 4; ++i) { - e = v[i][0]; - f = v[i][1]; - g = v[i][2]; - h = v[i][3]; - - v[i][0] = SSE2NEON_MULTIPLY(e, 0x0e) ^ SSE2NEON_MULTIPLY(f, 0x0b) ^ - SSE2NEON_MULTIPLY(g, 0x0d) ^ SSE2NEON_MULTIPLY(h, 0x09); - v[i][1] = SSE2NEON_MULTIPLY(e, 0x09) ^ SSE2NEON_MULTIPLY(f, 0x0e) ^ - SSE2NEON_MULTIPLY(g, 0x0b) ^ SSE2NEON_MULTIPLY(h, 0x0d); - v[i][2] = SSE2NEON_MULTIPLY(e, 0x0d) ^ SSE2NEON_MULTIPLY(f, 0x09) ^ - SSE2NEON_MULTIPLY(g, 0x0e) ^ SSE2NEON_MULTIPLY(h, 0x0b); - v[i][3] = SSE2NEON_MULTIPLY(e, 0x0b) ^ SSE2NEON_MULTIPLY(f, 0x0d) ^ - SSE2NEON_MULTIPLY(g, 0x09) ^ SSE2NEON_MULTIPLY(h, 0x0e); - } - - return vreinterpretq_m128i_u8(vld1q_u8((uint8_t *) v)) ^ RoundKey; -#endif -} - // Perform the last round of an AES encryption flow on data (state) in a using // the round key in RoundKey, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesenclast_si128 +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_aesenclast_si128 FORCE_INLINE __m128i _mm_aesenclast_si128(__m128i a, __m128i RoundKey) { -#if defined(__aarch64__) - static const uint8_t shift_rows[] = { - 0x0, 0x5, 0xa, 0xf, 0x4, 0x9, 0xe, 0x3, - 0x8, 0xd, 0x2, 0x7, 0xc, 0x1, 0x6, 0xb, - }; - - uint8x16_t v; - uint8x16_t w = vreinterpretq_u8_m128i(a); - - // shift rows - w = vqtbl1q_u8(w, vld1q_u8(shift_rows)); - - // sub bytes - v = vqtbl4q_u8(_sse2neon_vld1q_u8_x4(_sse2neon_sbox), w); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0x40), w - 0x40); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0x80), w - 0x80); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0xc0), w - 0xc0); - - // add round key - return vreinterpretq_m128i_u8(v) ^ RoundKey; - -#else /* ARMv7-A implementation */ - uint8_t v[16] = { - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 0)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 5)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 10)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 15)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 4)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 9)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 14)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 3)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 8)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 13)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 2)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 7)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 12)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 1)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 6)], - _sse2neon_sbox[vgetq_lane_u8(vreinterpretq_u8_m128i(a), 11)], - }; - - return vreinterpretq_m128i_u8(vld1q_u8(v)) ^ RoundKey; -#endif -} - -// Perform the last round of an AES decryption flow on data (state) in a using -// the round key in RoundKey, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesdeclast_si128 -FORCE_INLINE __m128i _mm_aesdeclast_si128(__m128i a, __m128i RoundKey) -{ -#if defined(__aarch64__) - static const uint8_t inv_shift_rows[] = { - 0x0, 0xd, 0xa, 0x7, 0x4, 0x1, 0xe, 0xb, - 0x8, 0x5, 0x2, 0xf, 0xc, 0x9, 0x6, 0x3, - }; - - uint8x16_t v; - uint8x16_t w = vreinterpretq_u8_m128i(a); - - // inverse shift rows - w = vqtbl1q_u8(w, vld1q_u8(inv_shift_rows)); - - // inverse sub bytes - v = vqtbl4q_u8(_sse2neon_vld1q_u8_x4(_sse2neon_rsbox), w); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0x40), w - 0x40); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0x80), w - 0x80); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0xc0), w - 0xc0); - - // add round key - return vreinterpretq_m128i_u8(v) ^ RoundKey; - -#else /* ARMv7-A NEON implementation */ /* FIXME: optimized for NEON */ - uint8_t v[4][4]; - uint8_t *_a = (uint8_t *) &a; - for (int i = 0; i < 16; ++i) { - v[((i / 4) + (i % 4)) % 4][i % 4] = _sse2neon_rsbox[_a[i]]; - } - - return vreinterpretq_m128i_u8(vld1q_u8((uint8_t *) v)) ^ RoundKey; -#endif -} - -// Perform the InvMixColumns transformation on a and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesimc_si128 -FORCE_INLINE __m128i _mm_aesimc_si128(__m128i a) -{ -#if defined(__aarch64__) - static const uint8_t ror32by8[] = { - 0x1, 0x2, 0x3, 0x0, 0x5, 0x6, 0x7, 0x4, - 0x9, 0xa, 0xb, 0x8, 0xd, 0xe, 0xf, 0xc, + uint8_t v[4][4] = { + [0] = {SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 0)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 5)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 10)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 15)]}, + [1] = {SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 4)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 9)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 14)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 3)]}, + [2] = {SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 8)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 13)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 2)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 7)]}, + [3] = {SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 12)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 1)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 6)], + SSE2NEON_sbox[vreinterpretq_nth_u8_m128i(a, 11)]}, }; - uint8x16_t v = vreinterpretq_u8_m128i(a); - uint8x16_t w; - - // multiplying 'v' by 4 in GF(2^8) - w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) & 0x1b); - w = (w << 1) ^ (uint8x16_t) (((int8x16_t) w >> 7) & 0x1b); - v ^= w; - v ^= (uint8x16_t) vrev32q_u16((uint16x8_t) w); - - // multiplying 'v' by 2 in GF(2^8) - w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) & 0x1b); - w ^= (uint8x16_t) vrev32q_u16((uint16x8_t) v); - w ^= vqtbl1q_u8(v ^ w, vld1q_u8(ror32by8)); - return vreinterpretq_m128i_u8(w); - -#else /* ARMv7-A NEON implementation */ - uint8_t i, e, f, g, h, v[4][4]; - vst1q_u8((uint8_t *) v, vreinterpretq_u8_m128i(a)); - for (i = 0; i < 4; ++i) { - e = v[i][0]; - f = v[i][1]; - g = v[i][2]; - h = v[i][3]; - - v[i][0] = SSE2NEON_MULTIPLY(e, 0x0e) ^ SSE2NEON_MULTIPLY(f, 0x0b) ^ - SSE2NEON_MULTIPLY(g, 0x0d) ^ SSE2NEON_MULTIPLY(h, 0x09); - v[i][1] = SSE2NEON_MULTIPLY(e, 0x09) ^ SSE2NEON_MULTIPLY(f, 0x0e) ^ - SSE2NEON_MULTIPLY(g, 0x0b) ^ SSE2NEON_MULTIPLY(h, 0x0d); - v[i][2] = SSE2NEON_MULTIPLY(e, 0x0d) ^ SSE2NEON_MULTIPLY(f, 0x09) ^ - SSE2NEON_MULTIPLY(g, 0x0e) ^ SSE2NEON_MULTIPLY(h, 0x0b); - v[i][3] = SSE2NEON_MULTIPLY(e, 0x0b) ^ SSE2NEON_MULTIPLY(f, 0x0d) ^ - SSE2NEON_MULTIPLY(g, 0x09) ^ SSE2NEON_MULTIPLY(h, 0x0e); - } - - return vreinterpretq_m128i_u8(vld1q_u8((uint8_t *) v)); -#endif + for (int i = 0; i < 16; i++) + vreinterpretq_nth_u8_m128i(a, i) = + v[i / 4][i % 4] ^ vreinterpretq_nth_u8_m128i(RoundKey, i); + return a; } -// Assist in expanding the AES cipher key by computing steps towards generating -// a round key for encryption cipher using data from a and an 8-bit round -// constant specified in imm8, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aeskeygenassist_si128 -// // Emits the Advanced Encryption Standard (AES) instruction aeskeygenassist. // This instruction generates a round key for AES encryption. See // https://kazakov.life/2017/11/01/cryptocurrency-mining-on-ios-devices/ // for details. -FORCE_INLINE __m128i _mm_aeskeygenassist_si128(__m128i a, const int rcon) +// +// https://msdn.microsoft.com/en-us/library/cc714138(v=vs.120).aspx +FORCE_INLINE __m128i _mm_aeskeygenassist_si128(__m128i key, const int rcon) { -#if defined(__aarch64__) - uint8x16_t _a = vreinterpretq_u8_m128i(a); - uint8x16_t v = vqtbl4q_u8(_sse2neon_vld1q_u8_x4(_sse2neon_sbox), _a); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0x40), _a - 0x40); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0x80), _a - 0x80); - v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_sbox + 0xc0), _a - 0xc0); - - uint32x4_t v_u32 = vreinterpretq_u32_u8(v); - uint32x4_t ror_v = vorrq_u32(vshrq_n_u32(v_u32, 8), vshlq_n_u32(v_u32, 24)); - uint32x4_t ror_xor_v = veorq_u32(ror_v, vdupq_n_u32(rcon)); - - return vreinterpretq_m128i_u32(vtrn2q_u32(v_u32, ror_xor_v)); - -#else /* ARMv7-A NEON implementation */ - uint32_t X1 = _mm_cvtsi128_si32(_mm_shuffle_epi32(a, 0x55)); - uint32_t X3 = _mm_cvtsi128_si32(_mm_shuffle_epi32(a, 0xFF)); + uint32_t X1 = _mm_cvtsi128_si32(_mm_shuffle_epi32(key, 0x55)); + uint32_t X3 = _mm_cvtsi128_si32(_mm_shuffle_epi32(key, 0xFF)); for (int i = 0; i < 4; ++i) { - ((uint8_t *) &X1)[i] = _sse2neon_sbox[((uint8_t *) &X1)[i]]; - ((uint8_t *) &X3)[i] = _sse2neon_sbox[((uint8_t *) &X3)[i]]; + ((uint8_t *) &X1)[i] = SSE2NEON_sbox[((uint8_t *) &X1)[i]]; + ((uint8_t *) &X3)[i] = SSE2NEON_sbox[((uint8_t *) &X3)[i]]; } return _mm_set_epi32(((X3 >> 8) | (X3 << 24)) ^ rcon, X3, ((X1 >> 8) | (X1 << 24)) ^ rcon, X1); -#endif } -#undef SSE2NEON_AES_SBOX -#undef SSE2NEON_AES_RSBOX - -#if defined(__aarch64__) -#undef SSE2NEON_XT -#undef SSE2NEON_MULTIPLY -#endif +#undef SSE2NEON_AES_DATA #else /* __ARM_FEATURE_CRYPTO */ // Implements equivalent of 'aesenc' by combining AESE (with an empty key) and @@ -8946,24 +7351,12 @@ FORCE_INLINE __m128i _mm_aeskeygenassist_si128(__m128i a, const int rcon) // for more details. FORCE_INLINE __m128i _mm_aesenc_si128(__m128i a, __m128i b) { - return vreinterpretq_m128i_u8(veorq_u8( - vaesmcq_u8(vaeseq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0))), - vreinterpretq_u8_m128i(b))); + return vreinterpretq_m128i_u8( + vaesmcq_u8(vaeseq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0))) ^ + vreinterpretq_u8_m128i(b)); } -// Perform one round of an AES decryption flow on data (state) in a using the -// round key in RoundKey, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesdec_si128 -FORCE_INLINE __m128i _mm_aesdec_si128(__m128i a, __m128i RoundKey) -{ - return vreinterpretq_m128i_u8(veorq_u8( - vaesimcq_u8(vaesdq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0))), - vreinterpretq_u8_m128i(RoundKey))); -} - -// Perform the last round of an AES encryption flow on data (state) in a using -// the round key in RoundKey, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesenclast_si128 +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_aesenclast_si128 FORCE_INLINE __m128i _mm_aesenclast_si128(__m128i a, __m128i RoundKey) { return _mm_xor_si128(vreinterpretq_m128i_u8(vaeseq_u8( @@ -8971,33 +7364,11 @@ FORCE_INLINE __m128i _mm_aesenclast_si128(__m128i a, __m128i RoundKey) RoundKey); } -// Perform the last round of an AES decryption flow on data (state) in a using -// the round key in RoundKey, and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesdeclast_si128 -FORCE_INLINE __m128i _mm_aesdeclast_si128(__m128i a, __m128i RoundKey) -{ - return vreinterpretq_m128i_u8( - veorq_u8(vaesdq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0)), - vreinterpretq_u8_m128i(RoundKey))); -} - -// Perform the InvMixColumns transformation on a and store the result in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aesimc_si128 -FORCE_INLINE __m128i _mm_aesimc_si128(__m128i a) -{ - return vreinterpretq_m128i_u8(vaesimcq_u8(vreinterpretq_u8_m128i(a))); -} - -// Assist in expanding the AES cipher key by computing steps towards generating -// a round key for encryption cipher using data from a and an 8-bit round -// constant specified in imm8, and store the result in dst." -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_aeskeygenassist_si128 FORCE_INLINE __m128i _mm_aeskeygenassist_si128(__m128i a, const int rcon) { // AESE does ShiftRows and SubBytes on A uint8x16_t u8 = vaeseq_u8(vreinterpretq_u8_m128i(a), vdupq_n_u8(0)); -#ifndef _MSC_VER uint8x16_t dest = { // Undo ShiftRows step from AESE and extract X1 and X3 u8[0x4], u8[0x1], u8[0xE], u8[0xB], // SubBytes(X1) @@ -9007,209 +7378,211 @@ FORCE_INLINE __m128i _mm_aeskeygenassist_si128(__m128i a, const int rcon) }; uint32x4_t r = {0, (unsigned) rcon, 0, (unsigned) rcon}; return vreinterpretq_m128i_u8(dest) ^ vreinterpretq_m128i_u32(r); -#else - // We have to do this hack because MSVC is strictly adhering to the CPP - // standard, in particular C++03 8.5.1 sub-section 15, which states that - // unions must be initialized by their first member type. - - // As per the Windows ARM64 ABI, it is always little endian, so this works - __n128 dest{ - ((uint64_t) u8.n128_u8[0x4] << 0) | ((uint64_t) u8.n128_u8[0x1] << 8) | - ((uint64_t) u8.n128_u8[0xE] << 16) | - ((uint64_t) u8.n128_u8[0xB] << 24) | - ((uint64_t) u8.n128_u8[0x1] << 32) | - ((uint64_t) u8.n128_u8[0xE] << 40) | - ((uint64_t) u8.n128_u8[0xB] << 48) | - ((uint64_t) u8.n128_u8[0x4] << 56), - ((uint64_t) u8.n128_u8[0xC] << 0) | ((uint64_t) u8.n128_u8[0x9] << 8) | - ((uint64_t) u8.n128_u8[0x6] << 16) | - ((uint64_t) u8.n128_u8[0x3] << 24) | - ((uint64_t) u8.n128_u8[0x9] << 32) | - ((uint64_t) u8.n128_u8[0x6] << 40) | - ((uint64_t) u8.n128_u8[0x3] << 48) | - ((uint64_t) u8.n128_u8[0xC] << 56)}; - - dest.n128_u32[1] = dest.n128_u32[1] ^ rcon; - dest.n128_u32[3] = dest.n128_u32[3] ^ rcon; - - return dest; -#endif } #endif -/* Others */ +/* Streaming Extensions */ -// Perform a carry-less multiplication of two 64-bit integers, selected from a -// and b according to imm8, and store the results in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_clmulepi64_si128 -FORCE_INLINE __m128i _mm_clmulepi64_si128(__m128i _a, __m128i _b, const int imm) +// Guarantees that every preceding store is globally visible before any +// subsequent store. +// https://msdn.microsoft.com/en-us/library/5h2w73d1%28v=vs.90%29.aspx +FORCE_INLINE void _mm_sfence(void) { - uint64x2_t a = vreinterpretq_u64_m128i(_a); - uint64x2_t b = vreinterpretq_u64_m128i(_b); - switch (imm & 0x11) { - case 0x00: - return vreinterpretq_m128i_u64( - _sse2neon_vmull_p64(vget_low_u64(a), vget_low_u64(b))); - case 0x01: - return vreinterpretq_m128i_u64( - _sse2neon_vmull_p64(vget_high_u64(a), vget_low_u64(b))); - case 0x10: - return vreinterpretq_m128i_u64( - _sse2neon_vmull_p64(vget_low_u64(a), vget_high_u64(b))); - case 0x11: - return vreinterpretq_m128i_u64( - _sse2neon_vmull_p64(vget_high_u64(a), vget_high_u64(b))); - default: - abort(); + __sync_synchronize(); +} + +// Store 64-bits of integer data from a into memory using a non-temporal memory +// hint. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_stream_pi +FORCE_INLINE void _mm_stream_pi(__m64 *p, __m64 a) +{ + vst1_s64((int64_t *) p, vreinterpret_s64_m64(a)); +} + +// Store 128-bits (composed of 4 packed single-precision (32-bit) floating- +// point elements) from a into memory using a non-temporal memory hint. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_stream_ps +FORCE_INLINE void _mm_stream_ps(float *p, __m128 a) +{ +#if __has_builtin(__builtin_nontemporal_store) + __builtin_nontemporal_store(a, (float32x4_t *) p); +#else + vst1q_f32(p, vreinterpretq_f32_m128(a)); +#endif +} + +// Store 128-bits (composed of 2 packed double-precision (64-bit) floating-point +// elements) from a into memory using a non-temporal memory hint. mem_addr must +// be aligned on a 16-byte boundary or a general-protection exception may be +// generated. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_stream_pd +FORCE_INLINE void _mm_stream_pd(double *p, __m128d a) +{ +#if __has_builtin(__builtin_nontemporal_store) + __builtin_nontemporal_store(a, (float32x4_t *) p); +#elif defined(__aarch64__) + vst1q_f64(p, vreinterpretq_f64_m128d(a)); +#else + vst1q_s64((int64_t *) p, vreinterpretq_s64_m128d(a)); +#endif +} + +// Stores the data in a to the address p without polluting the caches. If the +// cache line containing address p is already in the cache, the cache will be +// updated. +// https://msdn.microsoft.com/en-us/library/ba08y07y%28v=vs.90%29.aspx +FORCE_INLINE void _mm_stream_si128(__m128i *p, __m128i a) +{ +#if __has_builtin(__builtin_nontemporal_store) + __builtin_nontemporal_store(a, p); +#else + vst1q_s64((int64_t *) p, vreinterpretq_s64_m128i(a)); +#endif +} + +// Store 32-bit integer a into memory using a non-temporal hint to minimize +// cache pollution. If the cache line containing address mem_addr is already in +// the cache, the cache will be updated. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_stream_si32 +FORCE_INLINE void _mm_stream_si32(int *p, int a) +{ + vst1q_lane_s32((int32_t *) p, vdupq_n_s32(a), 0); +} + +// Load 128-bits of integer data from memory into dst using a non-temporal +// memory hint. mem_addr must be aligned on a 16-byte boundary or a +// general-protection exception may be generated. +// +// dst[127:0] := MEM[mem_addr+127:mem_addr] +// +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_stream_load_si128 +FORCE_INLINE __m128i _mm_stream_load_si128(__m128i *p) +{ +#if __has_builtin(__builtin_nontemporal_store) + return __builtin_nontemporal_load(p); +#else + return vreinterpretq_m128i_s64(vld1q_s64((int64_t *) p)); +#endif +} + +// Cache line containing p is flushed and invalidated from all caches in the +// coherency domain. : +// https://msdn.microsoft.com/en-us/library/ba08y07y(v=vs.100).aspx +FORCE_INLINE void _mm_clflush(void const *p) +{ + (void) p; + // no corollary for Neon? +} + +// Allocate aligned blocks of memory. +// https://software.intel.com/en-us/ +// cpp-compiler-developer-guide-and-reference-allocating-and-freeing-aligned-memory-blocks +FORCE_INLINE void *_mm_malloc(size_t size, size_t align) +{ + void *ptr; + if (align == 1) + return malloc(size); + if (align == 2 || (sizeof(void *) == 8 && align == 4)) + align = sizeof(void *); + if (!posix_memalign(&ptr, align, size)) + return ptr; + return NULL; +} + +// Conditionally store 8-bit integer elements from a into memory using mask +// (elements are not stored when the highest bit is not set in the corresponding +// element) and a non-temporal memory hint. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_maskmove_si64 +FORCE_INLINE void _mm_maskmove_si64(__m64 a, __m64 mask, char *mem_addr) +{ + int8x8_t shr_mask = vshr_n_s8(vreinterpret_s8_m64(mask), 7); + __m128 b = _mm_load_ps((const float *) mem_addr); + int8x8_t masked = + vbsl_s8(vreinterpret_u8_s8(shr_mask), vreinterpret_s8_m64(a), + vreinterpret_s8_u64(vget_low_u64(vreinterpretq_u64_m128(b)))); + vst1_s8((int8_t *) mem_addr, masked); +} + +// Conditionally store 8-bit integer elements from a into memory using mask +// (elements are not stored when the highest bit is not set in the corresponding +// element) and a non-temporal memory hint. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_m_maskmovq +#define _m_maskmovq(a, mask, mem_addr) _mm_maskmove_si64(a, mask, mem_addr) + +// Free aligned memory that was allocated with _mm_malloc. +// https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_free +FORCE_INLINE void _mm_free(void *addr) +{ + free(addr); +} + +// Starting with the initial value in crc, accumulates a CRC32 value for +// unsigned 8-bit integer v. +// https://msdn.microsoft.com/en-us/library/bb514036(v=vs.100) +FORCE_INLINE uint32_t _mm_crc32_u8(uint32_t crc, uint8_t v) +{ +#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) + __asm__ __volatile__("crc32cb %w[c], %w[c], %w[v]\n\t" + : [c] "+r"(crc) + : [v] "r"(v)); +#else + crc ^= v; + for (int bit = 0; bit < 8; bit++) { + if (crc & 1) + crc = (crc >> 1) ^ UINT32_C(0x82f63b78); + else + crc = (crc >> 1); } +#endif + return crc; } -FORCE_INLINE unsigned int _sse2neon_mm_get_denormals_zero_mode(void) +// Starting with the initial value in crc, accumulates a CRC32 value for +// unsigned 16-bit integer v. +// https://msdn.microsoft.com/en-us/library/bb531411(v=vs.100) +FORCE_INLINE uint32_t _mm_crc32_u16(uint32_t crc, uint16_t v) { - union { - fpcr_bitfield field; -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t value; +#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) + __asm__ __volatile__("crc32ch %w[c], %w[c], %w[v]\n\t" + : [c] "+r"(crc) + : [v] "r"(v)); #else - uint32_t value; + crc = _mm_crc32_u8(crc, v & 0xff); + crc = _mm_crc32_u8(crc, (v >> 8) & 0xff); #endif - } r; - -#if defined(__aarch64__) || defined(_M_ARM64) - r.value = _sse2neon_get_fpcr(); -#else - __asm__ __volatile__("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ -#endif - - return r.field.bit24 ? _MM_DENORMALS_ZERO_ON : _MM_DENORMALS_ZERO_OFF; + return crc; } -// Count the number of bits set to 1 in unsigned 32-bit integer a, and -// return that count in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_popcnt_u32 -FORCE_INLINE int _mm_popcnt_u32(unsigned int a) +// Starting with the initial value in crc, accumulates a CRC32 value for +// unsigned 32-bit integer v. +// https://msdn.microsoft.com/en-us/library/bb531394(v=vs.100) +FORCE_INLINE uint32_t _mm_crc32_u32(uint32_t crc, uint32_t v) { -#if defined(__aarch64__) || defined(_M_ARM64) -#if __has_builtin(__builtin_popcount) - return __builtin_popcount(a); -#elif defined(_MSC_VER) - return _CountOneBits(a); +#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) + __asm__ __volatile__("crc32cw %w[c], %w[c], %w[v]\n\t" + : [c] "+r"(crc) + : [v] "r"(v)); #else - return (int) vaddlv_u8(vcnt_u8(vcreate_u8((uint64_t) a))); -#endif -#else - uint32_t count = 0; - uint8x8_t input_val, count8x8_val; - uint16x4_t count16x4_val; - uint32x2_t count32x2_val; - - input_val = vld1_u8((uint8_t *) &a); - count8x8_val = vcnt_u8(input_val); - count16x4_val = vpaddl_u8(count8x8_val); - count32x2_val = vpaddl_u16(count16x4_val); - - vst1_u32(&count, count32x2_val); - return count; + crc = _mm_crc32_u16(crc, v & 0xffff); + crc = _mm_crc32_u16(crc, (v >> 16) & 0xffff); #endif + return crc; } -// Count the number of bits set to 1 in unsigned 64-bit integer a, and -// return that count in dst. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_popcnt_u64 -FORCE_INLINE int64_t _mm_popcnt_u64(uint64_t a) +// Starting with the initial value in crc, accumulates a CRC32 value for +// unsigned 64-bit integer v. +// https://msdn.microsoft.com/en-us/library/bb514033(v=vs.100) +FORCE_INLINE uint64_t _mm_crc32_u64(uint64_t crc, uint64_t v) { -#if defined(__aarch64__) || defined(_M_ARM64) -#if __has_builtin(__builtin_popcountll) - return __builtin_popcountll(a); -#elif defined(_MSC_VER) - return _CountOneBits64(a); +#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) + __asm__ __volatile__("crc32cx %w[c], %w[c], %x[v]\n\t" + : [c] "+r"(crc) + : [v] "r"(v)); #else - return (int64_t) vaddlv_u8(vcnt_u8(vcreate_u8(a))); -#endif -#else - uint64_t count = 0; - uint8x8_t input_val, count8x8_val; - uint16x4_t count16x4_val; - uint32x2_t count32x2_val; - uint64x1_t count64x1_val; - - input_val = vld1_u8((uint8_t *) &a); - count8x8_val = vcnt_u8(input_val); - count16x4_val = vpaddl_u8(count8x8_val); - count32x2_val = vpaddl_u16(count16x4_val); - count64x1_val = vpaddl_u32(count32x2_val); - vst1_u64(&count, count64x1_val); - return count; -#endif -} - -FORCE_INLINE void _sse2neon_mm_set_denormals_zero_mode(unsigned int flag) -{ - // AArch32 Advanced SIMD arithmetic always uses the Flush-to-zero setting, - // regardless of the value of the FZ bit. - union { - fpcr_bitfield field; -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t value; -#else - uint32_t value; -#endif - } r; - -#if defined(__aarch64__) || defined(_M_ARM64) - r.value = _sse2neon_get_fpcr(); -#else - __asm__ __volatile__("vmrs %0, FPSCR" : "=r"(r.value)); /* read */ -#endif - - r.field.bit24 = (flag & _MM_DENORMALS_ZERO_MASK) == _MM_DENORMALS_ZERO_ON; - -#if defined(__aarch64__) || defined(_M_ARM64) - _sse2neon_set_fpcr(r.value); -#else - __asm__ __volatile__("vmsr FPSCR, %0" ::"r"(r)); /* write */ -#endif -} - -// Return the current 64-bit value of the processor's time-stamp counter. -// https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=rdtsc -FORCE_INLINE uint64_t _rdtsc(void) -{ -#if defined(__aarch64__) || defined(_M_ARM64) - uint64_t val; - - /* According to ARM DDI 0487F.c, from Armv8.0 to Armv8.5 inclusive, the - * system counter is at least 56 bits wide; from Armv8.6, the counter - * must be 64 bits wide. So the system counter could be less than 64 - * bits wide and it is attributed with the flag 'cap_user_time_short' - * is true. - */ -#if defined(_MSC_VER) - val = _ReadStatusReg(ARM64_SYSREG(3, 3, 14, 0, 2)); -#else - __asm__ __volatile__("mrs %0, cntvct_el0" : "=r"(val)); -#endif - - return val; -#else - uint32_t pmccntr, pmuseren, pmcntenset; - // Read the user mode Performance Monitoring Unit (PMU) - // User Enable Register (PMUSERENR) access permissions. - __asm__ __volatile__("mrc p15, 0, %0, c9, c14, 0" : "=r"(pmuseren)); - if (pmuseren & 1) { // Allows reading PMUSERENR for user mode code. - __asm__ __volatile__("mrc p15, 0, %0, c9, c12, 1" : "=r"(pmcntenset)); - if (pmcntenset & 0x80000000UL) { // Is it counting? - __asm__ __volatile__("mrc p15, 0, %0, c9, c13, 0" : "=r"(pmccntr)); - // The counter is set up to count every 64th cycle - return (uint64_t) (pmccntr) << 6; - } - } - - // Fallback to syscall as we can't enable PMUSERENR in user mode. - struct timeval tv; - gettimeofday(&tv, NULL); - return (uint64_t) (tv.tv_sec) * 1000000 + tv.tv_usec; + crc = _mm_crc32_u32((uint32_t)(crc), v & 0xffffffff); + crc = _mm_crc32_u32((uint32_t)(crc), (v >> 32) & 0xffffffff); #endif + return crc; } #if defined(__GNUC__) || defined(__clang__) diff --git a/src/crypto/common/Nonce.cpp b/src/crypto/common/Nonce.cpp index feb48786..e2e51c2c 100644 --- a/src/crypto/common/Nonce.cpp +++ b/src/crypto/common/Nonce.cpp @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -#include "base/tools/Alignment.h" #include "crypto/common/Nonce.h" @@ -54,10 +53,10 @@ bool xmrig::Nonce::next(uint8_t index, uint32_t *nonce, uint32_t reserveCount, u continue; } - writeUnaligned(nonce, static_cast((readUnaligned(nonce) & ~mask) | counter)); + *nonce = (nonce[0] & ~mask) | counter; if (mask > 0xFFFFFFFFULL) { - writeUnaligned(nonce + 1, static_cast((readUnaligned(nonce + 1) & (~mask >> 32)) | (counter >> 32))); + nonce[1] = (nonce[1] & (~mask >> 32)) | (counter >> 32); } return true; diff --git a/src/crypto/common/VirtualMemory_hwloc.cpp b/src/crypto/common/VirtualMemory_hwloc.cpp index 21b0bd46..d1129008 100644 --- a/src/crypto/common/VirtualMemory_hwloc.cpp +++ b/src/crypto/common/VirtualMemory_hwloc.cpp @@ -1,8 +1,8 @@ /* XMRig * Copyright (c) 2018 Lee Clagett * Copyright (c) 2018-2019 tevador - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,8 +18,10 @@ * along with this program. If not, see . */ + #include "crypto/common/VirtualMemory.h" #include "backend/cpu/Cpu.h" +#include "backend/cpu/platform/HwlocCpuInfo.h" #include "base/io/log/Log.h" @@ -32,9 +34,10 @@ uint32_t xmrig::VirtualMemory::bindToNUMANode(int64_t affinity) return 0; } - auto pu = hwloc_get_pu_obj_by_os_index(Cpu::info()->topology(), static_cast(affinity)); + auto cpu = static_cast(Cpu::info()); + hwloc_obj_t pu = hwloc_get_pu_obj_by_os_index(cpu->topology(), static_cast(affinity)); - if (pu == nullptr || !Cpu::info()->membind(pu->nodeset)) { + if (pu == nullptr || !cpu->membind(pu->nodeset)) { LOG_WARN("CPU #%02" PRId64 " warning: \"can't bind memory\"", affinity); return 0; diff --git a/src/crypto/common/VirtualMemory_unix.cpp b/src/crypto/common/VirtualMemory_unix.cpp index 003b92e4..edda231f 100644 --- a/src/crypto/common/VirtualMemory_unix.cpp +++ b/src/crypto/common/VirtualMemory_unix.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2018-2020 tevador - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ * along with this program. If not, see . */ + #include "crypto/common/VirtualMemory.h" #include "backend/cpu/Cpu.h" #include "crypto/common/portable/mm_malloc.h" @@ -24,7 +25,6 @@ #include #include -#include #include @@ -57,15 +57,6 @@ # define MAP_HUGE_MASK 0x3f #endif -#ifdef XMRIG_OS_FREEBSD -# ifndef MAP_ALIGNED_SUPER -# define MAP_ALIGNED_SUPER 0 -# endif -# ifndef MAP_PREFAULT_READ -# define MAP_PREFAULT_READ 0 -# endif -#endif - #ifdef XMRIG_SECURE_JIT # define SECURE_PROT_EXEC 0 @@ -74,7 +65,7 @@ #endif -#if defined(XMRIG_OS_LINUX) || (!defined(XMRIG_OS_APPLE) && !defined(XMRIG_OS_FREEBSD)) +#if defined(XMRIG_OS_LINUX) || (!defined(XMRIG_OS_APPLE) && !defined(__FreeBSD__)) static inline int hugePagesFlag(size_t size) { return (static_cast(log2(size)) & MAP_HUGE_MASK) << MAP_HUGE_SHIFT; @@ -84,9 +75,7 @@ static inline int hugePagesFlag(size_t size) bool xmrig::VirtualMemory::isHugepagesAvailable() { -# ifdef XMRIG_OS_LINUX - return std::ifstream("/proc/sys/vm/nr_hugepages").good() || std::ifstream("/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages").good(); -# elif defined(XMRIG_OS_MACOS) && defined(XMRIG_ARM) +# if defined(XMRIG_OS_MACOS) && defined(XMRIG_ARM) return false; # else return true; @@ -123,19 +112,13 @@ bool xmrig::VirtualMemory::protectRWX(void *p, size_t size) bool xmrig::VirtualMemory::protectRX(void *p, size_t size) { - bool result = true; - # if defined(XMRIG_OS_APPLE) && defined(XMRIG_ARM) pthread_jit_write_protect_np(true); -# else - result = (mprotect(p, size, PROT_READ | PROT_EXEC) == 0); -# endif - -# if defined(XMRIG_ARM) flushInstructionCache(p, size); + return true; +# else + return mprotect(p, size, PROT_READ | PROT_EXEC) == 0; # endif - - return result; } @@ -146,7 +129,7 @@ void *xmrig::VirtualMemory::allocateExecutableMemory(size_t size, bool hugePages # ifdef XMRIG_ARM pthread_jit_write_protect_np(false); # endif -# elif defined(XMRIG_OS_FREEBSD) +# elif defined(__FreeBSD__) void *mem = nullptr; if (hugePages) { @@ -179,7 +162,7 @@ void *xmrig::VirtualMemory::allocateLargePagesMemory(size_t size) { # if defined(XMRIG_OS_APPLE) void *mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, VM_FLAGS_SUPERPAGE_SIZE_2MB, 0); -# elif defined(XMRIG_OS_FREEBSD) +# elif defined(__FreeBSD__) void *mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_ALIGNED_SUPER | MAP_PREFAULT_READ, -1, 0); # else void *mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_POPULATE | hugePagesFlag(hugePageSize()), 0, 0); diff --git a/src/crypto/ghostrider/CMakeLists.txt b/src/crypto/ghostrider/CMakeLists.txt index 8b4a348c..f76fe649 100644 --- a/src/crypto/ghostrider/CMakeLists.txt +++ b/src/crypto/ghostrider/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 2.8.12) project(GhostRider) set(HEADERS @@ -42,40 +42,14 @@ set(SOURCES ghostrider.cpp ) -if (CMAKE_C_COMPILER_ID MATCHES MSVC) - set_source_files_properties(sph_blake.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_bmw.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_cubehash.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_echo.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_fugue.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_groestl.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_hamsi.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_jh.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_keccak.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_luffa.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_shabal.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_shavite.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_simd.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_sha2.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_skein.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") - set_source_files_properties(sph_whirlpool.c PROPERTIES COMPILE_FLAGS_RELEASE "/O1 /Oi /Os") -elseif (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang) - set_source_files_properties(sph_blake.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_bmw.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_cubehash.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_echo.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_fugue.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_groestl.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_hamsi.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_jh.c PROPERTIES COMPILE_FLAGS "-Os -fno-tree-vrp") - set_source_files_properties(sph_keccak.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_luffa.c PROPERTIES COMPILE_FLAGS "-Os -Wno-unused-const-variable") - set_source_files_properties(sph_shabal.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_shavite.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_simd.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_sha2.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_skein.c PROPERTIES COMPILE_FLAGS "-Os") - set_source_files_properties(sph_whirlpool.c PROPERTIES COMPILE_FLAGS "-Os") +if (CMAKE_C_COMPILER_ID MATCHES GNU) + # gcc 11.2.0 crashes with -ftree-vrp + set_source_files_properties(sph_jh.c PROPERTIES COMPILE_FLAGS "-Ofast -fno-tree-vrp") + + # gcc 11.2.0 creates incorrect code with -O3 + set_source_files_properties(sph_sha2.c PROPERTIES COMPILE_FLAGS "-O2") + + set_source_files_properties(sph_luffa.c PROPERTIES COMPILE_FLAGS "-Ofast -Wno-unused-const-variable") endif() include_directories(.) diff --git a/src/crypto/ghostrider/README.md b/src/crypto/ghostrider/README.md index 20851f53..e91fc5bd 100644 --- a/src/crypto/ghostrider/README.md +++ b/src/crypto/ghostrider/README.md @@ -4,19 +4,21 @@ No tuning is required - auto-config works well on most CPUs! +**Note for Windows users: MSVC binary is ~5% faster than GCC binary!** + ### Sample command line (non-SSL port) ``` -xmrig -a gr -o raptoreumemporium.com:3008 -u WALLET_ADDRESS -p x +xmrig -a gr -o raptoreumemporium.com:3008 -u WALLET_ADDRESS ``` ### Sample command line (SSL port) ``` -xmrig -a gr -o rtm.suprnova.cc:4273 --tls -u WALLET_ADDRESS -p x +xmrig -a gr -o us.flockpool.com:5555 --tls -u WALLET_ADDRESS ``` You can use **rtm_ghostrider_example.cmd** as a template and put pool URL and your wallet address there. The general XMRig documentation is available [here](https://xmrig.com/docs/miner). -**Using `--threads` or `-t` option is NOT recommended because it turns off advanced built-in config.** If you want to tweak the number of threads used for GhostRider, it's recommended to start using config.json instead of command line. The best suitable command line option for this is `--cpu-max-threads-hint=N` where N can be between 0 and 100. +**Using `--threads` or `-t` option is NOT recommended because it turns off advanced built-in config.** If you want to tweak the nubmer of threads used for GhostRider, it's recommended to start using config.json instead of command line. The best suitable command line option for this is `--cpu-max-threads-hint=N` where N can be between 0 and 100. ## Performance @@ -24,16 +26,16 @@ While individual algorithm implementations are a bit unoptimized, XMRig achieves For the same reason, XMRig can sometimes use less than 100% CPU on Ryzen 3000/5000 CPUs if it finds that running 1 thread per core is faster for some Cryptonight variants on your system. -**Windows** (detailed results [here](https://imgur.com/a/0njIVVW)) -CPU|cpuminer-gr-avx2 1.2.4.1 (tuned), h/s|XMRig v6.16.2 (MSVC build), h/s|Speedup +**Windows** (detailed results [here](https://imgur.com/a/uRU1yO2)) +CPU|cpuminer-gr-avx2 (tuned), h/s|XMRig (MSVC build), h/s|Speedup -|-|-|- -AMD Ryzen 7 4700U|632.6|733.1|+15.89% -Intel Core i7-2600|496.4|554.6|+11.72% -AMD Ryzen 7 3700X @ 4.1 GHz|2453.0|2496.5|+1.77% -AMD Ryzen 5 5600X @ 4.65 GHz|2112.6|2337.5|+10.65% +AMD Ryzen 7 4700U|632.6|731|+15.5% +Intel Core i7-2600|496.4|533.6|+7.5% +AMD Ryzen 7 3700X @ 4.1 GHz|2453.0|2469.1|+0.65% +AMD Ryzen 5 5600X @ 4.65 GHz|2112.6|2313.2|+9.5% -**Linux (outdated)** (tested by **Delgon**, detailed results [here](https://cdn.discordapp.com/attachments/604375870236524574/913167614749048872/unknown.png)) -CPU|cpuminer-gr-avx2 1.2.4.1 (tuned), h/s|XMRig v6.16.0 (GCC build), h/s|Speedup +**Linux** (tested by **Delgon**, detailed results [here](https://cdn.discordapp.com/attachments/604375870236524574/913167614749048872/unknown.png)) +CPU|cpuminer-gr-avx2 (tuned), h/s|XMRig (GCC build), h/s|Speedup -|-|-|- AMD Ryzen 9 3900X|3746.51|3604.89|-3.78% 2xIntel Xeon E5-2698v3|2563.4|2638.38|+2.925% diff --git a/src/crypto/ghostrider/ghostrider.cpp b/src/crypto/ghostrider/ghostrider.cpp index 25bb44e7..a23150fc 100644 --- a/src/crypto/ghostrider/ghostrider.cpp +++ b/src/crypto/ghostrider/ghostrider.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright 2018-2023 SChernykh - * Copyright 2016-2023 XMRig , + * Copyright 2018-2021 SChernykh + * Copyright 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ * along with this program. If not, see . */ + #include "ghostrider.h" #include "sph_blake.h" #include "sph_bmw.h" @@ -35,7 +36,6 @@ #include "base/io/log/Log.h" #include "base/io/log/Tags.h" -#include "base/tools/Chrono.h" #include "backend/cpu/Cpu.h" #include "crypto/cn/CnHash.h" #include "crypto/cn/CnCtx.h" @@ -44,15 +44,13 @@ #include #include +#include #include #ifdef XMRIG_FEATURE_HWLOC -# include "base/kernel/Platform.h" -# include - -# if HWLOC_API_VERSION < 0x20000 -# define HWLOC_OBJ_L3CACHE HWLOC_OBJ_CACHE -# endif +#include "base/kernel/Platform.h" +#include "backend/cpu/platform/HwlocCpuInfo.h" +#include #endif #if defined(XMRIG_ARM) @@ -89,7 +87,7 @@ CORE_HASH(14, whirlpool ); #undef CORE_HASH -using core_hash_func = void (*)(const uint8_t* data, size_t size, uint8_t* output); +typedef void (*core_hash_func)(const uint8_t* data, size_t size, uint8_t* output); static const core_hash_func core_hash[15] = { h0, h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11, h12, h13, h14 }; namespace xmrig @@ -168,9 +166,7 @@ static struct AlgoTune struct HelperThread { - XMRIG_DISABLE_COPY_MOVE_DEFAULT(HelperThread) - - HelperThread(hwloc_bitmap_t cpu_set, int priority, bool is8MB) : m_cpuSet(cpu_set), m_priority(priority), m_is8MB(is8MB) + HelperThread(hwloc_bitmap_t cpu_set, bool is8MB) : m_cpuSet(cpu_set), m_is8MB(is8MB) { uv_mutex_init(&m_mutex); uv_cond_init(&m_cond); @@ -199,17 +195,14 @@ struct HelperThread struct TaskBase { - XMRIG_DISABLE_COPY_MOVE(TaskBase) - - TaskBase() = default; - virtual ~TaskBase() = default; - virtual void run() = 0; + virtual ~TaskBase() {} + virtual void run() = 0; }; template struct Task : TaskBase { - explicit inline Task(T&& task) : m_task(std::move(task)) + inline Task(T&& task) : m_task(std::move(task)) { static_assert(sizeof(Task) <= 128, "Task struct is too large"); } @@ -227,7 +220,7 @@ struct HelperThread inline void launch_task(T&& task) { uv_mutex_lock(&m_mutex); - new (&m_tasks[m_numTasks++]) Task(std::forward(task)); + new (&m_tasks[m_numTasks++]) Task(std::move(task)); uv_cond_signal(&m_cond); uv_mutex_unlock(&m_mutex); } @@ -242,14 +235,12 @@ struct HelperThread void run() { if (hwloc_bitmap_weight(m_cpuSet) > 0) { - hwloc_topology_t topology = Cpu::info()->topology(); + hwloc_topology_t topology = reinterpret_cast(Cpu::info())->topology(); if (hwloc_set_cpubind(topology, m_cpuSet, HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_STRICT) < 0) { hwloc_set_cpubind(topology, m_cpuSet, HWLOC_CPUBIND_THREAD); } } - Platform::setThreadPriority(m_priority); - uv_mutex_lock(&m_mutex); m_ready = true; @@ -277,7 +268,6 @@ struct HelperThread volatile bool m_ready = false; volatile bool m_finished = false; hwloc_bitmap_t m_cpuSet = {}; - int m_priority = -1; bool m_is8MB = false; std::thread* m_thread = nullptr; @@ -296,18 +286,17 @@ void benchmark() // Try to avoid CPU core 0 because many system threads use it and can interfere uint32_t thread_index1 = (Cpu::info()->threads() > 2) ? 2 : 0; - hwloc_topology_t topology = Cpu::info()->topology(); + hwloc_topology_t topology = reinterpret_cast(Cpu::info())->topology(); hwloc_obj_t pu = hwloc_get_pu_obj_by_os_index(topology, thread_index1); - hwloc_obj_t pu2 = nullptr; + hwloc_obj_t pu2; hwloc_get_closest_objs(topology, pu, &pu2, 1); - uint32_t thread_index2 = pu2 ? pu2->os_index : thread_index1; + uint32_t thread_index2 = pu2->os_index; if (thread_index2 < thread_index1) { std::swap(thread_index1, thread_index2); } Platform::setThreadAffinity(thread_index1); - Platform::setThreadPriority(3); constexpr uint32_t N = 1U << 21; @@ -339,6 +328,8 @@ void benchmark() LOG_VERBOSE("%24s | N | Hashrate", "Algorithm"); LOG_VERBOSE("-------------------------|-----|-------------"); + using namespace std::chrono; + for (uint32_t algo = 0; algo < 6; ++algo) { for (uint64_t step : { 1, 2, 4}) { const size_t cur_scratchpad_size = cn_sizes[algo] * step; @@ -348,26 +339,26 @@ void benchmark() auto f = CnHash::fn(cn_hash[algo], av[step], Assembly::AUTO); - double start_time = Chrono::highResolutionMSecs(); + const high_resolution_clock::time_point start_time = high_resolution_clock::now(); double min_dt = 1e10; for (uint32_t iter = 0;; ++iter) { - double t1 = Chrono::highResolutionMSecs(); + const high_resolution_clock::time_point t1 = high_resolution_clock::now(); // Stop after 15 milliseconds, but only if at least 10 iterations were done - if ((iter >= 10) && (t1 - start_time >= 15.0)) { + if ((iter >= 10) && (duration_cast(t1 - start_time).count() >= 15)) { break; } f(buf, sizeof(buf), hash, ctx, 0); - const double dt = Chrono::highResolutionMSecs() - t1; + const double dt = duration_cast(high_resolution_clock::now() - t1).count() / 1e9; if (dt < min_dt) { min_dt = dt; } } - const double hashrate = step * 1e3 / min_dt; + const double hashrate = step / min_dt; LOG_VERBOSE("%24s | %" PRIu64 "x1 | %.2f h/s", cn_names[algo], step, hashrate); if (hashrate > tune8MB[algo].hashrate) { @@ -386,7 +377,7 @@ void benchmark() hwloc_bitmap_t helper_set = hwloc_bitmap_alloc(); hwloc_bitmap_set(helper_set, thread_index2); - HelperThread* helper = new HelperThread(helper_set, 3, false); + HelperThread* helper = new HelperThread(helper_set, false); for (uint32_t algo = 0; algo < 6; ++algo) { for (uint64_t step : { 1, 2, 4}) { @@ -397,14 +388,14 @@ void benchmark() auto f = CnHash::fn(cn_hash[algo], av[step], Assembly::AUTO); - double start_time = Chrono::highResolutionMSecs(); + const high_resolution_clock::time_point start_time = high_resolution_clock::now(); double min_dt = 1e10; for (uint32_t iter = 0;; ++iter) { - double t1 = Chrono::highResolutionMSecs(); + const high_resolution_clock::time_point t1 = high_resolution_clock::now(); // Stop after 30 milliseconds, but only if at least 10 iterations were done - if ((iter >= 10) && (t1 - start_time >= 30.0)) { + if ((iter >= 10) && (duration_cast(t1 - start_time).count() >= 30)) { break; } @@ -412,13 +403,13 @@ void benchmark() f(buf, sizeof(buf), hash, ctx, 0); helper->wait(); - const double dt = Chrono::highResolutionMSecs() - t1; + const double dt = duration_cast(high_resolution_clock::now() - t1).count() / 1e9; if (dt < min_dt) { min_dt = dt; } } - const double hashrate = step * 2e3 / min_dt * 1.0075; + const double hashrate = step * 2.0 / min_dt * 1.0075; LOG_VERBOSE("%24s | %" PRIu64 "x2 | %.2f h/s", cn_names[algo], step, hashrate); if (hashrate > tune8MB[algo].hashrate) { @@ -476,7 +467,7 @@ static inline bool findByType(hwloc_obj_t obj, hwloc_obj_type_t type, func lambd } -HelperThread* create_helper_thread(int64_t cpu_index, int priority, const std::vector& affinities) +HelperThread* create_helper_thread(int64_t cpu_index, const std::vector& affinities) { #ifndef XMRIG_ARM hwloc_bitmap_t helper_cpu_set = hwloc_bitmap_alloc(); @@ -489,17 +480,12 @@ HelperThread* create_helper_thread(int64_t cpu_index, int priority, const std::v } if (cpu_index >= 0) { - hwloc_obj_t root = hwloc_get_root_obj(Cpu::info()->topology()); + hwloc_topology_t topology = reinterpret_cast(Cpu::info())->topology(); + hwloc_obj_t root = hwloc_get_root_obj(topology); bool is8MB = false; findByType(root, HWLOC_OBJ_L3CACHE, [cpu_index, &is8MB](hwloc_obj_t obj) { -# if HWLOC_API_VERSION < 0x20000 - if (obj->attr->cache.depth != 3) { - return false; - } -# endif - if (!hwloc_bitmap_isset(obj->cpuset, cpu_index)) { return false; } @@ -523,11 +509,7 @@ HelperThread* create_helper_thread(int64_t cpu_index, int priority, const std::v return true; }); -# if HWLOC_API_VERSION >= 0x20000 for (auto obj_type : { HWLOC_OBJ_CORE, HWLOC_OBJ_L1CACHE, HWLOC_OBJ_L2CACHE, HWLOC_OBJ_L3CACHE }) { -# else - for (auto obj_type : { HWLOC_OBJ_CORE, HWLOC_OBJ_CACHE }) { -# endif findByType(root, obj_type, [cpu_index, helper_cpu_set, main_threads_set](hwloc_obj_t obj) { const hwloc_cpuset_t& s = obj->cpuset; if (hwloc_bitmap_isset(s, cpu_index)) { @@ -540,7 +522,7 @@ HelperThread* create_helper_thread(int64_t cpu_index, int priority, const std::v }); if (hwloc_bitmap_weight(helper_cpu_set) > 0) { - return new HelperThread(helper_cpu_set, priority, is8MB); + return new HelperThread(helper_cpu_set, is8MB); } } } @@ -588,13 +570,9 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct uint8_t tmp[64 * N]; if (helper && (tune[cn_indices[0]].threads == 2) && (tune[cn_indices[1]].threads == 2) && (tune[cn_indices[2]].threads == 2)) { - constexpr size_t n = N / 2; - - helper->launch_task([av, data, size, &ctx_memory, ctx, &cn_indices, &core_indices, &tmp, output, tune]() { -# ifdef _MSC_VER - constexpr size_t n = N / 2; -# endif + const size_t n = N / 2; + helper->launch_task([n, av, data, size, &ctx_memory, ctx, &cn_indices, &core_indices, &tmp, output, tune]() { const uint8_t* input = data; size_t input_size = size; @@ -785,7 +763,7 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct void benchmark() {} -HelperThread* create_helper_thread(int64_t, int, const std::vector&) { return nullptr; } +HelperThread* create_helper_thread(int64_t, const std::vector&) { return nullptr; } void destroy_helper_thread(HelperThread*) {} @@ -793,11 +771,6 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct { constexpr uint32_t N = 8; - uint8_t* ctx_memory[N]; - for (size_t i = 0; i < N; ++i) { - ctx_memory[i] = ctx[i]->memory; - } - // PrevBlockHash (GhostRider's seed) is stored in bytes [4; 36) const uint8_t* seed = data + 4; @@ -825,50 +798,30 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct const CnHash::AlgoVariant* av = Cpu::info()->hasAES() ? av_hw_aes : av_soft_aes; + const cn_hash_fun f[3] = { + CnHash::fn(cn_hash[cn_indices[0]], av[step[cn_indices[0]]], Assembly::AUTO), + CnHash::fn(cn_hash[cn_indices[1]], av[step[cn_indices[1]]], Assembly::AUTO), + CnHash::fn(cn_hash[cn_indices[2]], av[step[cn_indices[2]]], Assembly::AUTO), + }; + uint8_t tmp[64 * N]; - for (size_t part = 0; part < 3; ++part) { - - // Allocate scratchpads - { - uint8_t* p = ctx_memory[0]; - - for (size_t i = 0, k = 0; i < N; ++i) { - if ((i % step[cn_indices[part]]) == 0) { - k = 0; - p = ctx_memory[0]; - } - else if (p - ctx_memory[k] >= (1 << 21)) { - ++k; - p = ctx_memory[k]; - } - ctx[i]->memory = p; - p += cn_sizes[cn_indices[part]]; - } - } - - for (size_t i = 0; i < 5; ++i) { - for (size_t j = 0; j < N; ++j) { + for (uint64_t part = 0; part < 3; ++part) { + for (uint64_t i = 0; i < 5; ++i) { + for (uint64_t j = 0; j < N; ++j) { core_hash[core_indices[part * 5 + i]](data + j * size, size, tmp + j * 64); + data = tmp; + size = 64; } - data = tmp; - size = 64; } - - auto f = CnHash::fn(cn_hash[cn_indices[part]], av[step[cn_indices[part]]], Assembly::AUTO); - for (size_t j = 0; j < N; j += step[cn_indices[part]]) { - f(tmp + j * 64, 64, output + j * 32, ctx, 0); + for (uint64_t j = 0, k = step[cn_indices[part]]; j < N; j += k) { + f[part](tmp + j * 64, 64, output + j * 32, ctx, 0); } - - for (size_t j = 0; j < N; ++j) { + for (uint64_t j = 0; j < N; ++j) { memcpy(tmp + j * 64, output + j * 32, 32); memset(tmp + j * 64 + 32, 0, 32); } } - - for (size_t i = 0; i < N; ++i) { - ctx[i]->memory = ctx_memory[i]; - } } diff --git a/src/crypto/ghostrider/ghostrider.h b/src/crypto/ghostrider/ghostrider.h index e6c08df1..081e4f6f 100644 --- a/src/crypto/ghostrider/ghostrider.h +++ b/src/crypto/ghostrider/ghostrider.h @@ -39,7 +39,7 @@ namespace ghostrider struct HelperThread; void benchmark(); -HelperThread* create_helper_thread(int64_t cpu_index, int priority, const std::vector& affinities); +HelperThread* create_helper_thread(int64_t cpu_index, const std::vector& affinities); void destroy_helper_thread(HelperThread* t); void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread* helper, bool verbose = true); diff --git a/src/crypto/kawpow/KPHash.h b/src/crypto/kawpow/KPHash.h index 7ce2d75e..15bb1902 100644 --- a/src/crypto/kawpow/KPHash.h +++ b/src/crypto/kawpow/KPHash.h @@ -7,8 +7,8 @@ * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett * Copyright 2018-2019 tevador - * Copyright 2018-2023 SChernykh - * Copyright 2016-2023 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2019 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,7 +28,7 @@ #define XMRIG_KP_HASH_H -#include +#include namespace xmrig @@ -43,16 +43,16 @@ class KPHash public: static constexpr uint32_t EPOCH_LENGTH = 7500; static constexpr uint32_t PERIOD_LENGTH = 3; - static constexpr int CNT_CACHE = 11; - static constexpr int CNT_MATH = 18; - static constexpr uint32_t REGS = 32; - static constexpr uint32_t LANES = 16; + static constexpr int CNT_CACHE = 11; + static constexpr int CNT_MATH = 18; + static constexpr uint32_t REGS = 32; + static constexpr uint32_t LANES = 16; static void calculate(const KPCache& light_cache, uint32_t block_height, const uint8_t (&header_hash)[32], uint64_t nonce, uint32_t (&output)[8], uint32_t (&mix_hash)[8]); }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_KP_HASH_H +#endif /* XMRIG_KP_HASH_H */ diff --git a/src/crypto/randomx/aes_hash.cpp b/src/crypto/randomx/aes_hash.cpp index 38eb4d64..2383dab4 100644 --- a/src/crypto/randomx/aes_hash.cpp +++ b/src/crypto/randomx/aes_hash.cpp @@ -34,8 +34,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "base/tools/Chrono.h" #include "crypto/randomx/randomx.h" #include "crypto/randomx/soft_aes.h" -#include "crypto/randomx/instruction.hpp" -#include "crypto/randomx/common.hpp" #include "crypto/rx/Profiler.h" #define AES_HASH_1R_STATE0 0xd7983aad, 0xcc82db47, 0x9fa856de, 0x92b52c0d @@ -167,9 +165,6 @@ void fillAes1Rx4(void *state, size_t outputSize, void *buffer) { template void fillAes1Rx4(void *state, size_t outputSize, void *buffer); template void fillAes1Rx4(void *state, size_t outputSize, void *buffer); -static constexpr randomx::Instruction inst{ 0xFF, 7, 7, 0xFF, 0xFFFFFFFFU }; -alignas(16) static const randomx::Instruction inst_mask[2] = { inst, inst }; - template void fillAes4Rx4(void *state, size_t outputSize, void *buffer) { const uint8_t* outptr = (uint8_t*)buffer; @@ -192,42 +187,32 @@ void fillAes4Rx4(void *state, size_t outputSize, void *buffer) { state2 = rx_load_vec_i128((rx_vec_i128*)state + 2); state3 = rx_load_vec_i128((rx_vec_i128*)state + 3); -#define TRANSFORM do { \ - state0 = aesdec(state0, key0); \ - state1 = aesenc(state1, key0); \ - state2 = aesdec(state2, key4); \ - state3 = aesenc(state3, key4); \ - state0 = aesdec(state0, key1); \ - state1 = aesenc(state1, key1); \ - state2 = aesdec(state2, key5); \ - state3 = aesenc(state3, key5); \ - state0 = aesdec(state0, key2); \ - state1 = aesenc(state1, key2); \ - state2 = aesdec(state2, key6); \ - state3 = aesenc(state3, key6); \ - state0 = aesdec(state0, key3); \ - state1 = aesenc(state1, key3); \ - state2 = aesdec(state2, key7); \ - state3 = aesenc(state3, key7); \ -} while (0) + while (outptr < outputEnd) { + state0 = aesdec(state0, key0); + state1 = aesenc(state1, key0); + state2 = aesdec(state2, key4); + state3 = aesenc(state3, key4); + + state0 = aesdec(state0, key1); + state1 = aesenc(state1, key1); + state2 = aesdec(state2, key5); + state3 = aesenc(state3, key5); + + state0 = aesdec(state0, key2); + state1 = aesenc(state1, key2); + state2 = aesdec(state2, key6); + state3 = aesenc(state3, key6); + + state0 = aesdec(state0, key3); + state1 = aesenc(state1, key3); + state2 = aesdec(state2, key7); + state3 = aesenc(state3, key7); - for (int i = 0; i < 2; ++i, outptr += 64) { - TRANSFORM; rx_store_vec_i128((rx_vec_i128*)outptr + 0, state0); rx_store_vec_i128((rx_vec_i128*)outptr + 1, state1); rx_store_vec_i128((rx_vec_i128*)outptr + 2, state2); rx_store_vec_i128((rx_vec_i128*)outptr + 3, state3); - } - static_assert(sizeof(inst_mask) == sizeof(rx_vec_i128), "Incorrect inst_mask size"); - const rx_vec_i128 mask = *reinterpret_cast(inst_mask); - - while (outptr < outputEnd) { - TRANSFORM; - rx_store_vec_i128((rx_vec_i128*)outptr + 0, rx_and_vec_i128(state0, mask)); - rx_store_vec_i128((rx_vec_i128*)outptr + 1, rx_and_vec_i128(state1, mask)); - rx_store_vec_i128((rx_vec_i128*)outptr + 2, rx_and_vec_i128(state2, mask)); - rx_store_vec_i128((rx_vec_i128*)outptr + 3, rx_and_vec_i128(state3, mask)); outptr += 64; } } @@ -397,7 +382,7 @@ void SelectSoftAESImpl(size_t threadsCount) double fast_speed = 0.0; for (size_t run = 0; run < 3; ++run) { for (size_t i = 0; i < impl.size(); ++i) { - const double t1 = xmrig::Chrono::highResolutionMSecs(); + const uint64_t t1 = xmrig::Chrono::highResolutionMSecs(); std::vector count(threadsCount, 0); std::vector threads; for (size_t t = 0; t < threadsCount; ++t) { @@ -416,7 +401,7 @@ void SelectSoftAESImpl(size_t threadsCount) threads[t].join(); total += count[t]; } - const double t2 = xmrig::Chrono::highResolutionMSecs(); + const uint64_t t2 = xmrig::Chrono::highResolutionMSecs(); const double speed = total * 1e3 / (t2 - t1); if (speed > fast_speed) { fast_idx = i; diff --git a/src/crypto/randomx/blake2/avx2/LICENSE b/src/crypto/randomx/blake2/avx2/LICENSE deleted file mode 100644 index 0e259d42..00000000 --- a/src/crypto/randomx/blake2/avx2/LICENSE +++ /dev/null @@ -1,121 +0,0 @@ -Creative Commons Legal Code - -CC0 1.0 Universal - - CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE - LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN - ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS - INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES - REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS - PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM - THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED - HEREUNDER. - -Statement of Purpose - -The laws of most jurisdictions throughout the world automatically confer -exclusive Copyright and Related Rights (defined below) upon the creator -and subsequent owner(s) (each and all, an "owner") of an original work of -authorship and/or a database (each, a "Work"). - -Certain owners wish to permanently relinquish those rights to a Work for -the purpose of contributing to a commons of creative, cultural and -scientific works ("Commons") that the public can reliably and without fear -of later claims of infringement build upon, modify, incorporate in other -works, reuse and redistribute as freely as possible in any form whatsoever -and for any purposes, including without limitation commercial purposes. -These owners may contribute to the Commons to promote the ideal of a free -culture and the further production of creative, cultural and scientific -works, or to gain reputation or greater distribution for their Work in -part through the use and efforts of others. - -For these and/or other purposes and motivations, and without any -expectation of additional consideration or compensation, the person -associating CC0 with a Work (the "Affirmer"), to the extent that he or she -is an owner of Copyright and Related Rights in the Work, voluntarily -elects to apply CC0 to the Work and publicly distribute the Work under its -terms, with knowledge of his or her Copyright and Related Rights in the -Work and the meaning and intended legal effect of CC0 on those rights. - -1. Copyright and Related Rights. A Work made available under CC0 may be -protected by copyright and related or neighboring rights ("Copyright and -Related Rights"). Copyright and Related Rights include, but are not -limited to, the following: - - i. the right to reproduce, adapt, distribute, perform, display, - communicate, and translate a Work; - ii. moral rights retained by the original author(s) and/or performer(s); -iii. publicity and privacy rights pertaining to a person's image or - likeness depicted in a Work; - iv. rights protecting against unfair competition in regards to a Work, - subject to the limitations in paragraph 4(a), below; - v. rights protecting the extraction, dissemination, use and reuse of data - in a Work; - vi. database rights (such as those arising under Directive 96/9/EC of the - European Parliament and of the Council of 11 March 1996 on the legal - protection of databases, and under any national implementation - thereof, including any amended or successor version of such - directive); and -vii. other similar, equivalent or corresponding rights throughout the - world based on applicable law or treaty, and any national - implementations thereof. - -2. Waiver. To the greatest extent permitted by, but not in contravention -of, applicable law, Affirmer hereby overtly, fully, permanently, -irrevocably and unconditionally waives, abandons, and surrenders all of -Affirmer's Copyright and Related Rights and associated claims and causes -of action, whether now known or unknown (including existing as well as -future claims and causes of action), in the Work (i) in all territories -worldwide, (ii) for the maximum duration provided by applicable law or -treaty (including future time extensions), (iii) in any current or future -medium and for any number of copies, and (iv) for any purpose whatsoever, -including without limitation commercial, advertising or promotional -purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each -member of the public at large and to the detriment of Affirmer's heirs and -successors, fully intending that such Waiver shall not be subject to -revocation, rescission, cancellation, termination, or any other legal or -equitable action to disrupt the quiet enjoyment of the Work by the public -as contemplated by Affirmer's express Statement of Purpose. - -3. Public License Fallback. Should any part of the Waiver for any reason -be judged legally invalid or ineffective under applicable law, then the -Waiver shall be preserved to the maximum extent permitted taking into -account Affirmer's express Statement of Purpose. In addition, to the -extent the Waiver is so judged Affirmer hereby grants to each affected -person a royalty-free, non transferable, non sublicensable, non exclusive, -irrevocable and unconditional license to exercise Affirmer's Copyright and -Related Rights in the Work (i) in all territories worldwide, (ii) for the -maximum duration provided by applicable law or treaty (including future -time extensions), (iii) in any current or future medium and for any number -of copies, and (iv) for any purpose whatsoever, including without -limitation commercial, advertising or promotional purposes (the -"License"). The License shall be deemed effective as of the date CC0 was -applied by Affirmer to the Work. Should any part of the License for any -reason be judged legally invalid or ineffective under applicable law, such -partial invalidity or ineffectiveness shall not invalidate the remainder -of the License, and in such case Affirmer hereby affirms that he or she -will not (i) exercise any of his or her remaining Copyright and Related -Rights in the Work or (ii) assert any associated claims and causes of -action with respect to the Work, in either case contrary to Affirmer's -express Statement of Purpose. - -4. Limitations and Disclaimers. - - a. No trademark or patent rights held by Affirmer are waived, abandoned, - surrendered, licensed or otherwise affected by this document. - b. Affirmer offers the Work as-is and makes no representations or - warranties of any kind concerning the Work, express, implied, - statutory or otherwise, including without limitation warranties of - title, merchantability, fitness for a particular purpose, non - infringement, or the absence of latent or other defects, accuracy, or - the present or absence of errors, whether or not discoverable, all to - the greatest extent permissible under applicable law. - c. Affirmer disclaims responsibility for clearing rights of other persons - that may apply to the Work or any use thereof, including without - limitation any person's Copyright and Related Rights in the Work. - Further, Affirmer disclaims responsibility for obtaining any necessary - consents, permissions or other rights required for any use of the - Work. - d. Affirmer understands and acknowledges that Creative Commons is not a - party to this document and has no duty or obligation with respect to - this CC0 or use of the Work. diff --git a/src/crypto/randomx/blake2/avx2/blake2.h b/src/crypto/randomx/blake2/avx2/blake2.h deleted file mode 100644 index a1ea671f..00000000 --- a/src/crypto/randomx/blake2/avx2/blake2.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef BLAKE2_AVX2_BLAKE2_H -#define BLAKE2_AVX2_BLAKE2_H - -#if !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) - #if defined(_MSC_VER) - #define INLINE __inline - #elif defined(__GNUC__) - #define INLINE __inline__ - #else - #define INLINE - #endif -#else - #define INLINE inline -#endif - -#if defined(_MSC_VER) -#define ALIGN(x) __declspec(align(x)) -#else -#define ALIGN(x) __attribute__((aligned(x))) -#endif - -enum blake2s_constant { - BLAKE2S_BLOCKBYTES = 64, - BLAKE2S_OUTBYTES = 32, - BLAKE2S_KEYBYTES = 32, - BLAKE2S_SALTBYTES = 8, - BLAKE2S_PERSONALBYTES = 8 -}; - -enum blake2b_constant { - BLAKE2B_BLOCKBYTES = 128, - BLAKE2B_OUTBYTES = 64, - BLAKE2B_KEYBYTES = 64, - BLAKE2B_SALTBYTES = 16, - BLAKE2B_PERSONALBYTES = 16 -}; - -#endif diff --git a/src/crypto/randomx/blake2/avx2/blake2b-common.h b/src/crypto/randomx/blake2/avx2/blake2b-common.h deleted file mode 100644 index f9803ee2..00000000 --- a/src/crypto/randomx/blake2/avx2/blake2b-common.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef BLAKE2_AVX2_BLAKE2B_COMMON_H -#define BLAKE2_AVX2_BLAKE2B_COMMON_H - -#include -#include -#include - -#include - -#include "blake2.h" - -#define LOAD128(p) _mm_load_si128( (__m128i *)(p) ) -#define STORE128(p,r) _mm_store_si128((__m128i *)(p), r) - -#define LOADU128(p) _mm_loadu_si128( (__m128i *)(p) ) -#define STOREU128(p,r) _mm_storeu_si128((__m128i *)(p), r) - -#define LOAD(p) _mm256_load_si256( (__m256i *)(p) ) -#define STORE(p,r) _mm256_store_si256((__m256i *)(p), r) - -#define LOADU(p) _mm256_loadu_si256( (__m256i *)(p) ) -#define STOREU(p,r) _mm256_storeu_si256((__m256i *)(p), r) - -static INLINE uint64_t LOADU64(void const * p) { - uint64_t v; - memcpy(&v, p, sizeof v); - return v; -} - -#define ROTATE16 _mm256_setr_epi8( 2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9, \ - 2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9 ) - -#define ROTATE24 _mm256_setr_epi8( 3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10, \ - 3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10 ) - -#define ADD(a, b) _mm256_add_epi64(a, b) -#define SUB(a, b) _mm256_sub_epi64(a, b) - -#define XOR(a, b) _mm256_xor_si256(a, b) -#define AND(a, b) _mm256_and_si256(a, b) -#define OR(a, b) _mm256_or_si256(a, b) - -#define ROT32(x) _mm256_shuffle_epi32((x), _MM_SHUFFLE(2, 3, 0, 1)) -#define ROT24(x) _mm256_shuffle_epi8((x), ROTATE24) -#define ROT16(x) _mm256_shuffle_epi8((x), ROTATE16) -#define ROT63(x) _mm256_or_si256(_mm256_srli_epi64((x), 63), ADD((x), (x))) - -#endif diff --git a/src/crypto/randomx/blake2/avx2/blake2b-load-avx2.h b/src/crypto/randomx/blake2/avx2/blake2b-load-avx2.h deleted file mode 100644 index 28278f40..00000000 --- a/src/crypto/randomx/blake2/avx2/blake2b-load-avx2.h +++ /dev/null @@ -1,340 +0,0 @@ -#ifndef BLAKE2_AVX2_BLAKE2B_LOAD_AVX2_H -#define BLAKE2_AVX2_BLAKE2B_LOAD_AVX2_H - -#define BLAKE2B_LOAD_MSG_0_1(b0) do { \ - t0 = _mm256_unpacklo_epi64(m0, m1); \ - t1 = _mm256_unpacklo_epi64(m2, m3); \ - b0 = _mm256_blend_epi32(t0, t1, 0xF0); \ -} while(0) - -#define BLAKE2B_LOAD_MSG_0_2(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m0, m1);\ -t1 = _mm256_unpackhi_epi64(m2, m3);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_0_3(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m7, m4);\ -t1 = _mm256_unpacklo_epi64(m5, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_0_4(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m7, m4);\ -t1 = _mm256_unpackhi_epi64(m5, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_1_1(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m7, m2);\ -t1 = _mm256_unpackhi_epi64(m4, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_1_2(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m5, m4);\ -t1 = _mm256_alignr_epi8(m3, m7, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_1_3(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m2, m0);\ -t1 = _mm256_blend_epi32(m5, m0, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_1_4(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m6, m1, 8);\ -t1 = _mm256_blend_epi32(m3, m1, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_2_1(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m6, m5, 8);\ -t1 = _mm256_unpackhi_epi64(m2, m7);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_2_2(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m4, m0);\ -t1 = _mm256_blend_epi32(m6, m1, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_2_3(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m5, m4, 8);\ -t1 = _mm256_unpackhi_epi64(m1, m3);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_2_4(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m2, m7);\ -t1 = _mm256_blend_epi32(m0, m3, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_3_1(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m3, m1);\ -t1 = _mm256_unpackhi_epi64(m6, m5);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_3_2(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m4, m0);\ -t1 = _mm256_unpacklo_epi64(m6, m7);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_3_3(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m1, m7, 8);\ -t1 = _mm256_shuffle_epi32(m2, _MM_SHUFFLE(1,0,3,2));\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_3_4(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m4, m3);\ -t1 = _mm256_unpacklo_epi64(m5, m0);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_4_1(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m4, m2);\ -t1 = _mm256_unpacklo_epi64(m1, m5);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_4_2(b0) \ -do { \ -t0 = _mm256_blend_epi32(m3, m0, 0x33);\ -t1 = _mm256_blend_epi32(m7, m2, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_4_3(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m7, m1, 8);\ -t1 = _mm256_alignr_epi8(m3, m5, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_4_4(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m6, m0);\ -t1 = _mm256_unpacklo_epi64(m6, m4);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_5_1(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m1, m3);\ -t1 = _mm256_unpacklo_epi64(m0, m4);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_5_2(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m6, m5);\ -t1 = _mm256_unpackhi_epi64(m5, m1);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_5_3(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m2, m0, 8);\ -t1 = _mm256_unpackhi_epi64(m3, m7);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_5_4(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m4, m6);\ -t1 = _mm256_alignr_epi8(m7, m2, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_6_1(b0) \ -do { \ -t0 = _mm256_blend_epi32(m0, m6, 0x33);\ -t1 = _mm256_unpacklo_epi64(m7, m2);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_6_2(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m2, m7);\ -t1 = _mm256_alignr_epi8(m5, m6, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_6_3(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m4, m0);\ -t1 = _mm256_blend_epi32(m4, m3, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_6_4(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m5, m3);\ -t1 = _mm256_shuffle_epi32(m1, _MM_SHUFFLE(1,0,3,2));\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_7_1(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m6, m3);\ -t1 = _mm256_blend_epi32(m1, m6, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_7_2(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m7, m5, 8);\ -t1 = _mm256_unpackhi_epi64(m0, m4);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_7_3(b0) \ -do { \ -t0 = _mm256_blend_epi32(m2, m1, 0x33);\ -t1 = _mm256_alignr_epi8(m4, m7, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_7_4(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m5, m0);\ -t1 = _mm256_unpacklo_epi64(m2, m3);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_8_1(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m3, m7);\ -t1 = _mm256_alignr_epi8(m0, m5, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_8_2(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m7, m4);\ -t1 = _mm256_alignr_epi8(m4, m1, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_8_3(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m5, m6);\ -t1 = _mm256_unpackhi_epi64(m6, m0);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_8_4(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m1, m2, 8);\ -t1 = _mm256_alignr_epi8(m2, m3, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_9_1(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m5, m4);\ -t1 = _mm256_unpackhi_epi64(m3, m0);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_9_2(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m1, m2);\ -t1 = _mm256_blend_epi32(m2, m3, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_9_3(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m6, m7);\ -t1 = _mm256_unpackhi_epi64(m4, m1);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_9_4(b0) \ -do { \ -t0 = _mm256_blend_epi32(m5, m0, 0x33);\ -t1 = _mm256_unpacklo_epi64(m7, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_10_1(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m0, m1);\ -t1 = _mm256_unpacklo_epi64(m2, m3);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_10_2(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m0, m1);\ -t1 = _mm256_unpackhi_epi64(m2, m3);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_10_3(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m7, m4);\ -t1 = _mm256_unpacklo_epi64(m5, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_10_4(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m7, m4);\ -t1 = _mm256_unpackhi_epi64(m5, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_11_1(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m7, m2);\ -t1 = _mm256_unpackhi_epi64(m4, m6);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_11_2(b0) \ -do { \ -t0 = _mm256_unpacklo_epi64(m5, m4);\ -t1 = _mm256_alignr_epi8(m3, m7, 8);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_11_3(b0) \ -do { \ -t0 = _mm256_unpackhi_epi64(m2, m0);\ -t1 = _mm256_blend_epi32(m5, m0, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#define BLAKE2B_LOAD_MSG_11_4(b0) \ -do { \ -t0 = _mm256_alignr_epi8(m6, m1, 8);\ -t1 = _mm256_blend_epi32(m3, m1, 0x33);\ -b0 = _mm256_blend_epi32(t0, t1, 0xF0);\ -} while(0) - -#endif - diff --git a/src/crypto/randomx/blake2/avx2/blake2b.h b/src/crypto/randomx/blake2/avx2/blake2b.h deleted file mode 100644 index a4598fd8..00000000 --- a/src/crypto/randomx/blake2/avx2/blake2b.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef BLAKE2_AVX2_BLAKE2B_H -#define BLAKE2_AVX2_BLAKE2B_H - -#include - -#if defined(__cplusplus) -extern "C" { -#endif - -int blake2b_avx2(void* out, size_t outlen, const void* in, size_t inlen); - -#if defined(__cplusplus) -} -#endif - -#endif diff --git a/src/crypto/randomx/blake2/avx2/blake2b_avx2.c b/src/crypto/randomx/blake2/avx2/blake2b_avx2.c deleted file mode 100644 index 6177ea19..00000000 --- a/src/crypto/randomx/blake2/avx2/blake2b_avx2.c +++ /dev/null @@ -1,141 +0,0 @@ -#include -#include -#include -#include - -#include "blake2.h" -#include "blake2b.h" -#include "blake2b-common.h" - -ALIGN(64) static const uint64_t blake2b_IV[8] = { - UINT64_C(0x6A09E667F3BCC908), UINT64_C(0xBB67AE8584CAA73B), - UINT64_C(0x3C6EF372FE94F82B), UINT64_C(0xA54FF53A5F1D36F1), - UINT64_C(0x510E527FADE682D1), UINT64_C(0x9B05688C2B3E6C1F), - UINT64_C(0x1F83D9ABFB41BD6B), UINT64_C(0x5BE0CD19137E2179), -}; - -#define BLAKE2B_G1_V1(a, b, c, d, m) do { \ - a = ADD(a, m); \ - a = ADD(a, b); d = XOR(d, a); d = ROT32(d); \ - c = ADD(c, d); b = XOR(b, c); b = ROT24(b); \ -} while(0) - -#define BLAKE2B_G2_V1(a, b, c, d, m) do { \ - a = ADD(a, m); \ - a = ADD(a, b); d = XOR(d, a); d = ROT16(d); \ - c = ADD(c, d); b = XOR(b, c); b = ROT63(b); \ -} while(0) - -#define BLAKE2B_DIAG_V1(a, b, c, d) do { \ - a = _mm256_permute4x64_epi64(a, _MM_SHUFFLE(2,1,0,3)); \ - d = _mm256_permute4x64_epi64(d, _MM_SHUFFLE(1,0,3,2)); \ - c = _mm256_permute4x64_epi64(c, _MM_SHUFFLE(0,3,2,1)); \ -} while(0) - -#define BLAKE2B_UNDIAG_V1(a, b, c, d) do { \ - a = _mm256_permute4x64_epi64(a, _MM_SHUFFLE(0,3,2,1)); \ - d = _mm256_permute4x64_epi64(d, _MM_SHUFFLE(1,0,3,2)); \ - c = _mm256_permute4x64_epi64(c, _MM_SHUFFLE(2,1,0,3)); \ -} while(0) - -#include "blake2b-load-avx2.h" - -#define BLAKE2B_ROUND_V1(a, b, c, d, r, m) do { \ - __m256i b0; \ - BLAKE2B_LOAD_MSG_ ##r ##_1(b0); \ - BLAKE2B_G1_V1(a, b, c, d, b0); \ - BLAKE2B_LOAD_MSG_ ##r ##_2(b0); \ - BLAKE2B_G2_V1(a, b, c, d, b0); \ - BLAKE2B_DIAG_V1(a, b, c, d); \ - BLAKE2B_LOAD_MSG_ ##r ##_3(b0); \ - BLAKE2B_G1_V1(a, b, c, d, b0); \ - BLAKE2B_LOAD_MSG_ ##r ##_4(b0); \ - BLAKE2B_G2_V1(a, b, c, d, b0); \ - BLAKE2B_UNDIAG_V1(a, b, c, d); \ -} while(0) - -#define BLAKE2B_ROUNDS_V1(a, b, c, d, m) do { \ - BLAKE2B_ROUND_V1(a, b, c, d, 0, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 1, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 2, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 3, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 4, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 5, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 6, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 7, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 8, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 9, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 10, (m)); \ - BLAKE2B_ROUND_V1(a, b, c, d, 11, (m)); \ -} while(0) - -#define DECLARE_MESSAGE_WORDS(m) \ - const __m256i m0 = _mm256_broadcastsi128_si256(LOADU128((m) + 0)); \ - const __m256i m1 = _mm256_broadcastsi128_si256(LOADU128((m) + 16)); \ - const __m256i m2 = _mm256_broadcastsi128_si256(LOADU128((m) + 32)); \ - const __m256i m3 = _mm256_broadcastsi128_si256(LOADU128((m) + 48)); \ - const __m256i m4 = _mm256_broadcastsi128_si256(LOADU128((m) + 64)); \ - const __m256i m5 = _mm256_broadcastsi128_si256(LOADU128((m) + 80)); \ - const __m256i m6 = _mm256_broadcastsi128_si256(LOADU128((m) + 96)); \ - const __m256i m7 = _mm256_broadcastsi128_si256(LOADU128((m) + 112)); \ - __m256i t0, t1; - -#define BLAKE2B_COMPRESS_V1(a, b, m, t0, t1, f0, f1) do { \ - DECLARE_MESSAGE_WORDS(m) \ - const __m256i iv0 = a; \ - const __m256i iv1 = b; \ - __m256i c = LOAD(&blake2b_IV[0]); \ - __m256i d = XOR( \ - LOAD(&blake2b_IV[4]), \ - _mm256_set_epi64x(f1, f0, t1, t0) \ - ); \ - BLAKE2B_ROUNDS_V1(a, b, c, d, m); \ - a = XOR(a, c); \ - b = XOR(b, d); \ - a = XOR(a, iv0); \ - b = XOR(b, iv1); \ -} while(0) - -int blake2b_avx2(void* out_ptr, size_t outlen, const void* in_ptr, size_t inlen) { - const __m256i parameter_block = _mm256_set_epi64x(0, 0, 0, 0x01010000UL | (uint32_t)outlen); - ALIGN(64) uint8_t buffer[BLAKE2B_BLOCKBYTES]; - __m256i a = XOR(LOAD(&blake2b_IV[0]), parameter_block); - __m256i b = LOAD(&blake2b_IV[4]); - uint64_t counter = 0; - const uint8_t* in = (const uint8_t*)in_ptr; - do { - const uint64_t flag = (inlen <= BLAKE2B_BLOCKBYTES) ? -1 : 0; - size_t block_size = BLAKE2B_BLOCKBYTES; - if(inlen < BLAKE2B_BLOCKBYTES) { - memcpy(buffer, in, inlen); - memset(buffer + inlen, 0, BLAKE2B_BLOCKBYTES - inlen); - block_size = inlen; - in = buffer; - } - counter += block_size; - BLAKE2B_COMPRESS_V1(a, b, in, counter, 0, flag, 0); - inlen -= block_size; - in += block_size; - } while(inlen > 0); - - uint8_t* out = (uint8_t*)out_ptr; - - switch (outlen) { - case 64: - STOREU(out + 32, b); - // Fall through - - case 32: - STOREU(out, a); - break; - - default: - STOREU(buffer, a); - STOREU(buffer + 32, b); - memcpy(out, buffer, outlen); - break; - } - - _mm256_zeroupper(); - return 0; -} diff --git a/src/crypto/randomx/blake2/blake2.h b/src/crypto/randomx/blake2/blake2.h index dc81a593..52f05b39 100644 --- a/src/crypto/randomx/blake2/blake2.h +++ b/src/crypto/randomx/blake2/blake2.h @@ -92,12 +92,7 @@ extern "C" { int rx_blake2b_final(blake2b_state *S, void *out, size_t outlen); /* Simple API */ - void rx_blake2b_compress_integer(blake2b_state * S, const uint8_t * block); - void rx_blake2b_compress_sse41(blake2b_state * S, const uint8_t * block); - int rx_blake2b_default(void* out, size_t outlen, const void* in, size_t inlen); - - extern void (*rx_blake2b_compress)(blake2b_state * S, const uint8_t * block); - extern int (*rx_blake2b)(void* out, size_t outlen, const void* in, size_t inlen); + int rx_blake2b(void *out, size_t outlen, const void *in, size_t inlen); /* Argon2 Team - Begin Code */ int rxa2_blake2b_long(void *out, size_t outlen, const void *in, size_t inlen); diff --git a/src/crypto/randomx/blake2/blake2b.c b/src/crypto/randomx/blake2/blake2b.c index 6840c75f..49329e46 100644 --- a/src/crypto/randomx/blake2/blake2b.c +++ b/src/crypto/randomx/blake2/blake2b.c @@ -179,7 +179,7 @@ int rx_blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, size_t return 0; } -void rx_blake2b_compress_integer(blake2b_state *S, const uint8_t *block) { +static void rx_blake2b_compress_integer(blake2b_state *S, const uint8_t *block) { uint64_t m[16]; uint64_t v[16]; unsigned int i, r; @@ -237,6 +237,21 @@ void rx_blake2b_compress_integer(blake2b_state *S, const uint8_t *block) { #undef ROUND } +#if defined(XMRIG_FEATURE_SSE4_1) + +uint32_t rx_blake2b_use_sse41 = 0; +void rx_blake2b_compress_sse41(blake2b_state* S, const uint8_t* block); + +#define rx_blake2b_compress(S, block) \ + if (rx_blake2b_use_sse41) \ + rx_blake2b_compress_sse41(S, block); \ + else \ + rx_blake2b_compress_integer(S, block); + +#else +#define rx_blake2b_compress(S, block) rx_blake2b_compress_integer(S, block); +#endif + int rx_blake2b_update(blake2b_state *S, const void *in, size_t inlen) { const uint8_t *pin = (const uint8_t *)in; @@ -307,7 +322,7 @@ int rx_blake2b_final(blake2b_state *S, void *out, size_t outlen) { return 0; } -int rx_blake2b_default(void *out, size_t outlen, const void *in, size_t inlen) { +int rx_blake2b(void *out, size_t outlen, const void *in, size_t inlen) { blake2b_state S; int ret = -1; diff --git a/src/crypto/randomx/bytecode_machine.hpp b/src/crypto/randomx/bytecode_machine.hpp index 247e76e9..8852f4d6 100644 --- a/src/crypto/randomx/bytecode_machine.hpp +++ b/src/crypto/randomx/bytecode_machine.hpp @@ -240,17 +240,10 @@ namespace randomx { return x; } - void cleanup() { - for (unsigned i = 0; i < RegistersCount; ++i) { - registerUsage[i] = -1; - } - nreg = nullptr; - } - private: static const int_reg_t zero; - int registerUsage[RegistersCount] = {}; - NativeRegisterFile* nreg = nullptr; + int registerUsage[RegistersCount]; + NativeRegisterFile* nreg; static void* getScratchpadAddress(InstructionByteCode& ibc, uint8_t* scratchpad) { uint32_t addr = (*ibc.isrc + ibc.imm) & ibc.memMask; diff --git a/src/crypto/randomx/intrin_portable.h b/src/crypto/randomx/intrin_portable.h index 7e3641ea..df98a543 100644 --- a/src/crypto/randomx/intrin_portable.h +++ b/src/crypto/randomx/intrin_portable.h @@ -126,7 +126,6 @@ FORCE_INLINE rx_vec_f128 rx_set1_vec_f128(uint64_t x) { #define rx_xor_vec_f128 _mm_xor_pd #define rx_and_vec_f128 _mm_and_pd -#define rx_and_vec_i128 _mm_and_si128 #define rx_or_vec_f128 _mm_or_pd #ifdef __AES__ @@ -200,18 +199,7 @@ typedef union{ int i32[4]; } vec_u; -#ifdef HAVE_POSIX_MEMALIGN -inline void* rx_aligned_alloc(size_t size, size_t align) { - void* p; - if (posix_memalign(&p, align, size) == 0) - return p; - - return 0; -}; -#else -# define rx_aligned_alloc(a, b) malloc(a) -#endif - +#define rx_aligned_alloc(a, b) malloc(a) #define rx_aligned_free(a) free(a) #define rx_prefetch_nta(x) #define rx_prefetch_t0(x) @@ -290,10 +278,6 @@ FORCE_INLINE rx_vec_f128 rx_and_vec_f128(rx_vec_f128 a, rx_vec_f128 b) { return (rx_vec_f128)vec_and(a,b); } -FORCE_INLINE rx_vec_i128 rx_and_vec_i128(rx_vec_i128 a, rx_vec_i128 b) { - return (rx_vec_i128)vec_and(a, b); -} - FORCE_INLINE rx_vec_f128 rx_or_vec_f128(rx_vec_f128 a, rx_vec_f128 b) { return (rx_vec_f128)vec_or(a,b); } @@ -403,22 +387,15 @@ FORCE_INLINE rx_vec_f128 rx_cvt_packed_int_vec_f128(const void* addr) { typedef uint8x16_t rx_vec_i128; typedef float64x2_t rx_vec_f128; -#ifdef HAVE_POSIX_MEMALIGN inline void* rx_aligned_alloc(size_t size, size_t align) { - void* p; - if (posix_memalign(&p, align, size) == 0) - return p; + void* p; + if (posix_memalign(&p, align, size) == 0) + return p; - return 0; + return 0; }; -# define rx_aligned_free(a) free(a) -#elif defined(HAVE_ALIGNED_MALLOC) -# define rx_aligned_alloc(a, b) _aligned_malloc(a, b) -# define rx_aligned_free(a) _aligned_free(a) -#else -# define rx_aligned_alloc(a, b) malloc(a) -# define rx_aligned_free(a) free(a) -#endif + +#define rx_aligned_free(a) free(a) inline void rx_prefetch_nta(void* ptr) { asm volatile ("prfm pldl1strm, [%0]\n" : : "r" (ptr)); @@ -467,8 +444,6 @@ FORCE_INLINE rx_vec_f128 rx_and_vec_f128(rx_vec_f128 a, rx_vec_f128 b) { return vreinterpretq_f64_u8(vandq_u8(vreinterpretq_u8_f64(a), vreinterpretq_u8_f64(b))); } -#define rx_and_vec_i128 vandq_u8 - FORCE_INLINE rx_vec_f128 rx_or_vec_f128(rx_vec_f128 a, rx_vec_f128 b) { return vreinterpretq_f64_u8(vorrq_u8(vreinterpretq_u8_f64(a), vreinterpretq_u8_f64(b))); } @@ -560,23 +535,8 @@ typedef union { rx_vec_i128 i; } rx_vec_f128; -#ifdef HAVE_POSIX_MEMALIGN -inline void* rx_aligned_alloc(size_t size, size_t align) { - void* p; - if (posix_memalign(&p, align, size) == 0) - return p; - - return 0; -}; -# define rx_aligned_free(a) free(a) -#elif defined(HAVE_ALIGNED_MALLOC) -# define rx_aligned_alloc(a, b) _aligned_malloc(a, b) -# define rx_aligned_free(a) _aligned_free(a) -#else -# define rx_aligned_alloc(a, b) malloc(a) -# define rx_aligned_free(a) free(a) -#endif - +#define rx_aligned_alloc(a, b) malloc(a) +#define rx_aligned_free(a) free(a) #define rx_prefetch_nta(x) #define rx_prefetch_t0(x) @@ -675,13 +635,6 @@ FORCE_INLINE rx_vec_f128 rx_and_vec_f128(rx_vec_f128 a, rx_vec_f128 b) { return x; } -FORCE_INLINE rx_vec_i128 rx_and_vec_i128(rx_vec_i128 a, rx_vec_i128 b) { - rx_vec_i128 x; - x.u64[0] = a.u64[0] & b.u64[0]; - x.u64[1] = a.u64[1] & b.u64[1]; - return x; -} - FORCE_INLINE rx_vec_f128 rx_or_vec_f128(rx_vec_f128 a, rx_vec_f128 b) { rx_vec_f128 x; x.i.u64[0] = a.i.u64[0] | b.i.u64[0]; diff --git a/src/crypto/randomx/jit_compiler_a64.cpp b/src/crypto/randomx/jit_compiler_a64.cpp index 86050308..c4f0f002 100644 --- a/src/crypto/randomx/jit_compiler_a64.cpp +++ b/src/crypto/randomx/jit_compiler_a64.cpp @@ -94,7 +94,7 @@ static size_t CalcDatasetItemSize() // Main loop prologue ((uint8_t*)randomx_calc_dataset_item_aarch64_mix - ((uint8_t*)randomx_calc_dataset_item_aarch64_prefetch)) + 4 + // Inner main loop (instructions) - ((RandomX_ConfigurationBase::SuperscalarMaxLatency * 3) + 2) * 16 + + ((RandomX_ConfigurationBase::SuperscalarLatency * 3) + 2) * 16 + // Main loop epilogue ((uint8_t*)randomx_calc_dataset_item_aarch64_store_result - (uint8_t*)randomx_calc_dataset_item_aarch64_mix) + 4 ) + @@ -131,8 +131,8 @@ void JitCompilerA64::generateProgram(Program& program, ProgramConfiguration& con // and w16, w10, ScratchpadL3Mask64 emit32(0x121A0000 | 16 | (10 << 5) | ((RandomX_CurrentConfig.Log2_ScratchpadL3 - 7) << 10), code, codePos); - // and w17, w20, ScratchpadL3Mask64 - emit32(0x121A0000 | 17 | (20 << 5) | ((RandomX_CurrentConfig.Log2_ScratchpadL3 - 7) << 10), code, codePos); + // and w17, w18, ScratchpadL3Mask64 + emit32(0x121A0000 | 17 | (18 << 5) | ((RandomX_CurrentConfig.Log2_ScratchpadL3 - 7) << 10), code, codePos); codePos = PrologueSize; literalPos = ImulRcpLiteralsEnd; @@ -144,20 +144,22 @@ void JitCompilerA64::generateProgram(Program& program, ProgramConfiguration& con for (uint32_t i = 0; i < program.getSize(); ++i) { Instruction& instr = program(i); + instr.src %= RegistersCount; + instr.dst %= RegistersCount; (this->*engine[instr.opcode])(instr, codePos); } // Update spMix2 - // eor w20, config.readReg2, config.readReg3 - emit32(ARMV8A::EOR32 | 20 | (IntRegMap[config.readReg2] << 5) | (IntRegMap[config.readReg3] << 16), code, codePos); + // eor w18, config.readReg2, config.readReg3 + emit32(ARMV8A::EOR32 | 18 | (IntRegMap[config.readReg2] << 5) | (IntRegMap[config.readReg3] << 16), code, codePos); // Jump back to the main loop const uint32_t offset = (((uint8_t*)randomx_program_aarch64_vm_instructions_end) - ((uint8_t*)randomx_program_aarch64)) - codePos; emit32(ARMV8A::B | (offset / 4), code, codePos); - // and w20, w20, CacheLineAlignMask + // and w18, w18, CacheLineAlignMask codePos = (((uint8_t*)randomx_program_aarch64_cacheline_align_mask1) - ((uint8_t*)randomx_program_aarch64)); - emit32(0x121A0000 | 20 | (20 << 5) | ((RandomX_CurrentConfig.Log2_DatasetBaseSize - 7) << 10), code, codePos); + emit32(0x121A0000 | 18 | (18 << 5) | ((RandomX_CurrentConfig.Log2_DatasetBaseSize - 7) << 10), code, codePos); // and w10, w10, CacheLineAlignMask codePos = (((uint8_t*)randomx_program_aarch64_cacheline_align_mask2) - ((uint8_t*)randomx_program_aarch64)); @@ -189,8 +191,8 @@ void JitCompilerA64::generateProgramLight(Program& program, ProgramConfiguration // and w16, w10, ScratchpadL3Mask64 emit32(0x121A0000 | 16 | (10 << 5) | ((RandomX_CurrentConfig.Log2_ScratchpadL3 - 7) << 10), code, codePos); - // and w17, w20, ScratchpadL3Mask64 - emit32(0x121A0000 | 17 | (20 << 5) | ((RandomX_CurrentConfig.Log2_ScratchpadL3 - 7) << 10), code, codePos); + // and w17, w18, ScratchpadL3Mask64 + emit32(0x121A0000 | 17 | (18 << 5) | ((RandomX_CurrentConfig.Log2_ScratchpadL3 - 7) << 10), code, codePos); codePos = PrologueSize; literalPos = ImulRcpLiteralsEnd; @@ -202,12 +204,14 @@ void JitCompilerA64::generateProgramLight(Program& program, ProgramConfiguration for (uint32_t i = 0; i < program.getSize(); ++i) { Instruction& instr = program(i); + instr.src %= RegistersCount; + instr.dst %= RegistersCount; (this->*engine[instr.opcode])(instr, codePos); } // Update spMix2 - // eor w20, config.readReg2, config.readReg3 - emit32(ARMV8A::EOR32 | 20 | (IntRegMap[config.readReg2] << 5) | (IntRegMap[config.readReg3] << 16), code, codePos); + // eor w18, config.readReg2, config.readReg3 + emit32(ARMV8A::EOR32 | 18 | (IntRegMap[config.readReg2] << 5) | (IntRegMap[config.readReg3] << 16), code, codePos); // Jump back to the main loop const uint32_t offset = (((uint8_t*)randomx_program_aarch64_vm_instructions_end_light) - ((uint8_t*)randomx_program_aarch64)) - codePos; @@ -477,7 +481,7 @@ void JitCompilerA64::emitAddImmediate(uint32_t dst, uint32_t src, uint32_t imm, } else { - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMovImmediate(tmp_reg, imm, code, k); // add dst, src, tmp_reg @@ -526,7 +530,7 @@ void JitCompilerA64::emitMemLoadFP(uint32_t src, Instruction& instr, uint8_t* co uint32_t k = codePos; uint32_t imm = instr.getImm32(); - constexpr uint32_t tmp_reg = 19; + constexpr uint32_t tmp_reg = 18; imm &= instr.getModMem() ? (RandomX_CurrentConfig.ScratchpadL1_Size - 1) : (RandomX_CurrentConfig.ScratchpadL2_Size - 1); emitAddImmediate(tmp_reg, src, imm, code, k); @@ -580,7 +584,7 @@ void JitCompilerA64::h_IADD_M(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMemLoad(dst, src, instr, code, k); // add dst, dst, tmp_reg @@ -618,7 +622,7 @@ void JitCompilerA64::h_ISUB_M(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMemLoad(dst, src, instr, code, k); // sub dst, dst, tmp_reg @@ -637,7 +641,7 @@ void JitCompilerA64::h_IMUL_R(Instruction& instr, uint32_t& codePos) if (src == dst) { - src = 20; + src = 18; emitMovImmediate(src, instr.getImm32(), code, k); } @@ -655,7 +659,7 @@ void JitCompilerA64::h_IMUL_M(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMemLoad(dst, src, instr, code, k); // sub dst, dst, tmp_reg @@ -686,7 +690,7 @@ void JitCompilerA64::h_IMULH_M(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMemLoad(dst, src, instr, code, k); // umulh dst, dst, tmp_reg @@ -717,7 +721,7 @@ void JitCompilerA64::h_ISMULH_M(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMemLoad(dst, src, instr, code, k); // smulh dst, dst, tmp_reg @@ -735,7 +739,7 @@ void JitCompilerA64::h_IMUL_RCP(Instruction& instr, uint32_t& codePos) uint32_t k = codePos; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; const uint32_t dst = IntRegMap[instr.dst]; constexpr uint64_t N = 1ULL << 63; @@ -754,9 +758,9 @@ void JitCompilerA64::h_IMUL_RCP(Instruction& instr, uint32_t& codePos) literalPos -= sizeof(uint64_t); *(uint64_t*)(code + literalPos) = (q << shift) + ((r << shift) / divisor); - if (literal_id < 12) + if (literal_id < 13) { - static constexpr uint32_t literal_regs[12] = { 30 << 16, 29 << 16, 28 << 16, 27 << 16, 26 << 16, 25 << 16, 24 << 16, 23 << 16, 22 << 16, 21 << 16, 11 << 16, 0 }; + static constexpr uint32_t literal_regs[13] = { 30 << 16, 29 << 16, 28 << 16, 27 << 16, 26 << 16, 25 << 16, 24 << 16, 23 << 16, 22 << 16, 21 << 16, 20 << 16, 11 << 16, 0 }; // mul dst, dst, literal_reg emit32(ARMV8A::MUL | dst | (dst << 5) | literal_regs[literal_id], code, k); @@ -794,7 +798,7 @@ void JitCompilerA64::h_IXOR_R(Instruction& instr, uint32_t& codePos) if (src == dst) { - src = 20; + src = 18; emitMovImmediate(src, instr.getImm32(), code, k); } @@ -812,7 +816,7 @@ void JitCompilerA64::h_IXOR_M(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emitMemLoad(dst, src, instr, code, k); // eor dst, dst, tmp_reg @@ -850,7 +854,7 @@ void JitCompilerA64::h_IROL_R(Instruction& instr, uint32_t& codePos) if (src != dst) { - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; // sub tmp_reg, xzr, src emit32(ARMV8A::SUB | tmp_reg | (31 << 5) | (src << 16), code, k); @@ -878,7 +882,7 @@ void JitCompilerA64::h_ISWAP_R(Instruction& instr, uint32_t& codePos) uint32_t k = codePos; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; emit32(ARMV8A::MOV_REG | tmp_reg | (dst << 16), code, k); emit32(ARMV8A::MOV_REG | dst | (src << 16), code, k); emit32(ARMV8A::MOV_REG | src | (tmp_reg << 16), code, k); @@ -1026,7 +1030,7 @@ void JitCompilerA64::h_CFROUND(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; constexpr uint32_t fpcr_tmp_reg = 8; // ror tmp_reg, src, imm @@ -1050,7 +1054,7 @@ void JitCompilerA64::h_ISTORE(Instruction& instr, uint32_t& codePos) const uint32_t src = IntRegMap[instr.src]; const uint32_t dst = IntRegMap[instr.dst]; - constexpr uint32_t tmp_reg = 20; + constexpr uint32_t tmp_reg = 18; uint32_t imm = instr.getImm32(); diff --git a/src/crypto/randomx/jit_compiler_a64_static.S b/src/crypto/randomx/jit_compiler_a64_static.S index e019c6b4..95a5c92c 100644 --- a/src/crypto/randomx/jit_compiler_a64_static.S +++ b/src/crypto/randomx/jit_compiler_a64_static.S @@ -72,9 +72,9 @@ # x15 -> "r7" # x16 -> spAddr0 # x17 -> spAddr1 -# x18 -> unused (platform register, don't touch it) +# x18 -> temporary # x19 -> temporary -# x20 -> temporary +# x20 -> literal for IMUL_RCP # x21 -> literal for IMUL_RCP # x22 -> literal for IMUL_RCP # x23 -> literal for IMUL_RCP @@ -109,7 +109,7 @@ DECL(randomx_program_aarch64): # Save callee-saved registers sub sp, sp, 192 stp x16, x17, [sp] - str x19, [sp, 16] + stp x18, x19, [sp, 16] stp x20, x21, [sp, 32] stp x22, x23, [sp, 48] stp x24, x25, [sp, 64] @@ -164,6 +164,7 @@ DECL(randomx_program_aarch64): # Read literals ldr x0, literal_x0 ldr x11, literal_x11 + ldr x20, literal_x20 ldr x21, literal_x21 ldr x22, literal_x22 ldr x23, literal_x23 @@ -195,11 +196,11 @@ DECL(randomx_program_aarch64): DECL(randomx_program_aarch64_main_loop): # spAddr0 = spMix1 & ScratchpadL3Mask64; # spAddr1 = (spMix1 >> 32) & ScratchpadL3Mask64; - lsr x20, x10, 32 + lsr x18, x10, 32 # Actual mask will be inserted by JIT compiler and w16, w10, 1 - and w17, w20, 1 + and w17, w18, 1 # x16 = scratchpad + spAddr0 # x17 = scratchpad + spAddr1 @@ -207,31 +208,31 @@ DECL(randomx_program_aarch64_main_loop): add x17, x17, x2 # xor integer registers with scratchpad data (spAddr0) - ldp x20, x19, [x16] - eor x4, x4, x20 + ldp x18, x19, [x16] + eor x4, x4, x18 eor x5, x5, x19 - ldp x20, x19, [x16, 16] - eor x6, x6, x20 + ldp x18, x19, [x16, 16] + eor x6, x6, x18 eor x7, x7, x19 - ldp x20, x19, [x16, 32] - eor x12, x12, x20 + ldp x18, x19, [x16, 32] + eor x12, x12, x18 eor x13, x13, x19 - ldp x20, x19, [x16, 48] - eor x14, x14, x20 + ldp x18, x19, [x16, 48] + eor x14, x14, x18 eor x15, x15, x19 # Load group F registers (spAddr1) - ldpsw x20, x19, [x17] - ins v16.d[0], x20 + ldpsw x18, x19, [x17] + ins v16.d[0], x18 ins v16.d[1], x19 - ldpsw x20, x19, [x17, 8] - ins v17.d[0], x20 + ldpsw x18, x19, [x17, 8] + ins v17.d[0], x18 ins v17.d[1], x19 - ldpsw x20, x19, [x17, 16] - ins v18.d[0], x20 + ldpsw x18, x19, [x17, 16] + ins v18.d[0], x18 ins v18.d[1], x19 - ldpsw x20, x19, [x17, 24] - ins v19.d[0], x20 + ldpsw x18, x19, [x17, 24] + ins v19.d[0], x18 ins v19.d[1], x19 scvtf v16.2d, v16.2d scvtf v17.2d, v17.2d @@ -239,17 +240,17 @@ DECL(randomx_program_aarch64_main_loop): scvtf v19.2d, v19.2d # Load group E registers (spAddr1) - ldpsw x20, x19, [x17, 32] - ins v20.d[0], x20 + ldpsw x18, x19, [x17, 32] + ins v20.d[0], x18 ins v20.d[1], x19 - ldpsw x20, x19, [x17, 40] - ins v21.d[0], x20 + ldpsw x18, x19, [x17, 40] + ins v21.d[0], x18 ins v21.d[1], x19 - ldpsw x20, x19, [x17, 48] - ins v22.d[0], x20 + ldpsw x18, x19, [x17, 48] + ins v22.d[0], x18 ins v22.d[1], x19 - ldpsw x20, x19, [x17, 56] - ins v23.d[0], x20 + ldpsw x18, x19, [x17, 56] + ins v23.d[0], x18 ins v23.d[1], x19 scvtf v20.2d, v20.2d scvtf v21.2d, v21.2d @@ -272,6 +273,7 @@ DECL(randomx_program_aarch64_vm_instructions): literal_x0: .fill 1,8,0 literal_x11: .fill 1,8,0 +literal_x20: .fill 1,8,0 literal_x21: .fill 1,8,0 literal_x22: .fill 1,8,0 literal_x23: .fill 1,8,0 @@ -307,17 +309,17 @@ DECL(randomx_program_aarch64_vm_instructions_end): lsr x10, x9, 32 # mx ^= r[readReg2] ^ r[readReg3]; - eor x9, x9, x20 + eor x9, x9, x18 # Calculate dataset pointer for dataset prefetch - mov w20, w9 + mov w18, w9 DECL(randomx_program_aarch64_cacheline_align_mask1): # Actual mask will be inserted by JIT compiler - and x20, x20, 1 - add x20, x20, x1 + and x18, x18, 1 + add x18, x18, x1 # Prefetch dataset data - prfm pldl2strm, [x20] + prfm pldl2strm, [x18] # mx <-> ma ror x9, x9, 32 @@ -329,17 +331,17 @@ DECL(randomx_program_aarch64_cacheline_align_mask2): DECL(randomx_program_aarch64_xor_with_dataset_line): # xor integer registers with dataset data - ldp x20, x19, [x10] - eor x4, x4, x20 + ldp x18, x19, [x10] + eor x4, x4, x18 eor x5, x5, x19 - ldp x20, x19, [x10, 16] - eor x6, x6, x20 + ldp x18, x19, [x10, 16] + eor x6, x6, x18 eor x7, x7, x19 - ldp x20, x19, [x10, 32] - eor x12, x12, x20 + ldp x18, x19, [x10, 32] + eor x12, x12, x18 eor x13, x13, x19 - ldp x20, x19, [x10, 48] - eor x14, x14, x20 + ldp x18, x19, [x10, 48] + eor x14, x14, x18 eor x15, x15, x19 DECL(randomx_program_aarch64_update_spMix1): @@ -382,7 +384,7 @@ DECL(randomx_program_aarch64_update_spMix1): # Restore callee-saved registers ldp x16, x17, [sp] - ldr x19, [sp, 16] + ldp x18, x19, [sp, 16] ldp x20, x21, [sp, 32] ldp x22, x23, [sp, 48] ldp x24, x25, [sp, 64] @@ -403,7 +405,7 @@ DECL(randomx_program_aarch64_vm_instructions_end_light): stp x2, x30, [sp, 80] # mx ^= r[readReg2] ^ r[readReg3]; - eor x9, x9, x20 + eor x9, x9, x18 # mx <-> ma ror x9, x9, 32 @@ -445,8 +447,8 @@ DECL(randomx_program_aarch64_light_dataset_offset): # x3 -> end item DECL(randomx_init_dataset_aarch64): - # Save x20 (used as temporary, but must be saved to not break ABI) and x30 (return address) - stp x20, x30, [sp, -16]! + # Save x30 (return address) + str x30, [sp, -16]! # Load pointer to cache memory ldr x0, [x0] @@ -458,8 +460,8 @@ DECL(randomx_init_dataset_aarch64_main_loop): cmp x2, x3 bne DECL(randomx_init_dataset_aarch64_main_loop) - # Restore x20 and x30 - ldp x20, x30, [sp], 16 + # Restore x30 (return address) + ldr x30, [sp], 16 ret diff --git a/src/crypto/randomx/jit_compiler_fallback.cpp b/src/crypto/randomx/jit_compiler_fallback.cpp index f29d644e..369458a4 100644 --- a/src/crypto/randomx/jit_compiler_fallback.cpp +++ b/src/crypto/randomx/jit_compiler_fallback.cpp @@ -28,12 +28,13 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#pragma once + void randomx_set_huge_pages_jit(bool) { } - void randomx_set_optimized_dataset_init(int) { } diff --git a/src/crypto/randomx/jit_compiler_x86.cpp b/src/crypto/randomx/jit_compiler_x86.cpp index 51c50036..f7bfc2f9 100644 --- a/src/crypto/randomx/jit_compiler_x86.cpp +++ b/src/crypto/randomx/jit_compiler_x86.cpp @@ -167,11 +167,6 @@ namespace randomx { static const uint8_t* NOPX[] = { NOP1, NOP2, NOP3, NOP4, NOP5, NOP6, NOP7, NOP8, NOP9 }; - static const uint8_t NOP13[] = { 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x1F, 0x44, 0x00, 0x00 }; - static const uint8_t NOP14[] = { 0x0F, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00 }; - static const uint8_t NOP25[] = { 0x66, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 }; - static const uint8_t NOP26[] = { 0x66, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 }; - static const uint8_t JMP_ALIGN_PREFIX[14][16] = { {}, {0x2E}, @@ -262,14 +257,6 @@ namespace randomx { // AVX2 init is faster on Zen3 initDatasetAVX2 = true; break; - case xmrig::ICpuInfo::ARCH_ZEN4: - // AVX2 init is slower on Zen4 - initDatasetAVX2 = false; - break; - case xmrig::ICpuInfo::ARCH_ZEN5: - // AVX2 init is 49% faster on Zen5 - initDatasetAVX2 = true; - break; } } } @@ -316,19 +303,11 @@ namespace randomx { freePagedMemory(allocatedCode, allocatedSize); } - template - static FORCE_INLINE void prefetch_data(const void* data) { - rx_prefetch_nta(data); - prefetch_data(reinterpret_cast(data) + 64); - } - - template<> FORCE_INLINE void prefetch_data<0>(const void*) {} - - template static FORCE_INLINE void prefetch_data(const T& data) { prefetch_data<(sizeof(T) + 63) / 64>(&data); } - void JitCompilerX86::prepare() { - prefetch_data(engine); - prefetch_data(RandomX_CurrentConfig); + for (size_t i = 0; i < sizeof(engine); i += 64) + rx_prefetch_nta((const char*)(&engine) + i); + for (size_t i = 0; i < sizeof(RandomX_CurrentConfig); i += 64) + rx_prefetch_nta((const char*)(&RandomX_CurrentConfig) + i); } void JitCompilerX86::generateProgram(Program& prog, ProgramConfiguration& pcfg, uint32_t flags) { @@ -428,7 +407,7 @@ namespace randomx { *(uint32_t*)(code + codePos + 14) = RandomX_CurrentConfig.ScratchpadL3Mask64_Calculated; if (hasAVX) { uint32_t* p = (uint32_t*)(code + codePos + 61); - *p = (*p & 0xFF000000U) | 0x0077F8C5U; // vzeroupper + *p = (*p & 0xFF000000U) | 0x0077F8C5U; } # ifdef XMRIG_FIX_RYZEN @@ -440,8 +419,7 @@ namespace randomx { memcpy(imul_rcp_storage - 34, &pcfg.eMask, sizeof(pcfg.eMask)); codePos = codePosFirst; - prevCFROUND = -1; - prevFPOperation = -1; + prevCFROUND = 0; //mark all registers as used uint64_t* r = (uint64_t*)registerUsage; @@ -760,7 +738,7 @@ namespace randomx { template void JitCompilerX86::genAddressReg(const Instruction& instr, const uint32_t src, uint8_t* code, uint32_t& codePos); FORCE_INLINE void JitCompilerX86::genAddressRegDst(const Instruction& instr, uint8_t* code, uint32_t& codePos) { - const uint32_t dst = static_cast(instr.dst) << 16; + const uint32_t dst = static_cast(instr.dst % RegistersCount) << 16; *(uint32_t*)(code + codePos) = 0x24808d41 + dst; codePos += (dst == (RegisterNeedsSib << 16)) ? 4 : 3; @@ -780,8 +758,8 @@ namespace randomx { uint32_t pos = codePos; uint8_t* const p = code + pos; - const uint32_t dst = instr.dst; - const uint32_t sib = (instr.getModShift() << 6) | (instr.src << 3) | dst; + const uint32_t dst = instr.dst % RegistersCount; + const uint32_t sib = (instr.getModShift() << 6) | ((instr.src % RegistersCount) << 3) | dst; uint32_t k = 0x048d4f + (dst << 19); if (dst == RegisterNeedsDisplacement) @@ -800,8 +778,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -821,8 +799,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; if (src != dst) { *(uint32_t*)(p + pos) = 0xc02b4d + (dst << 19) + (src << 16); @@ -842,8 +820,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -863,8 +841,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; if (src != dst) { emit32(0xc0af0f4d + ((dst * 8 + src) << 24), p, pos); @@ -883,8 +861,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -904,8 +882,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; *(uint32_t*)(p + pos) = 0xc08b49 + (dst << 16); *(uint32_t*)(p + pos + 3) = 0xe0f749 + (src << 16); @@ -920,8 +898,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; *(uint32_t*)(p + pos) = 0xC4D08B49 + (dst << 16); *(uint32_t*)(p + pos + 4) = 0xC0F6FB42 + (dst << 27) + (src << 24); @@ -935,8 +913,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -959,8 +937,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -982,8 +960,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; *(uint64_t*)(p + pos) = 0x8b4ce8f749c08b49ull + (dst << 16) + (src << 40); pos += 8; @@ -997,8 +975,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -1023,7 +1001,7 @@ namespace randomx { uint64_t divisor = instr.getImm32(); if (!isZeroOrPowerOf2(divisor)) { - const uint32_t dst = instr.dst; + const uint32_t dst = instr.dst % RegistersCount; const uint64_t reciprocal = randomx_reciprocal_fast(divisor); if (imul_rcp_storage_used < 16) { @@ -1052,7 +1030,7 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t dst = instr.dst; + const uint32_t dst = instr.dst % RegistersCount; *(uint32_t*)(p + pos) = 0xd8f749 + (dst << 16); pos += 3; @@ -1064,8 +1042,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { *(uint32_t*)(p + pos) = 0xc0334d + (((dst << 3) + src) << 16); @@ -1085,8 +1063,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { genAddressReg(instr, src, p, pos); @@ -1106,8 +1084,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { *(uint64_t*)(p + pos) = 0xc8d349c88b41ull + (src << 16) + (dst << 40); @@ -1127,8 +1105,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t src = instr.src; - const uint64_t dst = instr.dst; + const uint64_t src = instr.src % RegistersCount; + const uint64_t dst = instr.dst % RegistersCount; if (src != dst) { *(uint64_t*)(p + pos) = 0xc0d349c88b41ull + (src << 16) + (dst << 40); @@ -1148,8 +1126,8 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint32_t src = instr.src; - const uint32_t dst = instr.dst; + const uint32_t src = instr.src % RegistersCount; + const uint32_t dst = instr.dst % RegistersCount; if (src != dst) { *(uint32_t*)(p + pos) = 0xc0874d + (((dst << 3) + src) << 16); @@ -1165,7 +1143,7 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const uint64_t dst = instr.dst; + const uint64_t dst = instr.dst % RegistersCount; *(uint64_t*)(p + pos) = 0x01c0c60f66ull + (((dst << 3) + dst) << 24); pos += 5; @@ -1177,7 +1155,7 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; const uint64_t dst = instr.dst % RegisterCountFlt; const uint64_t src = instr.src % RegisterCountFlt; @@ -1192,9 +1170,9 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; - const uint32_t src = instr.src; + const uint32_t src = instr.src % RegistersCount; const uint32_t dst = instr.dst % RegisterCountFlt; genAddressReg(instr, src, p, pos); @@ -1209,7 +1187,7 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; const uint64_t dst = instr.dst % RegisterCountFlt; const uint64_t src = instr.src % RegisterCountFlt; @@ -1224,9 +1202,9 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; - const uint32_t src = instr.src; + const uint32_t src = instr.src % RegistersCount; const uint32_t dst = instr.dst % RegisterCountFlt; genAddressReg(instr, src, p, pos); @@ -1252,7 +1230,7 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; const uint64_t dst = instr.dst % RegisterCountFlt; const uint64_t src = instr.src % RegisterCountFlt; @@ -1267,9 +1245,9 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; - const uint32_t src = instr.src; + const uint32_t src = instr.src % RegistersCount; const uint64_t dst = instr.dst % RegisterCountFlt; genAddressReg(instr, src, p, pos); @@ -1294,7 +1272,7 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - prevFPOperation = pos; + prevCFROUND = 0; const uint32_t dst = instr.dst % RegisterCountFlt; @@ -1305,21 +1283,24 @@ namespace randomx { void JitCompilerX86::h_CFROUND(const Instruction& instr) { uint8_t* const p = code; - int32_t t = prevCFROUND; + uint32_t pos = prevCFROUND; - if (t > prevFPOperation) { + if (pos) { if (vm_flags & RANDOMX_FLAG_AMD) { - memcpy(p + t, NOP26, 26); + memcpy(p + pos + 0, NOP9, 9); + memcpy(p + pos + 9, NOP9, 9); + memcpy(p + pos + 18, NOP8, 8); } else { - memcpy(p + t, NOP14, 14); + memcpy(p + pos + 0, NOP8, 8); + memcpy(p + pos + 8, NOP6, 6); } } - uint32_t pos = codePos; + pos = codePos; prevCFROUND = pos; - const uint32_t src = instr.src; + const uint32_t src = instr.src % RegistersCount; *(uint32_t*)(p + pos) = 0x00C08B49 + (src << 16); const int rotate = (static_cast(instr.getImm32() & 63) - 2) & 63; @@ -1341,21 +1322,24 @@ namespace randomx { void JitCompilerX86::h_CFROUND_BMI2(const Instruction& instr) { uint8_t* const p = code; - int32_t t = prevCFROUND; + uint32_t pos = prevCFROUND; - if (t > prevFPOperation) { + if (pos) { if (vm_flags & RANDOMX_FLAG_AMD) { - memcpy(p + t, NOP25, 25); + memcpy(p + pos + 0, NOP9, 9); + memcpy(p + pos + 9, NOP9, 9); + memcpy(p + pos + 18, NOP7, 7); } else { - memcpy(p + t, NOP13, 13); + memcpy(p + pos + 0, NOP8, 8); + memcpy(p + pos + 8, NOP5, 5); } } - uint32_t pos = codePos; + pos = codePos; prevCFROUND = pos; - const uint64_t src = instr.src; + const uint64_t src = instr.src % RegistersCount; const uint64_t rotate = (static_cast(instr.getImm32() & 63) - 2) & 63; *(uint64_t*)(p + pos) = 0xC0F0FBC3C4ULL | (src << 32) | (rotate << 40); @@ -1379,15 +1363,10 @@ namespace randomx { uint8_t* const p = code; uint32_t pos = codePos; - const int reg = instr.dst; - int32_t jmp_offset = registerUsage[reg]; + prevCFROUND = 0; - // if it jumps over the previous FP instruction that uses rounding, treat it as if FP instruction happened now - if (jmp_offset <= prevFPOperation) { - prevFPOperation = pos; - } - - jmp_offset -= pos + 16; + const int reg = instr.dst % RegistersCount; + int32_t jmp_offset = registerUsage[reg] - (pos + 16); if (jccErratum) { const uint32_t branch_begin = static_cast(pos + 7); @@ -1438,7 +1417,7 @@ namespace randomx { uint32_t pos = codePos; genAddressRegDst(instr, p, pos); - emit32(0x0604894c + (static_cast(instr.src) << 19), p, pos); + emit32(0x0604894c + (static_cast(instr.src % RegistersCount) << 19), p, pos); codePos = pos; } diff --git a/src/crypto/randomx/jit_compiler_x86.hpp b/src/crypto/randomx/jit_compiler_x86.hpp index 15261922..abc8e74f 100644 --- a/src/crypto/randomx/jit_compiler_x86.hpp +++ b/src/crypto/randomx/jit_compiler_x86.hpp @@ -89,8 +89,7 @@ namespace randomx { uint32_t codePos = 0; uint32_t codePosFirst = 0; uint32_t vm_flags = 0; - int32_t prevCFROUND = -1; - int32_t prevFPOperation = -1; + uint32_t prevCFROUND = 0; # ifdef XMRIG_FIX_RYZEN std::pair mainLoopBounds; diff --git a/src/crypto/randomx/randomx.cpp b/src/crypto/randomx/randomx.cpp index 1126c7a2..b7a3ecaf 100644 --- a/src/crypto/randomx/randomx.cpp +++ b/src/crypto/randomx/randomx.cpp @@ -100,18 +100,17 @@ RandomX_ConfigurationSafex::RandomX_ConfigurationSafex() ArgonSalt = "RandomSFX\x01"; } -RandomX_ConfigurationYada::RandomX_ConfigurationYada() +RandomX_ConfigurationKeva::RandomX_ConfigurationKeva() { - ArgonSalt = "RandomXYadaCoin\x03"; - SuperscalarLatency = 150; - ArgonIterations = 4; + ArgonSalt = "RandomKV\x01"; + ScratchpadL2_Size = 131072; + ScratchpadL3_Size = 1048576; } RandomX_ConfigurationBase::RandomX_ConfigurationBase() : ArgonIterations(3) , ArgonLanes(1) , ArgonSalt("RandomX\x03") - , SuperscalarLatency(170) , ScratchpadL1_Size(16384) , ScratchpadL2_Size(262144) , ScratchpadL3_Size(2097152) @@ -261,7 +260,7 @@ typedef void(randomx::JitCompilerX86::* InstructionGeneratorX86_2)(const randomx #define JIT_HANDLE(x, prev) do { \ const InstructionGeneratorX86_2 p = &randomx::JitCompilerX86::h_##x; \ - memcpy(randomx::JitCompilerX86::engine + k, &p, sizeof(randomx::JitCompilerX86::engine[k])); \ + memcpy(randomx::JitCompilerX86::engine + k, &p, sizeof(p)); \ } while (0) #elif (XMRIG_ARM == 8) @@ -296,7 +295,7 @@ typedef void(randomx::JitCompilerX86::* InstructionGeneratorX86_2)(const randomx INST_HANDLE(IMUL_R, ISUB_M); INST_HANDLE(IMUL_M, IMUL_R); -#if defined(XMRIG_FEATURE_ASM) && (defined(_M_X64) || defined(__x86_64__)) +#if defined(_M_X64) || defined(__x86_64__) if (hasBMI2) { INST_HANDLE2(IMULH_R, IMULH_R_BMI2, IMUL_M); INST_HANDLE2(IMULH_M, IMULH_M_BMI2, IMULH_R); @@ -338,7 +337,7 @@ typedef void(randomx::JitCompilerX86::* InstructionGeneratorX86_2)(const randomx INST_HANDLE(CBRANCH, FSQRT_R); #endif -#if defined(XMRIG_FEATURE_ASM) && (defined(_M_X64) || defined(__x86_64__)) +#if defined(_M_X64) || defined(__x86_64__) if (hasBMI2) { INST_HANDLE2(CFROUND, CFROUND_BMI2, CBRANCH); } @@ -358,7 +357,7 @@ RandomX_ConfigurationWownero RandomX_WowneroConfig; RandomX_ConfigurationArqma RandomX_ArqmaConfig; RandomX_ConfigurationGraft RandomX_GraftConfig; RandomX_ConfigurationSafex RandomX_SafexConfig; -RandomX_ConfigurationYada RandomX_YadaConfig; +RandomX_ConfigurationKeva RandomX_KevaConfig; alignas(64) RandomX_ConfigurationBase RandomX_CurrentConfig; diff --git a/src/crypto/randomx/randomx.h b/src/crypto/randomx/randomx.h index c2d24444..ae55c726 100644 --- a/src/crypto/randomx/randomx.h +++ b/src/crypto/randomx/randomx.h @@ -69,7 +69,7 @@ struct RandomX_ConfigurationBase { ArgonMemory = 262144, CacheAccesses = 8, - SuperscalarMaxLatency = 170, + SuperscalarLatency = 170, DatasetBaseSize = 2147483648, DatasetExtraSize = 33554368, JumpBits = 8, @@ -82,7 +82,6 @@ struct RandomX_ConfigurationBase uint32_t ArgonIterations; uint32_t ArgonLanes; const char* ArgonSalt; - uint32_t SuperscalarLatency; uint32_t ScratchpadL1_Size; uint32_t ScratchpadL2_Size; @@ -147,14 +146,14 @@ struct RandomX_ConfigurationWownero : public RandomX_ConfigurationBase { RandomX struct RandomX_ConfigurationArqma : public RandomX_ConfigurationBase { RandomX_ConfigurationArqma(); }; struct RandomX_ConfigurationGraft : public RandomX_ConfigurationBase { RandomX_ConfigurationGraft(); }; struct RandomX_ConfigurationSafex : public RandomX_ConfigurationBase { RandomX_ConfigurationSafex(); }; -struct RandomX_ConfigurationYada : public RandomX_ConfigurationBase { RandomX_ConfigurationYada(); }; +struct RandomX_ConfigurationKeva : public RandomX_ConfigurationBase { RandomX_ConfigurationKeva(); }; extern RandomX_ConfigurationMonero RandomX_MoneroConfig; extern RandomX_ConfigurationWownero RandomX_WowneroConfig; extern RandomX_ConfigurationArqma RandomX_ArqmaConfig; extern RandomX_ConfigurationGraft RandomX_GraftConfig; extern RandomX_ConfigurationSafex RandomX_SafexConfig; -extern RandomX_ConfigurationYada RandomX_YadaConfig; +extern RandomX_ConfigurationKeva RandomX_KevaConfig; extern RandomX_ConfigurationBase RandomX_CurrentConfig; diff --git a/src/crypto/randomx/vm_interpreted.cpp b/src/crypto/randomx/vm_interpreted.cpp index 9973a228..840ea768 100644 --- a/src/crypto/randomx/vm_interpreted.cpp +++ b/src/crypto/randomx/vm_interpreted.cpp @@ -104,8 +104,6 @@ namespace randomx { for (unsigned i = 0; i < RegisterCountFlt; ++i) rx_store_vec_f128(®.e[i].lo, nreg.e[i]); - - cleanup(); } template diff --git a/src/crypto/rx/Rx.cpp b/src/crypto/rx/Rx.cpp index 1d9fa293..dae49655 100644 --- a/src/crypto/rx/Rx.cpp +++ b/src/crypto/rx/Rx.cpp @@ -18,7 +18,6 @@ */ #include "crypto/rx/Rx.h" -#include "backend/cpu/Cpu.h" #include "backend/cpu/CpuConfig.h" #include "backend/cpu/CpuThreads.h" #include "crypto/rx/RxConfig.h" @@ -85,16 +84,6 @@ void xmrig::Rx::init(IRxListener *listener) } -#include "crypto/randomx/blake2/blake2.h" -#if defined(XMRIG_FEATURE_AVX2) -#include "crypto/randomx/blake2/avx2/blake2b.h" -#endif - - -void (*rx_blake2b_compress)(blake2b_state* S, const uint8_t * block) = rx_blake2b_compress_integer; -int (*rx_blake2b)(void* out, size_t outlen, const void* in, size_t inlen) = rx_blake2b_default; - - template bool xmrig::Rx::init(const T &seed, const RxConfig &config, const CpuConfig &cpu) { @@ -144,19 +133,6 @@ bool xmrig::Rx::init(const T &seed, const RxConfig &config, const CpuConfig &cpu if (!cpu.isHwAES()) { SelectSoftAESImpl(cpu.threads().get(seed.algorithm()).count()); } - -# if defined(XMRIG_FEATURE_SSE4_1) - if (Cpu::info()->has(ICpuInfo::FLAG_SSE41)) { - rx_blake2b_compress = rx_blake2b_compress_sse41; - } -# endif - -#if defined(XMRIG_FEATURE_AVX2) - if (Cpu::info()->has(ICpuInfo::FLAG_AVX2)) { - rx_blake2b = blake2b_avx2; - } -# endif - osInitialized = true; } diff --git a/src/crypto/rx/RxAlgo.cpp b/src/crypto/rx/RxAlgo.cpp index 0de9694b..770d2acd 100644 --- a/src/crypto/rx/RxAlgo.cpp +++ b/src/crypto/rx/RxAlgo.cpp @@ -44,8 +44,8 @@ const RandomX_ConfigurationBase *xmrig::RxAlgo::base(Algorithm::Id algorithm) case Algorithm::RX_SFX: return &RandomX_SafexConfig; - case Algorithm::RX_YADA: - return &RandomX_YadaConfig; + case Algorithm::RX_KEVA: + return &RandomX_KevaConfig; default: break; diff --git a/src/crypto/rx/RxBasicStorage.cpp b/src/crypto/rx/RxBasicStorage.cpp index 9e43adf4..eacb6295 100644 --- a/src/crypto/rx/RxBasicStorage.cpp +++ b/src/crypto/rx/RxBasicStorage.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2018-2019 tevador - * Copyright (c) 2018-2024 SChernykh - * Copyright (c) 2016-2024 XMRig , + * Copyright (c) 2018-2020 SChernykh + * Copyright (c) 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,9 @@ * along with this program. If not, see . */ + #include "crypto/rx/RxBasicStorage.h" +#include "backend/common/Tags.h" #include "base/io/log/Log.h" #include "base/io/log/Tags.h" #include "base/tools/Chrono.h" diff --git a/src/crypto/rx/RxConfig.cpp b/src/crypto/rx/RxConfig.cpp index 05a403ba..1cd6f6eb 100644 --- a/src/crypto/rx/RxConfig.cpp +++ b/src/crypto/rx/RxConfig.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +22,11 @@ #include "base/io/json/Json.h" +#ifdef XMRIG_FEATURE_HWLOC +# include "backend/cpu/platform/HwlocCpuInfo.h" +#endif + + #include #include #include @@ -53,15 +58,12 @@ static const std::array modeNames = { "auto", " #ifdef XMRIG_FEATURE_MSR -constexpr size_t kMsrArraySize = 7; +constexpr size_t kMsrArraySize = 5; static const std::array msrPresets = { MsrItems(), MsrItems{{ 0xC0011020, 0ULL }, { 0xC0011021, 0x40ULL, ~0x20ULL }, { 0xC0011022, 0x1510000ULL }, { 0xC001102b, 0x2000cc16ULL }}, - MsrItems{{ 0xC0011020, 0x0004480000000000ULL }, { 0xC0011021, 0x001c000200000040ULL, ~0x20ULL }, { 0xC0011022, 0xc000000401570000ULL }, { 0xC001102b, 0x2000cc10ULL }}, - MsrItems{{ 0xC0011020, 0x0004400000000000ULL }, { 0xC0011021, 0x0004000000000040ULL, ~0x20ULL }, { 0xC0011022, 0x8680000401570000ULL }, { 0xC001102b, 0x2040cc10ULL }}, - MsrItems{{ 0xC0011020, 0x0004400000000000ULL }, { 0xC0011021, 0x0004000000000040ULL, ~0x20ULL }, { 0xC0011022, 0x8680000401570000ULL }, { 0xC001102b, 0x2040cc10ULL }}, - + MsrItems{{ 0xC0011020, 0x0004480000000000ULL }, { 0xC0011021, 0x001c000200000040ULL, ~0x20ULL }, { 0xC0011022, 0xc000000401500000ULL }, { 0xC001102b, 0x2000cc14ULL }}, MsrItems{{ 0x1a4, 0xf }}, MsrItems() }; @@ -187,7 +189,7 @@ std::vector xmrig::RxConfig::nodeset() const return m_nodeset; } - return (m_numa && Cpu::info()->nodes() > 1) ? Cpu::info()->nodeset() : std::vector(); + return (m_numa && Cpu::info()->nodes() > 1) ? static_cast(Cpu::info())->nodeset() : std::vector(); } #endif @@ -253,12 +255,10 @@ void xmrig::RxConfig::readMSR(const rapidjson::Value &value) return; } - if (value.IsInt()) { + if (value.IsInt() && Cpu::info()->vendor() == ICpuInfo::VENDOR_INTEL) { const int i = std::min(value.GetInt(), 15); if (i >= 0) { - if (Cpu::info()->vendor() == ICpuInfo::VENDOR_INTEL) { - m_msrPreset.emplace_back(0x1a4, i); - } + m_msrPreset.emplace_back(0x1a4, i); } else { m_wrmsr = false; diff --git a/src/crypto/rx/RxConfig.h b/src/crypto/rx/RxConfig.h index e8662e4d..e4fb4f89 100644 --- a/src/crypto/rx/RxConfig.h +++ b/src/crypto/rx/RxConfig.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -123,7 +123,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_RXCONFIG_H +#endif /* XMRIG_RXCONFIG_H */ diff --git a/src/crypto/rx/RxNUMAStorage.cpp b/src/crypto/rx/RxNUMAStorage.cpp index cc66d76e..b6345a06 100644 --- a/src/crypto/rx/RxNUMAStorage.cpp +++ b/src/crypto/rx/RxNUMAStorage.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2018-2019 tevador - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ #include "crypto/rx/RxNUMAStorage.h" #include "backend/cpu/Cpu.h" +#include "backend/cpu/platform/HwlocCpuInfo.h" #include "base/io/log/Log.h" #include "base/io/log/Tags.h" #include "base/kernel/Platform.h" @@ -44,12 +45,13 @@ static std::mutex mutex; static bool bindToNUMANode(uint32_t nodeId) { - auto node = hwloc_get_numanode_obj_by_os_index(Cpu::info()->topology(), nodeId); + auto cpu = static_cast(Cpu::info()); + hwloc_obj_t node = hwloc_get_numanode_obj_by_os_index(cpu->topology(), nodeId); if (!node) { return false; } - if (Cpu::info()->membind(node->nodeset)) { + if (cpu->membind(node->nodeset)) { Platform::setThreadAffinity(static_cast(hwloc_bitmap_first(node->cpuset))); return true; diff --git a/src/crypto/rx/RxQueue.cpp b/src/crypto/rx/RxQueue.cpp index 489a7bc7..86b63327 100644 --- a/src/crypto/rx/RxQueue.cpp +++ b/src/crypto/rx/RxQueue.cpp @@ -154,8 +154,6 @@ void xmrig::RxQueue::backgroundInit() continue; } - // Update seed here again in case there was more than one item in the queue - m_seed = item.seed; m_state = STATE_IDLE; m_async->send(); } diff --git a/src/crypto/rx/RxVm.cpp b/src/crypto/rx/RxVm.cpp index acaa25e0..f4b37375 100644 --- a/src/crypto/rx/RxVm.cpp +++ b/src/crypto/rx/RxVm.cpp @@ -25,6 +25,11 @@ #include "crypto/rx/RxVm.h" +#if defined(XMRIG_FEATURE_SSE4_1) +extern "C" uint32_t rx_blake2b_use_sse41; +#endif + + randomx_vm *xmrig::RxVm::create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, const Assembly &assembly, uint32_t node) { int flags = 0; @@ -46,6 +51,10 @@ randomx_vm *xmrig::RxVm::create(RxDataset *dataset, uint8_t *scratchpad, bool so flags |= RANDOMX_FLAG_AMD; } +# if defined(XMRIG_FEATURE_SSE4_1) + rx_blake2b_use_sse41 = Cpu::info()->has(ICpuInfo::FLAG_SSE41) ? 1 : 0; +# endif + return randomx_create_vm(static_cast(flags), !dataset->get() ? dataset->cache()->get() : nullptr, dataset->get(), scratchpad, node); } diff --git a/src/donate.h b/src/donate.h index 206b1b8f..5db3badc 100644 --- a/src/donate.h +++ b/src/donate.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2022 SChernykh - * Copyright (c) 2016-2022 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,22 +23,22 @@ /* * Dev donation. * - * Percentage of your hashing power that you want to donate to the developer can be 0% but supports XMRig Development. + * Percentage of your hashing power that you want to donate to the developer, can be 0 if you don't want to do that. * * Example of how it works for the setting of 1%: - * Your miner will mine into your usual pool for a random time (in a range from 49.5 to 148.5 minutes), + * You miner will mine into your usual pool for random time (in range from 49.5 to 148.5 minutes), * then switch to the developer's pool for 1 minute, then switch again to your pool for 99 minutes - * and then switch again to developer's pool for 1 minute; these rounds will continue until the miner stops. + * and then switch again to developer's pool for 1 minute, these rounds will continue until miner working. * - * Randomised only on the first round to prevent waves on the donation pool. + * Randomised only first round, to prevent waves on the donation pool. * - * Switching is instant and only happens after a successful connection, so you never lose any hashes. + * Switching is instant, and only happens after a successful connection, so you never loose any hashes. * - * If you plan on changing donations to 0%, please consider making a one-off donation to my wallet: + * If you plan on changing this setting to 0 please consider making a one off donation to my wallet: * XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD */ constexpr const int kDefaultDonateLevel = 1; constexpr const int kMinimumDonateLevel = 1; -#endif // XMRIG_DONATE_H +#endif /* XMRIG_DONATE_H */ diff --git a/src/hw/dmi/DmiReader.cpp b/src/hw/dmi/DmiReader.cpp index ac73b768..1e12603c 100644 --- a/src/hw/dmi/DmiReader.cpp +++ b/src/hw/dmi/DmiReader.cpp @@ -1,8 +1,8 @@ /* XMRig * Copyright (c) 2000-2002 Alan Cox * Copyright (c) 2005-2020 Jean Delvare - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -88,6 +88,7 @@ bool xmrig::DmiReader::decode(uint8_t *buf) } uint8_t *data = buf; + int i = 0; while (data + 4 <= buf + m_size) { dmi_header h{}; @@ -96,6 +97,7 @@ bool xmrig::DmiReader::decode(uint8_t *buf) if (h.length < 4 || h.type == 127) { break; } + i++; uint8_t *next = data + h.length; while (static_cast(next - buf + 1) < m_size && (next[0] != 0 || next[1] != 0)) { diff --git a/src/hw/dmi/DmiReader_mac.cpp b/src/hw/dmi/DmiReader_mac.cpp index bf9eb376..a23bfe47 100644 --- a/src/hw/dmi/DmiReader_mac.cpp +++ b/src/hw/dmi/DmiReader_mac.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2002-2006 Hugo Weber - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ * along with this program. If not, see . */ + #include "hw/dmi/DmiReader.h" #include "hw/dmi/DmiTools.h" @@ -90,12 +91,12 @@ bool xmrig::DmiReader::read() } CFDataRef data = reinterpret_cast(IORegistryEntryCreateCFProperty(service, CFSTR("SMBIOS-EPS"), kCFAllocatorDefault, kNilOptions)); - if (!data || CFDataGetLength(data) < 0x1f) { + if (!data) { return false; } uint8_t buf[0x20]{}; - CFDataGetBytes(data, CFRangeMake(0, sizeof(buf) - 1), buf); + CFDataGetBytes(data, CFRangeMake(0, sizeof(buf)), buf); CFRelease(data); auto smb = smbios_decode(buf, m_size, m_version, service); diff --git a/src/hw/dmi/DmiReader_unix.cpp b/src/hw/dmi/DmiReader_unix.cpp index cfc1ee2f..e01e2262 100644 --- a/src/hw/dmi/DmiReader_unix.cpp +++ b/src/hw/dmi/DmiReader_unix.cpp @@ -31,7 +31,7 @@ #include #include -#ifdef XMRIG_OS_FREEBSD +#ifdef __FreeBSD__ # include #endif @@ -288,7 +288,7 @@ static off_t address_from_efi() const char *filename; char linebuf[64]; off_t address = 0; -# elif defined(XMRIG_OS_FREEBSD) +# elif defined(__FreeBSD__) char addrstr[KENV_MVALLEN + 1]; # endif @@ -310,7 +310,7 @@ static off_t address_from_efi() fclose(efi_systab); return address; -# elif defined(XMRIG_OS_FREEBSD) +# elif defined(__FreeBSD__) if (kenv(KENV_GET, "hint.smbios.0.mem", addrstr, sizeof(addrstr)) == -1) { return EFI_NOT_FOUND; } diff --git a/src/hw/dmi/DmiTools.h b/src/hw/dmi/DmiTools.h index cfaf23a0..65a1dfd7 100644 --- a/src/hw/dmi/DmiTools.h +++ b/src/hw/dmi/DmiTools.h @@ -24,7 +24,6 @@ #include #include -#include "base/tools/Alignment.h" namespace xmrig { @@ -46,10 +45,10 @@ struct u64 { template -inline T dmi_get(const uint8_t *data) { return readUnaligned(reinterpret_cast(data)); } +inline T dmi_get(const uint8_t *data) { return *reinterpret_cast(data); } template -inline T dmi_get(const dmi_header *h, size_t offset) { return readUnaligned(reinterpret_cast(h->data + offset)); } +inline T dmi_get(const dmi_header *h, size_t offset) { return *reinterpret_cast(h->data + offset); } const char *dmi_string(dmi_header *dm, size_t offset); diff --git a/src/net/JobResult.h b/src/net/JobResult.h index c7dbf6c5..614baf14 100644 --- a/src/net/JobResult.h +++ b/src/net/JobResult.h @@ -45,12 +45,12 @@ public: inline JobResult(const Job &job, uint64_t nonce, const uint8_t *result, const uint8_t* header_hash = nullptr, const uint8_t *mix_hash = nullptr, const uint8_t* miner_signature = nullptr) : algorithm(job.algorithm()), - index(job.index()), clientId(job.clientId()), jobId(job.id()), backend(job.backend()), nonce(nonce), - diff(job.diff()) + diff(job.diff()), + index(job.index()) { memcpy(m_result, result, sizeof(m_result)); @@ -70,12 +70,12 @@ public: inline JobResult(const Job &job) : algorithm(job.algorithm()), - index(job.index()), clientId(job.clientId()), jobId(job.id()), backend(job.backend()), nonce(0), - diff(0) + diff(0), + index(job.index()) { } @@ -88,12 +88,12 @@ public: inline const uint8_t *minerSignature() const { return m_hasMinerSignature ? m_minerSignature : nullptr; } const Algorithm algorithm; - const uint8_t index; const String clientId; const String jobId; const uint32_t backend; const uint64_t nonce; const uint64_t diff; + const uint8_t index; private: uint8_t m_result[32] = { 0 }; diff --git a/src/net/Network.cpp b/src/net/Network.cpp index 0ca1914a..5b743d5d 100644 --- a/src/net/Network.cpp +++ b/src/net/Network.cpp @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2019 Howard Chu - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -292,7 +292,8 @@ void xmrig::Network::setJob(IClient *client, const Job &job, bool donate) } if (!donate && m_donate) { - static_cast(m_donate)->update(client, job); + m_donate->setAlgo(job.algorithm()); + m_donate->setProxy(client->pool().proxy()); } m_controller->miner()->setJob(job, donate); @@ -308,10 +309,6 @@ void xmrig::Network::tick() if (m_donate) { m_donate->tick(now); } - -# ifdef XMRIG_FEATURE_API - m_controller->api()->tick(); -# endif } diff --git a/src/net/Network.h b/src/net/Network.h index b936c0d5..907e6110 100644 --- a/src/net/Network.h +++ b/src/net/Network.h @@ -1,7 +1,7 @@ /* XMRig * Copyright (c) 2019 Howard Chu - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,7 +89,7 @@ private: }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_NETWORK_H +#endif /* XMRIG_NETWORK_H */ diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp index 1f647ae4..be9aad6a 100644 --- a/src/net/strategies/DonateStrategy.cpp +++ b/src/net/strategies/DonateStrategy.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -48,7 +48,7 @@ static const char *kDonateHost = "donate.v2.xmrig.com"; static const char *kDonateHostTls = "donate.ssl.xmrig.com"; #endif -} // namespace xmrig +} /* namespace xmrig */ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener *listener) : @@ -63,7 +63,7 @@ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener keccak(reinterpret_cast(user.data()), user.size(), hash); Cvt::toHex(m_userId, sizeof(m_userId), hash, 32); -# if defined XMRIG_ALGO_KAWPOW || defined XMRIG_ALGO_GHOSTRIDER +# ifdef XMRIG_ALGO_KAWPOW constexpr Pool::Mode mode = Pool::MODE_AUTO_ETH; # else constexpr Pool::Mode mode = Pool::MODE_POOL; @@ -98,17 +98,6 @@ xmrig::DonateStrategy::~DonateStrategy() } -void xmrig::DonateStrategy::update(IClient *client, const Job &job) -{ - setAlgo(job.algorithm()); - setProxy(client->pool().proxy()); - - m_diff = job.diff(); - m_height = job.height(); - m_seed = job.seed(); -} - - int64_t xmrig::DonateStrategy::submit(const JobResult &result) { return m_proxy ? m_proxy->submit(result) : m_strategy->submit(result); @@ -210,13 +199,13 @@ void xmrig::DonateStrategy::onLogin(IClient *, rapidjson::Document &doc, rapidjs params.AddMember("url", m_pools[0].url().toJSON(), allocator); # endif - setParams(doc, params); + setAlgorithms(doc, params); } void xmrig::DonateStrategy::onLogin(IStrategy *, IClient *, rapidjson::Document &doc, rapidjson::Value ¶ms) { - setParams(doc, params); + setAlgorithms(doc, params); } @@ -281,20 +270,12 @@ void xmrig::DonateStrategy::idle(double min, double max) } -void xmrig::DonateStrategy::setJob(IClient *client, const Job &job, const rapidjson::Value ¶ms) -{ - if (isActive()) { - m_listener->onJob(this, client, job, params); - } -} - - -void xmrig::DonateStrategy::setParams(rapidjson::Document &doc, rapidjson::Value ¶ms) +void xmrig::DonateStrategy::setAlgorithms(rapidjson::Document &doc, rapidjson::Value ¶ms) { using namespace rapidjson; auto &allocator = doc.GetAllocator(); - auto algorithms = m_controller->miner()->algorithms(); + Algorithms algorithms = m_controller->miner()->algorithms(); const size_t index = static_cast(std::distance(algorithms.begin(), std::find(algorithms.begin(), algorithms.end(), m_algorithm))); if (index > 0 && index < algorithms.size()) { std::swap(algorithms[0], algorithms[index]); @@ -306,12 +287,14 @@ void xmrig::DonateStrategy::setParams(rapidjson::Document &doc, rapidjson::Value algo.PushBack(StringRef(a.name()), allocator); } - params.AddMember("algo", algo, allocator); - params.AddMember("diff", m_diff, allocator); - params.AddMember("height", m_height, allocator); + params.AddMember("algo", algo, allocator); +} - if (!m_seed.empty()) { - params.AddMember("seed_hash", Cvt::toHex(m_seed, doc), allocator); + +void xmrig::DonateStrategy::setJob(IClient *client, const Job &job, const rapidjson::Value ¶ms) +{ + if (isActive()) { + m_listener->onJob(this, client, job, params); } } diff --git a/src/net/strategies/DonateStrategy.h b/src/net/strategies/DonateStrategy.h index 80ec45ca..fd3038ba 100644 --- a/src/net/strategies/DonateStrategy.h +++ b/src/net/strategies/DonateStrategy.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2023 SChernykh - * Copyright (c) 2016-2023 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,12 +20,15 @@ #define XMRIG_DONATESTRATEGY_H +#include + + #include "base/kernel/interfaces/IClientListener.h" #include "base/kernel/interfaces/IStrategy.h" #include "base/kernel/interfaces/IStrategyListener.h" #include "base/kernel/interfaces/ITimerListener.h" #include "base/net/stratum/Pool.h" -#include "base/tools/Buffer.h" +#include "base/tools/Object.h" namespace xmrig { @@ -33,6 +36,7 @@ namespace xmrig { class Client; class Controller; +class IStrategyListener; class DonateStrategy : public IStrategy, public IStrategyListener, public ITimerListener, public IClientListener @@ -43,8 +47,6 @@ public: DonateStrategy(Controller *controller, IStrategyListener *listener); ~DonateStrategy() override; - void update(IClient *client, const Job &job); - protected: inline bool isActive() const override { return state() == STATE_ACTIVE; } inline IClient *client() const override { return m_proxy ? m_proxy : m_strategy->client(); } @@ -86,14 +88,13 @@ private: IClient *createProxy(); void idle(double min, double max); + void setAlgorithms(rapidjson::Document &doc, rapidjson::Value ¶ms); void setJob(IClient *client, const Job &job, const rapidjson::Value ¶ms); - void setParams(rapidjson::Document &doc, rapidjson::Value ¶ms); void setResult(IClient *client, const SubmitResult &result, const char *error); void setState(State state); Algorithm m_algorithm; bool m_tls = false; - Buffer m_seed; char m_userId[65] = { 0 }; const uint64_t m_donateTime; const uint64_t m_idleTime; @@ -104,14 +105,12 @@ private: State m_state = STATE_NEW; std::vector m_pools; Timer *m_timer = nullptr; - uint64_t m_diff = 0; - uint64_t m_height = 0; uint64_t m_now = 0; uint64_t m_timestamp = 0; }; -} // namespace xmrig +} /* namespace xmrig */ -#endif // XMRIG_DONATESTRATEGY_H +#endif /* XMRIG_DONATESTRATEGY_H */ diff --git a/src/version.h b/src/version.h index 9176a3d9..3548516d 100644 --- a/src/version.h +++ b/src/version.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2025 SChernykh - * Copyright (c) 2016-2025 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,20 +22,18 @@ #define APP_ID "xmrig" #define APP_NAME "XMRig" #define APP_DESC "XMRig miner" -#define APP_VERSION "6.24.0" +#define APP_VERSION "6.16.1" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" -#define APP_COPYRIGHT "Copyright (C) 2016-2025 xmrig.com" +#define APP_COPYRIGHT "Copyright (C) 2016-2021 xmrig.com" #define APP_KIND "miner" #define APP_VER_MAJOR 6 -#define APP_VER_MINOR 24 -#define APP_VER_PATCH 0 +#define APP_VER_MINOR 16 +#define APP_VER_PATCH 1 #ifdef _MSC_VER -# if (_MSC_VER >= 1930) -# define MSVC_VERSION 2022 -# elif (_MSC_VER >= 1920 && _MSC_VER < 1930) +# if (_MSC_VER >= 1920) # define MSVC_VERSION 2019 # elif (_MSC_VER >= 1910 && _MSC_VER < 1920) # define MSVC_VERSION 2017 @@ -52,39 +50,4 @@ # endif #endif -#ifdef XMRIG_OS_WIN -# define APP_OS "Windows" -#elif defined XMRIG_OS_IOS -# define APP_OS "iOS" -#elif defined XMRIG_OS_MACOS -# define APP_OS "macOS" -#elif defined XMRIG_OS_ANDROID -# define APP_OS "Android" -#elif defined XMRIG_OS_LINUX -# define APP_OS "Linux" -#elif defined XMRIG_OS_FREEBSD -# define APP_OS "FreeBSD" -#else -# define APP_OS "Unknown OS" -#endif - -#define STR(X) #X -#define STR2(X) STR(X) - -#ifdef XMRIG_ARM -# define APP_ARCH "ARMv" STR2(XMRIG_ARM) -#else -# if defined(__x86_64__) || defined(__amd64__) || defined(_M_X64) || defined(_M_AMD64) -# define APP_ARCH "x86-64" -# else -# define APP_ARCH "x86" -# endif -#endif - -#ifdef XMRIG_64_BIT -# define APP_BITS "64 bit" -#else -# define APP_BITS "32 bit" -#endif - -#endif // XMRIG_VERSION_H +#endif /* XMRIG_VERSION_H */ diff --git a/src/xmrig.cpp b/src/xmrig.cpp index b7ad0ef8..635e071e 100644 --- a/src/xmrig.cpp +++ b/src/xmrig.cpp @@ -25,8 +25,6 @@ int main(int argc, char **argv) { using namespace xmrig; - std::cout << "goobus\n"; - Process process(argc, argv); const Entry::Id entry = Entry::get(process); if (entry) {