box3d/samples/shaders/generated/gtao_denoise.glsl.h
Erin Catto 9e02b7f3b3
New sample renderer and UI (#10)
No changes to simulation
2026-06-06 10:06:05 -07:00

1872 lines
124 KiB
C++

#pragma once
/*
#version:1# (machine generated, don't edit!)
Generated by sokol-shdc (https://github.com/floooh/sokol-tools)
Cmdline:
sokol-shdc --input E:/box/box3d/samples/shaders/post/gtao_denoise.glsl --output E:/box/box3d/samples/shaders/generated/gtao_denoise.glsl.h --slang hlsl5:metal_macos:glsl430
Overview:
=========
Shader program: 'prog':
Get shader desc: gtao_denoise_prog_shader_desc(sg_query_backend());
Compute Shader: cs
Bindings:
Uniform block 'ub_gtao':
C struct: gtao_denoise_ub_gtao_t
Bind slot: UB_gtao_denoise_ub_gtao => 0
Uniform block 'ub_denoise':
C struct: gtao_denoise_ub_denoise_t
Bind slot: UB_gtao_denoise_ub_denoise => 1
Storage image 'out_ao':
Bind slot: VIEW_gtao_denoise_out_ao => 0
Image type: SG_IMAGETYPE_2D
Access format: SG_PIXELFORMAT_R32F
Writeonly: true
Texture 'tex_edges':
Image type: SG_IMAGETYPE_2D
Sample type: SG_IMAGESAMPLETYPE_FLOAT
Multisampled: false
Bind slot: VIEW_gtao_denoise_tex_edges => 1
Texture 'tex_noisy_ao':
Image type: SG_IMAGETYPE_2D
Sample type: SG_IMAGESAMPLETYPE_FLOAT
Multisampled: false
Bind slot: VIEW_gtao_denoise_tex_noisy_ao => 2
Sampler 'smp_point_clamp':
Type: SG_SAMPLERTYPE_FILTERING
Bind slot: SMP_gtao_denoise_smp_point_clamp => 0
*/
#if !defined(SOKOL_GFX_INCLUDED)
#error "Please include sokol_gfx.h before gtao_denoise.glsl.h"
#endif
#if !defined(SOKOL_SHDC_ALIGN)
#if defined(_MSC_VER)
#define SOKOL_SHDC_ALIGN(a) __declspec(align(a))
#else
#define SOKOL_SHDC_ALIGN(a) __attribute__((aligned(a)))
#endif
#endif
#define UB_gtao_denoise_ub_gtao (0)
#define UB_gtao_denoise_ub_denoise (1)
#define VIEW_gtao_denoise_out_ao (0)
#define VIEW_gtao_denoise_tex_edges (1)
#define VIEW_gtao_denoise_tex_noisy_ao (2)
#define SMP_gtao_denoise_smp_point_clamp (0)
#pragma pack(push,1)
SOKOL_SHDC_ALIGN(16) typedef struct gtao_denoise_ub_gtao_t {
int ViewportSize[2];
float DenoiseBlurBeta;
uint8_t _pad_12[4];
} gtao_denoise_ub_gtao_t;
#pragma pack(pop)
#pragma pack(push,1)
SOKOL_SHDC_ALIGN(16) typedef struct gtao_denoise_ub_denoise_t {
int FinalApply;
int _Pad0;
int _Pad1;
int _Pad2;
} gtao_denoise_ub_denoise_t;
#pragma pack(pop)
/*
#version 430
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
struct ub_gtao
{
ivec2 ViewportSize;
float DenoiseBlurBeta;
};
uniform ub_gtao gtao;
uniform ivec4 ub_denoise[1];
layout(binding = 0, r32f) uniform writeonly image2D out_ao;
layout(binding = 0) uniform sampler2D tex_edges_smp_point_clamp;
layout(binding = 1) uniform sampler2D tex_noisy_ao_smp_point_clamp;
float fetchEdge(ivec2 coord)
{
return texelFetch(tex_edges_smp_point_clamp, clamp(coord, ivec2(0), gtao.ViewportSize - ivec2(1)), 0).x;
}
float fetchAO(ivec2 coord)
{
return texelFetch(tex_noisy_ao_smp_point_clamp, clamp(coord, ivec2(0), gtao.ViewportSize - ivec2(1)), 0).x;
}
vec4 XeGTAO_UnpackEdges(float packed_val)
{
uint _44 = uint(packed_val * 255.5);
return clamp(vec4(float((_44 >> uint(6)) & 3u) * 0.3333333432674407958984375, float((_44 >> uint(4)) & 3u) * 0.3333333432674407958984375, float((_44 >> uint(2)) & 3u) * 0.3333333432674407958984375, float((_44) & 3u) * 0.3333333432674407958984375), vec4(0.0), vec4(1.0));
}
void XeGTAO_AddSample(float ssaoValue, float edgeValue, inout float sum, inout float sumWeight)
{
sum += (edgeValue * ssaoValue);
sumWeight += edgeValue;
}
void XeGTAO_Output(ivec2 pixCoord, float outputValue, bool finalApply)
{
imageStore(out_ao, pixCoord, vec4(outputValue * (finalApply ? 1.5 : 1.0), 0.0, 0.0, 0.0));
}
void main()
{
ivec2 _168 = ivec2(gl_GlobalInvocationID.xy);
ivec2 _176 = ivec2(_168.x * 2, _168.y);
if (any(greaterThanEqual(_176, gtao.ViewportSize)))
{
return;
}
bool _193 = ub_denoise[0].x != 0;
float _196;
if (_193)
{
_196 = gtao.DenoiseBlurBeta;
}
else
{
_196 = gtao.DenoiseBlurBeta * 0.20000000298023223876953125;
}
float edgesN[4][3];
float ao[4][3];
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 3; j++)
{
ivec2 _232 = _176 + ivec2(i - 1, j - 1);
ivec2 param = _232;
edgesN[i][j] = fetchEdge(param);
ivec2 param_1 = _232;
ao[i][j] = fetchAO(param_1);
}
}
for (int side = 0; side < 2; side++)
{
ivec2 _267 = _176 + ivec2(side, 0);
if (_267.x >= gtao.ViewportSize.x)
{
break;
}
int _278 = 1 + side;
int _284 = side + 2;
float param_2 = edgesN[_278][1];
vec4 edgesC_LRTB = XeGTAO_UnpackEdges(param_2);
float param_3 = edgesN[side][1];
vec4 _296 = XeGTAO_UnpackEdges(param_3);
float param_4 = edgesN[_284][1];
vec4 _302 = XeGTAO_UnpackEdges(param_4);
float param_5 = edgesN[_278][0];
vec4 _308 = XeGTAO_UnpackEdges(param_5);
float param_6 = edgesN[_278][2];
vec4 _314 = XeGTAO_UnpackEdges(param_6);
vec4 _324 = edgesC_LRTB;
vec4 _325 = _324 * vec4(_296.y, _302.x, _308.w, _314.z);
vec4 _341 = clamp(_325 + vec4(clamp(1.5 - dot(_325, vec4(1.0)), 0.0, 1.0) * 0.3333333432674407958984375), vec4(0.0), vec4(1.0));
edgesC_LRTB = _341;
float _345 = _341.x;
float _350 = _341.z;
float _363 = _341.y;
float _371 = _341.w;
float param_7 = ao[side][1];
float param_8 = _345;
float param_9 = ao[_278][1] * _196;
float param_10 = _196;
XeGTAO_AddSample(param_7, param_8, param_9, param_10);
float param_11 = ao[_284][1];
float param_12 = edgesC_LRTB.y;
float param_13 = param_9;
float param_14 = param_10;
XeGTAO_AddSample(param_11, param_12, param_13, param_14);
float param_15 = ao[_278][0];
float param_16 = edgesC_LRTB.z;
float param_17 = param_13;
float param_18 = param_14;
XeGTAO_AddSample(param_15, param_16, param_17, param_18);
float param_19 = ao[_278][2];
float param_20 = edgesC_LRTB.w;
float param_21 = param_17;
float param_22 = param_18;
XeGTAO_AddSample(param_19, param_20, param_21, param_22);
float param_23 = ao[side][0];
float param_24 = 0.425000011920928955078125 * ((_345 * _296.z) + (_350 * _308.x));
float param_25 = param_21;
float param_26 = param_22;
XeGTAO_AddSample(param_23, param_24, param_25, param_26);
float param_27 = ao[_284][0];
float param_28 = 0.425000011920928955078125 * ((_350 * _308.y) + (_363 * _302.z));
float param_29 = param_25;
float param_30 = param_26;
XeGTAO_AddSample(param_27, param_28, param_29, param_30);
float param_31 = ao[side][2];
float param_32 = 0.425000011920928955078125 * ((_371 * _314.x) + (_345 * _296.w));
float param_33 = param_29;
float param_34 = param_30;
XeGTAO_AddSample(param_31, param_32, param_33, param_34);
float param_35 = ao[_284][2];
float param_36 = 0.425000011920928955078125 * ((_363 * _302.w) + (_371 * _314.y));
float param_37 = param_33;
float param_38 = param_34;
XeGTAO_AddSample(param_35, param_36, param_37, param_38);
ivec2 param_39 = _267;
float param_40 = param_37 / param_38;
bool param_41 = _193;
XeGTAO_Output(param_39, param_40, param_41);
}
}
*/
static const uint8_t gtao_denoise_cs_source_glsl430[5273] = {
0x23,0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,0x20,0x34,0x33,0x30,0x0a,0x6c,0x61,0x79,
0x6f,0x75,0x74,0x28,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,0x5f,0x78,
0x20,0x3d,0x20,0x38,0x2c,0x20,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,0x7a,0x65,
0x5f,0x79,0x20,0x3d,0x20,0x38,0x2c,0x20,0x6c,0x6f,0x63,0x61,0x6c,0x5f,0x73,0x69,
0x7a,0x65,0x5f,0x7a,0x20,0x3d,0x20,0x31,0x29,0x20,0x69,0x6e,0x3b,0x0a,0x0a,0x73,
0x74,0x72,0x75,0x63,0x74,0x20,0x75,0x62,0x5f,0x67,0x74,0x61,0x6f,0x0a,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x56,0x69,0x65,0x77,0x70,0x6f,
0x72,0x74,0x53,0x69,0x7a,0x65,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x44,0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,0x75,0x72,0x42,0x65,0x74,
0x61,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x75,0x6e,0x69,0x66,0x6f,0x72,0x6d,0x20,0x75,
0x62,0x5f,0x67,0x74,0x61,0x6f,0x20,0x67,0x74,0x61,0x6f,0x3b,0x0a,0x0a,0x75,0x6e,
0x69,0x66,0x6f,0x72,0x6d,0x20,0x69,0x76,0x65,0x63,0x34,0x20,0x75,0x62,0x5f,0x64,
0x65,0x6e,0x6f,0x69,0x73,0x65,0x5b,0x31,0x5d,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,
0x74,0x28,0x62,0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x30,0x2c,0x20,0x72,
0x33,0x32,0x66,0x29,0x20,0x75,0x6e,0x69,0x66,0x6f,0x72,0x6d,0x20,0x77,0x72,0x69,
0x74,0x65,0x6f,0x6e,0x6c,0x79,0x20,0x69,0x6d,0x61,0x67,0x65,0x32,0x44,0x20,0x6f,
0x75,0x74,0x5f,0x61,0x6f,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x62,0x69,
0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x30,0x29,0x20,0x75,0x6e,0x69,0x66,0x6f,
0x72,0x6d,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x72,0x32,0x44,0x20,0x74,0x65,0x78,
0x5f,0x65,0x64,0x67,0x65,0x73,0x5f,0x73,0x6d,0x70,0x5f,0x70,0x6f,0x69,0x6e,0x74,
0x5f,0x63,0x6c,0x61,0x6d,0x70,0x3b,0x0a,0x6c,0x61,0x79,0x6f,0x75,0x74,0x28,0x62,
0x69,0x6e,0x64,0x69,0x6e,0x67,0x20,0x3d,0x20,0x31,0x29,0x20,0x75,0x6e,0x69,0x66,
0x6f,0x72,0x6d,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x72,0x32,0x44,0x20,0x74,0x65,
0x78,0x5f,0x6e,0x6f,0x69,0x73,0x79,0x5f,0x61,0x6f,0x5f,0x73,0x6d,0x70,0x5f,0x70,
0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,0x3b,0x0a,0x0a,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x66,0x65,0x74,0x63,0x68,0x45,0x64,0x67,0x65,0x28,0x69,0x76,0x65,
0x63,0x32,0x20,0x63,0x6f,0x6f,0x72,0x64,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,
0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x74,0x65,0x78,0x65,0x6c,0x46,0x65,0x74,0x63,
0x68,0x28,0x74,0x65,0x78,0x5f,0x65,0x64,0x67,0x65,0x73,0x5f,0x73,0x6d,0x70,0x5f,
0x70,0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,0x2c,0x20,0x63,0x6c,0x61,
0x6d,0x70,0x28,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x69,0x76,0x65,0x63,0x32,0x28,
0x30,0x29,0x2c,0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,
0x74,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x69,0x76,0x65,0x63,0x32,0x28,0x31,0x29,
0x29,0x2c,0x20,0x30,0x29,0x2e,0x78,0x3b,0x0a,0x7d,0x0a,0x0a,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x66,0x65,0x74,0x63,0x68,0x41,0x4f,0x28,0x69,0x76,0x65,0x63,0x32,0x20,
0x63,0x6f,0x6f,0x72,0x64,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x72,0x65,0x74,
0x75,0x72,0x6e,0x20,0x74,0x65,0x78,0x65,0x6c,0x46,0x65,0x74,0x63,0x68,0x28,0x74,
0x65,0x78,0x5f,0x6e,0x6f,0x69,0x73,0x79,0x5f,0x61,0x6f,0x5f,0x73,0x6d,0x70,0x5f,
0x70,0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,0x2c,0x20,0x63,0x6c,0x61,
0x6d,0x70,0x28,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x69,0x76,0x65,0x63,0x32,0x28,
0x30,0x29,0x2c,0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,
0x74,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x69,0x76,0x65,0x63,0x32,0x28,0x31,0x29,
0x29,0x2c,0x20,0x30,0x29,0x2e,0x78,0x3b,0x0a,0x7d,0x0a,0x0a,0x76,0x65,0x63,0x34,
0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,
0x67,0x65,0x73,0x28,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x63,0x6b,0x65,0x64,
0x5f,0x76,0x61,0x6c,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x75,0x69,0x6e,0x74,
0x20,0x5f,0x34,0x34,0x20,0x3d,0x20,0x75,0x69,0x6e,0x74,0x28,0x70,0x61,0x63,0x6b,
0x65,0x64,0x5f,0x76,0x61,0x6c,0x20,0x2a,0x20,0x32,0x35,0x35,0x2e,0x35,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x63,0x6c,0x61,0x6d,
0x70,0x28,0x76,0x65,0x63,0x34,0x28,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,
0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,0x6e,0x74,0x28,0x36,0x29,0x29,0x20,0x26,0x20,
0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,
0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,
0x35,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,
0x20,0x75,0x69,0x6e,0x74,0x28,0x34,0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,
0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,
0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x2c,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,0x6e,
0x74,0x28,0x32,0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,
0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,
0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x28,0x28,0x5f,0x34,0x34,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,
0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,
0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x29,0x2c,0x20,0x76,0x65,0x63,
0x34,0x28,0x30,0x2e,0x30,0x29,0x2c,0x20,0x76,0x65,0x63,0x34,0x28,0x31,0x2e,0x30,
0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x76,0x6f,0x69,0x64,0x20,0x58,0x65,0x47,0x54,
0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x73,0x73,0x61,0x6f,0x56,0x61,0x6c,0x75,0x65,0x2c,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x65,0x64,0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x2c,0x20,0x69,
0x6e,0x6f,0x75,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x73,0x75,0x6d,0x2c,0x20,
0x69,0x6e,0x6f,0x75,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x73,0x75,0x6d,0x57,
0x65,0x69,0x67,0x68,0x74,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x73,0x75,0x6d,
0x20,0x2b,0x3d,0x20,0x28,0x65,0x64,0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x20,0x2a,
0x20,0x73,0x73,0x61,0x6f,0x56,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x73,0x75,0x6d,0x57,0x65,0x69,0x67,0x68,0x74,0x20,0x2b,0x3d,0x20,0x65,0x64,
0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x0a,0x76,0x6f,0x69,0x64,
0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x28,0x69,
0x76,0x65,0x63,0x32,0x20,0x70,0x69,0x78,0x43,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x56,0x61,0x6c,0x75,0x65,
0x2c,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,
0x79,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6d,0x61,0x67,0x65,0x53,0x74,
0x6f,0x72,0x65,0x28,0x6f,0x75,0x74,0x5f,0x61,0x6f,0x2c,0x20,0x70,0x69,0x78,0x43,
0x6f,0x6f,0x72,0x64,0x2c,0x20,0x76,0x65,0x63,0x34,0x28,0x6f,0x75,0x74,0x70,0x75,
0x74,0x56,0x61,0x6c,0x75,0x65,0x20,0x2a,0x20,0x28,0x66,0x69,0x6e,0x61,0x6c,0x41,
0x70,0x70,0x6c,0x79,0x20,0x3f,0x20,0x31,0x2e,0x35,0x20,0x3a,0x20,0x31,0x2e,0x30,
0x29,0x2c,0x20,0x30,0x2e,0x30,0x2c,0x20,0x30,0x2e,0x30,0x2c,0x20,0x30,0x2e,0x30,
0x29,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x76,0x6f,0x69,0x64,0x20,0x6d,0x61,0x69,0x6e,
0x28,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x5f,
0x31,0x36,0x38,0x20,0x3d,0x20,0x69,0x76,0x65,0x63,0x32,0x28,0x67,0x6c,0x5f,0x47,
0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,
0x44,0x2e,0x78,0x79,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,
0x20,0x5f,0x31,0x37,0x36,0x20,0x3d,0x20,0x69,0x76,0x65,0x63,0x32,0x28,0x5f,0x31,
0x36,0x38,0x2e,0x78,0x20,0x2a,0x20,0x32,0x2c,0x20,0x5f,0x31,0x36,0x38,0x2e,0x79,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x61,0x6e,0x79,0x28,0x67,
0x72,0x65,0x61,0x74,0x65,0x72,0x54,0x68,0x61,0x6e,0x45,0x71,0x75,0x61,0x6c,0x28,
0x5f,0x31,0x37,0x36,0x2c,0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,
0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x29,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,
0x5f,0x31,0x39,0x33,0x20,0x3d,0x20,0x75,0x62,0x5f,0x64,0x65,0x6e,0x6f,0x69,0x73,
0x65,0x5b,0x30,0x5d,0x2e,0x78,0x20,0x21,0x3d,0x20,0x30,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x69,0x66,0x20,0x28,0x5f,0x31,0x39,0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x36,0x20,0x3d,0x20,
0x67,0x74,0x61,0x6f,0x2e,0x44,0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,0x75,0x72,
0x42,0x65,0x74,0x61,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,
0x65,0x6c,0x73,0x65,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x5f,0x31,0x39,0x36,0x20,0x3d,0x20,0x67,0x74,0x61,0x6f,0x2e,0x44,
0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,0x75,0x72,0x42,0x65,0x74,0x61,0x20,0x2a,
0x20,0x30,0x2e,0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x32,0x39,0x38,0x30,0x32,
0x33,0x32,0x32,0x33,0x38,0x37,0x36,0x39,0x35,0x33,0x31,0x32,0x35,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x65,
0x64,0x67,0x65,0x73,0x4e,0x5b,0x34,0x5d,0x5b,0x33,0x5d,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x61,0x6f,0x5b,0x34,0x5d,0x5b,0x33,0x5d,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x20,
0x3d,0x20,0x30,0x3b,0x20,0x69,0x20,0x3c,0x20,0x34,0x3b,0x20,0x69,0x2b,0x2b,0x29,
0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x6a,0x20,0x3d,0x20,0x30,0x3b,0x20,0x6a,
0x20,0x3c,0x20,0x33,0x3b,0x20,0x6a,0x2b,0x2b,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x5f,0x32,0x33,0x32,0x20,0x3d,0x20,0x5f,0x31,
0x37,0x36,0x20,0x2b,0x20,0x69,0x76,0x65,0x63,0x32,0x28,0x69,0x20,0x2d,0x20,0x31,
0x2c,0x20,0x6a,0x20,0x2d,0x20,0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x70,0x61,0x72,0x61,
0x6d,0x20,0x3d,0x20,0x5f,0x32,0x33,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x69,0x5d,0x5b,
0x6a,0x5d,0x20,0x3d,0x20,0x66,0x65,0x74,0x63,0x68,0x45,0x64,0x67,0x65,0x28,0x70,
0x61,0x72,0x61,0x6d,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,
0x20,0x3d,0x20,0x5f,0x32,0x33,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x61,0x6f,0x5b,0x69,0x5d,0x5b,0x6a,0x5d,0x20,0x3d,0x20,
0x66,0x65,0x74,0x63,0x68,0x41,0x4f,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x73,
0x69,0x64,0x65,0x20,0x3d,0x20,0x30,0x3b,0x20,0x73,0x69,0x64,0x65,0x20,0x3c,0x20,
0x32,0x3b,0x20,0x73,0x69,0x64,0x65,0x2b,0x2b,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x5f,
0x32,0x36,0x37,0x20,0x3d,0x20,0x5f,0x31,0x37,0x36,0x20,0x2b,0x20,0x69,0x76,0x65,
0x63,0x32,0x28,0x73,0x69,0x64,0x65,0x2c,0x20,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x36,0x37,0x2e,0x78,0x20,
0x3e,0x3d,0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,0x74,
0x53,0x69,0x7a,0x65,0x2e,0x78,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x72,
0x65,0x61,0x6b,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x32,0x37,0x38,0x20,
0x3d,0x20,0x31,0x20,0x2b,0x20,0x73,0x69,0x64,0x65,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x32,0x38,0x34,0x20,0x3d,0x20,0x73,
0x69,0x64,0x65,0x20,0x2b,0x20,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x20,0x3d,
0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x31,0x5d,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x65,
0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x20,0x3d,0x20,0x58,0x65,0x47,
0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x20,
0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x31,
0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,
0x5f,0x32,0x39,0x36,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,
0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,
0x73,0x4e,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x5f,0x33,0x30,0x32,0x20,0x3d,
0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,
0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x29,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x35,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,
0x38,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,
0x65,0x63,0x34,0x20,0x5f,0x33,0x30,0x38,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,
0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x35,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x36,0x20,0x3d,0x20,
0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x32,0x5d,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x5f,0x33,
0x31,0x34,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,
0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x36,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,0x5f,
0x33,0x32,0x34,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,
0x42,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,0x20,
0x5f,0x33,0x32,0x35,0x20,0x3d,0x20,0x5f,0x33,0x32,0x34,0x20,0x2a,0x20,0x76,0x65,
0x63,0x34,0x28,0x5f,0x32,0x39,0x36,0x2e,0x79,0x2c,0x20,0x5f,0x33,0x30,0x32,0x2e,
0x78,0x2c,0x20,0x5f,0x33,0x30,0x38,0x2e,0x77,0x2c,0x20,0x5f,0x33,0x31,0x34,0x2e,
0x7a,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x76,0x65,0x63,0x34,
0x20,0x5f,0x33,0x34,0x31,0x20,0x3d,0x20,0x63,0x6c,0x61,0x6d,0x70,0x28,0x5f,0x33,
0x32,0x35,0x20,0x2b,0x20,0x76,0x65,0x63,0x34,0x28,0x63,0x6c,0x61,0x6d,0x70,0x28,
0x31,0x2e,0x35,0x20,0x2d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x33,0x32,0x35,0x2c,0x20,
0x76,0x65,0x63,0x34,0x28,0x31,0x2e,0x30,0x29,0x29,0x2c,0x20,0x30,0x2e,0x30,0x2c,
0x20,0x31,0x2e,0x30,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,
0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,
0x33,0x37,0x35,0x29,0x2c,0x20,0x76,0x65,0x63,0x34,0x28,0x30,0x2e,0x30,0x29,0x2c,
0x20,0x76,0x65,0x63,0x34,0x28,0x31,0x2e,0x30,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,
0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,0x34,0x35,0x20,0x3d,0x20,0x5f,0x33,
0x34,0x31,0x2e,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x5f,0x33,0x35,0x30,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,
0x7a,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x5f,0x33,0x36,0x33,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x79,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,
0x37,0x31,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x37,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x31,0x5d,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x38,0x20,0x3d,0x20,0x5f,0x33,0x34,0x35,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x39,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x37,0x38,0x5d,
0x5b,0x31,0x5d,0x20,0x2a,0x20,0x5f,0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x30,0x20,0x3d,0x20,0x5f,0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,
0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x37,0x2c,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x38,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x39,0x2c,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x31,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x31,
0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x32,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,
0x4c,0x52,0x54,0x42,0x2e,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x33,0x20,0x3d,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x34,
0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x30,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,
0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x31,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x32,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x33,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x34,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x31,0x35,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x37,0x38,0x5d,
0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x36,0x20,0x3d,0x20,0x65,0x64,
0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x2e,0x7a,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x31,0x37,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x33,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x38,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,
0x34,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,
0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x31,0x35,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x36,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x37,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x38,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x39,0x20,0x3d,0x20,0x61,0x6f,
0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,
0x30,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x2e,
0x77,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x31,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x31,0x37,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x32,0x20,0x3d,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x31,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,
0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x39,0x2c,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x32,0x30,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x31,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,
0x33,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x30,0x5d,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x32,0x34,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,
0x30,0x30,0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,
0x38,0x31,0x32,0x35,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,0x34,0x35,0x20,0x2a,0x20,
0x5f,0x32,0x39,0x36,0x2e,0x7a,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x35,0x30,0x20,
0x2a,0x20,0x5f,0x33,0x30,0x38,0x2e,0x78,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x35,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x31,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x32,0x36,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x32,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,
0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x32,0x33,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x34,0x2c,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x32,0x35,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,
0x36,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x37,0x20,0x3d,0x20,0x61,0x6f,0x5b,
0x5f,0x32,0x38,0x34,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x38,
0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,0x32,
0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x20,0x2a,0x20,
0x28,0x28,0x5f,0x33,0x35,0x30,0x20,0x2a,0x20,0x5f,0x33,0x30,0x38,0x2e,0x79,0x29,
0x20,0x2b,0x20,0x28,0x5f,0x33,0x36,0x33,0x20,0x2a,0x20,0x5f,0x33,0x30,0x32,0x2e,
0x7a,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,0x20,0x3d,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x32,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x30,0x20,0x3d,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,
0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x37,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x32,0x38,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,
0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x33,0x31,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x32,
0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x32,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,
0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,
0x30,0x37,0x38,0x31,0x32,0x35,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,0x37,0x31,0x20,
0x2a,0x20,0x5f,0x33,0x31,0x34,0x2e,0x78,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x34,
0x35,0x20,0x2a,0x20,0x5f,0x32,0x39,0x36,0x2e,0x77,0x29,0x29,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x33,0x33,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,
0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x33,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x32,0x2c,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x33,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x33,0x34,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x35,0x20,0x3d,0x20,0x61,
0x6f,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x36,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,
0x39,0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x20,
0x2a,0x20,0x28,0x28,0x5f,0x33,0x36,0x33,0x20,0x2a,0x20,0x5f,0x33,0x30,0x32,0x2e,
0x77,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x37,0x31,0x20,0x2a,0x20,0x5f,0x33,0x31,
0x34,0x2e,0x79,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x37,0x20,0x3d,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,
0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,
0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x35,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x36,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x37,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x76,0x65,0x63,0x32,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x33,0x39,0x20,0x3d,0x20,0x5f,0x32,0x36,0x37,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x34,0x30,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x37,0x20,
0x2f,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,
0x31,0x20,0x3d,0x20,0x5f,0x31,0x39,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x39,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x34,0x30,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x31,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x7d,0x0a,0x0a,0x00,
};
/*
static const uint3 gl_WorkGroupSize = uint3(8u, 8u, 1u);
cbuffer ub_gtao : register(b0)
{
int2 gtao_ViewportSize : packoffset(c0);
float gtao_DenoiseBlurBeta : packoffset(c0.z);
};
cbuffer ub_denoise : register(b1)
{
int _189_FinalApply : packoffset(c0);
int _189_Pad0 : packoffset(c0.y);
int _189_Pad1 : packoffset(c0.z);
int _189_Pad2 : packoffset(c0.w);
};
Texture2D<float4> tex_edges : register(t0);
SamplerState smp_point_clamp : register(s0);
Texture2D<float4> tex_noisy_ao : register(t1);
RWTexture2D<float> out_ao : register(u0);
static uint3 gl_GlobalInvocationID;
struct SPIRV_Cross_Input
{
uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
};
float fetchEdge(int2 coord)
{
return tex_edges.Load(int3(clamp(coord, int2(0, 0), gtao_ViewportSize - int2(1, 1)), 0)).x;
}
float fetchAO(int2 coord)
{
return tex_noisy_ao.Load(int3(clamp(coord, int2(0, 0), gtao_ViewportSize - int2(1, 1)), 0)).x;
}
float4 XeGTAO_UnpackEdges(float packed_val)
{
uint _44 = uint(packed_val * 255.5f);
return clamp(float4(float((_44 >> uint(6)) & 3u) * 0.3333333432674407958984375f, float((_44 >> uint(4)) & 3u) * 0.3333333432674407958984375f, float((_44 >> uint(2)) & 3u) * 0.3333333432674407958984375f, float((_44) & 3u) * 0.3333333432674407958984375f), 0.0f.xxxx, 1.0f.xxxx);
}
void XeGTAO_AddSample(float ssaoValue, float edgeValue, inout float sum, inout float sumWeight)
{
sum += (edgeValue * ssaoValue);
sumWeight += edgeValue;
}
void XeGTAO_Output(int2 pixCoord, float outputValue, bool finalApply)
{
out_ao[pixCoord] = float4(outputValue * (finalApply ? 1.5f : 1.0f), 0.0f, 0.0f, 0.0f).x;
}
void comp_main()
{
int2 _168 = int2(gl_GlobalInvocationID.xy);
int2 _176 = int2(_168.x * 2, _168.y);
if (any(bool2(_176.x >= gtao_ViewportSize.x, _176.y >= gtao_ViewportSize.y)))
{
return;
}
bool _193 = _189_FinalApply != 0;
float _196;
if (_193)
{
_196 = gtao_DenoiseBlurBeta;
}
else
{
_196 = gtao_DenoiseBlurBeta * 0.20000000298023223876953125f;
}
float edgesN[4][3];
float ao[4][3];
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 3; j++)
{
int2 _232 = _176 + int2(i - 1, j - 1);
int2 param = _232;
edgesN[i][j] = fetchEdge(param);
int2 param_1 = _232;
ao[i][j] = fetchAO(param_1);
}
}
for (int side = 0; side < 2; side++)
{
int2 _267 = _176 + int2(side, 0);
if (_267.x >= gtao_ViewportSize.x)
{
break;
}
int _278 = 1 + side;
int _284 = side + 2;
float param_2 = edgesN[_278][1];
float4 edgesC_LRTB = XeGTAO_UnpackEdges(param_2);
float param_3 = edgesN[side][1];
float4 _296 = XeGTAO_UnpackEdges(param_3);
float param_4 = edgesN[_284][1];
float4 _302 = XeGTAO_UnpackEdges(param_4);
float param_5 = edgesN[_278][0];
float4 _308 = XeGTAO_UnpackEdges(param_5);
float param_6 = edgesN[_278][2];
float4 _314 = XeGTAO_UnpackEdges(param_6);
float4 _324 = edgesC_LRTB;
float4 _325 = _324 * float4(_296.y, _302.x, _308.w, _314.z);
float4 _341 = clamp(_325 + (clamp(1.5f - dot(_325, 1.0f.xxxx), 0.0f, 1.0f) * 0.3333333432674407958984375f).xxxx, 0.0f.xxxx, 1.0f.xxxx);
edgesC_LRTB = _341;
float _345 = _341.x;
float _350 = _341.z;
float _363 = _341.y;
float _371 = _341.w;
float param_7 = ao[side][1];
float param_8 = _345;
float param_9 = ao[_278][1] * _196;
float param_10 = _196;
XeGTAO_AddSample(param_7, param_8, param_9, param_10);
float param_11 = ao[_284][1];
float param_12 = edgesC_LRTB.y;
float param_13 = param_9;
float param_14 = param_10;
XeGTAO_AddSample(param_11, param_12, param_13, param_14);
float param_15 = ao[_278][0];
float param_16 = edgesC_LRTB.z;
float param_17 = param_13;
float param_18 = param_14;
XeGTAO_AddSample(param_15, param_16, param_17, param_18);
float param_19 = ao[_278][2];
float param_20 = edgesC_LRTB.w;
float param_21 = param_17;
float param_22 = param_18;
XeGTAO_AddSample(param_19, param_20, param_21, param_22);
float param_23 = ao[side][0];
float param_24 = 0.425000011920928955078125f * ((_345 * _296.z) + (_350 * _308.x));
float param_25 = param_21;
float param_26 = param_22;
XeGTAO_AddSample(param_23, param_24, param_25, param_26);
float param_27 = ao[_284][0];
float param_28 = 0.425000011920928955078125f * ((_350 * _308.y) + (_363 * _302.z));
float param_29 = param_25;
float param_30 = param_26;
XeGTAO_AddSample(param_27, param_28, param_29, param_30);
float param_31 = ao[side][2];
float param_32 = 0.425000011920928955078125f * ((_371 * _314.x) + (_345 * _296.w));
float param_33 = param_29;
float param_34 = param_30;
XeGTAO_AddSample(param_31, param_32, param_33, param_34);
float param_35 = ao[_284][2];
float param_36 = 0.425000011920928955078125f * ((_363 * _302.w) + (_371 * _314.y));
float param_37 = param_33;
float param_38 = param_34;
XeGTAO_AddSample(param_35, param_36, param_37, param_38);
int2 param_39 = _267;
float param_40 = param_37 / param_38;
bool param_41 = _193;
XeGTAO_Output(param_39, param_40, param_41);
}
}
[numthreads(8, 8, 1)]
void main(SPIRV_Cross_Input stage_input)
{
gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
comp_main();
}
*/
static const uint8_t gtao_denoise_cs_source_hlsl5[5737] = {
0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x75,0x69,0x6e,
0x74,0x33,0x20,0x67,0x6c,0x5f,0x57,0x6f,0x72,0x6b,0x47,0x72,0x6f,0x75,0x70,0x53,
0x69,0x7a,0x65,0x20,0x3d,0x20,0x75,0x69,0x6e,0x74,0x33,0x28,0x38,0x75,0x2c,0x20,
0x38,0x75,0x2c,0x20,0x31,0x75,0x29,0x3b,0x0a,0x0a,0x63,0x62,0x75,0x66,0x66,0x65,
0x72,0x20,0x75,0x62,0x5f,0x67,0x74,0x61,0x6f,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,
0x73,0x74,0x65,0x72,0x28,0x62,0x30,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,
0x6e,0x74,0x32,0x20,0x67,0x74,0x61,0x6f,0x5f,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,
0x74,0x53,0x69,0x7a,0x65,0x20,0x3a,0x20,0x70,0x61,0x63,0x6b,0x6f,0x66,0x66,0x73,
0x65,0x74,0x28,0x63,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x67,0x74,0x61,0x6f,0x5f,0x44,0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,
0x75,0x72,0x42,0x65,0x74,0x61,0x20,0x3a,0x20,0x70,0x61,0x63,0x6b,0x6f,0x66,0x66,
0x73,0x65,0x74,0x28,0x63,0x30,0x2e,0x7a,0x29,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x63,
0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x75,0x62,0x5f,0x64,0x65,0x6e,0x6f,0x69,0x73,
0x65,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x31,0x29,
0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x31,0x38,0x39,0x5f,
0x46,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,0x79,0x20,0x3a,0x20,0x70,0x61,0x63,
0x6b,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x63,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x69,0x6e,0x74,0x20,0x5f,0x31,0x38,0x39,0x5f,0x50,0x61,0x64,0x30,0x20,0x3a,
0x20,0x70,0x61,0x63,0x6b,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x63,0x30,0x2e,0x79,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x31,0x38,0x39,0x5f,
0x50,0x61,0x64,0x31,0x20,0x3a,0x20,0x70,0x61,0x63,0x6b,0x6f,0x66,0x66,0x73,0x65,
0x74,0x28,0x63,0x30,0x2e,0x7a,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,
0x20,0x5f,0x31,0x38,0x39,0x5f,0x50,0x61,0x64,0x32,0x20,0x3a,0x20,0x70,0x61,0x63,
0x6b,0x6f,0x66,0x66,0x73,0x65,0x74,0x28,0x63,0x30,0x2e,0x77,0x29,0x3b,0x0a,0x7d,
0x3b,0x0a,0x0a,0x54,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x44,0x3c,0x66,0x6c,0x6f,
0x61,0x74,0x34,0x3e,0x20,0x74,0x65,0x78,0x5f,0x65,0x64,0x67,0x65,0x73,0x20,0x3a,
0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x74,0x30,0x29,0x3b,0x0a,0x53,
0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x73,0x6d,0x70,0x5f,
0x70,0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,0x20,0x3a,0x20,0x72,0x65,
0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x30,0x29,0x3b,0x0a,0x54,0x65,0x78,0x74,
0x75,0x72,0x65,0x32,0x44,0x3c,0x66,0x6c,0x6f,0x61,0x74,0x34,0x3e,0x20,0x74,0x65,
0x78,0x5f,0x6e,0x6f,0x69,0x73,0x79,0x5f,0x61,0x6f,0x20,0x3a,0x20,0x72,0x65,0x67,
0x69,0x73,0x74,0x65,0x72,0x28,0x74,0x31,0x29,0x3b,0x0a,0x52,0x57,0x54,0x65,0x78,
0x74,0x75,0x72,0x65,0x32,0x44,0x3c,0x66,0x6c,0x6f,0x61,0x74,0x3e,0x20,0x6f,0x75,
0x74,0x5f,0x61,0x6f,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,
0x75,0x30,0x29,0x3b,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x75,0x69,0x6e,
0x74,0x33,0x20,0x67,0x6c,0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,
0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x44,0x3b,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,
0x20,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,0x5f,0x49,0x6e,0x70,
0x75,0x74,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x75,0x69,0x6e,0x74,0x33,0x20,0x67,
0x6c,0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,
0x6f,0x6e,0x49,0x44,0x20,0x3a,0x20,0x53,0x56,0x5f,0x44,0x69,0x73,0x70,0x61,0x74,
0x63,0x68,0x54,0x68,0x72,0x65,0x61,0x64,0x49,0x44,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x66,0x65,0x74,0x63,0x68,0x45,0x64,0x67,0x65,0x28,
0x69,0x6e,0x74,0x32,0x20,0x63,0x6f,0x6f,0x72,0x64,0x29,0x0a,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x74,0x65,0x78,0x5f,0x65,0x64,0x67,
0x65,0x73,0x2e,0x4c,0x6f,0x61,0x64,0x28,0x69,0x6e,0x74,0x33,0x28,0x63,0x6c,0x61,
0x6d,0x70,0x28,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x69,0x6e,0x74,0x32,0x28,0x30,
0x2c,0x20,0x30,0x29,0x2c,0x20,0x67,0x74,0x61,0x6f,0x5f,0x56,0x69,0x65,0x77,0x70,
0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x69,0x6e,0x74,0x32,0x28,0x31,
0x2c,0x20,0x31,0x29,0x29,0x2c,0x20,0x30,0x29,0x29,0x2e,0x78,0x3b,0x0a,0x7d,0x0a,
0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x66,0x65,0x74,0x63,0x68,0x41,0x4f,0x28,0x69,
0x6e,0x74,0x32,0x20,0x63,0x6f,0x6f,0x72,0x64,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x74,0x65,0x78,0x5f,0x6e,0x6f,0x69,0x73,
0x79,0x5f,0x61,0x6f,0x2e,0x4c,0x6f,0x61,0x64,0x28,0x69,0x6e,0x74,0x33,0x28,0x63,
0x6c,0x61,0x6d,0x70,0x28,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x69,0x6e,0x74,0x32,
0x28,0x30,0x2c,0x20,0x30,0x29,0x2c,0x20,0x67,0x74,0x61,0x6f,0x5f,0x56,0x69,0x65,
0x77,0x70,0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x69,0x6e,0x74,0x32,
0x28,0x31,0x2c,0x20,0x31,0x29,0x29,0x2c,0x20,0x30,0x29,0x29,0x2e,0x78,0x3b,0x0a,
0x7d,0x0a,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,
0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x63,0x6b,0x65,0x64,0x5f,0x76,0x61,0x6c,0x29,0x0a,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x75,0x69,0x6e,0x74,0x20,0x5f,0x34,0x34,0x20,0x3d,0x20,
0x75,0x69,0x6e,0x74,0x28,0x70,0x61,0x63,0x6b,0x65,0x64,0x5f,0x76,0x61,0x6c,0x20,
0x2a,0x20,0x32,0x35,0x35,0x2e,0x35,0x66,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x72,
0x65,0x74,0x75,0x72,0x6e,0x20,0x63,0x6c,0x61,0x6d,0x70,0x28,0x66,0x6c,0x6f,0x61,
0x74,0x34,0x28,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,
0x20,0x75,0x69,0x6e,0x74,0x28,0x36,0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,
0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,
0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x66,0x2c,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,
0x6e,0x74,0x28,0x34,0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,
0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,
0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x66,0x2c,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,0x6e,0x74,0x28,
0x32,0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,
0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,
0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x66,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x28,
0x28,0x5f,0x34,0x34,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,
0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,
0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x66,0x29,0x2c,0x20,0x30,0x2e,0x30,
0x66,0x2e,0x78,0x78,0x78,0x78,0x2c,0x20,0x31,0x2e,0x30,0x66,0x2e,0x78,0x78,0x78,
0x78,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x76,0x6f,0x69,0x64,0x20,0x58,0x65,0x47,0x54,
0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x73,0x73,0x61,0x6f,0x56,0x61,0x6c,0x75,0x65,0x2c,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x65,0x64,0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x2c,0x20,0x69,
0x6e,0x6f,0x75,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x73,0x75,0x6d,0x2c,0x20,
0x69,0x6e,0x6f,0x75,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x73,0x75,0x6d,0x57,
0x65,0x69,0x67,0x68,0x74,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x73,0x75,0x6d,
0x20,0x2b,0x3d,0x20,0x28,0x65,0x64,0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x20,0x2a,
0x20,0x73,0x73,0x61,0x6f,0x56,0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x73,0x75,0x6d,0x57,0x65,0x69,0x67,0x68,0x74,0x20,0x2b,0x3d,0x20,0x65,0x64,
0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x3b,0x0a,0x7d,0x0a,0x0a,0x76,0x6f,0x69,0x64,
0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x28,0x69,
0x6e,0x74,0x32,0x20,0x70,0x69,0x78,0x43,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x56,0x61,0x6c,0x75,0x65,0x2c,
0x20,0x62,0x6f,0x6f,0x6c,0x20,0x66,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,0x79,
0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x6f,0x75,0x74,0x5f,0x61,0x6f,0x5b,0x70,
0x69,0x78,0x43,0x6f,0x6f,0x72,0x64,0x5d,0x20,0x3d,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x34,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x56,0x61,0x6c,0x75,0x65,0x20,0x2a,0x20,
0x28,0x66,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,0x79,0x20,0x3f,0x20,0x31,0x2e,
0x35,0x66,0x20,0x3a,0x20,0x31,0x2e,0x30,0x66,0x29,0x2c,0x20,0x30,0x2e,0x30,0x66,
0x2c,0x20,0x30,0x2e,0x30,0x66,0x2c,0x20,0x30,0x2e,0x30,0x66,0x29,0x2e,0x78,0x3b,
0x0a,0x7d,0x0a,0x0a,0x76,0x6f,0x69,0x64,0x20,0x63,0x6f,0x6d,0x70,0x5f,0x6d,0x61,
0x69,0x6e,0x28,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,
0x5f,0x31,0x36,0x38,0x20,0x3d,0x20,0x69,0x6e,0x74,0x32,0x28,0x67,0x6c,0x5f,0x47,
0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,
0x44,0x2e,0x78,0x79,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,
0x5f,0x31,0x37,0x36,0x20,0x3d,0x20,0x69,0x6e,0x74,0x32,0x28,0x5f,0x31,0x36,0x38,
0x2e,0x78,0x20,0x2a,0x20,0x32,0x2c,0x20,0x5f,0x31,0x36,0x38,0x2e,0x79,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x61,0x6e,0x79,0x28,0x62,0x6f,0x6f,
0x6c,0x32,0x28,0x5f,0x31,0x37,0x36,0x2e,0x78,0x20,0x3e,0x3d,0x20,0x67,0x74,0x61,
0x6f,0x5f,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x2e,0x78,
0x2c,0x20,0x5f,0x31,0x37,0x36,0x2e,0x79,0x20,0x3e,0x3d,0x20,0x67,0x74,0x61,0x6f,
0x5f,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x2e,0x79,0x29,
0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,
0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x31,0x39,0x33,0x20,0x3d,0x20,0x5f,
0x31,0x38,0x39,0x5f,0x46,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,0x79,0x20,0x21,
0x3d,0x20,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,
0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x31,0x39,
0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x5f,0x31,0x39,0x36,0x20,0x3d,0x20,0x67,0x74,0x61,0x6f,0x5f,0x44,0x65,0x6e,
0x6f,0x69,0x73,0x65,0x42,0x6c,0x75,0x72,0x42,0x65,0x74,0x61,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x65,0x6c,0x73,0x65,0x0a,0x20,0x20,0x20,
0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x36,0x20,
0x3d,0x20,0x67,0x74,0x61,0x6f,0x5f,0x44,0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,
0x75,0x72,0x42,0x65,0x74,0x61,0x20,0x2a,0x20,0x30,0x2e,0x32,0x30,0x30,0x30,0x30,
0x30,0x30,0x30,0x32,0x39,0x38,0x30,0x32,0x33,0x32,0x32,0x33,0x38,0x37,0x36,0x39,
0x35,0x33,0x31,0x32,0x35,0x66,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x34,
0x5d,0x5b,0x33,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x61,0x6f,0x5b,0x34,0x5d,0x5b,0x33,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6f,
0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x20,0x3d,0x20,0x30,0x3b,0x20,0x69,0x20,
0x3c,0x20,0x34,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,
0x20,0x6a,0x20,0x3d,0x20,0x30,0x3b,0x20,0x6a,0x20,0x3c,0x20,0x33,0x3b,0x20,0x6a,
0x2b,0x2b,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x5f,
0x32,0x33,0x32,0x20,0x3d,0x20,0x5f,0x31,0x37,0x36,0x20,0x2b,0x20,0x69,0x6e,0x74,
0x32,0x28,0x69,0x20,0x2d,0x20,0x31,0x2c,0x20,0x6a,0x20,0x2d,0x20,0x31,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,
0x32,0x20,0x70,0x61,0x72,0x61,0x6d,0x20,0x3d,0x20,0x5f,0x32,0x33,0x32,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x64,0x67,0x65,
0x73,0x4e,0x5b,0x69,0x5d,0x5b,0x6a,0x5d,0x20,0x3d,0x20,0x66,0x65,0x74,0x63,0x68,
0x45,0x64,0x67,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x20,0x3d,0x20,0x5f,0x32,0x33,0x32,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x6f,0x5b,0x69,0x5d,0x5b,
0x6a,0x5d,0x20,0x3d,0x20,0x66,0x65,0x74,0x63,0x68,0x41,0x4f,0x28,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,
0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6f,0x72,0x20,0x28,
0x69,0x6e,0x74,0x20,0x73,0x69,0x64,0x65,0x20,0x3d,0x20,0x30,0x3b,0x20,0x73,0x69,
0x64,0x65,0x20,0x3c,0x20,0x32,0x3b,0x20,0x73,0x69,0x64,0x65,0x2b,0x2b,0x29,0x0a,
0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,
0x74,0x32,0x20,0x5f,0x32,0x36,0x37,0x20,0x3d,0x20,0x5f,0x31,0x37,0x36,0x20,0x2b,
0x20,0x69,0x6e,0x74,0x32,0x28,0x73,0x69,0x64,0x65,0x2c,0x20,0x30,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x36,0x37,
0x2e,0x78,0x20,0x3e,0x3d,0x20,0x67,0x74,0x61,0x6f,0x5f,0x56,0x69,0x65,0x77,0x70,
0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x2e,0x78,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x62,0x72,0x65,0x61,0x6b,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x32,
0x37,0x38,0x20,0x3d,0x20,0x31,0x20,0x2b,0x20,0x73,0x69,0x64,0x65,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x32,0x38,0x34,0x20,
0x3d,0x20,0x73,0x69,0x64,0x65,0x20,0x2b,0x20,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,0x38,0x5d,
0x5b,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x34,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x20,
0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,
0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x33,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x73,0x69,
0x64,0x65,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x32,0x39,0x36,0x20,0x3d,0x20,0x58,0x65,
0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,
0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,
0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,
0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x34,0x20,0x5f,0x33,0x30,0x32,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,
0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x34,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x35,0x20,0x3d,0x20,0x65,
0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,
0x33,0x30,0x38,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,
0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x35,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x36,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,
0x4e,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,0x31,0x34,0x20,
0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,
0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x36,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,
0x32,0x34,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x20,0x5f,0x33,0x32,0x35,0x20,0x3d,0x20,0x5f,0x33,0x32,0x34,0x20,0x2a,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x34,0x28,0x5f,0x32,0x39,0x36,0x2e,0x79,0x2c,0x20,0x5f,0x33,
0x30,0x32,0x2e,0x78,0x2c,0x20,0x5f,0x33,0x30,0x38,0x2e,0x77,0x2c,0x20,0x5f,0x33,
0x31,0x34,0x2e,0x7a,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,0x34,0x31,0x20,0x3d,0x20,0x63,0x6c,0x61,
0x6d,0x70,0x28,0x5f,0x33,0x32,0x35,0x20,0x2b,0x20,0x28,0x63,0x6c,0x61,0x6d,0x70,
0x28,0x31,0x2e,0x35,0x66,0x20,0x2d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x33,0x32,0x35,
0x2c,0x20,0x31,0x2e,0x30,0x66,0x2e,0x78,0x78,0x78,0x78,0x29,0x2c,0x20,0x30,0x2e,
0x30,0x66,0x2c,0x20,0x31,0x2e,0x30,0x66,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,
0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,
0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x66,0x29,0x2e,0x78,0x78,0x78,0x78,0x2c,0x20,
0x30,0x2e,0x30,0x66,0x2e,0x78,0x78,0x78,0x78,0x2c,0x20,0x31,0x2e,0x30,0x66,0x2e,
0x78,0x78,0x78,0x78,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,
0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x20,0x3d,0x20,0x5f,0x33,0x34,
0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x5f,0x33,0x34,0x35,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x78,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,
0x35,0x30,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x7a,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,0x36,0x33,0x20,
0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,0x37,0x31,0x20,0x3d,0x20,0x5f,
0x33,0x34,0x31,0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x37,0x20,0x3d,0x20,0x61,
0x6f,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x38,0x20,0x3d,0x20,0x5f,0x33,0x34,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x39,0x20,
0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x31,0x5d,0x20,0x2a,0x20,
0x5f,0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x30,0x20,0x3d,0x20,0x5f,
0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,
0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x37,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x38,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x39,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,
0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x31,0x20,0x3d,0x20,0x61,0x6f,0x5b,
0x5f,0x32,0x38,0x34,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x32,
0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x2e,0x79,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x33,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x34,0x20,0x3d,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x31,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,
0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x32,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x33,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x34,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x35,0x20,
0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x31,0x36,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,
0x52,0x54,0x42,0x2e,0x7a,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x37,0x20,0x3d,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x38,
0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x34,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,
0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x35,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x36,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x37,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x38,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x31,0x39,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x37,0x38,0x5d,
0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x30,0x20,0x3d,0x20,0x65,0x64,
0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x32,0x31,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x37,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x32,0x32,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,
0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,
0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x31,0x39,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x30,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x33,0x20,0x3d,0x20,0x61,0x6f,
0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,
0x34,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,
0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x66,0x20,
0x2a,0x20,0x28,0x28,0x5f,0x33,0x34,0x35,0x20,0x2a,0x20,0x5f,0x32,0x39,0x36,0x2e,
0x7a,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x35,0x30,0x20,0x2a,0x20,0x5f,0x33,0x30,
0x38,0x2e,0x78,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x35,0x20,0x3d,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x36,
0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x32,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,
0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x33,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x34,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x35,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x36,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x32,0x37,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x38,0x34,0x5d,
0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x38,0x20,0x3d,0x20,0x30,0x2e,
0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,
0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x66,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,
0x35,0x30,0x20,0x2a,0x20,0x5f,0x33,0x30,0x38,0x2e,0x79,0x29,0x20,0x2b,0x20,0x28,
0x5f,0x33,0x36,0x33,0x20,0x2a,0x20,0x5f,0x33,0x30,0x32,0x2e,0x7a,0x29,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x30,0x20,0x3d,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x32,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,
0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x37,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x38,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x31,0x20,
0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x33,0x32,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,
0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,
0x32,0x35,0x66,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,0x37,0x31,0x20,0x2a,0x20,0x5f,
0x33,0x31,0x34,0x2e,0x78,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x34,0x35,0x20,0x2a,
0x20,0x5f,0x32,0x39,0x36,0x2e,0x77,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,
0x33,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x33,0x34,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x30,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,
0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x32,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x33,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x35,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,
0x32,0x38,0x34,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x36,0x20,
0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,0x32,0x30,
0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x66,0x20,0x2a,0x20,
0x28,0x28,0x5f,0x33,0x36,0x33,0x20,0x2a,0x20,0x5f,0x33,0x30,0x32,0x2e,0x77,0x29,
0x20,0x2b,0x20,0x28,0x5f,0x33,0x37,0x31,0x20,0x2a,0x20,0x5f,0x33,0x31,0x34,0x2e,
0x79,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x37,0x20,0x3d,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,0x20,0x3d,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,
0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x35,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x36,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x37,
0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,0x29,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x39,0x20,0x3d,0x20,0x5f,0x32,0x36,0x37,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,
0x30,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x37,0x20,0x2f,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x62,0x6f,0x6f,0x6c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x31,0x20,0x3d,
0x20,0x5f,0x31,0x39,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,
0x65,0x47,0x54,0x41,0x4f,0x5f,0x4f,0x75,0x74,0x70,0x75,0x74,0x28,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x33,0x39,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x30,0x2c,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x7d,0x0a,0x0a,0x5b,0x6e,0x75,0x6d,0x74,0x68,0x72,0x65,0x61,0x64,0x73,
0x28,0x38,0x2c,0x20,0x38,0x2c,0x20,0x31,0x29,0x5d,0x0a,0x76,0x6f,0x69,0x64,0x20,
0x6d,0x61,0x69,0x6e,0x28,0x53,0x50,0x49,0x52,0x56,0x5f,0x43,0x72,0x6f,0x73,0x73,
0x5f,0x49,0x6e,0x70,0x75,0x74,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,
0x75,0x74,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x67,0x6c,0x5f,0x47,0x6c,0x6f,
0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x44,0x20,
0x3d,0x20,0x73,0x74,0x61,0x67,0x65,0x5f,0x69,0x6e,0x70,0x75,0x74,0x2e,0x67,0x6c,
0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,
0x6e,0x49,0x44,0x3b,0x0a,0x20,0x20,0x20,0x20,0x63,0x6f,0x6d,0x70,0x5f,0x6d,0x61,
0x69,0x6e,0x28,0x29,0x3b,0x0a,0x7d,0x0a,0x00,
};
/*
#pragma clang diagnostic ignored "-Wmissing-prototypes"
#pragma clang diagnostic ignored "-Wmissing-braces"
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
template<typename T, size_t Num>
struct spvUnsafeArray
{
T elements[Num ? Num : 1];
thread T& operator [] (size_t pos) thread
{
return elements[pos];
}
constexpr const thread T& operator [] (size_t pos) const thread
{
return elements[pos];
}
device T& operator [] (size_t pos) device
{
return elements[pos];
}
constexpr const device T& operator [] (size_t pos) const device
{
return elements[pos];
}
constexpr const constant T& operator [] (size_t pos) const constant
{
return elements[pos];
}
threadgroup T& operator [] (size_t pos) threadgroup
{
return elements[pos];
}
constexpr const threadgroup T& operator [] (size_t pos) const threadgroup
{
return elements[pos];
}
};
struct ub_gtao
{
int2 ViewportSize;
float DenoiseBlurBeta;
};
struct ub_denoise
{
int FinalApply;
int _Pad0;
int _Pad1;
int _Pad2;
};
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(8u, 8u, 1u);
static inline __attribute__((always_inline))
float fetchEdge(thread const int2& coord, constant ub_gtao& gtao, texture2d<float> tex_edges, sampler smp_point_clamp)
{
return tex_edges.read(uint2(clamp(coord, int2(0), gtao.ViewportSize - int2(1))), 0).x;
}
static inline __attribute__((always_inline))
float fetchAO(thread const int2& coord, constant ub_gtao& gtao, sampler smp_point_clamp, texture2d<float> tex_noisy_ao)
{
return tex_noisy_ao.read(uint2(clamp(coord, int2(0), gtao.ViewportSize - int2(1))), 0).x;
}
static inline __attribute__((always_inline))
float4 XeGTAO_UnpackEdges(thread const float& packed_val)
{
uint _44 = uint(packed_val * 255.5);
return fast::clamp(float4(float((_44 >> uint(6)) & 3u) * 0.3333333432674407958984375, float((_44 >> uint(4)) & 3u) * 0.3333333432674407958984375, float((_44 >> uint(2)) & 3u) * 0.3333333432674407958984375, float((_44) & 3u) * 0.3333333432674407958984375), float4(0.0), float4(1.0));
}
static inline __attribute__((always_inline))
void XeGTAO_AddSample(thread const float& ssaoValue, thread const float& edgeValue, thread float& sum, thread float& sumWeight)
{
sum += (edgeValue * ssaoValue);
sumWeight += edgeValue;
}
static inline __attribute__((always_inline))
void XeGTAO_Output(thread const int2& pixCoord, thread const float& outputValue, thread const bool& finalApply, texture2d<float, access::write> out_ao)
{
out_ao.write(float4(outputValue * (finalApply ? 1.5 : 1.0), 0.0, 0.0, 0.0), uint2(pixCoord));
}
kernel void main0(constant ub_gtao& gtao [[buffer(0)]], constant ub_denoise& _189 [[buffer(1)]], texture2d<float, access::write> out_ao [[texture(0)]], texture2d<float> tex_edges [[texture(1)]], texture2d<float> tex_noisy_ao [[texture(2)]], sampler smp_point_clamp [[sampler(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
{
int2 _168 = int2(gl_GlobalInvocationID.xy);
int2 _176 = int2(_168.x * 2, _168.y);
if (any(_176 >= gtao.ViewportSize))
{
return;
}
bool _193 = _189.FinalApply != 0;
float _196;
if (_193)
{
_196 = gtao.DenoiseBlurBeta;
}
else
{
_196 = gtao.DenoiseBlurBeta * 0.20000000298023223876953125;
}
spvUnsafeArray<spvUnsafeArray<float, 3>, 4> edgesN;
spvUnsafeArray<spvUnsafeArray<float, 3>, 4> ao;
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 3; j++)
{
int2 _232 = _176 + int2(i - 1, j - 1);
int2 param = _232;
edgesN[i][j] = fetchEdge(param, gtao, tex_edges, smp_point_clamp);
int2 param_1 = _232;
ao[i][j] = fetchAO(param_1, gtao, smp_point_clamp, tex_noisy_ao);
}
}
for (int side = 0; side < 2; side++)
{
int2 _267 = _176 + int2(side, 0);
if (_267.x >= gtao.ViewportSize.x)
{
break;
}
int _278 = 1 + side;
int _284 = side + 2;
float param_2 = edgesN[_278][1];
float4 edgesC_LRTB = XeGTAO_UnpackEdges(param_2);
float param_3 = edgesN[side][1];
float4 _296 = XeGTAO_UnpackEdges(param_3);
float param_4 = edgesN[_284][1];
float4 _302 = XeGTAO_UnpackEdges(param_4);
float param_5 = edgesN[_278][0];
float4 _308 = XeGTAO_UnpackEdges(param_5);
float param_6 = edgesN[_278][2];
float4 _314 = XeGTAO_UnpackEdges(param_6);
float4 _324 = edgesC_LRTB;
float4 _325 = _324 * float4(_296.y, _302.x, _308.w, _314.z);
float4 _341 = fast::clamp(_325 + float4(fast::clamp(1.5 - dot(_325, float4(1.0)), 0.0, 1.0) * 0.3333333432674407958984375), float4(0.0), float4(1.0));
edgesC_LRTB = _341;
float _345 = _341.x;
float _350 = _341.z;
float _363 = _341.y;
float _371 = _341.w;
float param_7 = ao[side][1];
float param_8 = _345;
float param_9 = ao[_278][1] * _196;
float param_10 = _196;
XeGTAO_AddSample(param_7, param_8, param_9, param_10);
float param_11 = ao[_284][1];
float param_12 = edgesC_LRTB.y;
float param_13 = param_9;
float param_14 = param_10;
XeGTAO_AddSample(param_11, param_12, param_13, param_14);
float param_15 = ao[_278][0];
float param_16 = edgesC_LRTB.z;
float param_17 = param_13;
float param_18 = param_14;
XeGTAO_AddSample(param_15, param_16, param_17, param_18);
float param_19 = ao[_278][2];
float param_20 = edgesC_LRTB.w;
float param_21 = param_17;
float param_22 = param_18;
XeGTAO_AddSample(param_19, param_20, param_21, param_22);
float param_23 = ao[side][0];
float param_24 = 0.425000011920928955078125 * ((_345 * _296.z) + (_350 * _308.x));
float param_25 = param_21;
float param_26 = param_22;
XeGTAO_AddSample(param_23, param_24, param_25, param_26);
float param_27 = ao[_284][0];
float param_28 = 0.425000011920928955078125 * ((_350 * _308.y) + (_363 * _302.z));
float param_29 = param_25;
float param_30 = param_26;
XeGTAO_AddSample(param_27, param_28, param_29, param_30);
float param_31 = ao[side][2];
float param_32 = 0.425000011920928955078125 * ((_371 * _314.x) + (_345 * _296.w));
float param_33 = param_29;
float param_34 = param_30;
XeGTAO_AddSample(param_31, param_32, param_33, param_34);
float param_35 = ao[_284][2];
float param_36 = 0.425000011920928955078125 * ((_363 * _302.w) + (_371 * _314.y));
float param_37 = param_33;
float param_38 = param_34;
XeGTAO_AddSample(param_35, param_36, param_37, param_38);
int2 param_39 = _267;
float param_40 = param_37 / param_38;
bool param_41 = _193;
XeGTAO_Output(param_39, param_40, param_41, out_ao);
}
}
*/
static const uint8_t gtao_denoise_cs_source_metal_macos[7124] = {
0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,0x63,0x6c,0x61,0x6e,0x67,0x20,0x64,0x69,
0x61,0x67,0x6e,0x6f,0x73,0x74,0x69,0x63,0x20,0x69,0x67,0x6e,0x6f,0x72,0x65,0x64,
0x20,0x22,0x2d,0x57,0x6d,0x69,0x73,0x73,0x69,0x6e,0x67,0x2d,0x70,0x72,0x6f,0x74,
0x6f,0x74,0x79,0x70,0x65,0x73,0x22,0x0a,0x23,0x70,0x72,0x61,0x67,0x6d,0x61,0x20,
0x63,0x6c,0x61,0x6e,0x67,0x20,0x64,0x69,0x61,0x67,0x6e,0x6f,0x73,0x74,0x69,0x63,
0x20,0x69,0x67,0x6e,0x6f,0x72,0x65,0x64,0x20,0x22,0x2d,0x57,0x6d,0x69,0x73,0x73,
0x69,0x6e,0x67,0x2d,0x62,0x72,0x61,0x63,0x65,0x73,0x22,0x0a,0x0a,0x23,0x69,0x6e,
0x63,0x6c,0x75,0x64,0x65,0x20,0x3c,0x6d,0x65,0x74,0x61,0x6c,0x5f,0x73,0x74,0x64,
0x6c,0x69,0x62,0x3e,0x0a,0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x3c,0x73,
0x69,0x6d,0x64,0x2f,0x73,0x69,0x6d,0x64,0x2e,0x68,0x3e,0x0a,0x0a,0x75,0x73,0x69,
0x6e,0x67,0x20,0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,0x20,0x6d,0x65,0x74,
0x61,0x6c,0x3b,0x0a,0x0a,0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x3c,0x74,0x79,
0x70,0x65,0x6e,0x61,0x6d,0x65,0x20,0x54,0x2c,0x20,0x73,0x69,0x7a,0x65,0x5f,0x74,
0x20,0x4e,0x75,0x6d,0x3e,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x73,0x70,0x76,
0x55,0x6e,0x73,0x61,0x66,0x65,0x41,0x72,0x72,0x61,0x79,0x0a,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x54,0x20,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x4e,0x75,0x6d,
0x20,0x3f,0x20,0x4e,0x75,0x6d,0x20,0x3a,0x20,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x0a,0x20,0x20,0x20,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x54,0x26,0x20,
0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,0x20,0x5b,0x5d,0x20,0x28,0x73,0x69,0x7a,
0x65,0x5f,0x74,0x20,0x70,0x6f,0x73,0x29,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x0a,
0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,
0x74,0x75,0x72,0x6e,0x20,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,
0x73,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x63,0x6f,
0x6e,0x73,0x74,0x65,0x78,0x70,0x72,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x68,
0x72,0x65,0x61,0x64,0x20,0x54,0x26,0x20,0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,
0x20,0x5b,0x5d,0x20,0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x70,0x6f,0x73,0x29,
0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x0a,0x20,0x20,
0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,
0x72,0x6e,0x20,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,0x73,0x5d,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x0a,0x20,0x20,0x20,
0x20,0x64,0x65,0x76,0x69,0x63,0x65,0x20,0x54,0x26,0x20,0x6f,0x70,0x65,0x72,0x61,
0x74,0x6f,0x72,0x20,0x5b,0x5d,0x20,0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x70,
0x6f,0x73,0x29,0x20,0x64,0x65,0x76,0x69,0x63,0x65,0x0a,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,
0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,0x73,0x5d,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x63,0x6f,0x6e,0x73,0x74,0x65,0x78,
0x70,0x72,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x64,0x65,0x76,0x69,0x63,0x65,0x20,
0x54,0x26,0x20,0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,0x20,0x5b,0x5d,0x20,0x28,
0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x70,0x6f,0x73,0x29,0x20,0x63,0x6f,0x6e,0x73,
0x74,0x20,0x64,0x65,0x76,0x69,0x63,0x65,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x65,0x6c,
0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,0x73,0x5d,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x0a,0x20,0x20,0x20,0x20,0x63,0x6f,0x6e,0x73,
0x74,0x65,0x78,0x70,0x72,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x63,0x6f,0x6e,0x73,
0x74,0x61,0x6e,0x74,0x20,0x54,0x26,0x20,0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,
0x20,0x5b,0x5d,0x20,0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x70,0x6f,0x73,0x29,
0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x0a,
0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,
0x74,0x75,0x72,0x6e,0x20,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,
0x73,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x0a,0x20,
0x20,0x20,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x67,0x72,0x6f,0x75,0x70,0x20,0x54,
0x26,0x20,0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,0x20,0x5b,0x5d,0x20,0x28,0x73,
0x69,0x7a,0x65,0x5f,0x74,0x20,0x70,0x6f,0x73,0x29,0x20,0x74,0x68,0x72,0x65,0x61,
0x64,0x67,0x72,0x6f,0x75,0x70,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x65,0x6c,0x65,0x6d,
0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,0x73,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,
0x0a,0x20,0x20,0x20,0x20,0x63,0x6f,0x6e,0x73,0x74,0x65,0x78,0x70,0x72,0x20,0x63,
0x6f,0x6e,0x73,0x74,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x67,0x72,0x6f,0x75,0x70,
0x20,0x54,0x26,0x20,0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,0x20,0x5b,0x5d,0x20,
0x28,0x73,0x69,0x7a,0x65,0x5f,0x74,0x20,0x70,0x6f,0x73,0x29,0x20,0x63,0x6f,0x6e,
0x73,0x74,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x67,0x72,0x6f,0x75,0x70,0x0a,0x20,
0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,
0x75,0x72,0x6e,0x20,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73,0x5b,0x70,0x6f,0x73,
0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,
0x75,0x63,0x74,0x20,0x75,0x62,0x5f,0x67,0x74,0x61,0x6f,0x0a,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,0x74,0x53,
0x69,0x7a,0x65,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x44,
0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,0x75,0x72,0x42,0x65,0x74,0x61,0x3b,0x0a,
0x7d,0x3b,0x0a,0x0a,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x75,0x62,0x5f,0x64,0x65,
0x6e,0x6f,0x69,0x73,0x65,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,
0x46,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x69,0x6e,0x74,0x20,0x5f,0x50,0x61,0x64,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,
0x6e,0x74,0x20,0x5f,0x50,0x61,0x64,0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,
0x74,0x20,0x5f,0x50,0x61,0x64,0x32,0x3b,0x0a,0x7d,0x3b,0x0a,0x0a,0x63,0x6f,0x6e,
0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x69,0x6e,0x74,0x33,0x20,0x67,0x6c,0x5f,0x57,
0x6f,0x72,0x6b,0x47,0x72,0x6f,0x75,0x70,0x53,0x69,0x7a,0x65,0x20,0x5b,0x5b,0x6d,
0x61,0x79,0x62,0x65,0x5f,0x75,0x6e,0x75,0x73,0x65,0x64,0x5d,0x5d,0x20,0x3d,0x20,
0x75,0x69,0x6e,0x74,0x33,0x28,0x38,0x75,0x2c,0x20,0x38,0x75,0x2c,0x20,0x31,0x75,
0x29,0x3b,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x69,0x6e,0x6c,0x69,0x6e,
0x65,0x20,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,
0x28,0x61,0x6c,0x77,0x61,0x79,0x73,0x5f,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x29,0x29,
0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x66,0x65,0x74,0x63,0x68,0x45,0x64,0x67,0x65,
0x28,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,0x69,0x6e,
0x74,0x32,0x26,0x20,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x63,0x6f,0x6e,0x73,0x74,
0x61,0x6e,0x74,0x20,0x75,0x62,0x5f,0x67,0x74,0x61,0x6f,0x26,0x20,0x67,0x74,0x61,
0x6f,0x2c,0x20,0x74,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x64,0x3c,0x66,0x6c,0x6f,
0x61,0x74,0x3e,0x20,0x74,0x65,0x78,0x5f,0x65,0x64,0x67,0x65,0x73,0x2c,0x20,0x73,
0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x73,0x6d,0x70,0x5f,0x70,0x6f,0x69,0x6e,0x74,
0x5f,0x63,0x6c,0x61,0x6d,0x70,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x72,0x65,
0x74,0x75,0x72,0x6e,0x20,0x74,0x65,0x78,0x5f,0x65,0x64,0x67,0x65,0x73,0x2e,0x72,
0x65,0x61,0x64,0x28,0x75,0x69,0x6e,0x74,0x32,0x28,0x63,0x6c,0x61,0x6d,0x70,0x28,
0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x69,0x6e,0x74,0x32,0x28,0x30,0x29,0x2c,0x20,
0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,0x74,0x53,0x69,0x7a,
0x65,0x20,0x2d,0x20,0x69,0x6e,0x74,0x32,0x28,0x31,0x29,0x29,0x29,0x2c,0x20,0x30,
0x29,0x2e,0x78,0x3b,0x0a,0x7d,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x69,
0x6e,0x6c,0x69,0x6e,0x65,0x20,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,
0x65,0x5f,0x5f,0x28,0x28,0x61,0x6c,0x77,0x61,0x79,0x73,0x5f,0x69,0x6e,0x6c,0x69,
0x6e,0x65,0x29,0x29,0x0a,0x66,0x6c,0x6f,0x61,0x74,0x20,0x66,0x65,0x74,0x63,0x68,
0x41,0x4f,0x28,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,
0x69,0x6e,0x74,0x32,0x26,0x20,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x63,0x6f,0x6e,
0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x62,0x5f,0x67,0x74,0x61,0x6f,0x26,0x20,0x67,
0x74,0x61,0x6f,0x2c,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x73,0x6d,0x70,
0x5f,0x70,0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,0x2c,0x20,0x74,0x65,
0x78,0x74,0x75,0x72,0x65,0x32,0x64,0x3c,0x66,0x6c,0x6f,0x61,0x74,0x3e,0x20,0x74,
0x65,0x78,0x5f,0x6e,0x6f,0x69,0x73,0x79,0x5f,0x61,0x6f,0x29,0x0a,0x7b,0x0a,0x20,
0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x74,0x65,0x78,0x5f,0x6e,0x6f,
0x69,0x73,0x79,0x5f,0x61,0x6f,0x2e,0x72,0x65,0x61,0x64,0x28,0x75,0x69,0x6e,0x74,
0x32,0x28,0x63,0x6c,0x61,0x6d,0x70,0x28,0x63,0x6f,0x6f,0x72,0x64,0x2c,0x20,0x69,
0x6e,0x74,0x32,0x28,0x30,0x29,0x2c,0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,
0x77,0x70,0x6f,0x72,0x74,0x53,0x69,0x7a,0x65,0x20,0x2d,0x20,0x69,0x6e,0x74,0x32,
0x28,0x31,0x29,0x29,0x29,0x2c,0x20,0x30,0x29,0x2e,0x78,0x3b,0x0a,0x7d,0x0a,0x0a,
0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x20,0x5f,0x5f,
0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,0x28,0x61,0x6c,0x77,
0x61,0x79,0x73,0x5f,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x29,0x29,0x0a,0x66,0x6c,0x6f,
0x61,0x74,0x34,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,
0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,
0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x26,0x20,0x70,0x61,0x63,0x6b,0x65,
0x64,0x5f,0x76,0x61,0x6c,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x75,0x69,0x6e,
0x74,0x20,0x5f,0x34,0x34,0x20,0x3d,0x20,0x75,0x69,0x6e,0x74,0x28,0x70,0x61,0x63,
0x6b,0x65,0x64,0x5f,0x76,0x61,0x6c,0x20,0x2a,0x20,0x32,0x35,0x35,0x2e,0x35,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x66,0x61,0x73,
0x74,0x3a,0x3a,0x63,0x6c,0x61,0x6d,0x70,0x28,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,
0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,
0x6e,0x74,0x28,0x36,0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,
0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,
0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,0x37,0x35,0x2c,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x28,0x28,0x5f,0x34,0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,0x6e,0x74,0x28,0x34,
0x29,0x29,0x20,0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,
0x33,0x33,0x33,0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,0x38,
0x39,0x38,0x34,0x33,0x37,0x35,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,
0x34,0x34,0x20,0x3e,0x3e,0x20,0x75,0x69,0x6e,0x74,0x28,0x32,0x29,0x29,0x20,0x26,
0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,0x33,
0x37,0x35,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x28,0x28,0x5f,0x34,0x34,0x29,0x20,
0x26,0x20,0x33,0x75,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,
0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,
0x33,0x37,0x35,0x29,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x30,0x2e,0x30,
0x29,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x31,0x2e,0x30,0x29,0x29,0x3b,
0x0a,0x7d,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x69,0x6e,0x6c,0x69,0x6e,
0x65,0x20,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,0x5f,0x28,
0x28,0x61,0x6c,0x77,0x61,0x79,0x73,0x5f,0x69,0x6e,0x6c,0x69,0x6e,0x65,0x29,0x29,
0x0a,0x76,0x6f,0x69,0x64,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,
0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,
0x6e,0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x26,0x20,0x73,0x73,0x61,0x6f,0x56,
0x61,0x6c,0x75,0x65,0x2c,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,0x6e,
0x73,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x26,0x20,0x65,0x64,0x67,0x65,0x56,0x61,
0x6c,0x75,0x65,0x2c,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x26,0x20,0x73,0x75,0x6d,0x2c,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x26,0x20,0x73,0x75,0x6d,0x57,0x65,0x69,0x67,0x68,0x74,0x29,
0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x73,0x75,0x6d,0x20,0x2b,0x3d,0x20,0x28,0x65,
0x64,0x67,0x65,0x56,0x61,0x6c,0x75,0x65,0x20,0x2a,0x20,0x73,0x73,0x61,0x6f,0x56,
0x61,0x6c,0x75,0x65,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x75,0x6d,0x57,0x65,
0x69,0x67,0x68,0x74,0x20,0x2b,0x3d,0x20,0x65,0x64,0x67,0x65,0x56,0x61,0x6c,0x75,
0x65,0x3b,0x0a,0x7d,0x0a,0x0a,0x73,0x74,0x61,0x74,0x69,0x63,0x20,0x69,0x6e,0x6c,
0x69,0x6e,0x65,0x20,0x5f,0x5f,0x61,0x74,0x74,0x72,0x69,0x62,0x75,0x74,0x65,0x5f,
0x5f,0x28,0x28,0x61,0x6c,0x77,0x61,0x79,0x73,0x5f,0x69,0x6e,0x6c,0x69,0x6e,0x65,
0x29,0x29,0x0a,0x76,0x6f,0x69,0x64,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x4f,
0x75,0x74,0x70,0x75,0x74,0x28,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,0x6e,
0x73,0x74,0x20,0x69,0x6e,0x74,0x32,0x26,0x20,0x70,0x69,0x78,0x43,0x6f,0x6f,0x72,
0x64,0x2c,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,0x6e,0x73,0x74,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x26,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x56,0x61,0x6c,
0x75,0x65,0x2c,0x20,0x74,0x68,0x72,0x65,0x61,0x64,0x20,0x63,0x6f,0x6e,0x73,0x74,
0x20,0x62,0x6f,0x6f,0x6c,0x26,0x20,0x66,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,
0x79,0x2c,0x20,0x74,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x64,0x3c,0x66,0x6c,0x6f,
0x61,0x74,0x2c,0x20,0x61,0x63,0x63,0x65,0x73,0x73,0x3a,0x3a,0x77,0x72,0x69,0x74,
0x65,0x3e,0x20,0x6f,0x75,0x74,0x5f,0x61,0x6f,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,
0x20,0x6f,0x75,0x74,0x5f,0x61,0x6f,0x2e,0x77,0x72,0x69,0x74,0x65,0x28,0x66,0x6c,
0x6f,0x61,0x74,0x34,0x28,0x6f,0x75,0x74,0x70,0x75,0x74,0x56,0x61,0x6c,0x75,0x65,
0x20,0x2a,0x20,0x28,0x66,0x69,0x6e,0x61,0x6c,0x41,0x70,0x70,0x6c,0x79,0x20,0x3f,
0x20,0x31,0x2e,0x35,0x20,0x3a,0x20,0x31,0x2e,0x30,0x29,0x2c,0x20,0x30,0x2e,0x30,
0x2c,0x20,0x30,0x2e,0x30,0x2c,0x20,0x30,0x2e,0x30,0x29,0x2c,0x20,0x75,0x69,0x6e,
0x74,0x32,0x28,0x70,0x69,0x78,0x43,0x6f,0x6f,0x72,0x64,0x29,0x29,0x3b,0x0a,0x7d,
0x0a,0x0a,0x6b,0x65,0x72,0x6e,0x65,0x6c,0x20,0x76,0x6f,0x69,0x64,0x20,0x6d,0x61,
0x69,0x6e,0x30,0x28,0x63,0x6f,0x6e,0x73,0x74,0x61,0x6e,0x74,0x20,0x75,0x62,0x5f,
0x67,0x74,0x61,0x6f,0x26,0x20,0x67,0x74,0x61,0x6f,0x20,0x5b,0x5b,0x62,0x75,0x66,
0x66,0x65,0x72,0x28,0x30,0x29,0x5d,0x5d,0x2c,0x20,0x63,0x6f,0x6e,0x73,0x74,0x61,
0x6e,0x74,0x20,0x75,0x62,0x5f,0x64,0x65,0x6e,0x6f,0x69,0x73,0x65,0x26,0x20,0x5f,
0x31,0x38,0x39,0x20,0x5b,0x5b,0x62,0x75,0x66,0x66,0x65,0x72,0x28,0x31,0x29,0x5d,
0x5d,0x2c,0x20,0x74,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x64,0x3c,0x66,0x6c,0x6f,
0x61,0x74,0x2c,0x20,0x61,0x63,0x63,0x65,0x73,0x73,0x3a,0x3a,0x77,0x72,0x69,0x74,
0x65,0x3e,0x20,0x6f,0x75,0x74,0x5f,0x61,0x6f,0x20,0x5b,0x5b,0x74,0x65,0x78,0x74,
0x75,0x72,0x65,0x28,0x30,0x29,0x5d,0x5d,0x2c,0x20,0x74,0x65,0x78,0x74,0x75,0x72,
0x65,0x32,0x64,0x3c,0x66,0x6c,0x6f,0x61,0x74,0x3e,0x20,0x74,0x65,0x78,0x5f,0x65,
0x64,0x67,0x65,0x73,0x20,0x5b,0x5b,0x74,0x65,0x78,0x74,0x75,0x72,0x65,0x28,0x31,
0x29,0x5d,0x5d,0x2c,0x20,0x74,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x64,0x3c,0x66,
0x6c,0x6f,0x61,0x74,0x3e,0x20,0x74,0x65,0x78,0x5f,0x6e,0x6f,0x69,0x73,0x79,0x5f,
0x61,0x6f,0x20,0x5b,0x5b,0x74,0x65,0x78,0x74,0x75,0x72,0x65,0x28,0x32,0x29,0x5d,
0x5d,0x2c,0x20,0x73,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x73,0x6d,0x70,0x5f,0x70,
0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,0x20,0x5b,0x5b,0x73,0x61,0x6d,
0x70,0x6c,0x65,0x72,0x28,0x30,0x29,0x5d,0x5d,0x2c,0x20,0x75,0x69,0x6e,0x74,0x33,
0x20,0x67,0x6c,0x5f,0x47,0x6c,0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,
0x74,0x69,0x6f,0x6e,0x49,0x44,0x20,0x5b,0x5b,0x74,0x68,0x72,0x65,0x61,0x64,0x5f,
0x70,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x5f,0x69,0x6e,0x5f,0x67,0x72,0x69,0x64,
0x5d,0x5d,0x29,0x0a,0x7b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x5f,
0x31,0x36,0x38,0x20,0x3d,0x20,0x69,0x6e,0x74,0x32,0x28,0x67,0x6c,0x5f,0x47,0x6c,
0x6f,0x62,0x61,0x6c,0x49,0x6e,0x76,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x44,
0x2e,0x78,0x79,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x5f,
0x31,0x37,0x36,0x20,0x3d,0x20,0x69,0x6e,0x74,0x32,0x28,0x5f,0x31,0x36,0x38,0x2e,
0x78,0x20,0x2a,0x20,0x32,0x2c,0x20,0x5f,0x31,0x36,0x38,0x2e,0x79,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x61,0x6e,0x79,0x28,0x5f,0x31,0x37,0x36,
0x20,0x3e,0x3d,0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,
0x74,0x53,0x69,0x7a,0x65,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x72,0x65,0x74,0x75,0x72,0x6e,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x5f,0x31,0x39,
0x33,0x20,0x3d,0x20,0x5f,0x31,0x38,0x39,0x2e,0x46,0x69,0x6e,0x61,0x6c,0x41,0x70,
0x70,0x6c,0x79,0x20,0x21,0x3d,0x20,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x5f,0x31,0x39,0x36,0x3b,0x0a,0x20,0x20,0x20,0x20,0x69,0x66,
0x20,0x28,0x5f,0x31,0x39,0x33,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x5f,0x31,0x39,0x36,0x20,0x3d,0x20,0x67,0x74,0x61,
0x6f,0x2e,0x44,0x65,0x6e,0x6f,0x69,0x73,0x65,0x42,0x6c,0x75,0x72,0x42,0x65,0x74,
0x61,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,0x65,0x6c,0x73,
0x65,0x0a,0x20,0x20,0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x5f,0x31,0x39,0x36,0x20,0x3d,0x20,0x67,0x74,0x61,0x6f,0x2e,0x44,0x65,0x6e,0x6f,
0x69,0x73,0x65,0x42,0x6c,0x75,0x72,0x42,0x65,0x74,0x61,0x20,0x2a,0x20,0x30,0x2e,
0x32,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x32,0x39,0x38,0x30,0x32,0x33,0x32,0x32,
0x33,0x38,0x37,0x36,0x39,0x35,0x33,0x31,0x32,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x20,0x20,0x20,0x20,0x73,0x70,0x76,0x55,0x6e,0x73,0x61,0x66,0x65,0x41,
0x72,0x72,0x61,0x79,0x3c,0x73,0x70,0x76,0x55,0x6e,0x73,0x61,0x66,0x65,0x41,0x72,
0x72,0x61,0x79,0x3c,0x66,0x6c,0x6f,0x61,0x74,0x2c,0x20,0x33,0x3e,0x2c,0x20,0x34,
0x3e,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x3b,0x0a,0x20,0x20,0x20,0x20,0x73,0x70,
0x76,0x55,0x6e,0x73,0x61,0x66,0x65,0x41,0x72,0x72,0x61,0x79,0x3c,0x73,0x70,0x76,
0x55,0x6e,0x73,0x61,0x66,0x65,0x41,0x72,0x72,0x61,0x79,0x3c,0x66,0x6c,0x6f,0x61,
0x74,0x2c,0x20,0x33,0x3e,0x2c,0x20,0x34,0x3e,0x20,0x61,0x6f,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x69,0x20,0x3d,0x20,0x30,
0x3b,0x20,0x69,0x20,0x3c,0x20,0x34,0x3b,0x20,0x69,0x2b,0x2b,0x29,0x0a,0x20,0x20,
0x20,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6f,0x72,0x20,
0x28,0x69,0x6e,0x74,0x20,0x6a,0x20,0x3d,0x20,0x30,0x3b,0x20,0x6a,0x20,0x3c,0x20,
0x33,0x3b,0x20,0x6a,0x2b,0x2b,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,
0x74,0x32,0x20,0x5f,0x32,0x33,0x32,0x20,0x3d,0x20,0x5f,0x31,0x37,0x36,0x20,0x2b,
0x20,0x69,0x6e,0x74,0x32,0x28,0x69,0x20,0x2d,0x20,0x31,0x2c,0x20,0x6a,0x20,0x2d,
0x20,0x31,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x69,0x6e,0x74,0x32,0x20,0x70,0x61,0x72,0x61,0x6d,0x20,0x3d,0x20,0x5f,0x32,
0x33,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x69,0x5d,0x5b,0x6a,0x5d,0x20,0x3d,0x20,0x66,
0x65,0x74,0x63,0x68,0x45,0x64,0x67,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x2c,0x20,
0x67,0x74,0x61,0x6f,0x2c,0x20,0x74,0x65,0x78,0x5f,0x65,0x64,0x67,0x65,0x73,0x2c,
0x20,0x73,0x6d,0x70,0x5f,0x70,0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,0x70,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,
0x6e,0x74,0x32,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x20,0x3d,0x20,0x5f,0x32,
0x33,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x61,0x6f,0x5b,0x69,0x5d,0x5b,0x6a,0x5d,0x20,0x3d,0x20,0x66,0x65,0x74,0x63,0x68,
0x41,0x4f,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x2c,0x20,0x67,0x74,0x61,0x6f,
0x2c,0x20,0x73,0x6d,0x70,0x5f,0x70,0x6f,0x69,0x6e,0x74,0x5f,0x63,0x6c,0x61,0x6d,
0x70,0x2c,0x20,0x74,0x65,0x78,0x5f,0x6e,0x6f,0x69,0x73,0x79,0x5f,0x61,0x6f,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,0x20,
0x7d,0x0a,0x20,0x20,0x20,0x20,0x66,0x6f,0x72,0x20,0x28,0x69,0x6e,0x74,0x20,0x73,
0x69,0x64,0x65,0x20,0x3d,0x20,0x30,0x3b,0x20,0x73,0x69,0x64,0x65,0x20,0x3c,0x20,
0x32,0x3b,0x20,0x73,0x69,0x64,0x65,0x2b,0x2b,0x29,0x0a,0x20,0x20,0x20,0x20,0x7b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,0x5f,0x32,
0x36,0x37,0x20,0x3d,0x20,0x5f,0x31,0x37,0x36,0x20,0x2b,0x20,0x69,0x6e,0x74,0x32,
0x28,0x73,0x69,0x64,0x65,0x2c,0x20,0x30,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x69,0x66,0x20,0x28,0x5f,0x32,0x36,0x37,0x2e,0x78,0x20,0x3e,0x3d,
0x20,0x67,0x74,0x61,0x6f,0x2e,0x56,0x69,0x65,0x77,0x70,0x6f,0x72,0x74,0x53,0x69,
0x7a,0x65,0x2e,0x78,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x72,0x65,0x61,
0x6b,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x32,0x37,0x38,0x20,0x3d,0x20,
0x31,0x20,0x2b,0x20,0x73,0x69,0x64,0x65,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x69,0x6e,0x74,0x20,0x5f,0x32,0x38,0x34,0x20,0x3d,0x20,0x73,0x69,0x64,
0x65,0x20,0x2b,0x20,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x20,0x3d,0x20,0x65,
0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x65,
0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x20,0x3d,0x20,0x58,0x65,0x47,
0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x20,
0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x73,0x69,0x64,0x65,0x5d,0x5b,0x31,
0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x34,0x20,0x5f,0x32,0x39,0x36,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,
0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x33,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x20,0x3d,0x20,0x65,0x64,
0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,0x31,0x5d,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,
0x30,0x32,0x20,0x3d,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,
0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x35,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,
0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,0x30,0x38,0x20,0x3d,
0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,
0x67,0x65,0x73,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x35,0x29,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x36,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x4e,0x5b,0x5f,0x32,0x37,
0x38,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,0x31,0x34,0x20,0x3d,0x20,0x58,0x65,0x47,
0x54,0x41,0x4f,0x5f,0x55,0x6e,0x70,0x61,0x63,0x6b,0x45,0x64,0x67,0x65,0x73,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x36,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,0x32,0x34,0x20,0x3d,0x20,
0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x5f,0x33,0x32,0x35,
0x20,0x3d,0x20,0x5f,0x33,0x32,0x34,0x20,0x2a,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x28,0x5f,0x32,0x39,0x36,0x2e,0x79,0x2c,0x20,0x5f,0x33,0x30,0x32,0x2e,0x78,0x2c,
0x20,0x5f,0x33,0x30,0x38,0x2e,0x77,0x2c,0x20,0x5f,0x33,0x31,0x34,0x2e,0x7a,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,
0x20,0x5f,0x33,0x34,0x31,0x20,0x3d,0x20,0x66,0x61,0x73,0x74,0x3a,0x3a,0x63,0x6c,
0x61,0x6d,0x70,0x28,0x5f,0x33,0x32,0x35,0x20,0x2b,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x34,0x28,0x66,0x61,0x73,0x74,0x3a,0x3a,0x63,0x6c,0x61,0x6d,0x70,0x28,0x31,0x2e,
0x35,0x20,0x2d,0x20,0x64,0x6f,0x74,0x28,0x5f,0x33,0x32,0x35,0x2c,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x34,0x28,0x31,0x2e,0x30,0x29,0x29,0x2c,0x20,0x30,0x2e,0x30,0x2c,
0x20,0x31,0x2e,0x30,0x29,0x20,0x2a,0x20,0x30,0x2e,0x33,0x33,0x33,0x33,0x33,0x33,
0x33,0x34,0x33,0x32,0x36,0x37,0x34,0x34,0x30,0x37,0x39,0x35,0x38,0x39,0x38,0x34,
0x33,0x37,0x35,0x29,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x30,0x2e,0x30,
0x29,0x2c,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x31,0x2e,0x30,0x29,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,
0x4c,0x52,0x54,0x42,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,0x34,0x35,0x20,
0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x78,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,0x35,0x30,0x20,0x3d,0x20,0x5f,
0x33,0x34,0x31,0x2e,0x7a,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x5f,0x33,0x36,0x33,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,
0x2e,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x5f,0x33,0x37,0x31,0x20,0x3d,0x20,0x5f,0x33,0x34,0x31,0x2e,0x77,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x37,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,0x65,
0x5d,0x5b,0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,
0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x38,0x20,0x3d,0x20,0x5f,0x33,
0x34,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x39,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,
0x32,0x37,0x38,0x5d,0x5b,0x31,0x5d,0x20,0x2a,0x20,0x5f,0x31,0x39,0x36,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x30,0x20,0x3d,0x20,0x5f,0x31,0x39,0x36,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,
0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x37,0x2c,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x38,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x39,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x30,0x29,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x31,0x31,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,
0x31,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x32,0x20,0x3d,0x20,0x65,0x64,0x67,
0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x2e,0x79,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x33,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x39,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x31,0x34,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x30,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,
0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x32,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x33,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x34,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x35,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,
0x32,0x37,0x38,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x36,0x20,
0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,0x52,0x54,0x42,0x2e,0x7a,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x31,0x37,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x33,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,
0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x38,0x20,0x3d,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x31,0x34,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,
0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x35,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x31,0x36,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x37,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x31,0x38,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x39,0x20,
0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x37,0x38,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x32,0x30,0x20,0x3d,0x20,0x65,0x64,0x67,0x65,0x73,0x43,0x5f,0x4c,
0x52,0x54,0x42,0x2e,0x77,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x31,0x20,0x3d,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x37,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x32,
0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x38,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,
0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x31,0x39,0x2c,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x30,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x32,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x32,0x29,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x32,0x33,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,0x65,0x5d,
0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x34,0x20,0x3d,0x20,0x30,0x2e,
0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,
0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,0x34,
0x35,0x20,0x2a,0x20,0x5f,0x32,0x39,0x36,0x2e,0x7a,0x29,0x20,0x2b,0x20,0x28,0x5f,
0x33,0x35,0x30,0x20,0x2a,0x20,0x5f,0x33,0x30,0x38,0x2e,0x78,0x29,0x29,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x32,0x35,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,
0x31,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,
0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x36,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x32,0x32,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,
0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x32,0x33,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,
0x34,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x35,0x2c,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x32,0x36,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x37,0x20,0x3d,
0x20,0x61,0x6f,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,0x30,0x5d,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x32,0x38,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,0x30,
0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,0x32,
0x35,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,0x35,0x30,0x20,0x2a,0x20,0x5f,0x33,0x30,
0x38,0x2e,0x79,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x36,0x33,0x20,0x2a,0x20,0x5f,
0x33,0x30,0x32,0x2e,0x7a,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x39,0x20,
0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x35,0x3b,0x0a,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x30,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x36,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,
0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x37,
0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x32,0x38,0x2c,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x32,0x39,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x30,0x29,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x33,0x31,0x20,0x3d,0x20,0x61,0x6f,0x5b,0x73,0x69,0x64,
0x65,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,
0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x32,0x20,0x3d,0x20,
0x30,0x2e,0x34,0x32,0x35,0x30,0x30,0x30,0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,
0x38,0x39,0x35,0x35,0x30,0x37,0x38,0x31,0x32,0x35,0x20,0x2a,0x20,0x28,0x28,0x5f,
0x33,0x37,0x31,0x20,0x2a,0x20,0x5f,0x33,0x31,0x34,0x2e,0x78,0x29,0x20,0x2b,0x20,
0x28,0x5f,0x33,0x34,0x35,0x20,0x2a,0x20,0x5f,0x32,0x39,0x36,0x2e,0x77,0x29,0x29,
0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x33,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x32,0x39,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,
0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,0x20,0x3d,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x30,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,
0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x31,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,
0x5f,0x33,0x32,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x33,0x2c,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x35,
0x20,0x3d,0x20,0x61,0x6f,0x5b,0x5f,0x32,0x38,0x34,0x5d,0x5b,0x32,0x5d,0x3b,0x0a,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x36,0x20,0x3d,0x20,0x30,0x2e,0x34,0x32,0x35,0x30,0x30,
0x30,0x30,0x31,0x31,0x39,0x32,0x30,0x39,0x32,0x38,0x39,0x35,0x35,0x30,0x37,0x38,
0x31,0x32,0x35,0x20,0x2a,0x20,0x28,0x28,0x5f,0x33,0x36,0x33,0x20,0x2a,0x20,0x5f,
0x33,0x30,0x32,0x2e,0x77,0x29,0x20,0x2b,0x20,0x28,0x5f,0x33,0x37,0x31,0x20,0x2a,
0x20,0x5f,0x33,0x31,0x34,0x2e,0x79,0x29,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,
0x37,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x33,0x3b,0x0a,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x33,0x38,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x34,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,
0x41,0x64,0x64,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x35,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x36,0x2c,0x20,0x70,0x61,
0x72,0x61,0x6d,0x5f,0x33,0x37,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,
0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x6e,0x74,0x32,0x20,
0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x39,0x20,0x3d,0x20,0x5f,0x32,0x36,0x37,0x3b,
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6c,0x6f,0x61,0x74,0x20,0x70,
0x61,0x72,0x61,0x6d,0x5f,0x34,0x30,0x20,0x3d,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,
0x33,0x37,0x20,0x2f,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x38,0x3b,0x0a,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x6f,0x6f,0x6c,0x20,0x70,0x61,0x72,0x61,
0x6d,0x5f,0x34,0x31,0x20,0x3d,0x20,0x5f,0x31,0x39,0x33,0x3b,0x0a,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x58,0x65,0x47,0x54,0x41,0x4f,0x5f,0x4f,0x75,0x74,0x70,
0x75,0x74,0x28,0x70,0x61,0x72,0x61,0x6d,0x5f,0x33,0x39,0x2c,0x20,0x70,0x61,0x72,
0x61,0x6d,0x5f,0x34,0x30,0x2c,0x20,0x70,0x61,0x72,0x61,0x6d,0x5f,0x34,0x31,0x2c,
0x20,0x6f,0x75,0x74,0x5f,0x61,0x6f,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x7d,0x0a,
0x7d,0x0a,0x0a,0x00,
};
static inline const sg_shader_desc* gtao_denoise_prog_shader_desc(sg_backend backend) {
if (backend == SG_BACKEND_GLCORE) {
static sg_shader_desc desc;
static bool valid;
if (!valid) {
valid = true;
desc.compute_func.source = (const char*)gtao_denoise_cs_source_glsl430;
desc.compute_func.entry = "main";
desc.uniform_blocks[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.uniform_blocks[0].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[0].size = 16;
desc.uniform_blocks[0].glsl_uniforms[0].type = SG_UNIFORMTYPE_INT2;
desc.uniform_blocks[0].glsl_uniforms[0].array_count = 0;
desc.uniform_blocks[0].glsl_uniforms[0].glsl_name = "gtao.ViewportSize";
desc.uniform_blocks[0].glsl_uniforms[1].type = SG_UNIFORMTYPE_FLOAT;
desc.uniform_blocks[0].glsl_uniforms[1].array_count = 0;
desc.uniform_blocks[0].glsl_uniforms[1].glsl_name = "gtao.DenoiseBlurBeta";
desc.uniform_blocks[1].stage = SG_SHADERSTAGE_COMPUTE;
desc.uniform_blocks[1].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[1].size = 16;
desc.uniform_blocks[1].glsl_uniforms[0].type = SG_UNIFORMTYPE_INT4;
desc.uniform_blocks[1].glsl_uniforms[0].array_count = 1;
desc.uniform_blocks[1].glsl_uniforms[0].glsl_name = "ub_denoise";
desc.views[0].storage_image.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[0].storage_image.image_type = SG_IMAGETYPE_2D;
desc.views[0].storage_image.access_format = SG_PIXELFORMAT_R32F;
desc.views[0].storage_image.writeonly = true;
desc.views[0].storage_image.glsl_binding_n = 0;
desc.views[1].texture.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[1].texture.image_type = SG_IMAGETYPE_2D;
desc.views[1].texture.sample_type = SG_IMAGESAMPLETYPE_FLOAT;
desc.views[1].texture.multisampled = false;
desc.views[2].texture.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[2].texture.image_type = SG_IMAGETYPE_2D;
desc.views[2].texture.sample_type = SG_IMAGESAMPLETYPE_FLOAT;
desc.views[2].texture.multisampled = false;
desc.samplers[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.samplers[0].sampler_type = SG_SAMPLERTYPE_FILTERING;
desc.texture_sampler_pairs[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.texture_sampler_pairs[0].view_slot = 1;
desc.texture_sampler_pairs[0].sampler_slot = 0;
desc.texture_sampler_pairs[0].glsl_name = "tex_edges_smp_point_clamp";
desc.texture_sampler_pairs[1].stage = SG_SHADERSTAGE_COMPUTE;
desc.texture_sampler_pairs[1].view_slot = 2;
desc.texture_sampler_pairs[1].sampler_slot = 0;
desc.texture_sampler_pairs[1].glsl_name = "tex_noisy_ao_smp_point_clamp";
desc.label = "gtao_denoise_prog_shader";
}
return &desc;
}
if (backend == SG_BACKEND_D3D11) {
static sg_shader_desc desc;
static bool valid;
if (!valid) {
valid = true;
desc.compute_func.source = (const char*)gtao_denoise_cs_source_hlsl5;
desc.compute_func.d3d11_target = "cs_5_0";
desc.compute_func.entry = "main";
desc.uniform_blocks[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.uniform_blocks[0].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[0].size = 16;
desc.uniform_blocks[0].hlsl_register_b_n = 0;
desc.uniform_blocks[1].stage = SG_SHADERSTAGE_COMPUTE;
desc.uniform_blocks[1].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[1].size = 16;
desc.uniform_blocks[1].hlsl_register_b_n = 1;
desc.views[0].storage_image.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[0].storage_image.image_type = SG_IMAGETYPE_2D;
desc.views[0].storage_image.access_format = SG_PIXELFORMAT_R32F;
desc.views[0].storage_image.writeonly = true;
desc.views[0].storage_image.hlsl_register_u_n = 0;
desc.views[1].texture.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[1].texture.image_type = SG_IMAGETYPE_2D;
desc.views[1].texture.sample_type = SG_IMAGESAMPLETYPE_FLOAT;
desc.views[1].texture.multisampled = false;
desc.views[1].texture.hlsl_register_t_n = 0;
desc.views[2].texture.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[2].texture.image_type = SG_IMAGETYPE_2D;
desc.views[2].texture.sample_type = SG_IMAGESAMPLETYPE_FLOAT;
desc.views[2].texture.multisampled = false;
desc.views[2].texture.hlsl_register_t_n = 1;
desc.samplers[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.samplers[0].sampler_type = SG_SAMPLERTYPE_FILTERING;
desc.samplers[0].hlsl_register_s_n = 0;
desc.texture_sampler_pairs[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.texture_sampler_pairs[0].view_slot = 1;
desc.texture_sampler_pairs[0].sampler_slot = 0;
desc.texture_sampler_pairs[1].stage = SG_SHADERSTAGE_COMPUTE;
desc.texture_sampler_pairs[1].view_slot = 2;
desc.texture_sampler_pairs[1].sampler_slot = 0;
desc.label = "gtao_denoise_prog_shader";
}
return &desc;
}
if (backend == SG_BACKEND_METAL_MACOS) {
static sg_shader_desc desc;
static bool valid;
if (!valid) {
valid = true;
desc.compute_func.source = (const char*)gtao_denoise_cs_source_metal_macos;
desc.compute_func.entry = "main0";
desc.mtl_threads_per_threadgroup.x = 8;
desc.mtl_threads_per_threadgroup.y = 8;
desc.mtl_threads_per_threadgroup.z = 1;
desc.uniform_blocks[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.uniform_blocks[0].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[0].size = 16;
desc.uniform_blocks[0].msl_buffer_n = 0;
desc.uniform_blocks[1].stage = SG_SHADERSTAGE_COMPUTE;
desc.uniform_blocks[1].layout = SG_UNIFORMLAYOUT_STD140;
desc.uniform_blocks[1].size = 16;
desc.uniform_blocks[1].msl_buffer_n = 1;
desc.views[0].storage_image.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[0].storage_image.image_type = SG_IMAGETYPE_2D;
desc.views[0].storage_image.access_format = SG_PIXELFORMAT_R32F;
desc.views[0].storage_image.writeonly = true;
desc.views[0].storage_image.msl_texture_n = 0;
desc.views[1].texture.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[1].texture.image_type = SG_IMAGETYPE_2D;
desc.views[1].texture.sample_type = SG_IMAGESAMPLETYPE_FLOAT;
desc.views[1].texture.multisampled = false;
desc.views[1].texture.msl_texture_n = 1;
desc.views[2].texture.stage = SG_SHADERSTAGE_COMPUTE;
desc.views[2].texture.image_type = SG_IMAGETYPE_2D;
desc.views[2].texture.sample_type = SG_IMAGESAMPLETYPE_FLOAT;
desc.views[2].texture.multisampled = false;
desc.views[2].texture.msl_texture_n = 2;
desc.samplers[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.samplers[0].sampler_type = SG_SAMPLERTYPE_FILTERING;
desc.samplers[0].msl_sampler_n = 0;
desc.texture_sampler_pairs[0].stage = SG_SHADERSTAGE_COMPUTE;
desc.texture_sampler_pairs[0].view_slot = 1;
desc.texture_sampler_pairs[0].sampler_slot = 0;
desc.texture_sampler_pairs[1].stage = SG_SHADERSTAGE_COMPUTE;
desc.texture_sampler_pairs[1].view_slot = 2;
desc.texture_sampler_pairs[1].sampler_slot = 0;
desc.label = "gtao_denoise_prog_shader";
}
return &desc;
}
return 0;
}