OpenShadingLanguage 1.00
# Compiled by oslc 1.11.17
# options: -q -O2 -I/build/blender/src/blender/intern/cycles/kernel/osl/shaders -I/usr/share/OSL/shaders -o /build/blender/src/blender/build/intern/cycles/kernel/osl/shaders/node_wave_texture.oso
shader node_wave_texture
param	int	use_mapping	0		%read{2,2} %write{2147483647,-1}
param	matrix	mapping	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0		%read{3,3} %write{2147483647,-1}
param	string	wave_type	"bands"		%read{9,29} %write{2147483647,-1}
param	string	bands_direction	"x"		%read{11,19} %write{2147483647,-1}
param	string	rings_direction	"x"		%read{32,38} %write{2147483647,-1}
param	string	profile	"sine"		%read{106,113} %write{2147483647,-1}
param	float	Scale	5		%read{4,4} %write{2147483647,-1}
param	float	Distortion	0		%read{44,104} %write{2147483647,-1}
param	float	Detail	2		%read{53,53} %write{2147483647,-1}
param	float	DetailScale	1		%read{46,46} %write{2147483647,-1}
param	float	DetailRoughness	0.5		%read{72,72} %write{2147483647,-1}
param	float	PhaseOffset	0		%read{43,43} %write{2147483647,-1}
param	point	Vector	0 0 0		%read{1,1} %write{0,0} %initexpr
oparam	float	Fac	0		%read{126,126} %write{111,124}
oparam	color	Color	0 0 0		%read{2147483647,-1} %write{126,126}
global	point	P	%read{0,0} %write{2147483647,-1}
local	float	___444_f	%read{58,89} %write{58,84}
local	float	___460_fscale	%read{58,82} %write{48,77}
local	float	___460_amp	%read{58,93} %write{49,77}
local	float	___460_maxamp	%read{58,100} %write{50,77}
local	float	___460_sum	%read{58,100} %write{51,92}
local	float	___460_octaves	%read{55,79} %write{54,54}
local	int	___460_n	%read{58,77} %write{55,55}
local	int	___461_i	%read{58,77} %write{57,77}
local	float	___462_t	%read{58,77} %write{58,77}
local	float	___460_rmd	%read{80,97} %write{79,79}
local	float	___463_t	%read{90,90} %write{87,89}
local	float	___463_sum2	%read{94,97} %write{91,94}
local	point	___508_p	%read{13,46} %write{7,7}
local	float	___508_n	%read{43,122} %write{8,119}
local	point	___514_rp	%read{34,41} %write{31,40}
local	point	p	%read{3,4} %write{1,3}
temp	point	$tmp1	%read{6,6} %write{4,4}
const	string	$const1	"wave"		%read{5,5} %write{2147483647,-1}
const	float	$const2	9.99999997e-07		%read{6,6} %write{2147483647,-1}
temp	point	$tmp2	%read{7,7} %write{6,6}
const	float	$const3	0.999998987		%read{7,7} %write{2147483647,-1}
const	float	$const4	0		%read{8,80} %write{2147483647,-1}
const	string	$const5	"bands"		%read{9,9} %write{2147483647,-1}
temp	int	$tmp3	%read{10,10} %write{9,9}
const	string	$const6	"x"		%read{11,32} %write{2147483647,-1}
temp	int	$tmp4	%read{12,12} %write{11,11}
const	int	$const7	0		%read{13,59} %write{2147483647,-1}
temp	float	$tmp5	%read{14,14} %write{13,13}
const	float	$const8	20		%read{14,42} %write{2147483647,-1}
const	string	$const9	"y"		%read{15,35} %write{2147483647,-1}
temp	int	$tmp6	%read{16,16} %write{15,15}
const	int	$const10	1		%read{17,77} %write{2147483647,-1}
temp	float	$tmp7	%read{18,18} %write{17,17}
const	string	$const11	"z"		%read{19,38} %write{2147483647,-1}
temp	int	$tmp8	%read{20,20} %write{19,19}
const	int	$const12	2		%read{21,26} %write{2147483647,-1}
temp	float	$tmp9	%read{22,22} %write{21,21}
temp	float	$tmp10	%read{25,25} %write{23,23}
temp	float	$tmp11	%read{25,25} %write{24,24}
temp	float	$tmp12	%read{27,27} %write{25,25}
temp	float	$tmp13	%read{27,27} %write{26,26}
temp	float	$tmp14	%read{28,28} %write{27,27}
const	float	$const13	10		%read{28,28} %write{2147483647,-1}
const	string	$const14	"rings"		%read{29,29} %write{2147483647,-1}
temp	int	$tmp15	%read{30,30} %write{29,29}
temp	int	$tmp16	%read{33,33} %write{32,32}
const	point	$const15	0 1 1		%read{34,34} %write{2147483647,-1}
temp	int	$tmp18	%read{36,36} %write{35,35}
const	point	$const16	1 0 1		%read{37,37} %write{2147483647,-1}
temp	int	$tmp20	%read{39,39} %write{38,38}
const	point	$const17	1 1 0		%read{40,40} %write{2147483647,-1}
temp	float	$tmp22	%read{42,42} %write{41,41}
temp	int	$tmp23	%read{45,45} %write{44,44}
temp	float	$tmp24	%read{102,102} %write{98,100}
temp	point	$tmp25	%read{58,82} %write{46,46}
const	string	$const18	"fractal_noise"		%read{47,47} %write{2147483647,-1}
const	float	$const19	1		%read{48,103} %write{2147483647,-1}
const	float	$const20	15		%read{53,53} %write{2147483647,-1}
const	string	$const21	"clamp"		%read{52,71} %write{2147483647,-1}
temp	float	$tmp26	%read{54,54} %write{53,53}
temp	int	$tmp27	%read{58,77} %write{58,77}
temp	int	$tmp28	%read{56,77} %write{57,77}
temp	point	$tmp29	%read{58,77} %write{58,77}
const	string	$const22	"safe_noise"		%read{61,83} %write{2147483647,-1}
const	string	$const23	"noise"		%read{62,84} %write{2147483647,-1}
temp	int	$tmp30	%read{58,77} %write{58,77}
const	float	$const24	0.5		%read{65,120} %write{2147483647,-1}
temp	float	$tmp31	%read{58,77} %write{58,77}
temp	float	$tmp32	%read{58,77} %write{58,77}
temp	float	$tmp33	%read{58,77} %write{58,77}
const	float	$const25	2		%read{75,124} %write{2147483647,-1}
temp	int	$tmp34	%read{2147483647,-1} %write{58,77}
temp	float	$tmp35	%read{79,79} %write{78,78}
temp	int	$tmp36	%read{81,81} %write{80,80}
temp	point	$tmp37	%read{84,84} %write{82,82}
temp	int	$tmp38	%read{86,86} %write{85,85}
temp	float	$tmp39	%read{91,91} %write{90,90}
temp	float	$tmp40	%read{94,94} %write{93,93}
temp	float	$tmp41	%read{96,96} %write{95,95}
temp	float	$tmp42	%read{98,98} %write{96,96}
temp	float	$tmp43	%read{98,98} %write{97,97}
temp	float	$tmp44	%read{103,103} %write{102,102}
temp	float	$tmp45	%read{104,104} %write{103,103}
temp	float	$tmp46	%read{105,105} %write{104,104}
const	string	$const26	"sine"		%read{106,106} %write{2147483647,-1}
temp	int	$tmp47	%read{107,107} %write{106,106}
temp	float	$tmp48	%read{110,110} %write{109,109}
const	float	$const27	1.57079637		%read{108,108} %write{2147483647,-1}
temp	float	$tmp49	%read{109,109} %write{108,108}
temp	float	$tmp50	%read{111,111} %write{110,110}
const	string	$const28	"saw"		%read{113,113} %write{2147483647,-1}
temp	int	$tmp51	%read{114,114} %write{113,113}
const	float	$const29	6.28318548		%read{115,119} %write{2147483647,-1}
temp	float	$tmp52	%read{117,117} %write{116,116}
temp	float	$tmp53	%read{124,124} %write{123,123}
temp	float	$tmp54	%read{122,122} %write{121,121}
temp	float	$tmp55	%read{121,121} %write{120,120}
temp	float	$tmp56	%read{123,123} %write{122,122}
code Vector
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:86
#                          point Vector = P,
	assign		Vector P 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl"} %line{86} %argrw{"wr"}
