__kernel void E_960_480_3(__global uchar* data0_1382400, __global float* data1_9, __global uchar* data2_4804608) {
  float val0 = (*(data1_9+0));
  float val1 = (*(data1_9+1));
  float val2 = (*(data1_9+2));
  float val3 = (*(data1_9+3));
  float val4 = (*(data1_9+4));
  float val5 = (*(data1_9+5));
  float val6 = (*(data1_9+6));
  float val7 = (*(data1_9+7));
  float val8 = (*(data1_9+8));
  int idx0 = get_global_id(0); /* 480 */
  int idx1 = get_global_id(1); /* 960 */
  float cast0 = ((float)(idx1));
  int alu0 = (idx0*3);
  float cast1 = ((float)((alu0+1)));
  float alu1 = (val7*cast0);
  float alu2 = (1/((val6*cast1)+alu1+val8));
  float alu3 = (val1*cast0);
  float alu4 = (((val0*cast1)+alu3+val2)*alu2);
  float alu5 = (alu4+-0.5f);
  float alu6 = trunc(alu5);
  float alu7 = (alu4+0.5f);
  float alu8 = trunc(alu7);
  float alu9 = (val4*cast0);
  float alu10 = (((val3*cast1)+alu9+val5)*alu2);
  float alu11 = (alu10+-0.5f);
  float alu12 = trunc(alu11);
  float alu13 = (alu10+0.5f);
  float alu14 = trunc(alu13);
  float alu15 = (alu6+1.0f);
  float alu16 = (alu8+-1.0f);
  float alu17 = (alu12+1.0f);
  float alu18 = (alu14+-1.0f);
  float alu19 = (trunc(alu4)*0.5f);
  float alu20 = (trunc(alu10)*0.5f);
  bool alu21 = (alu12<alu11);
  bool alu22 = (alu13<alu14);
  bool alu23 = ((0.0f<alu10)!=(trunc(alu20)==alu20));
  float alu24 = (alu21?alu17:alu12);
  float alu25 = (alu22?alu18:alu14);
  float alu26 = (alu23?alu25:alu24);
  bool alu27 = (alu26<0.0f);
  float alu28 = (alu27?0.0f:alu26);
  int alu29 = (alu21?((int)(alu17)):((int)(alu12)));
  int alu30 = (alu22?((int)(alu18)):((int)(alu14)));
  int alu31 = (alu23?alu30:alu29);
  int alu32 = (alu27?0:alu31);
  int alu33 = ((1207.0f<alu28)?1207:alu32);
  bool alu34 = (alu6<alu5);
  bool alu35 = (alu7<alu8);
  bool alu36 = ((0.0f<alu4)!=(trunc(alu19)==alu19));
  float alu37 = (alu34?alu15:alu6);
  float alu38 = (alu35?alu16:alu8);
  float alu39 = (alu36?alu38:alu37);
  bool alu40 = (alu39<0.0f);
  float alu41 = (alu40?0.0f:alu39);
  int alu42 = (alu34?((int)(alu15)):((int)(alu6)));
  int alu43 = (alu35?((int)(alu16)):((int)(alu8)));
  int alu44 = (alu36?alu43:alu42);
  int alu45 = (alu40?0:alu44);
  int alu46 = ((1927.0f<alu41)?1927:alu45);
  int alu47 = ((alu33<<11)+alu46);
  int alu48 = ((alu47<0)?(alu47+2473984):alu47);
  uchar val9 = (((-1<alu48)&(alu48<2473984))?*(data2_4804608+alu48):((uchar)(0u)));
  float cast2 = ((float)((alu0+2)));
  float alu49 = (1/((val6*cast2)+alu1+val8));
  float alu50 = (((val0*cast2)+alu3+val2)*alu49);
  float alu51 = (alu50+-0.5f);
  float alu52 = trunc(alu51);
  float alu53 = (alu50+0.5f);
  float alu54 = trunc(alu53);
  float alu55 = (((val3*cast2)+alu9+val5)*alu49);
  float alu56 = (alu55+-0.5f);
  float alu57 = trunc(alu56);
  float alu58 = (alu55+0.5f);
  float alu59 = trunc(alu58);
  float alu60 = (alu52+1.0f);
  float alu61 = (alu54+-1.0f);
  float alu62 = (alu57+1.0f);
  float alu63 = (alu59+-1.0f);
  float alu64 = (trunc(alu50)*0.5f);
  float alu65 = (trunc(alu55)*0.5f);
  bool alu66 = (alu57<alu56);
  bool alu67 = (alu58<alu59);
  bool alu68 = ((0.0f<alu55)!=(trunc(alu65)==alu65));
  float alu69 = (alu66?alu62:alu57);
  float alu70 = (alu67?alu63:alu59);
  float alu71 = (alu68?alu70:alu69);
  bool alu72 = (alu71<0.0f);
  float alu73 = (alu72?0.0f:alu71);
  int alu74 = (alu66?((int)(alu62)):((int)(alu57)));
  int alu75 = (alu67?((int)(alu63)):((int)(alu59)));
  int alu76 = (alu68?alu75:alu74);
  int alu77 = (alu72?0:alu76);
  int alu78 = ((1207.0f<alu73)?1207:alu77);
  bool alu79 = (alu52<alu51);
  bool alu80 = (alu53<alu54);
  bool alu81 = ((0.0f<alu50)!=(trunc(alu64)==alu64));
  float alu82 = (alu79?alu60:alu52);
  float alu83 = (alu80?alu61:alu54);
  float alu84 = (alu81?alu83:alu82);
  bool alu85 = (alu84<0.0f);
  float alu86 = (alu85?0.0f:alu84);
  int alu87 = (alu79?((int)(alu60)):((int)(alu52)));
  int alu88 = (alu80?((int)(alu61)):((int)(alu54)));
  int alu89 = (alu81?alu88:alu87);
  int alu90 = (alu85?0:alu89);
  int alu91 = ((1927.0f<alu86)?1927:alu90);
  int alu92 = ((alu78<<11)+alu91);
  int alu93 = ((alu92<0)?(alu92+2473984):alu92);
  uchar val10 = (((-1<alu93)&(alu93<2473984))?*(data2_4804608+alu93):((uchar)(0u)));
  float cast3 = ((float)(alu0));
  float alu94 = (1/((val6*cast3)+alu1+val8));
  float alu95 = (((val0*cast3)+alu3+val2)*alu94);
  float alu96 = (alu95+-0.5f);
  float alu97 = trunc(alu96);
  float alu98 = (alu95+0.5f);
  float alu99 = trunc(alu98);
  float alu100 = (((val3*cast3)+alu9+val5)*alu94);
  float alu101 = (alu100+-0.5f);
  float alu102 = trunc(alu101);
  float alu103 = (alu100+0.5f);
  float alu104 = trunc(alu103);
  float alu105 = (alu97+1.0f);
  float alu106 = (alu99+-1.0f);
  float alu107 = (alu102+1.0f);
  float alu108 = (alu104+-1.0f);
  float alu109 = (trunc(alu95)*0.5f);
  float alu110 = (trunc(alu100)*0.5f);
  bool alu111 = (alu102<alu101);
  bool alu112 = (alu103<alu104);
  bool alu113 = ((0.0f<alu100)!=(trunc(alu110)==alu110));
  float alu114 = (alu111?alu107:alu102);
  float alu115 = (alu112?alu108:alu104);
  float alu116 = (alu113?alu115:alu114);
  bool alu117 = (alu116<0.0f);
  float alu118 = (alu117?0.0f:alu116);
  int alu119 = (alu111?((int)(alu107)):((int)(alu102)));
  int alu120 = (alu112?((int)(alu108)):((int)(alu104)));
  int alu121 = (alu113?alu120:alu119);
  int alu122 = (alu117?0:alu121);
  int alu123 = ((1207.0f<alu118)?1207:alu122);
  bool alu124 = (alu97<alu96);
  bool alu125 = (alu98<alu99);
  bool alu126 = ((0.0f<alu95)!=(trunc(alu109)==alu109));
  float alu127 = (alu124?alu105:alu97);
  float alu128 = (alu125?alu106:alu99);
  float alu129 = (alu126?alu128:alu127);
  bool alu130 = (alu129<0.0f);
  float alu131 = (alu130?0.0f:alu129);
  int alu132 = (alu124?((int)(alu105)):((int)(alu97)));
  int alu133 = (alu125?((int)(alu106)):((int)(alu99)));
  int alu134 = (alu126?alu133:alu132);
  int alu135 = (alu130?0:alu134);
  int alu136 = ((1927.0f<alu131)?1927:alu135);
  int alu137 = ((alu123<<11)+alu136);
  int alu138 = ((alu137<0)?(alu137+2473984):alu137);
  uchar val11 = (((-1<alu138)&(alu138<2473984))?*(data2_4804608+alu138):((uchar)(0u)));
  int alu139 = (alu0+(idx1*1440));
  uchar cast4 = ((uchar)(((alu40|(1927.0f<alu39)|alu27|(1207.0f<alu26))!=1)));
  uchar cast5 = ((uchar)(((alu85|(1927.0f<alu84)|alu72|(1207.0f<alu71))!=1)));
  uchar cast6 = ((uchar)(((alu130|(1927.0f<alu129)|alu117|(1207.0f<alu116))!=1)));
  *(data0_1382400+(alu139+1)) = ((val9*cast4)+((((uchar)(1u))-cast4)<<((uchar)(4u))));
  *(data0_1382400+(alu139+2)) = ((val10*cast5)+((((uchar)(1u))-cast5)<<((uchar)(4u))));
  *(data0_1382400+alu139) = ((val11*cast6)+((((uchar)(1u))-cast6)<<((uchar)(4u))));
}