OpenShadingLanguage 1.00
# Compiled by oslc 1.3.0
shader node_tangent
param	normal	NormalIn	0 0 0 		 %read{34,36} %write{0,0}
param	string	attr_name	"geom:tangent" 		 %read{4,4} %write{2147483647,-1}
param	string	direction_type	"Radial" 		 %read{2,5} %write{2147483647,-1}
param	string	axis	"Z" 		 %read{11,19} %write{2147483647,-1}
oparam	normal	Tangent	0 0 0 		 %read{2147483647,-1} %write{1,36}
global	point	P	 %read{10,10} %write{2147483647,-1}
global	normal	N	 %read{0,0} %write{2147483647,-1}
global	vector	dPdu	 %read{1,1} %write{2147483647,-1}
local	vector	T	 %read{33,34} %write{4,33}
local	point	___294_generated	 %read{13,30} %write{7,10}
const	string	$const1	"UV Map"		 %read{2,2} %write{2147483647,-1}
temp	int	$tmp1	 %read{3,3} %write{2,2}
temp	int	$tmp2	 %read{2147483647,-1} %write{4,4}
const	string	$const2	"Radial"		 %read{5,5} %write{2147483647,-1}
temp	int	$tmp3	 %read{6,6} %write{5,5}
temp	int	$tmp4	 %read{8,8} %write{7,7}
const	string	$const3	"geom:generated"		 %read{7,7} %write{2147483647,-1}
temp	int	$tmp5	 %read{9,9} %write{8,8}
const	int	$const4	0		 %read{8,30} %write{2147483647,-1}
const	string	$const5	"X"		 %read{11,11} %write{2147483647,-1}
temp	int	$tmp6	 %read{12,12} %write{11,11}
const	float	$const6	0		 %read{18,32} %write{2147483647,-1}
const	int	$const7	2		 %read{13,21} %write{2147483647,-1}
temp	float	$tmp7	 %read{14,14} %write{13,13}
const	float	$const8	0.5		 %read{14,31} %write{2147483647,-1}
temp	float	$tmp8	 %read{15,15} %write{14,14}
temp	float	$tmp9	 %read{18,18} %write{15,15}
const	int	$const9	1		 %read{16,27} %write{2147483647,-1}
temp	float	$tmp10	 %read{17,17} %write{16,16}
temp	float	$tmp11	 %read{18,18} %write{17,17}
const	string	$const10	"Y"		 %read{19,19} %write{2147483647,-1}
temp	int	$tmp12	 %read{20,20} %write{19,19}
temp	float	$tmp13	 %read{22,22} %write{21,21}
temp	float	$tmp14	 %read{23,23} %write{22,22}
temp	float	$tmp15	 %read{26,26} %write{23,23}
temp	float	$tmp16	 %read{25,25} %write{24,24}
temp	float	$tmp17	 %read{26,26} %write{25,25}
temp	float	$tmp18	 %read{28,28} %write{27,27}
temp	float	$tmp19	 %read{29,29} %write{28,28}
temp	float	$tmp20	 %read{32,32} %write{29,29}
temp	float	$tmp21	 %read{31,31} %write{30,30}
temp	float	$tmp22	 %read{32,32} %write{31,31}
const	string	$const11	"object"		 %read{33,33} %write{2147483647,-1}
const	string	$const12	"world"		 %read{33,33} %write{2147483647,-1}
temp	vector	$tmp23	 %read{36,36} %write{35,35}
temp	vector	$tmp24	 %read{35,35} %write{34,34}
code NormalIn
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:23
# 	string attr_name = "geom:tangent",
	assign		NormalIn N 	%filename{"D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl"} %line{23} %argrw{"wr"}
code Tangent
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:27
# {
	normalize	Tangent dPdu 	%filename{"D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl"} %line{27} %argrw{"wr"}
code ___main___
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:31
# 		getattribute(attr_name, T);
	eq		$tmp1 direction_type $const1 	%filename{"D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl"} %line{31} %argrw{"wrr"}
	if		$tmp1 5 33 	%argrw{"r"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:32
# 	}
	getattribute	$tmp2 attr_name T 	%line{32} %argrw{"wrw"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:34
# 		point generated;
	eq		$tmp3 direction_type $const2 	%line{34} %argrw{"wrr"}
	if		$tmp3 33 33 	%argrw{"r"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:37
# 			generated = P;
	getattribute	$tmp4 $const3 ___294_generated 	%line{37} %argrw{"wrw"}
	eq		$tmp5 $tmp4 $const4 	%argrw{"wrr"}
	if		$tmp5 11 11 	%argrw{"r"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:38
# 
	assign		___294_generated P 	%line{38} %argrw{"wr"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:40
# 			T = vector(0.0, -(generated[2] - 0.5), (generated[1] - 0.5));
	eq		$tmp6 axis $const5 	%line{40} %argrw{"wrr"}
	if		$tmp6 19 33 	%argrw{"r"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:41
# 		else if (axis == "Y")
	compref		$tmp7 ___294_generated $const7 	%line{41} %argrw{"wrr"}
	sub		$tmp8 $tmp7 $const8 	%argrw{"wrr"}
	neg		$tmp9 $tmp8 	%argrw{"wr"}
	compref		$tmp10 ___294_generated $const9 	%argrw{"wrr"}
	sub		$tmp11 $tmp10 $const8 	%argrw{"wrr"}
	vector		T $const6 $tmp9 $tmp11 	%argrw{"wrrr"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:42
# 			T = vector(-(generated[2] - 0.5), 0.0, (generated[0] - 0.5));
	eq		$tmp12 axis $const10 	%line{42} %argrw{"wrr"}
	if		$tmp12 27 33 	%argrw{"r"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:43
# 		else
	compref		$tmp13 ___294_generated $const7 	%line{43} %argrw{"wrr"}
	sub		$tmp14 $tmp13 $const8 	%argrw{"wrr"}
	neg		$tmp15 $tmp14 	%argrw{"wr"}
	compref		$tmp16 ___294_generated $const4 	%argrw{"wrr"}
	sub		$tmp17 $tmp16 $const8 	%argrw{"wrr"}
	vector		T $tmp15 $const6 $tmp17 	%argrw{"wrrr"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:45
# 	}
	compref		$tmp18 ___294_generated $const9 	%line{45} %argrw{"wrr"}
	sub		$tmp19 $tmp18 $const8 	%argrw{"wrr"}
	neg		$tmp20 $tmp19 	%argrw{"wr"}
	compref		$tmp21 ___294_generated $const4 	%argrw{"wrr"}
	sub		$tmp22 $tmp21 $const8 	%argrw{"wrr"}
	vector		T $tmp20 $tmp22 $const6 	%argrw{"wrrr"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:48
# 	Tangent = cross(NormalIn, normalize(cross(T, NormalIn)));
	transformv	T $const11 $const12 T 	%line{48} %argrw{"wrrr"}
# D:\\blender_dev\\code\\266a\\intern\\cycles\\kernel\\shaders\\node_tangent.osl:49
# }
	cross		$tmp24 T NormalIn 	%line{49} %argrw{"wrr"}
	normalize	$tmp23 $tmp24 	%argrw{"wr"}
	cross		Tangent NormalIn $tmp23 	%argrw{"wrr"}
	end