code ___main___
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:90
#   point p = Vector;
	assign		p Vector 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl"} %line{90} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:92
#   if (use_mapping)
	if		use_mapping 4 4 	%line{92} %argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:93
#     p = transform(mapping, p);
	transform	p mapping p 	%line{93} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:95
#   Fac = wave(p * Scale,
	mul		$tmp1 p Scale 	%line{95} %argrw{"wrr"}
	functioncall	$const1 126 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:21
#   point p = (p_input + 0.000001) * 0.999999;
	add		$tmp2 $tmp1 $const2 	%line{21} %argrw{"wrr"}
	mul		___508_p $tmp2 $const3 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:23
#   float n = 0.0;
	assign		___508_n $const4 	%line{23} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:25
#   if (type == "bands") {
	eq		$tmp3 wave_type $const5 	%line{25} %argrw{"wrr"}
	if		$tmp3 29 43 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:26
#     if (bands_direction == "x") {
	eq		$tmp4 bands_direction $const6 	%line{26} %argrw{"wrr"}
	if		$tmp4 15 29 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:27
#       n = p[0] * 20.0;
	compref		$tmp5 ___508_p $const7 	%line{27} %argrw{"wrr"}
	mul		___508_n $tmp5 $const8 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:29
#     else if (bands_direction == "y") {
	eq		$tmp6 bands_direction $const9 	%line{29} %argrw{"wrr"}
	if		$tmp6 19 29 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:30
