1#include <metal_stdlib>
2#include <simd/simd.h>
3using namespace metal;
4struct Uniforms {
5    float4 colorGreen;
6    float4 colorRed;
7};
8struct Inputs {
9};
10struct Outputs {
11    float4 sk_FragColor [[color(0)]];
12};
13float2 tricky_h2hhh2h(float x, float y, thread float2& color, float z);
14float2 _skOutParamHelper0_tricky_h2hhh2h(float _var0, float _var1, thread float4& color, float _var3) {
15    float2 _var2 = color.xz;
16    float2 _skResult = tricky_h2hhh2h(_var0, _var1, _var2, _var3);
17    color.xz = _var2;
18    return _skResult;
19}
20void func_vh4(thread float4& color);
21void _skOutParamHelper1_func_vh4(thread float4& result) {
22    float4 _var0 = result;
23    func_vh4(_var0);
24    result = _var0;
25}
26
27float2 tricky_h2hhh2h(float x, float y, thread float2& color, float z) {
28    color = color.yx;
29    return float2(x + y, z);
30}
31void func_vh4(thread float4& color) {
32    float2 t =     _skOutParamHelper0_tricky_h2hhh2h(1.0, 2.0, color, 5.0);
33    color.yw = t;
34}
35fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
36    Outputs _out;
37    (void)_out;
38    float4 result = float4(0.0, 1.0, 2.0, 3.0);
39    _skOutParamHelper1_func_vh4(result);
40    _out.sk_FragColor = all(result == float4(2.0, 3.0, 0.0, 5.0)) ? _uniforms.colorGreen : _uniforms.colorRed;
41    return _out;
42}
43