namespace = ZZJueStandalone239916


[ShaderRegexJueStandaloneCutout]
shader_model = ps_5_0
temps = jue_ini jue_mask jue_size jue_coord

[ShaderRegexJueStandaloneCutout.Pattern]
(?=(?:dcl_[^\n]*\n)*?dcl_constantbuffer\hCB\d+\[40(?:86|94)\],\hdynamicIndexed\n)(?=(?:dcl_[^\n]*\n)*?dcl_input_ps\hlinear\hv1\.xy\n)(?<header>(?:dcl_[^\n]*\n)*?dcl_temps\h\d+\n(?:dcl_[^\n]*\n)*)

[ShaderRegexJueStandaloneCutout.InsertDeclarations]
dcl_resource_texture1d (float,float,float,float) t120
dcl_resource_texture2d (float,float,float,float) t117

[ShaderRegexJueStandaloneCutout.Pattern.Replace]
${header}
ld_indexable(texture1d)(float,float,float,float) ${jue_ini}.xyzw, l(246, 0), t120.xyzw\n
eq ${jue_ini}.x, ${jue_ini}.x, l(239916.000000)\n
if_nz ${jue_ini}.x\n
	resinfo_indexable(texture2d)(float,float,float,float) ${jue_size}.xy, l(0), t117.xyzw\n
	add ${jue_size}.z, ${jue_size}.x, ${jue_size}.y\n
	if_nz ${jue_size}.z\n
		frc ${jue_coord}.xy, v1.xyxx\n
		mul ${jue_coord}.xy, ${jue_coord}.xyxx, ${jue_size}.xyxx\n
		ftou ${jue_coord}.xy, ${jue_coord}.xyxx\n
		mov ${jue_coord}.zw, l(0, 0, 0, 0)\n
		ld_indexable(texture2d)(float,float,float,float) ${jue_mask}.x, ${jue_coord}.xyzz, t117.xyzw\n
		lt ${jue_mask}.x, ${jue_mask}.x, l(0.500000)\n
		discard_nz ${jue_mask}.x\n
	endif\n
endif\n