#       n = p[1] * 20.0;
	compref		$tmp7 ___508_p $const10 	%line{30} %argrw{"wrr"}
	mul		___508_n $tmp7 $const8 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:32
#     else if (bands_direction == "z") {
	eq		$tmp8 bands_direction $const11 	%line{32} %argrw{"wrr"}
	if		$tmp8 23 29 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:33
#       n = p[2] * 20.0;
	compref		$tmp9 ___508_p $const12 	%line{33} %argrw{"wrr"}
	mul		___508_n $tmp9 $const8 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:36
#       n = (p[0] + p[1] + p[2]) * 10.0;
	compref		$tmp10 ___508_p $const7 	%line{36} %argrw{"wrr"}
	compref		$tmp11 ___508_p $const10 	%argrw{"wrr"}
	add		$tmp12 $tmp10 $tmp11 	%argrw{"wrr"}
	compref		$tmp13 ___508_p $const12 	%argrw{"wrr"}
	add		$tmp14 $tmp12 $tmp13 	%argrw{"wrr"}
	mul		___508_n $tmp14 $const13 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:39
#   else if (type == "rings") {
	eq		$tmp15 wave_type $const14 	%line{39} %argrw{"wrr"}
	if		$tmp15 43 43 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:40
#     point rp = p;
	assign		___514_rp ___508_p 	%line{40} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:41
#     if (rings_direction == "x") {
	eq		$tmp16 rings_direction $const6 	%line{41} %argrw{"wrr"}
	if		$tmp16 35 41 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:42
#       rp *= point(0.0, 1.0, 1.0);
	mul		___514_rp ___514_rp $const15 	%line{42} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:44
#     else if (rings_direction == "y") {
	eq		$tmp18 rings_direction $const9 	%line{44} %argrw{"wrr"}
	if		$tmp18 38 41 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:45
#       rp *= point(1.0, 0.0, 1.0);
	mul		___514_rp ___514_rp $const16 	%line{45} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:47
#     else if (rings_direction == "z") {
	eq		$tmp20 rings_direction $const11 	%line{47} %argrw{"wrr"}
	if		$tmp20 41 41 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:48
#       rp *= point(1.0, 1.0, 0.0);
	mul		___514_rp ___514_rp $const17 	%line{48} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:52
