diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 44db3260..894c518a 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -58,4 +58,6 @@ These tools run on the developer's or player's machine during the build. They ar | hactool (SciresM @ `1d64a83450e025622f3468c28fc4164dad2c5ef6` plus `tools/hactool/portable.patch`, from MacNativeGames' `build_hactool()`: `MNG_TITLE_KEYS` and relaxed BKTR layout checks; our `tools/hactool/unicode.patch`: an embedded manifest that makes UTF-8 the process code page), built by `tools/build_hactool.py` with MSYS2 UCRT64 gcc; imports only KERNEL32 and the UCRT | https://github.com/SciresM/hactool | ISC | `bin/hactool.exe` | | `totk_xlate.exe` (Ryujinx shader translator, NativeAOT build of `tools/xlate/`, see the Ryujinx row above) | built by `tools/build_xlate.py` | MIT | `bin/totk_xlate.exe` | | MacNativeGames shader variant list | https://github.com/ly05010419/MacNativeGames @ `b75be8cfa704df3701e86130c8ced268e79d6b11` (`games/totk/assets/shader_list.tsv`), Copyright (c) 2026 MacNativeGames contributors | MIT | `data/shader_list.tsv` | - +| MacNativeGames TotK resolution patches: output, swapchain and scene size sites and instruction words for 1.2.1 and 1.4.3, the data-page layout, the HeapDef heap names and sizes | https://github.com/ly05010419/MacNativeGames @ `aaf6ba1` (`games/totk/runtime/game_patches.c`, `game_patches_v143.c`, `game_version.h`, `games/totk/scripts/make_output_res_overlay.py`), Copyright (c) 2026 MacNativeGames contributors | MIT | `recomp/patches-v121.txt`, `recomp/patches-v143.txt`, `runtime/resolution.c` | +| AMD FidelityFX Super Resolution 1.0 (`ffx_a.h`, `ffx_fsr1.h`, unmodified; licence text in `runtime/shaders/ffx/LICENSE.txt`) | https://github.com/GPUOpen-Effects/FidelityFX-FSR @ `a21ffb8f6c13233ba336352bdff293894c706575`, Copyright (c) 2021 Advanced Micro Devices, Inc. | MIT | `runtime/shaders/ffx/`, `runtime/shaders/fsr_easu.comp`, `runtime/shaders/fsr_rcas.comp` (compiled into `runtime/fsr_easu_spv.h`, `runtime/fsr_rcas_spv.h`) | +| Zstandard 1.5.7 (MSYS2 `mingw-w64-ucrt-x86_64-zstd`), static link | https://github.com/facebook/zstd, Copyright (c) Meta Platforms, Inc. and affiliates | BSD-3-Clause | `runtime/resolution.c` (the HeapDef table) | diff --git a/recomp/patches-v121.txt b/recomp/patches-v121.txt index 8a658286..a1666c9c 100644 --- a/recomp/patches-v121.txt +++ b/recomp/patches-v121.txt @@ -7,6 +7,8 @@ set fps60 TOTK_FPS60 1 set realtime TOTK_REALTIME 1 set cloth TOTK_CLOTH_REALTIME 1 set bounce TOTK_HIGHFPS_FIX 1 +set output TOTK_PATCH_OUTPUT 0 +set scene TOTK_PATCH_SCENE 0 # 60 fps: the adaptive present-interval controller (main+0x8f26c8, 1.0.0 0x8f6bec) gets the minimum interval 1. site fps60 main 8f273c 6b08015f 7100055f # clamp: cmp w10, #1 (was cmp w10, w8 = minimum) @@ -45,3 +47,19 @@ site cloth main 8222f0 9401d7cf @page:x8 bd400104 1e240842 1e240863 9401d7cf # # Trampolines (upstream 27c3b43): the slow-motion check compares time object +0x28 (30 / (ratio * time scale)) with # 100; compare +0x28 * +0x38 (30 / time scale) instead, the same value at 30 Hz and independent of the frame rate. site bounce main bda798 bd402900 bd402900 bd403901 1e210800 # ldr s0, [x8, #0x28]; ldr s1, [x8, #0x38]; fmul s0, s0, s1 + +# Output size (upstream games/totk/runtime/game_patches.c patch_output_res; runtime/resolution.c switches the set on). +# The swapchain size nnMain writes before NvInitializeGraphics comes from page +48 ({w, h} as one 64-bit value), and +# the output size the renderer lays out its canvas, crop and UI in (main+0xcc3f00, read from the graphics parameters +# through main+0xcc4160) from page +32; the renderer itself goes to page +40. +site output main e7aa3c d280f008 @page:x8 # mov x8, #0x780 -> adrp x8, page +site output main e7aa40 f2c08708 f9401908 # movk x8, #0x438, lsl #32 -> ldr x8, [x8, #48] +site output main cc3f50 aa1403e0 @page:x21 # mov x0, x20 -> adrp x21, page +site output main cc3f54 94000083 f90016b3 # bl 0xcc4160 -> str x19, [x21, #40] +site output main cc3f58 f9400015 f94012b5 # ldr x21, [x0] -> ldr x21, [x21, #32] + +# Scene render size (upstream patch_render_res): the renderer's +0xcc4 / +0xcc8, which size every scene render target, +# take two floats from page +16 instead of the graphics parameters' docked 1600x900. +site scene main cc3f68 5e21d900 @page:x9 # scvtf s0, s8 -> adrp x9, page +site scene main cc3f70 bd0cc660 2d420520 # str s0, [x19, #0xcc4] -> ldp s0, s1, [x9, #16] +site scene main cc3f74 5e21d921 bd0cc660 # scvtf s1, s9 -> str s0, [x19, #0xcc4] diff --git a/recomp/patches-v143.txt b/recomp/patches-v143.txt index da01a51d..dd5c0d23 100644 --- a/recomp/patches-v143.txt +++ b/recomp/patches-v143.txt @@ -8,6 +8,8 @@ set fps60 TOTK_FPS60 1 set realtime TOTK_REALTIME 1 set cloth TOTK_CLOTH_REALTIME 1 set bounce TOTK_HIGHFPS_FIX 1 +set output TOTK_PATCH_OUTPUT 0 +set scene TOTK_PATCH_SCENE 0 # 60 fps: the adaptive present-interval controller (main+0x2db174, 1.2.1 0x8f26c8) gets the minimum interval 1. site fps60 main 2db204 6b08015f 7100055f # clamp: cmp w10, #1 (was cmp w10, w8 = minimum) @@ -44,3 +46,17 @@ site cloth main 28bc98 9400546a @page:x8 bd400104 1e240842 1e240863 9400546a # # over 100; compare +0x28 * +0x38 (30 / time scale) instead, the same value at 30 Hz and independent of the frame rate. # s1 is set again by the fmov two instructions on. site bounce main 562a64 bd402920 bd402920 bd403921 1e210800 # ldr s0, [x9, #0x28]; ldr s1, [x9, #0x38]; fmul s0, s0, s1 + +# Output size (upstream game_patches_v143.c patch_output_res; runtime/resolution.c switches the set on). The swapchain +# size nnMain writes comes from page +48; the display configuration's canvas (+0x10) and active output (+0x508) from +# page +32, and the configuration goes to page +40. x9 is dead at the publication point. +site output main bdb578 d280f008 @page:x8 # mov x8, #0x780 -> adrp x8, page (x9 is built in between) +site output main bdb584 f2c08708 f9401908 # movk x8, #0x438, lsl #32 -> ldr x8, [x8, #48] +site output main 3dcb28 d360fc64 @page:x9 f9001533 f9401123 f9000a63 d360fc64 # lsr x4, x3, #32: x3 = [page+32] first + +# Scene render size (upstream patch_render_res): every path that picks the size meets at main+0x585e48; the renderer's +# +0xcc4 / +0xcc8 take two floats from page +16. x3 is scratch in this function; w9 still holds the output size. +site scene main 585e48 1e220160 @page:x3 # scvtf s0, w11 -> adrp x3, page +site scene main 585e50 bd0cc660 2d420460 # str s0, [x19, #0xcc4] -> ldp s0, s1, [x3, #16] +site scene main 585e54 1e220140 bd0cc660 # scvtf s0, w10 -> str s0, [x19, #0xcc4] +site scene main 585e60 bd0cca60 bd0cca61 # str s0, [x19, #0xcc8] -> str s1, [x19, #0xcc8] diff --git a/runtime/boot.c b/runtime/boot.c index 66f23e81..d1326df7 100644 --- a/runtime/boot.c +++ b/runtime/boot.c @@ -324,6 +324,7 @@ void rt_boot(void) { ldr_load(rt_config()->exefs); rt_patches_init(); frame_step_init(); + res_init(); cb_addr[0] = hostfn_register("", cb_loader_ready); cb_addr[1] = hostfn_register("", cb_module_inits); cb_addr[2] = hostfn_register("", cb_module_finis); diff --git a/runtime/cfg.c b/runtime/cfg.c index e0a4a6aa..f18b45b1 100644 --- a/runtime/cfg.c +++ b/runtime/cfg.c @@ -39,13 +39,14 @@ static const char *const known[] = { "GPU_INDEX", "GPU_NAME", "HIGHFPS_FIX", "INPUT", "INPUT_RECORD", "INPUT_SCRIPT", "LANG", "LIB_PREBUILD", "LIB_PREBUILD_KEEP", "LIB_PREBUILD_THREADS", "LOCALE", "LOD_GUARD", "MEMORY", "MENU_LANG", "MENU_TEST", "MENU_TEST_DIR", "MENU_TEST_SET", "MINIMAL_LAYOUT", "MIRROR_GAP", "MOTION", "MOUSE_SENS", "MOVIE_HOST", "MOVIE_PACE", - "OPERATION_MODE", "PERF_OVERLAY", "PERF_SLOW_MS", "PIPELINE_CACHE", "PIPE_MEMO", "PIPE_PREBUILD", "PIPE_SKIP", "PIPE_SYNC", "PIPE_WAIT", + "OPERATION_MODE", "OUTPUT_RES", "PATCH_OUTPUT", "PATCH_SCENE", "PERF_OVERLAY", "PERF_SLOW_MS", "PIPELINE_CACHE", "PIPE_MEMO", "PIPE_PREBUILD", "PIPE_SKIP", "PIPE_SYNC", "PIPE_WAIT", "PREWARM_XLATE", "PROBE_MOVIE", "PROBE_MOVIE_SHOT", "PROFILE", "PROFILE_CHAINS", "PROFILE_DIR", "PROFILE_FRAMES", - "PROFILE_MAIN", "PROFILE_RENDER", "PUSH_SKIP", "PUSH_STAGE", "RDOC", "RDOC_DIR", "RDOC_DLL", "REALTIME", "REEXEC", "REPLAY_ASYNC", + "PROFILE_MAIN", "PROFILE_RENDER", "PUSH_SKIP", "PUSH_STAGE", "RDOC", "RDOC_DIR", "RDOC_DLL", "REALTIME", "REEXEC", + "RENDER_SCALE", "REPLAY_ASYNC", "REPLAY_CHECK", "RESOLVE_CHECK", "ROMFS", "ROMFS_INDEX", "ROMFS_MMAP", "ROMFS_MODS", "ROMFS_PATCHES", "ROMFS_PROOF_DIR", "ROMFS_VERIFY", "RUMBLE", "RUMBLE_CURVE", "RUMBLE_STRENGTH", "RUMBLE_TRIGGERS", "SHADER_CACHE", - "SHADER_MEMO", "SHARED_FONTS", "SHOTS", "SHOTS_DIR", "SHOTS_FULL", "SPEED_PROBE", "SPLIT_DRAWS", "SWKBD_ANSWER", - "SWKBD_TEST", "TEST_PREPARE_SHADERS", "TEX_ALIAS", "TEX_MEMO", "TIMER_1MS", "TRACE", "VK_DYN_VERTEX", "VK_NO_FLOAT64", + "SHADER_MEMO", "SHARED_FONTS", "SHARPNESS", "SHOTS", "SHOTS_DIR", "SHOTS_FULL", "SPEED_PROBE", "SPLIT_DRAWS", "SWKBD_ANSWER", + "SWKBD_TEST", "TEST_PREPARE_SHADERS", "TEX_ALIAS", "TEX_MEMO", "TIMER_1MS", "TRACE", "UPSCALER", "VK_DYN_VERTEX", "VK_NO_FLOAT64", "VK_PRESENT", "VK_SSBO_ALIGN", "VK_SUBGROUP", "VK_SUBGROUP_PIN", "VK_VALIDATION", "VOLUME", "VS_OUTS", "WINDOW_SIZE", "XLATE", "XLATE_ID", "XLATE_PROCS", }; @@ -55,7 +56,8 @@ static const struct { const char *key, *section; } sections[] = { {"FPS_LIMIT", "frame rate"}, {"FPS60", "frame rate"}, {"REALTIME", "frame rate"}, {"CLOTH_REALTIME", "frame rate"}, {"HIGHFPS_FIX", "frame rate"}, {"FULLSCREEN", "display"}, {"WINDOW_SIZE", "display"}, {"PERF_OVERLAY", "display"}, {"VK_PRESENT", "display"}, - {"GPU_INDEX", "display"}, + {"GPU_INDEX", "display"}, {"OUTPUT_RES", "display"}, {"RENDER_SCALE", "display"}, {"UPSCALER", "display"}, + {"SHARPNESS", "display"}, {"MENU_LANG", "language"}, {"LANG", "language"}, {"OPERATION_MODE", "language"}, {"VOLUME", "audio"}, {"MOTION", "input"}, {"RUMBLE_STRENGTH", "input"}, {"RUMBLE_CURVE", "input"}, {"RUMBLE_TRIGGERS", "input"}, @@ -81,6 +83,8 @@ static const CfgMeta metas[] = { {"FULLSCREEN", "0", "0|1", LIVE}, {"WINDOW_SIZE", "1920x1080", NULL, LIVE}, {"VK_PRESENT", "mailbox", "mailbox|fifo|immediate", LIVE}, {"GPU_INDEX", "", NULL, RESTART}, {"PERF_OVERLAY", "off", "off|fps|full", LIVE}, + {"OUTPUT_RES", "1920x1080", NULL, RESTART}, {"RENDER_SCALE", "game", "game|50|67|75|100|125|150|200", RESTART}, + {"UPSCALER", "fsr", "fsr|bilinear", LIVE}, {"SHARPNESS", "80", "0..100", LIVE}, // Game {"FPS_LIMIT", "60", "30|60|120|144|display", LIVE}, {"FPS60", "1", "0|1", LIVE}, {"REALTIME", "1", "0|1", RESTART}, {"CLOTH_REALTIME", "1", "0|1", RESTART}, diff --git a/runtime/fsr_easu_spv.h b/runtime/fsr_easu_spv.h new file mode 100644 index 00000000..ef415872 --- /dev/null +++ b/runtime/fsr_easu_spv.h @@ -0,0 +1,1832 @@ +// Generated by tools/build_shaders.py from runtime/shaders/fsr_easu.comp; do not edit. +// source sha256 bf760ee7dd2efc013e24ec2daa0eb2f0b4835fdbc6db8358fd8ffb5667d8dd05 +#pragma once +#include +static const uint32_t fsr_easu_spv[] = { + 0x07230203, 0x00010300, 0x000d000b, 0x00004714, 0x00000000, 0x00020011, 0x00000001, 0x0006000b, + 0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001, + 0x0007000f, 0x00000005, 0x00000004, 0x6e69616d, 0x00000000, 0x00000617, 0x0000061d, 0x00060010, + 0x00000004, 0x00000011, 0x00000040, 0x00000001, 0x00000001, 0x00040047, 0x0000010d, 0x00000021, + 0x00000000, 0x00040047, 0x0000010d, 0x00000022, 0x00000000, 0x00030047, 0x000005c0, 0x00000002, + 0x00050048, 0x000005c0, 0x00000000, 0x00000023, 0x00000000, 0x00050048, 0x000005c0, 0x00000001, + 0x00000023, 0x00000010, 0x00030047, 0x000005e5, 0x00000019, 0x00040047, 0x000005e5, 0x00000021, + 0x00000001, 0x00040047, 0x000005e5, 0x00000022, 0x00000000, 0x00040047, 0x00000617, 0x0000000b, + 0x0000001b, 0x00040047, 0x0000061d, 0x0000000b, 0x0000001a, 0x00040047, 0x00000661, 0x0000000b, + 0x00000019, 0x00020013, 0x00000002, 0x00030021, 0x00000003, 0x00000002, 0x00030016, 0x00000006, + 0x00000020, 0x00040017, 0x0000000c, 0x00000006, 0x00000002, 0x00040017, 0x00000011, 0x00000006, + 0x00000003, 0x00040017, 0x00000016, 0x00000006, 0x00000004, 0x00040015, 0x0000001b, 0x00000020, + 0x00000000, 0x00040017, 0x00000044, 0x0000001b, 0x00000002, 0x00040017, 0x00000054, 0x0000001b, + 0x00000004, 0x00020014, 0x0000007d, 0x00040015, 0x000000b4, 0x00000020, 0x00000001, 0x0004002b, + 0x000000b4, 0x000000bd, 0x00000000, 0x0004002b, 0x00000006, 0x000000d1, 0x3f800000, 0x0004002b, + 0x00000006, 0x000000d9, 0x00000000, 0x0004002b, 0x0000001b, 0x000000e1, 0x7ef07ebb, 0x0004002b, + 0x0000001b, 0x000000ea, 0x5f347d74, 0x0004002b, 0x0000001b, 0x000000ef, 0x00000001, 0x0004002b, + 0x0000001b, 0x000000f7, 0x00000003, 0x00090019, 0x0000010a, 0x00000006, 0x00000001, 0x00000000, + 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x0003001b, 0x0000010b, 0x0000010a, 0x00040020, + 0x0000010c, 0x00000000, 0x0000010b, 0x0004003b, 0x0000010c, 0x0000010d, 0x00000000, 0x0004002b, + 0x000000b4, 0x00000115, 0x00000001, 0x0004002b, 0x000000b4, 0x0000011b, 0x00000002, 0x0004002b, + 0x0000001b, 0x00000125, 0x00000000, 0x0004002b, 0x00000006, 0x0000012e, 0x3f000000, 0x0004002b, + 0x0000001b, 0x0000013b, 0x00000002, 0x0004002b, 0x00000006, 0x0000015c, 0xbf800000, 0x0004002b, + 0x00000006, 0x0000016d, 0x40000000, 0x0004002b, 0x00000006, 0x0000018e, 0x40800000, 0x0004002b, + 0x00000006, 0x000001f9, 0x3ecccccd, 0x0004002b, 0x00000006, 0x0000020e, 0x3fc80000, 0x0004002b, + 0x00000006, 0x00000213, 0xbf100000, 0x0004002b, 0x00000006, 0x000003c8, 0x38000000, 0x0005002c, + 0x0000000c, 0x0000046f, 0x000000d9, 0x0000015c, 0x0005002c, 0x0000000c, 0x0000048a, 0x000000d1, + 0x0000015c, 0x0005002c, 0x0000000c, 0x000004a5, 0x0000015c, 0x000000d1, 0x0005002c, 0x0000000c, + 0x000004c0, 0x000000d9, 0x000000d1, 0x0005002c, 0x0000000c, 0x000004f6, 0x0000015c, 0x000000d9, + 0x0005002c, 0x0000000c, 0x00000511, 0x000000d1, 0x000000d1, 0x0005002c, 0x0000000c, 0x0000052c, + 0x0000016d, 0x000000d1, 0x0005002c, 0x0000000c, 0x00000547, 0x0000016d, 0x000000d9, 0x0005002c, + 0x0000000c, 0x00000562, 0x000000d1, 0x000000d9, 0x0005002c, 0x0000000c, 0x0000057d, 0x000000d1, + 0x0000016d, 0x0005002c, 0x0000000c, 0x00000598, 0x000000d9, 0x0000016d, 0x0004001e, 0x000005c0, + 0x00000016, 0x00000016, 0x00040020, 0x000005c1, 0x00000009, 0x000005c0, 0x0004003b, 0x000005c1, + 0x000005c2, 0x00000009, 0x00040020, 0x000005c3, 0x00000009, 0x00000006, 0x00090019, 0x000005e3, + 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000002, 0x00040020, + 0x000005e4, 0x00000000, 0x000005e3, 0x0004003b, 0x000005e4, 0x000005e5, 0x00000000, 0x00040017, + 0x000005e8, 0x000000b4, 0x00000002, 0x00040017, 0x00000615, 0x0000001b, 0x00000003, 0x00040020, + 0x00000616, 0x00000001, 0x00000615, 0x0004003b, 0x00000616, 0x00000617, 0x00000001, 0x00040020, + 0x00000619, 0x00000001, 0x0000001b, 0x0004003b, 0x00000616, 0x0000061d, 0x00000001, 0x0004002b, + 0x0000001b, 0x00000620, 0x00000004, 0x0004002b, 0x0000001b, 0x00000632, 0x00000008, 0x0004002b, + 0x0000001b, 0x00000660, 0x00000040, 0x0006002c, 0x00000615, 0x00000661, 0x00000660, 0x000000ef, + 0x000000ef, 0x0007002c, 0x00000016, 0x000046b6, 0x0000012e, 0x0000012e, 0x0000012e, 0x0000012e, + 0x0004002b, 0x000000b4, 0x000046be, 0x00000003, 0x0004002b, 0x00000006, 0x000046c3, 0x3e800000, + 0x0004002b, 0x00000006, 0x000046c5, 0xbe000000, 0x0004002b, 0x00000006, 0x000046c6, 0xbd947ae1, + 0x00030001, 0x0000001b, 0x00004707, 0x00050036, 0x00000002, 0x00000004, 0x00000000, 0x00000003, + 0x000200f8, 0x00000005, 0x00060041, 0x000005c3, 0x000005f8, 0x000005c2, 0x000000bd, 0x00000125, + 0x0004003d, 0x00000006, 0x000005f9, 0x000005f8, 0x00060041, 0x000005c3, 0x000005fb, 0x000005c2, + 0x000000bd, 0x000000ef, 0x0004003d, 0x00000006, 0x000005fc, 0x000005fb, 0x00060041, 0x000005c3, + 0x000005fe, 0x000005c2, 0x000000bd, 0x0000013b, 0x0004003d, 0x00000006, 0x000005ff, 0x000005fe, + 0x00060041, 0x000005c3, 0x00000601, 0x000005c2, 0x000000bd, 0x000000f7, 0x0004003d, 0x00000006, + 0x00000602, 0x00000601, 0x00060041, 0x000005c3, 0x00000604, 0x000005c2, 0x00000115, 0x00000125, + 0x0004003d, 0x00000006, 0x00000605, 0x00000604, 0x00060041, 0x000005c3, 0x00000607, 0x000005c2, + 0x00000115, 0x000000ef, 0x0004003d, 0x00000006, 0x00000608, 0x00000607, 0x00060041, 0x000005c3, + 0x0000060a, 0x000005c2, 0x00000115, 0x0000013b, 0x0004003d, 0x00000006, 0x0000060b, 0x0000060a, + 0x00060041, 0x000005c3, 0x0000060d, 0x000005c2, 0x00000115, 0x000000f7, 0x0004003d, 0x00000006, + 0x0000060e, 0x0000060d, 0x00050088, 0x00000006, 0x00000713, 0x000000d1, 0x00000605, 0x00050085, + 0x00000006, 0x000006b7, 0x000005f9, 0x00000713, 0x0004007c, 0x0000001b, 0x000006b8, 0x000006b7, + 0x00050088, 0x00000006, 0x0000071c, 0x000000d1, 0x00000608, 0x00050085, 0x00000006, 0x000006bd, + 0x000005fc, 0x0000071c, 0x0004007c, 0x0000001b, 0x000006be, 0x000006bd, 0x00050088, 0x00000006, + 0x000046b8, 0x000005f9, 0x00000605, 0x00050085, 0x00000006, 0x000006c5, 0x0000012e, 0x000046b8, + 0x00050083, 0x00000006, 0x000006c7, 0x000006c5, 0x0000012e, 0x00050088, 0x00000006, 0x000046b9, + 0x000005fc, 0x00000608, 0x00050085, 0x00000006, 0x000006cf, 0x0000012e, 0x000046b9, 0x00050083, + 0x00000006, 0x000006d1, 0x000006cf, 0x0000012e, 0x00070050, 0x00000054, 0x000046ba, 0x000006b8, + 0x000006be, 0x00004707, 0x00004707, 0x00050088, 0x00000006, 0x00000743, 0x000000d1, 0x000005ff, + 0x0004007c, 0x0000001b, 0x000006d6, 0x00000743, 0x00050088, 0x00000006, 0x0000074c, 0x000000d1, + 0x00000602, 0x0004007c, 0x0000001b, 0x000006da, 0x0000074c, 0x00050088, 0x00000006, 0x000006e5, + 0x0000015c, 0x00000602, 0x0004007c, 0x0000001b, 0x000006e6, 0x000006e5, 0x00070050, 0x00000054, + 0x000046bb, 0x000006d6, 0x000006da, 0x000006d6, 0x000006e6, 0x00050088, 0x00000006, 0x000006eb, + 0x0000015c, 0x000005ff, 0x0004007c, 0x0000001b, 0x000006ec, 0x000006eb, 0x00050088, 0x00000006, + 0x000006f1, 0x0000016d, 0x00000602, 0x0004007c, 0x0000001b, 0x000006f2, 0x000006f1, 0x00070050, + 0x00000054, 0x000046bc, 0x000006ec, 0x000006f2, 0x000006d6, 0x000006f2, 0x00050088, 0x00000006, + 0x00000709, 0x0000018e, 0x00000602, 0x0004007c, 0x0000001b, 0x0000070a, 0x00000709, 0x00070050, + 0x00000054, 0x000046bd, 0x00000125, 0x0000070a, 0x00000125, 0x00000125, 0x00050081, 0x00000006, + 0x0000068a, 0x000006c7, 0x0000060b, 0x0004007c, 0x0000001b, 0x0000068b, 0x0000068a, 0x00060052, + 0x00000054, 0x0000372c, 0x0000068b, 0x000046ba, 0x00000002, 0x00050081, 0x00000006, 0x00000696, + 0x000006d1, 0x0000060e, 0x0004007c, 0x0000001b, 0x00000697, 0x00000696, 0x00060052, 0x00000054, + 0x0000372e, 0x00000697, 0x0000372c, 0x00000003, 0x00050041, 0x00000619, 0x0000061a, 0x00000617, + 0x00000125, 0x0004003d, 0x0000001b, 0x0000061b, 0x0000061a, 0x000600cb, 0x0000001b, 0x000007e7, + 0x0000061b, 0x00000115, 0x000046be, 0x000600cb, 0x0000001b, 0x000007ef, 0x0000061b, 0x000046be, + 0x000046be, 0x000700c9, 0x0000001b, 0x000007f6, 0x000007ef, 0x0000061b, 0x000000bd, 0x00000115, + 0x00050050, 0x00000044, 0x000007df, 0x000007e7, 0x000007f6, 0x00050041, 0x00000619, 0x0000061e, + 0x0000061d, 0x00000125, 0x0004003d, 0x0000001b, 0x0000061f, 0x0000061e, 0x000500c4, 0x0000001b, + 0x00000621, 0x0000061f, 0x00000620, 0x00050041, 0x00000619, 0x00000622, 0x0000061d, 0x000000ef, + 0x0004003d, 0x0000001b, 0x00000623, 0x00000622, 0x000500c4, 0x0000001b, 0x00000624, 0x00000623, + 0x00000620, 0x00050050, 0x00000044, 0x00000625, 0x00000621, 0x00000624, 0x00050080, 0x00000044, + 0x00000626, 0x000007df, 0x00000625, 0x000300f7, 0x00000822, 0x00000000, 0x000300fb, 0x00000125, + 0x00000800, 0x000200f8, 0x00000800, 0x00050051, 0x0000001b, 0x00000802, 0x00000626, 0x00000000, + 0x0004006d, 0x0000001b, 0x00000805, 0x00000605, 0x000500ae, 0x0000007d, 0x00000806, 0x00000802, + 0x00000805, 0x000400a8, 0x0000007d, 0x00000807, 0x00000806, 0x000300f7, 0x0000080f, 0x00000000, + 0x000400fa, 0x00000807, 0x00000808, 0x0000080f, 0x000200f8, 0x00000808, 0x00050051, 0x0000001b, + 0x0000080a, 0x00000626, 0x00000001, 0x0004006d, 0x0000001b, 0x0000080d, 0x00000608, 0x000500ae, + 0x0000007d, 0x0000080e, 0x0000080a, 0x0000080d, 0x000200f9, 0x0000080f, 0x000200f8, 0x0000080f, + 0x000700f5, 0x0000007d, 0x00000810, 0x00000806, 0x00000800, 0x0000080e, 0x00000808, 0x000300f7, + 0x00000812, 0x00000000, 0x000400fa, 0x00000810, 0x00000811, 0x00000812, 0x000200f8, 0x00000811, + 0x000200f9, 0x00000822, 0x000200f8, 0x00000812, 0x00040070, 0x0000000c, 0x00000914, 0x00000626, + 0x0007004f, 0x00000044, 0x00000916, 0x0000372e, 0x0000372e, 0x00000000, 0x00000001, 0x0004007c, + 0x0000000c, 0x00000917, 0x00000916, 0x00050085, 0x0000000c, 0x00000918, 0x00000914, 0x00000917, + 0x0007004f, 0x00000044, 0x0000091a, 0x0000372e, 0x0000372e, 0x00000002, 0x00000003, 0x0004007c, + 0x0000000c, 0x0000091b, 0x0000091a, 0x00050081, 0x0000000c, 0x0000091c, 0x00000918, 0x0000091b, + 0x0006000c, 0x0000000c, 0x0000091e, 0x00000001, 0x00000008, 0x0000091c, 0x00050083, 0x0000000c, + 0x00000921, 0x0000091c, 0x0000091e, 0x0007004f, 0x00000044, 0x00000924, 0x000046bb, 0x000046bb, + 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x00000925, 0x00000924, 0x00050085, 0x0000000c, + 0x00000926, 0x0000091e, 0x00000925, 0x0007004f, 0x00000044, 0x00000928, 0x000046bb, 0x000046bb, + 0x00000002, 0x00000003, 0x0004007c, 0x0000000c, 0x00000929, 0x00000928, 0x00050081, 0x0000000c, + 0x0000092a, 0x00000926, 0x00000929, 0x0007004f, 0x00000044, 0x0000092d, 0x000046bc, 0x000046bc, + 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x0000092e, 0x0000092d, 0x00050081, 0x0000000c, + 0x0000092f, 0x0000092a, 0x0000092e, 0x0007004f, 0x00000044, 0x00000932, 0x000046bc, 0x000046bc, + 0x00000002, 0x00000003, 0x0004007c, 0x0000000c, 0x00000933, 0x00000932, 0x00050081, 0x0000000c, + 0x00000934, 0x0000092a, 0x00000933, 0x0007004f, 0x00000044, 0x00000937, 0x000046bd, 0x000046bd, + 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x00000938, 0x00000937, 0x00050081, 0x0000000c, + 0x00000939, 0x0000092a, 0x00000938, 0x0004003d, 0x0000010b, 0x00000b2c, 0x0000010d, 0x00060060, + 0x00000016, 0x00000b2e, 0x00000b2c, 0x0000092a, 0x000000bd, 0x0004003d, 0x0000010b, 0x00000b31, + 0x0000010d, 0x00060060, 0x00000016, 0x00000b33, 0x00000b31, 0x0000092a, 0x00000115, 0x0004003d, + 0x0000010b, 0x00000b36, 0x0000010d, 0x00060060, 0x00000016, 0x00000b38, 0x00000b36, 0x0000092a, + 0x0000011b, 0x0004003d, 0x0000010b, 0x00000b3b, 0x0000010d, 0x00060060, 0x00000016, 0x00000b3d, + 0x00000b3b, 0x0000092f, 0x000000bd, 0x0004003d, 0x0000010b, 0x00000b40, 0x0000010d, 0x00060060, + 0x00000016, 0x00000b42, 0x00000b40, 0x0000092f, 0x00000115, 0x0004003d, 0x0000010b, 0x00000b45, + 0x0000010d, 0x00060060, 0x00000016, 0x00000b47, 0x00000b45, 0x0000092f, 0x0000011b, 0x0004003d, + 0x0000010b, 0x00000b4a, 0x0000010d, 0x00060060, 0x00000016, 0x00000b4c, 0x00000b4a, 0x00000934, + 0x000000bd, 0x0004003d, 0x0000010b, 0x00000b4f, 0x0000010d, 0x00060060, 0x00000016, 0x00000b51, + 0x00000b4f, 0x00000934, 0x00000115, 0x0004003d, 0x0000010b, 0x00000b54, 0x0000010d, 0x00060060, + 0x00000016, 0x00000b56, 0x00000b54, 0x00000934, 0x0000011b, 0x0004003d, 0x0000010b, 0x00000b59, + 0x0000010d, 0x00060060, 0x00000016, 0x00000b5b, 0x00000b59, 0x00000939, 0x000000bd, 0x0004003d, + 0x0000010b, 0x00000b5e, 0x0000010d, 0x00060060, 0x00000016, 0x00000b60, 0x00000b5e, 0x00000939, + 0x00000115, 0x0004003d, 0x0000010b, 0x00000b63, 0x0000010d, 0x00060060, 0x00000016, 0x00000b65, + 0x00000b63, 0x00000939, 0x0000011b, 0x00050085, 0x00000016, 0x00000954, 0x00000b38, 0x000046b6, + 0x00050085, 0x00000016, 0x00000957, 0x00000b2e, 0x000046b6, 0x00050081, 0x00000016, 0x00000959, + 0x00000957, 0x00000b33, 0x00050081, 0x00000016, 0x0000095a, 0x00000954, 0x00000959, 0x00050085, + 0x00000016, 0x0000095d, 0x00000b47, 0x000046b6, 0x00050085, 0x00000016, 0x00000960, 0x00000b3d, + 0x000046b6, 0x00050081, 0x00000016, 0x00000962, 0x00000960, 0x00000b42, 0x00050081, 0x00000016, + 0x00000963, 0x0000095d, 0x00000962, 0x00050085, 0x00000016, 0x00000966, 0x00000b56, 0x000046b6, + 0x00050085, 0x00000016, 0x00000969, 0x00000b4c, 0x000046b6, 0x00050081, 0x00000016, 0x0000096b, + 0x00000969, 0x00000b51, 0x00050081, 0x00000016, 0x0000096c, 0x00000966, 0x0000096b, 0x00050085, + 0x00000016, 0x0000096f, 0x00000b65, 0x000046b6, 0x00050085, 0x00000016, 0x00000972, 0x00000b5b, + 0x000046b6, 0x00050081, 0x00000016, 0x00000974, 0x00000972, 0x00000b60, 0x00050081, 0x00000016, + 0x00000975, 0x0000096f, 0x00000974, 0x00050051, 0x00000006, 0x00000977, 0x0000095a, 0x00000000, + 0x00050051, 0x00000006, 0x00000979, 0x0000095a, 0x00000001, 0x00050051, 0x00000006, 0x0000097b, + 0x00000963, 0x00000000, 0x00050051, 0x00000006, 0x0000097d, 0x00000963, 0x00000001, 0x00050051, + 0x00000006, 0x0000097f, 0x00000963, 0x00000002, 0x00050051, 0x00000006, 0x00000981, 0x00000963, + 0x00000003, 0x00050051, 0x00000006, 0x00000983, 0x0000096c, 0x00000000, 0x00050051, 0x00000006, + 0x00000985, 0x0000096c, 0x00000001, 0x00050051, 0x00000006, 0x00000987, 0x0000096c, 0x00000002, + 0x00050051, 0x00000006, 0x00000989, 0x0000096c, 0x00000003, 0x00050051, 0x00000006, 0x0000098b, + 0x00000975, 0x00000002, 0x00050051, 0x00000006, 0x0000098d, 0x00000975, 0x00000003, 0x00050051, + 0x00000006, 0x00000ba5, 0x00000921, 0x00000000, 0x00050083, 0x00000006, 0x00000ba6, 0x000000d1, + 0x00000ba5, 0x00050051, 0x00000006, 0x00000ba9, 0x00000921, 0x00000001, 0x00050083, 0x00000006, + 0x00000baa, 0x000000d1, 0x00000ba9, 0x00050085, 0x00000006, 0x00000bab, 0x00000ba6, 0x00000baa, + 0x00050083, 0x00000006, 0x00000bcb, 0x00000989, 0x0000097f, 0x00050083, 0x00000006, 0x00000bce, + 0x0000097f, 0x00000981, 0x0006000c, 0x00000006, 0x00000bd0, 0x00000001, 0x00000004, 0x00000bcb, + 0x0006000c, 0x00000006, 0x00000bd2, 0x00000001, 0x00000004, 0x00000bce, 0x0007000c, 0x00000006, + 0x00000bd3, 0x00000001, 0x00000028, 0x00000bd0, 0x00000bd2, 0x0004007c, 0x0000001b, 0x00000c25, + 0x00000bd3, 0x00050082, 0x0000001b, 0x00000c26, 0x000000e1, 0x00000c25, 0x0004007c, 0x00000006, + 0x00000c27, 0x00000c26, 0x00050083, 0x00000006, 0x00000bd8, 0x00000989, 0x00000981, 0x00050085, + 0x00000006, 0x00000bdb, 0x00000bd8, 0x00000bab, 0x0006000c, 0x00000006, 0x00000be1, 0x00000001, + 0x00000004, 0x00000bd8, 0x00050085, 0x00000006, 0x00000be3, 0x00000be1, 0x00000c27, 0x0008000c, + 0x00000006, 0x00000c32, 0x00000001, 0x0000002b, 0x00000be3, 0x000000d9, 0x000000d1, 0x00050085, + 0x00000006, 0x00000be7, 0x00000c32, 0x00000c32, 0x00050083, 0x00000006, 0x00000bef, 0x0000097d, + 0x0000097f, 0x00050083, 0x00000006, 0x00000bf2, 0x0000097f, 0x00000977, 0x0006000c, 0x00000006, + 0x00000bf4, 0x00000001, 0x00000004, 0x00000bef, 0x0006000c, 0x00000006, 0x00000bf6, 0x00000001, + 0x00000004, 0x00000bf2, 0x0007000c, 0x00000006, 0x00000bf7, 0x00000001, 0x00000028, 0x00000bf4, + 0x00000bf6, 0x0004007c, 0x0000001b, 0x00000c3e, 0x00000bf7, 0x00050082, 0x0000001b, 0x00000c3f, + 0x000000e1, 0x00000c3e, 0x0004007c, 0x00000006, 0x00000c40, 0x00000c3f, 0x00050083, 0x00000006, + 0x00000bfc, 0x0000097d, 0x00000977, 0x00050085, 0x00000006, 0x00000bff, 0x00000bfc, 0x00000bab, + 0x0006000c, 0x00000006, 0x00000c05, 0x00000001, 0x00000004, 0x00000bfc, 0x00050085, 0x00000006, + 0x00000c07, 0x00000c05, 0x00000c40, 0x0008000c, 0x00000006, 0x00000c4b, 0x00000001, 0x0000002b, + 0x00000c07, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00000c0b, 0x00000c4b, 0x00000c4b, + 0x00050081, 0x00000006, 0x00004708, 0x00000be7, 0x00000c0b, 0x00050085, 0x00000006, 0x00000c10, + 0x00000bab, 0x00004708, 0x00050085, 0x00000006, 0x00000c7a, 0x00000ba5, 0x00000baa, 0x00050083, + 0x00000006, 0x00000c90, 0x00000987, 0x00000989, 0x0006000c, 0x00000006, 0x00000c95, 0x00000001, + 0x00000004, 0x00000c90, 0x0007000c, 0x00000006, 0x00000c98, 0x00000001, 0x00000028, 0x00000c95, + 0x00000bd0, 0x0004007c, 0x0000001b, 0x00000cea, 0x00000c98, 0x00050082, 0x0000001b, 0x00000ceb, + 0x000000e1, 0x00000cea, 0x0004007c, 0x00000006, 0x00000cec, 0x00000ceb, 0x00050083, 0x00000006, + 0x00000c9d, 0x00000987, 0x0000097f, 0x00050085, 0x00000006, 0x00000ca0, 0x00000c9d, 0x00000c7a, + 0x00050081, 0x00000006, 0x00000ca3, 0x00000bdb, 0x00000ca0, 0x0006000c, 0x00000006, 0x00000ca6, + 0x00000001, 0x00000004, 0x00000c9d, 0x00050085, 0x00000006, 0x00000ca8, 0x00000ca6, 0x00000cec, + 0x0008000c, 0x00000006, 0x00000cf7, 0x00000001, 0x0000002b, 0x00000ca8, 0x000000d9, 0x000000d1, + 0x00050085, 0x00000006, 0x00000cac, 0x00000cf7, 0x00000cf7, 0x00050085, 0x00000006, 0x00000caf, + 0x00000cac, 0x00000c7a, 0x00050081, 0x00000006, 0x00000cb1, 0x00000c10, 0x00000caf, 0x00050083, + 0x00000006, 0x00000cb4, 0x00000983, 0x00000989, 0x00050083, 0x00000006, 0x00000cb7, 0x00000989, + 0x00000979, 0x0006000c, 0x00000006, 0x00000cb9, 0x00000001, 0x00000004, 0x00000cb4, 0x0006000c, + 0x00000006, 0x00000cbb, 0x00000001, 0x00000004, 0x00000cb7, 0x0007000c, 0x00000006, 0x00000cbc, + 0x00000001, 0x00000028, 0x00000cb9, 0x00000cbb, 0x0004007c, 0x0000001b, 0x00000d03, 0x00000cbc, + 0x00050082, 0x0000001b, 0x00000d04, 0x000000e1, 0x00000d03, 0x0004007c, 0x00000006, 0x00000d05, + 0x00000d04, 0x00050083, 0x00000006, 0x00000cc1, 0x00000983, 0x00000979, 0x00050085, 0x00000006, + 0x00000cc4, 0x00000cc1, 0x00000c7a, 0x00050081, 0x00000006, 0x00000cc7, 0x00000bff, 0x00000cc4, + 0x0006000c, 0x00000006, 0x00000cca, 0x00000001, 0x00000004, 0x00000cc1, 0x00050085, 0x00000006, + 0x00000ccc, 0x00000cca, 0x00000d05, 0x0008000c, 0x00000006, 0x00000d10, 0x00000001, 0x0000002b, + 0x00000ccc, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00000cd0, 0x00000d10, 0x00000d10, + 0x00050085, 0x00000006, 0x00000cd3, 0x00000cd0, 0x00000c7a, 0x00050081, 0x00000006, 0x00000cd5, + 0x00000cb1, 0x00000cd3, 0x00050085, 0x00000006, 0x00000d49, 0x00000ba6, 0x00000ba9, 0x00050083, + 0x00000006, 0x00000d55, 0x00000983, 0x0000097d, 0x00050083, 0x00000006, 0x00000d58, 0x0000097d, + 0x0000097b, 0x0006000c, 0x00000006, 0x00000d5a, 0x00000001, 0x00000004, 0x00000d55, 0x0006000c, + 0x00000006, 0x00000d5c, 0x00000001, 0x00000004, 0x00000d58, 0x0007000c, 0x00000006, 0x00000d5d, + 0x00000001, 0x00000028, 0x00000d5a, 0x00000d5c, 0x0004007c, 0x0000001b, 0x00000daf, 0x00000d5d, + 0x00050082, 0x0000001b, 0x00000db0, 0x000000e1, 0x00000daf, 0x0004007c, 0x00000006, 0x00000db1, + 0x00000db0, 0x00050083, 0x00000006, 0x00000d62, 0x00000983, 0x0000097b, 0x00050085, 0x00000006, + 0x00000d65, 0x00000d62, 0x00000d49, 0x00050081, 0x00000006, 0x00000d68, 0x00000ca3, 0x00000d65, + 0x0006000c, 0x00000006, 0x00000d6b, 0x00000001, 0x00000004, 0x00000d62, 0x00050085, 0x00000006, + 0x00000d6d, 0x00000d6b, 0x00000db1, 0x0008000c, 0x00000006, 0x00000dbc, 0x00000001, 0x0000002b, + 0x00000d6d, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00000d71, 0x00000dbc, 0x00000dbc, + 0x00050085, 0x00000006, 0x00000d74, 0x00000d71, 0x00000d49, 0x00050081, 0x00000006, 0x00000d76, + 0x00000cd5, 0x00000d74, 0x00050083, 0x00000006, 0x00000d79, 0x0000098d, 0x0000097d, 0x0006000c, + 0x00000006, 0x00000d7e, 0x00000001, 0x00000004, 0x00000d79, 0x0007000c, 0x00000006, 0x00000d81, + 0x00000001, 0x00000028, 0x00000d7e, 0x00000bf4, 0x0004007c, 0x0000001b, 0x00000dc8, 0x00000d81, + 0x00050082, 0x0000001b, 0x00000dc9, 0x000000e1, 0x00000dc8, 0x0004007c, 0x00000006, 0x00000dca, + 0x00000dc9, 0x00050083, 0x00000006, 0x00000d86, 0x0000098d, 0x0000097f, 0x00050085, 0x00000006, + 0x00000d89, 0x00000d86, 0x00000d49, 0x00050081, 0x00000006, 0x00000d8c, 0x00000cc7, 0x00000d89, + 0x0006000c, 0x00000006, 0x00000d8f, 0x00000001, 0x00000004, 0x00000d86, 0x00050085, 0x00000006, + 0x00000d91, 0x00000d8f, 0x00000dca, 0x0008000c, 0x00000006, 0x00000dd5, 0x00000001, 0x0000002b, + 0x00000d91, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00000d95, 0x00000dd5, 0x00000dd5, + 0x00050085, 0x00000006, 0x00000d98, 0x00000d95, 0x00000d49, 0x00050081, 0x00000006, 0x00000d9a, + 0x00000d76, 0x00000d98, 0x00050085, 0x00000006, 0x00000e16, 0x00000ba5, 0x00000ba9, 0x00050083, + 0x00000006, 0x00000e1a, 0x00000985, 0x00000983, 0x0006000c, 0x00000006, 0x00000e1f, 0x00000001, + 0x00000004, 0x00000e1a, 0x0007000c, 0x00000006, 0x00000e22, 0x00000001, 0x00000028, 0x00000e1f, + 0x00000d5a, 0x0004007c, 0x0000001b, 0x00000e74, 0x00000e22, 0x00050082, 0x0000001b, 0x00000e75, + 0x000000e1, 0x00000e74, 0x0004007c, 0x00000006, 0x00000e76, 0x00000e75, 0x00050083, 0x00000006, + 0x00000e27, 0x00000985, 0x0000097d, 0x00050085, 0x00000006, 0x00000e2a, 0x00000e27, 0x00000e16, + 0x00050081, 0x00000006, 0x00000e2d, 0x00000d68, 0x00000e2a, 0x0006000c, 0x00000006, 0x00000e30, + 0x00000001, 0x00000004, 0x00000e27, 0x00050085, 0x00000006, 0x00000e32, 0x00000e30, 0x00000e76, + 0x0008000c, 0x00000006, 0x00000e81, 0x00000001, 0x0000002b, 0x00000e32, 0x000000d9, 0x000000d1, + 0x00050085, 0x00000006, 0x00000e36, 0x00000e81, 0x00000e81, 0x00050085, 0x00000006, 0x00000e39, + 0x00000e36, 0x00000e16, 0x00050081, 0x00000006, 0x00000e3b, 0x00000d9a, 0x00000e39, 0x00050083, + 0x00000006, 0x00000e3e, 0x0000098b, 0x00000983, 0x0006000c, 0x00000006, 0x00000e43, 0x00000001, + 0x00000004, 0x00000e3e, 0x0007000c, 0x00000006, 0x00000e46, 0x00000001, 0x00000028, 0x00000e43, + 0x00000cb9, 0x0004007c, 0x0000001b, 0x00000e8d, 0x00000e46, 0x00050082, 0x0000001b, 0x00000e8e, + 0x000000e1, 0x00000e8d, 0x0004007c, 0x00000006, 0x00000e8f, 0x00000e8e, 0x00050083, 0x00000006, + 0x00000e4b, 0x0000098b, 0x00000989, 0x00050085, 0x00000006, 0x00000e4e, 0x00000e4b, 0x00000e16, + 0x00050081, 0x00000006, 0x00000e51, 0x00000d8c, 0x00000e4e, 0x00050050, 0x0000000c, 0x000046c2, + 0x00000e2d, 0x00000e51, 0x0006000c, 0x00000006, 0x00000e54, 0x00000001, 0x00000004, 0x00000e4b, + 0x00050085, 0x00000006, 0x00000e56, 0x00000e54, 0x00000e8f, 0x0008000c, 0x00000006, 0x00000e9a, + 0x00000001, 0x0000002b, 0x00000e56, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00000e5a, + 0x00000e9a, 0x00000e9a, 0x00050085, 0x00000006, 0x00000e5d, 0x00000e5a, 0x00000e16, 0x00050081, + 0x00000006, 0x00000e5f, 0x00000e3b, 0x00000e5d, 0x00050085, 0x0000000c, 0x000009be, 0x000046c2, + 0x000046c2, 0x00050051, 0x00000006, 0x000009c0, 0x000009be, 0x00000000, 0x00050051, 0x00000006, + 0x000009c2, 0x000009be, 0x00000001, 0x00050081, 0x00000006, 0x000009c3, 0x000009c0, 0x000009c2, + 0x000500b8, 0x0000007d, 0x000009c6, 0x000009c3, 0x000003c8, 0x0004007c, 0x0000001b, 0x00000eaa, + 0x000009c3, 0x000500c2, 0x0000001b, 0x00000eac, 0x00000eaa, 0x000000ef, 0x00050082, 0x0000001b, + 0x00000ead, 0x000000ea, 0x00000eac, 0x0004007c, 0x00000006, 0x00000eae, 0x00000ead, 0x000600a9, + 0x00000006, 0x0000470c, 0x000009c6, 0x000000d1, 0x00000eae, 0x000600a9, 0x00000006, 0x0000470d, + 0x000009c6, 0x000000d1, 0x00000e2d, 0x00060052, 0x0000000c, 0x00003779, 0x0000470d, 0x000046c2, + 0x00000000, 0x00050050, 0x0000000c, 0x00000ebe, 0x0000470c, 0x0000470c, 0x00050085, 0x0000000c, + 0x000009dc, 0x00003779, 0x00000ebe, 0x00050085, 0x00000006, 0x000046c4, 0x00000e5f, 0x00000e5f, + 0x00050085, 0x00000006, 0x000009e2, 0x000046c3, 0x000046c4, 0x00050051, 0x00000006, 0x000009e4, + 0x000009dc, 0x00000000, 0x00050085, 0x00000006, 0x000009e7, 0x000009e4, 0x000009e4, 0x00050051, + 0x00000006, 0x000009e9, 0x000009dc, 0x00000001, 0x00050085, 0x00000006, 0x000009ec, 0x000009e9, + 0x000009e9, 0x00050081, 0x00000006, 0x000009ed, 0x000009e7, 0x000009ec, 0x0006000c, 0x00000006, + 0x000009f0, 0x00000001, 0x00000004, 0x000009e4, 0x0006000c, 0x00000006, 0x000009f3, 0x00000001, + 0x00000004, 0x000009e9, 0x0007000c, 0x00000006, 0x000009f4, 0x00000001, 0x00000028, 0x000009f0, + 0x000009f3, 0x0004007c, 0x0000001b, 0x00000ec7, 0x000009f4, 0x00050082, 0x0000001b, 0x00000ec8, + 0x000000e1, 0x00000ec7, 0x0004007c, 0x00000006, 0x00000ec9, 0x00000ec8, 0x00050085, 0x00000006, + 0x000009f6, 0x000009ed, 0x00000ec9, 0x00050083, 0x00000006, 0x000009fa, 0x000009f6, 0x000000d1, + 0x00050085, 0x00000006, 0x000009fc, 0x000009fa, 0x000009e2, 0x00050081, 0x00000006, 0x000009fd, + 0x000000d1, 0x000009fc, 0x00050085, 0x00000006, 0x00000a01, 0x000046c4, 0x000046c5, 0x00050081, + 0x00000006, 0x00000a02, 0x000000d1, 0x00000a01, 0x00050050, 0x0000000c, 0x00000a03, 0x000009fd, + 0x00000a02, 0x00050085, 0x00000006, 0x00000a07, 0x000046c4, 0x000046c6, 0x00050081, 0x00000006, + 0x00000a08, 0x0000012e, 0x00000a07, 0x0004007c, 0x0000001b, 0x00000ee4, 0x00000a08, 0x00050082, + 0x0000001b, 0x00000ee5, 0x000000e1, 0x00000ee4, 0x0004007c, 0x00000006, 0x00000ee6, 0x00000ee5, + 0x00050051, 0x00000006, 0x00000a0c, 0x00000b3d, 0x00000002, 0x00050051, 0x00000006, 0x00000a0e, + 0x00000b42, 0x00000002, 0x00050051, 0x00000006, 0x00000a10, 0x00000b47, 0x00000002, 0x00060050, + 0x00000011, 0x00000a11, 0x00000a0c, 0x00000a0e, 0x00000a10, 0x00050051, 0x00000006, 0x00000a13, + 0x00000b4c, 0x00000003, 0x00050051, 0x00000006, 0x00000a15, 0x00000b51, 0x00000003, 0x00050051, + 0x00000006, 0x00000a17, 0x00000b56, 0x00000003, 0x00060050, 0x00000011, 0x00000a18, 0x00000a13, + 0x00000a15, 0x00000a17, 0x00050051, 0x00000006, 0x00000a1a, 0x00000b3d, 0x00000001, 0x00050051, + 0x00000006, 0x00000a1c, 0x00000b42, 0x00000001, 0x00050051, 0x00000006, 0x00000a1e, 0x00000b47, + 0x00000001, 0x00060050, 0x00000011, 0x00000a1f, 0x00000a1a, 0x00000a1c, 0x00000a1e, 0x0007000c, + 0x00000011, 0x00000eef, 0x00000001, 0x00000025, 0x00000a18, 0x00000a1f, 0x0007000c, 0x00000011, + 0x00000ef0, 0x00000001, 0x00000025, 0x00000a11, 0x00000eef, 0x00050051, 0x00000006, 0x00000a22, + 0x00000b4c, 0x00000000, 0x00050051, 0x00000006, 0x00000a24, 0x00000b51, 0x00000000, 0x00050051, + 0x00000006, 0x00000a26, 0x00000b56, 0x00000000, 0x00060050, 0x00000011, 0x00000a27, 0x00000a22, + 0x00000a24, 0x00000a26, 0x0007000c, 0x00000011, 0x00000a28, 0x00000001, 0x00000025, 0x00000ef0, + 0x00000a27, 0x0007000c, 0x00000011, 0x00000ef6, 0x00000001, 0x00000028, 0x00000a18, 0x00000a1f, + 0x0007000c, 0x00000011, 0x00000ef7, 0x00000001, 0x00000028, 0x00000a11, 0x00000ef6, 0x0007000c, + 0x00000011, 0x00000a46, 0x00000001, 0x00000028, 0x00000ef7, 0x00000a27, 0x00050083, 0x0000000c, + 0x00000a4a, 0x0000046f, 0x00000921, 0x00050051, 0x00000006, 0x00000a4c, 0x00000b2e, 0x00000000, + 0x00050051, 0x00000006, 0x00000a4e, 0x00000b33, 0x00000000, 0x00050051, 0x00000006, 0x00000a50, + 0x00000b38, 0x00000000, 0x00060050, 0x00000011, 0x00000a51, 0x00000a4c, 0x00000a4e, 0x00000a50, + 0x00050051, 0x00000006, 0x00000f0b, 0x00000a4a, 0x00000000, 0x00050085, 0x00000006, 0x00000f0e, + 0x00000f0b, 0x000009e4, 0x00050051, 0x00000006, 0x00000f10, 0x00000a4a, 0x00000001, 0x00050085, + 0x00000006, 0x00000f13, 0x00000f10, 0x000009e9, 0x00050081, 0x00000006, 0x00000f14, 0x00000f0e, + 0x00000f13, 0x0004007f, 0x00000006, 0x00000f1a, 0x000009e9, 0x00050085, 0x00000006, 0x00000f1b, + 0x00000f0b, 0x00000f1a, 0x00050085, 0x00000006, 0x00000f20, 0x00000f10, 0x000009e4, 0x00050081, + 0x00000006, 0x00000f21, 0x00000f1b, 0x00000f20, 0x00050050, 0x0000000c, 0x000046c7, 0x00000f14, + 0x00000f21, 0x00050085, 0x0000000c, 0x00000f25, 0x000046c7, 0x00000a03, 0x00050051, 0x00000006, + 0x00000f27, 0x00000f25, 0x00000000, 0x00050085, 0x00000006, 0x00000f2a, 0x00000f27, 0x00000f27, + 0x00050051, 0x00000006, 0x00000f2c, 0x00000f25, 0x00000001, 0x00050085, 0x00000006, 0x00000f2f, + 0x00000f2c, 0x00000f2c, 0x00050081, 0x00000006, 0x00000f30, 0x00000f2a, 0x00000f2f, 0x0007000c, + 0x00000006, 0x00000f33, 0x00000001, 0x00000025, 0x00000f30, 0x00000ee6, 0x00050085, 0x00000006, + 0x00000f36, 0x000001f9, 0x00000f33, 0x00050081, 0x00000006, 0x00000f38, 0x00000f36, 0x0000015c, + 0x00050085, 0x00000006, 0x00000f3b, 0x00000a08, 0x00000f33, 0x00050081, 0x00000006, 0x00000f3d, + 0x00000f3b, 0x0000015c, 0x00050085, 0x00000006, 0x00000f40, 0x00000f38, 0x00000f38, 0x00050085, + 0x00000006, 0x00000f43, 0x00000f3d, 0x00000f3d, 0x00050085, 0x00000006, 0x00000f46, 0x0000020e, + 0x00000f40, 0x00050081, 0x00000006, 0x00000f48, 0x00000f46, 0x00000213, 0x00050085, 0x00000006, + 0x00000f4b, 0x00000f48, 0x00000f43, 0x0005008e, 0x00000011, 0x00000f4e, 0x00000a51, 0x00000f4b, + 0x00050083, 0x0000000c, 0x00000a5c, 0x0000048a, 0x00000921, 0x00050051, 0x00000006, 0x00000a5e, + 0x00000b2e, 0x00000001, 0x00050051, 0x00000006, 0x00000a60, 0x00000b33, 0x00000001, 0x00050051, + 0x00000006, 0x00000a62, 0x00000b38, 0x00000001, 0x00060050, 0x00000011, 0x00000a63, 0x00000a5e, + 0x00000a60, 0x00000a62, 0x00050051, 0x00000006, 0x00000f6f, 0x00000a5c, 0x00000000, 0x00050085, + 0x00000006, 0x00000f72, 0x00000f6f, 0x000009e4, 0x00050051, 0x00000006, 0x00000f74, 0x00000a5c, + 0x00000001, 0x00050085, 0x00000006, 0x00000f77, 0x00000f74, 0x000009e9, 0x00050081, 0x00000006, + 0x00000f78, 0x00000f72, 0x00000f77, 0x00050085, 0x00000006, 0x00000f7f, 0x00000f6f, 0x00000f1a, + 0x00050085, 0x00000006, 0x00000f84, 0x00000f74, 0x000009e4, 0x00050081, 0x00000006, 0x00000f85, + 0x00000f7f, 0x00000f84, 0x00050050, 0x0000000c, 0x000046c8, 0x00000f78, 0x00000f85, 0x00050085, + 0x0000000c, 0x00000f89, 0x000046c8, 0x00000a03, 0x00050051, 0x00000006, 0x00000f8b, 0x00000f89, + 0x00000000, 0x00050085, 0x00000006, 0x00000f8e, 0x00000f8b, 0x00000f8b, 0x00050051, 0x00000006, + 0x00000f90, 0x00000f89, 0x00000001, 0x00050085, 0x00000006, 0x00000f93, 0x00000f90, 0x00000f90, + 0x00050081, 0x00000006, 0x00000f94, 0x00000f8e, 0x00000f93, 0x0007000c, 0x00000006, 0x00000f97, + 0x00000001, 0x00000025, 0x00000f94, 0x00000ee6, 0x00050085, 0x00000006, 0x00000f9a, 0x000001f9, + 0x00000f97, 0x00050081, 0x00000006, 0x00000f9c, 0x00000f9a, 0x0000015c, 0x00050085, 0x00000006, + 0x00000f9f, 0x00000a08, 0x00000f97, 0x00050081, 0x00000006, 0x00000fa1, 0x00000f9f, 0x0000015c, + 0x00050085, 0x00000006, 0x00000fa4, 0x00000f9c, 0x00000f9c, 0x00050085, 0x00000006, 0x00000fa7, + 0x00000fa1, 0x00000fa1, 0x00050085, 0x00000006, 0x00000faa, 0x0000020e, 0x00000fa4, 0x00050081, + 0x00000006, 0x00000fac, 0x00000faa, 0x00000213, 0x00050085, 0x00000006, 0x00000faf, 0x00000fac, + 0x00000fa7, 0x0005008e, 0x00000011, 0x00000fb2, 0x00000a63, 0x00000faf, 0x00050081, 0x00000011, + 0x00000fb4, 0x00000f4e, 0x00000fb2, 0x00050081, 0x00000006, 0x00000fb7, 0x00000f4b, 0x00000faf, + 0x00050083, 0x0000000c, 0x00000a6e, 0x000004a5, 0x00000921, 0x00050051, 0x00000006, 0x00000a70, + 0x00000b3d, 0x00000000, 0x00050051, 0x00000006, 0x00000a72, 0x00000b42, 0x00000000, 0x00050051, + 0x00000006, 0x00000a74, 0x00000b47, 0x00000000, 0x00060050, 0x00000011, 0x00000a75, 0x00000a70, + 0x00000a72, 0x00000a74, 0x00050051, 0x00000006, 0x00000fd3, 0x00000a6e, 0x00000000, 0x00050085, + 0x00000006, 0x00000fd6, 0x00000fd3, 0x000009e4, 0x00050051, 0x00000006, 0x00000fd8, 0x00000a6e, + 0x00000001, 0x00050085, 0x00000006, 0x00000fdb, 0x00000fd8, 0x000009e9, 0x00050081, 0x00000006, + 0x00000fdc, 0x00000fd6, 0x00000fdb, 0x00050085, 0x00000006, 0x00000fe3, 0x00000fd3, 0x00000f1a, + 0x00050085, 0x00000006, 0x00000fe8, 0x00000fd8, 0x000009e4, 0x00050081, 0x00000006, 0x00000fe9, + 0x00000fe3, 0x00000fe8, 0x00050050, 0x0000000c, 0x000046c9, 0x00000fdc, 0x00000fe9, 0x00050085, + 0x0000000c, 0x00000fed, 0x000046c9, 0x00000a03, 0x00050051, 0x00000006, 0x00000fef, 0x00000fed, + 0x00000000, 0x00050085, 0x00000006, 0x00000ff2, 0x00000fef, 0x00000fef, 0x00050051, 0x00000006, + 0x00000ff4, 0x00000fed, 0x00000001, 0x00050085, 0x00000006, 0x00000ff7, 0x00000ff4, 0x00000ff4, + 0x00050081, 0x00000006, 0x00000ff8, 0x00000ff2, 0x00000ff7, 0x0007000c, 0x00000006, 0x00000ffb, + 0x00000001, 0x00000025, 0x00000ff8, 0x00000ee6, 0x00050085, 0x00000006, 0x00000ffe, 0x000001f9, + 0x00000ffb, 0x00050081, 0x00000006, 0x00001000, 0x00000ffe, 0x0000015c, 0x00050085, 0x00000006, + 0x00001003, 0x00000a08, 0x00000ffb, 0x00050081, 0x00000006, 0x00001005, 0x00001003, 0x0000015c, + 0x00050085, 0x00000006, 0x00001008, 0x00001000, 0x00001000, 0x00050085, 0x00000006, 0x0000100b, + 0x00001005, 0x00001005, 0x00050085, 0x00000006, 0x0000100e, 0x0000020e, 0x00001008, 0x00050081, + 0x00000006, 0x00001010, 0x0000100e, 0x00000213, 0x00050085, 0x00000006, 0x00001013, 0x00001010, + 0x0000100b, 0x0005008e, 0x00000011, 0x00001016, 0x00000a75, 0x00001013, 0x00050081, 0x00000011, + 0x00001018, 0x00000fb4, 0x00001016, 0x00050081, 0x00000006, 0x0000101b, 0x00000fb7, 0x00001013, + 0x00050083, 0x0000000c, 0x00000a80, 0x000004c0, 0x00000921, 0x00050051, 0x00000006, 0x00001037, + 0x00000a80, 0x00000000, 0x00050085, 0x00000006, 0x0000103a, 0x00001037, 0x000009e4, 0x00050051, + 0x00000006, 0x0000103c, 0x00000a80, 0x00000001, 0x00050085, 0x00000006, 0x0000103f, 0x0000103c, + 0x000009e9, 0x00050081, 0x00000006, 0x00001040, 0x0000103a, 0x0000103f, 0x00050085, 0x00000006, + 0x00001047, 0x00001037, 0x00000f1a, 0x00050085, 0x00000006, 0x0000104c, 0x0000103c, 0x000009e4, + 0x00050081, 0x00000006, 0x0000104d, 0x00001047, 0x0000104c, 0x00050050, 0x0000000c, 0x000046ca, + 0x00001040, 0x0000104d, 0x00050085, 0x0000000c, 0x00001051, 0x000046ca, 0x00000a03, 0x00050051, + 0x00000006, 0x00001053, 0x00001051, 0x00000000, 0x00050085, 0x00000006, 0x00001056, 0x00001053, + 0x00001053, 0x00050051, 0x00000006, 0x00001058, 0x00001051, 0x00000001, 0x00050085, 0x00000006, + 0x0000105b, 0x00001058, 0x00001058, 0x00050081, 0x00000006, 0x0000105c, 0x00001056, 0x0000105b, + 0x0007000c, 0x00000006, 0x0000105f, 0x00000001, 0x00000025, 0x0000105c, 0x00000ee6, 0x00050085, + 0x00000006, 0x00001062, 0x000001f9, 0x0000105f, 0x00050081, 0x00000006, 0x00001064, 0x00001062, + 0x0000015c, 0x00050085, 0x00000006, 0x00001067, 0x00000a08, 0x0000105f, 0x00050081, 0x00000006, + 0x00001069, 0x00001067, 0x0000015c, 0x00050085, 0x00000006, 0x0000106c, 0x00001064, 0x00001064, + 0x00050085, 0x00000006, 0x0000106f, 0x00001069, 0x00001069, 0x00050085, 0x00000006, 0x00001072, + 0x0000020e, 0x0000106c, 0x00050081, 0x00000006, 0x00001074, 0x00001072, 0x00000213, 0x00050085, + 0x00000006, 0x00001077, 0x00001074, 0x0000106f, 0x0005008e, 0x00000011, 0x0000107a, 0x00000a1f, + 0x00001077, 0x00050081, 0x00000011, 0x0000107c, 0x00001018, 0x0000107a, 0x00050081, 0x00000006, + 0x0000107f, 0x0000101b, 0x00001077, 0x0004007f, 0x0000000c, 0x00000a92, 0x00000921, 0x00050051, + 0x00000006, 0x0000109b, 0x00000a92, 0x00000000, 0x00050085, 0x00000006, 0x0000109e, 0x0000109b, + 0x000009e4, 0x00050051, 0x00000006, 0x000010a0, 0x00000a92, 0x00000001, 0x00050085, 0x00000006, + 0x000010a3, 0x000010a0, 0x000009e9, 0x00050081, 0x00000006, 0x000010a4, 0x0000109e, 0x000010a3, + 0x00050085, 0x00000006, 0x000010ab, 0x0000109b, 0x00000f1a, 0x00050085, 0x00000006, 0x000010b0, + 0x000010a0, 0x000009e4, 0x00050081, 0x00000006, 0x000010b1, 0x000010ab, 0x000010b0, 0x00050050, + 0x0000000c, 0x000046cb, 0x000010a4, 0x000010b1, 0x00050085, 0x0000000c, 0x000010b5, 0x000046cb, + 0x00000a03, 0x00050051, 0x00000006, 0x000010b7, 0x000010b5, 0x00000000, 0x00050085, 0x00000006, + 0x000010ba, 0x000010b7, 0x000010b7, 0x00050051, 0x00000006, 0x000010bc, 0x000010b5, 0x00000001, + 0x00050085, 0x00000006, 0x000010bf, 0x000010bc, 0x000010bc, 0x00050081, 0x00000006, 0x000010c0, + 0x000010ba, 0x000010bf, 0x0007000c, 0x00000006, 0x000010c3, 0x00000001, 0x00000025, 0x000010c0, + 0x00000ee6, 0x00050085, 0x00000006, 0x000010c6, 0x000001f9, 0x000010c3, 0x00050081, 0x00000006, + 0x000010c8, 0x000010c6, 0x0000015c, 0x00050085, 0x00000006, 0x000010cb, 0x00000a08, 0x000010c3, + 0x00050081, 0x00000006, 0x000010cd, 0x000010cb, 0x0000015c, 0x00050085, 0x00000006, 0x000010d0, + 0x000010c8, 0x000010c8, 0x00050085, 0x00000006, 0x000010d3, 0x000010cd, 0x000010cd, 0x00050085, + 0x00000006, 0x000010d6, 0x0000020e, 0x000010d0, 0x00050081, 0x00000006, 0x000010d8, 0x000010d6, + 0x00000213, 0x00050085, 0x00000006, 0x000010db, 0x000010d8, 0x000010d3, 0x0005008e, 0x00000011, + 0x000010de, 0x00000a11, 0x000010db, 0x00050081, 0x00000011, 0x000010e0, 0x0000107c, 0x000010de, + 0x00050081, 0x00000006, 0x000010e3, 0x0000107f, 0x000010db, 0x00050083, 0x0000000c, 0x00000aa4, + 0x000004f6, 0x00000921, 0x00050051, 0x00000006, 0x00000aa6, 0x00000b3d, 0x00000003, 0x00050051, + 0x00000006, 0x00000aa8, 0x00000b42, 0x00000003, 0x00050051, 0x00000006, 0x00000aaa, 0x00000b47, + 0x00000003, 0x00060050, 0x00000011, 0x00000aab, 0x00000aa6, 0x00000aa8, 0x00000aaa, 0x00050051, + 0x00000006, 0x000010ff, 0x00000aa4, 0x00000000, 0x00050085, 0x00000006, 0x00001102, 0x000010ff, + 0x000009e4, 0x00050051, 0x00000006, 0x00001104, 0x00000aa4, 0x00000001, 0x00050085, 0x00000006, + 0x00001107, 0x00001104, 0x000009e9, 0x00050081, 0x00000006, 0x00001108, 0x00001102, 0x00001107, + 0x00050085, 0x00000006, 0x0000110f, 0x000010ff, 0x00000f1a, 0x00050085, 0x00000006, 0x00001114, + 0x00001104, 0x000009e4, 0x00050081, 0x00000006, 0x00001115, 0x0000110f, 0x00001114, 0x00050050, + 0x0000000c, 0x000046cc, 0x00001108, 0x00001115, 0x00050085, 0x0000000c, 0x00001119, 0x000046cc, + 0x00000a03, 0x00050051, 0x00000006, 0x0000111b, 0x00001119, 0x00000000, 0x00050085, 0x00000006, + 0x0000111e, 0x0000111b, 0x0000111b, 0x00050051, 0x00000006, 0x00001120, 0x00001119, 0x00000001, + 0x00050085, 0x00000006, 0x00001123, 0x00001120, 0x00001120, 0x00050081, 0x00000006, 0x00001124, + 0x0000111e, 0x00001123, 0x0007000c, 0x00000006, 0x00001127, 0x00000001, 0x00000025, 0x00001124, + 0x00000ee6, 0x00050085, 0x00000006, 0x0000112a, 0x000001f9, 0x00001127, 0x00050081, 0x00000006, + 0x0000112c, 0x0000112a, 0x0000015c, 0x00050085, 0x00000006, 0x0000112f, 0x00000a08, 0x00001127, + 0x00050081, 0x00000006, 0x00001131, 0x0000112f, 0x0000015c, 0x00050085, 0x00000006, 0x00001134, + 0x0000112c, 0x0000112c, 0x00050085, 0x00000006, 0x00001137, 0x00001131, 0x00001131, 0x00050085, + 0x00000006, 0x0000113a, 0x0000020e, 0x00001134, 0x00050081, 0x00000006, 0x0000113c, 0x0000113a, + 0x00000213, 0x00050085, 0x00000006, 0x0000113f, 0x0000113c, 0x00001137, 0x0005008e, 0x00000011, + 0x00001142, 0x00000aab, 0x0000113f, 0x00050081, 0x00000011, 0x00001144, 0x000010e0, 0x00001142, + 0x00050081, 0x00000006, 0x00001147, 0x000010e3, 0x0000113f, 0x00050083, 0x0000000c, 0x00000ab6, + 0x00000511, 0x00000921, 0x00050051, 0x00000006, 0x00001163, 0x00000ab6, 0x00000000, 0x00050085, + 0x00000006, 0x00001166, 0x00001163, 0x000009e4, 0x00050051, 0x00000006, 0x00001168, 0x00000ab6, + 0x00000001, 0x00050085, 0x00000006, 0x0000116b, 0x00001168, 0x000009e9, 0x00050081, 0x00000006, + 0x0000116c, 0x00001166, 0x0000116b, 0x00050085, 0x00000006, 0x00001173, 0x00001163, 0x00000f1a, + 0x00050085, 0x00000006, 0x00001178, 0x00001168, 0x000009e4, 0x00050081, 0x00000006, 0x00001179, + 0x00001173, 0x00001178, 0x00050050, 0x0000000c, 0x000046cd, 0x0000116c, 0x00001179, 0x00050085, + 0x0000000c, 0x0000117d, 0x000046cd, 0x00000a03, 0x00050051, 0x00000006, 0x0000117f, 0x0000117d, + 0x00000000, 0x00050085, 0x00000006, 0x00001182, 0x0000117f, 0x0000117f, 0x00050051, 0x00000006, + 0x00001184, 0x0000117d, 0x00000001, 0x00050085, 0x00000006, 0x00001187, 0x00001184, 0x00001184, + 0x00050081, 0x00000006, 0x00001188, 0x00001182, 0x00001187, 0x0007000c, 0x00000006, 0x0000118b, + 0x00000001, 0x00000025, 0x00001188, 0x00000ee6, 0x00050085, 0x00000006, 0x0000118e, 0x000001f9, + 0x0000118b, 0x00050081, 0x00000006, 0x00001190, 0x0000118e, 0x0000015c, 0x00050085, 0x00000006, + 0x00001193, 0x00000a08, 0x0000118b, 0x00050081, 0x00000006, 0x00001195, 0x00001193, 0x0000015c, + 0x00050085, 0x00000006, 0x00001198, 0x00001190, 0x00001190, 0x00050085, 0x00000006, 0x0000119b, + 0x00001195, 0x00001195, 0x00050085, 0x00000006, 0x0000119e, 0x0000020e, 0x00001198, 0x00050081, + 0x00000006, 0x000011a0, 0x0000119e, 0x00000213, 0x00050085, 0x00000006, 0x000011a3, 0x000011a0, + 0x0000119b, 0x0005008e, 0x00000011, 0x000011a6, 0x00000a27, 0x000011a3, 0x00050081, 0x00000011, + 0x000011a8, 0x00001144, 0x000011a6, 0x00050081, 0x00000006, 0x000011ab, 0x00001147, 0x000011a3, + 0x00050083, 0x0000000c, 0x00000ac8, 0x0000052c, 0x00000921, 0x00050051, 0x00000006, 0x00000aca, + 0x00000b4c, 0x00000001, 0x00050051, 0x00000006, 0x00000acc, 0x00000b51, 0x00000001, 0x00050051, + 0x00000006, 0x00000ace, 0x00000b56, 0x00000001, 0x00060050, 0x00000011, 0x00000acf, 0x00000aca, + 0x00000acc, 0x00000ace, 0x00050051, 0x00000006, 0x000011c7, 0x00000ac8, 0x00000000, 0x00050085, + 0x00000006, 0x000011ca, 0x000011c7, 0x000009e4, 0x00050051, 0x00000006, 0x000011cc, 0x00000ac8, + 0x00000001, 0x00050085, 0x00000006, 0x000011cf, 0x000011cc, 0x000009e9, 0x00050081, 0x00000006, + 0x000011d0, 0x000011ca, 0x000011cf, 0x00050085, 0x00000006, 0x000011d7, 0x000011c7, 0x00000f1a, + 0x00050085, 0x00000006, 0x000011dc, 0x000011cc, 0x000009e4, 0x00050081, 0x00000006, 0x000011dd, + 0x000011d7, 0x000011dc, 0x00050050, 0x0000000c, 0x000046ce, 0x000011d0, 0x000011dd, 0x00050085, + 0x0000000c, 0x000011e1, 0x000046ce, 0x00000a03, 0x00050051, 0x00000006, 0x000011e3, 0x000011e1, + 0x00000000, 0x00050085, 0x00000006, 0x000011e6, 0x000011e3, 0x000011e3, 0x00050051, 0x00000006, + 0x000011e8, 0x000011e1, 0x00000001, 0x00050085, 0x00000006, 0x000011eb, 0x000011e8, 0x000011e8, + 0x00050081, 0x00000006, 0x000011ec, 0x000011e6, 0x000011eb, 0x0007000c, 0x00000006, 0x000011ef, + 0x00000001, 0x00000025, 0x000011ec, 0x00000ee6, 0x00050085, 0x00000006, 0x000011f2, 0x000001f9, + 0x000011ef, 0x00050081, 0x00000006, 0x000011f4, 0x000011f2, 0x0000015c, 0x00050085, 0x00000006, + 0x000011f7, 0x00000a08, 0x000011ef, 0x00050081, 0x00000006, 0x000011f9, 0x000011f7, 0x0000015c, + 0x00050085, 0x00000006, 0x000011fc, 0x000011f4, 0x000011f4, 0x00050085, 0x00000006, 0x000011ff, + 0x000011f9, 0x000011f9, 0x00050085, 0x00000006, 0x00001202, 0x0000020e, 0x000011fc, 0x00050081, + 0x00000006, 0x00001204, 0x00001202, 0x00000213, 0x00050085, 0x00000006, 0x00001207, 0x00001204, + 0x000011ff, 0x0005008e, 0x00000011, 0x0000120a, 0x00000acf, 0x00001207, 0x00050081, 0x00000011, + 0x0000120c, 0x000011a8, 0x0000120a, 0x00050081, 0x00000006, 0x0000120f, 0x000011ab, 0x00001207, + 0x00050083, 0x0000000c, 0x00000ada, 0x00000547, 0x00000921, 0x00050051, 0x00000006, 0x00000adc, + 0x00000b4c, 0x00000002, 0x00050051, 0x00000006, 0x00000ade, 0x00000b51, 0x00000002, 0x00050051, + 0x00000006, 0x00000ae0, 0x00000b56, 0x00000002, 0x00060050, 0x00000011, 0x00000ae1, 0x00000adc, + 0x00000ade, 0x00000ae0, 0x00050051, 0x00000006, 0x0000122b, 0x00000ada, 0x00000000, 0x00050085, + 0x00000006, 0x0000122e, 0x0000122b, 0x000009e4, 0x00050051, 0x00000006, 0x00001230, 0x00000ada, + 0x00000001, 0x00050085, 0x00000006, 0x00001233, 0x00001230, 0x000009e9, 0x00050081, 0x00000006, + 0x00001234, 0x0000122e, 0x00001233, 0x00050085, 0x00000006, 0x0000123b, 0x0000122b, 0x00000f1a, + 0x00050085, 0x00000006, 0x00001240, 0x00001230, 0x000009e4, 0x00050081, 0x00000006, 0x00001241, + 0x0000123b, 0x00001240, 0x00050050, 0x0000000c, 0x000046cf, 0x00001234, 0x00001241, 0x00050085, + 0x0000000c, 0x00001245, 0x000046cf, 0x00000a03, 0x00050051, 0x00000006, 0x00001247, 0x00001245, + 0x00000000, 0x00050085, 0x00000006, 0x0000124a, 0x00001247, 0x00001247, 0x00050051, 0x00000006, + 0x0000124c, 0x00001245, 0x00000001, 0x00050085, 0x00000006, 0x0000124f, 0x0000124c, 0x0000124c, + 0x00050081, 0x00000006, 0x00001250, 0x0000124a, 0x0000124f, 0x0007000c, 0x00000006, 0x00001253, + 0x00000001, 0x00000025, 0x00001250, 0x00000ee6, 0x00050085, 0x00000006, 0x00001256, 0x000001f9, + 0x00001253, 0x00050081, 0x00000006, 0x00001258, 0x00001256, 0x0000015c, 0x00050085, 0x00000006, + 0x0000125b, 0x00000a08, 0x00001253, 0x00050081, 0x00000006, 0x0000125d, 0x0000125b, 0x0000015c, + 0x00050085, 0x00000006, 0x00001260, 0x00001258, 0x00001258, 0x00050085, 0x00000006, 0x00001263, + 0x0000125d, 0x0000125d, 0x00050085, 0x00000006, 0x00001266, 0x0000020e, 0x00001260, 0x00050081, + 0x00000006, 0x00001268, 0x00001266, 0x00000213, 0x00050085, 0x00000006, 0x0000126b, 0x00001268, + 0x00001263, 0x0005008e, 0x00000011, 0x0000126e, 0x00000ae1, 0x0000126b, 0x00050081, 0x00000011, + 0x00001270, 0x0000120c, 0x0000126e, 0x00050081, 0x00000006, 0x00001273, 0x0000120f, 0x0000126b, + 0x00050083, 0x0000000c, 0x00000aec, 0x00000562, 0x00000921, 0x00050051, 0x00000006, 0x0000128f, + 0x00000aec, 0x00000000, 0x00050085, 0x00000006, 0x00001292, 0x0000128f, 0x000009e4, 0x00050051, + 0x00000006, 0x00001294, 0x00000aec, 0x00000001, 0x00050085, 0x00000006, 0x00001297, 0x00001294, + 0x000009e9, 0x00050081, 0x00000006, 0x00001298, 0x00001292, 0x00001297, 0x00050085, 0x00000006, + 0x0000129f, 0x0000128f, 0x00000f1a, 0x00050085, 0x00000006, 0x000012a4, 0x00001294, 0x000009e4, + 0x00050081, 0x00000006, 0x000012a5, 0x0000129f, 0x000012a4, 0x00050050, 0x0000000c, 0x000046d0, + 0x00001298, 0x000012a5, 0x00050085, 0x0000000c, 0x000012a9, 0x000046d0, 0x00000a03, 0x00050051, + 0x00000006, 0x000012ab, 0x000012a9, 0x00000000, 0x00050085, 0x00000006, 0x000012ae, 0x000012ab, + 0x000012ab, 0x00050051, 0x00000006, 0x000012b0, 0x000012a9, 0x00000001, 0x00050085, 0x00000006, + 0x000012b3, 0x000012b0, 0x000012b0, 0x00050081, 0x00000006, 0x000012b4, 0x000012ae, 0x000012b3, + 0x0007000c, 0x00000006, 0x000012b7, 0x00000001, 0x00000025, 0x000012b4, 0x00000ee6, 0x00050085, + 0x00000006, 0x000012ba, 0x000001f9, 0x000012b7, 0x00050081, 0x00000006, 0x000012bc, 0x000012ba, + 0x0000015c, 0x00050085, 0x00000006, 0x000012bf, 0x00000a08, 0x000012b7, 0x00050081, 0x00000006, + 0x000012c1, 0x000012bf, 0x0000015c, 0x00050085, 0x00000006, 0x000012c4, 0x000012bc, 0x000012bc, + 0x00050085, 0x00000006, 0x000012c7, 0x000012c1, 0x000012c1, 0x00050085, 0x00000006, 0x000012ca, + 0x0000020e, 0x000012c4, 0x00050081, 0x00000006, 0x000012cc, 0x000012ca, 0x00000213, 0x00050085, + 0x00000006, 0x000012cf, 0x000012cc, 0x000012c7, 0x0005008e, 0x00000011, 0x000012d2, 0x00000a18, + 0x000012cf, 0x00050081, 0x00000011, 0x000012d4, 0x00001270, 0x000012d2, 0x00050081, 0x00000006, + 0x000012d7, 0x00001273, 0x000012cf, 0x00050083, 0x0000000c, 0x00000afe, 0x0000057d, 0x00000921, + 0x00050051, 0x00000006, 0x00000b00, 0x00000b5b, 0x00000002, 0x00050051, 0x00000006, 0x00000b02, + 0x00000b60, 0x00000002, 0x00050051, 0x00000006, 0x00000b04, 0x00000b65, 0x00000002, 0x00060050, + 0x00000011, 0x00000b05, 0x00000b00, 0x00000b02, 0x00000b04, 0x00050051, 0x00000006, 0x000012f3, + 0x00000afe, 0x00000000, 0x00050085, 0x00000006, 0x000012f6, 0x000012f3, 0x000009e4, 0x00050051, + 0x00000006, 0x000012f8, 0x00000afe, 0x00000001, 0x00050085, 0x00000006, 0x000012fb, 0x000012f8, + 0x000009e9, 0x00050081, 0x00000006, 0x000012fc, 0x000012f6, 0x000012fb, 0x00050085, 0x00000006, + 0x00001303, 0x000012f3, 0x00000f1a, 0x00050085, 0x00000006, 0x00001308, 0x000012f8, 0x000009e4, + 0x00050081, 0x00000006, 0x00001309, 0x00001303, 0x00001308, 0x00050050, 0x0000000c, 0x000046d1, + 0x000012fc, 0x00001309, 0x00050085, 0x0000000c, 0x0000130d, 0x000046d1, 0x00000a03, 0x00050051, + 0x00000006, 0x0000130f, 0x0000130d, 0x00000000, 0x00050085, 0x00000006, 0x00001312, 0x0000130f, + 0x0000130f, 0x00050051, 0x00000006, 0x00001314, 0x0000130d, 0x00000001, 0x00050085, 0x00000006, + 0x00001317, 0x00001314, 0x00001314, 0x00050081, 0x00000006, 0x00001318, 0x00001312, 0x00001317, + 0x0007000c, 0x00000006, 0x0000131b, 0x00000001, 0x00000025, 0x00001318, 0x00000ee6, 0x00050085, + 0x00000006, 0x0000131e, 0x000001f9, 0x0000131b, 0x00050081, 0x00000006, 0x00001320, 0x0000131e, + 0x0000015c, 0x00050085, 0x00000006, 0x00001323, 0x00000a08, 0x0000131b, 0x00050081, 0x00000006, + 0x00001325, 0x00001323, 0x0000015c, 0x00050085, 0x00000006, 0x00001328, 0x00001320, 0x00001320, + 0x00050085, 0x00000006, 0x0000132b, 0x00001325, 0x00001325, 0x00050085, 0x00000006, 0x0000132e, + 0x0000020e, 0x00001328, 0x00050081, 0x00000006, 0x00001330, 0x0000132e, 0x00000213, 0x00050085, + 0x00000006, 0x00001333, 0x00001330, 0x0000132b, 0x0005008e, 0x00000011, 0x00001336, 0x00000b05, + 0x00001333, 0x00050081, 0x00000011, 0x00001338, 0x000012d4, 0x00001336, 0x00050081, 0x00000006, + 0x0000133b, 0x000012d7, 0x00001333, 0x00050083, 0x0000000c, 0x00000b10, 0x00000598, 0x00000921, + 0x00050051, 0x00000006, 0x00000b12, 0x00000b5b, 0x00000003, 0x00050051, 0x00000006, 0x00000b14, + 0x00000b60, 0x00000003, 0x00050051, 0x00000006, 0x00000b16, 0x00000b65, 0x00000003, 0x00060050, + 0x00000011, 0x00000b17, 0x00000b12, 0x00000b14, 0x00000b16, 0x00050051, 0x00000006, 0x00001357, + 0x00000b10, 0x00000000, 0x00050085, 0x00000006, 0x0000135a, 0x00001357, 0x000009e4, 0x00050051, + 0x00000006, 0x0000135c, 0x00000b10, 0x00000001, 0x00050085, 0x00000006, 0x0000135f, 0x0000135c, + 0x000009e9, 0x00050081, 0x00000006, 0x00001360, 0x0000135a, 0x0000135f, 0x00050085, 0x00000006, + 0x00001367, 0x00001357, 0x00000f1a, 0x00050085, 0x00000006, 0x0000136c, 0x0000135c, 0x000009e4, + 0x00050081, 0x00000006, 0x0000136d, 0x00001367, 0x0000136c, 0x00050050, 0x0000000c, 0x000046d2, + 0x00001360, 0x0000136d, 0x00050085, 0x0000000c, 0x00001371, 0x000046d2, 0x00000a03, 0x00050051, + 0x00000006, 0x00001373, 0x00001371, 0x00000000, 0x00050085, 0x00000006, 0x00001376, 0x00001373, + 0x00001373, 0x00050051, 0x00000006, 0x00001378, 0x00001371, 0x00000001, 0x00050085, 0x00000006, + 0x0000137b, 0x00001378, 0x00001378, 0x00050081, 0x00000006, 0x0000137c, 0x00001376, 0x0000137b, + 0x0007000c, 0x00000006, 0x0000137f, 0x00000001, 0x00000025, 0x0000137c, 0x00000ee6, 0x00050085, + 0x00000006, 0x00001382, 0x000001f9, 0x0000137f, 0x00050081, 0x00000006, 0x00001384, 0x00001382, + 0x0000015c, 0x00050085, 0x00000006, 0x00001387, 0x00000a08, 0x0000137f, 0x00050081, 0x00000006, + 0x00001389, 0x00001387, 0x0000015c, 0x00050085, 0x00000006, 0x0000138c, 0x00001384, 0x00001384, + 0x00050085, 0x00000006, 0x0000138f, 0x00001389, 0x00001389, 0x00050085, 0x00000006, 0x00001392, + 0x0000020e, 0x0000138c, 0x00050081, 0x00000006, 0x00001394, 0x00001392, 0x00000213, 0x00050085, + 0x00000006, 0x00001397, 0x00001394, 0x0000138f, 0x0005008e, 0x00000011, 0x0000139a, 0x00000b17, + 0x00001397, 0x00050081, 0x00000011, 0x0000139c, 0x00001338, 0x0000139a, 0x00050081, 0x00000006, + 0x0000139f, 0x0000133b, 0x00001397, 0x00050088, 0x00000006, 0x000013b4, 0x000000d1, 0x0000139f, + 0x00060050, 0x00000011, 0x000013bb, 0x000013b4, 0x000013b4, 0x000013b4, 0x00050085, 0x00000011, + 0x00000b27, 0x0000139c, 0x000013bb, 0x0007000c, 0x00000011, 0x00000b28, 0x00000001, 0x00000028, + 0x00000a28, 0x00000b27, 0x0007000c, 0x00000011, 0x00000b29, 0x00000001, 0x00000025, 0x00000a46, + 0x00000b28, 0x0004003d, 0x000005e3, 0x0000081a, 0x000005e5, 0x0004007c, 0x000005e8, 0x0000081c, + 0x00000626, 0x00050051, 0x00000006, 0x0000081e, 0x00000b29, 0x00000000, 0x00050051, 0x00000006, + 0x0000081f, 0x00000b29, 0x00000001, 0x00050051, 0x00000006, 0x00000820, 0x00000b29, 0x00000002, + 0x00070050, 0x00000016, 0x00000821, 0x0000081e, 0x0000081f, 0x00000820, 0x000000d1, 0x00040063, + 0x0000081a, 0x0000081c, 0x00000821, 0x000200f9, 0x00000822, 0x000200f8, 0x00000822, 0x00050080, + 0x0000001b, 0x00000635, 0x00000802, 0x00000632, 0x00060052, 0x00000044, 0x0000387e, 0x00000635, + 0x00000626, 0x00000000, 0x000300f7, 0x000013e7, 0x00000000, 0x000300fb, 0x00000125, 0x000013c5, + 0x000200f8, 0x000013c5, 0x000500ae, 0x0000007d, 0x000013cb, 0x00000635, 0x00000805, 0x000400a8, + 0x0000007d, 0x000013cc, 0x000013cb, 0x000300f7, 0x000013d4, 0x00000000, 0x000400fa, 0x000013cc, + 0x000013cd, 0x000013d4, 0x000200f8, 0x000013cd, 0x00050051, 0x0000001b, 0x000013cf, 0x00000626, + 0x00000001, 0x0004006d, 0x0000001b, 0x000013d2, 0x00000608, 0x000500ae, 0x0000007d, 0x000013d3, + 0x000013cf, 0x000013d2, 0x000200f9, 0x000013d4, 0x000200f8, 0x000013d4, 0x000700f5, 0x0000007d, + 0x000013d5, 0x000013cb, 0x000013c5, 0x000013d3, 0x000013cd, 0x000300f7, 0x000013d7, 0x00000000, + 0x000400fa, 0x000013d5, 0x000013d6, 0x000013d7, 0x000200f8, 0x000013d6, 0x000200f9, 0x000013e7, + 0x000200f8, 0x000013d7, 0x00040070, 0x0000000c, 0x000014d9, 0x0000387e, 0x0007004f, 0x00000044, + 0x000014db, 0x0000372e, 0x0000372e, 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x000014dc, + 0x000014db, 0x00050085, 0x0000000c, 0x000014dd, 0x000014d9, 0x000014dc, 0x0007004f, 0x00000044, + 0x000014df, 0x0000372e, 0x0000372e, 0x00000002, 0x00000003, 0x0004007c, 0x0000000c, 0x000014e0, + 0x000014df, 0x00050081, 0x0000000c, 0x000014e1, 0x000014dd, 0x000014e0, 0x0006000c, 0x0000000c, + 0x000014e3, 0x00000001, 0x00000008, 0x000014e1, 0x00050083, 0x0000000c, 0x000014e6, 0x000014e1, + 0x000014e3, 0x0007004f, 0x00000044, 0x000014e9, 0x000046bb, 0x000046bb, 0x00000000, 0x00000001, + 0x0004007c, 0x0000000c, 0x000014ea, 0x000014e9, 0x00050085, 0x0000000c, 0x000014eb, 0x000014e3, + 0x000014ea, 0x0007004f, 0x00000044, 0x000014ed, 0x000046bb, 0x000046bb, 0x00000002, 0x00000003, + 0x0004007c, 0x0000000c, 0x000014ee, 0x000014ed, 0x00050081, 0x0000000c, 0x000014ef, 0x000014eb, + 0x000014ee, 0x0007004f, 0x00000044, 0x000014f2, 0x000046bc, 0x000046bc, 0x00000000, 0x00000001, + 0x0004007c, 0x0000000c, 0x000014f3, 0x000014f2, 0x00050081, 0x0000000c, 0x000014f4, 0x000014ef, + 0x000014f3, 0x0007004f, 0x00000044, 0x000014f7, 0x000046bc, 0x000046bc, 0x00000002, 0x00000003, + 0x0004007c, 0x0000000c, 0x000014f8, 0x000014f7, 0x00050081, 0x0000000c, 0x000014f9, 0x000014ef, + 0x000014f8, 0x0007004f, 0x00000044, 0x000014fc, 0x000046bd, 0x000046bd, 0x00000000, 0x00000001, + 0x0004007c, 0x0000000c, 0x000014fd, 0x000014fc, 0x00050081, 0x0000000c, 0x000014fe, 0x000014ef, + 0x000014fd, 0x0004003d, 0x0000010b, 0x000016f1, 0x0000010d, 0x00060060, 0x00000016, 0x000016f3, + 0x000016f1, 0x000014ef, 0x000000bd, 0x0004003d, 0x0000010b, 0x000016f6, 0x0000010d, 0x00060060, + 0x00000016, 0x000016f8, 0x000016f6, 0x000014ef, 0x00000115, 0x0004003d, 0x0000010b, 0x000016fb, + 0x0000010d, 0x00060060, 0x00000016, 0x000016fd, 0x000016fb, 0x000014ef, 0x0000011b, 0x0004003d, + 0x0000010b, 0x00001700, 0x0000010d, 0x00060060, 0x00000016, 0x00001702, 0x00001700, 0x000014f4, + 0x000000bd, 0x0004003d, 0x0000010b, 0x00001705, 0x0000010d, 0x00060060, 0x00000016, 0x00001707, + 0x00001705, 0x000014f4, 0x00000115, 0x0004003d, 0x0000010b, 0x0000170a, 0x0000010d, 0x00060060, + 0x00000016, 0x0000170c, 0x0000170a, 0x000014f4, 0x0000011b, 0x0004003d, 0x0000010b, 0x0000170f, + 0x0000010d, 0x00060060, 0x00000016, 0x00001711, 0x0000170f, 0x000014f9, 0x000000bd, 0x0004003d, + 0x0000010b, 0x00001714, 0x0000010d, 0x00060060, 0x00000016, 0x00001716, 0x00001714, 0x000014f9, + 0x00000115, 0x0004003d, 0x0000010b, 0x00001719, 0x0000010d, 0x00060060, 0x00000016, 0x0000171b, + 0x00001719, 0x000014f9, 0x0000011b, 0x0004003d, 0x0000010b, 0x0000171e, 0x0000010d, 0x00060060, + 0x00000016, 0x00001720, 0x0000171e, 0x000014fe, 0x000000bd, 0x0004003d, 0x0000010b, 0x00001723, + 0x0000010d, 0x00060060, 0x00000016, 0x00001725, 0x00001723, 0x000014fe, 0x00000115, 0x0004003d, + 0x0000010b, 0x00001728, 0x0000010d, 0x00060060, 0x00000016, 0x0000172a, 0x00001728, 0x000014fe, + 0x0000011b, 0x00050085, 0x00000016, 0x00001519, 0x000016fd, 0x000046b6, 0x00050085, 0x00000016, + 0x0000151c, 0x000016f3, 0x000046b6, 0x00050081, 0x00000016, 0x0000151e, 0x0000151c, 0x000016f8, + 0x00050081, 0x00000016, 0x0000151f, 0x00001519, 0x0000151e, 0x00050085, 0x00000016, 0x00001522, + 0x0000170c, 0x000046b6, 0x00050085, 0x00000016, 0x00001525, 0x00001702, 0x000046b6, 0x00050081, + 0x00000016, 0x00001527, 0x00001525, 0x00001707, 0x00050081, 0x00000016, 0x00001528, 0x00001522, + 0x00001527, 0x00050085, 0x00000016, 0x0000152b, 0x0000171b, 0x000046b6, 0x00050085, 0x00000016, + 0x0000152e, 0x00001711, 0x000046b6, 0x00050081, 0x00000016, 0x00001530, 0x0000152e, 0x00001716, + 0x00050081, 0x00000016, 0x00001531, 0x0000152b, 0x00001530, 0x00050085, 0x00000016, 0x00001534, + 0x0000172a, 0x000046b6, 0x00050085, 0x00000016, 0x00001537, 0x00001720, 0x000046b6, 0x00050081, + 0x00000016, 0x00001539, 0x00001537, 0x00001725, 0x00050081, 0x00000016, 0x0000153a, 0x00001534, + 0x00001539, 0x00050051, 0x00000006, 0x0000153c, 0x0000151f, 0x00000000, 0x00050051, 0x00000006, + 0x0000153e, 0x0000151f, 0x00000001, 0x00050051, 0x00000006, 0x00001540, 0x00001528, 0x00000000, + 0x00050051, 0x00000006, 0x00001542, 0x00001528, 0x00000001, 0x00050051, 0x00000006, 0x00001544, + 0x00001528, 0x00000002, 0x00050051, 0x00000006, 0x00001546, 0x00001528, 0x00000003, 0x00050051, + 0x00000006, 0x00001548, 0x00001531, 0x00000000, 0x00050051, 0x00000006, 0x0000154a, 0x00001531, + 0x00000001, 0x00050051, 0x00000006, 0x0000154c, 0x00001531, 0x00000002, 0x00050051, 0x00000006, + 0x0000154e, 0x00001531, 0x00000003, 0x00050051, 0x00000006, 0x00001550, 0x0000153a, 0x00000002, + 0x00050051, 0x00000006, 0x00001552, 0x0000153a, 0x00000003, 0x00050051, 0x00000006, 0x0000176a, + 0x000014e6, 0x00000000, 0x00050083, 0x00000006, 0x0000176b, 0x000000d1, 0x0000176a, 0x00050051, + 0x00000006, 0x0000176e, 0x000014e6, 0x00000001, 0x00050083, 0x00000006, 0x0000176f, 0x000000d1, + 0x0000176e, 0x00050085, 0x00000006, 0x00001770, 0x0000176b, 0x0000176f, 0x00050083, 0x00000006, + 0x00001790, 0x0000154e, 0x00001544, 0x00050083, 0x00000006, 0x00001793, 0x00001544, 0x00001546, + 0x0006000c, 0x00000006, 0x00001795, 0x00000001, 0x00000004, 0x00001790, 0x0006000c, 0x00000006, + 0x00001797, 0x00000001, 0x00000004, 0x00001793, 0x0007000c, 0x00000006, 0x00001798, 0x00000001, + 0x00000028, 0x00001795, 0x00001797, 0x0004007c, 0x0000001b, 0x000017ea, 0x00001798, 0x00050082, + 0x0000001b, 0x000017eb, 0x000000e1, 0x000017ea, 0x0004007c, 0x00000006, 0x000017ec, 0x000017eb, + 0x00050083, 0x00000006, 0x0000179d, 0x0000154e, 0x00001546, 0x00050085, 0x00000006, 0x000017a0, + 0x0000179d, 0x00001770, 0x0006000c, 0x00000006, 0x000017a6, 0x00000001, 0x00000004, 0x0000179d, + 0x00050085, 0x00000006, 0x000017a8, 0x000017a6, 0x000017ec, 0x0008000c, 0x00000006, 0x000017f7, + 0x00000001, 0x0000002b, 0x000017a8, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x000017ac, + 0x000017f7, 0x000017f7, 0x00050083, 0x00000006, 0x000017b4, 0x00001542, 0x00001544, 0x00050083, + 0x00000006, 0x000017b7, 0x00001544, 0x0000153c, 0x0006000c, 0x00000006, 0x000017b9, 0x00000001, + 0x00000004, 0x000017b4, 0x0006000c, 0x00000006, 0x000017bb, 0x00000001, 0x00000004, 0x000017b7, + 0x0007000c, 0x00000006, 0x000017bc, 0x00000001, 0x00000028, 0x000017b9, 0x000017bb, 0x0004007c, + 0x0000001b, 0x00001803, 0x000017bc, 0x00050082, 0x0000001b, 0x00001804, 0x000000e1, 0x00001803, + 0x0004007c, 0x00000006, 0x00001805, 0x00001804, 0x00050083, 0x00000006, 0x000017c1, 0x00001542, + 0x0000153c, 0x00050085, 0x00000006, 0x000017c4, 0x000017c1, 0x00001770, 0x0006000c, 0x00000006, + 0x000017ca, 0x00000001, 0x00000004, 0x000017c1, 0x00050085, 0x00000006, 0x000017cc, 0x000017ca, + 0x00001805, 0x0008000c, 0x00000006, 0x00001810, 0x00000001, 0x0000002b, 0x000017cc, 0x000000d9, + 0x000000d1, 0x00050085, 0x00000006, 0x000017d0, 0x00001810, 0x00001810, 0x00050081, 0x00000006, + 0x00004709, 0x000017ac, 0x000017d0, 0x00050085, 0x00000006, 0x000017d5, 0x00001770, 0x00004709, + 0x00050085, 0x00000006, 0x0000183f, 0x0000176a, 0x0000176f, 0x00050083, 0x00000006, 0x00001855, + 0x0000154c, 0x0000154e, 0x0006000c, 0x00000006, 0x0000185a, 0x00000001, 0x00000004, 0x00001855, + 0x0007000c, 0x00000006, 0x0000185d, 0x00000001, 0x00000028, 0x0000185a, 0x00001795, 0x0004007c, + 0x0000001b, 0x000018af, 0x0000185d, 0x00050082, 0x0000001b, 0x000018b0, 0x000000e1, 0x000018af, + 0x0004007c, 0x00000006, 0x000018b1, 0x000018b0, 0x00050083, 0x00000006, 0x00001862, 0x0000154c, + 0x00001544, 0x00050085, 0x00000006, 0x00001865, 0x00001862, 0x0000183f, 0x00050081, 0x00000006, + 0x00001868, 0x000017a0, 0x00001865, 0x0006000c, 0x00000006, 0x0000186b, 0x00000001, 0x00000004, + 0x00001862, 0x00050085, 0x00000006, 0x0000186d, 0x0000186b, 0x000018b1, 0x0008000c, 0x00000006, + 0x000018bc, 0x00000001, 0x0000002b, 0x0000186d, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, + 0x00001871, 0x000018bc, 0x000018bc, 0x00050085, 0x00000006, 0x00001874, 0x00001871, 0x0000183f, + 0x00050081, 0x00000006, 0x00001876, 0x000017d5, 0x00001874, 0x00050083, 0x00000006, 0x00001879, + 0x00001548, 0x0000154e, 0x00050083, 0x00000006, 0x0000187c, 0x0000154e, 0x0000153e, 0x0006000c, + 0x00000006, 0x0000187e, 0x00000001, 0x00000004, 0x00001879, 0x0006000c, 0x00000006, 0x00001880, + 0x00000001, 0x00000004, 0x0000187c, 0x0007000c, 0x00000006, 0x00001881, 0x00000001, 0x00000028, + 0x0000187e, 0x00001880, 0x0004007c, 0x0000001b, 0x000018c8, 0x00001881, 0x00050082, 0x0000001b, + 0x000018c9, 0x000000e1, 0x000018c8, 0x0004007c, 0x00000006, 0x000018ca, 0x000018c9, 0x00050083, + 0x00000006, 0x00001886, 0x00001548, 0x0000153e, 0x00050085, 0x00000006, 0x00001889, 0x00001886, + 0x0000183f, 0x00050081, 0x00000006, 0x0000188c, 0x000017c4, 0x00001889, 0x0006000c, 0x00000006, + 0x0000188f, 0x00000001, 0x00000004, 0x00001886, 0x00050085, 0x00000006, 0x00001891, 0x0000188f, + 0x000018ca, 0x0008000c, 0x00000006, 0x000018d5, 0x00000001, 0x0000002b, 0x00001891, 0x000000d9, + 0x000000d1, 0x00050085, 0x00000006, 0x00001895, 0x000018d5, 0x000018d5, 0x00050085, 0x00000006, + 0x00001898, 0x00001895, 0x0000183f, 0x00050081, 0x00000006, 0x0000189a, 0x00001876, 0x00001898, + 0x00050085, 0x00000006, 0x0000190e, 0x0000176b, 0x0000176e, 0x00050083, 0x00000006, 0x0000191a, + 0x00001548, 0x00001542, 0x00050083, 0x00000006, 0x0000191d, 0x00001542, 0x00001540, 0x0006000c, + 0x00000006, 0x0000191f, 0x00000001, 0x00000004, 0x0000191a, 0x0006000c, 0x00000006, 0x00001921, + 0x00000001, 0x00000004, 0x0000191d, 0x0007000c, 0x00000006, 0x00001922, 0x00000001, 0x00000028, + 0x0000191f, 0x00001921, 0x0004007c, 0x0000001b, 0x00001974, 0x00001922, 0x00050082, 0x0000001b, + 0x00001975, 0x000000e1, 0x00001974, 0x0004007c, 0x00000006, 0x00001976, 0x00001975, 0x00050083, + 0x00000006, 0x00001927, 0x00001548, 0x00001540, 0x00050085, 0x00000006, 0x0000192a, 0x00001927, + 0x0000190e, 0x00050081, 0x00000006, 0x0000192d, 0x00001868, 0x0000192a, 0x0006000c, 0x00000006, + 0x00001930, 0x00000001, 0x00000004, 0x00001927, 0x00050085, 0x00000006, 0x00001932, 0x00001930, + 0x00001976, 0x0008000c, 0x00000006, 0x00001981, 0x00000001, 0x0000002b, 0x00001932, 0x000000d9, + 0x000000d1, 0x00050085, 0x00000006, 0x00001936, 0x00001981, 0x00001981, 0x00050085, 0x00000006, + 0x00001939, 0x00001936, 0x0000190e, 0x00050081, 0x00000006, 0x0000193b, 0x0000189a, 0x00001939, + 0x00050083, 0x00000006, 0x0000193e, 0x00001552, 0x00001542, 0x0006000c, 0x00000006, 0x00001943, + 0x00000001, 0x00000004, 0x0000193e, 0x0007000c, 0x00000006, 0x00001946, 0x00000001, 0x00000028, + 0x00001943, 0x000017b9, 0x0004007c, 0x0000001b, 0x0000198d, 0x00001946, 0x00050082, 0x0000001b, + 0x0000198e, 0x000000e1, 0x0000198d, 0x0004007c, 0x00000006, 0x0000198f, 0x0000198e, 0x00050083, + 0x00000006, 0x0000194b, 0x00001552, 0x00001544, 0x00050085, 0x00000006, 0x0000194e, 0x0000194b, + 0x0000190e, 0x00050081, 0x00000006, 0x00001951, 0x0000188c, 0x0000194e, 0x0006000c, 0x00000006, + 0x00001954, 0x00000001, 0x00000004, 0x0000194b, 0x00050085, 0x00000006, 0x00001956, 0x00001954, + 0x0000198f, 0x0008000c, 0x00000006, 0x0000199a, 0x00000001, 0x0000002b, 0x00001956, 0x000000d9, + 0x000000d1, 0x00050085, 0x00000006, 0x0000195a, 0x0000199a, 0x0000199a, 0x00050085, 0x00000006, + 0x0000195d, 0x0000195a, 0x0000190e, 0x00050081, 0x00000006, 0x0000195f, 0x0000193b, 0x0000195d, + 0x00050085, 0x00000006, 0x000019db, 0x0000176a, 0x0000176e, 0x00050083, 0x00000006, 0x000019df, + 0x0000154a, 0x00001548, 0x0006000c, 0x00000006, 0x000019e4, 0x00000001, 0x00000004, 0x000019df, + 0x0007000c, 0x00000006, 0x000019e7, 0x00000001, 0x00000028, 0x000019e4, 0x0000191f, 0x0004007c, + 0x0000001b, 0x00001a39, 0x000019e7, 0x00050082, 0x0000001b, 0x00001a3a, 0x000000e1, 0x00001a39, + 0x0004007c, 0x00000006, 0x00001a3b, 0x00001a3a, 0x00050083, 0x00000006, 0x000019ec, 0x0000154a, + 0x00001542, 0x00050085, 0x00000006, 0x000019ef, 0x000019ec, 0x000019db, 0x00050081, 0x00000006, + 0x000019f2, 0x0000192d, 0x000019ef, 0x0006000c, 0x00000006, 0x000019f5, 0x00000001, 0x00000004, + 0x000019ec, 0x00050085, 0x00000006, 0x000019f7, 0x000019f5, 0x00001a3b, 0x0008000c, 0x00000006, + 0x00001a46, 0x00000001, 0x0000002b, 0x000019f7, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, + 0x000019fb, 0x00001a46, 0x00001a46, 0x00050085, 0x00000006, 0x000019fe, 0x000019fb, 0x000019db, + 0x00050081, 0x00000006, 0x00001a00, 0x0000195f, 0x000019fe, 0x00050083, 0x00000006, 0x00001a03, + 0x00001550, 0x00001548, 0x0006000c, 0x00000006, 0x00001a08, 0x00000001, 0x00000004, 0x00001a03, + 0x0007000c, 0x00000006, 0x00001a0b, 0x00000001, 0x00000028, 0x00001a08, 0x0000187e, 0x0004007c, + 0x0000001b, 0x00001a52, 0x00001a0b, 0x00050082, 0x0000001b, 0x00001a53, 0x000000e1, 0x00001a52, + 0x0004007c, 0x00000006, 0x00001a54, 0x00001a53, 0x00050083, 0x00000006, 0x00001a10, 0x00001550, + 0x0000154e, 0x00050085, 0x00000006, 0x00001a13, 0x00001a10, 0x000019db, 0x00050081, 0x00000006, + 0x00001a16, 0x00001951, 0x00001a13, 0x00050050, 0x0000000c, 0x000046d6, 0x000019f2, 0x00001a16, + 0x0006000c, 0x00000006, 0x00001a19, 0x00000001, 0x00000004, 0x00001a10, 0x00050085, 0x00000006, + 0x00001a1b, 0x00001a19, 0x00001a54, 0x0008000c, 0x00000006, 0x00001a5f, 0x00000001, 0x0000002b, + 0x00001a1b, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00001a1f, 0x00001a5f, 0x00001a5f, + 0x00050085, 0x00000006, 0x00001a22, 0x00001a1f, 0x000019db, 0x00050081, 0x00000006, 0x00001a24, + 0x00001a00, 0x00001a22, 0x00050085, 0x0000000c, 0x00001583, 0x000046d6, 0x000046d6, 0x00050051, + 0x00000006, 0x00001585, 0x00001583, 0x00000000, 0x00050051, 0x00000006, 0x00001587, 0x00001583, + 0x00000001, 0x00050081, 0x00000006, 0x00001588, 0x00001585, 0x00001587, 0x000500b8, 0x0000007d, + 0x0000158b, 0x00001588, 0x000003c8, 0x0004007c, 0x0000001b, 0x00001a6f, 0x00001588, 0x000500c2, + 0x0000001b, 0x00001a71, 0x00001a6f, 0x000000ef, 0x00050082, 0x0000001b, 0x00001a72, 0x000000ea, + 0x00001a71, 0x0004007c, 0x00000006, 0x00001a73, 0x00001a72, 0x000600a9, 0x00000006, 0x0000470e, + 0x0000158b, 0x000000d1, 0x00001a73, 0x000600a9, 0x00000006, 0x0000470f, 0x0000158b, 0x000000d1, + 0x000019f2, 0x00060052, 0x0000000c, 0x000038c9, 0x0000470f, 0x000046d6, 0x00000000, 0x00050050, + 0x0000000c, 0x00001a83, 0x0000470e, 0x0000470e, 0x00050085, 0x0000000c, 0x000015a1, 0x000038c9, + 0x00001a83, 0x00050085, 0x00000006, 0x000046d7, 0x00001a24, 0x00001a24, 0x00050085, 0x00000006, + 0x000015a7, 0x000046c3, 0x000046d7, 0x00050051, 0x00000006, 0x000015a9, 0x000015a1, 0x00000000, + 0x00050085, 0x00000006, 0x000015ac, 0x000015a9, 0x000015a9, 0x00050051, 0x00000006, 0x000015ae, + 0x000015a1, 0x00000001, 0x00050085, 0x00000006, 0x000015b1, 0x000015ae, 0x000015ae, 0x00050081, + 0x00000006, 0x000015b2, 0x000015ac, 0x000015b1, 0x0006000c, 0x00000006, 0x000015b5, 0x00000001, + 0x00000004, 0x000015a9, 0x0006000c, 0x00000006, 0x000015b8, 0x00000001, 0x00000004, 0x000015ae, + 0x0007000c, 0x00000006, 0x000015b9, 0x00000001, 0x00000028, 0x000015b5, 0x000015b8, 0x0004007c, + 0x0000001b, 0x00001a8c, 0x000015b9, 0x00050082, 0x0000001b, 0x00001a8d, 0x000000e1, 0x00001a8c, + 0x0004007c, 0x00000006, 0x00001a8e, 0x00001a8d, 0x00050085, 0x00000006, 0x000015bb, 0x000015b2, + 0x00001a8e, 0x00050083, 0x00000006, 0x000015bf, 0x000015bb, 0x000000d1, 0x00050085, 0x00000006, + 0x000015c1, 0x000015bf, 0x000015a7, 0x00050081, 0x00000006, 0x000015c2, 0x000000d1, 0x000015c1, + 0x00050085, 0x00000006, 0x000015c6, 0x000046d7, 0x000046c5, 0x00050081, 0x00000006, 0x000015c7, + 0x000000d1, 0x000015c6, 0x00050050, 0x0000000c, 0x000015c8, 0x000015c2, 0x000015c7, 0x00050085, + 0x00000006, 0x000015cc, 0x000046d7, 0x000046c6, 0x00050081, 0x00000006, 0x000015cd, 0x0000012e, + 0x000015cc, 0x0004007c, 0x0000001b, 0x00001aa9, 0x000015cd, 0x00050082, 0x0000001b, 0x00001aaa, + 0x000000e1, 0x00001aa9, 0x0004007c, 0x00000006, 0x00001aab, 0x00001aaa, 0x00050051, 0x00000006, + 0x000015d1, 0x00001702, 0x00000002, 0x00050051, 0x00000006, 0x000015d3, 0x00001707, 0x00000002, + 0x00050051, 0x00000006, 0x000015d5, 0x0000170c, 0x00000002, 0x00060050, 0x00000011, 0x000015d6, + 0x000015d1, 0x000015d3, 0x000015d5, 0x00050051, 0x00000006, 0x000015d8, 0x00001711, 0x00000003, + 0x00050051, 0x00000006, 0x000015da, 0x00001716, 0x00000003, 0x00050051, 0x00000006, 0x000015dc, + 0x0000171b, 0x00000003, 0x00060050, 0x00000011, 0x000015dd, 0x000015d8, 0x000015da, 0x000015dc, + 0x00050051, 0x00000006, 0x000015df, 0x00001702, 0x00000001, 0x00050051, 0x00000006, 0x000015e1, + 0x00001707, 0x00000001, 0x00050051, 0x00000006, 0x000015e3, 0x0000170c, 0x00000001, 0x00060050, + 0x00000011, 0x000015e4, 0x000015df, 0x000015e1, 0x000015e3, 0x0007000c, 0x00000011, 0x00001ab4, + 0x00000001, 0x00000025, 0x000015dd, 0x000015e4, 0x0007000c, 0x00000011, 0x00001ab5, 0x00000001, + 0x00000025, 0x000015d6, 0x00001ab4, 0x00050051, 0x00000006, 0x000015e7, 0x00001711, 0x00000000, + 0x00050051, 0x00000006, 0x000015e9, 0x00001716, 0x00000000, 0x00050051, 0x00000006, 0x000015eb, + 0x0000171b, 0x00000000, 0x00060050, 0x00000011, 0x000015ec, 0x000015e7, 0x000015e9, 0x000015eb, + 0x0007000c, 0x00000011, 0x000015ed, 0x00000001, 0x00000025, 0x00001ab5, 0x000015ec, 0x0007000c, + 0x00000011, 0x00001abb, 0x00000001, 0x00000028, 0x000015dd, 0x000015e4, 0x0007000c, 0x00000011, + 0x00001abc, 0x00000001, 0x00000028, 0x000015d6, 0x00001abb, 0x0007000c, 0x00000011, 0x0000160b, + 0x00000001, 0x00000028, 0x00001abc, 0x000015ec, 0x00050083, 0x0000000c, 0x0000160f, 0x0000046f, + 0x000014e6, 0x00050051, 0x00000006, 0x00001611, 0x000016f3, 0x00000000, 0x00050051, 0x00000006, + 0x00001613, 0x000016f8, 0x00000000, 0x00050051, 0x00000006, 0x00001615, 0x000016fd, 0x00000000, + 0x00060050, 0x00000011, 0x00001616, 0x00001611, 0x00001613, 0x00001615, 0x00050051, 0x00000006, + 0x00001ad0, 0x0000160f, 0x00000000, 0x00050085, 0x00000006, 0x00001ad3, 0x00001ad0, 0x000015a9, + 0x00050051, 0x00000006, 0x00001ad5, 0x0000160f, 0x00000001, 0x00050085, 0x00000006, 0x00001ad8, + 0x00001ad5, 0x000015ae, 0x00050081, 0x00000006, 0x00001ad9, 0x00001ad3, 0x00001ad8, 0x0004007f, + 0x00000006, 0x00001adf, 0x000015ae, 0x00050085, 0x00000006, 0x00001ae0, 0x00001ad0, 0x00001adf, + 0x00050085, 0x00000006, 0x00001ae5, 0x00001ad5, 0x000015a9, 0x00050081, 0x00000006, 0x00001ae6, + 0x00001ae0, 0x00001ae5, 0x00050050, 0x0000000c, 0x000046d8, 0x00001ad9, 0x00001ae6, 0x00050085, + 0x0000000c, 0x00001aea, 0x000046d8, 0x000015c8, 0x00050051, 0x00000006, 0x00001aec, 0x00001aea, + 0x00000000, 0x00050085, 0x00000006, 0x00001aef, 0x00001aec, 0x00001aec, 0x00050051, 0x00000006, + 0x00001af1, 0x00001aea, 0x00000001, 0x00050085, 0x00000006, 0x00001af4, 0x00001af1, 0x00001af1, + 0x00050081, 0x00000006, 0x00001af5, 0x00001aef, 0x00001af4, 0x0007000c, 0x00000006, 0x00001af8, + 0x00000001, 0x00000025, 0x00001af5, 0x00001aab, 0x00050085, 0x00000006, 0x00001afb, 0x000001f9, + 0x00001af8, 0x00050081, 0x00000006, 0x00001afd, 0x00001afb, 0x0000015c, 0x00050085, 0x00000006, + 0x00001b00, 0x000015cd, 0x00001af8, 0x00050081, 0x00000006, 0x00001b02, 0x00001b00, 0x0000015c, + 0x00050085, 0x00000006, 0x00001b05, 0x00001afd, 0x00001afd, 0x00050085, 0x00000006, 0x00001b08, + 0x00001b02, 0x00001b02, 0x00050085, 0x00000006, 0x00001b0b, 0x0000020e, 0x00001b05, 0x00050081, + 0x00000006, 0x00001b0d, 0x00001b0b, 0x00000213, 0x00050085, 0x00000006, 0x00001b10, 0x00001b0d, + 0x00001b08, 0x0005008e, 0x00000011, 0x00001b13, 0x00001616, 0x00001b10, 0x00050083, 0x0000000c, + 0x00001621, 0x0000048a, 0x000014e6, 0x00050051, 0x00000006, 0x00001623, 0x000016f3, 0x00000001, + 0x00050051, 0x00000006, 0x00001625, 0x000016f8, 0x00000001, 0x00050051, 0x00000006, 0x00001627, + 0x000016fd, 0x00000001, 0x00060050, 0x00000011, 0x00001628, 0x00001623, 0x00001625, 0x00001627, + 0x00050051, 0x00000006, 0x00001b34, 0x00001621, 0x00000000, 0x00050085, 0x00000006, 0x00001b37, + 0x00001b34, 0x000015a9, 0x00050051, 0x00000006, 0x00001b39, 0x00001621, 0x00000001, 0x00050085, + 0x00000006, 0x00001b3c, 0x00001b39, 0x000015ae, 0x00050081, 0x00000006, 0x00001b3d, 0x00001b37, + 0x00001b3c, 0x00050085, 0x00000006, 0x00001b44, 0x00001b34, 0x00001adf, 0x00050085, 0x00000006, + 0x00001b49, 0x00001b39, 0x000015a9, 0x00050081, 0x00000006, 0x00001b4a, 0x00001b44, 0x00001b49, + 0x00050050, 0x0000000c, 0x000046d9, 0x00001b3d, 0x00001b4a, 0x00050085, 0x0000000c, 0x00001b4e, + 0x000046d9, 0x000015c8, 0x00050051, 0x00000006, 0x00001b50, 0x00001b4e, 0x00000000, 0x00050085, + 0x00000006, 0x00001b53, 0x00001b50, 0x00001b50, 0x00050051, 0x00000006, 0x00001b55, 0x00001b4e, + 0x00000001, 0x00050085, 0x00000006, 0x00001b58, 0x00001b55, 0x00001b55, 0x00050081, 0x00000006, + 0x00001b59, 0x00001b53, 0x00001b58, 0x0007000c, 0x00000006, 0x00001b5c, 0x00000001, 0x00000025, + 0x00001b59, 0x00001aab, 0x00050085, 0x00000006, 0x00001b5f, 0x000001f9, 0x00001b5c, 0x00050081, + 0x00000006, 0x00001b61, 0x00001b5f, 0x0000015c, 0x00050085, 0x00000006, 0x00001b64, 0x000015cd, + 0x00001b5c, 0x00050081, 0x00000006, 0x00001b66, 0x00001b64, 0x0000015c, 0x00050085, 0x00000006, + 0x00001b69, 0x00001b61, 0x00001b61, 0x00050085, 0x00000006, 0x00001b6c, 0x00001b66, 0x00001b66, + 0x00050085, 0x00000006, 0x00001b6f, 0x0000020e, 0x00001b69, 0x00050081, 0x00000006, 0x00001b71, + 0x00001b6f, 0x00000213, 0x00050085, 0x00000006, 0x00001b74, 0x00001b71, 0x00001b6c, 0x0005008e, + 0x00000011, 0x00001b77, 0x00001628, 0x00001b74, 0x00050081, 0x00000011, 0x00001b79, 0x00001b13, + 0x00001b77, 0x00050081, 0x00000006, 0x00001b7c, 0x00001b10, 0x00001b74, 0x00050083, 0x0000000c, + 0x00001633, 0x000004a5, 0x000014e6, 0x00050051, 0x00000006, 0x00001635, 0x00001702, 0x00000000, + 0x00050051, 0x00000006, 0x00001637, 0x00001707, 0x00000000, 0x00050051, 0x00000006, 0x00001639, + 0x0000170c, 0x00000000, 0x00060050, 0x00000011, 0x0000163a, 0x00001635, 0x00001637, 0x00001639, + 0x00050051, 0x00000006, 0x00001b98, 0x00001633, 0x00000000, 0x00050085, 0x00000006, 0x00001b9b, + 0x00001b98, 0x000015a9, 0x00050051, 0x00000006, 0x00001b9d, 0x00001633, 0x00000001, 0x00050085, + 0x00000006, 0x00001ba0, 0x00001b9d, 0x000015ae, 0x00050081, 0x00000006, 0x00001ba1, 0x00001b9b, + 0x00001ba0, 0x00050085, 0x00000006, 0x00001ba8, 0x00001b98, 0x00001adf, 0x00050085, 0x00000006, + 0x00001bad, 0x00001b9d, 0x000015a9, 0x00050081, 0x00000006, 0x00001bae, 0x00001ba8, 0x00001bad, + 0x00050050, 0x0000000c, 0x000046da, 0x00001ba1, 0x00001bae, 0x00050085, 0x0000000c, 0x00001bb2, + 0x000046da, 0x000015c8, 0x00050051, 0x00000006, 0x00001bb4, 0x00001bb2, 0x00000000, 0x00050085, + 0x00000006, 0x00001bb7, 0x00001bb4, 0x00001bb4, 0x00050051, 0x00000006, 0x00001bb9, 0x00001bb2, + 0x00000001, 0x00050085, 0x00000006, 0x00001bbc, 0x00001bb9, 0x00001bb9, 0x00050081, 0x00000006, + 0x00001bbd, 0x00001bb7, 0x00001bbc, 0x0007000c, 0x00000006, 0x00001bc0, 0x00000001, 0x00000025, + 0x00001bbd, 0x00001aab, 0x00050085, 0x00000006, 0x00001bc3, 0x000001f9, 0x00001bc0, 0x00050081, + 0x00000006, 0x00001bc5, 0x00001bc3, 0x0000015c, 0x00050085, 0x00000006, 0x00001bc8, 0x000015cd, + 0x00001bc0, 0x00050081, 0x00000006, 0x00001bca, 0x00001bc8, 0x0000015c, 0x00050085, 0x00000006, + 0x00001bcd, 0x00001bc5, 0x00001bc5, 0x00050085, 0x00000006, 0x00001bd0, 0x00001bca, 0x00001bca, + 0x00050085, 0x00000006, 0x00001bd3, 0x0000020e, 0x00001bcd, 0x00050081, 0x00000006, 0x00001bd5, + 0x00001bd3, 0x00000213, 0x00050085, 0x00000006, 0x00001bd8, 0x00001bd5, 0x00001bd0, 0x0005008e, + 0x00000011, 0x00001bdb, 0x0000163a, 0x00001bd8, 0x00050081, 0x00000011, 0x00001bdd, 0x00001b79, + 0x00001bdb, 0x00050081, 0x00000006, 0x00001be0, 0x00001b7c, 0x00001bd8, 0x00050083, 0x0000000c, + 0x00001645, 0x000004c0, 0x000014e6, 0x00050051, 0x00000006, 0x00001bfc, 0x00001645, 0x00000000, + 0x00050085, 0x00000006, 0x00001bff, 0x00001bfc, 0x000015a9, 0x00050051, 0x00000006, 0x00001c01, + 0x00001645, 0x00000001, 0x00050085, 0x00000006, 0x00001c04, 0x00001c01, 0x000015ae, 0x00050081, + 0x00000006, 0x00001c05, 0x00001bff, 0x00001c04, 0x00050085, 0x00000006, 0x00001c0c, 0x00001bfc, + 0x00001adf, 0x00050085, 0x00000006, 0x00001c11, 0x00001c01, 0x000015a9, 0x00050081, 0x00000006, + 0x00001c12, 0x00001c0c, 0x00001c11, 0x00050050, 0x0000000c, 0x000046db, 0x00001c05, 0x00001c12, + 0x00050085, 0x0000000c, 0x00001c16, 0x000046db, 0x000015c8, 0x00050051, 0x00000006, 0x00001c18, + 0x00001c16, 0x00000000, 0x00050085, 0x00000006, 0x00001c1b, 0x00001c18, 0x00001c18, 0x00050051, + 0x00000006, 0x00001c1d, 0x00001c16, 0x00000001, 0x00050085, 0x00000006, 0x00001c20, 0x00001c1d, + 0x00001c1d, 0x00050081, 0x00000006, 0x00001c21, 0x00001c1b, 0x00001c20, 0x0007000c, 0x00000006, + 0x00001c24, 0x00000001, 0x00000025, 0x00001c21, 0x00001aab, 0x00050085, 0x00000006, 0x00001c27, + 0x000001f9, 0x00001c24, 0x00050081, 0x00000006, 0x00001c29, 0x00001c27, 0x0000015c, 0x00050085, + 0x00000006, 0x00001c2c, 0x000015cd, 0x00001c24, 0x00050081, 0x00000006, 0x00001c2e, 0x00001c2c, + 0x0000015c, 0x00050085, 0x00000006, 0x00001c31, 0x00001c29, 0x00001c29, 0x00050085, 0x00000006, + 0x00001c34, 0x00001c2e, 0x00001c2e, 0x00050085, 0x00000006, 0x00001c37, 0x0000020e, 0x00001c31, + 0x00050081, 0x00000006, 0x00001c39, 0x00001c37, 0x00000213, 0x00050085, 0x00000006, 0x00001c3c, + 0x00001c39, 0x00001c34, 0x0005008e, 0x00000011, 0x00001c3f, 0x000015e4, 0x00001c3c, 0x00050081, + 0x00000011, 0x00001c41, 0x00001bdd, 0x00001c3f, 0x00050081, 0x00000006, 0x00001c44, 0x00001be0, + 0x00001c3c, 0x0004007f, 0x0000000c, 0x00001657, 0x000014e6, 0x00050051, 0x00000006, 0x00001c60, + 0x00001657, 0x00000000, 0x00050085, 0x00000006, 0x00001c63, 0x00001c60, 0x000015a9, 0x00050051, + 0x00000006, 0x00001c65, 0x00001657, 0x00000001, 0x00050085, 0x00000006, 0x00001c68, 0x00001c65, + 0x000015ae, 0x00050081, 0x00000006, 0x00001c69, 0x00001c63, 0x00001c68, 0x00050085, 0x00000006, + 0x00001c70, 0x00001c60, 0x00001adf, 0x00050085, 0x00000006, 0x00001c75, 0x00001c65, 0x000015a9, + 0x00050081, 0x00000006, 0x00001c76, 0x00001c70, 0x00001c75, 0x00050050, 0x0000000c, 0x000046dc, + 0x00001c69, 0x00001c76, 0x00050085, 0x0000000c, 0x00001c7a, 0x000046dc, 0x000015c8, 0x00050051, + 0x00000006, 0x00001c7c, 0x00001c7a, 0x00000000, 0x00050085, 0x00000006, 0x00001c7f, 0x00001c7c, + 0x00001c7c, 0x00050051, 0x00000006, 0x00001c81, 0x00001c7a, 0x00000001, 0x00050085, 0x00000006, + 0x00001c84, 0x00001c81, 0x00001c81, 0x00050081, 0x00000006, 0x00001c85, 0x00001c7f, 0x00001c84, + 0x0007000c, 0x00000006, 0x00001c88, 0x00000001, 0x00000025, 0x00001c85, 0x00001aab, 0x00050085, + 0x00000006, 0x00001c8b, 0x000001f9, 0x00001c88, 0x00050081, 0x00000006, 0x00001c8d, 0x00001c8b, + 0x0000015c, 0x00050085, 0x00000006, 0x00001c90, 0x000015cd, 0x00001c88, 0x00050081, 0x00000006, + 0x00001c92, 0x00001c90, 0x0000015c, 0x00050085, 0x00000006, 0x00001c95, 0x00001c8d, 0x00001c8d, + 0x00050085, 0x00000006, 0x00001c98, 0x00001c92, 0x00001c92, 0x00050085, 0x00000006, 0x00001c9b, + 0x0000020e, 0x00001c95, 0x00050081, 0x00000006, 0x00001c9d, 0x00001c9b, 0x00000213, 0x00050085, + 0x00000006, 0x00001ca0, 0x00001c9d, 0x00001c98, 0x0005008e, 0x00000011, 0x00001ca3, 0x000015d6, + 0x00001ca0, 0x00050081, 0x00000011, 0x00001ca5, 0x00001c41, 0x00001ca3, 0x00050081, 0x00000006, + 0x00001ca8, 0x00001c44, 0x00001ca0, 0x00050083, 0x0000000c, 0x00001669, 0x000004f6, 0x000014e6, + 0x00050051, 0x00000006, 0x0000166b, 0x00001702, 0x00000003, 0x00050051, 0x00000006, 0x0000166d, + 0x00001707, 0x00000003, 0x00050051, 0x00000006, 0x0000166f, 0x0000170c, 0x00000003, 0x00060050, + 0x00000011, 0x00001670, 0x0000166b, 0x0000166d, 0x0000166f, 0x00050051, 0x00000006, 0x00001cc4, + 0x00001669, 0x00000000, 0x00050085, 0x00000006, 0x00001cc7, 0x00001cc4, 0x000015a9, 0x00050051, + 0x00000006, 0x00001cc9, 0x00001669, 0x00000001, 0x00050085, 0x00000006, 0x00001ccc, 0x00001cc9, + 0x000015ae, 0x00050081, 0x00000006, 0x00001ccd, 0x00001cc7, 0x00001ccc, 0x00050085, 0x00000006, + 0x00001cd4, 0x00001cc4, 0x00001adf, 0x00050085, 0x00000006, 0x00001cd9, 0x00001cc9, 0x000015a9, + 0x00050081, 0x00000006, 0x00001cda, 0x00001cd4, 0x00001cd9, 0x00050050, 0x0000000c, 0x000046dd, + 0x00001ccd, 0x00001cda, 0x00050085, 0x0000000c, 0x00001cde, 0x000046dd, 0x000015c8, 0x00050051, + 0x00000006, 0x00001ce0, 0x00001cde, 0x00000000, 0x00050085, 0x00000006, 0x00001ce3, 0x00001ce0, + 0x00001ce0, 0x00050051, 0x00000006, 0x00001ce5, 0x00001cde, 0x00000001, 0x00050085, 0x00000006, + 0x00001ce8, 0x00001ce5, 0x00001ce5, 0x00050081, 0x00000006, 0x00001ce9, 0x00001ce3, 0x00001ce8, + 0x0007000c, 0x00000006, 0x00001cec, 0x00000001, 0x00000025, 0x00001ce9, 0x00001aab, 0x00050085, + 0x00000006, 0x00001cef, 0x000001f9, 0x00001cec, 0x00050081, 0x00000006, 0x00001cf1, 0x00001cef, + 0x0000015c, 0x00050085, 0x00000006, 0x00001cf4, 0x000015cd, 0x00001cec, 0x00050081, 0x00000006, + 0x00001cf6, 0x00001cf4, 0x0000015c, 0x00050085, 0x00000006, 0x00001cf9, 0x00001cf1, 0x00001cf1, + 0x00050085, 0x00000006, 0x00001cfc, 0x00001cf6, 0x00001cf6, 0x00050085, 0x00000006, 0x00001cff, + 0x0000020e, 0x00001cf9, 0x00050081, 0x00000006, 0x00001d01, 0x00001cff, 0x00000213, 0x00050085, + 0x00000006, 0x00001d04, 0x00001d01, 0x00001cfc, 0x0005008e, 0x00000011, 0x00001d07, 0x00001670, + 0x00001d04, 0x00050081, 0x00000011, 0x00001d09, 0x00001ca5, 0x00001d07, 0x00050081, 0x00000006, + 0x00001d0c, 0x00001ca8, 0x00001d04, 0x00050083, 0x0000000c, 0x0000167b, 0x00000511, 0x000014e6, + 0x00050051, 0x00000006, 0x00001d28, 0x0000167b, 0x00000000, 0x00050085, 0x00000006, 0x00001d2b, + 0x00001d28, 0x000015a9, 0x00050051, 0x00000006, 0x00001d2d, 0x0000167b, 0x00000001, 0x00050085, + 0x00000006, 0x00001d30, 0x00001d2d, 0x000015ae, 0x00050081, 0x00000006, 0x00001d31, 0x00001d2b, + 0x00001d30, 0x00050085, 0x00000006, 0x00001d38, 0x00001d28, 0x00001adf, 0x00050085, 0x00000006, + 0x00001d3d, 0x00001d2d, 0x000015a9, 0x00050081, 0x00000006, 0x00001d3e, 0x00001d38, 0x00001d3d, + 0x00050050, 0x0000000c, 0x000046de, 0x00001d31, 0x00001d3e, 0x00050085, 0x0000000c, 0x00001d42, + 0x000046de, 0x000015c8, 0x00050051, 0x00000006, 0x00001d44, 0x00001d42, 0x00000000, 0x00050085, + 0x00000006, 0x00001d47, 0x00001d44, 0x00001d44, 0x00050051, 0x00000006, 0x00001d49, 0x00001d42, + 0x00000001, 0x00050085, 0x00000006, 0x00001d4c, 0x00001d49, 0x00001d49, 0x00050081, 0x00000006, + 0x00001d4d, 0x00001d47, 0x00001d4c, 0x0007000c, 0x00000006, 0x00001d50, 0x00000001, 0x00000025, + 0x00001d4d, 0x00001aab, 0x00050085, 0x00000006, 0x00001d53, 0x000001f9, 0x00001d50, 0x00050081, + 0x00000006, 0x00001d55, 0x00001d53, 0x0000015c, 0x00050085, 0x00000006, 0x00001d58, 0x000015cd, + 0x00001d50, 0x00050081, 0x00000006, 0x00001d5a, 0x00001d58, 0x0000015c, 0x00050085, 0x00000006, + 0x00001d5d, 0x00001d55, 0x00001d55, 0x00050085, 0x00000006, 0x00001d60, 0x00001d5a, 0x00001d5a, + 0x00050085, 0x00000006, 0x00001d63, 0x0000020e, 0x00001d5d, 0x00050081, 0x00000006, 0x00001d65, + 0x00001d63, 0x00000213, 0x00050085, 0x00000006, 0x00001d68, 0x00001d65, 0x00001d60, 0x0005008e, + 0x00000011, 0x00001d6b, 0x000015ec, 0x00001d68, 0x00050081, 0x00000011, 0x00001d6d, 0x00001d09, + 0x00001d6b, 0x00050081, 0x00000006, 0x00001d70, 0x00001d0c, 0x00001d68, 0x00050083, 0x0000000c, + 0x0000168d, 0x0000052c, 0x000014e6, 0x00050051, 0x00000006, 0x0000168f, 0x00001711, 0x00000001, + 0x00050051, 0x00000006, 0x00001691, 0x00001716, 0x00000001, 0x00050051, 0x00000006, 0x00001693, + 0x0000171b, 0x00000001, 0x00060050, 0x00000011, 0x00001694, 0x0000168f, 0x00001691, 0x00001693, + 0x00050051, 0x00000006, 0x00001d8c, 0x0000168d, 0x00000000, 0x00050085, 0x00000006, 0x00001d8f, + 0x00001d8c, 0x000015a9, 0x00050051, 0x00000006, 0x00001d91, 0x0000168d, 0x00000001, 0x00050085, + 0x00000006, 0x00001d94, 0x00001d91, 0x000015ae, 0x00050081, 0x00000006, 0x00001d95, 0x00001d8f, + 0x00001d94, 0x00050085, 0x00000006, 0x00001d9c, 0x00001d8c, 0x00001adf, 0x00050085, 0x00000006, + 0x00001da1, 0x00001d91, 0x000015a9, 0x00050081, 0x00000006, 0x00001da2, 0x00001d9c, 0x00001da1, + 0x00050050, 0x0000000c, 0x000046df, 0x00001d95, 0x00001da2, 0x00050085, 0x0000000c, 0x00001da6, + 0x000046df, 0x000015c8, 0x00050051, 0x00000006, 0x00001da8, 0x00001da6, 0x00000000, 0x00050085, + 0x00000006, 0x00001dab, 0x00001da8, 0x00001da8, 0x00050051, 0x00000006, 0x00001dad, 0x00001da6, + 0x00000001, 0x00050085, 0x00000006, 0x00001db0, 0x00001dad, 0x00001dad, 0x00050081, 0x00000006, + 0x00001db1, 0x00001dab, 0x00001db0, 0x0007000c, 0x00000006, 0x00001db4, 0x00000001, 0x00000025, + 0x00001db1, 0x00001aab, 0x00050085, 0x00000006, 0x00001db7, 0x000001f9, 0x00001db4, 0x00050081, + 0x00000006, 0x00001db9, 0x00001db7, 0x0000015c, 0x00050085, 0x00000006, 0x00001dbc, 0x000015cd, + 0x00001db4, 0x00050081, 0x00000006, 0x00001dbe, 0x00001dbc, 0x0000015c, 0x00050085, 0x00000006, + 0x00001dc1, 0x00001db9, 0x00001db9, 0x00050085, 0x00000006, 0x00001dc4, 0x00001dbe, 0x00001dbe, + 0x00050085, 0x00000006, 0x00001dc7, 0x0000020e, 0x00001dc1, 0x00050081, 0x00000006, 0x00001dc9, + 0x00001dc7, 0x00000213, 0x00050085, 0x00000006, 0x00001dcc, 0x00001dc9, 0x00001dc4, 0x0005008e, + 0x00000011, 0x00001dcf, 0x00001694, 0x00001dcc, 0x00050081, 0x00000011, 0x00001dd1, 0x00001d6d, + 0x00001dcf, 0x00050081, 0x00000006, 0x00001dd4, 0x00001d70, 0x00001dcc, 0x00050083, 0x0000000c, + 0x0000169f, 0x00000547, 0x000014e6, 0x00050051, 0x00000006, 0x000016a1, 0x00001711, 0x00000002, + 0x00050051, 0x00000006, 0x000016a3, 0x00001716, 0x00000002, 0x00050051, 0x00000006, 0x000016a5, + 0x0000171b, 0x00000002, 0x00060050, 0x00000011, 0x000016a6, 0x000016a1, 0x000016a3, 0x000016a5, + 0x00050051, 0x00000006, 0x00001df0, 0x0000169f, 0x00000000, 0x00050085, 0x00000006, 0x00001df3, + 0x00001df0, 0x000015a9, 0x00050051, 0x00000006, 0x00001df5, 0x0000169f, 0x00000001, 0x00050085, + 0x00000006, 0x00001df8, 0x00001df5, 0x000015ae, 0x00050081, 0x00000006, 0x00001df9, 0x00001df3, + 0x00001df8, 0x00050085, 0x00000006, 0x00001e00, 0x00001df0, 0x00001adf, 0x00050085, 0x00000006, + 0x00001e05, 0x00001df5, 0x000015a9, 0x00050081, 0x00000006, 0x00001e06, 0x00001e00, 0x00001e05, + 0x00050050, 0x0000000c, 0x000046e0, 0x00001df9, 0x00001e06, 0x00050085, 0x0000000c, 0x00001e0a, + 0x000046e0, 0x000015c8, 0x00050051, 0x00000006, 0x00001e0c, 0x00001e0a, 0x00000000, 0x00050085, + 0x00000006, 0x00001e0f, 0x00001e0c, 0x00001e0c, 0x00050051, 0x00000006, 0x00001e11, 0x00001e0a, + 0x00000001, 0x00050085, 0x00000006, 0x00001e14, 0x00001e11, 0x00001e11, 0x00050081, 0x00000006, + 0x00001e15, 0x00001e0f, 0x00001e14, 0x0007000c, 0x00000006, 0x00001e18, 0x00000001, 0x00000025, + 0x00001e15, 0x00001aab, 0x00050085, 0x00000006, 0x00001e1b, 0x000001f9, 0x00001e18, 0x00050081, + 0x00000006, 0x00001e1d, 0x00001e1b, 0x0000015c, 0x00050085, 0x00000006, 0x00001e20, 0x000015cd, + 0x00001e18, 0x00050081, 0x00000006, 0x00001e22, 0x00001e20, 0x0000015c, 0x00050085, 0x00000006, + 0x00001e25, 0x00001e1d, 0x00001e1d, 0x00050085, 0x00000006, 0x00001e28, 0x00001e22, 0x00001e22, + 0x00050085, 0x00000006, 0x00001e2b, 0x0000020e, 0x00001e25, 0x00050081, 0x00000006, 0x00001e2d, + 0x00001e2b, 0x00000213, 0x00050085, 0x00000006, 0x00001e30, 0x00001e2d, 0x00001e28, 0x0005008e, + 0x00000011, 0x00001e33, 0x000016a6, 0x00001e30, 0x00050081, 0x00000011, 0x00001e35, 0x00001dd1, + 0x00001e33, 0x00050081, 0x00000006, 0x00001e38, 0x00001dd4, 0x00001e30, 0x00050083, 0x0000000c, + 0x000016b1, 0x00000562, 0x000014e6, 0x00050051, 0x00000006, 0x00001e54, 0x000016b1, 0x00000000, + 0x00050085, 0x00000006, 0x00001e57, 0x00001e54, 0x000015a9, 0x00050051, 0x00000006, 0x00001e59, + 0x000016b1, 0x00000001, 0x00050085, 0x00000006, 0x00001e5c, 0x00001e59, 0x000015ae, 0x00050081, + 0x00000006, 0x00001e5d, 0x00001e57, 0x00001e5c, 0x00050085, 0x00000006, 0x00001e64, 0x00001e54, + 0x00001adf, 0x00050085, 0x00000006, 0x00001e69, 0x00001e59, 0x000015a9, 0x00050081, 0x00000006, + 0x00001e6a, 0x00001e64, 0x00001e69, 0x00050050, 0x0000000c, 0x000046e1, 0x00001e5d, 0x00001e6a, + 0x00050085, 0x0000000c, 0x00001e6e, 0x000046e1, 0x000015c8, 0x00050051, 0x00000006, 0x00001e70, + 0x00001e6e, 0x00000000, 0x00050085, 0x00000006, 0x00001e73, 0x00001e70, 0x00001e70, 0x00050051, + 0x00000006, 0x00001e75, 0x00001e6e, 0x00000001, 0x00050085, 0x00000006, 0x00001e78, 0x00001e75, + 0x00001e75, 0x00050081, 0x00000006, 0x00001e79, 0x00001e73, 0x00001e78, 0x0007000c, 0x00000006, + 0x00001e7c, 0x00000001, 0x00000025, 0x00001e79, 0x00001aab, 0x00050085, 0x00000006, 0x00001e7f, + 0x000001f9, 0x00001e7c, 0x00050081, 0x00000006, 0x00001e81, 0x00001e7f, 0x0000015c, 0x00050085, + 0x00000006, 0x00001e84, 0x000015cd, 0x00001e7c, 0x00050081, 0x00000006, 0x00001e86, 0x00001e84, + 0x0000015c, 0x00050085, 0x00000006, 0x00001e89, 0x00001e81, 0x00001e81, 0x00050085, 0x00000006, + 0x00001e8c, 0x00001e86, 0x00001e86, 0x00050085, 0x00000006, 0x00001e8f, 0x0000020e, 0x00001e89, + 0x00050081, 0x00000006, 0x00001e91, 0x00001e8f, 0x00000213, 0x00050085, 0x00000006, 0x00001e94, + 0x00001e91, 0x00001e8c, 0x0005008e, 0x00000011, 0x00001e97, 0x000015dd, 0x00001e94, 0x00050081, + 0x00000011, 0x00001e99, 0x00001e35, 0x00001e97, 0x00050081, 0x00000006, 0x00001e9c, 0x00001e38, + 0x00001e94, 0x00050083, 0x0000000c, 0x000016c3, 0x0000057d, 0x000014e6, 0x00050051, 0x00000006, + 0x000016c5, 0x00001720, 0x00000002, 0x00050051, 0x00000006, 0x000016c7, 0x00001725, 0x00000002, + 0x00050051, 0x00000006, 0x000016c9, 0x0000172a, 0x00000002, 0x00060050, 0x00000011, 0x000016ca, + 0x000016c5, 0x000016c7, 0x000016c9, 0x00050051, 0x00000006, 0x00001eb8, 0x000016c3, 0x00000000, + 0x00050085, 0x00000006, 0x00001ebb, 0x00001eb8, 0x000015a9, 0x00050051, 0x00000006, 0x00001ebd, + 0x000016c3, 0x00000001, 0x00050085, 0x00000006, 0x00001ec0, 0x00001ebd, 0x000015ae, 0x00050081, + 0x00000006, 0x00001ec1, 0x00001ebb, 0x00001ec0, 0x00050085, 0x00000006, 0x00001ec8, 0x00001eb8, + 0x00001adf, 0x00050085, 0x00000006, 0x00001ecd, 0x00001ebd, 0x000015a9, 0x00050081, 0x00000006, + 0x00001ece, 0x00001ec8, 0x00001ecd, 0x00050050, 0x0000000c, 0x000046e2, 0x00001ec1, 0x00001ece, + 0x00050085, 0x0000000c, 0x00001ed2, 0x000046e2, 0x000015c8, 0x00050051, 0x00000006, 0x00001ed4, + 0x00001ed2, 0x00000000, 0x00050085, 0x00000006, 0x00001ed7, 0x00001ed4, 0x00001ed4, 0x00050051, + 0x00000006, 0x00001ed9, 0x00001ed2, 0x00000001, 0x00050085, 0x00000006, 0x00001edc, 0x00001ed9, + 0x00001ed9, 0x00050081, 0x00000006, 0x00001edd, 0x00001ed7, 0x00001edc, 0x0007000c, 0x00000006, + 0x00001ee0, 0x00000001, 0x00000025, 0x00001edd, 0x00001aab, 0x00050085, 0x00000006, 0x00001ee3, + 0x000001f9, 0x00001ee0, 0x00050081, 0x00000006, 0x00001ee5, 0x00001ee3, 0x0000015c, 0x00050085, + 0x00000006, 0x00001ee8, 0x000015cd, 0x00001ee0, 0x00050081, 0x00000006, 0x00001eea, 0x00001ee8, + 0x0000015c, 0x00050085, 0x00000006, 0x00001eed, 0x00001ee5, 0x00001ee5, 0x00050085, 0x00000006, + 0x00001ef0, 0x00001eea, 0x00001eea, 0x00050085, 0x00000006, 0x00001ef3, 0x0000020e, 0x00001eed, + 0x00050081, 0x00000006, 0x00001ef5, 0x00001ef3, 0x00000213, 0x00050085, 0x00000006, 0x00001ef8, + 0x00001ef5, 0x00001ef0, 0x0005008e, 0x00000011, 0x00001efb, 0x000016ca, 0x00001ef8, 0x00050081, + 0x00000011, 0x00001efd, 0x00001e99, 0x00001efb, 0x00050081, 0x00000006, 0x00001f00, 0x00001e9c, + 0x00001ef8, 0x00050083, 0x0000000c, 0x000016d5, 0x00000598, 0x000014e6, 0x00050051, 0x00000006, + 0x000016d7, 0x00001720, 0x00000003, 0x00050051, 0x00000006, 0x000016d9, 0x00001725, 0x00000003, + 0x00050051, 0x00000006, 0x000016db, 0x0000172a, 0x00000003, 0x00060050, 0x00000011, 0x000016dc, + 0x000016d7, 0x000016d9, 0x000016db, 0x00050051, 0x00000006, 0x00001f1c, 0x000016d5, 0x00000000, + 0x00050085, 0x00000006, 0x00001f1f, 0x00001f1c, 0x000015a9, 0x00050051, 0x00000006, 0x00001f21, + 0x000016d5, 0x00000001, 0x00050085, 0x00000006, 0x00001f24, 0x00001f21, 0x000015ae, 0x00050081, + 0x00000006, 0x00001f25, 0x00001f1f, 0x00001f24, 0x00050085, 0x00000006, 0x00001f2c, 0x00001f1c, + 0x00001adf, 0x00050085, 0x00000006, 0x00001f31, 0x00001f21, 0x000015a9, 0x00050081, 0x00000006, + 0x00001f32, 0x00001f2c, 0x00001f31, 0x00050050, 0x0000000c, 0x000046e3, 0x00001f25, 0x00001f32, + 0x00050085, 0x0000000c, 0x00001f36, 0x000046e3, 0x000015c8, 0x00050051, 0x00000006, 0x00001f38, + 0x00001f36, 0x00000000, 0x00050085, 0x00000006, 0x00001f3b, 0x00001f38, 0x00001f38, 0x00050051, + 0x00000006, 0x00001f3d, 0x00001f36, 0x00000001, 0x00050085, 0x00000006, 0x00001f40, 0x00001f3d, + 0x00001f3d, 0x00050081, 0x00000006, 0x00001f41, 0x00001f3b, 0x00001f40, 0x0007000c, 0x00000006, + 0x00001f44, 0x00000001, 0x00000025, 0x00001f41, 0x00001aab, 0x00050085, 0x00000006, 0x00001f47, + 0x000001f9, 0x00001f44, 0x00050081, 0x00000006, 0x00001f49, 0x00001f47, 0x0000015c, 0x00050085, + 0x00000006, 0x00001f4c, 0x000015cd, 0x00001f44, 0x00050081, 0x00000006, 0x00001f4e, 0x00001f4c, + 0x0000015c, 0x00050085, 0x00000006, 0x00001f51, 0x00001f49, 0x00001f49, 0x00050085, 0x00000006, + 0x00001f54, 0x00001f4e, 0x00001f4e, 0x00050085, 0x00000006, 0x00001f57, 0x0000020e, 0x00001f51, + 0x00050081, 0x00000006, 0x00001f59, 0x00001f57, 0x00000213, 0x00050085, 0x00000006, 0x00001f5c, + 0x00001f59, 0x00001f54, 0x0005008e, 0x00000011, 0x00001f5f, 0x000016dc, 0x00001f5c, 0x00050081, + 0x00000011, 0x00001f61, 0x00001efd, 0x00001f5f, 0x00050081, 0x00000006, 0x00001f64, 0x00001f00, + 0x00001f5c, 0x00050088, 0x00000006, 0x00001f79, 0x000000d1, 0x00001f64, 0x00060050, 0x00000011, + 0x00001f80, 0x00001f79, 0x00001f79, 0x00001f79, 0x00050085, 0x00000011, 0x000016ec, 0x00001f61, + 0x00001f80, 0x0007000c, 0x00000011, 0x000016ed, 0x00000001, 0x00000028, 0x000015ed, 0x000016ec, + 0x0007000c, 0x00000011, 0x000016ee, 0x00000001, 0x00000025, 0x0000160b, 0x000016ed, 0x0004003d, + 0x000005e3, 0x000013df, 0x000005e5, 0x0004007c, 0x000005e8, 0x000013e1, 0x0000387e, 0x00050051, + 0x00000006, 0x000013e3, 0x000016ee, 0x00000000, 0x00050051, 0x00000006, 0x000013e4, 0x000016ee, + 0x00000001, 0x00050051, 0x00000006, 0x000013e5, 0x000016ee, 0x00000002, 0x00070050, 0x00000016, + 0x000013e6, 0x000013e3, 0x000013e4, 0x000013e5, 0x000000d1, 0x00040063, 0x000013df, 0x000013e1, + 0x000013e6, 0x000200f9, 0x000013e7, 0x000200f8, 0x000013e7, 0x00050051, 0x0000001b, 0x00000643, + 0x00000626, 0x00000001, 0x00050080, 0x0000001b, 0x00000644, 0x00000643, 0x00000632, 0x00050050, + 0x00000044, 0x000046e4, 0x00000635, 0x00000644, 0x000300f7, 0x00001fac, 0x00000000, 0x000300fb, + 0x00000125, 0x00001f8a, 0x000200f8, 0x00001f8a, 0x000300f7, 0x00001f99, 0x00000000, 0x000400fa, + 0x000013cc, 0x00001f92, 0x00001f99, 0x000200f8, 0x00001f92, 0x0004006d, 0x0000001b, 0x00001f97, + 0x00000608, 0x000500ae, 0x0000007d, 0x00001f98, 0x00000644, 0x00001f97, 0x000200f9, 0x00001f99, + 0x000200f8, 0x00001f99, 0x000700f5, 0x0000007d, 0x00001f9a, 0x000013cb, 0x00001f8a, 0x00001f98, + 0x00001f92, 0x000300f7, 0x00001f9c, 0x00000000, 0x000400fa, 0x00001f9a, 0x00001f9b, 0x00001f9c, + 0x000200f8, 0x00001f9b, 0x000200f9, 0x00001fac, 0x000200f8, 0x00001f9c, 0x00040070, 0x0000000c, + 0x0000209e, 0x000046e4, 0x0007004f, 0x00000044, 0x000020a0, 0x0000372e, 0x0000372e, 0x00000000, + 0x00000001, 0x0004007c, 0x0000000c, 0x000020a1, 0x000020a0, 0x00050085, 0x0000000c, 0x000020a2, + 0x0000209e, 0x000020a1, 0x0007004f, 0x00000044, 0x000020a4, 0x0000372e, 0x0000372e, 0x00000002, + 0x00000003, 0x0004007c, 0x0000000c, 0x000020a5, 0x000020a4, 0x00050081, 0x0000000c, 0x000020a6, + 0x000020a2, 0x000020a5, 0x0006000c, 0x0000000c, 0x000020a8, 0x00000001, 0x00000008, 0x000020a6, + 0x00050083, 0x0000000c, 0x000020ab, 0x000020a6, 0x000020a8, 0x0007004f, 0x00000044, 0x000020ae, + 0x000046bb, 0x000046bb, 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x000020af, 0x000020ae, + 0x00050085, 0x0000000c, 0x000020b0, 0x000020a8, 0x000020af, 0x0007004f, 0x00000044, 0x000020b2, + 0x000046bb, 0x000046bb, 0x00000002, 0x00000003, 0x0004007c, 0x0000000c, 0x000020b3, 0x000020b2, + 0x00050081, 0x0000000c, 0x000020b4, 0x000020b0, 0x000020b3, 0x0007004f, 0x00000044, 0x000020b7, + 0x000046bc, 0x000046bc, 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x000020b8, 0x000020b7, + 0x00050081, 0x0000000c, 0x000020b9, 0x000020b4, 0x000020b8, 0x0007004f, 0x00000044, 0x000020bc, + 0x000046bc, 0x000046bc, 0x00000002, 0x00000003, 0x0004007c, 0x0000000c, 0x000020bd, 0x000020bc, + 0x00050081, 0x0000000c, 0x000020be, 0x000020b4, 0x000020bd, 0x0007004f, 0x00000044, 0x000020c1, + 0x000046bd, 0x000046bd, 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x000020c2, 0x000020c1, + 0x00050081, 0x0000000c, 0x000020c3, 0x000020b4, 0x000020c2, 0x0004003d, 0x0000010b, 0x000022b6, + 0x0000010d, 0x00060060, 0x00000016, 0x000022b8, 0x000022b6, 0x000020b4, 0x000000bd, 0x0004003d, + 0x0000010b, 0x000022bb, 0x0000010d, 0x00060060, 0x00000016, 0x000022bd, 0x000022bb, 0x000020b4, + 0x00000115, 0x0004003d, 0x0000010b, 0x000022c0, 0x0000010d, 0x00060060, 0x00000016, 0x000022c2, + 0x000022c0, 0x000020b4, 0x0000011b, 0x0004003d, 0x0000010b, 0x000022c5, 0x0000010d, 0x00060060, + 0x00000016, 0x000022c7, 0x000022c5, 0x000020b9, 0x000000bd, 0x0004003d, 0x0000010b, 0x000022ca, + 0x0000010d, 0x00060060, 0x00000016, 0x000022cc, 0x000022ca, 0x000020b9, 0x00000115, 0x0004003d, + 0x0000010b, 0x000022cf, 0x0000010d, 0x00060060, 0x00000016, 0x000022d1, 0x000022cf, 0x000020b9, + 0x0000011b, 0x0004003d, 0x0000010b, 0x000022d4, 0x0000010d, 0x00060060, 0x00000016, 0x000022d6, + 0x000022d4, 0x000020be, 0x000000bd, 0x0004003d, 0x0000010b, 0x000022d9, 0x0000010d, 0x00060060, + 0x00000016, 0x000022db, 0x000022d9, 0x000020be, 0x00000115, 0x0004003d, 0x0000010b, 0x000022de, + 0x0000010d, 0x00060060, 0x00000016, 0x000022e0, 0x000022de, 0x000020be, 0x0000011b, 0x0004003d, + 0x0000010b, 0x000022e3, 0x0000010d, 0x00060060, 0x00000016, 0x000022e5, 0x000022e3, 0x000020c3, + 0x000000bd, 0x0004003d, 0x0000010b, 0x000022e8, 0x0000010d, 0x00060060, 0x00000016, 0x000022ea, + 0x000022e8, 0x000020c3, 0x00000115, 0x0004003d, 0x0000010b, 0x000022ed, 0x0000010d, 0x00060060, + 0x00000016, 0x000022ef, 0x000022ed, 0x000020c3, 0x0000011b, 0x00050085, 0x00000016, 0x000020de, + 0x000022c2, 0x000046b6, 0x00050085, 0x00000016, 0x000020e1, 0x000022b8, 0x000046b6, 0x00050081, + 0x00000016, 0x000020e3, 0x000020e1, 0x000022bd, 0x00050081, 0x00000016, 0x000020e4, 0x000020de, + 0x000020e3, 0x00050085, 0x00000016, 0x000020e7, 0x000022d1, 0x000046b6, 0x00050085, 0x00000016, + 0x000020ea, 0x000022c7, 0x000046b6, 0x00050081, 0x00000016, 0x000020ec, 0x000020ea, 0x000022cc, + 0x00050081, 0x00000016, 0x000020ed, 0x000020e7, 0x000020ec, 0x00050085, 0x00000016, 0x000020f0, + 0x000022e0, 0x000046b6, 0x00050085, 0x00000016, 0x000020f3, 0x000022d6, 0x000046b6, 0x00050081, + 0x00000016, 0x000020f5, 0x000020f3, 0x000022db, 0x00050081, 0x00000016, 0x000020f6, 0x000020f0, + 0x000020f5, 0x00050085, 0x00000016, 0x000020f9, 0x000022ef, 0x000046b6, 0x00050085, 0x00000016, + 0x000020fc, 0x000022e5, 0x000046b6, 0x00050081, 0x00000016, 0x000020fe, 0x000020fc, 0x000022ea, + 0x00050081, 0x00000016, 0x000020ff, 0x000020f9, 0x000020fe, 0x00050051, 0x00000006, 0x00002101, + 0x000020e4, 0x00000000, 0x00050051, 0x00000006, 0x00002103, 0x000020e4, 0x00000001, 0x00050051, + 0x00000006, 0x00002105, 0x000020ed, 0x00000000, 0x00050051, 0x00000006, 0x00002107, 0x000020ed, + 0x00000001, 0x00050051, 0x00000006, 0x00002109, 0x000020ed, 0x00000002, 0x00050051, 0x00000006, + 0x0000210b, 0x000020ed, 0x00000003, 0x00050051, 0x00000006, 0x0000210d, 0x000020f6, 0x00000000, + 0x00050051, 0x00000006, 0x0000210f, 0x000020f6, 0x00000001, 0x00050051, 0x00000006, 0x00002111, + 0x000020f6, 0x00000002, 0x00050051, 0x00000006, 0x00002113, 0x000020f6, 0x00000003, 0x00050051, + 0x00000006, 0x00002115, 0x000020ff, 0x00000002, 0x00050051, 0x00000006, 0x00002117, 0x000020ff, + 0x00000003, 0x00050051, 0x00000006, 0x0000232f, 0x000020ab, 0x00000000, 0x00050083, 0x00000006, + 0x00002330, 0x000000d1, 0x0000232f, 0x00050051, 0x00000006, 0x00002333, 0x000020ab, 0x00000001, + 0x00050083, 0x00000006, 0x00002334, 0x000000d1, 0x00002333, 0x00050085, 0x00000006, 0x00002335, + 0x00002330, 0x00002334, 0x00050083, 0x00000006, 0x00002355, 0x00002113, 0x00002109, 0x00050083, + 0x00000006, 0x00002358, 0x00002109, 0x0000210b, 0x0006000c, 0x00000006, 0x0000235a, 0x00000001, + 0x00000004, 0x00002355, 0x0006000c, 0x00000006, 0x0000235c, 0x00000001, 0x00000004, 0x00002358, + 0x0007000c, 0x00000006, 0x0000235d, 0x00000001, 0x00000028, 0x0000235a, 0x0000235c, 0x0004007c, + 0x0000001b, 0x000023af, 0x0000235d, 0x00050082, 0x0000001b, 0x000023b0, 0x000000e1, 0x000023af, + 0x0004007c, 0x00000006, 0x000023b1, 0x000023b0, 0x00050083, 0x00000006, 0x00002362, 0x00002113, + 0x0000210b, 0x00050085, 0x00000006, 0x00002365, 0x00002362, 0x00002335, 0x0006000c, 0x00000006, + 0x0000236b, 0x00000001, 0x00000004, 0x00002362, 0x00050085, 0x00000006, 0x0000236d, 0x0000236b, + 0x000023b1, 0x0008000c, 0x00000006, 0x000023bc, 0x00000001, 0x0000002b, 0x0000236d, 0x000000d9, + 0x000000d1, 0x00050085, 0x00000006, 0x00002371, 0x000023bc, 0x000023bc, 0x00050083, 0x00000006, + 0x00002379, 0x00002107, 0x00002109, 0x00050083, 0x00000006, 0x0000237c, 0x00002109, 0x00002101, + 0x0006000c, 0x00000006, 0x0000237e, 0x00000001, 0x00000004, 0x00002379, 0x0006000c, 0x00000006, + 0x00002380, 0x00000001, 0x00000004, 0x0000237c, 0x0007000c, 0x00000006, 0x00002381, 0x00000001, + 0x00000028, 0x0000237e, 0x00002380, 0x0004007c, 0x0000001b, 0x000023c8, 0x00002381, 0x00050082, + 0x0000001b, 0x000023c9, 0x000000e1, 0x000023c8, 0x0004007c, 0x00000006, 0x000023ca, 0x000023c9, + 0x00050083, 0x00000006, 0x00002386, 0x00002107, 0x00002101, 0x00050085, 0x00000006, 0x00002389, + 0x00002386, 0x00002335, 0x0006000c, 0x00000006, 0x0000238f, 0x00000001, 0x00000004, 0x00002386, + 0x00050085, 0x00000006, 0x00002391, 0x0000238f, 0x000023ca, 0x0008000c, 0x00000006, 0x000023d5, + 0x00000001, 0x0000002b, 0x00002391, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00002395, + 0x000023d5, 0x000023d5, 0x00050081, 0x00000006, 0x0000470a, 0x00002371, 0x00002395, 0x00050085, + 0x00000006, 0x0000239a, 0x00002335, 0x0000470a, 0x00050085, 0x00000006, 0x00002404, 0x0000232f, + 0x00002334, 0x00050083, 0x00000006, 0x0000241a, 0x00002111, 0x00002113, 0x0006000c, 0x00000006, + 0x0000241f, 0x00000001, 0x00000004, 0x0000241a, 0x0007000c, 0x00000006, 0x00002422, 0x00000001, + 0x00000028, 0x0000241f, 0x0000235a, 0x0004007c, 0x0000001b, 0x00002474, 0x00002422, 0x00050082, + 0x0000001b, 0x00002475, 0x000000e1, 0x00002474, 0x0004007c, 0x00000006, 0x00002476, 0x00002475, + 0x00050083, 0x00000006, 0x00002427, 0x00002111, 0x00002109, 0x00050085, 0x00000006, 0x0000242a, + 0x00002427, 0x00002404, 0x00050081, 0x00000006, 0x0000242d, 0x00002365, 0x0000242a, 0x0006000c, + 0x00000006, 0x00002430, 0x00000001, 0x00000004, 0x00002427, 0x00050085, 0x00000006, 0x00002432, + 0x00002430, 0x00002476, 0x0008000c, 0x00000006, 0x00002481, 0x00000001, 0x0000002b, 0x00002432, + 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00002436, 0x00002481, 0x00002481, 0x00050085, + 0x00000006, 0x00002439, 0x00002436, 0x00002404, 0x00050081, 0x00000006, 0x0000243b, 0x0000239a, + 0x00002439, 0x00050083, 0x00000006, 0x0000243e, 0x0000210d, 0x00002113, 0x00050083, 0x00000006, + 0x00002441, 0x00002113, 0x00002103, 0x0006000c, 0x00000006, 0x00002443, 0x00000001, 0x00000004, + 0x0000243e, 0x0006000c, 0x00000006, 0x00002445, 0x00000001, 0x00000004, 0x00002441, 0x0007000c, + 0x00000006, 0x00002446, 0x00000001, 0x00000028, 0x00002443, 0x00002445, 0x0004007c, 0x0000001b, + 0x0000248d, 0x00002446, 0x00050082, 0x0000001b, 0x0000248e, 0x000000e1, 0x0000248d, 0x0004007c, + 0x00000006, 0x0000248f, 0x0000248e, 0x00050083, 0x00000006, 0x0000244b, 0x0000210d, 0x00002103, + 0x00050085, 0x00000006, 0x0000244e, 0x0000244b, 0x00002404, 0x00050081, 0x00000006, 0x00002451, + 0x00002389, 0x0000244e, 0x0006000c, 0x00000006, 0x00002454, 0x00000001, 0x00000004, 0x0000244b, + 0x00050085, 0x00000006, 0x00002456, 0x00002454, 0x0000248f, 0x0008000c, 0x00000006, 0x0000249a, + 0x00000001, 0x0000002b, 0x00002456, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x0000245a, + 0x0000249a, 0x0000249a, 0x00050085, 0x00000006, 0x0000245d, 0x0000245a, 0x00002404, 0x00050081, + 0x00000006, 0x0000245f, 0x0000243b, 0x0000245d, 0x00050085, 0x00000006, 0x000024d3, 0x00002330, + 0x00002333, 0x00050083, 0x00000006, 0x000024df, 0x0000210d, 0x00002107, 0x00050083, 0x00000006, + 0x000024e2, 0x00002107, 0x00002105, 0x0006000c, 0x00000006, 0x000024e4, 0x00000001, 0x00000004, + 0x000024df, 0x0006000c, 0x00000006, 0x000024e6, 0x00000001, 0x00000004, 0x000024e2, 0x0007000c, + 0x00000006, 0x000024e7, 0x00000001, 0x00000028, 0x000024e4, 0x000024e6, 0x0004007c, 0x0000001b, + 0x00002539, 0x000024e7, 0x00050082, 0x0000001b, 0x0000253a, 0x000000e1, 0x00002539, 0x0004007c, + 0x00000006, 0x0000253b, 0x0000253a, 0x00050083, 0x00000006, 0x000024ec, 0x0000210d, 0x00002105, + 0x00050085, 0x00000006, 0x000024ef, 0x000024ec, 0x000024d3, 0x00050081, 0x00000006, 0x000024f2, + 0x0000242d, 0x000024ef, 0x0006000c, 0x00000006, 0x000024f5, 0x00000001, 0x00000004, 0x000024ec, + 0x00050085, 0x00000006, 0x000024f7, 0x000024f5, 0x0000253b, 0x0008000c, 0x00000006, 0x00002546, + 0x00000001, 0x0000002b, 0x000024f7, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x000024fb, + 0x00002546, 0x00002546, 0x00050085, 0x00000006, 0x000024fe, 0x000024fb, 0x000024d3, 0x00050081, + 0x00000006, 0x00002500, 0x0000245f, 0x000024fe, 0x00050083, 0x00000006, 0x00002503, 0x00002117, + 0x00002107, 0x0006000c, 0x00000006, 0x00002508, 0x00000001, 0x00000004, 0x00002503, 0x0007000c, + 0x00000006, 0x0000250b, 0x00000001, 0x00000028, 0x00002508, 0x0000237e, 0x0004007c, 0x0000001b, + 0x00002552, 0x0000250b, 0x00050082, 0x0000001b, 0x00002553, 0x000000e1, 0x00002552, 0x0004007c, + 0x00000006, 0x00002554, 0x00002553, 0x00050083, 0x00000006, 0x00002510, 0x00002117, 0x00002109, + 0x00050085, 0x00000006, 0x00002513, 0x00002510, 0x000024d3, 0x00050081, 0x00000006, 0x00002516, + 0x00002451, 0x00002513, 0x0006000c, 0x00000006, 0x00002519, 0x00000001, 0x00000004, 0x00002510, + 0x00050085, 0x00000006, 0x0000251b, 0x00002519, 0x00002554, 0x0008000c, 0x00000006, 0x0000255f, + 0x00000001, 0x0000002b, 0x0000251b, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x0000251f, + 0x0000255f, 0x0000255f, 0x00050085, 0x00000006, 0x00002522, 0x0000251f, 0x000024d3, 0x00050081, + 0x00000006, 0x00002524, 0x00002500, 0x00002522, 0x00050085, 0x00000006, 0x000025a0, 0x0000232f, + 0x00002333, 0x00050083, 0x00000006, 0x000025a4, 0x0000210f, 0x0000210d, 0x0006000c, 0x00000006, + 0x000025a9, 0x00000001, 0x00000004, 0x000025a4, 0x0007000c, 0x00000006, 0x000025ac, 0x00000001, + 0x00000028, 0x000025a9, 0x000024e4, 0x0004007c, 0x0000001b, 0x000025fe, 0x000025ac, 0x00050082, + 0x0000001b, 0x000025ff, 0x000000e1, 0x000025fe, 0x0004007c, 0x00000006, 0x00002600, 0x000025ff, + 0x00050083, 0x00000006, 0x000025b1, 0x0000210f, 0x00002107, 0x00050085, 0x00000006, 0x000025b4, + 0x000025b1, 0x000025a0, 0x00050081, 0x00000006, 0x000025b7, 0x000024f2, 0x000025b4, 0x0006000c, + 0x00000006, 0x000025ba, 0x00000001, 0x00000004, 0x000025b1, 0x00050085, 0x00000006, 0x000025bc, + 0x000025ba, 0x00002600, 0x0008000c, 0x00000006, 0x0000260b, 0x00000001, 0x0000002b, 0x000025bc, + 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x000025c0, 0x0000260b, 0x0000260b, 0x00050085, + 0x00000006, 0x000025c3, 0x000025c0, 0x000025a0, 0x00050081, 0x00000006, 0x000025c5, 0x00002524, + 0x000025c3, 0x00050083, 0x00000006, 0x000025c8, 0x00002115, 0x0000210d, 0x0006000c, 0x00000006, + 0x000025cd, 0x00000001, 0x00000004, 0x000025c8, 0x0007000c, 0x00000006, 0x000025d0, 0x00000001, + 0x00000028, 0x000025cd, 0x00002443, 0x0004007c, 0x0000001b, 0x00002617, 0x000025d0, 0x00050082, + 0x0000001b, 0x00002618, 0x000000e1, 0x00002617, 0x0004007c, 0x00000006, 0x00002619, 0x00002618, + 0x00050083, 0x00000006, 0x000025d5, 0x00002115, 0x00002113, 0x00050085, 0x00000006, 0x000025d8, + 0x000025d5, 0x000025a0, 0x00050081, 0x00000006, 0x000025db, 0x00002516, 0x000025d8, 0x00050050, + 0x0000000c, 0x000046e8, 0x000025b7, 0x000025db, 0x0006000c, 0x00000006, 0x000025de, 0x00000001, + 0x00000004, 0x000025d5, 0x00050085, 0x00000006, 0x000025e0, 0x000025de, 0x00002619, 0x0008000c, + 0x00000006, 0x00002624, 0x00000001, 0x0000002b, 0x000025e0, 0x000000d9, 0x000000d1, 0x00050085, + 0x00000006, 0x000025e4, 0x00002624, 0x00002624, 0x00050085, 0x00000006, 0x000025e7, 0x000025e4, + 0x000025a0, 0x00050081, 0x00000006, 0x000025e9, 0x000025c5, 0x000025e7, 0x00050085, 0x0000000c, + 0x00002148, 0x000046e8, 0x000046e8, 0x00050051, 0x00000006, 0x0000214a, 0x00002148, 0x00000000, + 0x00050051, 0x00000006, 0x0000214c, 0x00002148, 0x00000001, 0x00050081, 0x00000006, 0x0000214d, + 0x0000214a, 0x0000214c, 0x000500b8, 0x0000007d, 0x00002150, 0x0000214d, 0x000003c8, 0x0004007c, + 0x0000001b, 0x00002634, 0x0000214d, 0x000500c2, 0x0000001b, 0x00002636, 0x00002634, 0x000000ef, + 0x00050082, 0x0000001b, 0x00002637, 0x000000ea, 0x00002636, 0x0004007c, 0x00000006, 0x00002638, + 0x00002637, 0x000600a9, 0x00000006, 0x00004710, 0x00002150, 0x000000d1, 0x00002638, 0x000600a9, + 0x00000006, 0x00004711, 0x00002150, 0x000000d1, 0x000025b7, 0x00060052, 0x0000000c, 0x00003a19, + 0x00004711, 0x000046e8, 0x00000000, 0x00050050, 0x0000000c, 0x00002648, 0x00004710, 0x00004710, + 0x00050085, 0x0000000c, 0x00002166, 0x00003a19, 0x00002648, 0x00050085, 0x00000006, 0x000046e9, + 0x000025e9, 0x000025e9, 0x00050085, 0x00000006, 0x0000216c, 0x000046c3, 0x000046e9, 0x00050051, + 0x00000006, 0x0000216e, 0x00002166, 0x00000000, 0x00050085, 0x00000006, 0x00002171, 0x0000216e, + 0x0000216e, 0x00050051, 0x00000006, 0x00002173, 0x00002166, 0x00000001, 0x00050085, 0x00000006, + 0x00002176, 0x00002173, 0x00002173, 0x00050081, 0x00000006, 0x00002177, 0x00002171, 0x00002176, + 0x0006000c, 0x00000006, 0x0000217a, 0x00000001, 0x00000004, 0x0000216e, 0x0006000c, 0x00000006, + 0x0000217d, 0x00000001, 0x00000004, 0x00002173, 0x0007000c, 0x00000006, 0x0000217e, 0x00000001, + 0x00000028, 0x0000217a, 0x0000217d, 0x0004007c, 0x0000001b, 0x00002651, 0x0000217e, 0x00050082, + 0x0000001b, 0x00002652, 0x000000e1, 0x00002651, 0x0004007c, 0x00000006, 0x00002653, 0x00002652, + 0x00050085, 0x00000006, 0x00002180, 0x00002177, 0x00002653, 0x00050083, 0x00000006, 0x00002184, + 0x00002180, 0x000000d1, 0x00050085, 0x00000006, 0x00002186, 0x00002184, 0x0000216c, 0x00050081, + 0x00000006, 0x00002187, 0x000000d1, 0x00002186, 0x00050085, 0x00000006, 0x0000218b, 0x000046e9, + 0x000046c5, 0x00050081, 0x00000006, 0x0000218c, 0x000000d1, 0x0000218b, 0x00050050, 0x0000000c, + 0x0000218d, 0x00002187, 0x0000218c, 0x00050085, 0x00000006, 0x00002191, 0x000046e9, 0x000046c6, + 0x00050081, 0x00000006, 0x00002192, 0x0000012e, 0x00002191, 0x0004007c, 0x0000001b, 0x0000266e, + 0x00002192, 0x00050082, 0x0000001b, 0x0000266f, 0x000000e1, 0x0000266e, 0x0004007c, 0x00000006, + 0x00002670, 0x0000266f, 0x00050051, 0x00000006, 0x00002196, 0x000022c7, 0x00000002, 0x00050051, + 0x00000006, 0x00002198, 0x000022cc, 0x00000002, 0x00050051, 0x00000006, 0x0000219a, 0x000022d1, + 0x00000002, 0x00060050, 0x00000011, 0x0000219b, 0x00002196, 0x00002198, 0x0000219a, 0x00050051, + 0x00000006, 0x0000219d, 0x000022d6, 0x00000003, 0x00050051, 0x00000006, 0x0000219f, 0x000022db, + 0x00000003, 0x00050051, 0x00000006, 0x000021a1, 0x000022e0, 0x00000003, 0x00060050, 0x00000011, + 0x000021a2, 0x0000219d, 0x0000219f, 0x000021a1, 0x00050051, 0x00000006, 0x000021a4, 0x000022c7, + 0x00000001, 0x00050051, 0x00000006, 0x000021a6, 0x000022cc, 0x00000001, 0x00050051, 0x00000006, + 0x000021a8, 0x000022d1, 0x00000001, 0x00060050, 0x00000011, 0x000021a9, 0x000021a4, 0x000021a6, + 0x000021a8, 0x0007000c, 0x00000011, 0x00002679, 0x00000001, 0x00000025, 0x000021a2, 0x000021a9, + 0x0007000c, 0x00000011, 0x0000267a, 0x00000001, 0x00000025, 0x0000219b, 0x00002679, 0x00050051, + 0x00000006, 0x000021ac, 0x000022d6, 0x00000000, 0x00050051, 0x00000006, 0x000021ae, 0x000022db, + 0x00000000, 0x00050051, 0x00000006, 0x000021b0, 0x000022e0, 0x00000000, 0x00060050, 0x00000011, + 0x000021b1, 0x000021ac, 0x000021ae, 0x000021b0, 0x0007000c, 0x00000011, 0x000021b2, 0x00000001, + 0x00000025, 0x0000267a, 0x000021b1, 0x0007000c, 0x00000011, 0x00002680, 0x00000001, 0x00000028, + 0x000021a2, 0x000021a9, 0x0007000c, 0x00000011, 0x00002681, 0x00000001, 0x00000028, 0x0000219b, + 0x00002680, 0x0007000c, 0x00000011, 0x000021d0, 0x00000001, 0x00000028, 0x00002681, 0x000021b1, + 0x00050083, 0x0000000c, 0x000021d4, 0x0000046f, 0x000020ab, 0x00050051, 0x00000006, 0x000021d6, + 0x000022b8, 0x00000000, 0x00050051, 0x00000006, 0x000021d8, 0x000022bd, 0x00000000, 0x00050051, + 0x00000006, 0x000021da, 0x000022c2, 0x00000000, 0x00060050, 0x00000011, 0x000021db, 0x000021d6, + 0x000021d8, 0x000021da, 0x00050051, 0x00000006, 0x00002695, 0x000021d4, 0x00000000, 0x00050085, + 0x00000006, 0x00002698, 0x00002695, 0x0000216e, 0x00050051, 0x00000006, 0x0000269a, 0x000021d4, + 0x00000001, 0x00050085, 0x00000006, 0x0000269d, 0x0000269a, 0x00002173, 0x00050081, 0x00000006, + 0x0000269e, 0x00002698, 0x0000269d, 0x0004007f, 0x00000006, 0x000026a4, 0x00002173, 0x00050085, + 0x00000006, 0x000026a5, 0x00002695, 0x000026a4, 0x00050085, 0x00000006, 0x000026aa, 0x0000269a, + 0x0000216e, 0x00050081, 0x00000006, 0x000026ab, 0x000026a5, 0x000026aa, 0x00050050, 0x0000000c, + 0x000046ea, 0x0000269e, 0x000026ab, 0x00050085, 0x0000000c, 0x000026af, 0x000046ea, 0x0000218d, + 0x00050051, 0x00000006, 0x000026b1, 0x000026af, 0x00000000, 0x00050085, 0x00000006, 0x000026b4, + 0x000026b1, 0x000026b1, 0x00050051, 0x00000006, 0x000026b6, 0x000026af, 0x00000001, 0x00050085, + 0x00000006, 0x000026b9, 0x000026b6, 0x000026b6, 0x00050081, 0x00000006, 0x000026ba, 0x000026b4, + 0x000026b9, 0x0007000c, 0x00000006, 0x000026bd, 0x00000001, 0x00000025, 0x000026ba, 0x00002670, + 0x00050085, 0x00000006, 0x000026c0, 0x000001f9, 0x000026bd, 0x00050081, 0x00000006, 0x000026c2, + 0x000026c0, 0x0000015c, 0x00050085, 0x00000006, 0x000026c5, 0x00002192, 0x000026bd, 0x00050081, + 0x00000006, 0x000026c7, 0x000026c5, 0x0000015c, 0x00050085, 0x00000006, 0x000026ca, 0x000026c2, + 0x000026c2, 0x00050085, 0x00000006, 0x000026cd, 0x000026c7, 0x000026c7, 0x00050085, 0x00000006, + 0x000026d0, 0x0000020e, 0x000026ca, 0x00050081, 0x00000006, 0x000026d2, 0x000026d0, 0x00000213, + 0x00050085, 0x00000006, 0x000026d5, 0x000026d2, 0x000026cd, 0x0005008e, 0x00000011, 0x000026d8, + 0x000021db, 0x000026d5, 0x00050083, 0x0000000c, 0x000021e6, 0x0000048a, 0x000020ab, 0x00050051, + 0x00000006, 0x000021e8, 0x000022b8, 0x00000001, 0x00050051, 0x00000006, 0x000021ea, 0x000022bd, + 0x00000001, 0x00050051, 0x00000006, 0x000021ec, 0x000022c2, 0x00000001, 0x00060050, 0x00000011, + 0x000021ed, 0x000021e8, 0x000021ea, 0x000021ec, 0x00050051, 0x00000006, 0x000026f9, 0x000021e6, + 0x00000000, 0x00050085, 0x00000006, 0x000026fc, 0x000026f9, 0x0000216e, 0x00050051, 0x00000006, + 0x000026fe, 0x000021e6, 0x00000001, 0x00050085, 0x00000006, 0x00002701, 0x000026fe, 0x00002173, + 0x00050081, 0x00000006, 0x00002702, 0x000026fc, 0x00002701, 0x00050085, 0x00000006, 0x00002709, + 0x000026f9, 0x000026a4, 0x00050085, 0x00000006, 0x0000270e, 0x000026fe, 0x0000216e, 0x00050081, + 0x00000006, 0x0000270f, 0x00002709, 0x0000270e, 0x00050050, 0x0000000c, 0x000046eb, 0x00002702, + 0x0000270f, 0x00050085, 0x0000000c, 0x00002713, 0x000046eb, 0x0000218d, 0x00050051, 0x00000006, + 0x00002715, 0x00002713, 0x00000000, 0x00050085, 0x00000006, 0x00002718, 0x00002715, 0x00002715, + 0x00050051, 0x00000006, 0x0000271a, 0x00002713, 0x00000001, 0x00050085, 0x00000006, 0x0000271d, + 0x0000271a, 0x0000271a, 0x00050081, 0x00000006, 0x0000271e, 0x00002718, 0x0000271d, 0x0007000c, + 0x00000006, 0x00002721, 0x00000001, 0x00000025, 0x0000271e, 0x00002670, 0x00050085, 0x00000006, + 0x00002724, 0x000001f9, 0x00002721, 0x00050081, 0x00000006, 0x00002726, 0x00002724, 0x0000015c, + 0x00050085, 0x00000006, 0x00002729, 0x00002192, 0x00002721, 0x00050081, 0x00000006, 0x0000272b, + 0x00002729, 0x0000015c, 0x00050085, 0x00000006, 0x0000272e, 0x00002726, 0x00002726, 0x00050085, + 0x00000006, 0x00002731, 0x0000272b, 0x0000272b, 0x00050085, 0x00000006, 0x00002734, 0x0000020e, + 0x0000272e, 0x00050081, 0x00000006, 0x00002736, 0x00002734, 0x00000213, 0x00050085, 0x00000006, + 0x00002739, 0x00002736, 0x00002731, 0x0005008e, 0x00000011, 0x0000273c, 0x000021ed, 0x00002739, + 0x00050081, 0x00000011, 0x0000273e, 0x000026d8, 0x0000273c, 0x00050081, 0x00000006, 0x00002741, + 0x000026d5, 0x00002739, 0x00050083, 0x0000000c, 0x000021f8, 0x000004a5, 0x000020ab, 0x00050051, + 0x00000006, 0x000021fa, 0x000022c7, 0x00000000, 0x00050051, 0x00000006, 0x000021fc, 0x000022cc, + 0x00000000, 0x00050051, 0x00000006, 0x000021fe, 0x000022d1, 0x00000000, 0x00060050, 0x00000011, + 0x000021ff, 0x000021fa, 0x000021fc, 0x000021fe, 0x00050051, 0x00000006, 0x0000275d, 0x000021f8, + 0x00000000, 0x00050085, 0x00000006, 0x00002760, 0x0000275d, 0x0000216e, 0x00050051, 0x00000006, + 0x00002762, 0x000021f8, 0x00000001, 0x00050085, 0x00000006, 0x00002765, 0x00002762, 0x00002173, + 0x00050081, 0x00000006, 0x00002766, 0x00002760, 0x00002765, 0x00050085, 0x00000006, 0x0000276d, + 0x0000275d, 0x000026a4, 0x00050085, 0x00000006, 0x00002772, 0x00002762, 0x0000216e, 0x00050081, + 0x00000006, 0x00002773, 0x0000276d, 0x00002772, 0x00050050, 0x0000000c, 0x000046ec, 0x00002766, + 0x00002773, 0x00050085, 0x0000000c, 0x00002777, 0x000046ec, 0x0000218d, 0x00050051, 0x00000006, + 0x00002779, 0x00002777, 0x00000000, 0x00050085, 0x00000006, 0x0000277c, 0x00002779, 0x00002779, + 0x00050051, 0x00000006, 0x0000277e, 0x00002777, 0x00000001, 0x00050085, 0x00000006, 0x00002781, + 0x0000277e, 0x0000277e, 0x00050081, 0x00000006, 0x00002782, 0x0000277c, 0x00002781, 0x0007000c, + 0x00000006, 0x00002785, 0x00000001, 0x00000025, 0x00002782, 0x00002670, 0x00050085, 0x00000006, + 0x00002788, 0x000001f9, 0x00002785, 0x00050081, 0x00000006, 0x0000278a, 0x00002788, 0x0000015c, + 0x00050085, 0x00000006, 0x0000278d, 0x00002192, 0x00002785, 0x00050081, 0x00000006, 0x0000278f, + 0x0000278d, 0x0000015c, 0x00050085, 0x00000006, 0x00002792, 0x0000278a, 0x0000278a, 0x00050085, + 0x00000006, 0x00002795, 0x0000278f, 0x0000278f, 0x00050085, 0x00000006, 0x00002798, 0x0000020e, + 0x00002792, 0x00050081, 0x00000006, 0x0000279a, 0x00002798, 0x00000213, 0x00050085, 0x00000006, + 0x0000279d, 0x0000279a, 0x00002795, 0x0005008e, 0x00000011, 0x000027a0, 0x000021ff, 0x0000279d, + 0x00050081, 0x00000011, 0x000027a2, 0x0000273e, 0x000027a0, 0x00050081, 0x00000006, 0x000027a5, + 0x00002741, 0x0000279d, 0x00050083, 0x0000000c, 0x0000220a, 0x000004c0, 0x000020ab, 0x00050051, + 0x00000006, 0x000027c1, 0x0000220a, 0x00000000, 0x00050085, 0x00000006, 0x000027c4, 0x000027c1, + 0x0000216e, 0x00050051, 0x00000006, 0x000027c6, 0x0000220a, 0x00000001, 0x00050085, 0x00000006, + 0x000027c9, 0x000027c6, 0x00002173, 0x00050081, 0x00000006, 0x000027ca, 0x000027c4, 0x000027c9, + 0x00050085, 0x00000006, 0x000027d1, 0x000027c1, 0x000026a4, 0x00050085, 0x00000006, 0x000027d6, + 0x000027c6, 0x0000216e, 0x00050081, 0x00000006, 0x000027d7, 0x000027d1, 0x000027d6, 0x00050050, + 0x0000000c, 0x000046ed, 0x000027ca, 0x000027d7, 0x00050085, 0x0000000c, 0x000027db, 0x000046ed, + 0x0000218d, 0x00050051, 0x00000006, 0x000027dd, 0x000027db, 0x00000000, 0x00050085, 0x00000006, + 0x000027e0, 0x000027dd, 0x000027dd, 0x00050051, 0x00000006, 0x000027e2, 0x000027db, 0x00000001, + 0x00050085, 0x00000006, 0x000027e5, 0x000027e2, 0x000027e2, 0x00050081, 0x00000006, 0x000027e6, + 0x000027e0, 0x000027e5, 0x0007000c, 0x00000006, 0x000027e9, 0x00000001, 0x00000025, 0x000027e6, + 0x00002670, 0x00050085, 0x00000006, 0x000027ec, 0x000001f9, 0x000027e9, 0x00050081, 0x00000006, + 0x000027ee, 0x000027ec, 0x0000015c, 0x00050085, 0x00000006, 0x000027f1, 0x00002192, 0x000027e9, + 0x00050081, 0x00000006, 0x000027f3, 0x000027f1, 0x0000015c, 0x00050085, 0x00000006, 0x000027f6, + 0x000027ee, 0x000027ee, 0x00050085, 0x00000006, 0x000027f9, 0x000027f3, 0x000027f3, 0x00050085, + 0x00000006, 0x000027fc, 0x0000020e, 0x000027f6, 0x00050081, 0x00000006, 0x000027fe, 0x000027fc, + 0x00000213, 0x00050085, 0x00000006, 0x00002801, 0x000027fe, 0x000027f9, 0x0005008e, 0x00000011, + 0x00002804, 0x000021a9, 0x00002801, 0x00050081, 0x00000011, 0x00002806, 0x000027a2, 0x00002804, + 0x00050081, 0x00000006, 0x00002809, 0x000027a5, 0x00002801, 0x0004007f, 0x0000000c, 0x0000221c, + 0x000020ab, 0x00050051, 0x00000006, 0x00002825, 0x0000221c, 0x00000000, 0x00050085, 0x00000006, + 0x00002828, 0x00002825, 0x0000216e, 0x00050051, 0x00000006, 0x0000282a, 0x0000221c, 0x00000001, + 0x00050085, 0x00000006, 0x0000282d, 0x0000282a, 0x00002173, 0x00050081, 0x00000006, 0x0000282e, + 0x00002828, 0x0000282d, 0x00050085, 0x00000006, 0x00002835, 0x00002825, 0x000026a4, 0x00050085, + 0x00000006, 0x0000283a, 0x0000282a, 0x0000216e, 0x00050081, 0x00000006, 0x0000283b, 0x00002835, + 0x0000283a, 0x00050050, 0x0000000c, 0x000046ee, 0x0000282e, 0x0000283b, 0x00050085, 0x0000000c, + 0x0000283f, 0x000046ee, 0x0000218d, 0x00050051, 0x00000006, 0x00002841, 0x0000283f, 0x00000000, + 0x00050085, 0x00000006, 0x00002844, 0x00002841, 0x00002841, 0x00050051, 0x00000006, 0x00002846, + 0x0000283f, 0x00000001, 0x00050085, 0x00000006, 0x00002849, 0x00002846, 0x00002846, 0x00050081, + 0x00000006, 0x0000284a, 0x00002844, 0x00002849, 0x0007000c, 0x00000006, 0x0000284d, 0x00000001, + 0x00000025, 0x0000284a, 0x00002670, 0x00050085, 0x00000006, 0x00002850, 0x000001f9, 0x0000284d, + 0x00050081, 0x00000006, 0x00002852, 0x00002850, 0x0000015c, 0x00050085, 0x00000006, 0x00002855, + 0x00002192, 0x0000284d, 0x00050081, 0x00000006, 0x00002857, 0x00002855, 0x0000015c, 0x00050085, + 0x00000006, 0x0000285a, 0x00002852, 0x00002852, 0x00050085, 0x00000006, 0x0000285d, 0x00002857, + 0x00002857, 0x00050085, 0x00000006, 0x00002860, 0x0000020e, 0x0000285a, 0x00050081, 0x00000006, + 0x00002862, 0x00002860, 0x00000213, 0x00050085, 0x00000006, 0x00002865, 0x00002862, 0x0000285d, + 0x0005008e, 0x00000011, 0x00002868, 0x0000219b, 0x00002865, 0x00050081, 0x00000011, 0x0000286a, + 0x00002806, 0x00002868, 0x00050081, 0x00000006, 0x0000286d, 0x00002809, 0x00002865, 0x00050083, + 0x0000000c, 0x0000222e, 0x000004f6, 0x000020ab, 0x00050051, 0x00000006, 0x00002230, 0x000022c7, + 0x00000003, 0x00050051, 0x00000006, 0x00002232, 0x000022cc, 0x00000003, 0x00050051, 0x00000006, + 0x00002234, 0x000022d1, 0x00000003, 0x00060050, 0x00000011, 0x00002235, 0x00002230, 0x00002232, + 0x00002234, 0x00050051, 0x00000006, 0x00002889, 0x0000222e, 0x00000000, 0x00050085, 0x00000006, + 0x0000288c, 0x00002889, 0x0000216e, 0x00050051, 0x00000006, 0x0000288e, 0x0000222e, 0x00000001, + 0x00050085, 0x00000006, 0x00002891, 0x0000288e, 0x00002173, 0x00050081, 0x00000006, 0x00002892, + 0x0000288c, 0x00002891, 0x00050085, 0x00000006, 0x00002899, 0x00002889, 0x000026a4, 0x00050085, + 0x00000006, 0x0000289e, 0x0000288e, 0x0000216e, 0x00050081, 0x00000006, 0x0000289f, 0x00002899, + 0x0000289e, 0x00050050, 0x0000000c, 0x000046ef, 0x00002892, 0x0000289f, 0x00050085, 0x0000000c, + 0x000028a3, 0x000046ef, 0x0000218d, 0x00050051, 0x00000006, 0x000028a5, 0x000028a3, 0x00000000, + 0x00050085, 0x00000006, 0x000028a8, 0x000028a5, 0x000028a5, 0x00050051, 0x00000006, 0x000028aa, + 0x000028a3, 0x00000001, 0x00050085, 0x00000006, 0x000028ad, 0x000028aa, 0x000028aa, 0x00050081, + 0x00000006, 0x000028ae, 0x000028a8, 0x000028ad, 0x0007000c, 0x00000006, 0x000028b1, 0x00000001, + 0x00000025, 0x000028ae, 0x00002670, 0x00050085, 0x00000006, 0x000028b4, 0x000001f9, 0x000028b1, + 0x00050081, 0x00000006, 0x000028b6, 0x000028b4, 0x0000015c, 0x00050085, 0x00000006, 0x000028b9, + 0x00002192, 0x000028b1, 0x00050081, 0x00000006, 0x000028bb, 0x000028b9, 0x0000015c, 0x00050085, + 0x00000006, 0x000028be, 0x000028b6, 0x000028b6, 0x00050085, 0x00000006, 0x000028c1, 0x000028bb, + 0x000028bb, 0x00050085, 0x00000006, 0x000028c4, 0x0000020e, 0x000028be, 0x00050081, 0x00000006, + 0x000028c6, 0x000028c4, 0x00000213, 0x00050085, 0x00000006, 0x000028c9, 0x000028c6, 0x000028c1, + 0x0005008e, 0x00000011, 0x000028cc, 0x00002235, 0x000028c9, 0x00050081, 0x00000011, 0x000028ce, + 0x0000286a, 0x000028cc, 0x00050081, 0x00000006, 0x000028d1, 0x0000286d, 0x000028c9, 0x00050083, + 0x0000000c, 0x00002240, 0x00000511, 0x000020ab, 0x00050051, 0x00000006, 0x000028ed, 0x00002240, + 0x00000000, 0x00050085, 0x00000006, 0x000028f0, 0x000028ed, 0x0000216e, 0x00050051, 0x00000006, + 0x000028f2, 0x00002240, 0x00000001, 0x00050085, 0x00000006, 0x000028f5, 0x000028f2, 0x00002173, + 0x00050081, 0x00000006, 0x000028f6, 0x000028f0, 0x000028f5, 0x00050085, 0x00000006, 0x000028fd, + 0x000028ed, 0x000026a4, 0x00050085, 0x00000006, 0x00002902, 0x000028f2, 0x0000216e, 0x00050081, + 0x00000006, 0x00002903, 0x000028fd, 0x00002902, 0x00050050, 0x0000000c, 0x000046f0, 0x000028f6, + 0x00002903, 0x00050085, 0x0000000c, 0x00002907, 0x000046f0, 0x0000218d, 0x00050051, 0x00000006, + 0x00002909, 0x00002907, 0x00000000, 0x00050085, 0x00000006, 0x0000290c, 0x00002909, 0x00002909, + 0x00050051, 0x00000006, 0x0000290e, 0x00002907, 0x00000001, 0x00050085, 0x00000006, 0x00002911, + 0x0000290e, 0x0000290e, 0x00050081, 0x00000006, 0x00002912, 0x0000290c, 0x00002911, 0x0007000c, + 0x00000006, 0x00002915, 0x00000001, 0x00000025, 0x00002912, 0x00002670, 0x00050085, 0x00000006, + 0x00002918, 0x000001f9, 0x00002915, 0x00050081, 0x00000006, 0x0000291a, 0x00002918, 0x0000015c, + 0x00050085, 0x00000006, 0x0000291d, 0x00002192, 0x00002915, 0x00050081, 0x00000006, 0x0000291f, + 0x0000291d, 0x0000015c, 0x00050085, 0x00000006, 0x00002922, 0x0000291a, 0x0000291a, 0x00050085, + 0x00000006, 0x00002925, 0x0000291f, 0x0000291f, 0x00050085, 0x00000006, 0x00002928, 0x0000020e, + 0x00002922, 0x00050081, 0x00000006, 0x0000292a, 0x00002928, 0x00000213, 0x00050085, 0x00000006, + 0x0000292d, 0x0000292a, 0x00002925, 0x0005008e, 0x00000011, 0x00002930, 0x000021b1, 0x0000292d, + 0x00050081, 0x00000011, 0x00002932, 0x000028ce, 0x00002930, 0x00050081, 0x00000006, 0x00002935, + 0x000028d1, 0x0000292d, 0x00050083, 0x0000000c, 0x00002252, 0x0000052c, 0x000020ab, 0x00050051, + 0x00000006, 0x00002254, 0x000022d6, 0x00000001, 0x00050051, 0x00000006, 0x00002256, 0x000022db, + 0x00000001, 0x00050051, 0x00000006, 0x00002258, 0x000022e0, 0x00000001, 0x00060050, 0x00000011, + 0x00002259, 0x00002254, 0x00002256, 0x00002258, 0x00050051, 0x00000006, 0x00002951, 0x00002252, + 0x00000000, 0x00050085, 0x00000006, 0x00002954, 0x00002951, 0x0000216e, 0x00050051, 0x00000006, + 0x00002956, 0x00002252, 0x00000001, 0x00050085, 0x00000006, 0x00002959, 0x00002956, 0x00002173, + 0x00050081, 0x00000006, 0x0000295a, 0x00002954, 0x00002959, 0x00050085, 0x00000006, 0x00002961, + 0x00002951, 0x000026a4, 0x00050085, 0x00000006, 0x00002966, 0x00002956, 0x0000216e, 0x00050081, + 0x00000006, 0x00002967, 0x00002961, 0x00002966, 0x00050050, 0x0000000c, 0x000046f1, 0x0000295a, + 0x00002967, 0x00050085, 0x0000000c, 0x0000296b, 0x000046f1, 0x0000218d, 0x00050051, 0x00000006, + 0x0000296d, 0x0000296b, 0x00000000, 0x00050085, 0x00000006, 0x00002970, 0x0000296d, 0x0000296d, + 0x00050051, 0x00000006, 0x00002972, 0x0000296b, 0x00000001, 0x00050085, 0x00000006, 0x00002975, + 0x00002972, 0x00002972, 0x00050081, 0x00000006, 0x00002976, 0x00002970, 0x00002975, 0x0007000c, + 0x00000006, 0x00002979, 0x00000001, 0x00000025, 0x00002976, 0x00002670, 0x00050085, 0x00000006, + 0x0000297c, 0x000001f9, 0x00002979, 0x00050081, 0x00000006, 0x0000297e, 0x0000297c, 0x0000015c, + 0x00050085, 0x00000006, 0x00002981, 0x00002192, 0x00002979, 0x00050081, 0x00000006, 0x00002983, + 0x00002981, 0x0000015c, 0x00050085, 0x00000006, 0x00002986, 0x0000297e, 0x0000297e, 0x00050085, + 0x00000006, 0x00002989, 0x00002983, 0x00002983, 0x00050085, 0x00000006, 0x0000298c, 0x0000020e, + 0x00002986, 0x00050081, 0x00000006, 0x0000298e, 0x0000298c, 0x00000213, 0x00050085, 0x00000006, + 0x00002991, 0x0000298e, 0x00002989, 0x0005008e, 0x00000011, 0x00002994, 0x00002259, 0x00002991, + 0x00050081, 0x00000011, 0x00002996, 0x00002932, 0x00002994, 0x00050081, 0x00000006, 0x00002999, + 0x00002935, 0x00002991, 0x00050083, 0x0000000c, 0x00002264, 0x00000547, 0x000020ab, 0x00050051, + 0x00000006, 0x00002266, 0x000022d6, 0x00000002, 0x00050051, 0x00000006, 0x00002268, 0x000022db, + 0x00000002, 0x00050051, 0x00000006, 0x0000226a, 0x000022e0, 0x00000002, 0x00060050, 0x00000011, + 0x0000226b, 0x00002266, 0x00002268, 0x0000226a, 0x00050051, 0x00000006, 0x000029b5, 0x00002264, + 0x00000000, 0x00050085, 0x00000006, 0x000029b8, 0x000029b5, 0x0000216e, 0x00050051, 0x00000006, + 0x000029ba, 0x00002264, 0x00000001, 0x00050085, 0x00000006, 0x000029bd, 0x000029ba, 0x00002173, + 0x00050081, 0x00000006, 0x000029be, 0x000029b8, 0x000029bd, 0x00050085, 0x00000006, 0x000029c5, + 0x000029b5, 0x000026a4, 0x00050085, 0x00000006, 0x000029ca, 0x000029ba, 0x0000216e, 0x00050081, + 0x00000006, 0x000029cb, 0x000029c5, 0x000029ca, 0x00050050, 0x0000000c, 0x000046f2, 0x000029be, + 0x000029cb, 0x00050085, 0x0000000c, 0x000029cf, 0x000046f2, 0x0000218d, 0x00050051, 0x00000006, + 0x000029d1, 0x000029cf, 0x00000000, 0x00050085, 0x00000006, 0x000029d4, 0x000029d1, 0x000029d1, + 0x00050051, 0x00000006, 0x000029d6, 0x000029cf, 0x00000001, 0x00050085, 0x00000006, 0x000029d9, + 0x000029d6, 0x000029d6, 0x00050081, 0x00000006, 0x000029da, 0x000029d4, 0x000029d9, 0x0007000c, + 0x00000006, 0x000029dd, 0x00000001, 0x00000025, 0x000029da, 0x00002670, 0x00050085, 0x00000006, + 0x000029e0, 0x000001f9, 0x000029dd, 0x00050081, 0x00000006, 0x000029e2, 0x000029e0, 0x0000015c, + 0x00050085, 0x00000006, 0x000029e5, 0x00002192, 0x000029dd, 0x00050081, 0x00000006, 0x000029e7, + 0x000029e5, 0x0000015c, 0x00050085, 0x00000006, 0x000029ea, 0x000029e2, 0x000029e2, 0x00050085, + 0x00000006, 0x000029ed, 0x000029e7, 0x000029e7, 0x00050085, 0x00000006, 0x000029f0, 0x0000020e, + 0x000029ea, 0x00050081, 0x00000006, 0x000029f2, 0x000029f0, 0x00000213, 0x00050085, 0x00000006, + 0x000029f5, 0x000029f2, 0x000029ed, 0x0005008e, 0x00000011, 0x000029f8, 0x0000226b, 0x000029f5, + 0x00050081, 0x00000011, 0x000029fa, 0x00002996, 0x000029f8, 0x00050081, 0x00000006, 0x000029fd, + 0x00002999, 0x000029f5, 0x00050083, 0x0000000c, 0x00002276, 0x00000562, 0x000020ab, 0x00050051, + 0x00000006, 0x00002a19, 0x00002276, 0x00000000, 0x00050085, 0x00000006, 0x00002a1c, 0x00002a19, + 0x0000216e, 0x00050051, 0x00000006, 0x00002a1e, 0x00002276, 0x00000001, 0x00050085, 0x00000006, + 0x00002a21, 0x00002a1e, 0x00002173, 0x00050081, 0x00000006, 0x00002a22, 0x00002a1c, 0x00002a21, + 0x00050085, 0x00000006, 0x00002a29, 0x00002a19, 0x000026a4, 0x00050085, 0x00000006, 0x00002a2e, + 0x00002a1e, 0x0000216e, 0x00050081, 0x00000006, 0x00002a2f, 0x00002a29, 0x00002a2e, 0x00050050, + 0x0000000c, 0x000046f3, 0x00002a22, 0x00002a2f, 0x00050085, 0x0000000c, 0x00002a33, 0x000046f3, + 0x0000218d, 0x00050051, 0x00000006, 0x00002a35, 0x00002a33, 0x00000000, 0x00050085, 0x00000006, + 0x00002a38, 0x00002a35, 0x00002a35, 0x00050051, 0x00000006, 0x00002a3a, 0x00002a33, 0x00000001, + 0x00050085, 0x00000006, 0x00002a3d, 0x00002a3a, 0x00002a3a, 0x00050081, 0x00000006, 0x00002a3e, + 0x00002a38, 0x00002a3d, 0x0007000c, 0x00000006, 0x00002a41, 0x00000001, 0x00000025, 0x00002a3e, + 0x00002670, 0x00050085, 0x00000006, 0x00002a44, 0x000001f9, 0x00002a41, 0x00050081, 0x00000006, + 0x00002a46, 0x00002a44, 0x0000015c, 0x00050085, 0x00000006, 0x00002a49, 0x00002192, 0x00002a41, + 0x00050081, 0x00000006, 0x00002a4b, 0x00002a49, 0x0000015c, 0x00050085, 0x00000006, 0x00002a4e, + 0x00002a46, 0x00002a46, 0x00050085, 0x00000006, 0x00002a51, 0x00002a4b, 0x00002a4b, 0x00050085, + 0x00000006, 0x00002a54, 0x0000020e, 0x00002a4e, 0x00050081, 0x00000006, 0x00002a56, 0x00002a54, + 0x00000213, 0x00050085, 0x00000006, 0x00002a59, 0x00002a56, 0x00002a51, 0x0005008e, 0x00000011, + 0x00002a5c, 0x000021a2, 0x00002a59, 0x00050081, 0x00000011, 0x00002a5e, 0x000029fa, 0x00002a5c, + 0x00050081, 0x00000006, 0x00002a61, 0x000029fd, 0x00002a59, 0x00050083, 0x0000000c, 0x00002288, + 0x0000057d, 0x000020ab, 0x00050051, 0x00000006, 0x0000228a, 0x000022e5, 0x00000002, 0x00050051, + 0x00000006, 0x0000228c, 0x000022ea, 0x00000002, 0x00050051, 0x00000006, 0x0000228e, 0x000022ef, + 0x00000002, 0x00060050, 0x00000011, 0x0000228f, 0x0000228a, 0x0000228c, 0x0000228e, 0x00050051, + 0x00000006, 0x00002a7d, 0x00002288, 0x00000000, 0x00050085, 0x00000006, 0x00002a80, 0x00002a7d, + 0x0000216e, 0x00050051, 0x00000006, 0x00002a82, 0x00002288, 0x00000001, 0x00050085, 0x00000006, + 0x00002a85, 0x00002a82, 0x00002173, 0x00050081, 0x00000006, 0x00002a86, 0x00002a80, 0x00002a85, + 0x00050085, 0x00000006, 0x00002a8d, 0x00002a7d, 0x000026a4, 0x00050085, 0x00000006, 0x00002a92, + 0x00002a82, 0x0000216e, 0x00050081, 0x00000006, 0x00002a93, 0x00002a8d, 0x00002a92, 0x00050050, + 0x0000000c, 0x000046f4, 0x00002a86, 0x00002a93, 0x00050085, 0x0000000c, 0x00002a97, 0x000046f4, + 0x0000218d, 0x00050051, 0x00000006, 0x00002a99, 0x00002a97, 0x00000000, 0x00050085, 0x00000006, + 0x00002a9c, 0x00002a99, 0x00002a99, 0x00050051, 0x00000006, 0x00002a9e, 0x00002a97, 0x00000001, + 0x00050085, 0x00000006, 0x00002aa1, 0x00002a9e, 0x00002a9e, 0x00050081, 0x00000006, 0x00002aa2, + 0x00002a9c, 0x00002aa1, 0x0007000c, 0x00000006, 0x00002aa5, 0x00000001, 0x00000025, 0x00002aa2, + 0x00002670, 0x00050085, 0x00000006, 0x00002aa8, 0x000001f9, 0x00002aa5, 0x00050081, 0x00000006, + 0x00002aaa, 0x00002aa8, 0x0000015c, 0x00050085, 0x00000006, 0x00002aad, 0x00002192, 0x00002aa5, + 0x00050081, 0x00000006, 0x00002aaf, 0x00002aad, 0x0000015c, 0x00050085, 0x00000006, 0x00002ab2, + 0x00002aaa, 0x00002aaa, 0x00050085, 0x00000006, 0x00002ab5, 0x00002aaf, 0x00002aaf, 0x00050085, + 0x00000006, 0x00002ab8, 0x0000020e, 0x00002ab2, 0x00050081, 0x00000006, 0x00002aba, 0x00002ab8, + 0x00000213, 0x00050085, 0x00000006, 0x00002abd, 0x00002aba, 0x00002ab5, 0x0005008e, 0x00000011, + 0x00002ac0, 0x0000228f, 0x00002abd, 0x00050081, 0x00000011, 0x00002ac2, 0x00002a5e, 0x00002ac0, + 0x00050081, 0x00000006, 0x00002ac5, 0x00002a61, 0x00002abd, 0x00050083, 0x0000000c, 0x0000229a, + 0x00000598, 0x000020ab, 0x00050051, 0x00000006, 0x0000229c, 0x000022e5, 0x00000003, 0x00050051, + 0x00000006, 0x0000229e, 0x000022ea, 0x00000003, 0x00050051, 0x00000006, 0x000022a0, 0x000022ef, + 0x00000003, 0x00060050, 0x00000011, 0x000022a1, 0x0000229c, 0x0000229e, 0x000022a0, 0x00050051, + 0x00000006, 0x00002ae1, 0x0000229a, 0x00000000, 0x00050085, 0x00000006, 0x00002ae4, 0x00002ae1, + 0x0000216e, 0x00050051, 0x00000006, 0x00002ae6, 0x0000229a, 0x00000001, 0x00050085, 0x00000006, + 0x00002ae9, 0x00002ae6, 0x00002173, 0x00050081, 0x00000006, 0x00002aea, 0x00002ae4, 0x00002ae9, + 0x00050085, 0x00000006, 0x00002af1, 0x00002ae1, 0x000026a4, 0x00050085, 0x00000006, 0x00002af6, + 0x00002ae6, 0x0000216e, 0x00050081, 0x00000006, 0x00002af7, 0x00002af1, 0x00002af6, 0x00050050, + 0x0000000c, 0x000046f5, 0x00002aea, 0x00002af7, 0x00050085, 0x0000000c, 0x00002afb, 0x000046f5, + 0x0000218d, 0x00050051, 0x00000006, 0x00002afd, 0x00002afb, 0x00000000, 0x00050085, 0x00000006, + 0x00002b00, 0x00002afd, 0x00002afd, 0x00050051, 0x00000006, 0x00002b02, 0x00002afb, 0x00000001, + 0x00050085, 0x00000006, 0x00002b05, 0x00002b02, 0x00002b02, 0x00050081, 0x00000006, 0x00002b06, + 0x00002b00, 0x00002b05, 0x0007000c, 0x00000006, 0x00002b09, 0x00000001, 0x00000025, 0x00002b06, + 0x00002670, 0x00050085, 0x00000006, 0x00002b0c, 0x000001f9, 0x00002b09, 0x00050081, 0x00000006, + 0x00002b0e, 0x00002b0c, 0x0000015c, 0x00050085, 0x00000006, 0x00002b11, 0x00002192, 0x00002b09, + 0x00050081, 0x00000006, 0x00002b13, 0x00002b11, 0x0000015c, 0x00050085, 0x00000006, 0x00002b16, + 0x00002b0e, 0x00002b0e, 0x00050085, 0x00000006, 0x00002b19, 0x00002b13, 0x00002b13, 0x00050085, + 0x00000006, 0x00002b1c, 0x0000020e, 0x00002b16, 0x00050081, 0x00000006, 0x00002b1e, 0x00002b1c, + 0x00000213, 0x00050085, 0x00000006, 0x00002b21, 0x00002b1e, 0x00002b19, 0x0005008e, 0x00000011, + 0x00002b24, 0x000022a1, 0x00002b21, 0x00050081, 0x00000011, 0x00002b26, 0x00002ac2, 0x00002b24, + 0x00050081, 0x00000006, 0x00002b29, 0x00002ac5, 0x00002b21, 0x00050088, 0x00000006, 0x00002b3e, + 0x000000d1, 0x00002b29, 0x00060050, 0x00000011, 0x00002b45, 0x00002b3e, 0x00002b3e, 0x00002b3e, + 0x00050085, 0x00000011, 0x000022b1, 0x00002b26, 0x00002b45, 0x0007000c, 0x00000011, 0x000022b2, + 0x00000001, 0x00000028, 0x000021b2, 0x000022b1, 0x0007000c, 0x00000011, 0x000022b3, 0x00000001, + 0x00000025, 0x000021d0, 0x000022b2, 0x0004003d, 0x000005e3, 0x00001fa4, 0x000005e5, 0x0004007c, + 0x000005e8, 0x00001fa6, 0x000046e4, 0x00050051, 0x00000006, 0x00001fa8, 0x000022b3, 0x00000000, + 0x00050051, 0x00000006, 0x00001fa9, 0x000022b3, 0x00000001, 0x00050051, 0x00000006, 0x00001faa, + 0x000022b3, 0x00000002, 0x00070050, 0x00000016, 0x00001fab, 0x00001fa8, 0x00001fa9, 0x00001faa, + 0x000000d1, 0x00040063, 0x00001fa4, 0x00001fa6, 0x00001fab, 0x000200f9, 0x00001fac, 0x000200f8, + 0x00001fac, 0x00060052, 0x00000044, 0x00003b1e, 0x00000802, 0x000046e4, 0x00000000, 0x000300f7, + 0x00002b71, 0x00000000, 0x000300fb, 0x00000125, 0x00002b4f, 0x000200f8, 0x00002b4f, 0x000300f7, + 0x00002b5e, 0x00000000, 0x000400fa, 0x00000807, 0x00002b57, 0x00002b5e, 0x000200f8, 0x00002b57, + 0x0004006d, 0x0000001b, 0x00002b5c, 0x00000608, 0x000500ae, 0x0000007d, 0x00002b5d, 0x00000644, + 0x00002b5c, 0x000200f9, 0x00002b5e, 0x000200f8, 0x00002b5e, 0x000700f5, 0x0000007d, 0x00002b5f, + 0x00000806, 0x00002b4f, 0x00002b5d, 0x00002b57, 0x000300f7, 0x00002b61, 0x00000000, 0x000400fa, + 0x00002b5f, 0x00002b60, 0x00002b61, 0x000200f8, 0x00002b60, 0x000200f9, 0x00002b71, 0x000200f8, + 0x00002b61, 0x00040070, 0x0000000c, 0x00002c63, 0x00003b1e, 0x0007004f, 0x00000044, 0x00002c65, + 0x0000372e, 0x0000372e, 0x00000000, 0x00000001, 0x0004007c, 0x0000000c, 0x00002c66, 0x00002c65, + 0x00050085, 0x0000000c, 0x00002c67, 0x00002c63, 0x00002c66, 0x0007004f, 0x00000044, 0x00002c69, + 0x0000372e, 0x0000372e, 0x00000002, 0x00000003, 0x0004007c, 0x0000000c, 0x00002c6a, 0x00002c69, + 0x00050081, 0x0000000c, 0x00002c6b, 0x00002c67, 0x00002c6a, 0x0006000c, 0x0000000c, 0x00002c6d, + 0x00000001, 0x00000008, 0x00002c6b, 0x00050083, 0x0000000c, 0x00002c70, 0x00002c6b, 0x00002c6d, + 0x0007004f, 0x00000044, 0x00002c73, 0x000046bb, 0x000046bb, 0x00000000, 0x00000001, 0x0004007c, + 0x0000000c, 0x00002c74, 0x00002c73, 0x00050085, 0x0000000c, 0x00002c75, 0x00002c6d, 0x00002c74, + 0x0007004f, 0x00000044, 0x00002c77, 0x000046bb, 0x000046bb, 0x00000002, 0x00000003, 0x0004007c, + 0x0000000c, 0x00002c78, 0x00002c77, 0x00050081, 0x0000000c, 0x00002c79, 0x00002c75, 0x00002c78, + 0x0007004f, 0x00000044, 0x00002c7c, 0x000046bc, 0x000046bc, 0x00000000, 0x00000001, 0x0004007c, + 0x0000000c, 0x00002c7d, 0x00002c7c, 0x00050081, 0x0000000c, 0x00002c7e, 0x00002c79, 0x00002c7d, + 0x0007004f, 0x00000044, 0x00002c81, 0x000046bc, 0x000046bc, 0x00000002, 0x00000003, 0x0004007c, + 0x0000000c, 0x00002c82, 0x00002c81, 0x00050081, 0x0000000c, 0x00002c83, 0x00002c79, 0x00002c82, + 0x0007004f, 0x00000044, 0x00002c86, 0x000046bd, 0x000046bd, 0x00000000, 0x00000001, 0x0004007c, + 0x0000000c, 0x00002c87, 0x00002c86, 0x00050081, 0x0000000c, 0x00002c88, 0x00002c79, 0x00002c87, + 0x0004003d, 0x0000010b, 0x00002e7b, 0x0000010d, 0x00060060, 0x00000016, 0x00002e7d, 0x00002e7b, + 0x00002c79, 0x000000bd, 0x0004003d, 0x0000010b, 0x00002e80, 0x0000010d, 0x00060060, 0x00000016, + 0x00002e82, 0x00002e80, 0x00002c79, 0x00000115, 0x0004003d, 0x0000010b, 0x00002e85, 0x0000010d, + 0x00060060, 0x00000016, 0x00002e87, 0x00002e85, 0x00002c79, 0x0000011b, 0x0004003d, 0x0000010b, + 0x00002e8a, 0x0000010d, 0x00060060, 0x00000016, 0x00002e8c, 0x00002e8a, 0x00002c7e, 0x000000bd, + 0x0004003d, 0x0000010b, 0x00002e8f, 0x0000010d, 0x00060060, 0x00000016, 0x00002e91, 0x00002e8f, + 0x00002c7e, 0x00000115, 0x0004003d, 0x0000010b, 0x00002e94, 0x0000010d, 0x00060060, 0x00000016, + 0x00002e96, 0x00002e94, 0x00002c7e, 0x0000011b, 0x0004003d, 0x0000010b, 0x00002e99, 0x0000010d, + 0x00060060, 0x00000016, 0x00002e9b, 0x00002e99, 0x00002c83, 0x000000bd, 0x0004003d, 0x0000010b, + 0x00002e9e, 0x0000010d, 0x00060060, 0x00000016, 0x00002ea0, 0x00002e9e, 0x00002c83, 0x00000115, + 0x0004003d, 0x0000010b, 0x00002ea3, 0x0000010d, 0x00060060, 0x00000016, 0x00002ea5, 0x00002ea3, + 0x00002c83, 0x0000011b, 0x0004003d, 0x0000010b, 0x00002ea8, 0x0000010d, 0x00060060, 0x00000016, + 0x00002eaa, 0x00002ea8, 0x00002c88, 0x000000bd, 0x0004003d, 0x0000010b, 0x00002ead, 0x0000010d, + 0x00060060, 0x00000016, 0x00002eaf, 0x00002ead, 0x00002c88, 0x00000115, 0x0004003d, 0x0000010b, + 0x00002eb2, 0x0000010d, 0x00060060, 0x00000016, 0x00002eb4, 0x00002eb2, 0x00002c88, 0x0000011b, + 0x00050085, 0x00000016, 0x00002ca3, 0x00002e87, 0x000046b6, 0x00050085, 0x00000016, 0x00002ca6, + 0x00002e7d, 0x000046b6, 0x00050081, 0x00000016, 0x00002ca8, 0x00002ca6, 0x00002e82, 0x00050081, + 0x00000016, 0x00002ca9, 0x00002ca3, 0x00002ca8, 0x00050085, 0x00000016, 0x00002cac, 0x00002e96, + 0x000046b6, 0x00050085, 0x00000016, 0x00002caf, 0x00002e8c, 0x000046b6, 0x00050081, 0x00000016, + 0x00002cb1, 0x00002caf, 0x00002e91, 0x00050081, 0x00000016, 0x00002cb2, 0x00002cac, 0x00002cb1, + 0x00050085, 0x00000016, 0x00002cb5, 0x00002ea5, 0x000046b6, 0x00050085, 0x00000016, 0x00002cb8, + 0x00002e9b, 0x000046b6, 0x00050081, 0x00000016, 0x00002cba, 0x00002cb8, 0x00002ea0, 0x00050081, + 0x00000016, 0x00002cbb, 0x00002cb5, 0x00002cba, 0x00050085, 0x00000016, 0x00002cbe, 0x00002eb4, + 0x000046b6, 0x00050085, 0x00000016, 0x00002cc1, 0x00002eaa, 0x000046b6, 0x00050081, 0x00000016, + 0x00002cc3, 0x00002cc1, 0x00002eaf, 0x00050081, 0x00000016, 0x00002cc4, 0x00002cbe, 0x00002cc3, + 0x00050051, 0x00000006, 0x00002cc6, 0x00002ca9, 0x00000000, 0x00050051, 0x00000006, 0x00002cc8, + 0x00002ca9, 0x00000001, 0x00050051, 0x00000006, 0x00002cca, 0x00002cb2, 0x00000000, 0x00050051, + 0x00000006, 0x00002ccc, 0x00002cb2, 0x00000001, 0x00050051, 0x00000006, 0x00002cce, 0x00002cb2, + 0x00000002, 0x00050051, 0x00000006, 0x00002cd0, 0x00002cb2, 0x00000003, 0x00050051, 0x00000006, + 0x00002cd2, 0x00002cbb, 0x00000000, 0x00050051, 0x00000006, 0x00002cd4, 0x00002cbb, 0x00000001, + 0x00050051, 0x00000006, 0x00002cd6, 0x00002cbb, 0x00000002, 0x00050051, 0x00000006, 0x00002cd8, + 0x00002cbb, 0x00000003, 0x00050051, 0x00000006, 0x00002cda, 0x00002cc4, 0x00000002, 0x00050051, + 0x00000006, 0x00002cdc, 0x00002cc4, 0x00000003, 0x00050051, 0x00000006, 0x00002ef4, 0x00002c70, + 0x00000000, 0x00050083, 0x00000006, 0x00002ef5, 0x000000d1, 0x00002ef4, 0x00050051, 0x00000006, + 0x00002ef8, 0x00002c70, 0x00000001, 0x00050083, 0x00000006, 0x00002ef9, 0x000000d1, 0x00002ef8, + 0x00050085, 0x00000006, 0x00002efa, 0x00002ef5, 0x00002ef9, 0x00050083, 0x00000006, 0x00002f1a, + 0x00002cd8, 0x00002cce, 0x00050083, 0x00000006, 0x00002f1d, 0x00002cce, 0x00002cd0, 0x0006000c, + 0x00000006, 0x00002f1f, 0x00000001, 0x00000004, 0x00002f1a, 0x0006000c, 0x00000006, 0x00002f21, + 0x00000001, 0x00000004, 0x00002f1d, 0x0007000c, 0x00000006, 0x00002f22, 0x00000001, 0x00000028, + 0x00002f1f, 0x00002f21, 0x0004007c, 0x0000001b, 0x00002f74, 0x00002f22, 0x00050082, 0x0000001b, + 0x00002f75, 0x000000e1, 0x00002f74, 0x0004007c, 0x00000006, 0x00002f76, 0x00002f75, 0x00050083, + 0x00000006, 0x00002f27, 0x00002cd8, 0x00002cd0, 0x00050085, 0x00000006, 0x00002f2a, 0x00002f27, + 0x00002efa, 0x0006000c, 0x00000006, 0x00002f30, 0x00000001, 0x00000004, 0x00002f27, 0x00050085, + 0x00000006, 0x00002f32, 0x00002f30, 0x00002f76, 0x0008000c, 0x00000006, 0x00002f81, 0x00000001, + 0x0000002b, 0x00002f32, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00002f36, 0x00002f81, + 0x00002f81, 0x00050083, 0x00000006, 0x00002f3e, 0x00002ccc, 0x00002cce, 0x00050083, 0x00000006, + 0x00002f41, 0x00002cce, 0x00002cc6, 0x0006000c, 0x00000006, 0x00002f43, 0x00000001, 0x00000004, + 0x00002f3e, 0x0006000c, 0x00000006, 0x00002f45, 0x00000001, 0x00000004, 0x00002f41, 0x0007000c, + 0x00000006, 0x00002f46, 0x00000001, 0x00000028, 0x00002f43, 0x00002f45, 0x0004007c, 0x0000001b, + 0x00002f8d, 0x00002f46, 0x00050082, 0x0000001b, 0x00002f8e, 0x000000e1, 0x00002f8d, 0x0004007c, + 0x00000006, 0x00002f8f, 0x00002f8e, 0x00050083, 0x00000006, 0x00002f4b, 0x00002ccc, 0x00002cc6, + 0x00050085, 0x00000006, 0x00002f4e, 0x00002f4b, 0x00002efa, 0x0006000c, 0x00000006, 0x00002f54, + 0x00000001, 0x00000004, 0x00002f4b, 0x00050085, 0x00000006, 0x00002f56, 0x00002f54, 0x00002f8f, + 0x0008000c, 0x00000006, 0x00002f9a, 0x00000001, 0x0000002b, 0x00002f56, 0x000000d9, 0x000000d1, + 0x00050085, 0x00000006, 0x00002f5a, 0x00002f9a, 0x00002f9a, 0x00050081, 0x00000006, 0x0000470b, + 0x00002f36, 0x00002f5a, 0x00050085, 0x00000006, 0x00002f5f, 0x00002efa, 0x0000470b, 0x00050085, + 0x00000006, 0x00002fc9, 0x00002ef4, 0x00002ef9, 0x00050083, 0x00000006, 0x00002fdf, 0x00002cd6, + 0x00002cd8, 0x0006000c, 0x00000006, 0x00002fe4, 0x00000001, 0x00000004, 0x00002fdf, 0x0007000c, + 0x00000006, 0x00002fe7, 0x00000001, 0x00000028, 0x00002fe4, 0x00002f1f, 0x0004007c, 0x0000001b, + 0x00003039, 0x00002fe7, 0x00050082, 0x0000001b, 0x0000303a, 0x000000e1, 0x00003039, 0x0004007c, + 0x00000006, 0x0000303b, 0x0000303a, 0x00050083, 0x00000006, 0x00002fec, 0x00002cd6, 0x00002cce, + 0x00050085, 0x00000006, 0x00002fef, 0x00002fec, 0x00002fc9, 0x00050081, 0x00000006, 0x00002ff2, + 0x00002f2a, 0x00002fef, 0x0006000c, 0x00000006, 0x00002ff5, 0x00000001, 0x00000004, 0x00002fec, + 0x00050085, 0x00000006, 0x00002ff7, 0x00002ff5, 0x0000303b, 0x0008000c, 0x00000006, 0x00003046, + 0x00000001, 0x0000002b, 0x00002ff7, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00002ffb, + 0x00003046, 0x00003046, 0x00050085, 0x00000006, 0x00002ffe, 0x00002ffb, 0x00002fc9, 0x00050081, + 0x00000006, 0x00003000, 0x00002f5f, 0x00002ffe, 0x00050083, 0x00000006, 0x00003003, 0x00002cd2, + 0x00002cd8, 0x00050083, 0x00000006, 0x00003006, 0x00002cd8, 0x00002cc8, 0x0006000c, 0x00000006, + 0x00003008, 0x00000001, 0x00000004, 0x00003003, 0x0006000c, 0x00000006, 0x0000300a, 0x00000001, + 0x00000004, 0x00003006, 0x0007000c, 0x00000006, 0x0000300b, 0x00000001, 0x00000028, 0x00003008, + 0x0000300a, 0x0004007c, 0x0000001b, 0x00003052, 0x0000300b, 0x00050082, 0x0000001b, 0x00003053, + 0x000000e1, 0x00003052, 0x0004007c, 0x00000006, 0x00003054, 0x00003053, 0x00050083, 0x00000006, + 0x00003010, 0x00002cd2, 0x00002cc8, 0x00050085, 0x00000006, 0x00003013, 0x00003010, 0x00002fc9, + 0x00050081, 0x00000006, 0x00003016, 0x00002f4e, 0x00003013, 0x0006000c, 0x00000006, 0x00003019, + 0x00000001, 0x00000004, 0x00003010, 0x00050085, 0x00000006, 0x0000301b, 0x00003019, 0x00003054, + 0x0008000c, 0x00000006, 0x0000305f, 0x00000001, 0x0000002b, 0x0000301b, 0x000000d9, 0x000000d1, + 0x00050085, 0x00000006, 0x0000301f, 0x0000305f, 0x0000305f, 0x00050085, 0x00000006, 0x00003022, + 0x0000301f, 0x00002fc9, 0x00050081, 0x00000006, 0x00003024, 0x00003000, 0x00003022, 0x00050085, + 0x00000006, 0x00003098, 0x00002ef5, 0x00002ef8, 0x00050083, 0x00000006, 0x000030a4, 0x00002cd2, + 0x00002ccc, 0x00050083, 0x00000006, 0x000030a7, 0x00002ccc, 0x00002cca, 0x0006000c, 0x00000006, + 0x000030a9, 0x00000001, 0x00000004, 0x000030a4, 0x0006000c, 0x00000006, 0x000030ab, 0x00000001, + 0x00000004, 0x000030a7, 0x0007000c, 0x00000006, 0x000030ac, 0x00000001, 0x00000028, 0x000030a9, + 0x000030ab, 0x0004007c, 0x0000001b, 0x000030fe, 0x000030ac, 0x00050082, 0x0000001b, 0x000030ff, + 0x000000e1, 0x000030fe, 0x0004007c, 0x00000006, 0x00003100, 0x000030ff, 0x00050083, 0x00000006, + 0x000030b1, 0x00002cd2, 0x00002cca, 0x00050085, 0x00000006, 0x000030b4, 0x000030b1, 0x00003098, + 0x00050081, 0x00000006, 0x000030b7, 0x00002ff2, 0x000030b4, 0x0006000c, 0x00000006, 0x000030ba, + 0x00000001, 0x00000004, 0x000030b1, 0x00050085, 0x00000006, 0x000030bc, 0x000030ba, 0x00003100, + 0x0008000c, 0x00000006, 0x0000310b, 0x00000001, 0x0000002b, 0x000030bc, 0x000000d9, 0x000000d1, + 0x00050085, 0x00000006, 0x000030c0, 0x0000310b, 0x0000310b, 0x00050085, 0x00000006, 0x000030c3, + 0x000030c0, 0x00003098, 0x00050081, 0x00000006, 0x000030c5, 0x00003024, 0x000030c3, 0x00050083, + 0x00000006, 0x000030c8, 0x00002cdc, 0x00002ccc, 0x0006000c, 0x00000006, 0x000030cd, 0x00000001, + 0x00000004, 0x000030c8, 0x0007000c, 0x00000006, 0x000030d0, 0x00000001, 0x00000028, 0x000030cd, + 0x00002f43, 0x0004007c, 0x0000001b, 0x00003117, 0x000030d0, 0x00050082, 0x0000001b, 0x00003118, + 0x000000e1, 0x00003117, 0x0004007c, 0x00000006, 0x00003119, 0x00003118, 0x00050083, 0x00000006, + 0x000030d5, 0x00002cdc, 0x00002cce, 0x00050085, 0x00000006, 0x000030d8, 0x000030d5, 0x00003098, + 0x00050081, 0x00000006, 0x000030db, 0x00003016, 0x000030d8, 0x0006000c, 0x00000006, 0x000030de, + 0x00000001, 0x00000004, 0x000030d5, 0x00050085, 0x00000006, 0x000030e0, 0x000030de, 0x00003119, + 0x0008000c, 0x00000006, 0x00003124, 0x00000001, 0x0000002b, 0x000030e0, 0x000000d9, 0x000000d1, + 0x00050085, 0x00000006, 0x000030e4, 0x00003124, 0x00003124, 0x00050085, 0x00000006, 0x000030e7, + 0x000030e4, 0x00003098, 0x00050081, 0x00000006, 0x000030e9, 0x000030c5, 0x000030e7, 0x00050085, + 0x00000006, 0x00003165, 0x00002ef4, 0x00002ef8, 0x00050083, 0x00000006, 0x00003169, 0x00002cd4, + 0x00002cd2, 0x0006000c, 0x00000006, 0x0000316e, 0x00000001, 0x00000004, 0x00003169, 0x0007000c, + 0x00000006, 0x00003171, 0x00000001, 0x00000028, 0x0000316e, 0x000030a9, 0x0004007c, 0x0000001b, + 0x000031c3, 0x00003171, 0x00050082, 0x0000001b, 0x000031c4, 0x000000e1, 0x000031c3, 0x0004007c, + 0x00000006, 0x000031c5, 0x000031c4, 0x00050083, 0x00000006, 0x00003176, 0x00002cd4, 0x00002ccc, + 0x00050085, 0x00000006, 0x00003179, 0x00003176, 0x00003165, 0x00050081, 0x00000006, 0x0000317c, + 0x000030b7, 0x00003179, 0x0006000c, 0x00000006, 0x0000317f, 0x00000001, 0x00000004, 0x00003176, + 0x00050085, 0x00000006, 0x00003181, 0x0000317f, 0x000031c5, 0x0008000c, 0x00000006, 0x000031d0, + 0x00000001, 0x0000002b, 0x00003181, 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x00003185, + 0x000031d0, 0x000031d0, 0x00050085, 0x00000006, 0x00003188, 0x00003185, 0x00003165, 0x00050081, + 0x00000006, 0x0000318a, 0x000030e9, 0x00003188, 0x00050083, 0x00000006, 0x0000318d, 0x00002cda, + 0x00002cd2, 0x0006000c, 0x00000006, 0x00003192, 0x00000001, 0x00000004, 0x0000318d, 0x0007000c, + 0x00000006, 0x00003195, 0x00000001, 0x00000028, 0x00003192, 0x00003008, 0x0004007c, 0x0000001b, + 0x000031dc, 0x00003195, 0x00050082, 0x0000001b, 0x000031dd, 0x000000e1, 0x000031dc, 0x0004007c, + 0x00000006, 0x000031de, 0x000031dd, 0x00050083, 0x00000006, 0x0000319a, 0x00002cda, 0x00002cd8, + 0x00050085, 0x00000006, 0x0000319d, 0x0000319a, 0x00003165, 0x00050081, 0x00000006, 0x000031a0, + 0x000030db, 0x0000319d, 0x00050050, 0x0000000c, 0x000046f9, 0x0000317c, 0x000031a0, 0x0006000c, + 0x00000006, 0x000031a3, 0x00000001, 0x00000004, 0x0000319a, 0x00050085, 0x00000006, 0x000031a5, + 0x000031a3, 0x000031de, 0x0008000c, 0x00000006, 0x000031e9, 0x00000001, 0x0000002b, 0x000031a5, + 0x000000d9, 0x000000d1, 0x00050085, 0x00000006, 0x000031a9, 0x000031e9, 0x000031e9, 0x00050085, + 0x00000006, 0x000031ac, 0x000031a9, 0x00003165, 0x00050081, 0x00000006, 0x000031ae, 0x0000318a, + 0x000031ac, 0x00050085, 0x0000000c, 0x00002d0d, 0x000046f9, 0x000046f9, 0x00050051, 0x00000006, + 0x00002d0f, 0x00002d0d, 0x00000000, 0x00050051, 0x00000006, 0x00002d11, 0x00002d0d, 0x00000001, + 0x00050081, 0x00000006, 0x00002d12, 0x00002d0f, 0x00002d11, 0x000500b8, 0x0000007d, 0x00002d15, + 0x00002d12, 0x000003c8, 0x0004007c, 0x0000001b, 0x000031f9, 0x00002d12, 0x000500c2, 0x0000001b, + 0x000031fb, 0x000031f9, 0x000000ef, 0x00050082, 0x0000001b, 0x000031fc, 0x000000ea, 0x000031fb, + 0x0004007c, 0x00000006, 0x000031fd, 0x000031fc, 0x000600a9, 0x00000006, 0x00004712, 0x00002d15, + 0x000000d1, 0x000031fd, 0x000600a9, 0x00000006, 0x00004713, 0x00002d15, 0x000000d1, 0x0000317c, + 0x00060052, 0x0000000c, 0x00003b69, 0x00004713, 0x000046f9, 0x00000000, 0x00050050, 0x0000000c, + 0x0000320d, 0x00004712, 0x00004712, 0x00050085, 0x0000000c, 0x00002d2b, 0x00003b69, 0x0000320d, + 0x00050085, 0x00000006, 0x000046fa, 0x000031ae, 0x000031ae, 0x00050085, 0x00000006, 0x00002d31, + 0x000046c3, 0x000046fa, 0x00050051, 0x00000006, 0x00002d33, 0x00002d2b, 0x00000000, 0x00050085, + 0x00000006, 0x00002d36, 0x00002d33, 0x00002d33, 0x00050051, 0x00000006, 0x00002d38, 0x00002d2b, + 0x00000001, 0x00050085, 0x00000006, 0x00002d3b, 0x00002d38, 0x00002d38, 0x00050081, 0x00000006, + 0x00002d3c, 0x00002d36, 0x00002d3b, 0x0006000c, 0x00000006, 0x00002d3f, 0x00000001, 0x00000004, + 0x00002d33, 0x0006000c, 0x00000006, 0x00002d42, 0x00000001, 0x00000004, 0x00002d38, 0x0007000c, + 0x00000006, 0x00002d43, 0x00000001, 0x00000028, 0x00002d3f, 0x00002d42, 0x0004007c, 0x0000001b, + 0x00003216, 0x00002d43, 0x00050082, 0x0000001b, 0x00003217, 0x000000e1, 0x00003216, 0x0004007c, + 0x00000006, 0x00003218, 0x00003217, 0x00050085, 0x00000006, 0x00002d45, 0x00002d3c, 0x00003218, + 0x00050083, 0x00000006, 0x00002d49, 0x00002d45, 0x000000d1, 0x00050085, 0x00000006, 0x00002d4b, + 0x00002d49, 0x00002d31, 0x00050081, 0x00000006, 0x00002d4c, 0x000000d1, 0x00002d4b, 0x00050085, + 0x00000006, 0x00002d50, 0x000046fa, 0x000046c5, 0x00050081, 0x00000006, 0x00002d51, 0x000000d1, + 0x00002d50, 0x00050050, 0x0000000c, 0x00002d52, 0x00002d4c, 0x00002d51, 0x00050085, 0x00000006, + 0x00002d56, 0x000046fa, 0x000046c6, 0x00050081, 0x00000006, 0x00002d57, 0x0000012e, 0x00002d56, + 0x0004007c, 0x0000001b, 0x00003233, 0x00002d57, 0x00050082, 0x0000001b, 0x00003234, 0x000000e1, + 0x00003233, 0x0004007c, 0x00000006, 0x00003235, 0x00003234, 0x00050051, 0x00000006, 0x00002d5b, + 0x00002e8c, 0x00000002, 0x00050051, 0x00000006, 0x00002d5d, 0x00002e91, 0x00000002, 0x00050051, + 0x00000006, 0x00002d5f, 0x00002e96, 0x00000002, 0x00060050, 0x00000011, 0x00002d60, 0x00002d5b, + 0x00002d5d, 0x00002d5f, 0x00050051, 0x00000006, 0x00002d62, 0x00002e9b, 0x00000003, 0x00050051, + 0x00000006, 0x00002d64, 0x00002ea0, 0x00000003, 0x00050051, 0x00000006, 0x00002d66, 0x00002ea5, + 0x00000003, 0x00060050, 0x00000011, 0x00002d67, 0x00002d62, 0x00002d64, 0x00002d66, 0x00050051, + 0x00000006, 0x00002d69, 0x00002e8c, 0x00000001, 0x00050051, 0x00000006, 0x00002d6b, 0x00002e91, + 0x00000001, 0x00050051, 0x00000006, 0x00002d6d, 0x00002e96, 0x00000001, 0x00060050, 0x00000011, + 0x00002d6e, 0x00002d69, 0x00002d6b, 0x00002d6d, 0x0007000c, 0x00000011, 0x0000323e, 0x00000001, + 0x00000025, 0x00002d67, 0x00002d6e, 0x0007000c, 0x00000011, 0x0000323f, 0x00000001, 0x00000025, + 0x00002d60, 0x0000323e, 0x00050051, 0x00000006, 0x00002d71, 0x00002e9b, 0x00000000, 0x00050051, + 0x00000006, 0x00002d73, 0x00002ea0, 0x00000000, 0x00050051, 0x00000006, 0x00002d75, 0x00002ea5, + 0x00000000, 0x00060050, 0x00000011, 0x00002d76, 0x00002d71, 0x00002d73, 0x00002d75, 0x0007000c, + 0x00000011, 0x00002d77, 0x00000001, 0x00000025, 0x0000323f, 0x00002d76, 0x0007000c, 0x00000011, + 0x00003245, 0x00000001, 0x00000028, 0x00002d67, 0x00002d6e, 0x0007000c, 0x00000011, 0x00003246, + 0x00000001, 0x00000028, 0x00002d60, 0x00003245, 0x0007000c, 0x00000011, 0x00002d95, 0x00000001, + 0x00000028, 0x00003246, 0x00002d76, 0x00050083, 0x0000000c, 0x00002d99, 0x0000046f, 0x00002c70, + 0x00050051, 0x00000006, 0x00002d9b, 0x00002e7d, 0x00000000, 0x00050051, 0x00000006, 0x00002d9d, + 0x00002e82, 0x00000000, 0x00050051, 0x00000006, 0x00002d9f, 0x00002e87, 0x00000000, 0x00060050, + 0x00000011, 0x00002da0, 0x00002d9b, 0x00002d9d, 0x00002d9f, 0x00050051, 0x00000006, 0x0000325a, + 0x00002d99, 0x00000000, 0x00050085, 0x00000006, 0x0000325d, 0x0000325a, 0x00002d33, 0x00050051, + 0x00000006, 0x0000325f, 0x00002d99, 0x00000001, 0x00050085, 0x00000006, 0x00003262, 0x0000325f, + 0x00002d38, 0x00050081, 0x00000006, 0x00003263, 0x0000325d, 0x00003262, 0x0004007f, 0x00000006, + 0x00003269, 0x00002d38, 0x00050085, 0x00000006, 0x0000326a, 0x0000325a, 0x00003269, 0x00050085, + 0x00000006, 0x0000326f, 0x0000325f, 0x00002d33, 0x00050081, 0x00000006, 0x00003270, 0x0000326a, + 0x0000326f, 0x00050050, 0x0000000c, 0x000046fb, 0x00003263, 0x00003270, 0x00050085, 0x0000000c, + 0x00003274, 0x000046fb, 0x00002d52, 0x00050051, 0x00000006, 0x00003276, 0x00003274, 0x00000000, + 0x00050085, 0x00000006, 0x00003279, 0x00003276, 0x00003276, 0x00050051, 0x00000006, 0x0000327b, + 0x00003274, 0x00000001, 0x00050085, 0x00000006, 0x0000327e, 0x0000327b, 0x0000327b, 0x00050081, + 0x00000006, 0x0000327f, 0x00003279, 0x0000327e, 0x0007000c, 0x00000006, 0x00003282, 0x00000001, + 0x00000025, 0x0000327f, 0x00003235, 0x00050085, 0x00000006, 0x00003285, 0x000001f9, 0x00003282, + 0x00050081, 0x00000006, 0x00003287, 0x00003285, 0x0000015c, 0x00050085, 0x00000006, 0x0000328a, + 0x00002d57, 0x00003282, 0x00050081, 0x00000006, 0x0000328c, 0x0000328a, 0x0000015c, 0x00050085, + 0x00000006, 0x0000328f, 0x00003287, 0x00003287, 0x00050085, 0x00000006, 0x00003292, 0x0000328c, + 0x0000328c, 0x00050085, 0x00000006, 0x00003295, 0x0000020e, 0x0000328f, 0x00050081, 0x00000006, + 0x00003297, 0x00003295, 0x00000213, 0x00050085, 0x00000006, 0x0000329a, 0x00003297, 0x00003292, + 0x0005008e, 0x00000011, 0x0000329d, 0x00002da0, 0x0000329a, 0x00050083, 0x0000000c, 0x00002dab, + 0x0000048a, 0x00002c70, 0x00050051, 0x00000006, 0x00002dad, 0x00002e7d, 0x00000001, 0x00050051, + 0x00000006, 0x00002daf, 0x00002e82, 0x00000001, 0x00050051, 0x00000006, 0x00002db1, 0x00002e87, + 0x00000001, 0x00060050, 0x00000011, 0x00002db2, 0x00002dad, 0x00002daf, 0x00002db1, 0x00050051, + 0x00000006, 0x000032be, 0x00002dab, 0x00000000, 0x00050085, 0x00000006, 0x000032c1, 0x000032be, + 0x00002d33, 0x00050051, 0x00000006, 0x000032c3, 0x00002dab, 0x00000001, 0x00050085, 0x00000006, + 0x000032c6, 0x000032c3, 0x00002d38, 0x00050081, 0x00000006, 0x000032c7, 0x000032c1, 0x000032c6, + 0x00050085, 0x00000006, 0x000032ce, 0x000032be, 0x00003269, 0x00050085, 0x00000006, 0x000032d3, + 0x000032c3, 0x00002d33, 0x00050081, 0x00000006, 0x000032d4, 0x000032ce, 0x000032d3, 0x00050050, + 0x0000000c, 0x000046fc, 0x000032c7, 0x000032d4, 0x00050085, 0x0000000c, 0x000032d8, 0x000046fc, + 0x00002d52, 0x00050051, 0x00000006, 0x000032da, 0x000032d8, 0x00000000, 0x00050085, 0x00000006, + 0x000032dd, 0x000032da, 0x000032da, 0x00050051, 0x00000006, 0x000032df, 0x000032d8, 0x00000001, + 0x00050085, 0x00000006, 0x000032e2, 0x000032df, 0x000032df, 0x00050081, 0x00000006, 0x000032e3, + 0x000032dd, 0x000032e2, 0x0007000c, 0x00000006, 0x000032e6, 0x00000001, 0x00000025, 0x000032e3, + 0x00003235, 0x00050085, 0x00000006, 0x000032e9, 0x000001f9, 0x000032e6, 0x00050081, 0x00000006, + 0x000032eb, 0x000032e9, 0x0000015c, 0x00050085, 0x00000006, 0x000032ee, 0x00002d57, 0x000032e6, + 0x00050081, 0x00000006, 0x000032f0, 0x000032ee, 0x0000015c, 0x00050085, 0x00000006, 0x000032f3, + 0x000032eb, 0x000032eb, 0x00050085, 0x00000006, 0x000032f6, 0x000032f0, 0x000032f0, 0x00050085, + 0x00000006, 0x000032f9, 0x0000020e, 0x000032f3, 0x00050081, 0x00000006, 0x000032fb, 0x000032f9, + 0x00000213, 0x00050085, 0x00000006, 0x000032fe, 0x000032fb, 0x000032f6, 0x0005008e, 0x00000011, + 0x00003301, 0x00002db2, 0x000032fe, 0x00050081, 0x00000011, 0x00003303, 0x0000329d, 0x00003301, + 0x00050081, 0x00000006, 0x00003306, 0x0000329a, 0x000032fe, 0x00050083, 0x0000000c, 0x00002dbd, + 0x000004a5, 0x00002c70, 0x00050051, 0x00000006, 0x00002dbf, 0x00002e8c, 0x00000000, 0x00050051, + 0x00000006, 0x00002dc1, 0x00002e91, 0x00000000, 0x00050051, 0x00000006, 0x00002dc3, 0x00002e96, + 0x00000000, 0x00060050, 0x00000011, 0x00002dc4, 0x00002dbf, 0x00002dc1, 0x00002dc3, 0x00050051, + 0x00000006, 0x00003322, 0x00002dbd, 0x00000000, 0x00050085, 0x00000006, 0x00003325, 0x00003322, + 0x00002d33, 0x00050051, 0x00000006, 0x00003327, 0x00002dbd, 0x00000001, 0x00050085, 0x00000006, + 0x0000332a, 0x00003327, 0x00002d38, 0x00050081, 0x00000006, 0x0000332b, 0x00003325, 0x0000332a, + 0x00050085, 0x00000006, 0x00003332, 0x00003322, 0x00003269, 0x00050085, 0x00000006, 0x00003337, + 0x00003327, 0x00002d33, 0x00050081, 0x00000006, 0x00003338, 0x00003332, 0x00003337, 0x00050050, + 0x0000000c, 0x000046fd, 0x0000332b, 0x00003338, 0x00050085, 0x0000000c, 0x0000333c, 0x000046fd, + 0x00002d52, 0x00050051, 0x00000006, 0x0000333e, 0x0000333c, 0x00000000, 0x00050085, 0x00000006, + 0x00003341, 0x0000333e, 0x0000333e, 0x00050051, 0x00000006, 0x00003343, 0x0000333c, 0x00000001, + 0x00050085, 0x00000006, 0x00003346, 0x00003343, 0x00003343, 0x00050081, 0x00000006, 0x00003347, + 0x00003341, 0x00003346, 0x0007000c, 0x00000006, 0x0000334a, 0x00000001, 0x00000025, 0x00003347, + 0x00003235, 0x00050085, 0x00000006, 0x0000334d, 0x000001f9, 0x0000334a, 0x00050081, 0x00000006, + 0x0000334f, 0x0000334d, 0x0000015c, 0x00050085, 0x00000006, 0x00003352, 0x00002d57, 0x0000334a, + 0x00050081, 0x00000006, 0x00003354, 0x00003352, 0x0000015c, 0x00050085, 0x00000006, 0x00003357, + 0x0000334f, 0x0000334f, 0x00050085, 0x00000006, 0x0000335a, 0x00003354, 0x00003354, 0x00050085, + 0x00000006, 0x0000335d, 0x0000020e, 0x00003357, 0x00050081, 0x00000006, 0x0000335f, 0x0000335d, + 0x00000213, 0x00050085, 0x00000006, 0x00003362, 0x0000335f, 0x0000335a, 0x0005008e, 0x00000011, + 0x00003365, 0x00002dc4, 0x00003362, 0x00050081, 0x00000011, 0x00003367, 0x00003303, 0x00003365, + 0x00050081, 0x00000006, 0x0000336a, 0x00003306, 0x00003362, 0x00050083, 0x0000000c, 0x00002dcf, + 0x000004c0, 0x00002c70, 0x00050051, 0x00000006, 0x00003386, 0x00002dcf, 0x00000000, 0x00050085, + 0x00000006, 0x00003389, 0x00003386, 0x00002d33, 0x00050051, 0x00000006, 0x0000338b, 0x00002dcf, + 0x00000001, 0x00050085, 0x00000006, 0x0000338e, 0x0000338b, 0x00002d38, 0x00050081, 0x00000006, + 0x0000338f, 0x00003389, 0x0000338e, 0x00050085, 0x00000006, 0x00003396, 0x00003386, 0x00003269, + 0x00050085, 0x00000006, 0x0000339b, 0x0000338b, 0x00002d33, 0x00050081, 0x00000006, 0x0000339c, + 0x00003396, 0x0000339b, 0x00050050, 0x0000000c, 0x000046fe, 0x0000338f, 0x0000339c, 0x00050085, + 0x0000000c, 0x000033a0, 0x000046fe, 0x00002d52, 0x00050051, 0x00000006, 0x000033a2, 0x000033a0, + 0x00000000, 0x00050085, 0x00000006, 0x000033a5, 0x000033a2, 0x000033a2, 0x00050051, 0x00000006, + 0x000033a7, 0x000033a0, 0x00000001, 0x00050085, 0x00000006, 0x000033aa, 0x000033a7, 0x000033a7, + 0x00050081, 0x00000006, 0x000033ab, 0x000033a5, 0x000033aa, 0x0007000c, 0x00000006, 0x000033ae, + 0x00000001, 0x00000025, 0x000033ab, 0x00003235, 0x00050085, 0x00000006, 0x000033b1, 0x000001f9, + 0x000033ae, 0x00050081, 0x00000006, 0x000033b3, 0x000033b1, 0x0000015c, 0x00050085, 0x00000006, + 0x000033b6, 0x00002d57, 0x000033ae, 0x00050081, 0x00000006, 0x000033b8, 0x000033b6, 0x0000015c, + 0x00050085, 0x00000006, 0x000033bb, 0x000033b3, 0x000033b3, 0x00050085, 0x00000006, 0x000033be, + 0x000033b8, 0x000033b8, 0x00050085, 0x00000006, 0x000033c1, 0x0000020e, 0x000033bb, 0x00050081, + 0x00000006, 0x000033c3, 0x000033c1, 0x00000213, 0x00050085, 0x00000006, 0x000033c6, 0x000033c3, + 0x000033be, 0x0005008e, 0x00000011, 0x000033c9, 0x00002d6e, 0x000033c6, 0x00050081, 0x00000011, + 0x000033cb, 0x00003367, 0x000033c9, 0x00050081, 0x00000006, 0x000033ce, 0x0000336a, 0x000033c6, + 0x0004007f, 0x0000000c, 0x00002de1, 0x00002c70, 0x00050051, 0x00000006, 0x000033ea, 0x00002de1, + 0x00000000, 0x00050085, 0x00000006, 0x000033ed, 0x000033ea, 0x00002d33, 0x00050051, 0x00000006, + 0x000033ef, 0x00002de1, 0x00000001, 0x00050085, 0x00000006, 0x000033f2, 0x000033ef, 0x00002d38, + 0x00050081, 0x00000006, 0x000033f3, 0x000033ed, 0x000033f2, 0x00050085, 0x00000006, 0x000033fa, + 0x000033ea, 0x00003269, 0x00050085, 0x00000006, 0x000033ff, 0x000033ef, 0x00002d33, 0x00050081, + 0x00000006, 0x00003400, 0x000033fa, 0x000033ff, 0x00050050, 0x0000000c, 0x000046ff, 0x000033f3, + 0x00003400, 0x00050085, 0x0000000c, 0x00003404, 0x000046ff, 0x00002d52, 0x00050051, 0x00000006, + 0x00003406, 0x00003404, 0x00000000, 0x00050085, 0x00000006, 0x00003409, 0x00003406, 0x00003406, + 0x00050051, 0x00000006, 0x0000340b, 0x00003404, 0x00000001, 0x00050085, 0x00000006, 0x0000340e, + 0x0000340b, 0x0000340b, 0x00050081, 0x00000006, 0x0000340f, 0x00003409, 0x0000340e, 0x0007000c, + 0x00000006, 0x00003412, 0x00000001, 0x00000025, 0x0000340f, 0x00003235, 0x00050085, 0x00000006, + 0x00003415, 0x000001f9, 0x00003412, 0x00050081, 0x00000006, 0x00003417, 0x00003415, 0x0000015c, + 0x00050085, 0x00000006, 0x0000341a, 0x00002d57, 0x00003412, 0x00050081, 0x00000006, 0x0000341c, + 0x0000341a, 0x0000015c, 0x00050085, 0x00000006, 0x0000341f, 0x00003417, 0x00003417, 0x00050085, + 0x00000006, 0x00003422, 0x0000341c, 0x0000341c, 0x00050085, 0x00000006, 0x00003425, 0x0000020e, + 0x0000341f, 0x00050081, 0x00000006, 0x00003427, 0x00003425, 0x00000213, 0x00050085, 0x00000006, + 0x0000342a, 0x00003427, 0x00003422, 0x0005008e, 0x00000011, 0x0000342d, 0x00002d60, 0x0000342a, + 0x00050081, 0x00000011, 0x0000342f, 0x000033cb, 0x0000342d, 0x00050081, 0x00000006, 0x00003432, + 0x000033ce, 0x0000342a, 0x00050083, 0x0000000c, 0x00002df3, 0x000004f6, 0x00002c70, 0x00050051, + 0x00000006, 0x00002df5, 0x00002e8c, 0x00000003, 0x00050051, 0x00000006, 0x00002df7, 0x00002e91, + 0x00000003, 0x00050051, 0x00000006, 0x00002df9, 0x00002e96, 0x00000003, 0x00060050, 0x00000011, + 0x00002dfa, 0x00002df5, 0x00002df7, 0x00002df9, 0x00050051, 0x00000006, 0x0000344e, 0x00002df3, + 0x00000000, 0x00050085, 0x00000006, 0x00003451, 0x0000344e, 0x00002d33, 0x00050051, 0x00000006, + 0x00003453, 0x00002df3, 0x00000001, 0x00050085, 0x00000006, 0x00003456, 0x00003453, 0x00002d38, + 0x00050081, 0x00000006, 0x00003457, 0x00003451, 0x00003456, 0x00050085, 0x00000006, 0x0000345e, + 0x0000344e, 0x00003269, 0x00050085, 0x00000006, 0x00003463, 0x00003453, 0x00002d33, 0x00050081, + 0x00000006, 0x00003464, 0x0000345e, 0x00003463, 0x00050050, 0x0000000c, 0x00004700, 0x00003457, + 0x00003464, 0x00050085, 0x0000000c, 0x00003468, 0x00004700, 0x00002d52, 0x00050051, 0x00000006, + 0x0000346a, 0x00003468, 0x00000000, 0x00050085, 0x00000006, 0x0000346d, 0x0000346a, 0x0000346a, + 0x00050051, 0x00000006, 0x0000346f, 0x00003468, 0x00000001, 0x00050085, 0x00000006, 0x00003472, + 0x0000346f, 0x0000346f, 0x00050081, 0x00000006, 0x00003473, 0x0000346d, 0x00003472, 0x0007000c, + 0x00000006, 0x00003476, 0x00000001, 0x00000025, 0x00003473, 0x00003235, 0x00050085, 0x00000006, + 0x00003479, 0x000001f9, 0x00003476, 0x00050081, 0x00000006, 0x0000347b, 0x00003479, 0x0000015c, + 0x00050085, 0x00000006, 0x0000347e, 0x00002d57, 0x00003476, 0x00050081, 0x00000006, 0x00003480, + 0x0000347e, 0x0000015c, 0x00050085, 0x00000006, 0x00003483, 0x0000347b, 0x0000347b, 0x00050085, + 0x00000006, 0x00003486, 0x00003480, 0x00003480, 0x00050085, 0x00000006, 0x00003489, 0x0000020e, + 0x00003483, 0x00050081, 0x00000006, 0x0000348b, 0x00003489, 0x00000213, 0x00050085, 0x00000006, + 0x0000348e, 0x0000348b, 0x00003486, 0x0005008e, 0x00000011, 0x00003491, 0x00002dfa, 0x0000348e, + 0x00050081, 0x00000011, 0x00003493, 0x0000342f, 0x00003491, 0x00050081, 0x00000006, 0x00003496, + 0x00003432, 0x0000348e, 0x00050083, 0x0000000c, 0x00002e05, 0x00000511, 0x00002c70, 0x00050051, + 0x00000006, 0x000034b2, 0x00002e05, 0x00000000, 0x00050085, 0x00000006, 0x000034b5, 0x000034b2, + 0x00002d33, 0x00050051, 0x00000006, 0x000034b7, 0x00002e05, 0x00000001, 0x00050085, 0x00000006, + 0x000034ba, 0x000034b7, 0x00002d38, 0x00050081, 0x00000006, 0x000034bb, 0x000034b5, 0x000034ba, + 0x00050085, 0x00000006, 0x000034c2, 0x000034b2, 0x00003269, 0x00050085, 0x00000006, 0x000034c7, + 0x000034b7, 0x00002d33, 0x00050081, 0x00000006, 0x000034c8, 0x000034c2, 0x000034c7, 0x00050050, + 0x0000000c, 0x00004701, 0x000034bb, 0x000034c8, 0x00050085, 0x0000000c, 0x000034cc, 0x00004701, + 0x00002d52, 0x00050051, 0x00000006, 0x000034ce, 0x000034cc, 0x00000000, 0x00050085, 0x00000006, + 0x000034d1, 0x000034ce, 0x000034ce, 0x00050051, 0x00000006, 0x000034d3, 0x000034cc, 0x00000001, + 0x00050085, 0x00000006, 0x000034d6, 0x000034d3, 0x000034d3, 0x00050081, 0x00000006, 0x000034d7, + 0x000034d1, 0x000034d6, 0x0007000c, 0x00000006, 0x000034da, 0x00000001, 0x00000025, 0x000034d7, + 0x00003235, 0x00050085, 0x00000006, 0x000034dd, 0x000001f9, 0x000034da, 0x00050081, 0x00000006, + 0x000034df, 0x000034dd, 0x0000015c, 0x00050085, 0x00000006, 0x000034e2, 0x00002d57, 0x000034da, + 0x00050081, 0x00000006, 0x000034e4, 0x000034e2, 0x0000015c, 0x00050085, 0x00000006, 0x000034e7, + 0x000034df, 0x000034df, 0x00050085, 0x00000006, 0x000034ea, 0x000034e4, 0x000034e4, 0x00050085, + 0x00000006, 0x000034ed, 0x0000020e, 0x000034e7, 0x00050081, 0x00000006, 0x000034ef, 0x000034ed, + 0x00000213, 0x00050085, 0x00000006, 0x000034f2, 0x000034ef, 0x000034ea, 0x0005008e, 0x00000011, + 0x000034f5, 0x00002d76, 0x000034f2, 0x00050081, 0x00000011, 0x000034f7, 0x00003493, 0x000034f5, + 0x00050081, 0x00000006, 0x000034fa, 0x00003496, 0x000034f2, 0x00050083, 0x0000000c, 0x00002e17, + 0x0000052c, 0x00002c70, 0x00050051, 0x00000006, 0x00002e19, 0x00002e9b, 0x00000001, 0x00050051, + 0x00000006, 0x00002e1b, 0x00002ea0, 0x00000001, 0x00050051, 0x00000006, 0x00002e1d, 0x00002ea5, + 0x00000001, 0x00060050, 0x00000011, 0x00002e1e, 0x00002e19, 0x00002e1b, 0x00002e1d, 0x00050051, + 0x00000006, 0x00003516, 0x00002e17, 0x00000000, 0x00050085, 0x00000006, 0x00003519, 0x00003516, + 0x00002d33, 0x00050051, 0x00000006, 0x0000351b, 0x00002e17, 0x00000001, 0x00050085, 0x00000006, + 0x0000351e, 0x0000351b, 0x00002d38, 0x00050081, 0x00000006, 0x0000351f, 0x00003519, 0x0000351e, + 0x00050085, 0x00000006, 0x00003526, 0x00003516, 0x00003269, 0x00050085, 0x00000006, 0x0000352b, + 0x0000351b, 0x00002d33, 0x00050081, 0x00000006, 0x0000352c, 0x00003526, 0x0000352b, 0x00050050, + 0x0000000c, 0x00004702, 0x0000351f, 0x0000352c, 0x00050085, 0x0000000c, 0x00003530, 0x00004702, + 0x00002d52, 0x00050051, 0x00000006, 0x00003532, 0x00003530, 0x00000000, 0x00050085, 0x00000006, + 0x00003535, 0x00003532, 0x00003532, 0x00050051, 0x00000006, 0x00003537, 0x00003530, 0x00000001, + 0x00050085, 0x00000006, 0x0000353a, 0x00003537, 0x00003537, 0x00050081, 0x00000006, 0x0000353b, + 0x00003535, 0x0000353a, 0x0007000c, 0x00000006, 0x0000353e, 0x00000001, 0x00000025, 0x0000353b, + 0x00003235, 0x00050085, 0x00000006, 0x00003541, 0x000001f9, 0x0000353e, 0x00050081, 0x00000006, + 0x00003543, 0x00003541, 0x0000015c, 0x00050085, 0x00000006, 0x00003546, 0x00002d57, 0x0000353e, + 0x00050081, 0x00000006, 0x00003548, 0x00003546, 0x0000015c, 0x00050085, 0x00000006, 0x0000354b, + 0x00003543, 0x00003543, 0x00050085, 0x00000006, 0x0000354e, 0x00003548, 0x00003548, 0x00050085, + 0x00000006, 0x00003551, 0x0000020e, 0x0000354b, 0x00050081, 0x00000006, 0x00003553, 0x00003551, + 0x00000213, 0x00050085, 0x00000006, 0x00003556, 0x00003553, 0x0000354e, 0x0005008e, 0x00000011, + 0x00003559, 0x00002e1e, 0x00003556, 0x00050081, 0x00000011, 0x0000355b, 0x000034f7, 0x00003559, + 0x00050081, 0x00000006, 0x0000355e, 0x000034fa, 0x00003556, 0x00050083, 0x0000000c, 0x00002e29, + 0x00000547, 0x00002c70, 0x00050051, 0x00000006, 0x00002e2b, 0x00002e9b, 0x00000002, 0x00050051, + 0x00000006, 0x00002e2d, 0x00002ea0, 0x00000002, 0x00050051, 0x00000006, 0x00002e2f, 0x00002ea5, + 0x00000002, 0x00060050, 0x00000011, 0x00002e30, 0x00002e2b, 0x00002e2d, 0x00002e2f, 0x00050051, + 0x00000006, 0x0000357a, 0x00002e29, 0x00000000, 0x00050085, 0x00000006, 0x0000357d, 0x0000357a, + 0x00002d33, 0x00050051, 0x00000006, 0x0000357f, 0x00002e29, 0x00000001, 0x00050085, 0x00000006, + 0x00003582, 0x0000357f, 0x00002d38, 0x00050081, 0x00000006, 0x00003583, 0x0000357d, 0x00003582, + 0x00050085, 0x00000006, 0x0000358a, 0x0000357a, 0x00003269, 0x00050085, 0x00000006, 0x0000358f, + 0x0000357f, 0x00002d33, 0x00050081, 0x00000006, 0x00003590, 0x0000358a, 0x0000358f, 0x00050050, + 0x0000000c, 0x00004703, 0x00003583, 0x00003590, 0x00050085, 0x0000000c, 0x00003594, 0x00004703, + 0x00002d52, 0x00050051, 0x00000006, 0x00003596, 0x00003594, 0x00000000, 0x00050085, 0x00000006, + 0x00003599, 0x00003596, 0x00003596, 0x00050051, 0x00000006, 0x0000359b, 0x00003594, 0x00000001, + 0x00050085, 0x00000006, 0x0000359e, 0x0000359b, 0x0000359b, 0x00050081, 0x00000006, 0x0000359f, + 0x00003599, 0x0000359e, 0x0007000c, 0x00000006, 0x000035a2, 0x00000001, 0x00000025, 0x0000359f, + 0x00003235, 0x00050085, 0x00000006, 0x000035a5, 0x000001f9, 0x000035a2, 0x00050081, 0x00000006, + 0x000035a7, 0x000035a5, 0x0000015c, 0x00050085, 0x00000006, 0x000035aa, 0x00002d57, 0x000035a2, + 0x00050081, 0x00000006, 0x000035ac, 0x000035aa, 0x0000015c, 0x00050085, 0x00000006, 0x000035af, + 0x000035a7, 0x000035a7, 0x00050085, 0x00000006, 0x000035b2, 0x000035ac, 0x000035ac, 0x00050085, + 0x00000006, 0x000035b5, 0x0000020e, 0x000035af, 0x00050081, 0x00000006, 0x000035b7, 0x000035b5, + 0x00000213, 0x00050085, 0x00000006, 0x000035ba, 0x000035b7, 0x000035b2, 0x0005008e, 0x00000011, + 0x000035bd, 0x00002e30, 0x000035ba, 0x00050081, 0x00000011, 0x000035bf, 0x0000355b, 0x000035bd, + 0x00050081, 0x00000006, 0x000035c2, 0x0000355e, 0x000035ba, 0x00050083, 0x0000000c, 0x00002e3b, + 0x00000562, 0x00002c70, 0x00050051, 0x00000006, 0x000035de, 0x00002e3b, 0x00000000, 0x00050085, + 0x00000006, 0x000035e1, 0x000035de, 0x00002d33, 0x00050051, 0x00000006, 0x000035e3, 0x00002e3b, + 0x00000001, 0x00050085, 0x00000006, 0x000035e6, 0x000035e3, 0x00002d38, 0x00050081, 0x00000006, + 0x000035e7, 0x000035e1, 0x000035e6, 0x00050085, 0x00000006, 0x000035ee, 0x000035de, 0x00003269, + 0x00050085, 0x00000006, 0x000035f3, 0x000035e3, 0x00002d33, 0x00050081, 0x00000006, 0x000035f4, + 0x000035ee, 0x000035f3, 0x00050050, 0x0000000c, 0x00004704, 0x000035e7, 0x000035f4, 0x00050085, + 0x0000000c, 0x000035f8, 0x00004704, 0x00002d52, 0x00050051, 0x00000006, 0x000035fa, 0x000035f8, + 0x00000000, 0x00050085, 0x00000006, 0x000035fd, 0x000035fa, 0x000035fa, 0x00050051, 0x00000006, + 0x000035ff, 0x000035f8, 0x00000001, 0x00050085, 0x00000006, 0x00003602, 0x000035ff, 0x000035ff, + 0x00050081, 0x00000006, 0x00003603, 0x000035fd, 0x00003602, 0x0007000c, 0x00000006, 0x00003606, + 0x00000001, 0x00000025, 0x00003603, 0x00003235, 0x00050085, 0x00000006, 0x00003609, 0x000001f9, + 0x00003606, 0x00050081, 0x00000006, 0x0000360b, 0x00003609, 0x0000015c, 0x00050085, 0x00000006, + 0x0000360e, 0x00002d57, 0x00003606, 0x00050081, 0x00000006, 0x00003610, 0x0000360e, 0x0000015c, + 0x00050085, 0x00000006, 0x00003613, 0x0000360b, 0x0000360b, 0x00050085, 0x00000006, 0x00003616, + 0x00003610, 0x00003610, 0x00050085, 0x00000006, 0x00003619, 0x0000020e, 0x00003613, 0x00050081, + 0x00000006, 0x0000361b, 0x00003619, 0x00000213, 0x00050085, 0x00000006, 0x0000361e, 0x0000361b, + 0x00003616, 0x0005008e, 0x00000011, 0x00003621, 0x00002d67, 0x0000361e, 0x00050081, 0x00000011, + 0x00003623, 0x000035bf, 0x00003621, 0x00050081, 0x00000006, 0x00003626, 0x000035c2, 0x0000361e, + 0x00050083, 0x0000000c, 0x00002e4d, 0x0000057d, 0x00002c70, 0x00050051, 0x00000006, 0x00002e4f, + 0x00002eaa, 0x00000002, 0x00050051, 0x00000006, 0x00002e51, 0x00002eaf, 0x00000002, 0x00050051, + 0x00000006, 0x00002e53, 0x00002eb4, 0x00000002, 0x00060050, 0x00000011, 0x00002e54, 0x00002e4f, + 0x00002e51, 0x00002e53, 0x00050051, 0x00000006, 0x00003642, 0x00002e4d, 0x00000000, 0x00050085, + 0x00000006, 0x00003645, 0x00003642, 0x00002d33, 0x00050051, 0x00000006, 0x00003647, 0x00002e4d, + 0x00000001, 0x00050085, 0x00000006, 0x0000364a, 0x00003647, 0x00002d38, 0x00050081, 0x00000006, + 0x0000364b, 0x00003645, 0x0000364a, 0x00050085, 0x00000006, 0x00003652, 0x00003642, 0x00003269, + 0x00050085, 0x00000006, 0x00003657, 0x00003647, 0x00002d33, 0x00050081, 0x00000006, 0x00003658, + 0x00003652, 0x00003657, 0x00050050, 0x0000000c, 0x00004705, 0x0000364b, 0x00003658, 0x00050085, + 0x0000000c, 0x0000365c, 0x00004705, 0x00002d52, 0x00050051, 0x00000006, 0x0000365e, 0x0000365c, + 0x00000000, 0x00050085, 0x00000006, 0x00003661, 0x0000365e, 0x0000365e, 0x00050051, 0x00000006, + 0x00003663, 0x0000365c, 0x00000001, 0x00050085, 0x00000006, 0x00003666, 0x00003663, 0x00003663, + 0x00050081, 0x00000006, 0x00003667, 0x00003661, 0x00003666, 0x0007000c, 0x00000006, 0x0000366a, + 0x00000001, 0x00000025, 0x00003667, 0x00003235, 0x00050085, 0x00000006, 0x0000366d, 0x000001f9, + 0x0000366a, 0x00050081, 0x00000006, 0x0000366f, 0x0000366d, 0x0000015c, 0x00050085, 0x00000006, + 0x00003672, 0x00002d57, 0x0000366a, 0x00050081, 0x00000006, 0x00003674, 0x00003672, 0x0000015c, + 0x00050085, 0x00000006, 0x00003677, 0x0000366f, 0x0000366f, 0x00050085, 0x00000006, 0x0000367a, + 0x00003674, 0x00003674, 0x00050085, 0x00000006, 0x0000367d, 0x0000020e, 0x00003677, 0x00050081, + 0x00000006, 0x0000367f, 0x0000367d, 0x00000213, 0x00050085, 0x00000006, 0x00003682, 0x0000367f, + 0x0000367a, 0x0005008e, 0x00000011, 0x00003685, 0x00002e54, 0x00003682, 0x00050081, 0x00000011, + 0x00003687, 0x00003623, 0x00003685, 0x00050081, 0x00000006, 0x0000368a, 0x00003626, 0x00003682, + 0x00050083, 0x0000000c, 0x00002e5f, 0x00000598, 0x00002c70, 0x00050051, 0x00000006, 0x00002e61, + 0x00002eaa, 0x00000003, 0x00050051, 0x00000006, 0x00002e63, 0x00002eaf, 0x00000003, 0x00050051, + 0x00000006, 0x00002e65, 0x00002eb4, 0x00000003, 0x00060050, 0x00000011, 0x00002e66, 0x00002e61, + 0x00002e63, 0x00002e65, 0x00050051, 0x00000006, 0x000036a6, 0x00002e5f, 0x00000000, 0x00050085, + 0x00000006, 0x000036a9, 0x000036a6, 0x00002d33, 0x00050051, 0x00000006, 0x000036ab, 0x00002e5f, + 0x00000001, 0x00050085, 0x00000006, 0x000036ae, 0x000036ab, 0x00002d38, 0x00050081, 0x00000006, + 0x000036af, 0x000036a9, 0x000036ae, 0x00050085, 0x00000006, 0x000036b6, 0x000036a6, 0x00003269, + 0x00050085, 0x00000006, 0x000036bb, 0x000036ab, 0x00002d33, 0x00050081, 0x00000006, 0x000036bc, + 0x000036b6, 0x000036bb, 0x00050050, 0x0000000c, 0x00004706, 0x000036af, 0x000036bc, 0x00050085, + 0x0000000c, 0x000036c0, 0x00004706, 0x00002d52, 0x00050051, 0x00000006, 0x000036c2, 0x000036c0, + 0x00000000, 0x00050085, 0x00000006, 0x000036c5, 0x000036c2, 0x000036c2, 0x00050051, 0x00000006, + 0x000036c7, 0x000036c0, 0x00000001, 0x00050085, 0x00000006, 0x000036ca, 0x000036c7, 0x000036c7, + 0x00050081, 0x00000006, 0x000036cb, 0x000036c5, 0x000036ca, 0x0007000c, 0x00000006, 0x000036ce, + 0x00000001, 0x00000025, 0x000036cb, 0x00003235, 0x00050085, 0x00000006, 0x000036d1, 0x000001f9, + 0x000036ce, 0x00050081, 0x00000006, 0x000036d3, 0x000036d1, 0x0000015c, 0x00050085, 0x00000006, + 0x000036d6, 0x00002d57, 0x000036ce, 0x00050081, 0x00000006, 0x000036d8, 0x000036d6, 0x0000015c, + 0x00050085, 0x00000006, 0x000036db, 0x000036d3, 0x000036d3, 0x00050085, 0x00000006, 0x000036de, + 0x000036d8, 0x000036d8, 0x00050085, 0x00000006, 0x000036e1, 0x0000020e, 0x000036db, 0x00050081, + 0x00000006, 0x000036e3, 0x000036e1, 0x00000213, 0x00050085, 0x00000006, 0x000036e6, 0x000036e3, + 0x000036de, 0x0005008e, 0x00000011, 0x000036e9, 0x00002e66, 0x000036e6, 0x00050081, 0x00000011, + 0x000036eb, 0x00003687, 0x000036e9, 0x00050081, 0x00000006, 0x000036ee, 0x0000368a, 0x000036e6, + 0x00050088, 0x00000006, 0x00003703, 0x000000d1, 0x000036ee, 0x00060050, 0x00000011, 0x0000370a, + 0x00003703, 0x00003703, 0x00003703, 0x00050085, 0x00000011, 0x00002e76, 0x000036eb, 0x0000370a, + 0x0007000c, 0x00000011, 0x00002e77, 0x00000001, 0x00000028, 0x00002d77, 0x00002e76, 0x0007000c, + 0x00000011, 0x00002e78, 0x00000001, 0x00000025, 0x00002d95, 0x00002e77, 0x0004003d, 0x000005e3, + 0x00002b69, 0x000005e5, 0x0004007c, 0x000005e8, 0x00002b6b, 0x00003b1e, 0x00050051, 0x00000006, + 0x00002b6d, 0x00002e78, 0x00000000, 0x00050051, 0x00000006, 0x00002b6e, 0x00002e78, 0x00000001, + 0x00050051, 0x00000006, 0x00002b6f, 0x00002e78, 0x00000002, 0x00070050, 0x00000016, 0x00002b70, + 0x00002b6d, 0x00002b6e, 0x00002b6f, 0x000000d1, 0x00040063, 0x00002b69, 0x00002b6b, 0x00002b70, + 0x000200f9, 0x00002b71, 0x000200f8, 0x00002b71, 0x000100fd, 0x00010038, +}; diff --git a/runtime/fsr_rcas_spv.h b/runtime/fsr_rcas_spv.h new file mode 100644 index 00000000..3f27e778 --- /dev/null +++ b/runtime/fsr_rcas_spv.h @@ -0,0 +1,424 @@ +// Generated by tools/build_shaders.py from runtime/shaders/fsr_rcas.comp; do not edit. +// source sha256 6ea46d4c41d9b70c0fffb44b34b812476b6aa6a840f86f941d106d4f05d48ce0 +#pragma once +#include +static const uint32_t fsr_rcas_spv[] = { + 0x07230203, 0x00010300, 0x000d000b, 0x00001186, 0x00000000, 0x00020011, 0x00000001, 0x0006000b, + 0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001, + 0x0007000f, 0x00000005, 0x00000004, 0x6e69616d, 0x00000000, 0x0000030c, 0x00000312, 0x00060010, + 0x00000004, 0x00000011, 0x00000040, 0x00000001, 0x00000001, 0x00040047, 0x000000b8, 0x00000021, + 0x00000000, 0x00040047, 0x000000b8, 0x00000022, 0x00000000, 0x00030047, 0x000002d3, 0x00000002, + 0x00050048, 0x000002d3, 0x00000000, 0x00000023, 0x00000000, 0x00030047, 0x000002f9, 0x00000019, + 0x00040047, 0x000002f9, 0x00000021, 0x00000001, 0x00040047, 0x000002f9, 0x00000022, 0x00000000, + 0x00040047, 0x0000030c, 0x0000000b, 0x0000001b, 0x00040047, 0x00000312, 0x0000000b, 0x0000001a, + 0x00040047, 0x0000033e, 0x0000000b, 0x00000019, 0x00020013, 0x00000002, 0x00030021, 0x00000003, + 0x00000002, 0x00030016, 0x00000006, 0x00000020, 0x00040015, 0x0000000c, 0x00000020, 0x00000000, + 0x00040017, 0x00000031, 0x0000000c, 0x00000002, 0x00040015, 0x00000036, 0x00000020, 0x00000001, + 0x00040017, 0x00000037, 0x00000036, 0x00000002, 0x00040017, 0x00000039, 0x00000006, 0x00000004, + 0x0004002b, 0x00000036, 0x00000069, 0x00000000, 0x0004002b, 0x00000006, 0x0000007d, 0x3f800000, + 0x0004002b, 0x00000006, 0x00000085, 0x00000000, 0x0004002b, 0x0000000c, 0x0000008e, 0x7ef19fff, + 0x0004002b, 0x00000006, 0x0000009a, 0x40000000, 0x0004002b, 0x0000000c, 0x000000a1, 0x00000001, + 0x00090019, 0x000000b5, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, + 0x00000000, 0x0003001b, 0x000000b6, 0x000000b5, 0x00040020, 0x000000b7, 0x00000000, 0x000000b6, + 0x0004003b, 0x000000b7, 0x000000b8, 0x00000000, 0x0004002b, 0x0000000c, 0x000000c9, 0x00000000, + 0x0004002b, 0x0000000c, 0x000000ce, 0x00000002, 0x0004002b, 0x00000036, 0x000000d8, 0xffffffff, + 0x0005002c, 0x00000037, 0x000000d9, 0x00000069, 0x000000d8, 0x0005002c, 0x00000037, 0x000000e0, + 0x000000d8, 0x00000069, 0x0004002b, 0x00000036, 0x000000ec, 0x00000001, 0x0005002c, 0x00000037, + 0x000000ed, 0x000000ec, 0x00000069, 0x0005002c, 0x00000037, 0x000000f4, 0x00000069, 0x000000ec, + 0x0004002b, 0x00000006, 0x00000213, 0xc0800000, 0x0004002b, 0x00000006, 0x00000219, 0x40800000, + 0x0004002b, 0x00000006, 0x0000027a, 0xbe400000, 0x00020014, 0x000002d0, 0x0003001e, 0x000002d3, + 0x00000039, 0x00040020, 0x000002d4, 0x00000009, 0x000002d3, 0x0004003b, 0x000002d4, 0x000002d5, + 0x00000009, 0x00040020, 0x000002d6, 0x00000009, 0x00000006, 0x00090019, 0x000002f7, 0x00000006, + 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000002, 0x00040020, 0x000002f8, + 0x00000000, 0x000002f7, 0x0004003b, 0x000002f8, 0x000002f9, 0x00000000, 0x00040017, 0x0000030a, + 0x0000000c, 0x00000003, 0x00040020, 0x0000030b, 0x00000001, 0x0000030a, 0x0004003b, 0x0000030b, + 0x0000030c, 0x00000001, 0x00040020, 0x0000030e, 0x00000001, 0x0000000c, 0x0004003b, 0x0000030b, + 0x00000312, 0x00000001, 0x0004002b, 0x0000000c, 0x00000315, 0x00000004, 0x0004002b, 0x0000000c, + 0x00000321, 0x00000008, 0x0004002b, 0x0000000c, 0x0000033d, 0x00000040, 0x0006002c, 0x0000030a, + 0x0000033e, 0x0000033d, 0x000000a1, 0x000000a1, 0x0004002b, 0x00000036, 0x0000115c, 0x00000003, + 0x0004002b, 0x00000006, 0x0000115d, 0x3e800000, 0x00050036, 0x00000002, 0x00000004, 0x00000000, + 0x00000003, 0x000200f8, 0x00000005, 0x00060041, 0x000002d6, 0x00000305, 0x000002d5, 0x00000069, + 0x000000ce, 0x0004003d, 0x00000006, 0x00000306, 0x00000305, 0x0004007f, 0x00000006, 0x00000348, + 0x00000306, 0x0006000c, 0x00000006, 0x00000349, 0x00000001, 0x0000001d, 0x00000348, 0x00050041, + 0x0000030e, 0x0000030f, 0x0000030c, 0x000000c9, 0x0004003d, 0x0000000c, 0x00000310, 0x0000030f, + 0x000600cb, 0x0000000c, 0x0000036d, 0x00000310, 0x000000ec, 0x0000115c, 0x000600cb, 0x0000000c, + 0x00000375, 0x00000310, 0x0000115c, 0x0000115c, 0x000700c9, 0x0000000c, 0x0000037c, 0x00000375, + 0x00000310, 0x00000069, 0x000000ec, 0x00050050, 0x00000031, 0x00000365, 0x0000036d, 0x0000037c, + 0x00050041, 0x0000030e, 0x00000313, 0x00000312, 0x000000c9, 0x0004003d, 0x0000000c, 0x00000314, + 0x00000313, 0x000500c4, 0x0000000c, 0x00000316, 0x00000314, 0x00000315, 0x00050041, 0x0000030e, + 0x00000317, 0x00000312, 0x000000a1, 0x0004003d, 0x0000000c, 0x00000318, 0x00000317, 0x000500c4, + 0x0000000c, 0x00000319, 0x00000318, 0x00000315, 0x00050050, 0x00000031, 0x0000031a, 0x00000316, + 0x00000319, 0x00050080, 0x00000031, 0x0000031b, 0x00000365, 0x0000031a, 0x000300f7, 0x000003a9, + 0x00000000, 0x000300fb, 0x000000c9, 0x00000385, 0x000200f8, 0x00000385, 0x00050051, 0x0000000c, + 0x00000387, 0x0000031b, 0x00000000, 0x00060041, 0x000002d6, 0x00000388, 0x000002d5, 0x00000069, + 0x000000c9, 0x0004003d, 0x00000006, 0x00000389, 0x00000388, 0x0004006d, 0x0000000c, 0x0000038a, + 0x00000389, 0x000500ae, 0x000002d0, 0x0000038b, 0x00000387, 0x0000038a, 0x000400a8, 0x000002d0, + 0x0000038c, 0x0000038b, 0x000300f7, 0x00000394, 0x00000000, 0x000400fa, 0x0000038c, 0x0000038d, + 0x00000394, 0x000200f8, 0x0000038d, 0x00050051, 0x0000000c, 0x0000038f, 0x0000031b, 0x00000001, + 0x00060041, 0x000002d6, 0x00000390, 0x000002d5, 0x00000069, 0x000000a1, 0x0004003d, 0x00000006, + 0x00000391, 0x00000390, 0x0004006d, 0x0000000c, 0x00000392, 0x00000391, 0x000500ae, 0x000002d0, + 0x00000393, 0x0000038f, 0x00000392, 0x000200f9, 0x00000394, 0x000200f8, 0x00000394, 0x000700f5, + 0x000002d0, 0x00000395, 0x0000038b, 0x00000385, 0x00000393, 0x0000038d, 0x000300f7, 0x00000397, + 0x00000000, 0x000400fa, 0x00000395, 0x00000396, 0x00000397, 0x000200f8, 0x00000396, 0x000200f9, + 0x000003a9, 0x000200f8, 0x00000397, 0x0004007c, 0x00000037, 0x00000431, 0x0000031b, 0x00050080, + 0x00000037, 0x00000433, 0x00000431, 0x000000d9, 0x0004003d, 0x000000b6, 0x0000059d, 0x000000b8, + 0x00040064, 0x000000b5, 0x0000059f, 0x0000059d, 0x0007005f, 0x00000039, 0x000005a0, 0x0000059f, + 0x00000433, 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x00000437, 0x00000431, 0x000000e0, + 0x0004003d, 0x000000b6, 0x000005a3, 0x000000b8, 0x00040064, 0x000000b5, 0x000005a5, 0x000005a3, + 0x0007005f, 0x00000039, 0x000005a6, 0x000005a5, 0x00000437, 0x00000002, 0x00000069, 0x0004003d, + 0x000000b6, 0x000005a9, 0x000000b8, 0x00040064, 0x000000b5, 0x000005ab, 0x000005a9, 0x0007005f, + 0x00000039, 0x000005ac, 0x000005ab, 0x00000431, 0x00000002, 0x00000069, 0x00050080, 0x00000037, + 0x0000043e, 0x00000431, 0x000000ed, 0x0004003d, 0x000000b6, 0x000005af, 0x000000b8, 0x00040064, + 0x000000b5, 0x000005b1, 0x000005af, 0x0007005f, 0x00000039, 0x000005b2, 0x000005b1, 0x0000043e, + 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x00000442, 0x00000431, 0x000000f4, 0x0004003d, + 0x000000b6, 0x000005b5, 0x000000b8, 0x00040064, 0x000000b5, 0x000005b7, 0x000005b5, 0x0007005f, + 0x00000039, 0x000005b8, 0x000005b7, 0x00000442, 0x00000002, 0x00000069, 0x00050051, 0x00000006, + 0x00000446, 0x000005a0, 0x00000000, 0x00050051, 0x00000006, 0x00000448, 0x000005a0, 0x00000001, + 0x00050051, 0x00000006, 0x0000044a, 0x000005a0, 0x00000002, 0x00050051, 0x00000006, 0x0000044c, + 0x000005a6, 0x00000000, 0x00050051, 0x00000006, 0x0000044e, 0x000005a6, 0x00000001, 0x00050051, + 0x00000006, 0x00000450, 0x000005a6, 0x00000002, 0x00050051, 0x00000006, 0x00000452, 0x000005ac, + 0x00000000, 0x00050051, 0x00000006, 0x00000454, 0x000005ac, 0x00000001, 0x00050051, 0x00000006, + 0x00000456, 0x000005ac, 0x00000002, 0x00050051, 0x00000006, 0x00000458, 0x000005b2, 0x00000000, + 0x00050051, 0x00000006, 0x0000045a, 0x000005b2, 0x00000001, 0x00050051, 0x00000006, 0x0000045c, + 0x000005b2, 0x00000002, 0x00050051, 0x00000006, 0x0000045e, 0x000005b8, 0x00000000, 0x00050051, + 0x00000006, 0x00000460, 0x000005b8, 0x00000001, 0x00050051, 0x00000006, 0x00000462, 0x000005b8, + 0x00000002, 0x0007000c, 0x00000006, 0x00000635, 0x00000001, 0x00000025, 0x0000044c, 0x00000458, + 0x0007000c, 0x00000006, 0x00000636, 0x00000001, 0x00000025, 0x00000446, 0x00000635, 0x0007000c, + 0x00000006, 0x000004e2, 0x00000001, 0x00000025, 0x00000636, 0x0000045e, 0x0007000c, 0x00000006, + 0x0000063c, 0x00000001, 0x00000025, 0x0000044e, 0x0000045a, 0x0007000c, 0x00000006, 0x0000063d, + 0x00000001, 0x00000025, 0x00000448, 0x0000063c, 0x0007000c, 0x00000006, 0x000004e8, 0x00000001, + 0x00000025, 0x0000063d, 0x00000460, 0x0007000c, 0x00000006, 0x00000643, 0x00000001, 0x00000025, + 0x00000450, 0x0000045c, 0x0007000c, 0x00000006, 0x00000644, 0x00000001, 0x00000025, 0x0000044a, + 0x00000643, 0x0007000c, 0x00000006, 0x000004ee, 0x00000001, 0x00000025, 0x00000644, 0x00000462, + 0x0007000c, 0x00000006, 0x0000064a, 0x00000001, 0x00000028, 0x0000044c, 0x00000458, 0x0007000c, + 0x00000006, 0x0000064b, 0x00000001, 0x00000028, 0x00000446, 0x0000064a, 0x0007000c, 0x00000006, + 0x000004f4, 0x00000001, 0x00000028, 0x0000064b, 0x0000045e, 0x0007000c, 0x00000006, 0x00000651, + 0x00000001, 0x00000028, 0x0000044e, 0x0000045a, 0x0007000c, 0x00000006, 0x00000652, 0x00000001, + 0x00000028, 0x00000448, 0x00000651, 0x0007000c, 0x00000006, 0x000004fa, 0x00000001, 0x00000028, + 0x00000652, 0x00000460, 0x0007000c, 0x00000006, 0x00000658, 0x00000001, 0x00000028, 0x00000450, + 0x0000045c, 0x0007000c, 0x00000006, 0x00000659, 0x00000001, 0x00000028, 0x0000044a, 0x00000658, + 0x0007000c, 0x00000006, 0x00000500, 0x00000001, 0x00000028, 0x00000659, 0x00000462, 0x0007000c, + 0x00000006, 0x00000503, 0x00000001, 0x00000025, 0x000004e2, 0x00000452, 0x00050088, 0x00000006, + 0x00000662, 0x0000115d, 0x000004f4, 0x00050085, 0x00000006, 0x00000508, 0x00000503, 0x00000662, + 0x0007000c, 0x00000006, 0x0000050b, 0x00000001, 0x00000025, 0x000004e8, 0x00000454, 0x00050088, + 0x00000006, 0x0000066e, 0x0000115d, 0x000004fa, 0x00050085, 0x00000006, 0x00000510, 0x0000050b, + 0x0000066e, 0x0007000c, 0x00000006, 0x00000513, 0x00000001, 0x00000025, 0x000004ee, 0x00000456, + 0x00050088, 0x00000006, 0x0000067a, 0x0000115d, 0x00000500, 0x00050085, 0x00000006, 0x00000518, + 0x00000513, 0x0000067a, 0x0007000c, 0x00000006, 0x0000051d, 0x00000001, 0x00000028, 0x000004f4, + 0x00000452, 0x00050083, 0x00000006, 0x0000051e, 0x0000007d, 0x0000051d, 0x00050085, 0x00000006, + 0x00000521, 0x00000219, 0x000004e2, 0x00050081, 0x00000006, 0x00000524, 0x00000521, 0x00000213, + 0x00050088, 0x00000006, 0x00000686, 0x0000007d, 0x00000524, 0x00050085, 0x00000006, 0x00000526, + 0x0000051e, 0x00000686, 0x0007000c, 0x00000006, 0x0000052b, 0x00000001, 0x00000028, 0x000004fa, + 0x00000454, 0x00050083, 0x00000006, 0x0000052c, 0x0000007d, 0x0000052b, 0x00050085, 0x00000006, + 0x0000052f, 0x00000219, 0x000004e8, 0x00050081, 0x00000006, 0x00000532, 0x0000052f, 0x00000213, + 0x00050088, 0x00000006, 0x00000692, 0x0000007d, 0x00000532, 0x00050085, 0x00000006, 0x00000534, + 0x0000052c, 0x00000692, 0x0007000c, 0x00000006, 0x00000539, 0x00000001, 0x00000028, 0x00000500, + 0x00000456, 0x00050083, 0x00000006, 0x0000053a, 0x0000007d, 0x00000539, 0x00050085, 0x00000006, + 0x0000053d, 0x00000219, 0x000004ee, 0x00050081, 0x00000006, 0x00000540, 0x0000053d, 0x00000213, + 0x00050088, 0x00000006, 0x0000069e, 0x0000007d, 0x00000540, 0x00050085, 0x00000006, 0x00000542, + 0x0000053a, 0x0000069e, 0x0004007f, 0x00000006, 0x00000544, 0x00000508, 0x0007000c, 0x00000006, + 0x00000546, 0x00000001, 0x00000028, 0x00000544, 0x00000526, 0x0004007f, 0x00000006, 0x00000548, + 0x00000510, 0x0007000c, 0x00000006, 0x0000054a, 0x00000001, 0x00000028, 0x00000548, 0x00000534, + 0x0004007f, 0x00000006, 0x0000054c, 0x00000518, 0x0007000c, 0x00000006, 0x0000054e, 0x00000001, + 0x00000028, 0x0000054c, 0x00000542, 0x0007000c, 0x00000006, 0x000006aa, 0x00000001, 0x00000028, + 0x0000054a, 0x0000054e, 0x0007000c, 0x00000006, 0x000006ab, 0x00000001, 0x00000028, 0x00000546, + 0x000006aa, 0x0007000c, 0x00000006, 0x00000555, 0x00000001, 0x00000025, 0x000006ab, 0x00000085, + 0x0007000c, 0x00000006, 0x00000556, 0x00000001, 0x00000028, 0x0000027a, 0x00000555, 0x00050085, + 0x00000006, 0x0000055a, 0x00000556, 0x00000349, 0x00050085, 0x00000006, 0x0000055d, 0x00000219, + 0x0000055a, 0x00050081, 0x00000006, 0x0000055f, 0x0000055d, 0x0000007d, 0x0004007c, 0x0000000c, + 0x000006bc, 0x0000055f, 0x00050082, 0x0000000c, 0x000006bd, 0x0000008e, 0x000006bc, 0x0004007c, + 0x00000006, 0x000006be, 0x000006bd, 0x0004007f, 0x00000006, 0x000006c1, 0x000006be, 0x00050085, + 0x00000006, 0x000006c3, 0x000006c1, 0x0000055f, 0x00050081, 0x00000006, 0x000006c5, 0x000006c3, + 0x0000009a, 0x00050085, 0x00000006, 0x000006c6, 0x000006be, 0x000006c5, 0x00050081, 0x00000006, + 0x0000115e, 0x00000446, 0x0000044c, 0x00050081, 0x00000006, 0x0000115f, 0x0000115e, 0x0000045e, + 0x00050081, 0x00000006, 0x00001160, 0x0000115f, 0x00000458, 0x00050085, 0x00000006, 0x0000056f, + 0x0000055a, 0x00001160, 0x00050081, 0x00000006, 0x00000571, 0x0000056f, 0x00000452, 0x00050085, + 0x00000006, 0x00000573, 0x00000571, 0x000006c6, 0x00050081, 0x00000006, 0x00001161, 0x00000448, + 0x0000044e, 0x00050081, 0x00000006, 0x00001162, 0x00001161, 0x00000460, 0x00050081, 0x00000006, + 0x00001163, 0x00001162, 0x0000045a, 0x00050085, 0x00000006, 0x00000582, 0x0000055a, 0x00001163, + 0x00050081, 0x00000006, 0x00000584, 0x00000582, 0x00000454, 0x00050085, 0x00000006, 0x00000586, + 0x00000584, 0x000006c6, 0x00050081, 0x00000006, 0x00001164, 0x0000044a, 0x00000450, 0x00050081, + 0x00000006, 0x00001165, 0x00001164, 0x00000462, 0x00050081, 0x00000006, 0x00001166, 0x00001165, + 0x0000045c, 0x00050085, 0x00000006, 0x00000595, 0x0000055a, 0x00001166, 0x00050081, 0x00000006, + 0x00000597, 0x00000595, 0x00000456, 0x00050085, 0x00000006, 0x00000599, 0x00000597, 0x000006c6, + 0x0004003d, 0x000002f7, 0x000003a1, 0x000002f9, 0x00070050, 0x00000039, 0x000003a8, 0x00000573, + 0x00000586, 0x00000599, 0x0000007d, 0x00040063, 0x000003a1, 0x00000431, 0x000003a8, 0x000200f9, + 0x000003a9, 0x000200f8, 0x000003a9, 0x00050080, 0x0000000c, 0x00000324, 0x00000387, 0x00000321, + 0x00060052, 0x00000031, 0x000010e2, 0x00000324, 0x0000031b, 0x00000000, 0x000300f7, 0x000006f9, + 0x00000000, 0x000300fb, 0x000000c9, 0x000006d5, 0x000200f8, 0x000006d5, 0x000500ae, 0x000002d0, + 0x000006db, 0x00000324, 0x0000038a, 0x000400a8, 0x000002d0, 0x000006dc, 0x000006db, 0x000300f7, + 0x000006e4, 0x00000000, 0x000400fa, 0x000006dc, 0x000006dd, 0x000006e4, 0x000200f8, 0x000006dd, + 0x00050051, 0x0000000c, 0x000006df, 0x0000031b, 0x00000001, 0x00060041, 0x000002d6, 0x000006e0, + 0x000002d5, 0x00000069, 0x000000a1, 0x0004003d, 0x00000006, 0x000006e1, 0x000006e0, 0x0004006d, + 0x0000000c, 0x000006e2, 0x000006e1, 0x000500ae, 0x000002d0, 0x000006e3, 0x000006df, 0x000006e2, + 0x000200f9, 0x000006e4, 0x000200f8, 0x000006e4, 0x000700f5, 0x000002d0, 0x000006e5, 0x000006db, + 0x000006d5, 0x000006e3, 0x000006dd, 0x000300f7, 0x000006e7, 0x00000000, 0x000400fa, 0x000006e5, + 0x000006e6, 0x000006e7, 0x000200f8, 0x000006e6, 0x000200f9, 0x000006f9, 0x000200f8, 0x000006e7, + 0x0004007c, 0x00000037, 0x00000781, 0x000010e2, 0x00050080, 0x00000037, 0x00000783, 0x00000781, + 0x000000d9, 0x0004003d, 0x000000b6, 0x000008ec, 0x000000b8, 0x00040064, 0x000000b5, 0x000008ee, + 0x000008ec, 0x0007005f, 0x00000039, 0x000008ef, 0x000008ee, 0x00000783, 0x00000002, 0x00000069, + 0x00050080, 0x00000037, 0x00000787, 0x00000781, 0x000000e0, 0x0004003d, 0x000000b6, 0x000008f2, + 0x000000b8, 0x00040064, 0x000000b5, 0x000008f4, 0x000008f2, 0x0007005f, 0x00000039, 0x000008f5, + 0x000008f4, 0x00000787, 0x00000002, 0x00000069, 0x0004003d, 0x000000b6, 0x000008f8, 0x000000b8, + 0x00040064, 0x000000b5, 0x000008fa, 0x000008f8, 0x0007005f, 0x00000039, 0x000008fb, 0x000008fa, + 0x00000781, 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x0000078e, 0x00000781, 0x000000ed, + 0x0004003d, 0x000000b6, 0x000008fe, 0x000000b8, 0x00040064, 0x000000b5, 0x00000900, 0x000008fe, + 0x0007005f, 0x00000039, 0x00000901, 0x00000900, 0x0000078e, 0x00000002, 0x00000069, 0x00050080, + 0x00000037, 0x00000792, 0x00000781, 0x000000f4, 0x0004003d, 0x000000b6, 0x00000904, 0x000000b8, + 0x00040064, 0x000000b5, 0x00000906, 0x00000904, 0x0007005f, 0x00000039, 0x00000907, 0x00000906, + 0x00000792, 0x00000002, 0x00000069, 0x00050051, 0x00000006, 0x00000796, 0x000008ef, 0x00000000, + 0x00050051, 0x00000006, 0x00000798, 0x000008ef, 0x00000001, 0x00050051, 0x00000006, 0x0000079a, + 0x000008ef, 0x00000002, 0x00050051, 0x00000006, 0x0000079c, 0x000008f5, 0x00000000, 0x00050051, + 0x00000006, 0x0000079e, 0x000008f5, 0x00000001, 0x00050051, 0x00000006, 0x000007a0, 0x000008f5, + 0x00000002, 0x00050051, 0x00000006, 0x000007a2, 0x000008fb, 0x00000000, 0x00050051, 0x00000006, + 0x000007a4, 0x000008fb, 0x00000001, 0x00050051, 0x00000006, 0x000007a6, 0x000008fb, 0x00000002, + 0x00050051, 0x00000006, 0x000007a8, 0x00000901, 0x00000000, 0x00050051, 0x00000006, 0x000007aa, + 0x00000901, 0x00000001, 0x00050051, 0x00000006, 0x000007ac, 0x00000901, 0x00000002, 0x00050051, + 0x00000006, 0x000007ae, 0x00000907, 0x00000000, 0x00050051, 0x00000006, 0x000007b0, 0x00000907, + 0x00000001, 0x00050051, 0x00000006, 0x000007b2, 0x00000907, 0x00000002, 0x0007000c, 0x00000006, + 0x00000984, 0x00000001, 0x00000025, 0x0000079c, 0x000007a8, 0x0007000c, 0x00000006, 0x00000985, + 0x00000001, 0x00000025, 0x00000796, 0x00000984, 0x0007000c, 0x00000006, 0x00000832, 0x00000001, + 0x00000025, 0x00000985, 0x000007ae, 0x0007000c, 0x00000006, 0x0000098b, 0x00000001, 0x00000025, + 0x0000079e, 0x000007aa, 0x0007000c, 0x00000006, 0x0000098c, 0x00000001, 0x00000025, 0x00000798, + 0x0000098b, 0x0007000c, 0x00000006, 0x00000838, 0x00000001, 0x00000025, 0x0000098c, 0x000007b0, + 0x0007000c, 0x00000006, 0x00000992, 0x00000001, 0x00000025, 0x000007a0, 0x000007ac, 0x0007000c, + 0x00000006, 0x00000993, 0x00000001, 0x00000025, 0x0000079a, 0x00000992, 0x0007000c, 0x00000006, + 0x0000083e, 0x00000001, 0x00000025, 0x00000993, 0x000007b2, 0x0007000c, 0x00000006, 0x00000999, + 0x00000001, 0x00000028, 0x0000079c, 0x000007a8, 0x0007000c, 0x00000006, 0x0000099a, 0x00000001, + 0x00000028, 0x00000796, 0x00000999, 0x0007000c, 0x00000006, 0x00000844, 0x00000001, 0x00000028, + 0x0000099a, 0x000007ae, 0x0007000c, 0x00000006, 0x000009a0, 0x00000001, 0x00000028, 0x0000079e, + 0x000007aa, 0x0007000c, 0x00000006, 0x000009a1, 0x00000001, 0x00000028, 0x00000798, 0x000009a0, + 0x0007000c, 0x00000006, 0x0000084a, 0x00000001, 0x00000028, 0x000009a1, 0x000007b0, 0x0007000c, + 0x00000006, 0x000009a7, 0x00000001, 0x00000028, 0x000007a0, 0x000007ac, 0x0007000c, 0x00000006, + 0x000009a8, 0x00000001, 0x00000028, 0x0000079a, 0x000009a7, 0x0007000c, 0x00000006, 0x00000850, + 0x00000001, 0x00000028, 0x000009a8, 0x000007b2, 0x0007000c, 0x00000006, 0x00000853, 0x00000001, + 0x00000025, 0x00000832, 0x000007a2, 0x00050088, 0x00000006, 0x000009b1, 0x0000115d, 0x00000844, + 0x00050085, 0x00000006, 0x00000858, 0x00000853, 0x000009b1, 0x0007000c, 0x00000006, 0x0000085b, + 0x00000001, 0x00000025, 0x00000838, 0x000007a4, 0x00050088, 0x00000006, 0x000009bd, 0x0000115d, + 0x0000084a, 0x00050085, 0x00000006, 0x00000860, 0x0000085b, 0x000009bd, 0x0007000c, 0x00000006, + 0x00000863, 0x00000001, 0x00000025, 0x0000083e, 0x000007a6, 0x00050088, 0x00000006, 0x000009c9, + 0x0000115d, 0x00000850, 0x00050085, 0x00000006, 0x00000868, 0x00000863, 0x000009c9, 0x0007000c, + 0x00000006, 0x0000086d, 0x00000001, 0x00000028, 0x00000844, 0x000007a2, 0x00050083, 0x00000006, + 0x0000086e, 0x0000007d, 0x0000086d, 0x00050085, 0x00000006, 0x00000871, 0x00000219, 0x00000832, + 0x00050081, 0x00000006, 0x00000874, 0x00000871, 0x00000213, 0x00050088, 0x00000006, 0x000009d5, + 0x0000007d, 0x00000874, 0x00050085, 0x00000006, 0x00000876, 0x0000086e, 0x000009d5, 0x0007000c, + 0x00000006, 0x0000087b, 0x00000001, 0x00000028, 0x0000084a, 0x000007a4, 0x00050083, 0x00000006, + 0x0000087c, 0x0000007d, 0x0000087b, 0x00050085, 0x00000006, 0x0000087f, 0x00000219, 0x00000838, + 0x00050081, 0x00000006, 0x00000882, 0x0000087f, 0x00000213, 0x00050088, 0x00000006, 0x000009e1, + 0x0000007d, 0x00000882, 0x00050085, 0x00000006, 0x00000884, 0x0000087c, 0x000009e1, 0x0007000c, + 0x00000006, 0x00000889, 0x00000001, 0x00000028, 0x00000850, 0x000007a6, 0x00050083, 0x00000006, + 0x0000088a, 0x0000007d, 0x00000889, 0x00050085, 0x00000006, 0x0000088d, 0x00000219, 0x0000083e, + 0x00050081, 0x00000006, 0x00000890, 0x0000088d, 0x00000213, 0x00050088, 0x00000006, 0x000009ed, + 0x0000007d, 0x00000890, 0x00050085, 0x00000006, 0x00000892, 0x0000088a, 0x000009ed, 0x0004007f, + 0x00000006, 0x00000894, 0x00000858, 0x0007000c, 0x00000006, 0x00000896, 0x00000001, 0x00000028, + 0x00000894, 0x00000876, 0x0004007f, 0x00000006, 0x00000898, 0x00000860, 0x0007000c, 0x00000006, + 0x0000089a, 0x00000001, 0x00000028, 0x00000898, 0x00000884, 0x0004007f, 0x00000006, 0x0000089c, + 0x00000868, 0x0007000c, 0x00000006, 0x0000089e, 0x00000001, 0x00000028, 0x0000089c, 0x00000892, + 0x0007000c, 0x00000006, 0x000009f9, 0x00000001, 0x00000028, 0x0000089a, 0x0000089e, 0x0007000c, + 0x00000006, 0x000009fa, 0x00000001, 0x00000028, 0x00000896, 0x000009f9, 0x0007000c, 0x00000006, + 0x000008a5, 0x00000001, 0x00000025, 0x000009fa, 0x00000085, 0x0007000c, 0x00000006, 0x000008a6, + 0x00000001, 0x00000028, 0x0000027a, 0x000008a5, 0x00050085, 0x00000006, 0x000008aa, 0x000008a6, + 0x00000349, 0x00050085, 0x00000006, 0x000008ad, 0x00000219, 0x000008aa, 0x00050081, 0x00000006, + 0x000008af, 0x000008ad, 0x0000007d, 0x0004007c, 0x0000000c, 0x00000a0b, 0x000008af, 0x00050082, + 0x0000000c, 0x00000a0c, 0x0000008e, 0x00000a0b, 0x0004007c, 0x00000006, 0x00000a0d, 0x00000a0c, + 0x0004007f, 0x00000006, 0x00000a10, 0x00000a0d, 0x00050085, 0x00000006, 0x00000a12, 0x00000a10, + 0x000008af, 0x00050081, 0x00000006, 0x00000a14, 0x00000a12, 0x0000009a, 0x00050085, 0x00000006, + 0x00000a15, 0x00000a0d, 0x00000a14, 0x00050081, 0x00000006, 0x00001168, 0x00000796, 0x0000079c, + 0x00050081, 0x00000006, 0x00001169, 0x00001168, 0x000007ae, 0x00050081, 0x00000006, 0x0000116a, + 0x00001169, 0x000007a8, 0x00050085, 0x00000006, 0x000008bf, 0x000008aa, 0x0000116a, 0x00050081, + 0x00000006, 0x000008c1, 0x000008bf, 0x000007a2, 0x00050085, 0x00000006, 0x000008c3, 0x000008c1, + 0x00000a15, 0x00050081, 0x00000006, 0x0000116b, 0x00000798, 0x0000079e, 0x00050081, 0x00000006, + 0x0000116c, 0x0000116b, 0x000007b0, 0x00050081, 0x00000006, 0x0000116d, 0x0000116c, 0x000007aa, + 0x00050085, 0x00000006, 0x000008d2, 0x000008aa, 0x0000116d, 0x00050081, 0x00000006, 0x000008d4, + 0x000008d2, 0x000007a4, 0x00050085, 0x00000006, 0x000008d6, 0x000008d4, 0x00000a15, 0x00050081, + 0x00000006, 0x0000116e, 0x0000079a, 0x000007a0, 0x00050081, 0x00000006, 0x0000116f, 0x0000116e, + 0x000007b2, 0x00050081, 0x00000006, 0x00001170, 0x0000116f, 0x000007ac, 0x00050085, 0x00000006, + 0x000008e5, 0x000008aa, 0x00001170, 0x00050081, 0x00000006, 0x000008e7, 0x000008e5, 0x000007a6, + 0x00050085, 0x00000006, 0x000008e9, 0x000008e7, 0x00000a15, 0x0004003d, 0x000002f7, 0x000006f1, + 0x000002f9, 0x00070050, 0x00000039, 0x000006f8, 0x000008c3, 0x000008d6, 0x000008e9, 0x0000007d, + 0x00040063, 0x000006f1, 0x00000781, 0x000006f8, 0x000200f9, 0x000006f9, 0x000200f8, 0x000006f9, + 0x00050051, 0x0000000c, 0x0000032c, 0x0000031b, 0x00000001, 0x00050080, 0x0000000c, 0x0000032d, + 0x0000032c, 0x00000321, 0x00050050, 0x00000031, 0x00001172, 0x00000324, 0x0000032d, 0x000300f7, + 0x00000a48, 0x00000000, 0x000300fb, 0x000000c9, 0x00000a24, 0x000200f8, 0x00000a24, 0x000300f7, + 0x00000a33, 0x00000000, 0x000400fa, 0x000006dc, 0x00000a2c, 0x00000a33, 0x000200f8, 0x00000a2c, + 0x00060041, 0x000002d6, 0x00000a2f, 0x000002d5, 0x00000069, 0x000000a1, 0x0004003d, 0x00000006, + 0x00000a30, 0x00000a2f, 0x0004006d, 0x0000000c, 0x00000a31, 0x00000a30, 0x000500ae, 0x000002d0, + 0x00000a32, 0x0000032d, 0x00000a31, 0x000200f9, 0x00000a33, 0x000200f8, 0x00000a33, 0x000700f5, + 0x000002d0, 0x00000a34, 0x000006db, 0x00000a24, 0x00000a32, 0x00000a2c, 0x000300f7, 0x00000a36, + 0x00000000, 0x000400fa, 0x00000a34, 0x00000a35, 0x00000a36, 0x000200f8, 0x00000a35, 0x000200f9, + 0x00000a48, 0x000200f8, 0x00000a36, 0x0004007c, 0x00000037, 0x00000ad0, 0x00001172, 0x00050080, + 0x00000037, 0x00000ad2, 0x00000ad0, 0x000000d9, 0x0004003d, 0x000000b6, 0x00000c3b, 0x000000b8, + 0x00040064, 0x000000b5, 0x00000c3d, 0x00000c3b, 0x0007005f, 0x00000039, 0x00000c3e, 0x00000c3d, + 0x00000ad2, 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x00000ad6, 0x00000ad0, 0x000000e0, + 0x0004003d, 0x000000b6, 0x00000c41, 0x000000b8, 0x00040064, 0x000000b5, 0x00000c43, 0x00000c41, + 0x0007005f, 0x00000039, 0x00000c44, 0x00000c43, 0x00000ad6, 0x00000002, 0x00000069, 0x0004003d, + 0x000000b6, 0x00000c47, 0x000000b8, 0x00040064, 0x000000b5, 0x00000c49, 0x00000c47, 0x0007005f, + 0x00000039, 0x00000c4a, 0x00000c49, 0x00000ad0, 0x00000002, 0x00000069, 0x00050080, 0x00000037, + 0x00000add, 0x00000ad0, 0x000000ed, 0x0004003d, 0x000000b6, 0x00000c4d, 0x000000b8, 0x00040064, + 0x000000b5, 0x00000c4f, 0x00000c4d, 0x0007005f, 0x00000039, 0x00000c50, 0x00000c4f, 0x00000add, + 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x00000ae1, 0x00000ad0, 0x000000f4, 0x0004003d, + 0x000000b6, 0x00000c53, 0x000000b8, 0x00040064, 0x000000b5, 0x00000c55, 0x00000c53, 0x0007005f, + 0x00000039, 0x00000c56, 0x00000c55, 0x00000ae1, 0x00000002, 0x00000069, 0x00050051, 0x00000006, + 0x00000ae5, 0x00000c3e, 0x00000000, 0x00050051, 0x00000006, 0x00000ae7, 0x00000c3e, 0x00000001, + 0x00050051, 0x00000006, 0x00000ae9, 0x00000c3e, 0x00000002, 0x00050051, 0x00000006, 0x00000aeb, + 0x00000c44, 0x00000000, 0x00050051, 0x00000006, 0x00000aed, 0x00000c44, 0x00000001, 0x00050051, + 0x00000006, 0x00000aef, 0x00000c44, 0x00000002, 0x00050051, 0x00000006, 0x00000af1, 0x00000c4a, + 0x00000000, 0x00050051, 0x00000006, 0x00000af3, 0x00000c4a, 0x00000001, 0x00050051, 0x00000006, + 0x00000af5, 0x00000c4a, 0x00000002, 0x00050051, 0x00000006, 0x00000af7, 0x00000c50, 0x00000000, + 0x00050051, 0x00000006, 0x00000af9, 0x00000c50, 0x00000001, 0x00050051, 0x00000006, 0x00000afb, + 0x00000c50, 0x00000002, 0x00050051, 0x00000006, 0x00000afd, 0x00000c56, 0x00000000, 0x00050051, + 0x00000006, 0x00000aff, 0x00000c56, 0x00000001, 0x00050051, 0x00000006, 0x00000b01, 0x00000c56, + 0x00000002, 0x0007000c, 0x00000006, 0x00000cd3, 0x00000001, 0x00000025, 0x00000aeb, 0x00000af7, + 0x0007000c, 0x00000006, 0x00000cd4, 0x00000001, 0x00000025, 0x00000ae5, 0x00000cd3, 0x0007000c, + 0x00000006, 0x00000b81, 0x00000001, 0x00000025, 0x00000cd4, 0x00000afd, 0x0007000c, 0x00000006, + 0x00000cda, 0x00000001, 0x00000025, 0x00000aed, 0x00000af9, 0x0007000c, 0x00000006, 0x00000cdb, + 0x00000001, 0x00000025, 0x00000ae7, 0x00000cda, 0x0007000c, 0x00000006, 0x00000b87, 0x00000001, + 0x00000025, 0x00000cdb, 0x00000aff, 0x0007000c, 0x00000006, 0x00000ce1, 0x00000001, 0x00000025, + 0x00000aef, 0x00000afb, 0x0007000c, 0x00000006, 0x00000ce2, 0x00000001, 0x00000025, 0x00000ae9, + 0x00000ce1, 0x0007000c, 0x00000006, 0x00000b8d, 0x00000001, 0x00000025, 0x00000ce2, 0x00000b01, + 0x0007000c, 0x00000006, 0x00000ce8, 0x00000001, 0x00000028, 0x00000aeb, 0x00000af7, 0x0007000c, + 0x00000006, 0x00000ce9, 0x00000001, 0x00000028, 0x00000ae5, 0x00000ce8, 0x0007000c, 0x00000006, + 0x00000b93, 0x00000001, 0x00000028, 0x00000ce9, 0x00000afd, 0x0007000c, 0x00000006, 0x00000cef, + 0x00000001, 0x00000028, 0x00000aed, 0x00000af9, 0x0007000c, 0x00000006, 0x00000cf0, 0x00000001, + 0x00000028, 0x00000ae7, 0x00000cef, 0x0007000c, 0x00000006, 0x00000b99, 0x00000001, 0x00000028, + 0x00000cf0, 0x00000aff, 0x0007000c, 0x00000006, 0x00000cf6, 0x00000001, 0x00000028, 0x00000aef, + 0x00000afb, 0x0007000c, 0x00000006, 0x00000cf7, 0x00000001, 0x00000028, 0x00000ae9, 0x00000cf6, + 0x0007000c, 0x00000006, 0x00000b9f, 0x00000001, 0x00000028, 0x00000cf7, 0x00000b01, 0x0007000c, + 0x00000006, 0x00000ba2, 0x00000001, 0x00000025, 0x00000b81, 0x00000af1, 0x00050088, 0x00000006, + 0x00000d00, 0x0000115d, 0x00000b93, 0x00050085, 0x00000006, 0x00000ba7, 0x00000ba2, 0x00000d00, + 0x0007000c, 0x00000006, 0x00000baa, 0x00000001, 0x00000025, 0x00000b87, 0x00000af3, 0x00050088, + 0x00000006, 0x00000d0c, 0x0000115d, 0x00000b99, 0x00050085, 0x00000006, 0x00000baf, 0x00000baa, + 0x00000d0c, 0x0007000c, 0x00000006, 0x00000bb2, 0x00000001, 0x00000025, 0x00000b8d, 0x00000af5, + 0x00050088, 0x00000006, 0x00000d18, 0x0000115d, 0x00000b9f, 0x00050085, 0x00000006, 0x00000bb7, + 0x00000bb2, 0x00000d18, 0x0007000c, 0x00000006, 0x00000bbc, 0x00000001, 0x00000028, 0x00000b93, + 0x00000af1, 0x00050083, 0x00000006, 0x00000bbd, 0x0000007d, 0x00000bbc, 0x00050085, 0x00000006, + 0x00000bc0, 0x00000219, 0x00000b81, 0x00050081, 0x00000006, 0x00000bc3, 0x00000bc0, 0x00000213, + 0x00050088, 0x00000006, 0x00000d24, 0x0000007d, 0x00000bc3, 0x00050085, 0x00000006, 0x00000bc5, + 0x00000bbd, 0x00000d24, 0x0007000c, 0x00000006, 0x00000bca, 0x00000001, 0x00000028, 0x00000b99, + 0x00000af3, 0x00050083, 0x00000006, 0x00000bcb, 0x0000007d, 0x00000bca, 0x00050085, 0x00000006, + 0x00000bce, 0x00000219, 0x00000b87, 0x00050081, 0x00000006, 0x00000bd1, 0x00000bce, 0x00000213, + 0x00050088, 0x00000006, 0x00000d30, 0x0000007d, 0x00000bd1, 0x00050085, 0x00000006, 0x00000bd3, + 0x00000bcb, 0x00000d30, 0x0007000c, 0x00000006, 0x00000bd8, 0x00000001, 0x00000028, 0x00000b9f, + 0x00000af5, 0x00050083, 0x00000006, 0x00000bd9, 0x0000007d, 0x00000bd8, 0x00050085, 0x00000006, + 0x00000bdc, 0x00000219, 0x00000b8d, 0x00050081, 0x00000006, 0x00000bdf, 0x00000bdc, 0x00000213, + 0x00050088, 0x00000006, 0x00000d3c, 0x0000007d, 0x00000bdf, 0x00050085, 0x00000006, 0x00000be1, + 0x00000bd9, 0x00000d3c, 0x0004007f, 0x00000006, 0x00000be3, 0x00000ba7, 0x0007000c, 0x00000006, + 0x00000be5, 0x00000001, 0x00000028, 0x00000be3, 0x00000bc5, 0x0004007f, 0x00000006, 0x00000be7, + 0x00000baf, 0x0007000c, 0x00000006, 0x00000be9, 0x00000001, 0x00000028, 0x00000be7, 0x00000bd3, + 0x0004007f, 0x00000006, 0x00000beb, 0x00000bb7, 0x0007000c, 0x00000006, 0x00000bed, 0x00000001, + 0x00000028, 0x00000beb, 0x00000be1, 0x0007000c, 0x00000006, 0x00000d48, 0x00000001, 0x00000028, + 0x00000be9, 0x00000bed, 0x0007000c, 0x00000006, 0x00000d49, 0x00000001, 0x00000028, 0x00000be5, + 0x00000d48, 0x0007000c, 0x00000006, 0x00000bf4, 0x00000001, 0x00000025, 0x00000d49, 0x00000085, + 0x0007000c, 0x00000006, 0x00000bf5, 0x00000001, 0x00000028, 0x0000027a, 0x00000bf4, 0x00050085, + 0x00000006, 0x00000bf9, 0x00000bf5, 0x00000349, 0x00050085, 0x00000006, 0x00000bfc, 0x00000219, + 0x00000bf9, 0x00050081, 0x00000006, 0x00000bfe, 0x00000bfc, 0x0000007d, 0x0004007c, 0x0000000c, + 0x00000d5a, 0x00000bfe, 0x00050082, 0x0000000c, 0x00000d5b, 0x0000008e, 0x00000d5a, 0x0004007c, + 0x00000006, 0x00000d5c, 0x00000d5b, 0x0004007f, 0x00000006, 0x00000d5f, 0x00000d5c, 0x00050085, + 0x00000006, 0x00000d61, 0x00000d5f, 0x00000bfe, 0x00050081, 0x00000006, 0x00000d63, 0x00000d61, + 0x0000009a, 0x00050085, 0x00000006, 0x00000d64, 0x00000d5c, 0x00000d63, 0x00050081, 0x00000006, + 0x00001173, 0x00000ae5, 0x00000aeb, 0x00050081, 0x00000006, 0x00001174, 0x00001173, 0x00000afd, + 0x00050081, 0x00000006, 0x00001175, 0x00001174, 0x00000af7, 0x00050085, 0x00000006, 0x00000c0e, + 0x00000bf9, 0x00001175, 0x00050081, 0x00000006, 0x00000c10, 0x00000c0e, 0x00000af1, 0x00050085, + 0x00000006, 0x00000c12, 0x00000c10, 0x00000d64, 0x00050081, 0x00000006, 0x00001176, 0x00000ae7, + 0x00000aed, 0x00050081, 0x00000006, 0x00001177, 0x00001176, 0x00000aff, 0x00050081, 0x00000006, + 0x00001178, 0x00001177, 0x00000af9, 0x00050085, 0x00000006, 0x00000c21, 0x00000bf9, 0x00001178, + 0x00050081, 0x00000006, 0x00000c23, 0x00000c21, 0x00000af3, 0x00050085, 0x00000006, 0x00000c25, + 0x00000c23, 0x00000d64, 0x00050081, 0x00000006, 0x00001179, 0x00000ae9, 0x00000aef, 0x00050081, + 0x00000006, 0x0000117a, 0x00001179, 0x00000b01, 0x00050081, 0x00000006, 0x0000117b, 0x0000117a, + 0x00000afb, 0x00050085, 0x00000006, 0x00000c34, 0x00000bf9, 0x0000117b, 0x00050081, 0x00000006, + 0x00000c36, 0x00000c34, 0x00000af5, 0x00050085, 0x00000006, 0x00000c38, 0x00000c36, 0x00000d64, + 0x0004003d, 0x000002f7, 0x00000a40, 0x000002f9, 0x00070050, 0x00000039, 0x00000a47, 0x00000c12, + 0x00000c25, 0x00000c38, 0x0000007d, 0x00040063, 0x00000a40, 0x00000ad0, 0x00000a47, 0x000200f9, + 0x00000a48, 0x000200f8, 0x00000a48, 0x00060052, 0x00000031, 0x00001124, 0x00000387, 0x00001172, + 0x00000000, 0x000300f7, 0x00000d97, 0x00000000, 0x000300fb, 0x000000c9, 0x00000d73, 0x000200f8, + 0x00000d73, 0x000300f7, 0x00000d82, 0x00000000, 0x000400fa, 0x0000038c, 0x00000d7b, 0x00000d82, + 0x000200f8, 0x00000d7b, 0x00060041, 0x000002d6, 0x00000d7e, 0x000002d5, 0x00000069, 0x000000a1, + 0x0004003d, 0x00000006, 0x00000d7f, 0x00000d7e, 0x0004006d, 0x0000000c, 0x00000d80, 0x00000d7f, + 0x000500ae, 0x000002d0, 0x00000d81, 0x0000032d, 0x00000d80, 0x000200f9, 0x00000d82, 0x000200f8, + 0x00000d82, 0x000700f5, 0x000002d0, 0x00000d83, 0x0000038b, 0x00000d73, 0x00000d81, 0x00000d7b, + 0x000300f7, 0x00000d85, 0x00000000, 0x000400fa, 0x00000d83, 0x00000d84, 0x00000d85, 0x000200f8, + 0x00000d84, 0x000200f9, 0x00000d97, 0x000200f8, 0x00000d85, 0x0004007c, 0x00000037, 0x00000e1f, + 0x00001124, 0x00050080, 0x00000037, 0x00000e21, 0x00000e1f, 0x000000d9, 0x0004003d, 0x000000b6, + 0x00000f8a, 0x000000b8, 0x00040064, 0x000000b5, 0x00000f8c, 0x00000f8a, 0x0007005f, 0x00000039, + 0x00000f8d, 0x00000f8c, 0x00000e21, 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x00000e25, + 0x00000e1f, 0x000000e0, 0x0004003d, 0x000000b6, 0x00000f90, 0x000000b8, 0x00040064, 0x000000b5, + 0x00000f92, 0x00000f90, 0x0007005f, 0x00000039, 0x00000f93, 0x00000f92, 0x00000e25, 0x00000002, + 0x00000069, 0x0004003d, 0x000000b6, 0x00000f96, 0x000000b8, 0x00040064, 0x000000b5, 0x00000f98, + 0x00000f96, 0x0007005f, 0x00000039, 0x00000f99, 0x00000f98, 0x00000e1f, 0x00000002, 0x00000069, + 0x00050080, 0x00000037, 0x00000e2c, 0x00000e1f, 0x000000ed, 0x0004003d, 0x000000b6, 0x00000f9c, + 0x000000b8, 0x00040064, 0x000000b5, 0x00000f9e, 0x00000f9c, 0x0007005f, 0x00000039, 0x00000f9f, + 0x00000f9e, 0x00000e2c, 0x00000002, 0x00000069, 0x00050080, 0x00000037, 0x00000e30, 0x00000e1f, + 0x000000f4, 0x0004003d, 0x000000b6, 0x00000fa2, 0x000000b8, 0x00040064, 0x000000b5, 0x00000fa4, + 0x00000fa2, 0x0007005f, 0x00000039, 0x00000fa5, 0x00000fa4, 0x00000e30, 0x00000002, 0x00000069, + 0x00050051, 0x00000006, 0x00000e34, 0x00000f8d, 0x00000000, 0x00050051, 0x00000006, 0x00000e36, + 0x00000f8d, 0x00000001, 0x00050051, 0x00000006, 0x00000e38, 0x00000f8d, 0x00000002, 0x00050051, + 0x00000006, 0x00000e3a, 0x00000f93, 0x00000000, 0x00050051, 0x00000006, 0x00000e3c, 0x00000f93, + 0x00000001, 0x00050051, 0x00000006, 0x00000e3e, 0x00000f93, 0x00000002, 0x00050051, 0x00000006, + 0x00000e40, 0x00000f99, 0x00000000, 0x00050051, 0x00000006, 0x00000e42, 0x00000f99, 0x00000001, + 0x00050051, 0x00000006, 0x00000e44, 0x00000f99, 0x00000002, 0x00050051, 0x00000006, 0x00000e46, + 0x00000f9f, 0x00000000, 0x00050051, 0x00000006, 0x00000e48, 0x00000f9f, 0x00000001, 0x00050051, + 0x00000006, 0x00000e4a, 0x00000f9f, 0x00000002, 0x00050051, 0x00000006, 0x00000e4c, 0x00000fa5, + 0x00000000, 0x00050051, 0x00000006, 0x00000e4e, 0x00000fa5, 0x00000001, 0x00050051, 0x00000006, + 0x00000e50, 0x00000fa5, 0x00000002, 0x0007000c, 0x00000006, 0x00001022, 0x00000001, 0x00000025, + 0x00000e3a, 0x00000e46, 0x0007000c, 0x00000006, 0x00001023, 0x00000001, 0x00000025, 0x00000e34, + 0x00001022, 0x0007000c, 0x00000006, 0x00000ed0, 0x00000001, 0x00000025, 0x00001023, 0x00000e4c, + 0x0007000c, 0x00000006, 0x00001029, 0x00000001, 0x00000025, 0x00000e3c, 0x00000e48, 0x0007000c, + 0x00000006, 0x0000102a, 0x00000001, 0x00000025, 0x00000e36, 0x00001029, 0x0007000c, 0x00000006, + 0x00000ed6, 0x00000001, 0x00000025, 0x0000102a, 0x00000e4e, 0x0007000c, 0x00000006, 0x00001030, + 0x00000001, 0x00000025, 0x00000e3e, 0x00000e4a, 0x0007000c, 0x00000006, 0x00001031, 0x00000001, + 0x00000025, 0x00000e38, 0x00001030, 0x0007000c, 0x00000006, 0x00000edc, 0x00000001, 0x00000025, + 0x00001031, 0x00000e50, 0x0007000c, 0x00000006, 0x00001037, 0x00000001, 0x00000028, 0x00000e3a, + 0x00000e46, 0x0007000c, 0x00000006, 0x00001038, 0x00000001, 0x00000028, 0x00000e34, 0x00001037, + 0x0007000c, 0x00000006, 0x00000ee2, 0x00000001, 0x00000028, 0x00001038, 0x00000e4c, 0x0007000c, + 0x00000006, 0x0000103e, 0x00000001, 0x00000028, 0x00000e3c, 0x00000e48, 0x0007000c, 0x00000006, + 0x0000103f, 0x00000001, 0x00000028, 0x00000e36, 0x0000103e, 0x0007000c, 0x00000006, 0x00000ee8, + 0x00000001, 0x00000028, 0x0000103f, 0x00000e4e, 0x0007000c, 0x00000006, 0x00001045, 0x00000001, + 0x00000028, 0x00000e3e, 0x00000e4a, 0x0007000c, 0x00000006, 0x00001046, 0x00000001, 0x00000028, + 0x00000e38, 0x00001045, 0x0007000c, 0x00000006, 0x00000eee, 0x00000001, 0x00000028, 0x00001046, + 0x00000e50, 0x0007000c, 0x00000006, 0x00000ef1, 0x00000001, 0x00000025, 0x00000ed0, 0x00000e40, + 0x00050088, 0x00000006, 0x0000104f, 0x0000115d, 0x00000ee2, 0x00050085, 0x00000006, 0x00000ef6, + 0x00000ef1, 0x0000104f, 0x0007000c, 0x00000006, 0x00000ef9, 0x00000001, 0x00000025, 0x00000ed6, + 0x00000e42, 0x00050088, 0x00000006, 0x0000105b, 0x0000115d, 0x00000ee8, 0x00050085, 0x00000006, + 0x00000efe, 0x00000ef9, 0x0000105b, 0x0007000c, 0x00000006, 0x00000f01, 0x00000001, 0x00000025, + 0x00000edc, 0x00000e44, 0x00050088, 0x00000006, 0x00001067, 0x0000115d, 0x00000eee, 0x00050085, + 0x00000006, 0x00000f06, 0x00000f01, 0x00001067, 0x0007000c, 0x00000006, 0x00000f0b, 0x00000001, + 0x00000028, 0x00000ee2, 0x00000e40, 0x00050083, 0x00000006, 0x00000f0c, 0x0000007d, 0x00000f0b, + 0x00050085, 0x00000006, 0x00000f0f, 0x00000219, 0x00000ed0, 0x00050081, 0x00000006, 0x00000f12, + 0x00000f0f, 0x00000213, 0x00050088, 0x00000006, 0x00001073, 0x0000007d, 0x00000f12, 0x00050085, + 0x00000006, 0x00000f14, 0x00000f0c, 0x00001073, 0x0007000c, 0x00000006, 0x00000f19, 0x00000001, + 0x00000028, 0x00000ee8, 0x00000e42, 0x00050083, 0x00000006, 0x00000f1a, 0x0000007d, 0x00000f19, + 0x00050085, 0x00000006, 0x00000f1d, 0x00000219, 0x00000ed6, 0x00050081, 0x00000006, 0x00000f20, + 0x00000f1d, 0x00000213, 0x00050088, 0x00000006, 0x0000107f, 0x0000007d, 0x00000f20, 0x00050085, + 0x00000006, 0x00000f22, 0x00000f1a, 0x0000107f, 0x0007000c, 0x00000006, 0x00000f27, 0x00000001, + 0x00000028, 0x00000eee, 0x00000e44, 0x00050083, 0x00000006, 0x00000f28, 0x0000007d, 0x00000f27, + 0x00050085, 0x00000006, 0x00000f2b, 0x00000219, 0x00000edc, 0x00050081, 0x00000006, 0x00000f2e, + 0x00000f2b, 0x00000213, 0x00050088, 0x00000006, 0x0000108b, 0x0000007d, 0x00000f2e, 0x00050085, + 0x00000006, 0x00000f30, 0x00000f28, 0x0000108b, 0x0004007f, 0x00000006, 0x00000f32, 0x00000ef6, + 0x0007000c, 0x00000006, 0x00000f34, 0x00000001, 0x00000028, 0x00000f32, 0x00000f14, 0x0004007f, + 0x00000006, 0x00000f36, 0x00000efe, 0x0007000c, 0x00000006, 0x00000f38, 0x00000001, 0x00000028, + 0x00000f36, 0x00000f22, 0x0004007f, 0x00000006, 0x00000f3a, 0x00000f06, 0x0007000c, 0x00000006, + 0x00000f3c, 0x00000001, 0x00000028, 0x00000f3a, 0x00000f30, 0x0007000c, 0x00000006, 0x00001097, + 0x00000001, 0x00000028, 0x00000f38, 0x00000f3c, 0x0007000c, 0x00000006, 0x00001098, 0x00000001, + 0x00000028, 0x00000f34, 0x00001097, 0x0007000c, 0x00000006, 0x00000f43, 0x00000001, 0x00000025, + 0x00001098, 0x00000085, 0x0007000c, 0x00000006, 0x00000f44, 0x00000001, 0x00000028, 0x0000027a, + 0x00000f43, 0x00050085, 0x00000006, 0x00000f48, 0x00000f44, 0x00000349, 0x00050085, 0x00000006, + 0x00000f4b, 0x00000219, 0x00000f48, 0x00050081, 0x00000006, 0x00000f4d, 0x00000f4b, 0x0000007d, + 0x0004007c, 0x0000000c, 0x000010a9, 0x00000f4d, 0x00050082, 0x0000000c, 0x000010aa, 0x0000008e, + 0x000010a9, 0x0004007c, 0x00000006, 0x000010ab, 0x000010aa, 0x0004007f, 0x00000006, 0x000010ae, + 0x000010ab, 0x00050085, 0x00000006, 0x000010b0, 0x000010ae, 0x00000f4d, 0x00050081, 0x00000006, + 0x000010b2, 0x000010b0, 0x0000009a, 0x00050085, 0x00000006, 0x000010b3, 0x000010ab, 0x000010b2, + 0x00050081, 0x00000006, 0x0000117d, 0x00000e34, 0x00000e3a, 0x00050081, 0x00000006, 0x0000117e, + 0x0000117d, 0x00000e4c, 0x00050081, 0x00000006, 0x0000117f, 0x0000117e, 0x00000e46, 0x00050085, + 0x00000006, 0x00000f5d, 0x00000f48, 0x0000117f, 0x00050081, 0x00000006, 0x00000f5f, 0x00000f5d, + 0x00000e40, 0x00050085, 0x00000006, 0x00000f61, 0x00000f5f, 0x000010b3, 0x00050081, 0x00000006, + 0x00001180, 0x00000e36, 0x00000e3c, 0x00050081, 0x00000006, 0x00001181, 0x00001180, 0x00000e4e, + 0x00050081, 0x00000006, 0x00001182, 0x00001181, 0x00000e48, 0x00050085, 0x00000006, 0x00000f70, + 0x00000f48, 0x00001182, 0x00050081, 0x00000006, 0x00000f72, 0x00000f70, 0x00000e42, 0x00050085, + 0x00000006, 0x00000f74, 0x00000f72, 0x000010b3, 0x00050081, 0x00000006, 0x00001183, 0x00000e38, + 0x00000e3e, 0x00050081, 0x00000006, 0x00001184, 0x00001183, 0x00000e50, 0x00050081, 0x00000006, + 0x00001185, 0x00001184, 0x00000e4a, 0x00050085, 0x00000006, 0x00000f83, 0x00000f48, 0x00001185, + 0x00050081, 0x00000006, 0x00000f85, 0x00000f83, 0x00000e44, 0x00050085, 0x00000006, 0x00000f87, + 0x00000f85, 0x000010b3, 0x0004003d, 0x000002f7, 0x00000d8f, 0x000002f9, 0x00070050, 0x00000039, + 0x00000d96, 0x00000f61, 0x00000f74, 0x00000f87, 0x0000007d, 0x00040063, 0x00000d8f, 0x00000e1f, + 0x00000d96, 0x000200f9, 0x00000d97, 0x000200f8, 0x00000d97, 0x000100fd, 0x00010038, +}; diff --git a/runtime/gfx_window.c b/runtime/gfx_window.c index 3da9d1eb..22454aa4 100644 --- a/runtime/gfx_window.c +++ b/runtime/gfx_window.c @@ -739,7 +739,7 @@ static void save_capture(const char *path) { rt_log("gfx: menu test shot %s (%dx%d)", path, g_cap_w, g_cap_h); } -static void present_image(VkImage src, VkImageLayout layout, int w, int h, const int crop[4], int defer) { +static void present_image(VkImage src, VkImageLayout layout, VkFormat fmt, int w, int h, const int crop[4], int defer) { int general = layout == VK_IMAGE_LAYOUT_GENERAL; gfx_window_start(); VkCtx *c = vk_ctx(); @@ -794,17 +794,21 @@ static void present_image(VkImage src, VkImageLayout layout, int w, int h, const VkImage dst = g_sc_img[idx]; sync_barrier(cb, dst, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_PIPELINE_STAGE_2_TRANSFER_BIT, 0, VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_WRITE_BIT); - if (general) // a GENERAL source (vk_texture.c images): earlier submissions' writes become visible to the blit here - sync_barrier(cb, src, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT, - VK_ACCESS_2_MEMORY_WRITE_BIT, VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_READ_BIT); - VkImageBlit region = { - .srcSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, .srcOffsets = {{cx, cy, 0}, {cx + cw, cy + ch, 1}}, - .dstSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, .dstOffsets = {{0, 0, 0}, {(int)g_sc_ext.width, (int)g_sc_ext.height, 1}}}; - vkCmdBlitImage(cb, src, general ? VK_IMAGE_LAYOUT_GENERAL : VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, dst, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ®ion, VK_FILTER_LINEAR); - if (general) // later submissions that write the source wait for the blit's read - sync_barrier(cb, src, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, VK_PIPELINE_STAGE_2_TRANSFER_BIT, 0, - VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT, 0); + const int rect[4] = {cx, cy, cw, ch}; + // FSR (TOTK_UPSCALER) when the swapchain is larger than the crop; else the bilinear blit + if (!general || !vk_fsr_record(cb, slot, src, fmt, w, h, rect, dst, g_sc_ext.width, g_sc_ext.height)) { + if (general) // a GENERAL source (vk_texture.c images): earlier submissions' writes become visible to the blit here + sync_barrier(cb, src, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT, + VK_ACCESS_2_MEMORY_WRITE_BIT, VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_READ_BIT); + VkImageBlit region = { + .srcSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, .srcOffsets = {{cx, cy, 0}, {cx + cw, cy + ch, 1}}, + .dstSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, .dstOffsets = {{0, 0, 0}, {(int)g_sc_ext.width, (int)g_sc_ext.height, 1}}}; + vkCmdBlitImage(cb, src, general ? VK_IMAGE_LAYOUT_GENERAL : VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, dst, + VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ®ion, VK_FILTER_LINEAR); + if (general) // later submissions that write the source wait for the blit's read + sync_barrier(cb, src, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, VK_PIPELINE_STAGE_2_TRANSFER_BIT, 0, + VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT, 0); + } // last: the image's layout, and the stage and access of its last write, as each step leaves it VkImageLayout last = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; VkPipelineStageFlags2 last_stage = VK_PIPELINE_STAGE_2_TRANSFER_BIT; @@ -879,12 +883,11 @@ out: } void vk_present_image(VkImage src, VkImageLayout layout, VkFormat fmt, int w, int h, const int crop[4]) { - (void)fmt; - present_image(src, layout, w, h, crop, 0); + present_image(src, layout, fmt, w, h, crop, 0); } -void vk_present_blit(VkImage src, VkImageLayout layout, int w, int h, const int crop[4]) { - present_image(src, layout, w, h, crop, 1); +void vk_present_blit(VkImage src, VkImageLayout layout, VkFormat fmt, int w, int h, const int crop[4]) { + present_image(src, layout, fmt, w, h, crop, 1); } void vk_present_flip(void) { @@ -913,6 +916,7 @@ void gfx_window_release_vk(void) { vk_queue_unlock(); g_flip_on = 0; // its blit is done (device idle); the swapchain goes away unpresented menu_vk_release(); + vk_fsr_release(); free_capture(); free_thumbs(); for (int i = 0; i < FRAMES; i++) { diff --git a/runtime/host.h b/runtime/host.h index 6faea696..2f3f10c1 100644 --- a/runtime/host.h +++ b/runtime/host.h @@ -225,6 +225,13 @@ void account_uid(uint64_t out[2]); // the local user's n // ---- movies (ov_movie.c) void movie_tick(Cpu *c); // at every present, on the presenting guest thread: hands // decoded movie frames over when due, signals their events +// ---- game resolution (resolution.c): TOTK_OUTPUT_RES, TOTK_RENDER_SCALE +uint64_t res_heap_extra_bytes(void); // added to the application pool (mem_init), 2 MiB steps +uint64_t res_heap_extra_kib(void); // added to the HeapDef texture heap and its parent; 0 = none +int res_heapdef_build(const void *in, size_t n, void **out, size_t *out_n); // the HeapDef table (.byml.zs) with + // the grown heaps, malloc'd; 0 = cannot (logged) +void res_heapdef_served(void); // romfs.c serves the grown table +void res_init(void); // after rt_patches_init: the patch page and the sets // ---- code patches (patches.c) and the frame step (frame_rate.c) void rt_patches_init(void); // after ldr_load: switches from the environment, the patch // page committed; logs the sets diff --git a/runtime/memory.c b/runtime/memory.c index 6d0770b8..8e97143d 100644 --- a/runtime/memory.c +++ b/runtime/memory.c @@ -261,7 +261,7 @@ void mem_init(void) { .alias = {alias, ALIAS_SIZE}, .kernel = {RT_KERNEL_BASE, RT_KERNEL_SIZE}, .hostfn = {RT_HOSTFN_BASE, RT_HOSTFN_SIZE}, - .pool = pool ? strtoull(pool, NULL, 0) : DEFAULT_POOL, + .pool = pool ? strtoull(pool, NULL, 0) : DEFAULT_POOL + res_heap_extra_bytes(), // resolution.c }; if (!L.pool) rt_fatal("memory: TOTK_APP_POOL is 0"); } diff --git a/runtime/resolution.c b/runtime/resolution.c new file mode 100644 index 00000000..709e8f65 --- /dev/null +++ b/runtime/resolution.c @@ -0,0 +1,221 @@ +// Game resolution: the size the game composes its frame in (its output: canvas, UI and swapchain) and the size of its +// 3D scene, above the shipped 1920x1080 and 1600x900. The game does the rendering itself, as with the community +// resolution mods (UltraCam, Visual Fixes): the patch sets output and scene (recomp/patches-v121.txt, +// patches-v143.txt; MacNativeGames games/totk/runtime/game_patches.c and game_patches_v143.c, MIT, Copyright (c) 2026 +// MacNativeGames contributors) make the game read both sizes from the patch page, and the texture heap that holds the +// output- and scene-sized render targets grows with them. +// +// Settings, read at start: TOTK_OUTPUT_RES = x (default 1920x1080, the game's own), TOTK_RENDER_SCALE = the +// scene's size relative to the output: "game" (default, 5/6, the game's 1600x900 at 1080p) or a percentage; above 100 +// the game supersamples its scene, which smooths edges (anti-aliasing) at the cost of GPU time. The game's own final +// pass (FSR 1 EASU) scales the scene to the output; the present scales the output to the window (vk_fsr.c). +// +// Patch page: +16 the scene size {w, h} as floats, +32 the output size and +48 the swapchain size as {w, h} in one +// 64-bit word, +40 the renderer (1.2.1) or display configuration (1.4.3) the patched code stores there. +// 1.4.3 scales the scene it reads by output width / 1920 (a 2560x1440 output renders its 1600x900 scene at 2128x1200; +// MacNativeGames measured the same), so its page holds the wanted size divided by that factor and the game's 5/6 needs +// no scene patch. 1.2.1 renders the size it reads (1600x900 on a 2560x1440 output): its page holds the wanted size, and +// the scene set is on whenever the output differs from 1920x1080. +// +// Heap: agl's DynamicTextureAllocator is one fixed heap, "DynamicTextureAllocatorMem" in +// System/HeapSize/Product.Nin_NX_NVN.HeapDef.byml.zs (113664 KiB, carved from "Graphics", 201728 KiB). At 2560x1440 +// the shipped size runs out at the title screen. Both heaps grow by the same amount: the shipped size times the output's +// pixel ratio above 1920x1080 plus the scene's above 1600x900 (MacNativeGames' measurement: a 3440x1440 canvas with a +// 4620x1935 scene crashed at +258 MiB and loaded at +400 MiB; this formula gives +750 MiB there). romfs.c serves the +// rewritten table (res_heapdef_build) in place of the original; memory.c adds the amount to the application pool, so +// no other heap shrinks. Without the rewritten table (a RomFS that lacks it, a format this code does not know) the +// patch sets stay off and the game keeps its own sizes. +#include +#include +#include +#include +#include +#include + +#include "cfg.h" +#include "host.h" + +#define BASE_W 1920 +#define BASE_H 1080 +#define SCENE_W 1600 +#define SCENE_H 900 +#define DTA_KIB 113664u // DynamicTextureAllocatorMem, shipped +#define SCENE_MAX 4096 // per side, as MacNativeGames' TOTK_RENDER_RES + +static struct { + int decided; + unsigned ow, oh, sw, sh; // output and scene + int scene_set; // the scene differs from the game's 5/6 of the output + int heapdef_ok; // romfs.c serves the grown HeapDef +} R; + +static void decide(void) { + if (R.decided) return; + R.decided = 1; + R.ow = BASE_W; + R.oh = BASE_H; + const char *o = cfg_value("TOTK_OUTPUT_RES"); + unsigned w = 0, h = 0; + char tail; + if (sscanf(o, "%ux%u%c", &w, &h, &tail) == 2 && w >= 1280 && h >= 720 && w <= 7680 && h <= 4320) { + R.ow = w & ~1u; + R.oh = h & ~1u; + } else { + rt_log("resolution: TOTK_OUTPUT_RES=%s is not x in 1280x720..7680x4320; 1920x1080", o); + } + const char *s = cfg_value("TOTK_RENDER_SCALE"); + double k = 5.0 / 6.0; + if (strcmp(s, "game")) { + char *end; + double pct = strtod(s, &end); + if (end != s && !*end && pct >= 25 && pct <= 400) { + k = pct / 100.0; + R.scene_set = 1; + } else { + rt_log("resolution: TOTK_RENDER_SCALE=%s is not game or a percentage 25..400; game", s); + } + } + double sw = R.ow * k, sh = R.oh * k; + double fit = fmin(1.0, fmin(SCENE_MAX / sw, SCENE_MAX / sh)); + if (fit < 1.0) R.scene_set = 1; + R.sw = (unsigned)(sw * fit + 0.5); + R.sh = (unsigned)(sh * fit + 0.5); +} + +static int bigger(void) { + decide(); + return R.ow != BASE_W || R.oh != BASE_H || R.scene_set; +} + +uint64_t res_heap_extra_kib(void) { + if (!bigger()) return 0; + double grow = fmax(0.0, (double)R.ow * R.oh / (BASE_W * BASE_H) - 1.0) + + fmax(0.0, (double)R.sw * R.sh / (SCENE_W * SCENE_H) - 1.0); + if (grow <= 0) return 0; + return (uint64_t)ceil(DTA_KIB * (1.0 + grow) / 1024.0) * 1024 - DTA_KIB; +} + +uint64_t res_heap_extra_bytes(void) { return ((res_heap_extra_kib() << 10) + 0x1fffff) & ~0x1fffffull; } + +// ---- the HeapDef table. BYML version 2..7, little endian ("YB"): a hash node is {u8 0xC1, u24 count} and count +// entries {u24 key index, u8 type, u32 value}; an int (type 0xD1) is stored in the entry, so a size changes in place. +typedef struct { uint8_t *p; size_t n; uint32_t keys; } Byml; + +static int u32_at(const Byml *b, size_t off, uint32_t *v) { + if (off + 4 > b->n) return 0; + memcpy(v, b->p + off, 4); + return 1; +} + +static const char *key_name(const Byml *b, uint32_t k) { + uint32_t head, at; + if (!u32_at(b, b->keys, &head) || (head & 0xff) != 0xc2 || k >= head >> 8 || !u32_at(b, b->keys + 4 + 4 * k, &at) || + b->keys + at >= b->n || !memchr(b->p + b->keys + at, 0, b->n - b->keys - at)) + return NULL; + return (const char *)b->p + b->keys + at; +} + +// The offset of the value of hash node `node`'s entry `name`, which must have type `type`; 0 when there is none. +static size_t field(const Byml *b, uint32_t node, const char *name, uint8_t type) { + uint32_t head; + if (!u32_at(b, node, &head) || (head & 0xff) != 0xc1) return 0; + for (uint32_t i = 0; i < head >> 8; i++) { + uint32_t e; + if (!u32_at(b, node + 4 + 8 * (size_t)i, &e)) return 0; + const char *k = key_name(b, e & 0xffffff); + if (k && !strcmp(k, name)) return e >> 24 == type ? node + 8 + 8 * (size_t)i : 0; + } + return 0; +} + +static size_t heap_size_field(const Byml *b, uint32_t heaps, const char *heap) { + size_t at = field(b, heaps, heap, 0xc1); + uint32_t node; + return at && u32_at(b, at, &node) ? field(b, node, "Size", 0xd1) : 0; +} + +int res_heapdef_build(const void *in, size_t n, void **out, size_t *out_n) { + uint64_t extra = res_heap_extra_kib(); + *out = NULL; + if (!extra) return 0; + if (ZSTD_getDictID_fromFrame(in, n)) { + rt_log("resolution: the HeapDef table needs a zstd dictionary; the game keeps its own resolution"); + return 0; + } + unsigned long long raw = ZSTD_getFrameContentSize(in, n); + if (raw == ZSTD_CONTENTSIZE_UNKNOWN || raw == ZSTD_CONTENTSIZE_ERROR || raw > (64u << 20)) { + rt_log("resolution: the HeapDef table is not a zstd frame with a size; the game keeps its own resolution"); + return 0; + } + Byml b = {malloc((size_t)raw), (size_t)raw, 0}; + if (!b.p) return 0; + size_t got = ZSTD_decompress(b.p, b.n, in, n); + uint32_t root, heaps = 0; + uint16_t ver = 0; + if (!ZSTD_isError(got) && got == b.n && b.n >= 16) memcpy(&ver, b.p + 2, 2); + size_t heaps_at = 0, dta_at = 0, gfx_at = 0; + if (ver >= 2 && ver <= 7 && !memcmp(b.p, "YB", 2) && u32_at(&b, 4, &b.keys) && u32_at(&b, 12, &root) && + (heaps_at = field(&b, root, "Heaps", 0xc1)) && u32_at(&b, heaps_at, &heaps)) { + dta_at = heap_size_field(&b, heaps, "DynamicTextureAllocatorMem"); + gfx_at = heap_size_field(&b, heaps, "Graphics"); + } + if (!dta_at || !gfx_at) { + rt_log("resolution: the HeapDef table has no DynamicTextureAllocatorMem / Graphics sizes; the game keeps its own " + "resolution"); + free(b.p); + return 0; + } + int32_t dta, gfx; + memcpy(&dta, b.p + dta_at, 4); + memcpy(&gfx, b.p + gfx_at, 4); + int32_t dta2 = dta + (int32_t)extra, gfx2 = gfx + (int32_t)extra; + memcpy(b.p + dta_at, &dta2, 4); + memcpy(b.p + gfx_at, &gfx2, 4); + size_t cap = ZSTD_compressBound(b.n); + void *z = malloc(cap); + size_t zn = z ? ZSTD_compress(z, cap, b.p, b.n, 9) : 0; + free(b.p); + if (!z || ZSTD_isError(zn)) { + free(z); + return 0; + } + *out = z; + *out_n = zn; + rt_log("resolution: HeapDef DynamicTextureAllocatorMem %d -> %d KiB, Graphics %d -> %d KiB", dta, dta2, gfx, gfx2); + return 1; +} + +void res_heapdef_served(void) { R.heapdef_ok = 1; } + +// ---- start: the patch page and the sets +static uint64_t pack(unsigned w, unsigned h) { return (uint64_t)h << 32 | w; } + +void res_init(void) { + if (!bigger()) { + rt_log("resolution: the game's own (output 1920x1080, scene 1600x900)"); + return; + } + int output = rt_patch_set("output"), scene = rt_patch_set("scene"); + if (output < 0 || scene < 0) { + rt_log("resolution: the generated C has no output and scene patch sets; the game keeps its own resolution"); + return; + } + fs_init(); // romfs.c serves the grown HeapDef from here on (res_heapdef_served) + if (res_heap_extra_kib() && !R.heapdef_ok) { // sizes at or below the shipped ones fit the shipped heaps + rt_log("resolution: no grown HeapDef table; the game keeps its own resolution"); + return; + } + uint8_t *page = rt_patch_page(); + double k = RT_V143 ? (double)R.ow / BASE_W : 1.0; // 1.4.3's own scaling of the scene with the output width + int scene_on = R.scene_set || (!RT_V143 && (R.ow != BASE_W || R.oh != BASE_H)); + float sc[2] = {(float)(R.sw / k), (float)(R.sh / k)}; + uint64_t out = pack(R.ow, R.oh), none = 0; + memcpy(page + 16, sc, sizeof sc); + memcpy(page + 32, &out, 8); + memcpy(page + 40, &none, 8); + memcpy(page + 48, &out, 8); + rt_patch_switch(output, R.ow != BASE_W || R.oh != BASE_H); + rt_patch_switch(scene, scene_on); + rt_log("resolution: output %ux%u, scene %ux%u%s; texture heap +%llu KiB", R.ow, R.oh, R.sw, R.sh, + scene_on ? "" : " (the game's own 5/6 of the output)", (unsigned long long)res_heap_extra_kib()); +} diff --git a/runtime/romfs.c b/runtime/romfs.c index 46b50f88..0d7aee5b 100644 --- a/runtime/romfs.c +++ b/runtime/romfs.c @@ -343,6 +343,70 @@ static void added_init(void) { rt_log("RomFS overlay: %zu files added to the RomFS", nadded); } +// The HeapDef table a bigger game resolution needs (resolution.c): its texture heap and that heap's parent grow. The +// base is an overlay that replaces the table (a mod's heap sizes stay), else the RomFS original; the grown table is +// written to /resolution/ and served in the base's place. +#define HEAPDEF "System/HeapSize/Product.Nin_NX_NVN.HeapDef.byml.zs" +static void heapdef_overlay(void) { + if (!res_heap_extra_kib()) return; + uint64_t i = lower(HEAPDEF); + if (i >= file_count || strcmp(entry_name(entry(i)), HEAPDEF)) { + rt_log("RomFS: %s missing; the game keeps its own resolution", HEAPDEF); + return; + } + Overlay *base = NULL; + for (size_t k = 0; k < noverlay; k++) + if (overlays[k].index == i) base = &overlays[k]; + HANDLE f = base ? open_read(base->path, 1) : image; + uint64_t off = base ? 0 : entry(i).offset, n = base ? base->size : entry(i).size; + void *in = n && n < (16u << 20) && f != INVALID_HANDLE_VALUE ? malloc((size_t)n) : NULL; + int ok = in && read_at(f, in, (uint32_t)n, off) == (int64_t)n; + if (base && f != INVALID_HANDLE_VALUE) CloseHandle(f); + void *out = NULL; + size_t out_n = 0; + ok = ok && res_heapdef_build(in, (size_t)n, &out, &out_n); + free(in); + if (!ok) return; + char dir[2100], file[2200]; + need(snprintf(dir, sizeof dir, "%s/resolution", rt_config()->profile) < (int)sizeof dir, "resolution path"); + need(snprintf(file, sizeof file, "%s/Product.Nin_NX_NVN.HeapDef.byml.zs", dir) < (int)sizeof file, "resolution path"); + wchar_t *wd = fs_wide(dir), *wf = fs_wide(file); + CreateDirectoryW(wd, NULL); + HANDLE w = CreateFileW(wf, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + DWORD put = 0; + ok = w != INVALID_HANDLE_VALUE && WriteFile(w, out, (DWORD)out_n, &put, NULL) && put == out_n; + if (w != INVALID_HANDLE_VALUE) CloseHandle(w); + free(wd); + free(wf); + free(out); + HANDLE r = ok ? open_read(file, 1) : INVALID_HANDLE_VALUE; + if (r == INVALID_HANDLE_VALUE) { + rt_log("RomFS: cannot write %s (error %lu); the game keeps its own resolution", file, GetLastError()); + return; + } + Identity id = identity_of(r); + CloseHandle(r); + char *copy = _strdup(file); + need(copy != NULL, "overlay path copy"); + if (base) { + free(base->path); + base->path = copy; + base->size = out_n; + base->id = id; + } else { + if (noverlay == overlay_cap) { + overlay_cap = overlay_cap ? overlay_cap * 2 : 16; + overlays = realloc(overlays, overlay_cap * sizeof *overlays); + need(overlays != NULL, "overlay table"); + } + char *rel = _strdup(HEAPDEF); + need(rel != NULL, "overlay path copy"); + overlays[noverlay++] = (Overlay){i, out_n, copy, rel, id}; + } + rt_log("RomFS overlay: %s (%zu bytes, grown heaps) replaces %s", file, out_n, base ? "the mod's table" : "the original"); + res_heapdef_served(); +} + static void overlay_init(void) { // TOTK_ROMFS_PATCHES unset: romfs-patches next to romfs-index.bin if it has a manifest (tools/make_romfs_patches.py) char def[2100]; @@ -355,6 +419,7 @@ static void overlay_init(void) { const char *dirs[2] = {patches, cfg_get("TOTK_ROMFS_MODS")}; for (int i = 0; i < 2; i++) if (dirs[i] && *dirs[i] && strcmp(dirs[i], "0")) overlay_load(dirs[i]); + heapdef_overlay(); added_init(); if (noverlay) qsort(overlays, noverlay, sizeof *overlays, overlay_order); for (size_t k = 1; k < noverlay; k++) diff --git a/runtime/shaders/ffx/LICENSE.txt b/runtime/shaders/ffx/LICENSE.txt new file mode 100644 index 00000000..324cba59 --- /dev/null +++ b/runtime/shaders/ffx/LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/runtime/shaders/ffx/ffx_a.h b/runtime/shaders/ffx/ffx_a.h new file mode 100644 index 00000000..d04bff55 --- /dev/null +++ b/runtime/shaders/ffx/ffx_a.h @@ -0,0 +1,2656 @@ +//============================================================================================================================== +// +// [A] SHADER PORTABILITY 1.20210629 +// +//============================================================================================================================== +// FidelityFX Super Resolution Sample +// +// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files(the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions : +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +//------------------------------------------------------------------------------------------------------------------------------ +// MIT LICENSE +// =========== +// Copyright (c) 2014 Michal Drobot (for concepts used in "FLOAT APPROXIMATIONS"). +// ----------- +// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, +// modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following conditions: +// ----------- +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +// Software. +// ----------- +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +//------------------------------------------------------------------------------------------------------------------------------ +// ABOUT +// ===== +// Common central point for high-level shading language and C portability for various shader headers. +//------------------------------------------------------------------------------------------------------------------------------ +// DEFINES +// ======= +// A_CPU ..... Include the CPU related code. +// A_GPU ..... Include the GPU related code. +// A_GLSL .... Using GLSL. +// A_HLSL .... Using HLSL. +// A_HLSL_6_2 Using HLSL 6.2 with new 'uint16_t' and related types (requires '-enable-16bit-types'). +// A_NO_16_BIT_CAST Don't use instructions that are not availabe in SPIR-V (needed for running A_HLSL_6_2 on Vulkan) +// A_GCC ..... Using a GCC compatible compiler (else assume MSVC compatible compiler by default). +// ======= +// A_BYTE .... Support 8-bit integer. +// A_HALF .... Support 16-bit integer and floating point. +// A_LONG .... Support 64-bit integer. +// A_DUBL .... Support 64-bit floating point. +// ======= +// A_WAVE .... Support wave-wide operations. +//------------------------------------------------------------------------------------------------------------------------------ +// To get #include "ffx_a.h" working in GLSL use '#extension GL_GOOGLE_include_directive:require'. +//------------------------------------------------------------------------------------------------------------------------------ +// SIMPLIFIED TYPE SYSTEM +// ====================== +// - All ints will be unsigned with exception of when signed is required. +// - Type naming simplified and shortened "A<#components>", +// - H = 16-bit float (half) +// - F = 32-bit float (float) +// - D = 64-bit float (double) +// - P = 1-bit integer (predicate, not using bool because 'B' is used for byte) +// - B = 8-bit integer (byte) +// - W = 16-bit integer (word) +// - U = 32-bit integer (unsigned) +// - L = 64-bit integer (long) +// - Using "AS<#components>" for signed when required. +//------------------------------------------------------------------------------------------------------------------------------ +// TODO +// ==== +// - Make sure 'ALerp*(a,b,m)' does 'b*m+(-a*m+a)' (2 ops). +//------------------------------------------------------------------------------------------------------------------------------ +// CHANGE LOG +// ========== +// 20200914 - Expanded wave ops and prx code. +// 20200713 - Added [ZOL] section, fixed serious bugs in sRGB and Rec.709 color conversion code, etc. +//============================================================================================================================== +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// COMMON +//============================================================================================================================== +#define A_2PI 6.28318530718 +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// +// CPU +// +// +//============================================================================================================================== +#ifdef A_CPU + // Supporting user defined overrides. + #ifndef A_RESTRICT + #define A_RESTRICT __restrict + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifndef A_STATIC + #define A_STATIC static + #endif +//------------------------------------------------------------------------------------------------------------------------------ + // Same types across CPU and GPU. + // Predicate uses 32-bit integer (C friendly bool). + typedef uint32_t AP1; + typedef float AF1; + typedef double AD1; + typedef uint8_t AB1; + typedef uint16_t AW1; + typedef uint32_t AU1; + typedef uint64_t AL1; + typedef int8_t ASB1; + typedef int16_t ASW1; + typedef int32_t ASU1; + typedef int64_t ASL1; +//------------------------------------------------------------------------------------------------------------------------------ + #define AD1_(a) ((AD1)(a)) + #define AF1_(a) ((AF1)(a)) + #define AL1_(a) ((AL1)(a)) + #define AU1_(a) ((AU1)(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define ASL1_(a) ((ASL1)(a)) + #define ASU1_(a) ((ASU1)(a)) +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AU1 AU1_AF1(AF1 a){union{AF1 f;AU1 u;}bits;bits.f=a;return bits.u;} +//------------------------------------------------------------------------------------------------------------------------------ + #define A_TRUE 1 + #define A_FALSE 0 +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// CPU/GPU PORTING +// +//------------------------------------------------------------------------------------------------------------------------------ +// Get CPU and GPU to share all setup code, without duplicate code paths. +// This uses a lower-case prefix for special vector constructs. +// - In C restrict pointers are used. +// - In the shading language, in/inout/out arguments are used. +// This depends on the ability to access a vector value in both languages via array syntax (aka color[2]). +//============================================================================================================================== +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// VECTOR ARGUMENT/RETURN/INITIALIZATION PORTABILITY +//============================================================================================================================== + #define retAD2 AD1 *A_RESTRICT + #define retAD3 AD1 *A_RESTRICT + #define retAD4 AD1 *A_RESTRICT + #define retAF2 AF1 *A_RESTRICT + #define retAF3 AF1 *A_RESTRICT + #define retAF4 AF1 *A_RESTRICT + #define retAL2 AL1 *A_RESTRICT + #define retAL3 AL1 *A_RESTRICT + #define retAL4 AL1 *A_RESTRICT + #define retAU2 AU1 *A_RESTRICT + #define retAU3 AU1 *A_RESTRICT + #define retAU4 AU1 *A_RESTRICT +//------------------------------------------------------------------------------------------------------------------------------ + #define inAD2 AD1 *A_RESTRICT + #define inAD3 AD1 *A_RESTRICT + #define inAD4 AD1 *A_RESTRICT + #define inAF2 AF1 *A_RESTRICT + #define inAF3 AF1 *A_RESTRICT + #define inAF4 AF1 *A_RESTRICT + #define inAL2 AL1 *A_RESTRICT + #define inAL3 AL1 *A_RESTRICT + #define inAL4 AL1 *A_RESTRICT + #define inAU2 AU1 *A_RESTRICT + #define inAU3 AU1 *A_RESTRICT + #define inAU4 AU1 *A_RESTRICT +//------------------------------------------------------------------------------------------------------------------------------ + #define inoutAD2 AD1 *A_RESTRICT + #define inoutAD3 AD1 *A_RESTRICT + #define inoutAD4 AD1 *A_RESTRICT + #define inoutAF2 AF1 *A_RESTRICT + #define inoutAF3 AF1 *A_RESTRICT + #define inoutAF4 AF1 *A_RESTRICT + #define inoutAL2 AL1 *A_RESTRICT + #define inoutAL3 AL1 *A_RESTRICT + #define inoutAL4 AL1 *A_RESTRICT + #define inoutAU2 AU1 *A_RESTRICT + #define inoutAU3 AU1 *A_RESTRICT + #define inoutAU4 AU1 *A_RESTRICT +//------------------------------------------------------------------------------------------------------------------------------ + #define outAD2 AD1 *A_RESTRICT + #define outAD3 AD1 *A_RESTRICT + #define outAD4 AD1 *A_RESTRICT + #define outAF2 AF1 *A_RESTRICT + #define outAF3 AF1 *A_RESTRICT + #define outAF4 AF1 *A_RESTRICT + #define outAL2 AL1 *A_RESTRICT + #define outAL3 AL1 *A_RESTRICT + #define outAL4 AL1 *A_RESTRICT + #define outAU2 AU1 *A_RESTRICT + #define outAU3 AU1 *A_RESTRICT + #define outAU4 AU1 *A_RESTRICT +//------------------------------------------------------------------------------------------------------------------------------ + #define varAD2(x) AD1 x[2] + #define varAD3(x) AD1 x[3] + #define varAD4(x) AD1 x[4] + #define varAF2(x) AF1 x[2] + #define varAF3(x) AF1 x[3] + #define varAF4(x) AF1 x[4] + #define varAL2(x) AL1 x[2] + #define varAL3(x) AL1 x[3] + #define varAL4(x) AL1 x[4] + #define varAU2(x) AU1 x[2] + #define varAU3(x) AU1 x[3] + #define varAU4(x) AU1 x[4] +//------------------------------------------------------------------------------------------------------------------------------ + #define initAD2(x,y) {x,y} + #define initAD3(x,y,z) {x,y,z} + #define initAD4(x,y,z,w) {x,y,z,w} + #define initAF2(x,y) {x,y} + #define initAF3(x,y,z) {x,y,z} + #define initAF4(x,y,z,w) {x,y,z,w} + #define initAL2(x,y) {x,y} + #define initAL3(x,y,z) {x,y,z} + #define initAL4(x,y,z,w) {x,y,z,w} + #define initAU2(x,y) {x,y} + #define initAU3(x,y,z) {x,y,z} + #define initAU4(x,y,z,w) {x,y,z,w} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// SCALAR RETURN OPS +//------------------------------------------------------------------------------------------------------------------------------ +// TODO +// ==== +// - Replace transcendentals with manual versions. +//============================================================================================================================== + #ifdef A_GCC + A_STATIC AD1 AAbsD1(AD1 a){return __builtin_fabs(a);} + A_STATIC AF1 AAbsF1(AF1 a){return __builtin_fabsf(a);} + A_STATIC AU1 AAbsSU1(AU1 a){return AU1_(__builtin_abs(ASU1_(a)));} + A_STATIC AL1 AAbsSL1(AL1 a){return AL1_(__builtin_llabs(ASL1_(a)));} + #else + A_STATIC AD1 AAbsD1(AD1 a){return fabs(a);} + A_STATIC AF1 AAbsF1(AF1 a){return fabsf(a);} + A_STATIC AU1 AAbsSU1(AU1 a){return AU1_(abs(ASU1_(a)));} + A_STATIC AL1 AAbsSL1(AL1 a){return AL1_(labs((long)ASL1_(a)));} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_GCC + A_STATIC AD1 ACosD1(AD1 a){return __builtin_cos(a);} + A_STATIC AF1 ACosF1(AF1 a){return __builtin_cosf(a);} + #else + A_STATIC AD1 ACosD1(AD1 a){return cos(a);} + A_STATIC AF1 ACosF1(AF1 a){return cosf(a);} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 ADotD2(inAD2 a,inAD2 b){return a[0]*b[0]+a[1]*b[1];} + A_STATIC AD1 ADotD3(inAD3 a,inAD3 b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2];} + A_STATIC AD1 ADotD4(inAD4 a,inAD4 b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3];} + A_STATIC AF1 ADotF2(inAF2 a,inAF2 b){return a[0]*b[0]+a[1]*b[1];} + A_STATIC AF1 ADotF3(inAF3 a,inAF3 b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2];} + A_STATIC AF1 ADotF4(inAF4 a,inAF4 b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3];} +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_GCC + A_STATIC AD1 AExp2D1(AD1 a){return __builtin_exp2(a);} + A_STATIC AF1 AExp2F1(AF1 a){return __builtin_exp2f(a);} + #else + A_STATIC AD1 AExp2D1(AD1 a){return exp2(a);} + A_STATIC AF1 AExp2F1(AF1 a){return exp2f(a);} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_GCC + A_STATIC AD1 AFloorD1(AD1 a){return __builtin_floor(a);} + A_STATIC AF1 AFloorF1(AF1 a){return __builtin_floorf(a);} + #else + A_STATIC AD1 AFloorD1(AD1 a){return floor(a);} + A_STATIC AF1 AFloorF1(AF1 a){return floorf(a);} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 ALerpD1(AD1 a,AD1 b,AD1 c){return b*c+(-a*c+a);} + A_STATIC AF1 ALerpF1(AF1 a,AF1 b,AF1 c){return b*c+(-a*c+a);} +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_GCC + A_STATIC AD1 ALog2D1(AD1 a){return __builtin_log2(a);} + A_STATIC AF1 ALog2F1(AF1 a){return __builtin_log2f(a);} + #else + A_STATIC AD1 ALog2D1(AD1 a){return log2(a);} + A_STATIC AF1 ALog2F1(AF1 a){return log2f(a);} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 AMaxD1(AD1 a,AD1 b){return a>b?a:b;} + A_STATIC AF1 AMaxF1(AF1 a,AF1 b){return a>b?a:b;} + A_STATIC AL1 AMaxL1(AL1 a,AL1 b){return a>b?a:b;} + A_STATIC AU1 AMaxU1(AU1 a,AU1 b){return a>b?a:b;} +//------------------------------------------------------------------------------------------------------------------------------ + // These follow the convention that A integer types don't have signage, until they are operated on. + A_STATIC AL1 AMaxSL1(AL1 a,AL1 b){return (ASL1_(a)>ASL1_(b))?a:b;} + A_STATIC AU1 AMaxSU1(AU1 a,AU1 b){return (ASU1_(a)>ASU1_(b))?a:b;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 AMinD1(AD1 a,AD1 b){return a>ASL1_(b));} + A_STATIC AU1 AShrSU1(AU1 a,AU1 b){return AU1_(ASU1_(a)>>ASU1_(b));} +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_GCC + A_STATIC AD1 ASinD1(AD1 a){return __builtin_sin(a);} + A_STATIC AF1 ASinF1(AF1 a){return __builtin_sinf(a);} + #else + A_STATIC AD1 ASinD1(AD1 a){return sin(a);} + A_STATIC AF1 ASinF1(AF1 a){return sinf(a);} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_GCC + A_STATIC AD1 ASqrtD1(AD1 a){return __builtin_sqrt(a);} + A_STATIC AF1 ASqrtF1(AF1 a){return __builtin_sqrtf(a);} + #else + A_STATIC AD1 ASqrtD1(AD1 a){return sqrt(a);} + A_STATIC AF1 ASqrtF1(AF1 a){return sqrtf(a);} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// SCALAR RETURN OPS - DEPENDENT +//============================================================================================================================== + A_STATIC AD1 AClampD1(AD1 x,AD1 n,AD1 m){return AMaxD1(n,AMinD1(x,m));} + A_STATIC AF1 AClampF1(AF1 x,AF1 n,AF1 m){return AMaxF1(n,AMinF1(x,m));} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 AFractD1(AD1 a){return a-AFloorD1(a);} + A_STATIC AF1 AFractF1(AF1 a){return a-AFloorF1(a);} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 APowD1(AD1 a,AD1 b){return AExp2D1(b*ALog2D1(a));} + A_STATIC AF1 APowF1(AF1 a,AF1 b){return AExp2F1(b*ALog2F1(a));} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 ARsqD1(AD1 a){return ARcpD1(ASqrtD1(a));} + A_STATIC AF1 ARsqF1(AF1 a){return ARcpF1(ASqrtF1(a));} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC AD1 ASatD1(AD1 a){return AMinD1(1.0,AMaxD1(0.0,a));} + A_STATIC AF1 ASatF1(AF1 a){return AMinF1(1.0f,AMaxF1(0.0f,a));} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// VECTOR OPS +//------------------------------------------------------------------------------------------------------------------------------ +// These are added as needed for production or prototyping, so not necessarily a complete set. +// They follow a convention of taking in a destination and also returning the destination value to increase utility. +//============================================================================================================================== + A_STATIC retAD2 opAAbsD2(outAD2 d,inAD2 a){d[0]=AAbsD1(a[0]);d[1]=AAbsD1(a[1]);return d;} + A_STATIC retAD3 opAAbsD3(outAD3 d,inAD3 a){d[0]=AAbsD1(a[0]);d[1]=AAbsD1(a[1]);d[2]=AAbsD1(a[2]);return d;} + A_STATIC retAD4 opAAbsD4(outAD4 d,inAD4 a){d[0]=AAbsD1(a[0]);d[1]=AAbsD1(a[1]);d[2]=AAbsD1(a[2]);d[3]=AAbsD1(a[3]);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAAbsF2(outAF2 d,inAF2 a){d[0]=AAbsF1(a[0]);d[1]=AAbsF1(a[1]);return d;} + A_STATIC retAF3 opAAbsF3(outAF3 d,inAF3 a){d[0]=AAbsF1(a[0]);d[1]=AAbsF1(a[1]);d[2]=AAbsF1(a[2]);return d;} + A_STATIC retAF4 opAAbsF4(outAF4 d,inAF4 a){d[0]=AAbsF1(a[0]);d[1]=AAbsF1(a[1]);d[2]=AAbsF1(a[2]);d[3]=AAbsF1(a[3]);return d;} +//============================================================================================================================== + A_STATIC retAD2 opAAddD2(outAD2 d,inAD2 a,inAD2 b){d[0]=a[0]+b[0];d[1]=a[1]+b[1];return d;} + A_STATIC retAD3 opAAddD3(outAD3 d,inAD3 a,inAD3 b){d[0]=a[0]+b[0];d[1]=a[1]+b[1];d[2]=a[2]+b[2];return d;} + A_STATIC retAD4 opAAddD4(outAD4 d,inAD4 a,inAD4 b){d[0]=a[0]+b[0];d[1]=a[1]+b[1];d[2]=a[2]+b[2];d[3]=a[3]+b[3];return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAAddF2(outAF2 d,inAF2 a,inAF2 b){d[0]=a[0]+b[0];d[1]=a[1]+b[1];return d;} + A_STATIC retAF3 opAAddF3(outAF3 d,inAF3 a,inAF3 b){d[0]=a[0]+b[0];d[1]=a[1]+b[1];d[2]=a[2]+b[2];return d;} + A_STATIC retAF4 opAAddF4(outAF4 d,inAF4 a,inAF4 b){d[0]=a[0]+b[0];d[1]=a[1]+b[1];d[2]=a[2]+b[2];d[3]=a[3]+b[3];return d;} +//============================================================================================================================== + A_STATIC retAD2 opAAddOneD2(outAD2 d,inAD2 a,AD1 b){d[0]=a[0]+b;d[1]=a[1]+b;return d;} + A_STATIC retAD3 opAAddOneD3(outAD3 d,inAD3 a,AD1 b){d[0]=a[0]+b;d[1]=a[1]+b;d[2]=a[2]+b;return d;} + A_STATIC retAD4 opAAddOneD4(outAD4 d,inAD4 a,AD1 b){d[0]=a[0]+b;d[1]=a[1]+b;d[2]=a[2]+b;d[3]=a[3]+b;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAAddOneF2(outAF2 d,inAF2 a,AF1 b){d[0]=a[0]+b;d[1]=a[1]+b;return d;} + A_STATIC retAF3 opAAddOneF3(outAF3 d,inAF3 a,AF1 b){d[0]=a[0]+b;d[1]=a[1]+b;d[2]=a[2]+b;return d;} + A_STATIC retAF4 opAAddOneF4(outAF4 d,inAF4 a,AF1 b){d[0]=a[0]+b;d[1]=a[1]+b;d[2]=a[2]+b;d[3]=a[3]+b;return d;} +//============================================================================================================================== + A_STATIC retAD2 opACpyD2(outAD2 d,inAD2 a){d[0]=a[0];d[1]=a[1];return d;} + A_STATIC retAD3 opACpyD3(outAD3 d,inAD3 a){d[0]=a[0];d[1]=a[1];d[2]=a[2];return d;} + A_STATIC retAD4 opACpyD4(outAD4 d,inAD4 a){d[0]=a[0];d[1]=a[1];d[2]=a[2];d[3]=a[3];return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opACpyF2(outAF2 d,inAF2 a){d[0]=a[0];d[1]=a[1];return d;} + A_STATIC retAF3 opACpyF3(outAF3 d,inAF3 a){d[0]=a[0];d[1]=a[1];d[2]=a[2];return d;} + A_STATIC retAF4 opACpyF4(outAF4 d,inAF4 a){d[0]=a[0];d[1]=a[1];d[2]=a[2];d[3]=a[3];return d;} +//============================================================================================================================== + A_STATIC retAD2 opALerpD2(outAD2 d,inAD2 a,inAD2 b,inAD2 c){d[0]=ALerpD1(a[0],b[0],c[0]);d[1]=ALerpD1(a[1],b[1],c[1]);return d;} + A_STATIC retAD3 opALerpD3(outAD3 d,inAD3 a,inAD3 b,inAD3 c){d[0]=ALerpD1(a[0],b[0],c[0]);d[1]=ALerpD1(a[1],b[1],c[1]);d[2]=ALerpD1(a[2],b[2],c[2]);return d;} + A_STATIC retAD4 opALerpD4(outAD4 d,inAD4 a,inAD4 b,inAD4 c){d[0]=ALerpD1(a[0],b[0],c[0]);d[1]=ALerpD1(a[1],b[1],c[1]);d[2]=ALerpD1(a[2],b[2],c[2]);d[3]=ALerpD1(a[3],b[3],c[3]);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opALerpF2(outAF2 d,inAF2 a,inAF2 b,inAF2 c){d[0]=ALerpF1(a[0],b[0],c[0]);d[1]=ALerpF1(a[1],b[1],c[1]);return d;} + A_STATIC retAF3 opALerpF3(outAF3 d,inAF3 a,inAF3 b,inAF3 c){d[0]=ALerpF1(a[0],b[0],c[0]);d[1]=ALerpF1(a[1],b[1],c[1]);d[2]=ALerpF1(a[2],b[2],c[2]);return d;} + A_STATIC retAF4 opALerpF4(outAF4 d,inAF4 a,inAF4 b,inAF4 c){d[0]=ALerpF1(a[0],b[0],c[0]);d[1]=ALerpF1(a[1],b[1],c[1]);d[2]=ALerpF1(a[2],b[2],c[2]);d[3]=ALerpF1(a[3],b[3],c[3]);return d;} +//============================================================================================================================== + A_STATIC retAD2 opALerpOneD2(outAD2 d,inAD2 a,inAD2 b,AD1 c){d[0]=ALerpD1(a[0],b[0],c);d[1]=ALerpD1(a[1],b[1],c);return d;} + A_STATIC retAD3 opALerpOneD3(outAD3 d,inAD3 a,inAD3 b,AD1 c){d[0]=ALerpD1(a[0],b[0],c);d[1]=ALerpD1(a[1],b[1],c);d[2]=ALerpD1(a[2],b[2],c);return d;} + A_STATIC retAD4 opALerpOneD4(outAD4 d,inAD4 a,inAD4 b,AD1 c){d[0]=ALerpD1(a[0],b[0],c);d[1]=ALerpD1(a[1],b[1],c);d[2]=ALerpD1(a[2],b[2],c);d[3]=ALerpD1(a[3],b[3],c);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opALerpOneF2(outAF2 d,inAF2 a,inAF2 b,AF1 c){d[0]=ALerpF1(a[0],b[0],c);d[1]=ALerpF1(a[1],b[1],c);return d;} + A_STATIC retAF3 opALerpOneF3(outAF3 d,inAF3 a,inAF3 b,AF1 c){d[0]=ALerpF1(a[0],b[0],c);d[1]=ALerpF1(a[1],b[1],c);d[2]=ALerpF1(a[2],b[2],c);return d;} + A_STATIC retAF4 opALerpOneF4(outAF4 d,inAF4 a,inAF4 b,AF1 c){d[0]=ALerpF1(a[0],b[0],c);d[1]=ALerpF1(a[1],b[1],c);d[2]=ALerpF1(a[2],b[2],c);d[3]=ALerpF1(a[3],b[3],c);return d;} +//============================================================================================================================== + A_STATIC retAD2 opAMaxD2(outAD2 d,inAD2 a,inAD2 b){d[0]=AMaxD1(a[0],b[0]);d[1]=AMaxD1(a[1],b[1]);return d;} + A_STATIC retAD3 opAMaxD3(outAD3 d,inAD3 a,inAD3 b){d[0]=AMaxD1(a[0],b[0]);d[1]=AMaxD1(a[1],b[1]);d[2]=AMaxD1(a[2],b[2]);return d;} + A_STATIC retAD4 opAMaxD4(outAD4 d,inAD4 a,inAD4 b){d[0]=AMaxD1(a[0],b[0]);d[1]=AMaxD1(a[1],b[1]);d[2]=AMaxD1(a[2],b[2]);d[3]=AMaxD1(a[3],b[3]);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAMaxF2(outAF2 d,inAF2 a,inAF2 b){d[0]=AMaxF1(a[0],b[0]);d[1]=AMaxF1(a[1],b[1]);return d;} + A_STATIC retAF3 opAMaxF3(outAF3 d,inAF3 a,inAF3 b){d[0]=AMaxF1(a[0],b[0]);d[1]=AMaxF1(a[1],b[1]);d[2]=AMaxF1(a[2],b[2]);return d;} + A_STATIC retAF4 opAMaxF4(outAF4 d,inAF4 a,inAF4 b){d[0]=AMaxF1(a[0],b[0]);d[1]=AMaxF1(a[1],b[1]);d[2]=AMaxF1(a[2],b[2]);d[3]=AMaxF1(a[3],b[3]);return d;} +//============================================================================================================================== + A_STATIC retAD2 opAMinD2(outAD2 d,inAD2 a,inAD2 b){d[0]=AMinD1(a[0],b[0]);d[1]=AMinD1(a[1],b[1]);return d;} + A_STATIC retAD3 opAMinD3(outAD3 d,inAD3 a,inAD3 b){d[0]=AMinD1(a[0],b[0]);d[1]=AMinD1(a[1],b[1]);d[2]=AMinD1(a[2],b[2]);return d;} + A_STATIC retAD4 opAMinD4(outAD4 d,inAD4 a,inAD4 b){d[0]=AMinD1(a[0],b[0]);d[1]=AMinD1(a[1],b[1]);d[2]=AMinD1(a[2],b[2]);d[3]=AMinD1(a[3],b[3]);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAMinF2(outAF2 d,inAF2 a,inAF2 b){d[0]=AMinF1(a[0],b[0]);d[1]=AMinF1(a[1],b[1]);return d;} + A_STATIC retAF3 opAMinF3(outAF3 d,inAF3 a,inAF3 b){d[0]=AMinF1(a[0],b[0]);d[1]=AMinF1(a[1],b[1]);d[2]=AMinF1(a[2],b[2]);return d;} + A_STATIC retAF4 opAMinF4(outAF4 d,inAF4 a,inAF4 b){d[0]=AMinF1(a[0],b[0]);d[1]=AMinF1(a[1],b[1]);d[2]=AMinF1(a[2],b[2]);d[3]=AMinF1(a[3],b[3]);return d;} +//============================================================================================================================== + A_STATIC retAD2 opAMulD2(outAD2 d,inAD2 a,inAD2 b){d[0]=a[0]*b[0];d[1]=a[1]*b[1];return d;} + A_STATIC retAD3 opAMulD3(outAD3 d,inAD3 a,inAD3 b){d[0]=a[0]*b[0];d[1]=a[1]*b[1];d[2]=a[2]*b[2];return d;} + A_STATIC retAD4 opAMulD4(outAD4 d,inAD4 a,inAD4 b){d[0]=a[0]*b[0];d[1]=a[1]*b[1];d[2]=a[2]*b[2];d[3]=a[3]*b[3];return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAMulF2(outAF2 d,inAF2 a,inAF2 b){d[0]=a[0]*b[0];d[1]=a[1]*b[1];return d;} + A_STATIC retAF3 opAMulF3(outAF3 d,inAF3 a,inAF3 b){d[0]=a[0]*b[0];d[1]=a[1]*b[1];d[2]=a[2]*b[2];return d;} + A_STATIC retAF4 opAMulF4(outAF4 d,inAF4 a,inAF4 b){d[0]=a[0]*b[0];d[1]=a[1]*b[1];d[2]=a[2]*b[2];d[3]=a[3]*b[3];return d;} +//============================================================================================================================== + A_STATIC retAD2 opAMulOneD2(outAD2 d,inAD2 a,AD1 b){d[0]=a[0]*b;d[1]=a[1]*b;return d;} + A_STATIC retAD3 opAMulOneD3(outAD3 d,inAD3 a,AD1 b){d[0]=a[0]*b;d[1]=a[1]*b;d[2]=a[2]*b;return d;} + A_STATIC retAD4 opAMulOneD4(outAD4 d,inAD4 a,AD1 b){d[0]=a[0]*b;d[1]=a[1]*b;d[2]=a[2]*b;d[3]=a[3]*b;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opAMulOneF2(outAF2 d,inAF2 a,AF1 b){d[0]=a[0]*b;d[1]=a[1]*b;return d;} + A_STATIC retAF3 opAMulOneF3(outAF3 d,inAF3 a,AF1 b){d[0]=a[0]*b;d[1]=a[1]*b;d[2]=a[2]*b;return d;} + A_STATIC retAF4 opAMulOneF4(outAF4 d,inAF4 a,AF1 b){d[0]=a[0]*b;d[1]=a[1]*b;d[2]=a[2]*b;d[3]=a[3]*b;return d;} +//============================================================================================================================== + A_STATIC retAD2 opANegD2(outAD2 d,inAD2 a){d[0]=-a[0];d[1]=-a[1];return d;} + A_STATIC retAD3 opANegD3(outAD3 d,inAD3 a){d[0]=-a[0];d[1]=-a[1];d[2]=-a[2];return d;} + A_STATIC retAD4 opANegD4(outAD4 d,inAD4 a){d[0]=-a[0];d[1]=-a[1];d[2]=-a[2];d[3]=-a[3];return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opANegF2(outAF2 d,inAF2 a){d[0]=-a[0];d[1]=-a[1];return d;} + A_STATIC retAF3 opANegF3(outAF3 d,inAF3 a){d[0]=-a[0];d[1]=-a[1];d[2]=-a[2];return d;} + A_STATIC retAF4 opANegF4(outAF4 d,inAF4 a){d[0]=-a[0];d[1]=-a[1];d[2]=-a[2];d[3]=-a[3];return d;} +//============================================================================================================================== + A_STATIC retAD2 opARcpD2(outAD2 d,inAD2 a){d[0]=ARcpD1(a[0]);d[1]=ARcpD1(a[1]);return d;} + A_STATIC retAD3 opARcpD3(outAD3 d,inAD3 a){d[0]=ARcpD1(a[0]);d[1]=ARcpD1(a[1]);d[2]=ARcpD1(a[2]);return d;} + A_STATIC retAD4 opARcpD4(outAD4 d,inAD4 a){d[0]=ARcpD1(a[0]);d[1]=ARcpD1(a[1]);d[2]=ARcpD1(a[2]);d[3]=ARcpD1(a[3]);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + A_STATIC retAF2 opARcpF2(outAF2 d,inAF2 a){d[0]=ARcpF1(a[0]);d[1]=ARcpF1(a[1]);return d;} + A_STATIC retAF3 opARcpF3(outAF3 d,inAF3 a){d[0]=ARcpF1(a[0]);d[1]=ARcpF1(a[1]);d[2]=ARcpF1(a[2]);return d;} + A_STATIC retAF4 opARcpF4(outAF4 d,inAF4 a){d[0]=ARcpF1(a[0]);d[1]=ARcpF1(a[1]);d[2]=ARcpF1(a[2]);d[3]=ARcpF1(a[3]);return d;} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// HALF FLOAT PACKING +//============================================================================================================================== + // Convert float to half (in lower 16-bits of output). + // Same fast technique as documented here: ftp://ftp.fox-toolkit.org/pub/fasthalffloatconversion.pdf + // Supports denormals. + // Conversion rules are to make computations possibly "safer" on the GPU, + // -INF & -NaN -> -65504 + // +INF & +NaN -> +65504 + A_STATIC AU1 AU1_AH1_AF1(AF1 f){ + static AW1 base[512]={ + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, + 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0002,0x0004,0x0008,0x0010,0x0020,0x0040,0x0080,0x0100, + 0x0200,0x0400,0x0800,0x0c00,0x1000,0x1400,0x1800,0x1c00,0x2000,0x2400,0x2800,0x2c00,0x3000,0x3400,0x3800,0x3c00, + 0x4000,0x4400,0x4800,0x4c00,0x5000,0x5400,0x5800,0x5c00,0x6000,0x6400,0x6800,0x6c00,0x7000,0x7400,0x7800,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff,0x7bff, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000, + 0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8001,0x8002,0x8004,0x8008,0x8010,0x8020,0x8040,0x8080,0x8100, + 0x8200,0x8400,0x8800,0x8c00,0x9000,0x9400,0x9800,0x9c00,0xa000,0xa400,0xa800,0xac00,0xb000,0xb400,0xb800,0xbc00, + 0xc000,0xc400,0xc800,0xcc00,0xd000,0xd400,0xd800,0xdc00,0xe000,0xe400,0xe800,0xec00,0xf000,0xf400,0xf800,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff, + 0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff,0xfbff}; + static AB1 shift[512]={ + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x17,0x16,0x15,0x14,0x13,0x12,0x11,0x10,0x0f, + 0x0e,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d, + 0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x17,0x16,0x15,0x14,0x13,0x12,0x11,0x10,0x0f, + 0x0e,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d, + 0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x0d,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, + 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18}; + union{AF1 f;AU1 u;}bits;bits.f=f;AU1 u=bits.u;AU1 i=u>>23;return (AU1)(base[i])+((u&0x7fffff)>>shift[i]);} +//------------------------------------------------------------------------------------------------------------------------------ + // Used to output packed constant. + A_STATIC AU1 AU1_AH2_AF2(inAF2 a){return AU1_AH1_AF1(a[0])+(AU1_AH1_AF1(a[1])<<16);} +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// +// GLSL +// +// +//============================================================================================================================== +#if defined(A_GLSL) && defined(A_GPU) + #ifndef A_SKIP_EXT + #ifdef A_HALF + #extension GL_EXT_shader_16bit_storage:require + #extension GL_EXT_shader_explicit_arithmetic_types:require + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_LONG + #extension GL_ARB_gpu_shader_int64:require + #extension GL_NV_shader_atomic_int64:require + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_WAVE + #extension GL_KHR_shader_subgroup_arithmetic:require + #extension GL_KHR_shader_subgroup_ballot:require + #extension GL_KHR_shader_subgroup_quad:require + #extension GL_KHR_shader_subgroup_shuffle:require + #endif + #endif +//============================================================================================================================== + #define AP1 bool + #define AP2 bvec2 + #define AP3 bvec3 + #define AP4 bvec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AF1 float + #define AF2 vec2 + #define AF3 vec3 + #define AF4 vec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1 uint + #define AU2 uvec2 + #define AU3 uvec3 + #define AU4 uvec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASU1 int + #define ASU2 ivec2 + #define ASU3 ivec3 + #define ASU4 ivec4 +//============================================================================================================================== + #define AF1_AU1(x) uintBitsToFloat(AU1(x)) + #define AF2_AU2(x) uintBitsToFloat(AU2(x)) + #define AF3_AU3(x) uintBitsToFloat(AU3(x)) + #define AF4_AU4(x) uintBitsToFloat(AU4(x)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1_AF1(x) floatBitsToUint(AF1(x)) + #define AU2_AF2(x) floatBitsToUint(AF2(x)) + #define AU3_AF3(x) floatBitsToUint(AF3(x)) + #define AU4_AF4(x) floatBitsToUint(AF4(x)) +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AU1_AH1_AF1_x(AF1 a){return packHalf2x16(AF2(a,0.0));} + #define AU1_AH1_AF1(a) AU1_AH1_AF1_x(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1_AH2_AF2 packHalf2x16 + #define AU1_AW2Unorm_AF2 packUnorm2x16 + #define AU1_AB4Unorm_AF4 packUnorm4x8 +//------------------------------------------------------------------------------------------------------------------------------ + #define AF2_AH2_AU1 unpackHalf2x16 + #define AF2_AW2Unorm_AU1 unpackUnorm2x16 + #define AF4_AB4Unorm_AU1 unpackUnorm4x8 +//============================================================================================================================== + AF1 AF1_x(AF1 a){return AF1(a);} + AF2 AF2_x(AF1 a){return AF2(a,a);} + AF3 AF3_x(AF1 a){return AF3(a,a,a);} + AF4 AF4_x(AF1 a){return AF4(a,a,a,a);} + #define AF1_(a) AF1_x(AF1(a)) + #define AF2_(a) AF2_x(AF1(a)) + #define AF3_(a) AF3_x(AF1(a)) + #define AF4_(a) AF4_x(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AU1_x(AU1 a){return AU1(a);} + AU2 AU2_x(AU1 a){return AU2(a,a);} + AU3 AU3_x(AU1 a){return AU3(a,a,a);} + AU4 AU4_x(AU1 a){return AU4(a,a,a,a);} + #define AU1_(a) AU1_x(AU1(a)) + #define AU2_(a) AU2_x(AU1(a)) + #define AU3_(a) AU3_x(AU1(a)) + #define AU4_(a) AU4_x(AU1(a)) +//============================================================================================================================== + AU1 AAbsSU1(AU1 a){return AU1(abs(ASU1(a)));} + AU2 AAbsSU2(AU2 a){return AU2(abs(ASU2(a)));} + AU3 AAbsSU3(AU3 a){return AU3(abs(ASU3(a)));} + AU4 AAbsSU4(AU4 a){return AU4(abs(ASU4(a)));} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 ABfe(AU1 src,AU1 off,AU1 bits){return bitfieldExtract(src,ASU1(off),ASU1(bits));} + AU1 ABfi(AU1 src,AU1 ins,AU1 mask){return (ins&mask)|(src&(~mask));} + // Proxy for V_BFI_B32 where the 'mask' is set as 'bits', 'mask=(1<>ASU1(b));} + AU2 AShrSU2(AU2 a,AU2 b){return AU2(ASU2(a)>>ASU2(b));} + AU3 AShrSU3(AU3 a,AU3 b){return AU3(ASU3(a)>>ASU3(b));} + AU4 AShrSU4(AU4 a,AU4 b){return AU4(ASU4(a)>>ASU4(b));} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// GLSL BYTE +//============================================================================================================================== + #ifdef A_BYTE + #define AB1 uint8_t + #define AB2 u8vec2 + #define AB3 u8vec3 + #define AB4 u8vec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASB1 int8_t + #define ASB2 i8vec2 + #define ASB3 i8vec3 + #define ASB4 i8vec4 +//------------------------------------------------------------------------------------------------------------------------------ + AB1 AB1_x(AB1 a){return AB1(a);} + AB2 AB2_x(AB1 a){return AB2(a,a);} + AB3 AB3_x(AB1 a){return AB3(a,a,a);} + AB4 AB4_x(AB1 a){return AB4(a,a,a,a);} + #define AB1_(a) AB1_x(AB1(a)) + #define AB2_(a) AB2_x(AB1(a)) + #define AB3_(a) AB3_x(AB1(a)) + #define AB4_(a) AB4_x(AB1(a)) + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// GLSL HALF +//============================================================================================================================== + #ifdef A_HALF + #define AH1 float16_t + #define AH2 f16vec2 + #define AH3 f16vec3 + #define AH4 f16vec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AW1 uint16_t + #define AW2 u16vec2 + #define AW3 u16vec3 + #define AW4 u16vec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASW1 int16_t + #define ASW2 i16vec2 + #define ASW3 i16vec3 + #define ASW4 i16vec4 +//============================================================================================================================== + #define AH2_AU1(x) unpackFloat2x16(AU1(x)) + AH4 AH4_AU2_x(AU2 x){return AH4(unpackFloat2x16(x.x),unpackFloat2x16(x.y));} + #define AH4_AU2(x) AH4_AU2_x(AU2(x)) + #define AW2_AU1(x) unpackUint2x16(AU1(x)) + #define AW4_AU2(x) unpackUint4x16(pack64(AU2(x))) +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1_AH2(x) packFloat2x16(AH2(x)) + AU2 AU2_AH4_x(AH4 x){return AU2(packFloat2x16(x.xy),packFloat2x16(x.zw));} + #define AU2_AH4(x) AU2_AH4_x(AH4(x)) + #define AU1_AW2(x) packUint2x16(AW2(x)) + #define AU2_AW4(x) unpack32(packUint4x16(AW4(x))) +//============================================================================================================================== + #define AW1_AH1(x) halfBitsToUint16(AH1(x)) + #define AW2_AH2(x) halfBitsToUint16(AH2(x)) + #define AW3_AH3(x) halfBitsToUint16(AH3(x)) + #define AW4_AH4(x) halfBitsToUint16(AH4(x)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AH1_AW1(x) uint16BitsToHalf(AW1(x)) + #define AH2_AW2(x) uint16BitsToHalf(AW2(x)) + #define AH3_AW3(x) uint16BitsToHalf(AW3(x)) + #define AH4_AW4(x) uint16BitsToHalf(AW4(x)) +//============================================================================================================================== + AH1 AH1_x(AH1 a){return AH1(a);} + AH2 AH2_x(AH1 a){return AH2(a,a);} + AH3 AH3_x(AH1 a){return AH3(a,a,a);} + AH4 AH4_x(AH1 a){return AH4(a,a,a,a);} + #define AH1_(a) AH1_x(AH1(a)) + #define AH2_(a) AH2_x(AH1(a)) + #define AH3_(a) AH3_x(AH1(a)) + #define AH4_(a) AH4_x(AH1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AW1_x(AW1 a){return AW1(a);} + AW2 AW2_x(AW1 a){return AW2(a,a);} + AW3 AW3_x(AW1 a){return AW3(a,a,a);} + AW4 AW4_x(AW1 a){return AW4(a,a,a,a);} + #define AW1_(a) AW1_x(AW1(a)) + #define AW2_(a) AW2_x(AW1(a)) + #define AW3_(a) AW3_x(AW1(a)) + #define AW4_(a) AW4_x(AW1(a)) +//============================================================================================================================== + AW1 AAbsSW1(AW1 a){return AW1(abs(ASW1(a)));} + AW2 AAbsSW2(AW2 a){return AW2(abs(ASW2(a)));} + AW3 AAbsSW3(AW3 a){return AW3(abs(ASW3(a)));} + AW4 AAbsSW4(AW4 a){return AW4(abs(ASW4(a)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AClampH1(AH1 x,AH1 n,AH1 m){return clamp(x,n,m);} + AH2 AClampH2(AH2 x,AH2 n,AH2 m){return clamp(x,n,m);} + AH3 AClampH3(AH3 x,AH3 n,AH3 m){return clamp(x,n,m);} + AH4 AClampH4(AH4 x,AH4 n,AH4 m){return clamp(x,n,m);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AFractH1(AH1 x){return fract(x);} + AH2 AFractH2(AH2 x){return fract(x);} + AH3 AFractH3(AH3 x){return fract(x);} + AH4 AFractH4(AH4 x){return fract(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ALerpH1(AH1 x,AH1 y,AH1 a){return mix(x,y,a);} + AH2 ALerpH2(AH2 x,AH2 y,AH2 a){return mix(x,y,a);} + AH3 ALerpH3(AH3 x,AH3 y,AH3 a){return mix(x,y,a);} + AH4 ALerpH4(AH4 x,AH4 y,AH4 a){return mix(x,y,a);} +//------------------------------------------------------------------------------------------------------------------------------ + // No packed version of max3. + AH1 AMax3H1(AH1 x,AH1 y,AH1 z){return max(x,max(y,z));} + AH2 AMax3H2(AH2 x,AH2 y,AH2 z){return max(x,max(y,z));} + AH3 AMax3H3(AH3 x,AH3 y,AH3 z){return max(x,max(y,z));} + AH4 AMax3H4(AH4 x,AH4 y,AH4 z){return max(x,max(y,z));} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AMaxSW1(AW1 a,AW1 b){return AW1(max(ASU1(a),ASU1(b)));} + AW2 AMaxSW2(AW2 a,AW2 b){return AW2(max(ASU2(a),ASU2(b)));} + AW3 AMaxSW3(AW3 a,AW3 b){return AW3(max(ASU3(a),ASU3(b)));} + AW4 AMaxSW4(AW4 a,AW4 b){return AW4(max(ASU4(a),ASU4(b)));} +//------------------------------------------------------------------------------------------------------------------------------ + // No packed version of min3. + AH1 AMin3H1(AH1 x,AH1 y,AH1 z){return min(x,min(y,z));} + AH2 AMin3H2(AH2 x,AH2 y,AH2 z){return min(x,min(y,z));} + AH3 AMin3H3(AH3 x,AH3 y,AH3 z){return min(x,min(y,z));} + AH4 AMin3H4(AH4 x,AH4 y,AH4 z){return min(x,min(y,z));} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AMinSW1(AW1 a,AW1 b){return AW1(min(ASU1(a),ASU1(b)));} + AW2 AMinSW2(AW2 a,AW2 b){return AW2(min(ASU2(a),ASU2(b)));} + AW3 AMinSW3(AW3 a,AW3 b){return AW3(min(ASU3(a),ASU3(b)));} + AW4 AMinSW4(AW4 a,AW4 b){return AW4(min(ASU4(a),ASU4(b)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ARcpH1(AH1 x){return AH1_(1.0)/x;} + AH2 ARcpH2(AH2 x){return AH2_(1.0)/x;} + AH3 ARcpH3(AH3 x){return AH3_(1.0)/x;} + AH4 ARcpH4(AH4 x){return AH4_(1.0)/x;} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ARsqH1(AH1 x){return AH1_(1.0)/sqrt(x);} + AH2 ARsqH2(AH2 x){return AH2_(1.0)/sqrt(x);} + AH3 ARsqH3(AH3 x){return AH3_(1.0)/sqrt(x);} + AH4 ARsqH4(AH4 x){return AH4_(1.0)/sqrt(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ASatH1(AH1 x){return clamp(x,AH1_(0.0),AH1_(1.0));} + AH2 ASatH2(AH2 x){return clamp(x,AH2_(0.0),AH2_(1.0));} + AH3 ASatH3(AH3 x){return clamp(x,AH3_(0.0),AH3_(1.0));} + AH4 ASatH4(AH4 x){return clamp(x,AH4_(0.0),AH4_(1.0));} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AShrSW1(AW1 a,AW1 b){return AW1(ASW1(a)>>ASW1(b));} + AW2 AShrSW2(AW2 a,AW2 b){return AW2(ASW2(a)>>ASW2(b));} + AW3 AShrSW3(AW3 a,AW3 b){return AW3(ASW3(a)>>ASW3(b));} + AW4 AShrSW4(AW4 a,AW4 b){return AW4(ASW4(a)>>ASW4(b));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// GLSL DOUBLE +//============================================================================================================================== + #ifdef A_DUBL + #define AD1 double + #define AD2 dvec2 + #define AD3 dvec3 + #define AD4 dvec4 +//------------------------------------------------------------------------------------------------------------------------------ + AD1 AD1_x(AD1 a){return AD1(a);} + AD2 AD2_x(AD1 a){return AD2(a,a);} + AD3 AD3_x(AD1 a){return AD3(a,a,a);} + AD4 AD4_x(AD1 a){return AD4(a,a,a,a);} + #define AD1_(a) AD1_x(AD1(a)) + #define AD2_(a) AD2_x(AD1(a)) + #define AD3_(a) AD3_x(AD1(a)) + #define AD4_(a) AD4_x(AD1(a)) +//============================================================================================================================== + AD1 AFractD1(AD1 x){return fract(x);} + AD2 AFractD2(AD2 x){return fract(x);} + AD3 AFractD3(AD3 x){return fract(x);} + AD4 AFractD4(AD4 x){return fract(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ALerpD1(AD1 x,AD1 y,AD1 a){return mix(x,y,a);} + AD2 ALerpD2(AD2 x,AD2 y,AD2 a){return mix(x,y,a);} + AD3 ALerpD3(AD3 x,AD3 y,AD3 a){return mix(x,y,a);} + AD4 ALerpD4(AD4 x,AD4 y,AD4 a){return mix(x,y,a);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ARcpD1(AD1 x){return AD1_(1.0)/x;} + AD2 ARcpD2(AD2 x){return AD2_(1.0)/x;} + AD3 ARcpD3(AD3 x){return AD3_(1.0)/x;} + AD4 ARcpD4(AD4 x){return AD4_(1.0)/x;} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ARsqD1(AD1 x){return AD1_(1.0)/sqrt(x);} + AD2 ARsqD2(AD2 x){return AD2_(1.0)/sqrt(x);} + AD3 ARsqD3(AD3 x){return AD3_(1.0)/sqrt(x);} + AD4 ARsqD4(AD4 x){return AD4_(1.0)/sqrt(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ASatD1(AD1 x){return clamp(x,AD1_(0.0),AD1_(1.0));} + AD2 ASatD2(AD2 x){return clamp(x,AD2_(0.0),AD2_(1.0));} + AD3 ASatD3(AD3 x){return clamp(x,AD3_(0.0),AD3_(1.0));} + AD4 ASatD4(AD4 x){return clamp(x,AD4_(0.0),AD4_(1.0));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// GLSL LONG +//============================================================================================================================== + #ifdef A_LONG + #define AL1 uint64_t + #define AL2 u64vec2 + #define AL3 u64vec3 + #define AL4 u64vec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASL1 int64_t + #define ASL2 i64vec2 + #define ASL3 i64vec3 + #define ASL4 i64vec4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AL1_AU2(x) packUint2x32(AU2(x)) + #define AU2_AL1(x) unpackUint2x32(AL1(x)) +//------------------------------------------------------------------------------------------------------------------------------ + AL1 AL1_x(AL1 a){return AL1(a);} + AL2 AL2_x(AL1 a){return AL2(a,a);} + AL3 AL3_x(AL1 a){return AL3(a,a,a);} + AL4 AL4_x(AL1 a){return AL4(a,a,a,a);} + #define AL1_(a) AL1_x(AL1(a)) + #define AL2_(a) AL2_x(AL1(a)) + #define AL3_(a) AL3_x(AL1(a)) + #define AL4_(a) AL4_x(AL1(a)) +//============================================================================================================================== + AL1 AAbsSL1(AL1 a){return AL1(abs(ASL1(a)));} + AL2 AAbsSL2(AL2 a){return AL2(abs(ASL2(a)));} + AL3 AAbsSL3(AL3 a){return AL3(abs(ASL3(a)));} + AL4 AAbsSL4(AL4 a){return AL4(abs(ASL4(a)));} +//------------------------------------------------------------------------------------------------------------------------------ + AL1 AMaxSL1(AL1 a,AL1 b){return AL1(max(ASU1(a),ASU1(b)));} + AL2 AMaxSL2(AL2 a,AL2 b){return AL2(max(ASU2(a),ASU2(b)));} + AL3 AMaxSL3(AL3 a,AL3 b){return AL3(max(ASU3(a),ASU3(b)));} + AL4 AMaxSL4(AL4 a,AL4 b){return AL4(max(ASU4(a),ASU4(b)));} +//------------------------------------------------------------------------------------------------------------------------------ + AL1 AMinSL1(AL1 a,AL1 b){return AL1(min(ASU1(a),ASU1(b)));} + AL2 AMinSL2(AL2 a,AL2 b){return AL2(min(ASU2(a),ASU2(b)));} + AL3 AMinSL3(AL3 a,AL3 b){return AL3(min(ASU3(a),ASU3(b)));} + AL4 AMinSL4(AL4 a,AL4 b){return AL4(min(ASU4(a),ASU4(b)));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// WAVE OPERATIONS +//============================================================================================================================== + #ifdef A_WAVE + // Where 'x' must be a compile time literal. + AF1 AWaveXorF1(AF1 v,AU1 x){return subgroupShuffleXor(v,x);} + AF2 AWaveXorF2(AF2 v,AU1 x){return subgroupShuffleXor(v,x);} + AF3 AWaveXorF3(AF3 v,AU1 x){return subgroupShuffleXor(v,x);} + AF4 AWaveXorF4(AF4 v,AU1 x){return subgroupShuffleXor(v,x);} + AU1 AWaveXorU1(AU1 v,AU1 x){return subgroupShuffleXor(v,x);} + AU2 AWaveXorU2(AU2 v,AU1 x){return subgroupShuffleXor(v,x);} + AU3 AWaveXorU3(AU3 v,AU1 x){return subgroupShuffleXor(v,x);} + AU4 AWaveXorU4(AU4 v,AU1 x){return subgroupShuffleXor(v,x);} +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_HALF + AH2 AWaveXorH2(AH2 v,AU1 x){return AH2_AU1(subgroupShuffleXor(AU1_AH2(v),x));} + AH4 AWaveXorH4(AH4 v,AU1 x){return AH4_AU2(subgroupShuffleXor(AU2_AH4(v),x));} + AW2 AWaveXorW2(AW2 v,AU1 x){return AW2_AU1(subgroupShuffleXor(AU1_AW2(v),x));} + AW4 AWaveXorW4(AW4 v,AU1 x){return AW4_AU2(subgroupShuffleXor(AU2_AW4(v),x));} + #endif + #endif +//============================================================================================================================== +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// +// HLSL +// +// +//============================================================================================================================== +#if defined(A_HLSL) && defined(A_GPU) + #ifdef A_HLSL_6_2 + #define AP1 bool + #define AP2 bool2 + #define AP3 bool3 + #define AP4 bool4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AF1 float32_t + #define AF2 float32_t2 + #define AF3 float32_t3 + #define AF4 float32_t4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1 uint32_t + #define AU2 uint32_t2 + #define AU3 uint32_t3 + #define AU4 uint32_t4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASU1 int32_t + #define ASU2 int32_t2 + #define ASU3 int32_t3 + #define ASU4 int32_t4 + #else + #define AP1 bool + #define AP2 bool2 + #define AP3 bool3 + #define AP4 bool4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AF1 float + #define AF2 float2 + #define AF3 float3 + #define AF4 float4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1 uint + #define AU2 uint2 + #define AU3 uint3 + #define AU4 uint4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASU1 int + #define ASU2 int2 + #define ASU3 int3 + #define ASU4 int4 + #endif +//============================================================================================================================== + #define AF1_AU1(x) asfloat(AU1(x)) + #define AF2_AU2(x) asfloat(AU2(x)) + #define AF3_AU3(x) asfloat(AU3(x)) + #define AF4_AU4(x) asfloat(AU4(x)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AU1_AF1(x) asuint(AF1(x)) + #define AU2_AF2(x) asuint(AF2(x)) + #define AU3_AF3(x) asuint(AF3(x)) + #define AU4_AF4(x) asuint(AF4(x)) +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AU1_AH1_AF1_x(AF1 a){return f32tof16(a);} + #define AU1_AH1_AF1(a) AU1_AH1_AF1_x(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AU1_AH2_AF2_x(AF2 a){return f32tof16(a.x)|(f32tof16(a.y)<<16);} + #define AU1_AH2_AF2(a) AU1_AH2_AF2_x(AF2(a)) + #define AU1_AB4Unorm_AF4(x) D3DCOLORtoUBYTE4(AF4(x)) +//------------------------------------------------------------------------------------------------------------------------------ + AF2 AF2_AH2_AU1_x(AU1 x){return AF2(f16tof32(x&0xFFFF),f16tof32(x>>16));} + #define AF2_AH2_AU1(x) AF2_AH2_AU1_x(AU1(x)) +//============================================================================================================================== + AF1 AF1_x(AF1 a){return AF1(a);} + AF2 AF2_x(AF1 a){return AF2(a,a);} + AF3 AF3_x(AF1 a){return AF3(a,a,a);} + AF4 AF4_x(AF1 a){return AF4(a,a,a,a);} + #define AF1_(a) AF1_x(AF1(a)) + #define AF2_(a) AF2_x(AF1(a)) + #define AF3_(a) AF3_x(AF1(a)) + #define AF4_(a) AF4_x(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AU1_x(AU1 a){return AU1(a);} + AU2 AU2_x(AU1 a){return AU2(a,a);} + AU3 AU3_x(AU1 a){return AU3(a,a,a);} + AU4 AU4_x(AU1 a){return AU4(a,a,a,a);} + #define AU1_(a) AU1_x(AU1(a)) + #define AU2_(a) AU2_x(AU1(a)) + #define AU3_(a) AU3_x(AU1(a)) + #define AU4_(a) AU4_x(AU1(a)) +//============================================================================================================================== + AU1 AAbsSU1(AU1 a){return AU1(abs(ASU1(a)));} + AU2 AAbsSU2(AU2 a){return AU2(abs(ASU2(a)));} + AU3 AAbsSU3(AU3 a){return AU3(abs(ASU3(a)));} + AU4 AAbsSU4(AU4 a){return AU4(abs(ASU4(a)));} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 ABfe(AU1 src,AU1 off,AU1 bits){AU1 mask=(1u<>off)&mask;} + AU1 ABfi(AU1 src,AU1 ins,AU1 mask){return (ins&mask)|(src&(~mask));} + AU1 ABfiM(AU1 src,AU1 ins,AU1 bits){AU1 mask=(1u<>ASU1(b));} + AU2 AShrSU2(AU2 a,AU2 b){return AU2(ASU2(a)>>ASU2(b));} + AU3 AShrSU3(AU3 a,AU3 b){return AU3(ASU3(a)>>ASU3(b));} + AU4 AShrSU4(AU4 a,AU4 b){return AU4(ASU4(a)>>ASU4(b));} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// HLSL BYTE +//============================================================================================================================== + #ifdef A_BYTE + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// HLSL HALF +//============================================================================================================================== + #ifdef A_HALF + #ifdef A_HLSL_6_2 + #define AH1 float16_t + #define AH2 float16_t2 + #define AH3 float16_t3 + #define AH4 float16_t4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AW1 uint16_t + #define AW2 uint16_t2 + #define AW3 uint16_t3 + #define AW4 uint16_t4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASW1 int16_t + #define ASW2 int16_t2 + #define ASW3 int16_t3 + #define ASW4 int16_t4 + #else + #define AH1 min16float + #define AH2 min16float2 + #define AH3 min16float3 + #define AH4 min16float4 +//------------------------------------------------------------------------------------------------------------------------------ + #define AW1 min16uint + #define AW2 min16uint2 + #define AW3 min16uint3 + #define AW4 min16uint4 +//------------------------------------------------------------------------------------------------------------------------------ + #define ASW1 min16int + #define ASW2 min16int2 + #define ASW3 min16int3 + #define ASW4 min16int4 + #endif +//============================================================================================================================== + // Need to use manual unpack to get optimal execution (don't use packed types in buffers directly). + // Unpack requires this pattern: https://gpuopen.com/first-steps-implementing-fp16/ + AH2 AH2_AU1_x(AU1 x){AF2 t=f16tof32(AU2(x&0xFFFF,x>>16));return AH2(t);} + AH4 AH4_AU2_x(AU2 x){return AH4(AH2_AU1_x(x.x),AH2_AU1_x(x.y));} + AW2 AW2_AU1_x(AU1 x){AU2 t=AU2(x&0xFFFF,x>>16);return AW2(t);} + AW4 AW4_AU2_x(AU2 x){return AW4(AW2_AU1_x(x.x),AW2_AU1_x(x.y));} + #define AH2_AU1(x) AH2_AU1_x(AU1(x)) + #define AH4_AU2(x) AH4_AU2_x(AU2(x)) + #define AW2_AU1(x) AW2_AU1_x(AU1(x)) + #define AW4_AU2(x) AW4_AU2_x(AU2(x)) +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AU1_AH2_x(AH2 x){return f32tof16(x.x)+(f32tof16(x.y)<<16);} + AU2 AU2_AH4_x(AH4 x){return AU2(AU1_AH2_x(x.xy),AU1_AH2_x(x.zw));} + AU1 AU1_AW2_x(AW2 x){return AU1(x.x)+(AU1(x.y)<<16);} + AU2 AU2_AW4_x(AW4 x){return AU2(AU1_AW2_x(x.xy),AU1_AW2_x(x.zw));} + #define AU1_AH2(x) AU1_AH2_x(AH2(x)) + #define AU2_AH4(x) AU2_AH4_x(AH4(x)) + #define AU1_AW2(x) AU1_AW2_x(AW2(x)) + #define AU2_AW4(x) AU2_AW4_x(AW4(x)) +//============================================================================================================================== + #if defined(A_HLSL_6_2) && !defined(A_NO_16_BIT_CAST) + #define AW1_AH1(x) asuint16(x) + #define AW2_AH2(x) asuint16(x) + #define AW3_AH3(x) asuint16(x) + #define AW4_AH4(x) asuint16(x) + #else + #define AW1_AH1(a) AW1(f32tof16(AF1(a))) + #define AW2_AH2(a) AW2(AW1_AH1((a).x),AW1_AH1((a).y)) + #define AW3_AH3(a) AW3(AW1_AH1((a).x),AW1_AH1((a).y),AW1_AH1((a).z)) + #define AW4_AH4(a) AW4(AW1_AH1((a).x),AW1_AH1((a).y),AW1_AH1((a).z),AW1_AH1((a).w)) + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #if defined(A_HLSL_6_2) && !defined(A_NO_16_BIT_CAST) + #define AH1_AW1(x) asfloat16(x) + #define AH2_AW2(x) asfloat16(x) + #define AH3_AW3(x) asfloat16(x) + #define AH4_AW4(x) asfloat16(x) + #else + #define AH1_AW1(a) AH1(f16tof32(AU1(a))) + #define AH2_AW2(a) AH2(AH1_AW1((a).x),AH1_AW1((a).y)) + #define AH3_AW3(a) AH3(AH1_AW1((a).x),AH1_AW1((a).y),AH1_AW1((a).z)) + #define AH4_AW4(a) AH4(AH1_AW1((a).x),AH1_AW1((a).y),AH1_AW1((a).z),AH1_AW1((a).w)) + #endif +//============================================================================================================================== + AH1 AH1_x(AH1 a){return AH1(a);} + AH2 AH2_x(AH1 a){return AH2(a,a);} + AH3 AH3_x(AH1 a){return AH3(a,a,a);} + AH4 AH4_x(AH1 a){return AH4(a,a,a,a);} + #define AH1_(a) AH1_x(AH1(a)) + #define AH2_(a) AH2_x(AH1(a)) + #define AH3_(a) AH3_x(AH1(a)) + #define AH4_(a) AH4_x(AH1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AW1_x(AW1 a){return AW1(a);} + AW2 AW2_x(AW1 a){return AW2(a,a);} + AW3 AW3_x(AW1 a){return AW3(a,a,a);} + AW4 AW4_x(AW1 a){return AW4(a,a,a,a);} + #define AW1_(a) AW1_x(AW1(a)) + #define AW2_(a) AW2_x(AW1(a)) + #define AW3_(a) AW3_x(AW1(a)) + #define AW4_(a) AW4_x(AW1(a)) +//============================================================================================================================== + AW1 AAbsSW1(AW1 a){return AW1(abs(ASW1(a)));} + AW2 AAbsSW2(AW2 a){return AW2(abs(ASW2(a)));} + AW3 AAbsSW3(AW3 a){return AW3(abs(ASW3(a)));} + AW4 AAbsSW4(AW4 a){return AW4(abs(ASW4(a)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AClampH1(AH1 x,AH1 n,AH1 m){return max(n,min(x,m));} + AH2 AClampH2(AH2 x,AH2 n,AH2 m){return max(n,min(x,m));} + AH3 AClampH3(AH3 x,AH3 n,AH3 m){return max(n,min(x,m));} + AH4 AClampH4(AH4 x,AH4 n,AH4 m){return max(n,min(x,m));} +//------------------------------------------------------------------------------------------------------------------------------ + // V_FRACT_F16 (note DX frac() is different). + AH1 AFractH1(AH1 x){return x-floor(x);} + AH2 AFractH2(AH2 x){return x-floor(x);} + AH3 AFractH3(AH3 x){return x-floor(x);} + AH4 AFractH4(AH4 x){return x-floor(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ALerpH1(AH1 x,AH1 y,AH1 a){return lerp(x,y,a);} + AH2 ALerpH2(AH2 x,AH2 y,AH2 a){return lerp(x,y,a);} + AH3 ALerpH3(AH3 x,AH3 y,AH3 a){return lerp(x,y,a);} + AH4 ALerpH4(AH4 x,AH4 y,AH4 a){return lerp(x,y,a);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AMax3H1(AH1 x,AH1 y,AH1 z){return max(x,max(y,z));} + AH2 AMax3H2(AH2 x,AH2 y,AH2 z){return max(x,max(y,z));} + AH3 AMax3H3(AH3 x,AH3 y,AH3 z){return max(x,max(y,z));} + AH4 AMax3H4(AH4 x,AH4 y,AH4 z){return max(x,max(y,z));} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AMaxSW1(AW1 a,AW1 b){return AW1(max(ASU1(a),ASU1(b)));} + AW2 AMaxSW2(AW2 a,AW2 b){return AW2(max(ASU2(a),ASU2(b)));} + AW3 AMaxSW3(AW3 a,AW3 b){return AW3(max(ASU3(a),ASU3(b)));} + AW4 AMaxSW4(AW4 a,AW4 b){return AW4(max(ASU4(a),ASU4(b)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AMin3H1(AH1 x,AH1 y,AH1 z){return min(x,min(y,z));} + AH2 AMin3H2(AH2 x,AH2 y,AH2 z){return min(x,min(y,z));} + AH3 AMin3H3(AH3 x,AH3 y,AH3 z){return min(x,min(y,z));} + AH4 AMin3H4(AH4 x,AH4 y,AH4 z){return min(x,min(y,z));} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AMinSW1(AW1 a,AW1 b){return AW1(min(ASU1(a),ASU1(b)));} + AW2 AMinSW2(AW2 a,AW2 b){return AW2(min(ASU2(a),ASU2(b)));} + AW3 AMinSW3(AW3 a,AW3 b){return AW3(min(ASU3(a),ASU3(b)));} + AW4 AMinSW4(AW4 a,AW4 b){return AW4(min(ASU4(a),ASU4(b)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ARcpH1(AH1 x){return rcp(x);} + AH2 ARcpH2(AH2 x){return rcp(x);} + AH3 ARcpH3(AH3 x){return rcp(x);} + AH4 ARcpH4(AH4 x){return rcp(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ARsqH1(AH1 x){return rsqrt(x);} + AH2 ARsqH2(AH2 x){return rsqrt(x);} + AH3 ARsqH3(AH3 x){return rsqrt(x);} + AH4 ARsqH4(AH4 x){return rsqrt(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ASatH1(AH1 x){return saturate(x);} + AH2 ASatH2(AH2 x){return saturate(x);} + AH3 ASatH3(AH3 x){return saturate(x);} + AH4 ASatH4(AH4 x){return saturate(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AShrSW1(AW1 a,AW1 b){return AW1(ASW1(a)>>ASW1(b));} + AW2 AShrSW2(AW2 a,AW2 b){return AW2(ASW2(a)>>ASW2(b));} + AW3 AShrSW3(AW3 a,AW3 b){return AW3(ASW3(a)>>ASW3(b));} + AW4 AShrSW4(AW4 a,AW4 b){return AW4(ASW4(a)>>ASW4(b));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// HLSL DOUBLE +//============================================================================================================================== + #ifdef A_DUBL + #ifdef A_HLSL_6_2 + #define AD1 float64_t + #define AD2 float64_t2 + #define AD3 float64_t3 + #define AD4 float64_t4 + #else + #define AD1 double + #define AD2 double2 + #define AD3 double3 + #define AD4 double4 + #endif +//------------------------------------------------------------------------------------------------------------------------------ + AD1 AD1_x(AD1 a){return AD1(a);} + AD2 AD2_x(AD1 a){return AD2(a,a);} + AD3 AD3_x(AD1 a){return AD3(a,a,a);} + AD4 AD4_x(AD1 a){return AD4(a,a,a,a);} + #define AD1_(a) AD1_x(AD1(a)) + #define AD2_(a) AD2_x(AD1(a)) + #define AD3_(a) AD3_x(AD1(a)) + #define AD4_(a) AD4_x(AD1(a)) +//============================================================================================================================== + AD1 AFractD1(AD1 a){return a-floor(a);} + AD2 AFractD2(AD2 a){return a-floor(a);} + AD3 AFractD3(AD3 a){return a-floor(a);} + AD4 AFractD4(AD4 a){return a-floor(a);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ALerpD1(AD1 x,AD1 y,AD1 a){return lerp(x,y,a);} + AD2 ALerpD2(AD2 x,AD2 y,AD2 a){return lerp(x,y,a);} + AD3 ALerpD3(AD3 x,AD3 y,AD3 a){return lerp(x,y,a);} + AD4 ALerpD4(AD4 x,AD4 y,AD4 a){return lerp(x,y,a);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ARcpD1(AD1 x){return rcp(x);} + AD2 ARcpD2(AD2 x){return rcp(x);} + AD3 ARcpD3(AD3 x){return rcp(x);} + AD4 ARcpD4(AD4 x){return rcp(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ARsqD1(AD1 x){return rsqrt(x);} + AD2 ARsqD2(AD2 x){return rsqrt(x);} + AD3 ARsqD3(AD3 x){return rsqrt(x);} + AD4 ARsqD4(AD4 x){return rsqrt(x);} +//------------------------------------------------------------------------------------------------------------------------------ + AD1 ASatD1(AD1 x){return saturate(x);} + AD2 ASatD2(AD2 x){return saturate(x);} + AD3 ASatD3(AD3 x){return saturate(x);} + AD4 ASatD4(AD4 x){return saturate(x);} + #endif +//============================================================================================================================== +// HLSL WAVE +//============================================================================================================================== + #ifdef A_WAVE + // Where 'x' must be a compile time literal. + AF1 AWaveXorF1(AF1 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AF2 AWaveXorF2(AF2 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AF3 AWaveXorF3(AF3 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AF4 AWaveXorF4(AF4 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AU1 AWaveXorU1(AU1 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AU2 AWaveXorU1(AU2 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AU3 AWaveXorU1(AU3 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} + AU4 AWaveXorU1(AU4 v,AU1 x){return WaveReadLaneAt(v,WaveGetLaneIndex()^x);} +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_HALF + AH2 AWaveXorH2(AH2 v,AU1 x){return AH2_AU1(WaveReadLaneAt(AU1_AH2(v),WaveGetLaneIndex()^x));} + AH4 AWaveXorH4(AH4 v,AU1 x){return AH4_AU2(WaveReadLaneAt(AU2_AH4(v),WaveGetLaneIndex()^x));} + AW2 AWaveXorW2(AW2 v,AU1 x){return AW2_AU1(WaveReadLaneAt(AU1_AW2(v),WaveGetLaneIndex()^x));} + AW4 AWaveXorW4(AW4 v,AU1 x){return AW4_AU1(WaveReadLaneAt(AU1_AW4(v),WaveGetLaneIndex()^x));} + #endif + #endif +//============================================================================================================================== +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// +// GPU COMMON +// +// +//============================================================================================================================== +#ifdef A_GPU + // Negative and positive infinity. + #define A_INFP_F AF1_AU1(0x7f800000u) + #define A_INFN_F AF1_AU1(0xff800000u) +//------------------------------------------------------------------------------------------------------------------------------ + // Copy sign from 's' to positive 'd'. + AF1 ACpySgnF1(AF1 d,AF1 s){return AF1_AU1(AU1_AF1(d)|(AU1_AF1(s)&AU1_(0x80000000u)));} + AF2 ACpySgnF2(AF2 d,AF2 s){return AF2_AU2(AU2_AF2(d)|(AU2_AF2(s)&AU2_(0x80000000u)));} + AF3 ACpySgnF3(AF3 d,AF3 s){return AF3_AU3(AU3_AF3(d)|(AU3_AF3(s)&AU3_(0x80000000u)));} + AF4 ACpySgnF4(AF4 d,AF4 s){return AF4_AU4(AU4_AF4(d)|(AU4_AF4(s)&AU4_(0x80000000u)));} +//------------------------------------------------------------------------------------------------------------------------------ + // Single operation to return (useful to create a mask to use in lerp for branch free logic), + // m=NaN := 0 + // m>=0 := 0 + // m<0 := 1 + // Uses the following useful floating point logic, + // saturate(+a*(-INF)==-INF) := 0 + // saturate( 0*(-INF)== NaN) := 0 + // saturate(-a*(-INF)==+INF) := 1 + AF1 ASignedF1(AF1 m){return ASatF1(m*AF1_(A_INFN_F));} + AF2 ASignedF2(AF2 m){return ASatF2(m*AF2_(A_INFN_F));} + AF3 ASignedF3(AF3 m){return ASatF3(m*AF3_(A_INFN_F));} + AF4 ASignedF4(AF4 m){return ASatF4(m*AF4_(A_INFN_F));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AGtZeroF1(AF1 m){return ASatF1(m*AF1_(A_INFP_F));} + AF2 AGtZeroF2(AF2 m){return ASatF2(m*AF2_(A_INFP_F));} + AF3 AGtZeroF3(AF3 m){return ASatF3(m*AF3_(A_INFP_F));} + AF4 AGtZeroF4(AF4 m){return ASatF4(m*AF4_(A_INFP_F));} +//============================================================================================================================== + #ifdef A_HALF + #ifdef A_HLSL_6_2 + #define A_INFP_H AH1_AW1((uint16_t)0x7c00u) + #define A_INFN_H AH1_AW1((uint16_t)0xfc00u) + #else + #define A_INFP_H AH1_AW1(0x7c00u) + #define A_INFN_H AH1_AW1(0xfc00u) + #endif + +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ACpySgnH1(AH1 d,AH1 s){return AH1_AW1(AW1_AH1(d)|(AW1_AH1(s)&AW1_(0x8000u)));} + AH2 ACpySgnH2(AH2 d,AH2 s){return AH2_AW2(AW2_AH2(d)|(AW2_AH2(s)&AW2_(0x8000u)));} + AH3 ACpySgnH3(AH3 d,AH3 s){return AH3_AW3(AW3_AH3(d)|(AW3_AH3(s)&AW3_(0x8000u)));} + AH4 ACpySgnH4(AH4 d,AH4 s){return AH4_AW4(AW4_AH4(d)|(AW4_AH4(s)&AW4_(0x8000u)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ASignedH1(AH1 m){return ASatH1(m*AH1_(A_INFN_H));} + AH2 ASignedH2(AH2 m){return ASatH2(m*AH2_(A_INFN_H));} + AH3 ASignedH3(AH3 m){return ASatH3(m*AH3_(A_INFN_H));} + AH4 ASignedH4(AH4 m){return ASatH4(m*AH4_(A_INFN_H));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AGtZeroH1(AH1 m){return ASatH1(m*AH1_(A_INFP_H));} + AH2 AGtZeroH2(AH2 m){return ASatH2(m*AH2_(A_INFP_H));} + AH3 AGtZeroH3(AH3 m){return ASatH3(m*AH3_(A_INFP_H));} + AH4 AGtZeroH4(AH4 m){return ASatH4(m*AH4_(A_INFP_H));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// [FIS] FLOAT INTEGER SORTABLE +//------------------------------------------------------------------------------------------------------------------------------ +// Float to integer sortable. +// - If sign bit=0, flip the sign bit (positives). +// - If sign bit=1, flip all bits (negatives). +// Integer sortable to float. +// - If sign bit=1, flip the sign bit (positives). +// - If sign bit=0, flip all bits (negatives). +// Has nice side effects. +// - Larger integers are more positive values. +// - Float zero is mapped to center of integers (so clear to integer zero is a nice default for atomic max usage). +// Burns 3 ops for conversion {shift,or,xor}. +//============================================================================================================================== + AU1 AFisToU1(AU1 x){return x^(( AShrSU1(x,AU1_(31)))|AU1_(0x80000000));} + AU1 AFisFromU1(AU1 x){return x^((~AShrSU1(x,AU1_(31)))|AU1_(0x80000000));} +//------------------------------------------------------------------------------------------------------------------------------ + // Just adjust high 16-bit value (useful when upper part of 32-bit word is a 16-bit float value). + AU1 AFisToHiU1(AU1 x){return x^(( AShrSU1(x,AU1_(15)))|AU1_(0x80000000));} + AU1 AFisFromHiU1(AU1 x){return x^((~AShrSU1(x,AU1_(15)))|AU1_(0x80000000));} +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_HALF + AW1 AFisToW1(AW1 x){return x^(( AShrSW1(x,AW1_(15)))|AW1_(0x8000));} + AW1 AFisFromW1(AW1 x){return x^((~AShrSW1(x,AW1_(15)))|AW1_(0x8000));} +//------------------------------------------------------------------------------------------------------------------------------ + AW2 AFisToW2(AW2 x){return x^(( AShrSW2(x,AW2_(15)))|AW2_(0x8000));} + AW2 AFisFromW2(AW2 x){return x^((~AShrSW2(x,AW2_(15)))|AW2_(0x8000));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// [PERM] V_PERM_B32 +//------------------------------------------------------------------------------------------------------------------------------ +// Support for V_PERM_B32 started in the 3rd generation of GCN. +//------------------------------------------------------------------------------------------------------------------------------ +// yyyyxxxx - The 'i' input. +// 76543210 +// ======== +// HGFEDCBA - Naming on permutation. +//------------------------------------------------------------------------------------------------------------------------------ +// TODO +// ==== +// - Make sure compiler optimizes this. +//============================================================================================================================== + #ifdef A_HALF + AU1 APerm0E0A(AU2 i){return((i.x )&0xffu)|((i.y<<16)&0xff0000u);} + AU1 APerm0F0B(AU2 i){return((i.x>> 8)&0xffu)|((i.y<< 8)&0xff0000u);} + AU1 APerm0G0C(AU2 i){return((i.x>>16)&0xffu)|((i.y )&0xff0000u);} + AU1 APerm0H0D(AU2 i){return((i.x>>24)&0xffu)|((i.y>> 8)&0xff0000u);} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 APermHGFA(AU2 i){return((i.x )&0x000000ffu)|(i.y&0xffffff00u);} + AU1 APermHGFC(AU2 i){return((i.x>>16)&0x000000ffu)|(i.y&0xffffff00u);} + AU1 APermHGAE(AU2 i){return((i.x<< 8)&0x0000ff00u)|(i.y&0xffff00ffu);} + AU1 APermHGCE(AU2 i){return((i.x>> 8)&0x0000ff00u)|(i.y&0xffff00ffu);} + AU1 APermHAFE(AU2 i){return((i.x<<16)&0x00ff0000u)|(i.y&0xff00ffffu);} + AU1 APermHCFE(AU2 i){return((i.x )&0x00ff0000u)|(i.y&0xff00ffffu);} + AU1 APermAGFE(AU2 i){return((i.x<<24)&0xff000000u)|(i.y&0x00ffffffu);} + AU1 APermCGFE(AU2 i){return((i.x<< 8)&0xff000000u)|(i.y&0x00ffffffu);} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 APermGCEA(AU2 i){return((i.x)&0x00ff00ffu)|((i.y<<8)&0xff00ff00u);} + AU1 APermGECA(AU2 i){return(((i.x)&0xffu)|((i.x>>8)&0xff00u)|((i.y<<16)&0xff0000u)|((i.y<<8)&0xff000000u));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// [BUC] BYTE UNSIGNED CONVERSION +//------------------------------------------------------------------------------------------------------------------------------ +// Designed to use the optimal conversion, enables the scaling to possibly be factored into other computation. +// Works on a range of {0 to A_BUC_<32,16>}, for <32-bit, and 16-bit> respectively. +//------------------------------------------------------------------------------------------------------------------------------ +// OPCODE NOTES +// ============ +// GCN does not do UNORM or SNORM for bytes in opcodes. +// - V_CVT_F32_UBYTE{0,1,2,3} - Unsigned byte to float. +// - V_CVT_PKACC_U8_F32 - Float to unsigned byte (does bit-field insert into 32-bit integer). +// V_PERM_B32 does byte packing with ability to zero fill bytes as well. +// - Can pull out byte values from two sources, and zero fill upper 8-bits of packed hi and lo. +//------------------------------------------------------------------------------------------------------------------------------ +// BYTE : FLOAT - ABuc{0,1,2,3}{To,From}U1() - Designed for V_CVT_F32_UBYTE* and V_CVT_PKACCUM_U8_F32 ops. +// ==== ===== +// 0 : 0 +// 1 : 1 +// ... +// 255 : 255 +// : 256 (just outside the encoding range) +//------------------------------------------------------------------------------------------------------------------------------ +// BYTE : FLOAT - ABuc{0,1,2,3}{To,From}U2() - Designed for 16-bit denormal tricks and V_PERM_B32. +// ==== ===== +// 0 : 0 +// 1 : 1/512 +// 2 : 1/256 +// ... +// 64 : 1/8 +// 128 : 1/4 +// 255 : 255/512 +// : 1/2 (just outside the encoding range) +//------------------------------------------------------------------------------------------------------------------------------ +// OPTIMAL IMPLEMENTATIONS ON AMD ARCHITECTURES +// ============================================ +// r=ABuc0FromU1(i) +// V_CVT_F32_UBYTE0 r,i +// -------------------------------------------- +// r=ABuc0ToU1(d,i) +// V_CVT_PKACCUM_U8_F32 r,i,0,d +// -------------------------------------------- +// d=ABuc0FromU2(i) +// Where 'k0' is an SGPR with 0x0E0A +// Where 'k1' is an SGPR with {32768.0} packed into the lower 16-bits +// V_PERM_B32 d,i.x,i.y,k0 +// V_PK_FMA_F16 d,d,k1.x,0 +// -------------------------------------------- +// r=ABuc0ToU2(d,i) +// Where 'k0' is an SGPR with {1.0/32768.0} packed into the lower 16-bits +// Where 'k1' is an SGPR with 0x???? +// Where 'k2' is an SGPR with 0x???? +// V_PK_FMA_F16 i,i,k0.x,0 +// V_PERM_B32 r.x,i,i,k1 +// V_PERM_B32 r.y,i,i,k2 +//============================================================================================================================== + // Peak range for 32-bit and 16-bit operations. + #define A_BUC_32 (255.0) + #define A_BUC_16 (255.0/512.0) +//============================================================================================================================== + #if 1 + // Designed to be one V_CVT_PKACCUM_U8_F32. + // The extra min is required to pattern match to V_CVT_PKACCUM_U8_F32. + AU1 ABuc0ToU1(AU1 d,AF1 i){return (d&0xffffff00u)|((min(AU1(i),255u) )&(0x000000ffu));} + AU1 ABuc1ToU1(AU1 d,AF1 i){return (d&0xffff00ffu)|((min(AU1(i),255u)<< 8)&(0x0000ff00u));} + AU1 ABuc2ToU1(AU1 d,AF1 i){return (d&0xff00ffffu)|((min(AU1(i),255u)<<16)&(0x00ff0000u));} + AU1 ABuc3ToU1(AU1 d,AF1 i){return (d&0x00ffffffu)|((min(AU1(i),255u)<<24)&(0xff000000u));} +//------------------------------------------------------------------------------------------------------------------------------ + // Designed to be one V_CVT_F32_UBYTE*. + AF1 ABuc0FromU1(AU1 i){return AF1((i )&255u);} + AF1 ABuc1FromU1(AU1 i){return AF1((i>> 8)&255u);} + AF1 ABuc2FromU1(AU1 i){return AF1((i>>16)&255u);} + AF1 ABuc3FromU1(AU1 i){return AF1((i>>24)&255u);} + #endif +//============================================================================================================================== + #ifdef A_HALF + // Takes {x0,x1} and {y0,y1} and builds {{x0,y0},{x1,y1}}. + AW2 ABuc01ToW2(AH2 x,AH2 y){x*=AH2_(1.0/32768.0);y*=AH2_(1.0/32768.0); + return AW2_AU1(APermGCEA(AU2(AU1_AW2(AW2_AH2(x)),AU1_AW2(AW2_AH2(y)))));} +//------------------------------------------------------------------------------------------------------------------------------ + // Designed for 3 ops to do SOA to AOS and conversion. + AU2 ABuc0ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0))); + return AU2(APermHGFA(AU2(d.x,b)),APermHGFC(AU2(d.y,b)));} + AU2 ABuc1ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0))); + return AU2(APermHGAE(AU2(d.x,b)),APermHGCE(AU2(d.y,b)));} + AU2 ABuc2ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0))); + return AU2(APermHAFE(AU2(d.x,b)),APermHCFE(AU2(d.y,b)));} + AU2 ABuc3ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0))); + return AU2(APermAGFE(AU2(d.x,b)),APermCGFE(AU2(d.y,b)));} +//------------------------------------------------------------------------------------------------------------------------------ + // Designed for 2 ops to do both AOS to SOA, and conversion. + AH2 ABuc0FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0E0A(i)))*AH2_(32768.0);} + AH2 ABuc1FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0F0B(i)))*AH2_(32768.0);} + AH2 ABuc2FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0G0C(i)))*AH2_(32768.0);} + AH2 ABuc3FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0H0D(i)))*AH2_(32768.0);} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// [BSC] BYTE SIGNED CONVERSION +//------------------------------------------------------------------------------------------------------------------------------ +// Similar to [BUC]. +// Works on a range of {-/+ A_BSC_<32,16>}, for <32-bit, and 16-bit> respectively. +//------------------------------------------------------------------------------------------------------------------------------ +// ENCODING (without zero-based encoding) +// ======== +// 0 = unused (can be used to mean something else) +// 1 = lowest value +// 128 = exact zero center (zero based encoding +// 255 = highest value +//------------------------------------------------------------------------------------------------------------------------------ +// Zero-based [Zb] flips the MSB bit of the byte (making 128 "exact zero" actually zero). +// This is useful if there is a desire for cleared values to decode as zero. +//------------------------------------------------------------------------------------------------------------------------------ +// BYTE : FLOAT - ABsc{0,1,2,3}{To,From}U2() - Designed for 16-bit denormal tricks and V_PERM_B32. +// ==== ===== +// 0 : -127/512 (unused) +// 1 : -126/512 +// 2 : -125/512 +// ... +// 128 : 0 +// ... +// 255 : 127/512 +// : 1/4 (just outside the encoding range) +//============================================================================================================================== + // Peak range for 32-bit and 16-bit operations. + #define A_BSC_32 (127.0) + #define A_BSC_16 (127.0/512.0) +//============================================================================================================================== + #if 1 + AU1 ABsc0ToU1(AU1 d,AF1 i){return (d&0xffffff00u)|((min(AU1(i+128.0),255u) )&(0x000000ffu));} + AU1 ABsc1ToU1(AU1 d,AF1 i){return (d&0xffff00ffu)|((min(AU1(i+128.0),255u)<< 8)&(0x0000ff00u));} + AU1 ABsc2ToU1(AU1 d,AF1 i){return (d&0xff00ffffu)|((min(AU1(i+128.0),255u)<<16)&(0x00ff0000u));} + AU1 ABsc3ToU1(AU1 d,AF1 i){return (d&0x00ffffffu)|((min(AU1(i+128.0),255u)<<24)&(0xff000000u));} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 ABsc0ToZbU1(AU1 d,AF1 i){return ((d&0xffffff00u)|((min(AU1(trunc(i)+128.0),255u) )&(0x000000ffu)))^0x00000080u;} + AU1 ABsc1ToZbU1(AU1 d,AF1 i){return ((d&0xffff00ffu)|((min(AU1(trunc(i)+128.0),255u)<< 8)&(0x0000ff00u)))^0x00008000u;} + AU1 ABsc2ToZbU1(AU1 d,AF1 i){return ((d&0xff00ffffu)|((min(AU1(trunc(i)+128.0),255u)<<16)&(0x00ff0000u)))^0x00800000u;} + AU1 ABsc3ToZbU1(AU1 d,AF1 i){return ((d&0x00ffffffu)|((min(AU1(trunc(i)+128.0),255u)<<24)&(0xff000000u)))^0x80000000u;} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 ABsc0FromU1(AU1 i){return AF1((i )&255u)-128.0;} + AF1 ABsc1FromU1(AU1 i){return AF1((i>> 8)&255u)-128.0;} + AF1 ABsc2FromU1(AU1 i){return AF1((i>>16)&255u)-128.0;} + AF1 ABsc3FromU1(AU1 i){return AF1((i>>24)&255u)-128.0;} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 ABsc0FromZbU1(AU1 i){return AF1(((i )&255u)^0x80u)-128.0;} + AF1 ABsc1FromZbU1(AU1 i){return AF1(((i>> 8)&255u)^0x80u)-128.0;} + AF1 ABsc2FromZbU1(AU1 i){return AF1(((i>>16)&255u)^0x80u)-128.0;} + AF1 ABsc3FromZbU1(AU1 i){return AF1(((i>>24)&255u)^0x80u)-128.0;} + #endif +//============================================================================================================================== + #ifdef A_HALF + // Takes {x0,x1} and {y0,y1} and builds {{x0,y0},{x1,y1}}. + AW2 ABsc01ToW2(AH2 x,AH2 y){x=x*AH2_(1.0/32768.0)+AH2_(0.25/32768.0);y=y*AH2_(1.0/32768.0)+AH2_(0.25/32768.0); + return AW2_AU1(APermGCEA(AU2(AU1_AW2(AW2_AH2(x)),AU1_AW2(AW2_AH2(y)))));} +//------------------------------------------------------------------------------------------------------------------------------ + AU2 ABsc0ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0))); + return AU2(APermHGFA(AU2(d.x,b)),APermHGFC(AU2(d.y,b)));} + AU2 ABsc1ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0))); + return AU2(APermHGAE(AU2(d.x,b)),APermHGCE(AU2(d.y,b)));} + AU2 ABsc2ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0))); + return AU2(APermHAFE(AU2(d.x,b)),APermHCFE(AU2(d.y,b)));} + AU2 ABsc3ToU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0))); + return AU2(APermAGFE(AU2(d.x,b)),APermCGFE(AU2(d.y,b)));} +//------------------------------------------------------------------------------------------------------------------------------ + AU2 ABsc0ToZbU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0)))^0x00800080u; + return AU2(APermHGFA(AU2(d.x,b)),APermHGFC(AU2(d.y,b)));} + AU2 ABsc1ToZbU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0)))^0x00800080u; + return AU2(APermHGAE(AU2(d.x,b)),APermHGCE(AU2(d.y,b)));} + AU2 ABsc2ToZbU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0)))^0x00800080u; + return AU2(APermHAFE(AU2(d.x,b)),APermHCFE(AU2(d.y,b)));} + AU2 ABsc3ToZbU2(AU2 d,AH2 i){AU1 b=AU1_AW2(AW2_AH2(i*AH2_(1.0/32768.0)+AH2_(0.25/32768.0)))^0x00800080u; + return AU2(APermAGFE(AU2(d.x,b)),APermCGFE(AU2(d.y,b)));} +//------------------------------------------------------------------------------------------------------------------------------ + AH2 ABsc0FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0E0A(i)))*AH2_(32768.0)-AH2_(0.25);} + AH2 ABsc1FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0F0B(i)))*AH2_(32768.0)-AH2_(0.25);} + AH2 ABsc2FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0G0C(i)))*AH2_(32768.0)-AH2_(0.25);} + AH2 ABsc3FromU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0H0D(i)))*AH2_(32768.0)-AH2_(0.25);} +//------------------------------------------------------------------------------------------------------------------------------ + AH2 ABsc0FromZbU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0E0A(i)^0x00800080u))*AH2_(32768.0)-AH2_(0.25);} + AH2 ABsc1FromZbU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0F0B(i)^0x00800080u))*AH2_(32768.0)-AH2_(0.25);} + AH2 ABsc2FromZbU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0G0C(i)^0x00800080u))*AH2_(32768.0)-AH2_(0.25);} + AH2 ABsc3FromZbU2(AU2 i){return AH2_AW2(AW2_AU1(APerm0H0D(i)^0x00800080u))*AH2_(32768.0)-AH2_(0.25);} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// HALF APPROXIMATIONS +//------------------------------------------------------------------------------------------------------------------------------ +// These support only positive inputs. +// Did not see value yet in specialization for range. +// Using quick testing, ended up mostly getting the same "best" approximation for various ranges. +// With hardware that can co-execute transcendentals, the value in approximations could be less than expected. +// However from a latency perspective, if execution of a transcendental is 4 clk, with no packed support, -> 8 clk total. +// And co-execution would require a compiler interleaving a lot of independent work for packed usage. +//------------------------------------------------------------------------------------------------------------------------------ +// The one Newton Raphson iteration form of rsq() was skipped (requires 6 ops total). +// Same with sqrt(), as this could be x*rsq() (7 ops). +//============================================================================================================================== + #ifdef A_HALF + // Minimize squared error across full positive range, 2 ops. + // The 0x1de2 based approximation maps {0 to 1} input maps to < 1 output. + AH1 APrxLoSqrtH1(AH1 a){return AH1_AW1((AW1_AH1(a)>>AW1_(1))+AW1_(0x1de2));} + AH2 APrxLoSqrtH2(AH2 a){return AH2_AW2((AW2_AH2(a)>>AW2_(1))+AW2_(0x1de2));} + AH3 APrxLoSqrtH3(AH3 a){return AH3_AW3((AW3_AH3(a)>>AW3_(1))+AW3_(0x1de2));} + AH4 APrxLoSqrtH4(AH4 a){return AH4_AW4((AW4_AH4(a)>>AW4_(1))+AW4_(0x1de2));} +//------------------------------------------------------------------------------------------------------------------------------ + // Lower precision estimation, 1 op. + // Minimize squared error across {smallest normal to 16384.0}. + AH1 APrxLoRcpH1(AH1 a){return AH1_AW1(AW1_(0x7784)-AW1_AH1(a));} + AH2 APrxLoRcpH2(AH2 a){return AH2_AW2(AW2_(0x7784)-AW2_AH2(a));} + AH3 APrxLoRcpH3(AH3 a){return AH3_AW3(AW3_(0x7784)-AW3_AH3(a));} + AH4 APrxLoRcpH4(AH4 a){return AH4_AW4(AW4_(0x7784)-AW4_AH4(a));} +//------------------------------------------------------------------------------------------------------------------------------ + // Medium precision estimation, one Newton Raphson iteration, 3 ops. + AH1 APrxMedRcpH1(AH1 a){AH1 b=AH1_AW1(AW1_(0x778d)-AW1_AH1(a));return b*(-b*a+AH1_(2.0));} + AH2 APrxMedRcpH2(AH2 a){AH2 b=AH2_AW2(AW2_(0x778d)-AW2_AH2(a));return b*(-b*a+AH2_(2.0));} + AH3 APrxMedRcpH3(AH3 a){AH3 b=AH3_AW3(AW3_(0x778d)-AW3_AH3(a));return b*(-b*a+AH3_(2.0));} + AH4 APrxMedRcpH4(AH4 a){AH4 b=AH4_AW4(AW4_(0x778d)-AW4_AH4(a));return b*(-b*a+AH4_(2.0));} +//------------------------------------------------------------------------------------------------------------------------------ + // Minimize squared error across {smallest normal to 16384.0}, 2 ops. + AH1 APrxLoRsqH1(AH1 a){return AH1_AW1(AW1_(0x59a3)-(AW1_AH1(a)>>AW1_(1)));} + AH2 APrxLoRsqH2(AH2 a){return AH2_AW2(AW2_(0x59a3)-(AW2_AH2(a)>>AW2_(1)));} + AH3 APrxLoRsqH3(AH3 a){return AH3_AW3(AW3_(0x59a3)-(AW3_AH3(a)>>AW3_(1)));} + AH4 APrxLoRsqH4(AH4 a){return AH4_AW4(AW4_(0x59a3)-(AW4_AH4(a)>>AW4_(1)));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// FLOAT APPROXIMATIONS +//------------------------------------------------------------------------------------------------------------------------------ +// Michal Drobot has an excellent presentation on these: "Low Level Optimizations For GCN", +// - Idea dates back to SGI, then to Quake 3, etc. +// - https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf +// - sqrt(x)=rsqrt(x)*x +// - rcp(x)=rsqrt(x)*rsqrt(x) for positive x +// - https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h +//------------------------------------------------------------------------------------------------------------------------------ +// These below are from perhaps less complete searching for optimal. +// Used FP16 normal range for testing with +4096 32-bit step size for sampling error. +// So these match up well with the half approximations. +//============================================================================================================================== + AF1 APrxLoSqrtF1(AF1 a){return AF1_AU1((AU1_AF1(a)>>AU1_(1))+AU1_(0x1fbc4639));} + AF1 APrxLoRcpF1(AF1 a){return AF1_AU1(AU1_(0x7ef07ebb)-AU1_AF1(a));} + AF1 APrxMedRcpF1(AF1 a){AF1 b=AF1_AU1(AU1_(0x7ef19fff)-AU1_AF1(a));return b*(-b*a+AF1_(2.0));} + AF1 APrxLoRsqF1(AF1 a){return AF1_AU1(AU1_(0x5f347d74)-(AU1_AF1(a)>>AU1_(1)));} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 APrxLoSqrtF2(AF2 a){return AF2_AU2((AU2_AF2(a)>>AU2_(1))+AU2_(0x1fbc4639));} + AF2 APrxLoRcpF2(AF2 a){return AF2_AU2(AU2_(0x7ef07ebb)-AU2_AF2(a));} + AF2 APrxMedRcpF2(AF2 a){AF2 b=AF2_AU2(AU2_(0x7ef19fff)-AU2_AF2(a));return b*(-b*a+AF2_(2.0));} + AF2 APrxLoRsqF2(AF2 a){return AF2_AU2(AU2_(0x5f347d74)-(AU2_AF2(a)>>AU2_(1)));} +//------------------------------------------------------------------------------------------------------------------------------ + AF3 APrxLoSqrtF3(AF3 a){return AF3_AU3((AU3_AF3(a)>>AU3_(1))+AU3_(0x1fbc4639));} + AF3 APrxLoRcpF3(AF3 a){return AF3_AU3(AU3_(0x7ef07ebb)-AU3_AF3(a));} + AF3 APrxMedRcpF3(AF3 a){AF3 b=AF3_AU3(AU3_(0x7ef19fff)-AU3_AF3(a));return b*(-b*a+AF3_(2.0));} + AF3 APrxLoRsqF3(AF3 a){return AF3_AU3(AU3_(0x5f347d74)-(AU3_AF3(a)>>AU3_(1)));} +//------------------------------------------------------------------------------------------------------------------------------ + AF4 APrxLoSqrtF4(AF4 a){return AF4_AU4((AU4_AF4(a)>>AU4_(1))+AU4_(0x1fbc4639));} + AF4 APrxLoRcpF4(AF4 a){return AF4_AU4(AU4_(0x7ef07ebb)-AU4_AF4(a));} + AF4 APrxMedRcpF4(AF4 a){AF4 b=AF4_AU4(AU4_(0x7ef19fff)-AU4_AF4(a));return b*(-b*a+AF4_(2.0));} + AF4 APrxLoRsqF4(AF4 a){return AF4_AU4(AU4_(0x5f347d74)-(AU4_AF4(a)>>AU4_(1)));} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// PQ APPROXIMATIONS +//------------------------------------------------------------------------------------------------------------------------------ +// PQ is very close to x^(1/8). The functions below Use the fast float approximation method to do +// PQ<~>Gamma2 (4th power and fast 4th root) and PQ<~>Linear (8th power and fast 8th root). Maximum error is ~0.2%. +//============================================================================================================================== +// Helpers + AF1 Quart(AF1 a) { a = a * a; return a * a;} + AF1 Oct(AF1 a) { a = a * a; a = a * a; return a * a; } + AF2 Quart(AF2 a) { a = a * a; return a * a; } + AF2 Oct(AF2 a) { a = a * a; a = a * a; return a * a; } + AF3 Quart(AF3 a) { a = a * a; return a * a; } + AF3 Oct(AF3 a) { a = a * a; a = a * a; return a * a; } + AF4 Quart(AF4 a) { a = a * a; return a * a; } + AF4 Oct(AF4 a) { a = a * a; a = a * a; return a * a; } + //------------------------------------------------------------------------------------------------------------------------------ + AF1 APrxPQToGamma2(AF1 a) { return Quart(a); } + AF1 APrxPQToLinear(AF1 a) { return Oct(a); } + AF1 APrxLoGamma2ToPQ(AF1 a) { return AF1_AU1((AU1_AF1(a) >> AU1_(2)) + AU1_(0x2F9A4E46)); } + AF1 APrxMedGamma2ToPQ(AF1 a) { AF1 b = AF1_AU1((AU1_AF1(a) >> AU1_(2)) + AU1_(0x2F9A4E46)); AF1 b4 = Quart(b); return b - b * (b4 - a) / (AF1_(4.0) * b4); } + AF1 APrxHighGamma2ToPQ(AF1 a) { return sqrt(sqrt(a)); } + AF1 APrxLoLinearToPQ(AF1 a) { return AF1_AU1((AU1_AF1(a) >> AU1_(3)) + AU1_(0x378D8723)); } + AF1 APrxMedLinearToPQ(AF1 a) { AF1 b = AF1_AU1((AU1_AF1(a) >> AU1_(3)) + AU1_(0x378D8723)); AF1 b8 = Oct(b); return b - b * (b8 - a) / (AF1_(8.0) * b8); } + AF1 APrxHighLinearToPQ(AF1 a) { return sqrt(sqrt(sqrt(a))); } + //------------------------------------------------------------------------------------------------------------------------------ + AF2 APrxPQToGamma2(AF2 a) { return Quart(a); } + AF2 APrxPQToLinear(AF2 a) { return Oct(a); } + AF2 APrxLoGamma2ToPQ(AF2 a) { return AF2_AU2((AU2_AF2(a) >> AU2_(2)) + AU2_(0x2F9A4E46)); } + AF2 APrxMedGamma2ToPQ(AF2 a) { AF2 b = AF2_AU2((AU2_AF2(a) >> AU2_(2)) + AU2_(0x2F9A4E46)); AF2 b4 = Quart(b); return b - b * (b4 - a) / (AF1_(4.0) * b4); } + AF2 APrxHighGamma2ToPQ(AF2 a) { return sqrt(sqrt(a)); } + AF2 APrxLoLinearToPQ(AF2 a) { return AF2_AU2((AU2_AF2(a) >> AU2_(3)) + AU2_(0x378D8723)); } + AF2 APrxMedLinearToPQ(AF2 a) { AF2 b = AF2_AU2((AU2_AF2(a) >> AU2_(3)) + AU2_(0x378D8723)); AF2 b8 = Oct(b); return b - b * (b8 - a) / (AF1_(8.0) * b8); } + AF2 APrxHighLinearToPQ(AF2 a) { return sqrt(sqrt(sqrt(a))); } + //------------------------------------------------------------------------------------------------------------------------------ + AF3 APrxPQToGamma2(AF3 a) { return Quart(a); } + AF3 APrxPQToLinear(AF3 a) { return Oct(a); } + AF3 APrxLoGamma2ToPQ(AF3 a) { return AF3_AU3((AU3_AF3(a) >> AU3_(2)) + AU3_(0x2F9A4E46)); } + AF3 APrxMedGamma2ToPQ(AF3 a) { AF3 b = AF3_AU3((AU3_AF3(a) >> AU3_(2)) + AU3_(0x2F9A4E46)); AF3 b4 = Quart(b); return b - b * (b4 - a) / (AF1_(4.0) * b4); } + AF3 APrxHighGamma2ToPQ(AF3 a) { return sqrt(sqrt(a)); } + AF3 APrxLoLinearToPQ(AF3 a) { return AF3_AU3((AU3_AF3(a) >> AU3_(3)) + AU3_(0x378D8723)); } + AF3 APrxMedLinearToPQ(AF3 a) { AF3 b = AF3_AU3((AU3_AF3(a) >> AU3_(3)) + AU3_(0x378D8723)); AF3 b8 = Oct(b); return b - b * (b8 - a) / (AF1_(8.0) * b8); } + AF3 APrxHighLinearToPQ(AF3 a) { return sqrt(sqrt(sqrt(a))); } + //------------------------------------------------------------------------------------------------------------------------------ + AF4 APrxPQToGamma2(AF4 a) { return Quart(a); } + AF4 APrxPQToLinear(AF4 a) { return Oct(a); } + AF4 APrxLoGamma2ToPQ(AF4 a) { return AF4_AU4((AU4_AF4(a) >> AU4_(2)) + AU4_(0x2F9A4E46)); } + AF4 APrxMedGamma2ToPQ(AF4 a) { AF4 b = AF4_AU4((AU4_AF4(a) >> AU4_(2)) + AU4_(0x2F9A4E46)); AF4 b4 = Quart(b); return b - b * (b4 - a) / (AF1_(4.0) * b4); } + AF4 APrxHighGamma2ToPQ(AF4 a) { return sqrt(sqrt(a)); } + AF4 APrxLoLinearToPQ(AF4 a) { return AF4_AU4((AU4_AF4(a) >> AU4_(3)) + AU4_(0x378D8723)); } + AF4 APrxMedLinearToPQ(AF4 a) { AF4 b = AF4_AU4((AU4_AF4(a) >> AU4_(3)) + AU4_(0x378D8723)); AF4 b8 = Oct(b); return b - b * (b8 - a) / (AF1_(8.0) * b8); } + AF4 APrxHighLinearToPQ(AF4 a) { return sqrt(sqrt(sqrt(a))); } +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// PARABOLIC SIN & COS +//------------------------------------------------------------------------------------------------------------------------------ +// Approximate answers to transcendental questions. +//------------------------------------------------------------------------------------------------------------------------------ +//============================================================================================================================== + #if 1 + // Valid input range is {-1 to 1} representing {0 to 2 pi}. + // Output range is {-1/4 to 1/4} representing {-1 to 1}. + AF1 APSinF1(AF1 x){return x*abs(x)-x;} // MAD. + AF2 APSinF2(AF2 x){return x*abs(x)-x;} + AF1 APCosF1(AF1 x){x=AFractF1(x*AF1_(0.5)+AF1_(0.75));x=x*AF1_(2.0)-AF1_(1.0);return APSinF1(x);} // 3x MAD, FRACT + AF2 APCosF2(AF2 x){x=AFractF2(x*AF2_(0.5)+AF2_(0.75));x=x*AF2_(2.0)-AF2_(1.0);return APSinF2(x);} + AF2 APSinCosF1(AF1 x){AF1 y=AFractF1(x*AF1_(0.5)+AF1_(0.75));y=y*AF1_(2.0)-AF1_(1.0);return APSinF2(AF2(x,y));} + #endif +//------------------------------------------------------------------------------------------------------------------------------ + #ifdef A_HALF + // For a packed {sin,cos} pair, + // - Native takes 16 clocks and 4 issue slots (no packed transcendentals). + // - Parabolic takes 8 clocks and 8 issue slots (only fract is non-packed). + AH1 APSinH1(AH1 x){return x*abs(x)-x;} + AH2 APSinH2(AH2 x){return x*abs(x)-x;} // AND,FMA + AH1 APCosH1(AH1 x){x=AFractH1(x*AH1_(0.5)+AH1_(0.75));x=x*AH1_(2.0)-AH1_(1.0);return APSinH1(x);} + AH2 APCosH2(AH2 x){x=AFractH2(x*AH2_(0.5)+AH2_(0.75));x=x*AH2_(2.0)-AH2_(1.0);return APSinH2(x);} // 3x FMA, 2xFRACT, AND + AH2 APSinCosH1(AH1 x){AH1 y=AFractH1(x*AH1_(0.5)+AH1_(0.75));y=y*AH1_(2.0)-AH1_(1.0);return APSinH2(AH2(x,y));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// [ZOL] ZERO ONE LOGIC +//------------------------------------------------------------------------------------------------------------------------------ +// Conditional free logic designed for easy 16-bit packing, and backwards porting to 32-bit. +//------------------------------------------------------------------------------------------------------------------------------ +// 0 := false +// 1 := true +//------------------------------------------------------------------------------------------------------------------------------ +// AndNot(x,y) -> !(x&y) .... One op. +// AndOr(x,y,z) -> (x&y)|z ... One op. +// GtZero(x) -> x>0.0 ..... One op. +// Sel(x,y,z) -> x?y:z ..... Two ops, has no precision loss. +// Signed(x) -> x<0.0 ..... One op. +// ZeroPass(x,y) -> x?0:y ..... Two ops, 'y' is a pass through safe for aliasing as integer. +//------------------------------------------------------------------------------------------------------------------------------ +// OPTIMIZATION NOTES +// ================== +// - On Vega to use 2 constants in a packed op, pass in as one AW2 or one AH2 'k.xy' and use as 'k.xx' and 'k.yy'. +// For example 'a.xy*k.xx+k.yy'. +//============================================================================================================================== + #if 1 + AU1 AZolAndU1(AU1 x,AU1 y){return min(x,y);} + AU2 AZolAndU2(AU2 x,AU2 y){return min(x,y);} + AU3 AZolAndU3(AU3 x,AU3 y){return min(x,y);} + AU4 AZolAndU4(AU4 x,AU4 y){return min(x,y);} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AZolNotU1(AU1 x){return x^AU1_(1);} + AU2 AZolNotU2(AU2 x){return x^AU2_(1);} + AU3 AZolNotU3(AU3 x){return x^AU3_(1);} + AU4 AZolNotU4(AU4 x){return x^AU4_(1);} +//------------------------------------------------------------------------------------------------------------------------------ + AU1 AZolOrU1(AU1 x,AU1 y){return max(x,y);} + AU2 AZolOrU2(AU2 x,AU2 y){return max(x,y);} + AU3 AZolOrU3(AU3 x,AU3 y){return max(x,y);} + AU4 AZolOrU4(AU4 x,AU4 y){return max(x,y);} +//============================================================================================================================== + AU1 AZolF1ToU1(AF1 x){return AU1(x);} + AU2 AZolF2ToU2(AF2 x){return AU2(x);} + AU3 AZolF3ToU3(AF3 x){return AU3(x);} + AU4 AZolF4ToU4(AF4 x){return AU4(x);} +//------------------------------------------------------------------------------------------------------------------------------ + // 2 ops, denormals don't work in 32-bit on PC (and if they are enabled, OMOD is disabled). + AU1 AZolNotF1ToU1(AF1 x){return AU1(AF1_(1.0)-x);} + AU2 AZolNotF2ToU2(AF2 x){return AU2(AF2_(1.0)-x);} + AU3 AZolNotF3ToU3(AF3 x){return AU3(AF3_(1.0)-x);} + AU4 AZolNotF4ToU4(AF4 x){return AU4(AF4_(1.0)-x);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolU1ToF1(AU1 x){return AF1(x);} + AF2 AZolU2ToF2(AU2 x){return AF2(x);} + AF3 AZolU3ToF3(AU3 x){return AF3(x);} + AF4 AZolU4ToF4(AU4 x){return AF4(x);} +//============================================================================================================================== + AF1 AZolAndF1(AF1 x,AF1 y){return min(x,y);} + AF2 AZolAndF2(AF2 x,AF2 y){return min(x,y);} + AF3 AZolAndF3(AF3 x,AF3 y){return min(x,y);} + AF4 AZolAndF4(AF4 x,AF4 y){return min(x,y);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 ASolAndNotF1(AF1 x,AF1 y){return (-x)*y+AF1_(1.0);} + AF2 ASolAndNotF2(AF2 x,AF2 y){return (-x)*y+AF2_(1.0);} + AF3 ASolAndNotF3(AF3 x,AF3 y){return (-x)*y+AF3_(1.0);} + AF4 ASolAndNotF4(AF4 x,AF4 y){return (-x)*y+AF4_(1.0);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolAndOrF1(AF1 x,AF1 y,AF1 z){return ASatF1(x*y+z);} + AF2 AZolAndOrF2(AF2 x,AF2 y,AF2 z){return ASatF2(x*y+z);} + AF3 AZolAndOrF3(AF3 x,AF3 y,AF3 z){return ASatF3(x*y+z);} + AF4 AZolAndOrF4(AF4 x,AF4 y,AF4 z){return ASatF4(x*y+z);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolGtZeroF1(AF1 x){return ASatF1(x*AF1_(A_INFP_F));} + AF2 AZolGtZeroF2(AF2 x){return ASatF2(x*AF2_(A_INFP_F));} + AF3 AZolGtZeroF3(AF3 x){return ASatF3(x*AF3_(A_INFP_F));} + AF4 AZolGtZeroF4(AF4 x){return ASatF4(x*AF4_(A_INFP_F));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolNotF1(AF1 x){return AF1_(1.0)-x;} + AF2 AZolNotF2(AF2 x){return AF2_(1.0)-x;} + AF3 AZolNotF3(AF3 x){return AF3_(1.0)-x;} + AF4 AZolNotF4(AF4 x){return AF4_(1.0)-x;} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolOrF1(AF1 x,AF1 y){return max(x,y);} + AF2 AZolOrF2(AF2 x,AF2 y){return max(x,y);} + AF3 AZolOrF3(AF3 x,AF3 y){return max(x,y);} + AF4 AZolOrF4(AF4 x,AF4 y){return max(x,y);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolSelF1(AF1 x,AF1 y,AF1 z){AF1 r=(-x)*z+z;return x*y+r;} + AF2 AZolSelF2(AF2 x,AF2 y,AF2 z){AF2 r=(-x)*z+z;return x*y+r;} + AF3 AZolSelF3(AF3 x,AF3 y,AF3 z){AF3 r=(-x)*z+z;return x*y+r;} + AF4 AZolSelF4(AF4 x,AF4 y,AF4 z){AF4 r=(-x)*z+z;return x*y+r;} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolSignedF1(AF1 x){return ASatF1(x*AF1_(A_INFN_F));} + AF2 AZolSignedF2(AF2 x){return ASatF2(x*AF2_(A_INFN_F));} + AF3 AZolSignedF3(AF3 x){return ASatF3(x*AF3_(A_INFN_F));} + AF4 AZolSignedF4(AF4 x){return ASatF4(x*AF4_(A_INFN_F));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AZolZeroPassF1(AF1 x,AF1 y){return AF1_AU1((AU1_AF1(x)!=AU1_(0))?AU1_(0):AU1_AF1(y));} + AF2 AZolZeroPassF2(AF2 x,AF2 y){return AF2_AU2((AU2_AF2(x)!=AU2_(0))?AU2_(0):AU2_AF2(y));} + AF3 AZolZeroPassF3(AF3 x,AF3 y){return AF3_AU3((AU3_AF3(x)!=AU3_(0))?AU3_(0):AU3_AF3(y));} + AF4 AZolZeroPassF4(AF4 x,AF4 y){return AF4_AU4((AU4_AF4(x)!=AU4_(0))?AU4_(0):AU4_AF4(y));} + #endif +//============================================================================================================================== + #ifdef A_HALF + AW1 AZolAndW1(AW1 x,AW1 y){return min(x,y);} + AW2 AZolAndW2(AW2 x,AW2 y){return min(x,y);} + AW3 AZolAndW3(AW3 x,AW3 y){return min(x,y);} + AW4 AZolAndW4(AW4 x,AW4 y){return min(x,y);} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AZolNotW1(AW1 x){return x^AW1_(1);} + AW2 AZolNotW2(AW2 x){return x^AW2_(1);} + AW3 AZolNotW3(AW3 x){return x^AW3_(1);} + AW4 AZolNotW4(AW4 x){return x^AW4_(1);} +//------------------------------------------------------------------------------------------------------------------------------ + AW1 AZolOrW1(AW1 x,AW1 y){return max(x,y);} + AW2 AZolOrW2(AW2 x,AW2 y){return max(x,y);} + AW3 AZolOrW3(AW3 x,AW3 y){return max(x,y);} + AW4 AZolOrW4(AW4 x,AW4 y){return max(x,y);} +//============================================================================================================================== + // Uses denormal trick. + AW1 AZolH1ToW1(AH1 x){return AW1_AH1(x*AH1_AW1(AW1_(1)));} + AW2 AZolH2ToW2(AH2 x){return AW2_AH2(x*AH2_AW2(AW2_(1)));} + AW3 AZolH3ToW3(AH3 x){return AW3_AH3(x*AH3_AW3(AW3_(1)));} + AW4 AZolH4ToW4(AH4 x){return AW4_AH4(x*AH4_AW4(AW4_(1)));} +//------------------------------------------------------------------------------------------------------------------------------ + // AMD arch lacks a packed conversion opcode. + AH1 AZolW1ToH1(AW1 x){return AH1_AW1(x*AW1_AH1(AH1_(1.0)));} + AH2 AZolW2ToH2(AW2 x){return AH2_AW2(x*AW2_AH2(AH2_(1.0)));} + AH3 AZolW1ToH3(AW3 x){return AH3_AW3(x*AW3_AH3(AH3_(1.0)));} + AH4 AZolW2ToH4(AW4 x){return AH4_AW4(x*AW4_AH4(AH4_(1.0)));} +//============================================================================================================================== + AH1 AZolAndH1(AH1 x,AH1 y){return min(x,y);} + AH2 AZolAndH2(AH2 x,AH2 y){return min(x,y);} + AH3 AZolAndH3(AH3 x,AH3 y){return min(x,y);} + AH4 AZolAndH4(AH4 x,AH4 y){return min(x,y);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 ASolAndNotH1(AH1 x,AH1 y){return (-x)*y+AH1_(1.0);} + AH2 ASolAndNotH2(AH2 x,AH2 y){return (-x)*y+AH2_(1.0);} + AH3 ASolAndNotH3(AH3 x,AH3 y){return (-x)*y+AH3_(1.0);} + AH4 ASolAndNotH4(AH4 x,AH4 y){return (-x)*y+AH4_(1.0);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AZolAndOrH1(AH1 x,AH1 y,AH1 z){return ASatH1(x*y+z);} + AH2 AZolAndOrH2(AH2 x,AH2 y,AH2 z){return ASatH2(x*y+z);} + AH3 AZolAndOrH3(AH3 x,AH3 y,AH3 z){return ASatH3(x*y+z);} + AH4 AZolAndOrH4(AH4 x,AH4 y,AH4 z){return ASatH4(x*y+z);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AZolGtZeroH1(AH1 x){return ASatH1(x*AH1_(A_INFP_H));} + AH2 AZolGtZeroH2(AH2 x){return ASatH2(x*AH2_(A_INFP_H));} + AH3 AZolGtZeroH3(AH3 x){return ASatH3(x*AH3_(A_INFP_H));} + AH4 AZolGtZeroH4(AH4 x){return ASatH4(x*AH4_(A_INFP_H));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AZolNotH1(AH1 x){return AH1_(1.0)-x;} + AH2 AZolNotH2(AH2 x){return AH2_(1.0)-x;} + AH3 AZolNotH3(AH3 x){return AH3_(1.0)-x;} + AH4 AZolNotH4(AH4 x){return AH4_(1.0)-x;} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AZolOrH1(AH1 x,AH1 y){return max(x,y);} + AH2 AZolOrH2(AH2 x,AH2 y){return max(x,y);} + AH3 AZolOrH3(AH3 x,AH3 y){return max(x,y);} + AH4 AZolOrH4(AH4 x,AH4 y){return max(x,y);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AZolSelH1(AH1 x,AH1 y,AH1 z){AH1 r=(-x)*z+z;return x*y+r;} + AH2 AZolSelH2(AH2 x,AH2 y,AH2 z){AH2 r=(-x)*z+z;return x*y+r;} + AH3 AZolSelH3(AH3 x,AH3 y,AH3 z){AH3 r=(-x)*z+z;return x*y+r;} + AH4 AZolSelH4(AH4 x,AH4 y,AH4 z){AH4 r=(-x)*z+z;return x*y+r;} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AZolSignedH1(AH1 x){return ASatH1(x*AH1_(A_INFN_H));} + AH2 AZolSignedH2(AH2 x){return ASatH2(x*AH2_(A_INFN_H));} + AH3 AZolSignedH3(AH3 x){return ASatH3(x*AH3_(A_INFN_H));} + AH4 AZolSignedH4(AH4 x){return ASatH4(x*AH4_(A_INFN_H));} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// COLOR CONVERSIONS +//------------------------------------------------------------------------------------------------------------------------------ +// These are all linear to/from some other space (where 'linear' has been shortened out of the function name). +// So 'ToGamma' is 'LinearToGamma', and 'FromGamma' is 'LinearFromGamma'. +// These are branch free implementations. +// The AToSrgbF1() function is useful for stores for compute shaders for GPUs without hardware linear->sRGB store conversion. +//------------------------------------------------------------------------------------------------------------------------------ +// TRANSFER FUNCTIONS +// ================== +// 709 ..... Rec709 used for some HDTVs +// Gamma ... Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native +// Pq ...... PQ native for HDR10 +// Srgb .... The sRGB output, typical of PC displays, useful for 10-bit output, or storing to 8-bit UNORM without SRGB type +// Two ..... Gamma 2.0, fastest conversion (useful for intermediate pass approximations) +// Three ... Gamma 3.0, less fast, but good for HDR. +//------------------------------------------------------------------------------------------------------------------------------ +// KEEPING TO SPEC +// =============== +// Both Rec.709 and sRGB have a linear segment which as spec'ed would intersect the curved segment 2 times. +// (a.) For 8-bit sRGB, steps {0 to 10.3} are in the linear region (4% of the encoding range). +// (b.) For 8-bit 709, steps {0 to 20.7} are in the linear region (8% of the encoding range). +// Also there is a slight step in the transition regions. +// Precision of the coefficients in the spec being the likely cause. +// Main usage case of the sRGB code is to do the linear->sRGB converstion in a compute shader before store. +// This is to work around lack of hardware (typically only ROP does the conversion for free). +// To "correct" the linear segment, would be to introduce error, because hardware decode of sRGB->linear is fixed (and free). +// So this header keeps with the spec. +// For linear->sRGB transforms, the linear segment in some respects reduces error, because rounding in that region is linear. +// Rounding in the curved region in hardware (and fast software code) introduces error due to rounding in non-linear. +//------------------------------------------------------------------------------------------------------------------------------ +// FOR PQ +// ====== +// Both input and output is {0.0-1.0}, and where output 1.0 represents 10000.0 cd/m^2. +// All constants are only specified to FP32 precision. +// External PQ source reference, +// - https://github.com/ampas/aces-dev/blob/master/transforms/ctl/utilities/ACESlib.Utilities_Color.a1.0.1.ctl +//------------------------------------------------------------------------------------------------------------------------------ +// PACKED VERSIONS +// =============== +// These are the A*H2() functions. +// There is no PQ functions as FP16 seemed to not have enough precision for the conversion. +// The remaining functions are "good enough" for 8-bit, and maybe 10-bit if not concerned about a few 1-bit errors. +// Precision is lowest in the 709 conversion, higher in sRGB, higher still in Two and Gamma (when using 2.2 at least). +//------------------------------------------------------------------------------------------------------------------------------ +// NOTES +// ===== +// Could be faster for PQ conversions to be in ALU or a texture lookup depending on usage case. +//============================================================================================================================== + #if 1 + AF1 ATo709F1(AF1 c){AF3 j=AF3(0.018*4.5,4.5,0.45);AF2 k=AF2(1.099,-0.099); + return clamp(j.x ,c*j.y ,pow(c,j.z )*k.x +k.y );} + AF2 ATo709F2(AF2 c){AF3 j=AF3(0.018*4.5,4.5,0.45);AF2 k=AF2(1.099,-0.099); + return clamp(j.xx ,c*j.yy ,pow(c,j.zz )*k.xx +k.yy );} + AF3 ATo709F3(AF3 c){AF3 j=AF3(0.018*4.5,4.5,0.45);AF2 k=AF2(1.099,-0.099); + return clamp(j.xxx,c*j.yyy,pow(c,j.zzz)*k.xxx+k.yyy);} +//------------------------------------------------------------------------------------------------------------------------------ + // Note 'rcpX' is '1/x', where the 'x' is what would be used in AFromGamma(). + AF1 AToGammaF1(AF1 c,AF1 rcpX){return pow(c,AF1_(rcpX));} + AF2 AToGammaF2(AF2 c,AF1 rcpX){return pow(c,AF2_(rcpX));} + AF3 AToGammaF3(AF3 c,AF1 rcpX){return pow(c,AF3_(rcpX));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AToPqF1(AF1 x){AF1 p=pow(x,AF1_(0.159302)); + return pow((AF1_(0.835938)+AF1_(18.8516)*p)/(AF1_(1.0)+AF1_(18.6875)*p),AF1_(78.8438));} + AF2 AToPqF1(AF2 x){AF2 p=pow(x,AF2_(0.159302)); + return pow((AF2_(0.835938)+AF2_(18.8516)*p)/(AF2_(1.0)+AF2_(18.6875)*p),AF2_(78.8438));} + AF3 AToPqF1(AF3 x){AF3 p=pow(x,AF3_(0.159302)); + return pow((AF3_(0.835938)+AF3_(18.8516)*p)/(AF3_(1.0)+AF3_(18.6875)*p),AF3_(78.8438));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AToSrgbF1(AF1 c){AF3 j=AF3(0.0031308*12.92,12.92,1.0/2.4);AF2 k=AF2(1.055,-0.055); + return clamp(j.x ,c*j.y ,pow(c,j.z )*k.x +k.y );} + AF2 AToSrgbF2(AF2 c){AF3 j=AF3(0.0031308*12.92,12.92,1.0/2.4);AF2 k=AF2(1.055,-0.055); + return clamp(j.xx ,c*j.yy ,pow(c,j.zz )*k.xx +k.yy );} + AF3 AToSrgbF3(AF3 c){AF3 j=AF3(0.0031308*12.92,12.92,1.0/2.4);AF2 k=AF2(1.055,-0.055); + return clamp(j.xxx,c*j.yyy,pow(c,j.zzz)*k.xxx+k.yyy);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AToTwoF1(AF1 c){return sqrt(c);} + AF2 AToTwoF2(AF2 c){return sqrt(c);} + AF3 AToTwoF3(AF3 c){return sqrt(c);} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AToThreeF1(AF1 c){return pow(c,AF1_(1.0/3.0));} + AF2 AToThreeF2(AF2 c){return pow(c,AF2_(1.0/3.0));} + AF3 AToThreeF3(AF3 c){return pow(c,AF3_(1.0/3.0));} + #endif +//============================================================================================================================== + #if 1 + // Unfortunately median won't work here. + AF1 AFrom709F1(AF1 c){AF3 j=AF3(0.081/4.5,1.0/4.5,1.0/0.45);AF2 k=AF2(1.0/1.099,0.099/1.099); + return AZolSelF1(AZolSignedF1(c-j.x ),c*j.y ,pow(c*k.x +k.y ,j.z ));} + AF2 AFrom709F2(AF2 c){AF3 j=AF3(0.081/4.5,1.0/4.5,1.0/0.45);AF2 k=AF2(1.0/1.099,0.099/1.099); + return AZolSelF2(AZolSignedF2(c-j.xx ),c*j.yy ,pow(c*k.xx +k.yy ,j.zz ));} + AF3 AFrom709F3(AF3 c){AF3 j=AF3(0.081/4.5,1.0/4.5,1.0/0.45);AF2 k=AF2(1.0/1.099,0.099/1.099); + return AZolSelF3(AZolSignedF3(c-j.xxx),c*j.yyy,pow(c*k.xxx+k.yyy,j.zzz));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AFromGammaF1(AF1 c,AF1 x){return pow(c,AF1_(x));} + AF2 AFromGammaF2(AF2 c,AF1 x){return pow(c,AF2_(x));} + AF3 AFromGammaF3(AF3 c,AF1 x){return pow(c,AF3_(x));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AFromPqF1(AF1 x){AF1 p=pow(x,AF1_(0.0126833)); + return pow(ASatF1(p-AF1_(0.835938))/(AF1_(18.8516)-AF1_(18.6875)*p),AF1_(6.27739));} + AF2 AFromPqF1(AF2 x){AF2 p=pow(x,AF2_(0.0126833)); + return pow(ASatF2(p-AF2_(0.835938))/(AF2_(18.8516)-AF2_(18.6875)*p),AF2_(6.27739));} + AF3 AFromPqF1(AF3 x){AF3 p=pow(x,AF3_(0.0126833)); + return pow(ASatF3(p-AF3_(0.835938))/(AF3_(18.8516)-AF3_(18.6875)*p),AF3_(6.27739));} +//------------------------------------------------------------------------------------------------------------------------------ + // Unfortunately median won't work here. + AF1 AFromSrgbF1(AF1 c){AF3 j=AF3(0.04045/12.92,1.0/12.92,2.4);AF2 k=AF2(1.0/1.055,0.055/1.055); + return AZolSelF1(AZolSignedF1(c-j.x ),c*j.y ,pow(c*k.x +k.y ,j.z ));} + AF2 AFromSrgbF2(AF2 c){AF3 j=AF3(0.04045/12.92,1.0/12.92,2.4);AF2 k=AF2(1.0/1.055,0.055/1.055); + return AZolSelF2(AZolSignedF2(c-j.xx ),c*j.yy ,pow(c*k.xx +k.yy ,j.zz ));} + AF3 AFromSrgbF3(AF3 c){AF3 j=AF3(0.04045/12.92,1.0/12.92,2.4);AF2 k=AF2(1.0/1.055,0.055/1.055); + return AZolSelF3(AZolSignedF3(c-j.xxx),c*j.yyy,pow(c*k.xxx+k.yyy,j.zzz));} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AFromTwoF1(AF1 c){return c*c;} + AF2 AFromTwoF2(AF2 c){return c*c;} + AF3 AFromTwoF3(AF3 c){return c*c;} +//------------------------------------------------------------------------------------------------------------------------------ + AF1 AFromThreeF1(AF1 c){return c*c*c;} + AF2 AFromThreeF2(AF2 c){return c*c*c;} + AF3 AFromThreeF3(AF3 c){return c*c*c;} + #endif +//============================================================================================================================== + #ifdef A_HALF + AH1 ATo709H1(AH1 c){AH3 j=AH3(0.018*4.5,4.5,0.45);AH2 k=AH2(1.099,-0.099); + return clamp(j.x ,c*j.y ,pow(c,j.z )*k.x +k.y );} + AH2 ATo709H2(AH2 c){AH3 j=AH3(0.018*4.5,4.5,0.45);AH2 k=AH2(1.099,-0.099); + return clamp(j.xx ,c*j.yy ,pow(c,j.zz )*k.xx +k.yy );} + AH3 ATo709H3(AH3 c){AH3 j=AH3(0.018*4.5,4.5,0.45);AH2 k=AH2(1.099,-0.099); + return clamp(j.xxx,c*j.yyy,pow(c,j.zzz)*k.xxx+k.yyy);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AToGammaH1(AH1 c,AH1 rcpX){return pow(c,AH1_(rcpX));} + AH2 AToGammaH2(AH2 c,AH1 rcpX){return pow(c,AH2_(rcpX));} + AH3 AToGammaH3(AH3 c,AH1 rcpX){return pow(c,AH3_(rcpX));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AToSrgbH1(AH1 c){AH3 j=AH3(0.0031308*12.92,12.92,1.0/2.4);AH2 k=AH2(1.055,-0.055); + return clamp(j.x ,c*j.y ,pow(c,j.z )*k.x +k.y );} + AH2 AToSrgbH2(AH2 c){AH3 j=AH3(0.0031308*12.92,12.92,1.0/2.4);AH2 k=AH2(1.055,-0.055); + return clamp(j.xx ,c*j.yy ,pow(c,j.zz )*k.xx +k.yy );} + AH3 AToSrgbH3(AH3 c){AH3 j=AH3(0.0031308*12.92,12.92,1.0/2.4);AH2 k=AH2(1.055,-0.055); + return clamp(j.xxx,c*j.yyy,pow(c,j.zzz)*k.xxx+k.yyy);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AToTwoH1(AH1 c){return sqrt(c);} + AH2 AToTwoH2(AH2 c){return sqrt(c);} + AH3 AToTwoH3(AH3 c){return sqrt(c);} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AToThreeF1(AH1 c){return pow(c,AH1_(1.0/3.0));} + AH2 AToThreeF2(AH2 c){return pow(c,AH2_(1.0/3.0));} + AH3 AToThreeF3(AH3 c){return pow(c,AH3_(1.0/3.0));} + #endif +//============================================================================================================================== + #ifdef A_HALF + AH1 AFrom709H1(AH1 c){AH3 j=AH3(0.081/4.5,1.0/4.5,1.0/0.45);AH2 k=AH2(1.0/1.099,0.099/1.099); + return AZolSelH1(AZolSignedH1(c-j.x ),c*j.y ,pow(c*k.x +k.y ,j.z ));} + AH2 AFrom709H2(AH2 c){AH3 j=AH3(0.081/4.5,1.0/4.5,1.0/0.45);AH2 k=AH2(1.0/1.099,0.099/1.099); + return AZolSelH2(AZolSignedH2(c-j.xx ),c*j.yy ,pow(c*k.xx +k.yy ,j.zz ));} + AH3 AFrom709H3(AH3 c){AH3 j=AH3(0.081/4.5,1.0/4.5,1.0/0.45);AH2 k=AH2(1.0/1.099,0.099/1.099); + return AZolSelH3(AZolSignedH3(c-j.xxx),c*j.yyy,pow(c*k.xxx+k.yyy,j.zzz));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AFromGammaH1(AH1 c,AH1 x){return pow(c,AH1_(x));} + AH2 AFromGammaH2(AH2 c,AH1 x){return pow(c,AH2_(x));} + AH3 AFromGammaH3(AH3 c,AH1 x){return pow(c,AH3_(x));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AHromSrgbF1(AH1 c){AH3 j=AH3(0.04045/12.92,1.0/12.92,2.4);AH2 k=AH2(1.0/1.055,0.055/1.055); + return AZolSelH1(AZolSignedH1(c-j.x ),c*j.y ,pow(c*k.x +k.y ,j.z ));} + AH2 AHromSrgbF2(AH2 c){AH3 j=AH3(0.04045/12.92,1.0/12.92,2.4);AH2 k=AH2(1.0/1.055,0.055/1.055); + return AZolSelH2(AZolSignedH2(c-j.xx ),c*j.yy ,pow(c*k.xx +k.yy ,j.zz ));} + AH3 AHromSrgbF3(AH3 c){AH3 j=AH3(0.04045/12.92,1.0/12.92,2.4);AH2 k=AH2(1.0/1.055,0.055/1.055); + return AZolSelH3(AZolSignedH3(c-j.xxx),c*j.yyy,pow(c*k.xxx+k.yyy,j.zzz));} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AFromTwoH1(AH1 c){return c*c;} + AH2 AFromTwoH2(AH2 c){return c*c;} + AH3 AFromTwoH3(AH3 c){return c*c;} +//------------------------------------------------------------------------------------------------------------------------------ + AH1 AFromThreeH1(AH1 c){return c*c*c;} + AH2 AFromThreeH2(AH2 c){return c*c*c;} + AH3 AFromThreeH3(AH3 c){return c*c*c;} + #endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// CS REMAP +//============================================================================================================================== + // Simple remap 64x1 to 8x8 with rotated 2x2 pixel quads in quad linear. + // 543210 + // ====== + // ..xxx. + // yy...y + AU2 ARmp8x8(AU1 a){return AU2(ABfe(a,1u,3u),ABfiM(ABfe(a,3u,3u),a,1u));} +//============================================================================================================================== + // More complex remap 64x1 to 8x8 which is necessary for 2D wave reductions. + // 543210 + // ====== + // .xx..x + // y..yy. + // Details, + // LANE TO 8x8 MAPPING + // =================== + // 00 01 08 09 10 11 18 19 + // 02 03 0a 0b 12 13 1a 1b + // 04 05 0c 0d 14 15 1c 1d + // 06 07 0e 0f 16 17 1e 1f + // 20 21 28 29 30 31 38 39 + // 22 23 2a 2b 32 33 3a 3b + // 24 25 2c 2d 34 35 3c 3d + // 26 27 2e 2f 36 37 3e 3f + AU2 ARmpRed8x8(AU1 a){return AU2(ABfiM(ABfe(a,2u,3u),a,1u),ABfiM(ABfe(a,3u,3u),ABfe(a,1u,2u),2u));} +//============================================================================================================================== + #ifdef A_HALF + AW2 ARmp8x8H(AU1 a){return AW2(ABfe(a,1u,3u),ABfiM(ABfe(a,3u,3u),a,1u));} + AW2 ARmpRed8x8H(AU1 a){return AW2(ABfiM(ABfe(a,2u,3u),a,1u),ABfiM(ABfe(a,3u,3u),ABfe(a,1u,2u),2u));} + #endif +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// REFERENCE +// +//------------------------------------------------------------------------------------------------------------------------------ +// IEEE FLOAT RULES +// ================ +// - saturate(NaN)=0, saturate(-INF)=0, saturate(+INF)=1 +// - {+/-}0 * {+/-}INF = NaN +// - -INF + (+INF) = NaN +// - {+/-}0 / {+/-}0 = NaN +// - {+/-}INF / {+/-}INF = NaN +// - a<(-0) := sqrt(a) = NaN (a=-0.0 won't NaN) +// - 0 == -0 +// - 4/0 = +INF +// - 4/-0 = -INF +// - 4+INF = +INF +// - 4-INF = -INF +// - 4*(+INF) = +INF +// - 4*(-INF) = -INF +// - -4*(+INF) = -INF +// - sqrt(+INF) = +INF +//------------------------------------------------------------------------------------------------------------------------------ +// FP16 ENCODING +// ============= +// fedcba9876543210 +// ---------------- +// ......mmmmmmmmmm 10-bit mantissa (encodes 11-bit 0.5 to 1.0 except for denormals) +// .eeeee.......... 5-bit exponent +// .00000.......... denormals +// .00001.......... -14 exponent +// .11110.......... 15 exponent +// .111110000000000 infinity +// .11111nnnnnnnnnn NaN with n!=0 +// s............... sign +//------------------------------------------------------------------------------------------------------------------------------ +// FP16/INT16 ALIASING DENORMAL +// ============================ +// 11-bit unsigned integers alias with half float denormal/normal values, +// 1 = 2^(-24) = 1/16777216 ....................... first denormal value +// 2 = 2^(-23) +// ... +// 1023 = 2^(-14)*(1-2^(-10)) = 2^(-14)*(1-1/1024) ... last denormal value +// 1024 = 2^(-14) = 1/16384 .......................... first normal value that still maps to integers +// 2047 .............................................. last normal value that still maps to integers +// Scaling limits, +// 2^15 = 32768 ...................................... largest power of 2 scaling +// Largest pow2 conversion mapping is at *32768, +// 1 : 2^(-9) = 1/512 +// 2 : 1/256 +// 4 : 1/128 +// 8 : 1/64 +// 16 : 1/32 +// 32 : 1/16 +// 64 : 1/8 +// 128 : 1/4 +// 256 : 1/2 +// 512 : 1 +// 1024 : 2 +// 2047 : a little less than 4 +//============================================================================================================================== +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// +// GPU/CPU PORTABILITY +// +// +//------------------------------------------------------------------------------------------------------------------------------ +// This is the GPU implementation. +// See the CPU implementation for docs. +//============================================================================================================================== +#ifdef A_GPU + #define A_TRUE true + #define A_FALSE false + #define A_STATIC +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// VECTOR ARGUMENT/RETURN/INITIALIZATION PORTABILITY +//============================================================================================================================== + #define retAD2 AD2 + #define retAD3 AD3 + #define retAD4 AD4 + #define retAF2 AF2 + #define retAF3 AF3 + #define retAF4 AF4 + #define retAL2 AL2 + #define retAL3 AL3 + #define retAL4 AL4 + #define retAU2 AU2 + #define retAU3 AU3 + #define retAU4 AU4 +//------------------------------------------------------------------------------------------------------------------------------ + #define inAD2 in AD2 + #define inAD3 in AD3 + #define inAD4 in AD4 + #define inAF2 in AF2 + #define inAF3 in AF3 + #define inAF4 in AF4 + #define inAL2 in AL2 + #define inAL3 in AL3 + #define inAL4 in AL4 + #define inAU2 in AU2 + #define inAU3 in AU3 + #define inAU4 in AU4 +//------------------------------------------------------------------------------------------------------------------------------ + #define inoutAD2 inout AD2 + #define inoutAD3 inout AD3 + #define inoutAD4 inout AD4 + #define inoutAF2 inout AF2 + #define inoutAF3 inout AF3 + #define inoutAF4 inout AF4 + #define inoutAL2 inout AL2 + #define inoutAL3 inout AL3 + #define inoutAL4 inout AL4 + #define inoutAU2 inout AU2 + #define inoutAU3 inout AU3 + #define inoutAU4 inout AU4 +//------------------------------------------------------------------------------------------------------------------------------ + #define outAD2 out AD2 + #define outAD3 out AD3 + #define outAD4 out AD4 + #define outAF2 out AF2 + #define outAF3 out AF3 + #define outAF4 out AF4 + #define outAL2 out AL2 + #define outAL3 out AL3 + #define outAL4 out AL4 + #define outAU2 out AU2 + #define outAU3 out AU3 + #define outAU4 out AU4 +//------------------------------------------------------------------------------------------------------------------------------ + #define varAD2(x) AD2 x + #define varAD3(x) AD3 x + #define varAD4(x) AD4 x + #define varAF2(x) AF2 x + #define varAF3(x) AF3 x + #define varAF4(x) AF4 x + #define varAL2(x) AL2 x + #define varAL3(x) AL3 x + #define varAL4(x) AL4 x + #define varAU2(x) AU2 x + #define varAU3(x) AU3 x + #define varAU4(x) AU4 x +//------------------------------------------------------------------------------------------------------------------------------ + #define initAD2(x,y) AD2(x,y) + #define initAD3(x,y,z) AD3(x,y,z) + #define initAD4(x,y,z,w) AD4(x,y,z,w) + #define initAF2(x,y) AF2(x,y) + #define initAF3(x,y,z) AF3(x,y,z) + #define initAF4(x,y,z,w) AF4(x,y,z,w) + #define initAL2(x,y) AL2(x,y) + #define initAL3(x,y,z) AL3(x,y,z) + #define initAL4(x,y,z,w) AL4(x,y,z,w) + #define initAU2(x,y) AU2(x,y) + #define initAU3(x,y,z) AU3(x,y,z) + #define initAU4(x,y,z,w) AU4(x,y,z,w) +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// SCALAR RETURN OPS +//============================================================================================================================== + #define AAbsD1(a) abs(AD1(a)) + #define AAbsF1(a) abs(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define ACosD1(a) cos(AD1(a)) + #define ACosF1(a) cos(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define ADotD2(a,b) dot(AD2(a),AD2(b)) + #define ADotD3(a,b) dot(AD3(a),AD3(b)) + #define ADotD4(a,b) dot(AD4(a),AD4(b)) + #define ADotF2(a,b) dot(AF2(a),AF2(b)) + #define ADotF3(a,b) dot(AF3(a),AF3(b)) + #define ADotF4(a,b) dot(AF4(a),AF4(b)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AExp2D1(a) exp2(AD1(a)) + #define AExp2F1(a) exp2(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AFloorD1(a) floor(AD1(a)) + #define AFloorF1(a) floor(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define ALog2D1(a) log2(AD1(a)) + #define ALog2F1(a) log2(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define AMaxD1(a,b) max(a,b) + #define AMaxF1(a,b) max(a,b) + #define AMaxL1(a,b) max(a,b) + #define AMaxU1(a,b) max(a,b) +//------------------------------------------------------------------------------------------------------------------------------ + #define AMinD1(a,b) min(a,b) + #define AMinF1(a,b) min(a,b) + #define AMinL1(a,b) min(a,b) + #define AMinU1(a,b) min(a,b) +//------------------------------------------------------------------------------------------------------------------------------ + #define ASinD1(a) sin(AD1(a)) + #define ASinF1(a) sin(AF1(a)) +//------------------------------------------------------------------------------------------------------------------------------ + #define ASqrtD1(a) sqrt(AD1(a)) + #define ASqrtF1(a) sqrt(AF1(a)) +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// SCALAR RETURN OPS - DEPENDENT +//============================================================================================================================== + #define APowD1(a,b) pow(AD1(a),AF1(b)) + #define APowF1(a,b) pow(AF1(a),AF1(b)) +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// VECTOR OPS +//------------------------------------------------------------------------------------------------------------------------------ +// These are added as needed for production or prototyping, so not necessarily a complete set. +// They follow a convention of taking in a destination and also returning the destination value to increase utility. +//============================================================================================================================== + #ifdef A_DUBL + AD2 opAAbsD2(outAD2 d,inAD2 a){d=abs(a);return d;} + AD3 opAAbsD3(outAD3 d,inAD3 a){d=abs(a);return d;} + AD4 opAAbsD4(outAD4 d,inAD4 a){d=abs(a);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opAAddD2(outAD2 d,inAD2 a,inAD2 b){d=a+b;return d;} + AD3 opAAddD3(outAD3 d,inAD3 a,inAD3 b){d=a+b;return d;} + AD4 opAAddD4(outAD4 d,inAD4 a,inAD4 b){d=a+b;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opAAddOneD2(outAD2 d,inAD2 a,AD1 b){d=a+AD2_(b);return d;} + AD3 opAAddOneD3(outAD3 d,inAD3 a,AD1 b){d=a+AD3_(b);return d;} + AD4 opAAddOneD4(outAD4 d,inAD4 a,AD1 b){d=a+AD4_(b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opACpyD2(outAD2 d,inAD2 a){d=a;return d;} + AD3 opACpyD3(outAD3 d,inAD3 a){d=a;return d;} + AD4 opACpyD4(outAD4 d,inAD4 a){d=a;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opALerpD2(outAD2 d,inAD2 a,inAD2 b,inAD2 c){d=ALerpD2(a,b,c);return d;} + AD3 opALerpD3(outAD3 d,inAD3 a,inAD3 b,inAD3 c){d=ALerpD3(a,b,c);return d;} + AD4 opALerpD4(outAD4 d,inAD4 a,inAD4 b,inAD4 c){d=ALerpD4(a,b,c);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opALerpOneD2(outAD2 d,inAD2 a,inAD2 b,AD1 c){d=ALerpD2(a,b,AD2_(c));return d;} + AD3 opALerpOneD3(outAD3 d,inAD3 a,inAD3 b,AD1 c){d=ALerpD3(a,b,AD3_(c));return d;} + AD4 opALerpOneD4(outAD4 d,inAD4 a,inAD4 b,AD1 c){d=ALerpD4(a,b,AD4_(c));return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opAMaxD2(outAD2 d,inAD2 a,inAD2 b){d=max(a,b);return d;} + AD3 opAMaxD3(outAD3 d,inAD3 a,inAD3 b){d=max(a,b);return d;} + AD4 opAMaxD4(outAD4 d,inAD4 a,inAD4 b){d=max(a,b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opAMinD2(outAD2 d,inAD2 a,inAD2 b){d=min(a,b);return d;} + AD3 opAMinD3(outAD3 d,inAD3 a,inAD3 b){d=min(a,b);return d;} + AD4 opAMinD4(outAD4 d,inAD4 a,inAD4 b){d=min(a,b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opAMulD2(outAD2 d,inAD2 a,inAD2 b){d=a*b;return d;} + AD3 opAMulD3(outAD3 d,inAD3 a,inAD3 b){d=a*b;return d;} + AD4 opAMulD4(outAD4 d,inAD4 a,inAD4 b){d=a*b;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opAMulOneD2(outAD2 d,inAD2 a,AD1 b){d=a*AD2_(b);return d;} + AD3 opAMulOneD3(outAD3 d,inAD3 a,AD1 b){d=a*AD3_(b);return d;} + AD4 opAMulOneD4(outAD4 d,inAD4 a,AD1 b){d=a*AD4_(b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opANegD2(outAD2 d,inAD2 a){d=-a;return d;} + AD3 opANegD3(outAD3 d,inAD3 a){d=-a;return d;} + AD4 opANegD4(outAD4 d,inAD4 a){d=-a;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AD2 opARcpD2(outAD2 d,inAD2 a){d=ARcpD2(a);return d;} + AD3 opARcpD3(outAD3 d,inAD3 a){d=ARcpD3(a);return d;} + AD4 opARcpD4(outAD4 d,inAD4 a){d=ARcpD4(a);return d;} + #endif +//============================================================================================================================== + AF2 opAAbsF2(outAF2 d,inAF2 a){d=abs(a);return d;} + AF3 opAAbsF3(outAF3 d,inAF3 a){d=abs(a);return d;} + AF4 opAAbsF4(outAF4 d,inAF4 a){d=abs(a);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opAAddF2(outAF2 d,inAF2 a,inAF2 b){d=a+b;return d;} + AF3 opAAddF3(outAF3 d,inAF3 a,inAF3 b){d=a+b;return d;} + AF4 opAAddF4(outAF4 d,inAF4 a,inAF4 b){d=a+b;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opAAddOneF2(outAF2 d,inAF2 a,AF1 b){d=a+AF2_(b);return d;} + AF3 opAAddOneF3(outAF3 d,inAF3 a,AF1 b){d=a+AF3_(b);return d;} + AF4 opAAddOneF4(outAF4 d,inAF4 a,AF1 b){d=a+AF4_(b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opACpyF2(outAF2 d,inAF2 a){d=a;return d;} + AF3 opACpyF3(outAF3 d,inAF3 a){d=a;return d;} + AF4 opACpyF4(outAF4 d,inAF4 a){d=a;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opALerpF2(outAF2 d,inAF2 a,inAF2 b,inAF2 c){d=ALerpF2(a,b,c);return d;} + AF3 opALerpF3(outAF3 d,inAF3 a,inAF3 b,inAF3 c){d=ALerpF3(a,b,c);return d;} + AF4 opALerpF4(outAF4 d,inAF4 a,inAF4 b,inAF4 c){d=ALerpF4(a,b,c);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opALerpOneF2(outAF2 d,inAF2 a,inAF2 b,AF1 c){d=ALerpF2(a,b,AF2_(c));return d;} + AF3 opALerpOneF3(outAF3 d,inAF3 a,inAF3 b,AF1 c){d=ALerpF3(a,b,AF3_(c));return d;} + AF4 opALerpOneF4(outAF4 d,inAF4 a,inAF4 b,AF1 c){d=ALerpF4(a,b,AF4_(c));return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opAMaxF2(outAF2 d,inAF2 a,inAF2 b){d=max(a,b);return d;} + AF3 opAMaxF3(outAF3 d,inAF3 a,inAF3 b){d=max(a,b);return d;} + AF4 opAMaxF4(outAF4 d,inAF4 a,inAF4 b){d=max(a,b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opAMinF2(outAF2 d,inAF2 a,inAF2 b){d=min(a,b);return d;} + AF3 opAMinF3(outAF3 d,inAF3 a,inAF3 b){d=min(a,b);return d;} + AF4 opAMinF4(outAF4 d,inAF4 a,inAF4 b){d=min(a,b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opAMulF2(outAF2 d,inAF2 a,inAF2 b){d=a*b;return d;} + AF3 opAMulF3(outAF3 d,inAF3 a,inAF3 b){d=a*b;return d;} + AF4 opAMulF4(outAF4 d,inAF4 a,inAF4 b){d=a*b;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opAMulOneF2(outAF2 d,inAF2 a,AF1 b){d=a*AF2_(b);return d;} + AF3 opAMulOneF3(outAF3 d,inAF3 a,AF1 b){d=a*AF3_(b);return d;} + AF4 opAMulOneF4(outAF4 d,inAF4 a,AF1 b){d=a*AF4_(b);return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opANegF2(outAF2 d,inAF2 a){d=-a;return d;} + AF3 opANegF3(outAF3 d,inAF3 a){d=-a;return d;} + AF4 opANegF4(outAF4 d,inAF4 a){d=-a;return d;} +//------------------------------------------------------------------------------------------------------------------------------ + AF2 opARcpF2(outAF2 d,inAF2 a){d=ARcpF2(a);return d;} + AF3 opARcpF3(outAF3 d,inAF3 a){d=ARcpF3(a);return d;} + AF4 opARcpF4(outAF4 d,inAF4 a){d=ARcpF4(a);return d;} +#endif diff --git a/runtime/shaders/ffx/ffx_fsr1.h b/runtime/shaders/ffx/ffx_fsr1.h new file mode 100644 index 00000000..4e0b3d54 --- /dev/null +++ b/runtime/shaders/ffx/ffx_fsr1.h @@ -0,0 +1,1199 @@ +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// +// AMD FidelityFX SUPER RESOLUTION [FSR 1] ::: SPATIAL SCALING & EXTRAS - v1.20210629 +// +// +//------------------------------------------------------------------------------------------------------------------------------ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//------------------------------------------------------------------------------------------------------------------------------ +// FidelityFX Super Resolution Sample +// +// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files(the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions : +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +//------------------------------------------------------------------------------------------------------------------------------ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//------------------------------------------------------------------------------------------------------------------------------ +// ABOUT +// ===== +// FSR is a collection of algorithms relating to generating a higher resolution image. +// This specific header focuses on single-image non-temporal image scaling, and related tools. +// +// The core functions are EASU and RCAS: +// [EASU] Edge Adaptive Spatial Upsampling ....... 1x to 4x area range spatial scaling, clamped adaptive elliptical filter. +// [RCAS] Robust Contrast Adaptive Sharpening .... A non-scaling variation on CAS. +// RCAS needs to be applied after EASU as a separate pass. +// +// Optional utility functions are: +// [LFGA] Linear Film Grain Applicator ........... Tool to apply film grain after scaling. +// [SRTM] Simple Reversible Tone-Mapper .......... Linear HDR {0 to FP16_MAX} to {0 to 1} and back. +// [TEPD] Temporal Energy Preserving Dither ...... Temporally energy preserving dithered {0 to 1} linear to gamma 2.0 conversion. +// See each individual sub-section for inline documentation. +//------------------------------------------------------------------------------------------------------------------------------ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//------------------------------------------------------------------------------------------------------------------------------ +// FUNCTION PERMUTATIONS +// ===================== +// *F() ..... Single item computation with 32-bit. +// *H() ..... Single item computation with 16-bit, with packing (aka two 16-bit ops in parallel) when possible. +// *Hx2() ... Processing two items in parallel with 16-bit, easier packing. +// Not all interfaces in this file have a *Hx2() form. +//============================================================================================================================== +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// FSR - [EASU] EDGE ADAPTIVE SPATIAL UPSAMPLING +// +//------------------------------------------------------------------------------------------------------------------------------ +// EASU provides a high quality spatial-only scaling at relatively low cost. +// Meaning EASU is appropiate for laptops and other low-end GPUs. +// Quality from 1x to 4x area scaling is good. +//------------------------------------------------------------------------------------------------------------------------------ +// The scalar uses a modified fast approximation to the standard lanczos(size=2) kernel. +// EASU runs in a single pass, so it applies a directionally and anisotropically adaptive radial lanczos. +// This is also kept as simple as possible to have minimum runtime. +//------------------------------------------------------------------------------------------------------------------------------ +// The lanzcos filter has negative lobes, so by itself it will introduce ringing. +// To remove all ringing, the algorithm uses the nearest 2x2 input texels as a neighborhood, +// and limits output to the minimum and maximum of that neighborhood. +//------------------------------------------------------------------------------------------------------------------------------ +// Input image requirements: +// +// Color needs to be encoded as 3 channel[red, green, blue](e.g.XYZ not supported) +// Each channel needs to be in the range[0, 1] +// Any color primaries are supported +// Display / tonemapping curve needs to be as if presenting to sRGB display or similar(e.g.Gamma 2.0) +// There should be no banding in the input +// There should be no high amplitude noise in the input +// There should be no noise in the input that is not at input pixel granularity +// For performance purposes, use 32bpp formats +//------------------------------------------------------------------------------------------------------------------------------ +// Best to apply EASU at the end of the frame after tonemapping +// but before film grain or composite of the UI. +//------------------------------------------------------------------------------------------------------------------------------ +// Example of including this header for D3D HLSL : +// +// #define A_GPU 1 +// #define A_HLSL 1 +// #define A_HALF 1 +// #include "ffx_a.h" +// #define FSR_EASU_H 1 +// #define FSR_RCAS_H 1 +// //declare input callbacks +// #include "ffx_fsr1.h" +// +// Example of including this header for Vulkan GLSL : +// +// #define A_GPU 1 +// #define A_GLSL 1 +// #define A_HALF 1 +// #include "ffx_a.h" +// #define FSR_EASU_H 1 +// #define FSR_RCAS_H 1 +// //declare input callbacks +// #include "ffx_fsr1.h" +// +// Example of including this header for Vulkan HLSL : +// +// #define A_GPU 1 +// #define A_HLSL 1 +// #define A_HLSL_6_2 1 +// #define A_NO_16_BIT_CAST 1 +// #define A_HALF 1 +// #include "ffx_a.h" +// #define FSR_EASU_H 1 +// #define FSR_RCAS_H 1 +// //declare input callbacks +// #include "ffx_fsr1.h" +// +// Example of declaring the required input callbacks for GLSL : +// The callbacks need to gather4 for each color channel using the specified texture coordinate 'p'. +// EASU uses gather4 to reduce position computation logic and for free Arrays of Structures to Structures of Arrays conversion. +// +// AH4 FsrEasuRH(AF2 p){return AH4(textureGather(sampler2D(tex,sam),p,0));} +// AH4 FsrEasuGH(AF2 p){return AH4(textureGather(sampler2D(tex,sam),p,1));} +// AH4 FsrEasuBH(AF2 p){return AH4(textureGather(sampler2D(tex,sam),p,2));} +// ... +// The FsrEasuCon function needs to be called from the CPU or GPU to set up constants. +// The difference in viewport and input image size is there to support Dynamic Resolution Scaling. +// To use FsrEasuCon() on the CPU, define A_CPU before including ffx_a and ffx_fsr1. +// Including a GPU example here, the 'con0' through 'con3' values would be stored out to a constant buffer. +// AU4 con0,con1,con2,con3; +// FsrEasuCon(con0,con1,con2,con3, +// 1920.0,1080.0, // Viewport size (top left aligned) in the input image which is to be scaled. +// 3840.0,2160.0, // The size of the input image. +// 2560.0,1440.0); // The output resolution. +//============================================================================================================================== +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// CONSTANT SETUP +//============================================================================================================================== +// Call to setup required constant values (works on CPU or GPU). +A_STATIC void FsrEasuCon( +outAU4 con0, +outAU4 con1, +outAU4 con2, +outAU4 con3, +// This the rendered image resolution being upscaled +AF1 inputViewportInPixelsX, +AF1 inputViewportInPixelsY, +// This is the resolution of the resource containing the input image (useful for dynamic resolution) +AF1 inputSizeInPixelsX, +AF1 inputSizeInPixelsY, +// This is the display resolution which the input image gets upscaled to +AF1 outputSizeInPixelsX, +AF1 outputSizeInPixelsY){ + // Output integer position to a pixel position in viewport. + con0[0]=AU1_AF1(inputViewportInPixelsX*ARcpF1(outputSizeInPixelsX)); + con0[1]=AU1_AF1(inputViewportInPixelsY*ARcpF1(outputSizeInPixelsY)); + con0[2]=AU1_AF1(AF1_(0.5)*inputViewportInPixelsX*ARcpF1(outputSizeInPixelsX)-AF1_(0.5)); + con0[3]=AU1_AF1(AF1_(0.5)*inputViewportInPixelsY*ARcpF1(outputSizeInPixelsY)-AF1_(0.5)); + // Viewport pixel position to normalized image space. + // This is used to get upper-left of 'F' tap. + con1[0]=AU1_AF1(ARcpF1(inputSizeInPixelsX)); + con1[1]=AU1_AF1(ARcpF1(inputSizeInPixelsY)); + // Centers of gather4, first offset from upper-left of 'F'. + // +---+---+ + // | | | + // +--(0)--+ + // | b | c | + // +---F---+---+---+ + // | e | f | g | h | + // +--(1)--+--(2)--+ + // | i | j | k | l | + // +---+---+---+---+ + // | n | o | + // +--(3)--+ + // | | | + // +---+---+ + con1[2]=AU1_AF1(AF1_( 1.0)*ARcpF1(inputSizeInPixelsX)); + con1[3]=AU1_AF1(AF1_(-1.0)*ARcpF1(inputSizeInPixelsY)); + // These are from (0) instead of 'F'. + con2[0]=AU1_AF1(AF1_(-1.0)*ARcpF1(inputSizeInPixelsX)); + con2[1]=AU1_AF1(AF1_( 2.0)*ARcpF1(inputSizeInPixelsY)); + con2[2]=AU1_AF1(AF1_( 1.0)*ARcpF1(inputSizeInPixelsX)); + con2[3]=AU1_AF1(AF1_( 2.0)*ARcpF1(inputSizeInPixelsY)); + con3[0]=AU1_AF1(AF1_( 0.0)*ARcpF1(inputSizeInPixelsX)); + con3[1]=AU1_AF1(AF1_( 4.0)*ARcpF1(inputSizeInPixelsY)); + con3[2]=con3[3]=0;} + +//If the an offset into the input image resource +A_STATIC void FsrEasuConOffset( + outAU4 con0, + outAU4 con1, + outAU4 con2, + outAU4 con3, + // This the rendered image resolution being upscaled + AF1 inputViewportInPixelsX, + AF1 inputViewportInPixelsY, + // This is the resolution of the resource containing the input image (useful for dynamic resolution) + AF1 inputSizeInPixelsX, + AF1 inputSizeInPixelsY, + // This is the display resolution which the input image gets upscaled to + AF1 outputSizeInPixelsX, + AF1 outputSizeInPixelsY, + // This is the input image offset into the resource containing it (useful for dynamic resolution) + AF1 inputOffsetInPixelsX, + AF1 inputOffsetInPixelsY) { + FsrEasuCon(con0, con1, con2, con3, inputViewportInPixelsX, inputViewportInPixelsY, inputSizeInPixelsX, inputSizeInPixelsY, outputSizeInPixelsX, outputSizeInPixelsY); + con0[2] = AU1_AF1(AF1_(0.5) * inputViewportInPixelsX * ARcpF1(outputSizeInPixelsX) - AF1_(0.5) + inputOffsetInPixelsX); + con0[3] = AU1_AF1(AF1_(0.5) * inputViewportInPixelsY * ARcpF1(outputSizeInPixelsY) - AF1_(0.5) + inputOffsetInPixelsY); +} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// NON-PACKED 32-BIT VERSION +//============================================================================================================================== +#if defined(A_GPU)&&defined(FSR_EASU_F) + // Input callback prototypes, need to be implemented by calling shader + AF4 FsrEasuRF(AF2 p); + AF4 FsrEasuGF(AF2 p); + AF4 FsrEasuBF(AF2 p); +//------------------------------------------------------------------------------------------------------------------------------ + // Filtering for a given tap for the scalar. + void FsrEasuTapF( + inout AF3 aC, // Accumulated color, with negative lobe. + inout AF1 aW, // Accumulated weight. + AF2 off, // Pixel offset from resolve position to tap. + AF2 dir, // Gradient direction. + AF2 len, // Length. + AF1 lob, // Negative lobe strength. + AF1 clp, // Clipping point. + AF3 c){ // Tap color. + // Rotate offset by direction. + AF2 v; + v.x=(off.x*( dir.x))+(off.y*dir.y); + v.y=(off.x*(-dir.y))+(off.y*dir.x); + // Anisotropy. + v*=len; + // Compute distance^2. + AF1 d2=v.x*v.x+v.y*v.y; + // Limit to the window as at corner, 2 taps can easily be outside. + d2=min(d2,clp); + // Approximation of lancos2 without sin() or rcp(), or sqrt() to get x. + // (25/16 * (2/5 * x^2 - 1)^2 - (25/16 - 1)) * (1/4 * x^2 - 1)^2 + // |_______________________________________| |_______________| + // base window + // The general form of the 'base' is, + // (a*(b*x^2-1)^2-(a-1)) + // Where 'a=1/(2*b-b^2)' and 'b' moves around the negative lobe. + AF1 wB=AF1_(2.0/5.0)*d2+AF1_(-1.0); + AF1 wA=lob*d2+AF1_(-1.0); + wB*=wB; + wA*=wA; + wB=AF1_(25.0/16.0)*wB+AF1_(-(25.0/16.0-1.0)); + AF1 w=wB*wA; + // Do weighted average. + aC+=c*w;aW+=w;} +//------------------------------------------------------------------------------------------------------------------------------ + // Accumulate direction and length. + void FsrEasuSetF( + inout AF2 dir, + inout AF1 len, + AF2 pp, + AP1 biS,AP1 biT,AP1 biU,AP1 biV, + AF1 lA,AF1 lB,AF1 lC,AF1 lD,AF1 lE){ + // Compute bilinear weight, branches factor out as predicates are compiler time immediates. + // s t + // u v + AF1 w = AF1_(0.0); + if(biS)w=(AF1_(1.0)-pp.x)*(AF1_(1.0)-pp.y); + if(biT)w= pp.x *(AF1_(1.0)-pp.y); + if(biU)w=(AF1_(1.0)-pp.x)* pp.y ; + if(biV)w= pp.x * pp.y ; + // Direction is the '+' diff. + // a + // b c d + // e + // Then takes magnitude from abs average of both sides of 'c'. + // Length converts gradient reversal to 0, smoothly to non-reversal at 1, shaped, then adding horz and vert terms. + AF1 dc=lD-lC; + AF1 cb=lC-lB; + AF1 lenX=max(abs(dc),abs(cb)); + lenX=APrxLoRcpF1(lenX); + AF1 dirX=lD-lB; + dir.x+=dirX*w; + lenX=ASatF1(abs(dirX)*lenX); + lenX*=lenX; + len+=lenX*w; + // Repeat for the y axis. + AF1 ec=lE-lC; + AF1 ca=lC-lA; + AF1 lenY=max(abs(ec),abs(ca)); + lenY=APrxLoRcpF1(lenY); + AF1 dirY=lE-lA; + dir.y+=dirY*w; + lenY=ASatF1(abs(dirY)*lenY); + lenY*=lenY; + len+=lenY*w;} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrEasuF( + out AF3 pix, + AU2 ip, // Integer pixel position in output. + AU4 con0, // Constants generated by FsrEasuCon(). + AU4 con1, + AU4 con2, + AU4 con3){ +//------------------------------------------------------------------------------------------------------------------------------ + // Get position of 'f'. + AF2 pp=AF2(ip)*AF2_AU2(con0.xy)+AF2_AU2(con0.zw); + AF2 fp=floor(pp); + pp-=fp; +//------------------------------------------------------------------------------------------------------------------------------ + // 12-tap kernel. + // b c + // e f g h + // i j k l + // n o + // Gather 4 ordering. + // a b + // r g + // For packed FP16, need either {rg} or {ab} so using the following setup for gather in all versions, + // a b <- unused (z) + // r g + // a b a b + // r g r g + // a b + // r g <- unused (z) + // Allowing dead-code removal to remove the 'z's. + AF2 p0=fp*AF2_AU2(con1.xy)+AF2_AU2(con1.zw); + // These are from p0 to avoid pulling two constants on pre-Navi hardware. + AF2 p1=p0+AF2_AU2(con2.xy); + AF2 p2=p0+AF2_AU2(con2.zw); + AF2 p3=p0+AF2_AU2(con3.xy); + AF4 bczzR=FsrEasuRF(p0); + AF4 bczzG=FsrEasuGF(p0); + AF4 bczzB=FsrEasuBF(p0); + AF4 ijfeR=FsrEasuRF(p1); + AF4 ijfeG=FsrEasuGF(p1); + AF4 ijfeB=FsrEasuBF(p1); + AF4 klhgR=FsrEasuRF(p2); + AF4 klhgG=FsrEasuGF(p2); + AF4 klhgB=FsrEasuBF(p2); + AF4 zzonR=FsrEasuRF(p3); + AF4 zzonG=FsrEasuGF(p3); + AF4 zzonB=FsrEasuBF(p3); +//------------------------------------------------------------------------------------------------------------------------------ + // Simplest multi-channel approximate luma possible (luma times 2, in 2 FMA/MAD). + AF4 bczzL=bczzB*AF4_(0.5)+(bczzR*AF4_(0.5)+bczzG); + AF4 ijfeL=ijfeB*AF4_(0.5)+(ijfeR*AF4_(0.5)+ijfeG); + AF4 klhgL=klhgB*AF4_(0.5)+(klhgR*AF4_(0.5)+klhgG); + AF4 zzonL=zzonB*AF4_(0.5)+(zzonR*AF4_(0.5)+zzonG); + // Rename. + AF1 bL=bczzL.x; + AF1 cL=bczzL.y; + AF1 iL=ijfeL.x; + AF1 jL=ijfeL.y; + AF1 fL=ijfeL.z; + AF1 eL=ijfeL.w; + AF1 kL=klhgL.x; + AF1 lL=klhgL.y; + AF1 hL=klhgL.z; + AF1 gL=klhgL.w; + AF1 oL=zzonL.z; + AF1 nL=zzonL.w; + // Accumulate for bilinear interpolation. + AF2 dir=AF2_(0.0); + AF1 len=AF1_(0.0); + FsrEasuSetF(dir,len,pp,true, false,false,false,bL,eL,fL,gL,jL); + FsrEasuSetF(dir,len,pp,false,true ,false,false,cL,fL,gL,hL,kL); + FsrEasuSetF(dir,len,pp,false,false,true ,false,fL,iL,jL,kL,nL); + FsrEasuSetF(dir,len,pp,false,false,false,true ,gL,jL,kL,lL,oL); +//------------------------------------------------------------------------------------------------------------------------------ + // Normalize with approximation, and cleanup close to zero. + AF2 dir2=dir*dir; + AF1 dirR=dir2.x+dir2.y; + AP1 zro=dirR w = -m/(n+e+w+s) +// 1 == (w*(n+e+w+s)+m)/(4*w+1) -> w = (1-m)/(n+e+w+s-4*1) +// Then chooses the 'w' which results in no clipping, limits 'w', and multiplies by the 'sharp' amount. +// This solution above has issues with MSAA input as the steps along the gradient cause edge detection issues. +// So RCAS uses 4x the maximum and 4x the minimum (depending on equation)in place of the individual taps. +// As well as switching from 'm' to either the minimum or maximum (depending on side), to help in energy conservation. +// This stabilizes RCAS. +// RCAS does a simple highpass which is normalized against the local contrast then shaped, +// 0.25 +// 0.25 -1 0.25 +// 0.25 +// This is used as a noise detection filter, to reduce the effect of RCAS on grain, and focus on real edges. +// +// GLSL example for the required callbacks : +// +// AH4 FsrRcasLoadH(ASW2 p){return AH4(imageLoad(imgSrc,ASU2(p)));} +// void FsrRcasInputH(inout AH1 r,inout AH1 g,inout AH1 b) +// { +// //do any simple input color conversions here or leave empty if none needed +// } +// +// FsrRcasCon need to be called from the CPU or GPU to set up constants. +// Including a GPU example here, the 'con' value would be stored out to a constant buffer. +// +// AU4 con; +// FsrRcasCon(con, +// 0.0); // The scale is {0.0 := maximum sharpness, to N>0, where N is the number of stops (halving) of the reduction of sharpness}. +// --------------- +// RCAS sharpening supports a CAS-like pass-through alpha via, +// #define FSR_RCAS_PASSTHROUGH_ALPHA 1 +// RCAS also supports a define to enable a more expensive path to avoid some sharpening of noise. +// Would suggest it is better to apply film grain after RCAS sharpening (and after scaling) instead of using this define, +// #define FSR_RCAS_DENOISE 1 +//============================================================================================================================== +// This is set at the limit of providing unnatural results for sharpening. +#define FSR_RCAS_LIMIT (0.25-(1.0/16.0)) +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// CONSTANT SETUP +//============================================================================================================================== +// Call to setup required constant values (works on CPU or GPU). +A_STATIC void FsrRcasCon( +outAU4 con, +// The scale is {0.0 := maximum, to N>0, where N is the number of stops (halving) of the reduction of sharpness}. +AF1 sharpness){ + // Transform from stops to linear value. + sharpness=AExp2F1(-sharpness); + varAF2(hSharp)=initAF2(sharpness,sharpness); + con[0]=AU1_AF1(sharpness); + con[1]=AU1_AH2_AF2(hSharp); + con[2]=0; + con[3]=0;} +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// NON-PACKED 32-BIT VERSION +//============================================================================================================================== +#if defined(A_GPU)&&defined(FSR_RCAS_F) + // Input callback prototypes that need to be implemented by calling shader + AF4 FsrRcasLoadF(ASU2 p); + void FsrRcasInputF(inout AF1 r,inout AF1 g,inout AF1 b); +//------------------------------------------------------------------------------------------------------------------------------ + void FsrRcasF( + out AF1 pixR, // Output values, non-vector so port between RcasFilter() and RcasFilterH() is easy. + out AF1 pixG, + out AF1 pixB, + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + out AF1 pixA, + #endif + AU2 ip, // Integer pixel position in output. + AU4 con){ // Constant generated by RcasSetup(). + // Algorithm uses minimal 3x3 pixel neighborhood. + // b + // d e f + // h + ASU2 sp=ASU2(ip); + AF3 b=FsrRcasLoadF(sp+ASU2( 0,-1)).rgb; + AF3 d=FsrRcasLoadF(sp+ASU2(-1, 0)).rgb; + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + AF4 ee=FsrRcasLoadF(sp); + AF3 e=ee.rgb;pixA=ee.a; + #else + AF3 e=FsrRcasLoadF(sp).rgb; + #endif + AF3 f=FsrRcasLoadF(sp+ASU2( 1, 0)).rgb; + AF3 h=FsrRcasLoadF(sp+ASU2( 0, 1)).rgb; + // Rename (32-bit) or regroup (16-bit). + AF1 bR=b.r; + AF1 bG=b.g; + AF1 bB=b.b; + AF1 dR=d.r; + AF1 dG=d.g; + AF1 dB=d.b; + AF1 eR=e.r; + AF1 eG=e.g; + AF1 eB=e.b; + AF1 fR=f.r; + AF1 fG=f.g; + AF1 fB=f.b; + AF1 hR=h.r; + AF1 hG=h.g; + AF1 hB=h.b; + // Run optional input transform. + FsrRcasInputF(bR,bG,bB); + FsrRcasInputF(dR,dG,dB); + FsrRcasInputF(eR,eG,eB); + FsrRcasInputF(fR,fG,fB); + FsrRcasInputF(hR,hG,hB); + // Luma times 2. + AF1 bL=bB*AF1_(0.5)+(bR*AF1_(0.5)+bG); + AF1 dL=dB*AF1_(0.5)+(dR*AF1_(0.5)+dG); + AF1 eL=eB*AF1_(0.5)+(eR*AF1_(0.5)+eG); + AF1 fL=fB*AF1_(0.5)+(fR*AF1_(0.5)+fG); + AF1 hL=hB*AF1_(0.5)+(hR*AF1_(0.5)+hG); + // Noise detection. + AF1 nz=AF1_(0.25)*bL+AF1_(0.25)*dL+AF1_(0.25)*fL+AF1_(0.25)*hL-eL; + nz=ASatF1(abs(nz)*APrxMedRcpF1(AMax3F1(AMax3F1(bL,dL,eL),fL,hL)-AMin3F1(AMin3F1(bL,dL,eL),fL,hL))); + nz=AF1_(-0.5)*nz+AF1_(1.0); + // Min and max of ring. + AF1 mn4R=min(AMin3F1(bR,dR,fR),hR); + AF1 mn4G=min(AMin3F1(bG,dG,fG),hG); + AF1 mn4B=min(AMin3F1(bB,dB,fB),hB); + AF1 mx4R=max(AMax3F1(bR,dR,fR),hR); + AF1 mx4G=max(AMax3F1(bG,dG,fG),hG); + AF1 mx4B=max(AMax3F1(bB,dB,fB),hB); + // Immediate constants for peak range. + AF2 peakC=AF2(1.0,-1.0*4.0); + // Limiters, these need to be high precision RCPs. + AF1 hitMinR=min(mn4R,eR)*ARcpF1(AF1_(4.0)*mx4R); + AF1 hitMinG=min(mn4G,eG)*ARcpF1(AF1_(4.0)*mx4G); + AF1 hitMinB=min(mn4B,eB)*ARcpF1(AF1_(4.0)*mx4B); + AF1 hitMaxR=(peakC.x-max(mx4R,eR))*ARcpF1(AF1_(4.0)*mn4R+peakC.y); + AF1 hitMaxG=(peakC.x-max(mx4G,eG))*ARcpF1(AF1_(4.0)*mn4G+peakC.y); + AF1 hitMaxB=(peakC.x-max(mx4B,eB))*ARcpF1(AF1_(4.0)*mn4B+peakC.y); + AF1 lobeR=max(-hitMinR,hitMaxR); + AF1 lobeG=max(-hitMinG,hitMaxG); + AF1 lobeB=max(-hitMinB,hitMaxB); + AF1 lobe=max(AF1_(-FSR_RCAS_LIMIT),min(AMax3F1(lobeR,lobeG,lobeB),AF1_(0.0)))*AF1_AU1(con.x); + // Apply noise removal. + #ifdef FSR_RCAS_DENOISE + lobe*=nz; + #endif + // Resolve, which needs the medium precision rcp approximation to avoid visible tonality changes. + AF1 rcpL=APrxMedRcpF1(AF1_(4.0)*lobe+AF1_(1.0)); + pixR=(lobe*bR+lobe*dR+lobe*hR+lobe*fR+eR)*rcpL; + pixG=(lobe*bG+lobe*dG+lobe*hG+lobe*fG+eG)*rcpL; + pixB=(lobe*bB+lobe*dB+lobe*hB+lobe*fB+eB)*rcpL; + return;} +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// NON-PACKED 16-BIT VERSION +//============================================================================================================================== +#if defined(A_GPU)&&defined(A_HALF)&&defined(FSR_RCAS_H) + // Input callback prototypes that need to be implemented by calling shader + AH4 FsrRcasLoadH(ASW2 p); + void FsrRcasInputH(inout AH1 r,inout AH1 g,inout AH1 b); +//------------------------------------------------------------------------------------------------------------------------------ + void FsrRcasH( + out AH1 pixR, // Output values, non-vector so port between RcasFilter() and RcasFilterH() is easy. + out AH1 pixG, + out AH1 pixB, + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + out AH1 pixA, + #endif + AU2 ip, // Integer pixel position in output. + AU4 con){ // Constant generated by RcasSetup(). + // Sharpening algorithm uses minimal 3x3 pixel neighborhood. + // b + // d e f + // h + ASW2 sp=ASW2(ip); + AH3 b=FsrRcasLoadH(sp+ASW2( 0,-1)).rgb; + AH3 d=FsrRcasLoadH(sp+ASW2(-1, 0)).rgb; + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + AH4 ee=FsrRcasLoadH(sp); + AH3 e=ee.rgb;pixA=ee.a; + #else + AH3 e=FsrRcasLoadH(sp).rgb; + #endif + AH3 f=FsrRcasLoadH(sp+ASW2( 1, 0)).rgb; + AH3 h=FsrRcasLoadH(sp+ASW2( 0, 1)).rgb; + // Rename (32-bit) or regroup (16-bit). + AH1 bR=b.r; + AH1 bG=b.g; + AH1 bB=b.b; + AH1 dR=d.r; + AH1 dG=d.g; + AH1 dB=d.b; + AH1 eR=e.r; + AH1 eG=e.g; + AH1 eB=e.b; + AH1 fR=f.r; + AH1 fG=f.g; + AH1 fB=f.b; + AH1 hR=h.r; + AH1 hG=h.g; + AH1 hB=h.b; + // Run optional input transform. + FsrRcasInputH(bR,bG,bB); + FsrRcasInputH(dR,dG,dB); + FsrRcasInputH(eR,eG,eB); + FsrRcasInputH(fR,fG,fB); + FsrRcasInputH(hR,hG,hB); + // Luma times 2. + AH1 bL=bB*AH1_(0.5)+(bR*AH1_(0.5)+bG); + AH1 dL=dB*AH1_(0.5)+(dR*AH1_(0.5)+dG); + AH1 eL=eB*AH1_(0.5)+(eR*AH1_(0.5)+eG); + AH1 fL=fB*AH1_(0.5)+(fR*AH1_(0.5)+fG); + AH1 hL=hB*AH1_(0.5)+(hR*AH1_(0.5)+hG); + // Noise detection. + AH1 nz=AH1_(0.25)*bL+AH1_(0.25)*dL+AH1_(0.25)*fL+AH1_(0.25)*hL-eL; + nz=ASatH1(abs(nz)*APrxMedRcpH1(AMax3H1(AMax3H1(bL,dL,eL),fL,hL)-AMin3H1(AMin3H1(bL,dL,eL),fL,hL))); + nz=AH1_(-0.5)*nz+AH1_(1.0); + // Min and max of ring. + AH1 mn4R=min(AMin3H1(bR,dR,fR),hR); + AH1 mn4G=min(AMin3H1(bG,dG,fG),hG); + AH1 mn4B=min(AMin3H1(bB,dB,fB),hB); + AH1 mx4R=max(AMax3H1(bR,dR,fR),hR); + AH1 mx4G=max(AMax3H1(bG,dG,fG),hG); + AH1 mx4B=max(AMax3H1(bB,dB,fB),hB); + // Immediate constants for peak range. + AH2 peakC=AH2(1.0,-1.0*4.0); + // Limiters, these need to be high precision RCPs. + AH1 hitMinR=min(mn4R,eR)*ARcpH1(AH1_(4.0)*mx4R); + AH1 hitMinG=min(mn4G,eG)*ARcpH1(AH1_(4.0)*mx4G); + AH1 hitMinB=min(mn4B,eB)*ARcpH1(AH1_(4.0)*mx4B); + AH1 hitMaxR=(peakC.x-max(mx4R,eR))*ARcpH1(AH1_(4.0)*mn4R+peakC.y); + AH1 hitMaxG=(peakC.x-max(mx4G,eG))*ARcpH1(AH1_(4.0)*mn4G+peakC.y); + AH1 hitMaxB=(peakC.x-max(mx4B,eB))*ARcpH1(AH1_(4.0)*mn4B+peakC.y); + AH1 lobeR=max(-hitMinR,hitMaxR); + AH1 lobeG=max(-hitMinG,hitMaxG); + AH1 lobeB=max(-hitMinB,hitMaxB); + AH1 lobe=max(AH1_(-FSR_RCAS_LIMIT),min(AMax3H1(lobeR,lobeG,lobeB),AH1_(0.0)))*AH2_AU1(con.y).x; + // Apply noise removal. + #ifdef FSR_RCAS_DENOISE + lobe*=nz; + #endif + // Resolve, which needs the medium precision rcp approximation to avoid visible tonality changes. + AH1 rcpL=APrxMedRcpH1(AH1_(4.0)*lobe+AH1_(1.0)); + pixR=(lobe*bR+lobe*dR+lobe*hR+lobe*fR+eR)*rcpL; + pixG=(lobe*bG+lobe*dG+lobe*hG+lobe*fG+eG)*rcpL; + pixB=(lobe*bB+lobe*dB+lobe*hB+lobe*fB+eB)*rcpL;} +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// PACKED 16-BIT VERSION +//============================================================================================================================== +#if defined(A_GPU)&&defined(A_HALF)&&defined(FSR_RCAS_HX2) + // Input callback prototypes that need to be implemented by the calling shader + AH4 FsrRcasLoadHx2(ASW2 p); + void FsrRcasInputHx2(inout AH2 r,inout AH2 g,inout AH2 b); +//------------------------------------------------------------------------------------------------------------------------------ + // Can be used to convert from packed Structures of Arrays to Arrays of Structures for store. + void FsrRcasDepackHx2(out AH4 pix0,out AH4 pix1,AH2 pixR,AH2 pixG,AH2 pixB){ + #ifdef A_HLSL + // Invoke a slower path for DX only, since it won't allow uninitialized values. + pix0.a=pix1.a=0.0; + #endif + pix0.rgb=AH3(pixR.x,pixG.x,pixB.x); + pix1.rgb=AH3(pixR.y,pixG.y,pixB.y);} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrRcasHx2( + // Output values are for 2 8x8 tiles in a 16x8 region. + // pix.x = left 8x8 tile + // pix.y = right 8x8 tile + // This enables later processing to easily be packed as well. + out AH2 pixR, + out AH2 pixG, + out AH2 pixB, + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + out AH2 pixA, + #endif + AU2 ip, // Integer pixel position in output. + AU4 con){ // Constant generated by RcasSetup(). + // No scaling algorithm uses minimal 3x3 pixel neighborhood. + ASW2 sp0=ASW2(ip); + AH3 b0=FsrRcasLoadHx2(sp0+ASW2( 0,-1)).rgb; + AH3 d0=FsrRcasLoadHx2(sp0+ASW2(-1, 0)).rgb; + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + AH4 ee0=FsrRcasLoadHx2(sp0); + AH3 e0=ee0.rgb;pixA.r=ee0.a; + #else + AH3 e0=FsrRcasLoadHx2(sp0).rgb; + #endif + AH3 f0=FsrRcasLoadHx2(sp0+ASW2( 1, 0)).rgb; + AH3 h0=FsrRcasLoadHx2(sp0+ASW2( 0, 1)).rgb; + ASW2 sp1=sp0+ASW2(8,0); + AH3 b1=FsrRcasLoadHx2(sp1+ASW2( 0,-1)).rgb; + AH3 d1=FsrRcasLoadHx2(sp1+ASW2(-1, 0)).rgb; + #ifdef FSR_RCAS_PASSTHROUGH_ALPHA + AH4 ee1=FsrRcasLoadHx2(sp1); + AH3 e1=ee1.rgb;pixA.g=ee1.a; + #else + AH3 e1=FsrRcasLoadHx2(sp1).rgb; + #endif + AH3 f1=FsrRcasLoadHx2(sp1+ASW2( 1, 0)).rgb; + AH3 h1=FsrRcasLoadHx2(sp1+ASW2( 0, 1)).rgb; + // Arrays of Structures to Structures of Arrays conversion. + AH2 bR=AH2(b0.r,b1.r); + AH2 bG=AH2(b0.g,b1.g); + AH2 bB=AH2(b0.b,b1.b); + AH2 dR=AH2(d0.r,d1.r); + AH2 dG=AH2(d0.g,d1.g); + AH2 dB=AH2(d0.b,d1.b); + AH2 eR=AH2(e0.r,e1.r); + AH2 eG=AH2(e0.g,e1.g); + AH2 eB=AH2(e0.b,e1.b); + AH2 fR=AH2(f0.r,f1.r); + AH2 fG=AH2(f0.g,f1.g); + AH2 fB=AH2(f0.b,f1.b); + AH2 hR=AH2(h0.r,h1.r); + AH2 hG=AH2(h0.g,h1.g); + AH2 hB=AH2(h0.b,h1.b); + // Run optional input transform. + FsrRcasInputHx2(bR,bG,bB); + FsrRcasInputHx2(dR,dG,dB); + FsrRcasInputHx2(eR,eG,eB); + FsrRcasInputHx2(fR,fG,fB); + FsrRcasInputHx2(hR,hG,hB); + // Luma times 2. + AH2 bL=bB*AH2_(0.5)+(bR*AH2_(0.5)+bG); + AH2 dL=dB*AH2_(0.5)+(dR*AH2_(0.5)+dG); + AH2 eL=eB*AH2_(0.5)+(eR*AH2_(0.5)+eG); + AH2 fL=fB*AH2_(0.5)+(fR*AH2_(0.5)+fG); + AH2 hL=hB*AH2_(0.5)+(hR*AH2_(0.5)+hG); + // Noise detection. + AH2 nz=AH2_(0.25)*bL+AH2_(0.25)*dL+AH2_(0.25)*fL+AH2_(0.25)*hL-eL; + nz=ASatH2(abs(nz)*APrxMedRcpH2(AMax3H2(AMax3H2(bL,dL,eL),fL,hL)-AMin3H2(AMin3H2(bL,dL,eL),fL,hL))); + nz=AH2_(-0.5)*nz+AH2_(1.0); + // Min and max of ring. + AH2 mn4R=min(AMin3H2(bR,dR,fR),hR); + AH2 mn4G=min(AMin3H2(bG,dG,fG),hG); + AH2 mn4B=min(AMin3H2(bB,dB,fB),hB); + AH2 mx4R=max(AMax3H2(bR,dR,fR),hR); + AH2 mx4G=max(AMax3H2(bG,dG,fG),hG); + AH2 mx4B=max(AMax3H2(bB,dB,fB),hB); + // Immediate constants for peak range. + AH2 peakC=AH2(1.0,-1.0*4.0); + // Limiters, these need to be high precision RCPs. + AH2 hitMinR=min(mn4R,eR)*ARcpH2(AH2_(4.0)*mx4R); + AH2 hitMinG=min(mn4G,eG)*ARcpH2(AH2_(4.0)*mx4G); + AH2 hitMinB=min(mn4B,eB)*ARcpH2(AH2_(4.0)*mx4B); + AH2 hitMaxR=(peakC.x-max(mx4R,eR))*ARcpH2(AH2_(4.0)*mn4R+peakC.y); + AH2 hitMaxG=(peakC.x-max(mx4G,eG))*ARcpH2(AH2_(4.0)*mn4G+peakC.y); + AH2 hitMaxB=(peakC.x-max(mx4B,eB))*ARcpH2(AH2_(4.0)*mn4B+peakC.y); + AH2 lobeR=max(-hitMinR,hitMaxR); + AH2 lobeG=max(-hitMinG,hitMaxG); + AH2 lobeB=max(-hitMinB,hitMaxB); + AH2 lobe=max(AH2_(-FSR_RCAS_LIMIT),min(AMax3H2(lobeR,lobeG,lobeB),AH2_(0.0)))*AH2_(AH2_AU1(con.y).x); + // Apply noise removal. + #ifdef FSR_RCAS_DENOISE + lobe*=nz; + #endif + // Resolve, which needs the medium precision rcp approximation to avoid visible tonality changes. + AH2 rcpL=APrxMedRcpH2(AH2_(4.0)*lobe+AH2_(1.0)); + pixR=(lobe*bR+lobe*dR+lobe*hR+lobe*fR+eR)*rcpL; + pixG=(lobe*bG+lobe*dG+lobe*hG+lobe*fG+eG)*rcpL; + pixB=(lobe*bB+lobe*dB+lobe*hB+lobe*fB+eB)*rcpL;} +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// FSR - [LFGA] LINEAR FILM GRAIN APPLICATOR +// +//------------------------------------------------------------------------------------------------------------------------------ +// Adding output-resolution film grain after scaling is a good way to mask both rendering and scaling artifacts. +// Suggest using tiled blue noise as film grain input, with peak noise frequency set for a specific look and feel. +// The 'Lfga*()' functions provide a convenient way to introduce grain. +// These functions limit grain based on distance to signal limits. +// This is done so that the grain is temporally energy preserving, and thus won't modify image tonality. +// Grain application should be done in a linear colorspace. +// The grain should be temporally changing, but have a temporal sum per pixel that adds to zero (non-biased). +//------------------------------------------------------------------------------------------------------------------------------ +// Usage, +// FsrLfga*( +// color, // In/out linear colorspace color {0 to 1} ranged. +// grain, // Per pixel grain texture value {-0.5 to 0.5} ranged, input is 3-channel to support colored grain. +// amount); // Amount of grain (0 to 1} ranged. +//------------------------------------------------------------------------------------------------------------------------------ +// Example if grain texture is monochrome: 'FsrLfgaF(color,AF3_(grain),amount)' +//============================================================================================================================== +#if defined(A_GPU) + // Maximum grain is the minimum distance to the signal limit. + void FsrLfgaF(inout AF3 c,AF3 t,AF1 a){c+=(t*AF3_(a))*min(AF3_(1.0)-c,c);} +#endif +//============================================================================================================================== +#if defined(A_GPU)&&defined(A_HALF) + // Half precision version (slower). + void FsrLfgaH(inout AH3 c,AH3 t,AH1 a){c+=(t*AH3_(a))*min(AH3_(1.0)-c,c);} +//------------------------------------------------------------------------------------------------------------------------------ + // Packed half precision version (faster). + void FsrLfgaHx2(inout AH2 cR,inout AH2 cG,inout AH2 cB,AH2 tR,AH2 tG,AH2 tB,AH1 a){ + cR+=(tR*AH2_(a))*min(AH2_(1.0)-cR,cR);cG+=(tG*AH2_(a))*min(AH2_(1.0)-cG,cG);cB+=(tB*AH2_(a))*min(AH2_(1.0)-cB,cB);} +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// FSR - [SRTM] SIMPLE REVERSIBLE TONE-MAPPER +// +//------------------------------------------------------------------------------------------------------------------------------ +// This provides a way to take linear HDR color {0 to FP16_MAX} and convert it into a temporary {0 to 1} ranged post-tonemapped linear. +// The tonemapper preserves RGB ratio, which helps maintain HDR color bleed during filtering. +//------------------------------------------------------------------------------------------------------------------------------ +// Reversible tonemapper usage, +// FsrSrtm*(color); // {0 to FP16_MAX} converted to {0 to 1}. +// FsrSrtmInv*(color); // {0 to 1} converted into {0 to 32768, output peak safe for FP16}. +//============================================================================================================================== +#if defined(A_GPU) + void FsrSrtmF(inout AF3 c){c*=AF3_(ARcpF1(AMax3F1(c.r,c.g,c.b)+AF1_(1.0)));} + // The extra max solves the c=1.0 case (which is a /0). + void FsrSrtmInvF(inout AF3 c){c*=AF3_(ARcpF1(max(AF1_(1.0/32768.0),AF1_(1.0)-AMax3F1(c.r,c.g,c.b))));} +#endif +//============================================================================================================================== +#if defined(A_GPU)&&defined(A_HALF) + void FsrSrtmH(inout AH3 c){c*=AH3_(ARcpH1(AMax3H1(c.r,c.g,c.b)+AH1_(1.0)));} + void FsrSrtmInvH(inout AH3 c){c*=AH3_(ARcpH1(max(AH1_(1.0/32768.0),AH1_(1.0)-AMax3H1(c.r,c.g,c.b))));} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrSrtmHx2(inout AH2 cR,inout AH2 cG,inout AH2 cB){ + AH2 rcp=ARcpH2(AMax3H2(cR,cG,cB)+AH2_(1.0));cR*=rcp;cG*=rcp;cB*=rcp;} + void FsrSrtmInvHx2(inout AH2 cR,inout AH2 cG,inout AH2 cB){ + AH2 rcp=ARcpH2(max(AH2_(1.0/32768.0),AH2_(1.0)-AMax3H2(cR,cG,cB)));cR*=rcp;cG*=rcp;cB*=rcp;} +#endif +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//_____________________________________________________________/\_______________________________________________________________ +//============================================================================================================================== +// +// FSR - [TEPD] TEMPORAL ENERGY PRESERVING DITHER +// +//------------------------------------------------------------------------------------------------------------------------------ +// Temporally energy preserving dithered {0 to 1} linear to gamma 2.0 conversion. +// Gamma 2.0 is used so that the conversion back to linear is just to square the color. +// The conversion comes in 8-bit and 10-bit modes, designed for output to 8-bit UNORM or 10:10:10:2 respectively. +// Given good non-biased temporal blue noise as dither input, +// the output dither will temporally conserve energy. +// This is done by choosing the linear nearest step point instead of perceptual nearest. +// See code below for details. +//------------------------------------------------------------------------------------------------------------------------------ +// DX SPEC RULES FOR FLOAT->UNORM 8-BIT CONVERSION +// =============================================== +// - Output is 'uint(floor(saturate(n)*255.0+0.5))'. +// - Thus rounding is to nearest. +// - NaN gets converted to zero. +// - INF is clamped to {0.0 to 1.0}. +//============================================================================================================================== +#if defined(A_GPU) + // Hand tuned integer position to dither value, with more values than simple checkerboard. + // Only 32-bit has enough precision for this compddation. + // Output is {0 to <1}. + AF1 FsrTepdDitF(AU2 p,AU1 f){ + AF1 x=AF1_(p.x+f); + AF1 y=AF1_(p.y); + // The 1.61803 golden ratio. + AF1 a=AF1_((1.0+sqrt(5.0))/2.0); + // Number designed to provide a good visual pattern. + AF1 b=AF1_(1.0/3.69); + x=x*a+(y*b); + return AFractF1(x);} +//------------------------------------------------------------------------------------------------------------------------------ + // This version is 8-bit gamma 2.0. + // The 'c' input is {0 to 1}. + // Output is {0 to 1} ready for image store. + void FsrTepdC8F(inout AF3 c,AF1 dit){ + AF3 n=sqrt(c); + n=floor(n*AF3_(255.0))*AF3_(1.0/255.0); + AF3 a=n*n; + AF3 b=n+AF3_(1.0/255.0);b=b*b; + // Ratio of 'a' to 'b' required to produce 'c'. + // APrxLoRcpF1() won't work here (at least for very high dynamic ranges). + // APrxMedRcpF1() is an IADD,FMA,MUL. + AF3 r=(c-b)*APrxMedRcpF3(a-b); + // Use the ratio as a cutoff to choose 'a' or 'b'. + // AGtZeroF1() is a MUL. + c=ASatF3(n+AGtZeroF3(AF3_(dit)-r)*AF3_(1.0/255.0));} +//------------------------------------------------------------------------------------------------------------------------------ + // This version is 10-bit gamma 2.0. + // The 'c' input is {0 to 1}. + // Output is {0 to 1} ready for image store. + void FsrTepdC10F(inout AF3 c,AF1 dit){ + AF3 n=sqrt(c); + n=floor(n*AF3_(1023.0))*AF3_(1.0/1023.0); + AF3 a=n*n; + AF3 b=n+AF3_(1.0/1023.0);b=b*b; + AF3 r=(c-b)*APrxMedRcpF3(a-b); + c=ASatF3(n+AGtZeroF3(AF3_(dit)-r)*AF3_(1.0/1023.0));} +#endif +//============================================================================================================================== +#if defined(A_GPU)&&defined(A_HALF) + AH1 FsrTepdDitH(AU2 p,AU1 f){ + AF1 x=AF1_(p.x+f); + AF1 y=AF1_(p.y); + AF1 a=AF1_((1.0+sqrt(5.0))/2.0); + AF1 b=AF1_(1.0/3.69); + x=x*a+(y*b); + return AH1(AFractF1(x));} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrTepdC8H(inout AH3 c,AH1 dit){ + AH3 n=sqrt(c); + n=floor(n*AH3_(255.0))*AH3_(1.0/255.0); + AH3 a=n*n; + AH3 b=n+AH3_(1.0/255.0);b=b*b; + AH3 r=(c-b)*APrxMedRcpH3(a-b); + c=ASatH3(n+AGtZeroH3(AH3_(dit)-r)*AH3_(1.0/255.0));} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrTepdC10H(inout AH3 c,AH1 dit){ + AH3 n=sqrt(c); + n=floor(n*AH3_(1023.0))*AH3_(1.0/1023.0); + AH3 a=n*n; + AH3 b=n+AH3_(1.0/1023.0);b=b*b; + AH3 r=(c-b)*APrxMedRcpH3(a-b); + c=ASatH3(n+AGtZeroH3(AH3_(dit)-r)*AH3_(1.0/1023.0));} +//============================================================================================================================== + // This computes dither for positions 'p' and 'p+{8,0}'. + AH2 FsrTepdDitHx2(AU2 p,AU1 f){ + AF2 x; + x.x=AF1_(p.x+f); + x.y=x.x+AF1_(8.0); + AF1 y=AF1_(p.y); + AF1 a=AF1_((1.0+sqrt(5.0))/2.0); + AF1 b=AF1_(1.0/3.69); + x=x*AF2_(a)+AF2_(y*b); + return AH2(AFractF2(x));} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrTepdC8Hx2(inout AH2 cR,inout AH2 cG,inout AH2 cB,AH2 dit){ + AH2 nR=sqrt(cR); + AH2 nG=sqrt(cG); + AH2 nB=sqrt(cB); + nR=floor(nR*AH2_(255.0))*AH2_(1.0/255.0); + nG=floor(nG*AH2_(255.0))*AH2_(1.0/255.0); + nB=floor(nB*AH2_(255.0))*AH2_(1.0/255.0); + AH2 aR=nR*nR; + AH2 aG=nG*nG; + AH2 aB=nB*nB; + AH2 bR=nR+AH2_(1.0/255.0);bR=bR*bR; + AH2 bG=nG+AH2_(1.0/255.0);bG=bG*bG; + AH2 bB=nB+AH2_(1.0/255.0);bB=bB*bB; + AH2 rR=(cR-bR)*APrxMedRcpH2(aR-bR); + AH2 rG=(cG-bG)*APrxMedRcpH2(aG-bG); + AH2 rB=(cB-bB)*APrxMedRcpH2(aB-bB); + cR=ASatH2(nR+AGtZeroH2(dit-rR)*AH2_(1.0/255.0)); + cG=ASatH2(nG+AGtZeroH2(dit-rG)*AH2_(1.0/255.0)); + cB=ASatH2(nB+AGtZeroH2(dit-rB)*AH2_(1.0/255.0));} +//------------------------------------------------------------------------------------------------------------------------------ + void FsrTepdC10Hx2(inout AH2 cR,inout AH2 cG,inout AH2 cB,AH2 dit){ + AH2 nR=sqrt(cR); + AH2 nG=sqrt(cG); + AH2 nB=sqrt(cB); + nR=floor(nR*AH2_(1023.0))*AH2_(1.0/1023.0); + nG=floor(nG*AH2_(1023.0))*AH2_(1.0/1023.0); + nB=floor(nB*AH2_(1023.0))*AH2_(1.0/1023.0); + AH2 aR=nR*nR; + AH2 aG=nG*nG; + AH2 aB=nB*nB; + AH2 bR=nR+AH2_(1.0/1023.0);bR=bR*bR; + AH2 bG=nG+AH2_(1.0/1023.0);bG=bG*bG; + AH2 bB=nB+AH2_(1.0/1023.0);bB=bB*bB; + AH2 rR=(cR-bR)*APrxMedRcpH2(aR-bR); + AH2 rG=(cG-bG)*APrxMedRcpH2(aG-bG); + AH2 rB=(cB-bB)*APrxMedRcpH2(aB-bB); + cR=ASatH2(nR+AGtZeroH2(dit-rR)*AH2_(1.0/1023.0)); + cG=ASatH2(nG+AGtZeroH2(dit-rG)*AH2_(1.0/1023.0)); + cB=ASatH2(nB+AGtZeroH2(dit-rB)*AH2_(1.0/1023.0));} +#endif diff --git a/runtime/shaders/fsr_easu.comp b/runtime/shaders/fsr_easu.comp new file mode 100644 index 00000000..33cf9d86 --- /dev/null +++ b/runtime/shaders/fsr_easu.comp @@ -0,0 +1,46 @@ +// AMD FidelityFX Super Resolution 1 edge-adaptive upscale (EASU) of the game's output to the swapchain size +// (runtime/vk_fsr.c). ffx/ffx_a.h and ffx/ffx_fsr1.h are AMD's headers, unmodified (MIT, ffx/LICENSE.txt). Each +// invocation writes four pixels of a 16x16 tile, as AMD's sample does; the constants come from FsrEasuConOffset, so the +// game's crop rectangle can start anywhere in its image. +#version 450 +#extension GL_GOOGLE_include_directive : require + +layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in; + +layout(set = 0, binding = 0) uniform sampler2D src; +layout(set = 0, binding = 1, rgba16f) uniform writeonly image2D dst; + +layout(push_constant) uniform Params { + vec4 view; // crop width, crop height, source image width, source image height + vec4 out_; // output width, output height, crop x, crop y +} pc; + +#define A_GPU 1 +#define A_GLSL 1 +#include "ffx/ffx_a.h" +#define FSR_EASU_F 1 +AF4 FsrEasuRF(AF2 p) { return textureGather(src, p, 0); } +AF4 FsrEasuGF(AF2 p) { return textureGather(src, p, 1); } +AF4 FsrEasuBF(AF2 p) { return textureGather(src, p, 2); } +#include "ffx/ffx_fsr1.h" + +void put(AU2 p, AU4 c0, AU4 c1, AU4 c2, AU4 c3) { + if (p.x >= uint(pc.out_.x) || p.y >= uint(pc.out_.y)) return; + AF3 c; + FsrEasuF(c, p, c0, c1, c2, c3); + imageStore(dst, ivec2(p), vec4(c, 1.0)); +} + +void main() { + AU4 c0, c1, c2, c3; + FsrEasuConOffset(c0, c1, c2, c3, pc.view.x, pc.view.y, pc.view.z, pc.view.w, pc.out_.x, pc.out_.y, pc.out_.z, + pc.out_.w); + AU2 p = ARmp8x8(gl_LocalInvocationID.x) + AU2(gl_WorkGroupID.x << 4u, gl_WorkGroupID.y << 4u); + put(p, c0, c1, c2, c3); + p.x += 8u; + put(p, c0, c1, c2, c3); + p.y += 8u; + put(p, c0, c1, c2, c3); + p.x -= 8u; + put(p, c0, c1, c2, c3); +} diff --git a/runtime/shaders/fsr_rcas.comp b/runtime/shaders/fsr_rcas.comp new file mode 100644 index 00000000..c75cec49 --- /dev/null +++ b/runtime/shaders/fsr_rcas.comp @@ -0,0 +1,41 @@ +// AMD FidelityFX Super Resolution 1 robust contrast-adaptive sharpening (RCAS) of the EASU result +// (runtime/vk_fsr.c). ffx/ffx_a.h and ffx/ffx_fsr1.h are AMD's headers, unmodified (MIT, ffx/LICENSE.txt). +#version 450 +#extension GL_GOOGLE_include_directive : require + +layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in; + +layout(set = 0, binding = 0) uniform sampler2D src; +layout(set = 0, binding = 1, rgba16f) uniform writeonly image2D dst; + +layout(push_constant) uniform Params { + vec4 size; // width, height, sharpness in stops (0 = most), unused +} pc; + +#define A_GPU 1 +#define A_GLSL 1 +#include "ffx/ffx_a.h" +#define FSR_RCAS_F 1 +AF4 FsrRcasLoadF(ASU2 p) { return texelFetch(src, p, 0); } +void FsrRcasInputF(inout AF1 r, inout AF1 g, inout AF1 b) {} +#include "ffx/ffx_fsr1.h" + +void put(AU2 p, AU4 con) { + if (p.x >= uint(pc.size.x) || p.y >= uint(pc.size.y)) return; + AF3 c; + FsrRcasF(c.r, c.g, c.b, p, con); + imageStore(dst, ivec2(p), vec4(c, 1.0)); +} + +void main() { + AU4 con; + FsrRcasCon(con, pc.size.z); + AU2 p = ARmp8x8(gl_LocalInvocationID.x) + AU2(gl_WorkGroupID.x << 4u, gl_WorkGroupID.y << 4u); + put(p, con); + p.x += 8u; + put(p, con); + p.y += 8u; + put(p, con); + p.x -= 8u; + put(p, con); +} diff --git a/runtime/ui/menu.cpp b/runtime/ui/menu.cpp index 86949c9e..4d3cda59 100644 --- a/runtime/ui/menu.cpp +++ b/runtime/ui/menu.cpp @@ -402,6 +402,35 @@ static void row_window_size(void) { opt_choice_list("TOTK_WINDOW_SIZE", UI_MENU_WINDOW_SIZE, pv, pn, n, UI_MENU_WINDOW_SIZE_DESC); } +// The game resolution (resolution.c): 16:9 sizes from the game's own 1920x1080 up, and the current value when it is +// another size. +static void row_output_res(void) { + static const char *const vals[] = {"1920x1080", "2560x1440", "3200x1800", "3840x2160"}; + enum { N = sizeof vals / sizeof *vals }; + char shown[N][32]; + const char *names[N]; + for (int i = 0; i < N; i++) { + int w = 0, h = 0; + sscanf(vals[i], "%dx%d", &w, &h); + snprintf(shown[i], sizeof shown[i], "%d × %d", w, h); // U+00D7, the multiplication sign + names[i] = shown[i]; + } + opt_choice_list("TOTK_OUTPUT_RES", UI_MENU_OUTPUT_RES, vals, names, N, UI_MENU_OUTPUT_RES_DESC); +} + +static void row_render_scale(void) { + static const char *const vals[] = {"game", "50", "67", "75", "100", "125", "150", "200"}; + enum { N = sizeof vals / sizeof *vals }; + char shown[N][32]; + const char *names[N]; + names[0] = menu_text(UI_MENU_RENDER_SCALE_GAME); + for (int i = 1; i < N; i++) { + snprintf(shown[i], sizeof shown[i], "%s %%", vals[i]); + names[i] = shown[i]; + } + opt_choice_list("TOTK_RENDER_SCALE", UI_MENU_RENDER_SCALE, vals, names, N, UI_MENU_RENDER_SCALE_DESC); +} + static void row_gpu(void) { const char *vals[MAX_GPUS + 1], *names[MAX_GPUS + 1]; char idx[MAX_GPUS][4]; @@ -480,6 +509,12 @@ static void tab_screen(float scale) { row_gpu(); static const UiTextId perf[] = {UI_MENU_PERF_OFF, UI_MENU_PERF_FPS, UI_MENU_PERF_FULL}; opt_choice("TOTK_PERF_OVERLAY", UI_MENU_PERF_OVERLAY, perf, 3, UI_MENU_PERF_OVERLAY_DESC); + opt_group(UI_MENU_GRAPHICS); + row_output_res(); + row_render_scale(); + static const UiTextId up[] = {UI_MENU_UPSCALER_FSR, UI_MENU_UPSCALER_BILINEAR}; + opt_choice("TOTK_UPSCALER", UI_MENU_UPSCALER, up, 2, UI_MENU_UPSCALER_DESC); + opt_slider("TOTK_SHARPNESS", UI_MENU_SHARPNESS, 0, 100, UI_MENU_SHARPNESS_DESC, 5, "%.0f %%"); opt_end(); } diff --git a/runtime/ui_text.c b/runtime/ui_text.c index 2347af64..fb40e513 100644 --- a/runtime/ui_text.c +++ b/runtime/ui_text.c @@ -48,6 +48,20 @@ static const char *const text_en[UI_TEXT_COUNT] = { [UI_MENU_PERF_OFF] = "Off", [UI_MENU_PERF_FPS] = "FPS", [UI_MENU_PERF_FULL] = "Full", // printf format of the overlay line in FPS mode: the frame rate [UI_PERF_LINE_FPS] = "%.0f fps", + [UI_MENU_GRAPHICS] = "Picture", + [UI_MENU_OUTPUT_RES] = "Game resolution", + [UI_MENU_OUTPUT_RES_DESC] = "The size the game draws its picture and interface in. Above 1920 x 1080 the game needs " + "more video memory and GPU time.", + [UI_MENU_RENDER_SCALE] = "3D render scale", + [UI_MENU_RENDER_SCALE_DESC] = "Size of the 3D scene relative to the game resolution; the game's FSR scales it to " + "that size. Above 100 % smooths jagged edges (supersampling) at a high GPU cost.", + [UI_MENU_RENDER_SCALE_GAME] = "Game (83 %)", + [UI_MENU_UPSCALER] = "Scaling to the window", + [UI_MENU_UPSCALER_DESC] = "How the picture is scaled when the window is larger than the game resolution. FSR keeps " + "edges and detail sharper than bilinear.", + [UI_MENU_UPSCALER_FSR] = "AMD FSR 1", [UI_MENU_UPSCALER_BILINEAR] = "Bilinear", + [UI_MENU_SHARPNESS] = "FSR sharpness", + [UI_MENU_SHARPNESS_DESC] = "Sharpening after FSR scaling; 0 turns it off.", [UI_MENU_FPS_LIMIT] = "Frame rate limit", [UI_MENU_FPS_LIMIT_DESC] = "The most frames per second the game draws. Above 60 is experimental and needs Game speed " @@ -195,6 +209,20 @@ static const char *const text_ru[UI_TEXT_COUNT] = { "режимы.", [UI_MENU_PERF_OFF] = "Выкл.", [UI_MENU_PERF_FPS] = "FPS", [UI_MENU_PERF_FULL] = "Полный", [UI_PERF_LINE_FPS] = "%.0f к/с", + [UI_MENU_GRAPHICS] = "Изображение", + [UI_MENU_OUTPUT_RES] = "Разрешение игры", + [UI_MENU_OUTPUT_RES_DESC] = "Размер, в котором игра рисует картинку и интерфейс. Выше 1920 × 1080 игре нужно больше " + "видеопамяти и времени GPU.", + [UI_MENU_RENDER_SCALE] = "Масштаб 3D-отрисовки", + [UI_MENU_RENDER_SCALE_DESC] = "Размер 3D-сцены относительно разрешения игры; FSR игры доводит её до этого размера. " + "Выше 100 % сглаживает лесенки на краях (суперсэмплинг) ценой большой нагрузки на GPU.", + [UI_MENU_RENDER_SCALE_GAME] = "Как в игре (83 %)", + [UI_MENU_UPSCALER] = "Масштабирование под окно", + [UI_MENU_UPSCALER_DESC] = "Как картинка растягивается, когда окно больше разрешения игры. FSR сохраняет края и " + "детали чётче билинейного.", + [UI_MENU_UPSCALER_FSR] = "AMD FSR 1", [UI_MENU_UPSCALER_BILINEAR] = "Билинейное", + [UI_MENU_SHARPNESS] = "Резкость FSR", + [UI_MENU_SHARPNESS_DESC] = "Повышение резкости после масштабирования FSR; 0 выключает его.", [UI_MENU_FPS_LIMIT] = "Ограничение частоты кадров", [UI_MENU_FPS_LIMIT_DESC] = "Наибольшее число кадров в секунду. Выше 60 — экспериментальный режим, нужна «Скорость " diff --git a/runtime/ui_text.h b/runtime/ui_text.h index 3a8dc234..5cf7131c 100644 --- a/runtime/ui_text.h +++ b/runtime/ui_text.h @@ -30,6 +30,11 @@ typedef enum { UI_MENU_GPU, UI_MENU_GPU_DESC, UI_MENU_GPU_AUTO, UI_MENU_PERF_OVERLAY, UI_MENU_PERF_OVERLAY_DESC, UI_MENU_PERF_OFF, UI_MENU_PERF_FPS, UI_MENU_PERF_FULL, UI_PERF_LINE_FPS, + UI_MENU_GRAPHICS, // group heading over the resolution rows + UI_MENU_OUTPUT_RES, UI_MENU_OUTPUT_RES_DESC, + UI_MENU_RENDER_SCALE, UI_MENU_RENDER_SCALE_DESC, UI_MENU_RENDER_SCALE_GAME, + UI_MENU_UPSCALER, UI_MENU_UPSCALER_DESC, UI_MENU_UPSCALER_FSR, UI_MENU_UPSCALER_BILINEAR, + UI_MENU_SHARPNESS, UI_MENU_SHARPNESS_DESC, // Game UI_MENU_FPS_LIMIT, UI_MENU_FPS_LIMIT_DESC, UI_MENU_FPS_30, UI_MENU_FPS_60, UI_MENU_FPS_120, UI_MENU_FPS_144, diff --git a/runtime/vk.h b/runtime/vk.h index 5713111d..9428f56d 100644 --- a/runtime/vk.h +++ b/runtime/vk.h @@ -80,7 +80,13 @@ int vk_selftest(void); // 0 on success void vk_present_image(VkImage src, VkImageLayout layout, VkFormat fmt, int w, int h, const int crop[4]); // vk_present_image split in two: vk_present_blit submits the blit and leaves the present waiting, vk_present_flip // queues it. The next blit or a swapchain rebuild queues a waiting present first. -void vk_present_blit(VkImage src, VkImageLayout layout, int w, int h, const int crop[4]); +void vk_present_blit(VkImage src, VkImageLayout layout, VkFormat fmt, int w, int h, const int crop[4]); +// FSR 1 on the present (vk_fsr.c): records EASU (+ RCAS) of src's crop rectangle {x, y, w, h} into dst, a dw x dh +// swapchain image in TRANSFER_DST; src is in GENERAL and fmt its format. 0 = nothing recorded (the setting says +// bilinear, no upscale is needed, or FSR is not available): the caller blits. +int vk_fsr_record(VkCommandBuffer cb, unsigned slot, VkImage src, VkFormat fmt, int sw, int sh, const int crop[4], + VkImage dst, uint32_t dw, uint32_t dh); +void vk_fsr_release(void); // before the device goes away void vk_present_flip(void); // Every submission to ctx->gfx_queue (and xfer_queue when shared) takes this lock; vk_present_image and the swapchain // rebuild do. Recursive. diff --git a/runtime/vk_backend.c b/runtime/vk_backend.c index 5f570847..a260aa69 100644 --- a/runtime/vk_backend.c +++ b/runtime/vk_backend.c @@ -62,7 +62,7 @@ static DWORD WINAPI present_main(void *arg) { WakeAllConditionVariable(&pcv); ReleaseSRWLockExclusive(&pl); if (flight_on) vk_thumbs_frame(j.frame); - vk_present_blit(j.image, VK_IMAGE_LAYOUT_GENERAL, j.w, j.h, j.has_crop ? j.crop : NULL); + vk_present_blit(j.image, VK_IMAGE_LAYOUT_GENERAL, j.format, j.w, j.h, j.has_crop ? j.crop : NULL); uint64_t f = vk_sync_submit(NULL, 0); // a timeline value after the blit: deferred destruction waits for the blit too if (j.value && f != j.value) rt_fatal("vk: the present of frame %llu signalled %llu, queued as %llu", (unsigned long long)j.frame, diff --git a/runtime/vk_exec_probe.c b/runtime/vk_exec_probe.c index 0dfb951d..87f482d3 100644 --- a/runtime/vk_exec_probe.c +++ b/runtime/vk_exec_probe.c @@ -126,6 +126,8 @@ static int test_present(const GfxBackend *b, uint8_t *guest, int *w_out, int *h_ vk_upload_end(); uint64_t frames = gfx_stats().frames; + // the exact colour check needs the bilinear blit: FSR's approximate reciprocals move a flat colour by 1/255 + _putenv_s("TOTK_UPSCALER", "bilinear"); vk_present_capture(1); const int crop[4] = {0, 0, TEX_W, TEX_H}; b->present(&t, crop, 0); diff --git a/runtime/vk_fsr.c b/runtime/vk_fsr.c new file mode 100644 index 00000000..f9d6a456 --- /dev/null +++ b/runtime/vk_fsr.c @@ -0,0 +1,225 @@ +// AMD FidelityFX Super Resolution 1 on the present path (gfx_window.c present_image): when the window is larger than +// the game's output, EASU scales the game's crop rectangle to the swapchain size and RCAS sharpens it, in place of the +// bilinear vkCmdBlitImage. TOTK_UPSCALER=fsr|bilinear picks it, TOTK_SHARPNESS (0..100, 0 = no RCAS pass) sets RCAS; +// both apply at the next frame. +// +// Per frame: EASU reads the source through a view of its own format (the same colour conversion the blit does) and +// writes an RGBA16F image of the swapchain size; RCAS reads that and writes a second one; a 1:1 blit converts the +// result into the swapchain image, which the caller left in TRANSFER_DST. The shaders (runtime/shaders/fsr_*.comp) +// compute AMD's constants from the push constants. Cost: two compute passes over the swapchain size and one copy per +// present; nothing on the game's draws. +// +// The source view of slot s is destroyed when slot s records again: present_image has waited for that slot's fence. +// The two intermediate images are shared by all slots; each frame's first barrier orders it after the previous +// frame's reads (one queue, so the barrier covers earlier submissions). +#include "vk.h" + +#include + +#include "cfg.h" +#include "fsr_easu_spv.h" +#include "fsr_rcas_spv.h" +#include "host.h" + +#define SLOTS 8 + +static struct { + int tried, ok; + PFN_vkCmdPushDescriptorSetKHR push; + VkDescriptorSetLayout dsl; + VkPipelineLayout layout; + VkPipeline easu, rcas; + VkSampler sampler; + VkImage img[2]; // EASU output, RCAS output + VmaAllocation alloc[2]; + VkImageView view[2]; + uint32_t w, h; // their size + VkImageView src_view[SLOTS]; // the source view each slot's last frame read + int logged; +} F; + +static VkPipeline make_pipeline(VkCtx *c, const uint32_t *code, size_t size) { + VkShaderModuleCreateInfo mi = {.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO, .codeSize = size, .pCode = code}; + VkShaderModule m = VK_NULL_HANDLE; + if (vkCreateShaderModule(c->device, &mi, NULL, &m) != VK_SUCCESS) return VK_NULL_HANDLE; + VkComputePipelineCreateInfo ci = {.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO, + .stage = {.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO, + .stage = VK_SHADER_STAGE_COMPUTE_BIT, .module = m, .pName = "main"}, + .layout = F.layout}; + VkPipeline p = VK_NULL_HANDLE; + if (vkCreateComputePipelines(c->device, VK_NULL_HANDLE, 1, &ci, NULL, &p) != VK_SUCCESS) p = VK_NULL_HANDLE; + vkDestroyShaderModule(c->device, m, NULL); + return p; +} + +static int init(VkCtx *c) { + F.tried = 1; + F.push = (PFN_vkCmdPushDescriptorSetKHR)vkGetDeviceProcAddr(c->device, "vkCmdPushDescriptorSetKHR"); + if (!F.push) { + rt_log("vk: FSR off: no VK_KHR_push_descriptor; the present scales bilinearly"); + return 0; + } + VkDescriptorSetLayoutBinding b[2] = { + {.binding = 0, .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, .descriptorCount = 1, + .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT}, + {.binding = 1, .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, .descriptorCount = 1, + .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT}}; + VkDescriptorSetLayoutCreateInfo dci = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, + .flags = VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR, + .bindingCount = 2, .pBindings = b}; + VkPushConstantRange pr = {VK_SHADER_STAGE_COMPUTE_BIT, 0, 32}; + VkPipelineLayoutCreateInfo li = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 1, + .pSetLayouts = &F.dsl, .pushConstantRangeCount = 1, .pPushConstantRanges = &pr}; + VkSamplerCreateInfo si = {.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, .magFilter = VK_FILTER_LINEAR, + .minFilter = VK_FILTER_LINEAR, .mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST, + .addressModeU = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, + .addressModeV = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, + .addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, .maxLod = 0}; + if (vkCreateDescriptorSetLayout(c->device, &dci, NULL, &F.dsl) != VK_SUCCESS || + vkCreatePipelineLayout(c->device, &li, NULL, &F.layout) != VK_SUCCESS || + vkCreateSampler(c->device, &si, NULL, &F.sampler) != VK_SUCCESS || + !(F.easu = make_pipeline(c, fsr_easu_spv, sizeof fsr_easu_spv)) || + !(F.rcas = make_pipeline(c, fsr_rcas_spv, sizeof fsr_rcas_spv))) { + rt_log("vk: FSR off: its pipelines could not be created; the present scales bilinearly"); + return 0; + } + rt_log("vk: FSR 1 (EASU + RCAS) ready for the present"); + return F.ok = 1; +} + +static void free_images(VkCtx *c) { + for (int i = 0; i < 2; i++) { + if (F.view[i]) vkDestroyImageView(c->device, F.view[i], NULL); + if (F.img[i]) vmaDestroyImage(c->vma, F.img[i], F.alloc[i]); + F.view[i] = VK_NULL_HANDLE; + F.img[i] = VK_NULL_HANDLE; + } + F.w = F.h = 0; +} + +static int ensure_images(VkCtx *c, uint32_t w, uint32_t h) { + if (F.img[0] && F.w == w && F.h == h) return 1; + vkDeviceWaitIdle(c->device); // a swapchain size change: earlier presents may still read the old images + free_images(c); + for (int i = 0; i < 2; i++) { + VkImageCreateInfo ci = {.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, .imageType = VK_IMAGE_TYPE_2D, + .format = VK_FORMAT_R16G16B16A16_SFLOAT, .extent = {w, h, 1}, .mipLevels = 1, + .arrayLayers = 1, .samples = VK_SAMPLE_COUNT_1_BIT, .tiling = VK_IMAGE_TILING_OPTIMAL, + .usage = VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | + VK_IMAGE_USAGE_TRANSFER_SRC_BIT}; + VmaAllocationCreateInfo ai = {.usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE}; + if (vmaCreateImage(c->vma, &ci, &ai, &F.img[i], &F.alloc[i], NULL) != VK_SUCCESS) { + F.img[i] = VK_NULL_HANDLE; + free_images(c); + return 0; + } + VkImageViewCreateInfo vi = {.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, .image = F.img[i], + .viewType = VK_IMAGE_VIEW_TYPE_2D, .format = VK_FORMAT_R16G16B16A16_SFLOAT, + .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; + if (vkCreateImageView(c->device, &vi, NULL, &F.view[i]) != VK_SUCCESS) { + F.view[i] = VK_NULL_HANDLE; + free_images(c); + return 0; + } + } + F.w = w; + F.h = h; + return 1; +} + +static void barrier(VkCommandBuffer cb, VkImage img, VkImageLayout from, VkImageLayout to, VkPipelineStageFlags2 ss, + VkAccessFlags2 sa, VkPipelineStageFlags2 ds, VkAccessFlags2 da) { + VkImageMemoryBarrier2 b = {.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2, .srcStageMask = ss, .srcAccessMask = sa, + .dstStageMask = ds, .dstAccessMask = da, .oldLayout = from, .newLayout = to, + .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, + .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, .image = img, + .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; + VkDependencyInfo d = {.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO, .imageMemoryBarrierCount = 1, + .pImageMemoryBarriers = &b}; + vkCmdPipelineBarrier2(cb, &d); +} + +static void bind_pass(VkCommandBuffer cb, VkPipeline p, VkImageView in, VkImageView out, const float pc[8]) { + VkDescriptorImageInfo ii = {F.sampler, in, VK_IMAGE_LAYOUT_GENERAL}, oi = {VK_NULL_HANDLE, out, VK_IMAGE_LAYOUT_GENERAL}; + VkWriteDescriptorSet w[2] = { + {.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, .dstBinding = 0, .descriptorCount = 1, + .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, .pImageInfo = &ii}, + {.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, .dstBinding = 1, .descriptorCount = 1, + .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, .pImageInfo = &oi}}; + vkCmdBindPipeline(cb, VK_PIPELINE_BIND_POINT_COMPUTE, p); + F.push(cb, VK_PIPELINE_BIND_POINT_COMPUTE, F.layout, 0, 2, w); + vkCmdPushConstants(cb, F.layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, 32, pc); +} + +int vk_fsr_record(VkCommandBuffer cb, unsigned slot, VkImage src, VkFormat fmt, int sw, int sh, const int crop[4], + VkImage dst, uint32_t dw, uint32_t dh) { + int cw = crop[2], ch = crop[3]; + if (strcmp(cfg_value("TOTK_UPSCALER"), "fsr") || (dw <= (uint32_t)cw && dh <= (uint32_t)ch) || !fmt) return 0; + VkCtx *c = vk_ctx(); + if (!F.tried) init(c); + if (!F.ok || !ensure_images(c, dw, dh)) return 0; + slot %= SLOTS; + if (F.src_view[slot]) vkDestroyImageView(c->device, F.src_view[slot], NULL); + VkImageViewCreateInfo vi = {.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, .image = src, + .viewType = VK_IMAGE_VIEW_TYPE_2D, .format = fmt, + .components = {VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY, + VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_ONE}, + .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; + if (vkCreateImageView(c->device, &vi, NULL, &F.src_view[slot]) != VK_SUCCESS) { + F.src_view[slot] = VK_NULL_HANDLE; + return 0; + } + int sharp = cfg_int("TOTK_SHARPNESS"); + if (sharp < 0) sharp = 0; + if (sharp > 100) sharp = 100; + if (!F.logged) { + F.logged = 1; + rt_log("vk: FSR upscales %dx%d to %ux%u (sharpness %d)", cw, ch, dw, dh, sharp); + } + const VkPipelineStageFlags2 CS = VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT, XF = VK_PIPELINE_STAGE_2_TRANSFER_BIT; + // the game's writes to the source become visible to the compute read; the earlier frame's reads of the + // intermediates finish before this frame writes them + barrier(cb, src, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT, + VK_ACCESS_2_MEMORY_WRITE_BIT, CS, VK_ACCESS_2_SHADER_SAMPLED_READ_BIT); + for (int i = 0; i < 2; i++) + barrier(cb, F.img[i], VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL, CS | XF, 0, CS, + VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT | VK_ACCESS_2_SHADER_SAMPLED_READ_BIT); + uint32_t gx = (dw + 15) / 16, gy = (dh + 15) / 16; + float easu[8] = {(float)cw, (float)ch, (float)sw, (float)sh, (float)dw, (float)dh, (float)crop[0], (float)crop[1]}; + bind_pass(cb, F.easu, F.src_view[slot], F.view[0], easu); + vkCmdDispatch(cb, gx, gy, 1); + int last = 0; + if (sharp > 0) { + barrier(cb, F.img[0], VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, CS, VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT, + CS, VK_ACCESS_2_SHADER_SAMPLED_READ_BIT); + float rcas[8] = {(float)dw, (float)dh, (float)(100 - sharp) / 50.0f, 0, 0, 0, 0, 0}; + bind_pass(cb, F.rcas, F.view[0], F.view[1], rcas); + vkCmdDispatch(cb, gx, gy, 1); + last = 1; + } + barrier(cb, F.img[last], VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, CS, VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT, + XF, VK_ACCESS_2_TRANSFER_READ_BIT); + // later submissions that write the source wait for the compute read + barrier(cb, src, VK_IMAGE_LAYOUT_GENERAL, VK_IMAGE_LAYOUT_GENERAL, CS, 0, VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT, 0); + VkImageBlit region = {.srcSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, + .srcOffsets = {{0, 0, 0}, {(int)dw, (int)dh, 1}}, + .dstSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, + .dstOffsets = {{0, 0, 0}, {(int)dw, (int)dh, 1}}}; + vkCmdBlitImage(cb, F.img[last], VK_IMAGE_LAYOUT_GENERAL, dst, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ®ion, + VK_FILTER_NEAREST); + return 1; +} + +void vk_fsr_release(void) { + VkCtx *c = vk_ctx(); + if (!c || !F.tried) return; + free_images(c); + for (int i = 0; i < SLOTS; i++) + if (F.src_view[i]) vkDestroyImageView(c->device, F.src_view[i], NULL); + if (F.easu) vkDestroyPipeline(c->device, F.easu, NULL); + if (F.rcas) vkDestroyPipeline(c->device, F.rcas, NULL); + if (F.sampler) vkDestroySampler(c->device, F.sampler, NULL); + if (F.layout) vkDestroyPipelineLayout(c->device, F.layout, NULL); + if (F.dsl) vkDestroyDescriptorSetLayout(c->device, F.dsl, NULL); + memset(&F, 0, sizeof F); +} diff --git a/tools/build_game.py b/tools/build_game.py index d5a4aea7..c127af8c 100644 --- a/tools/build_game.py +++ b/tools/build_game.py @@ -78,11 +78,11 @@ GEN_FLAGS = ['-O1', '-fno-strict-aliasing', '-Wno-return-type', '-Wno-unused-lab '-march=x86-64-v3'] RT_FLAGS = ['-O2', '-g', '-Wall', '-fno-strict-aliasing', '-march=x86-64-v3'] LINK_FLAGS = ['-fuse-ld=lld', '-Wl,--stack,16777216', '"-Wl,--Map=$builddir/totk.map"'] # the map feeds tools/prof_report.py -LINK_LIBS = ['-lpsapi', '-lbcrypt', '-lvulkan-1', '-luser32', '-lgdi32', '-ldwmapi', '-lwinmm', '-lSDL3', '-lopus', '-l:libvpx.a', '-l:libstdc++.a', '-l:libwinpthread.a'] # Vulkan back end; libvpx static (movies) +LINK_LIBS = ['-lpsapi', '-lbcrypt', '-lvulkan-1', '-luser32', '-lgdi32', '-ldwmapi', '-lwinmm', '-lSDL3', '-lopus', '-l:libvpx.a', '-l:libzstd.a', '-l:libstdc++.a', '-l:libwinpthread.a'] # Vulkan back end; libvpx static (movies); libzstd static (resolution.c) VMA_INCLUDE = UCRT.parent / 'include' / 'vma' # vk_mem_alloc.h; MSYS2 package vulkan-memory-allocator # --toolchain: an llvm-mingw tree. The libraries, headers and DLLs MSYS2 supplies come from the deps directory instead. LLVM_LINK_LIBS = ['-lpsapi', '-lbcrypt', '-luser32', '-lgdi32', '-ldwmapi', '-lwinmm', '-lvulkan-1', '-lSDL3', '-lopus', - '-l:libvpx.a', '-l:libc++.a', '-l:libc++abi.a', '-l:libunwind.a', '-l:libwinpthread.a'] + '-l:libvpx.a', '-l:libzstd.a', '-l:libc++.a', '-l:libc++abi.a', '-l:libunwind.a', '-l:libwinpthread.a'] DEFAULT_DEPS = ROOT / 'toolchain' / 'deps-mingw' # Runtime sources compiled per install, not in the library: romfs.c includes romfs_config.h, patches.c the patches.h # of the player's game version (its patch page is the page after that version's main). diff --git a/tools/make_release.py b/tools/make_release.py index 50e5be90..2aeaf93a 100644 --- a/tools/make_release.py +++ b/tools/make_release.py @@ -79,6 +79,8 @@ PINS = { '065076fe13d39ab97eea4740596426d5ae741b5044e48e1c9495d04835c92dbe'), 'vma': (MSYS2 + 'mingw-w64-ucrt-x86_64-vulkan-memory-allocator-3.4.0-1-any.pkg.tar.zst', '44c81162337915afecda3185f66fd98268a54454580b2717080c9dfef57fe781'), + 'zstd': (MSYS2 + 'mingw-w64-ucrt-x86_64-zstd-1.5.7-2-any.pkg.tar.zst', # static libzstd.a (runtime/resolution.c) + 'dbdb8427280046a2b41697780aa4c52983b708082b0da4755951dc3bea96ca89'), } # The component MSI inside the python.org installer that carries Tcl/Tk and tkinter (Burn names its payloads a0..a27). TCLTK_PAYLOAD = ('a12', 'ac87609db3f715404dd41a989c2f1706ea1512f3d86217f938d11c63af8eb505') @@ -295,6 +297,10 @@ def build_deps(out): copy_tree(root / 'include' / inc, d / 'include' / inc) for lib in libs: shutil.copy2(root / 'lib' / lib, d / 'lib') + zstd = unpack('zstd') / 'ucrt64' + for name in ('zstd.h', 'zstd_errors.h'): + shutil.copy2(zstd / 'include' / name, d / 'include') + shutil.copy2(zstd / 'lib' / 'libzstd.a', d / 'lib') def collect_licenses(out): @@ -306,6 +312,8 @@ def collect_licenses(out): (unpack('vulkan-loader') / 'ucrt64' / 'share' / 'licenses' / 'vulkan-loader' / 'LICENSE', 'vulkan-loader-LICENSE.txt'), (unpack('vma') / 'ucrt64' / 'share' / 'licenses' / 'VulkanMemoryAllocator' / 'LICENSE', 'vulkan-memory-allocator-LICENSE.txt'), (unpack('sdl3-dll') / 'LICENSE.txt', 'SDL3-LICENSE.txt'), + (unpack('zstd') / 'ucrt64' / 'share' / 'licenses' / 'zstd' / 'LICENSE', 'zstd-LICENSE.txt'), + (ROOT / 'runtime' / 'shaders' / 'ffx' / 'LICENSE.txt', 'FidelityFX-FSR-LICENSE.txt'), (MAIN_ROOT / 'toolchain' / 'hactool' / 'LICENSE', 'hactool-LICENSE.txt'), (MAIN_ROOT / 'refs' / 'MacNativeGames' / 'LICENSE', 'MacNativeGames-LICENSE.txt'), ] diff --git a/totk.ini.example b/totk.ini.example index 6c1b2e22..d182bea7 100644 --- a/totk.ini.example +++ b/totk.ini.example @@ -34,6 +34,16 @@ # Which GPU to use: its index in the log, or part of its name. Default: the first discrete GPU with Vulkan 1.3. # gpu_index = 0 # gpu_name = NVIDIA +# Game resolution: the size the game draws its picture and interface in (1280x720 to 7680x4320). Above 1920x1080 the +# game's texture heap and memory pool grow with it. Read at start. +# output_res = 1920x1080 +# 3D render scale: the scene's size relative to the game resolution, game (5/6, the game's own 1600x900 at 1080p) or +# a percentage (25 to 400, at most 4096 pixels a side); above 100 supersamples the scene (anti-aliasing). Read at start. +# render_scale = game +# Scaling to the window when it is larger than the game resolution: fsr (AMD FSR 1) or bilinear, and FSR's sharpening +# from 0 (off) to 100. Changes while the game runs take effect at once. +# upscaler = fsr +# sharpness = 80 [language] # Language: a Windows locale such as de-DE, or a Switch code (en-US, ja, zh-Hant, ...). Default: the Windows locale.