 half fx = %s.y;
            float x_t = -1.0;
            @if (%s) {
                x_t = dot(p, p) / p.x;
            } else if (%s) {
                x_t = length(p) - p.x * float(invR1);
            } else {
                float temp = p.x * p.x - p.y * p.y;
                if (temp >= 0.0) {
                    @if (%s || !%s) {
                        x_t = -sqrt(temp) - p.x * float(invR1)