#     n = length(rp) * 20.0;
	length		$tmp22 ___514_rp 	%line{52} %argrw{"wr"}
	mul		___508_n $tmp22 $const8 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:55
#   n += phase;
	add		___508_n ___508_n PhaseOffset 	%line{55} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:57
#   if (distortion != 0.0) {
	neq		$tmp23 Distortion $const4 	%line{57} %argrw{"wrr"}
	if		$tmp23 106 106 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:58
#     n = n + (distortion * (fractal_noise(p * dscale, detail, droughness) * 2.0 - 1.0));
	mul		$tmp25 ___508_p DetailScale 	%line{58} %argrw{"wrr"}
	functioncall	$const18 102 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:134
#   float fscale = 1.0;
	assign		___460_fscale $const19 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h"} %line{134} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:135
#   float amp = 1.0;
	assign		___460_amp $const19 	%line{135} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:136
#   float maxamp = 0.0;
	assign		___460_maxamp $const4 	%line{136} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:137
#   float sum = 0.0;
	assign		___460_sum $const4 	%line{137} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:138
#   float octaves = clamp(details, 0.0, 15.0);
	functioncall	$const21 55 	%line{138} %argrw{"r"}
# /usr/share/OSL/shaders/stdosl.h:141
# float  clamp (float x, float minval, float maxval) { return max(min(x,maxval),minval); }
	min		$tmp26 Detail $const20 	%filename{"/usr/share/OSL/shaders/stdosl.h"} %line{141} %argrw{"wrr"}
	max		___460_octaves $tmp26 $const4 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:139
#   int n = (int)octaves;
	assign		___460_n ___460_octaves 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h"} %line{139} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:140
#   for (int i = 0; i <= n; i++) {
	for		$tmp28 58 60 76 78 	%line{140} %argrw{"r"}
	assign		___461_i $const7 	%argrw{"wr"}
	le		$tmp27 ___461_i ___460_n 	%argrw{"wrr"}
	neq		$tmp28 $tmp27 $const7 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:141
#     float t = safe_noise(fscale * p);
	mul		$tmp29 ___460_fscale $tmp25 	%line{141} %argrw{"wrr"}
	functioncall	$const22 68 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:27
#   float f = noise("noise", p);
	noise		___444_f $const23 $tmp29 	%line{27} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:28
#   if (isinf(f))
	isinf		$tmp30 ___444_f 	%line{28} %argrw{"wr"}
	if		$tmp30 67 67 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:29
#     return 0.5;
	assign		___462_t $const24 	%line{29} %argrw{"wr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:30
#   return f;
	assign		___462_t ___444_f 	%line{30} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:142
#     sum += t * amp;
	mul		$tmp31 ___462_t ___460_amp 	%line{142} %argrw{"wrr"}
	add		___460_sum ___460_sum $tmp31 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:143
#     maxamp += amp;
	add		___460_maxamp ___460_maxamp ___460_amp 	%line{143} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:144
#     amp *= clamp(roughness, 0.0, 1.0);
	functioncall	$const21 74 	%line{144} %argrw{"r"}
# /usr/share/OSL/shaders/stdosl.h:141
# float  clamp (float x, float minval, float maxval) { return max(min(x,maxval),minval); }
	min		$tmp33 DetailRoughness $const19 	%filename{"/usr/share/OSL/shaders/stdosl.h"} %line{141} %argrw{"wrr"}
	max		$tmp32 $tmp33 $const4 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:144
#     amp *= clamp(roughness, 0.0, 1.0);
	mul		___460_amp ___460_amp $tmp32 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h"} %line{144} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:145
#     fscale *= 2.0;
	mul		___460_fscale ___460_fscale $const25 	%line{145} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:140
#   for (int i = 0; i <= n; i++) {
	assign		$tmp34 ___461_i 	%line{140} %argrw{"wr"}
	add		___461_i ___461_i $const10 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:147
#   float rmd = octaves - floor(octaves);
	floor		$tmp35 ___460_octaves 	%line{147} %argrw{"wr"}
	sub		___460_rmd ___460_octaves $tmp35 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:148
#   if (rmd != 0.0) {
	neq		$tmp36 ___460_rmd $const4 	%line{148} %argrw{"wrr"}
	if		$tmp36 100 102 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:149
#     float t = safe_noise(fscale * p);
	mul		$tmp37 ___460_fscale $tmp25 	%line{149} %argrw{"wrr"}
	functioncall	$const22 90 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:27
#   float f = noise("noise", p);
	noise		___444_f $const23 $tmp37 	%line{27} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:28
#   if (isinf(f))
	isinf		$tmp38 ___444_f 	%line{28} %argrw{"wr"}
	if		$tmp38 89 89 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:29
#     return 0.5;
	assign		___463_t $const24 	%line{29} %argrw{"wr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:30
#   return f;
	assign		___463_t ___444_f 	%line{30} %argrw{"wr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:150
#     float sum2 = sum + t * amp;
	mul		$tmp39 ___463_t ___460_amp 	%line{150} %argrw{"wrr"}
	add		___463_sum2 ___460_sum $tmp39 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:151
#     sum /= maxamp;
	div		___460_sum ___460_sum ___460_maxamp 	%line{151} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:152
#     sum2 /= maxamp + amp;
	add		$tmp40 ___460_maxamp ___460_amp 	%line{152} %argrw{"wrr"}
	div		___463_sum2 ___463_sum2 $tmp40 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:153
#     return (1.0 - rmd) * sum + rmd * sum2;
	sub		$tmp41 $const19 ___460_rmd 	%line{153} %argrw{"wrr"}
	mul		$tmp42 $tmp41 ___460_sum 	%argrw{"wrr"}
	mul		$tmp43 ___460_rmd ___463_sum2 	%argrw{"wrr"}
	add		$tmp24 $tmp42 $tmp43 	%argrw{"wrr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_noise.h:156
#     return sum / maxamp;
	div		$tmp24 ___460_sum ___460_maxamp 	%line{156} %argrw{"wrr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:58
#     n = n + (distortion * (fractal_noise(p * dscale, detail, droughness) * 2.0 - 1.0));
	mul		$tmp44 $tmp24 $const25 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl"} %line{58} %argrw{"wrr"}
	sub		$tmp45 $tmp44 $const19 	%argrw{"wrr"}
	mul		$tmp46 Distortion $tmp45 	%argrw{"wrr"}
	add		___508_n ___508_n $tmp46 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:61
#   if (profile == "sine") {
	eq		$tmp47 profile $const26 	%line{61} %argrw{"wrr"}
	if		$tmp47 113 126 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:62
#     return 0.5 + 0.5 * sin(n - M_PI_2);
	sub		$tmp49 ___508_n $const27 	%line{62} %argrw{"wrr"}
	sin		$tmp48 $tmp49 	%argrw{"wr"}
	mul		$tmp50 $const24 $tmp48 	%argrw{"wrr"}
	add		Fac $const24 $tmp50 	%argrw{"wrr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:64
#   else if (profile == "saw") {
	eq		$tmp51 profile $const28 	%line{64} %argrw{"wrr"}
	if		$tmp51 119 126 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:65
#     n /= M_2PI;
	div		___508_n ___508_n $const29 	%line{65} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:66
#     return n - floor(n);
	floor		$tmp52 ___508_n 	%line{66} %argrw{"wr"}
	sub		Fac ___508_n $tmp52 	%argrw{"wrr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:69
#     n /= M_2PI;
	div		___508_n ___508_n $const29 	%line{69} %argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:70
#     return abs(n - floor(n + 0.5)) * 2.0;
	add		$tmp55 ___508_n $const24 	%line{70} %argrw{"wrr"}
	floor		$tmp54 $tmp55 	%argrw{"wr"}
	sub		$tmp56 ___508_n $tmp54 	%argrw{"wrr"}
	abs		$tmp53 $tmp56 	%argrw{"wr"}
	mul		Fac $tmp53 $const25 	%argrw{"wrr"}
	return
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_wave_texture.osl:105
#   Color = Fac;
	assign		Color Fac 	%line{105} %argrw{"wr"}
	end
