
void E_960_480_3n1(unsigned char* restrict data0_1382400, float* restrict data1_9, unsigned char* restrict data2_2428928) {
  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));
  for (int Lidx1_0 = 0; Lidx1_0 < 960; Lidx1_0++) {
    float cast0 = ((float)(Lidx1_0));
    float alu0 = (val1*cast0);
    float alu1 = (val4*cast0);
    float alu2 = (val7*cast0);
    for (int Lidx1_1 = 0; Lidx1_1 < 480; Lidx1_1++) {
      int alu3 = (Lidx1_1*3);
      float cast1 = ((float)((alu3+1)));
      float alu4 = ((val6*cast1)+alu2+val8);
      float alu5 = (((val0*cast1)+alu0+val2)/alu4);
      float alu6 = (alu5+-0.5f);
      float alu7 = __builtin_truncf(alu6);
      float alu8 = (alu5+0.5f);
      float alu9 = __builtin_truncf(alu8);
      float alu10 = (((val3*cast1)+alu1+val5)/alu4);
      float alu11 = (alu10+-0.5f);
      float alu12 = __builtin_truncf(alu11);
      float alu13 = (alu10+0.5f);
      float alu14 = __builtin_truncf(alu13);
      float alu15 = (alu7+1.0f);
      float alu16 = (alu9+-1.0f);
      float alu17 = (alu12+1.0f);
      float alu18 = (alu14+-1.0f);
      float alu19 = (__builtin_truncf(alu5)*0.5f);
      float alu20 = (__builtin_truncf(alu10)*0.5f);
      _Bool alu21 = (alu12<alu11);
      _Bool alu22 = (alu13<alu14);
      _Bool alu23 = ((0.0f<alu10)!=(__builtin_truncf(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 = ((759.0f<alu28)?759:alu32);
      _Bool alu34 = (alu7<alu6);
      _Bool alu35 = (alu8<alu9);
      _Bool alu36 = ((0.0f<alu5)!=(__builtin_truncf(alu19)==alu19));
      float alu37 = (alu34?alu15:alu7);
      float alu38 = (alu35?alu16:alu9);
      float alu39 = (alu36?alu38:alu37);
      _Bool alu40 = (alu39<0.0f);
      float alu41 = (alu40?0.0f:alu39);
      int alu42 = (alu34?((int)(alu15)):((int)(alu7)));
      int alu43 = (alu35?((int)(alu16)):((int)(alu9)));
      int alu44 = (alu36?alu43:alu42);
      int alu45 = (alu40?0:alu44);
      int alu46 = ((1343.0f<alu41)?1343:alu45);
      int alu47 = ((alu33*1408)+alu46);
      int alu48 = ((alu47<0)?(alu47+1070080):alu47);
      unsigned char val9 = (((-1<alu48)&(alu48<1070080))?*(data2_2428928+alu48):((unsigned char)(0u)));
      float cast2 = ((float)((alu3+2)));
      float alu49 = ((val6*cast2)+alu2+val8);
      float alu50 = (((val0*cast2)+alu0+val2)/alu49);
      float alu51 = (alu50+-0.5f);
      float alu52 = __builtin_truncf(alu51);
      float alu53 = (alu50+0.5f);
      float alu54 = __builtin_truncf(alu53);
      float alu55 = (((val3*cast2)+alu1+val5)/alu49);
      float alu56 = (alu55+-0.5f);
      float alu57 = __builtin_truncf(alu56);
      float alu58 = (alu55+0.5f);
      float alu59 = __builtin_truncf(alu58);
      float alu60 = (alu52+1.0f);
      float alu61 = (alu54+-1.0f);
      float alu62 = (alu57+1.0f);
      float alu63 = (alu59+-1.0f);
      float alu64 = (__builtin_truncf(alu50)*0.5f);
      float alu65 = (__builtin_truncf(alu55)*0.5f);
      _Bool alu66 = (alu57<alu56);
      _Bool alu67 = (alu58<alu59);
      _Bool alu68 = ((0.0f<alu55)!=(__builtin_truncf(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 = ((759.0f<alu73)?759:alu77);
      _Bool alu79 = (alu52<alu51);
      _Bool alu80 = (alu53<alu54);
      _Bool alu81 = ((0.0f<alu50)!=(__builtin_truncf(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 = ((1343.0f<alu86)?1343:alu90);
      int alu92 = ((alu78*1408)+alu91);
      int alu93 = ((alu92<0)?(alu92+1070080):alu92);
      unsigned char val10 = (((-1<alu93)&(alu93<1070080))?*(data2_2428928+alu93):((unsigned char)(0u)));
      float cast3 = ((float)(alu3));
      float alu94 = ((val6*cast3)+alu2+val8);
      float alu95 = (((val0*cast3)+alu0+val2)/alu94);
      float alu96 = (alu95+-0.5f);
      float alu97 = __builtin_truncf(alu96);
      float alu98 = (alu95+0.5f);
      float alu99 = __builtin_truncf(alu98);
      float alu100 = (((val3*cast3)+alu1+val5)/alu94);
      float alu101 = (alu100+-0.5f);
      float alu102 = __builtin_truncf(alu101);
      float alu103 = (alu100+0.5f);
      float alu104 = __builtin_truncf(alu103);
      float alu105 = (alu97+1.0f);
      float alu106 = (alu99+-1.0f);
      float alu107 = (alu102+1.0f);
      float alu108 = (alu104+-1.0f);
      float alu109 = (__builtin_truncf(alu95)*0.5f);
      float alu110 = (__builtin_truncf(alu100)*0.5f);
      _Bool alu111 = (alu102<alu101);
      _Bool alu112 = (alu103<alu104);
      _Bool alu113 = ((0.0f<alu100)!=(__builtin_truncf(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 = ((759.0f<alu118)?759:alu122);
      _Bool alu124 = (alu97<alu96);
      _Bool alu125 = (alu98<alu99);
      _Bool alu126 = ((0.0f<alu95)!=(__builtin_truncf(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 = ((1343.0f<alu131)?1343:alu135);
      int alu137 = ((alu123*1408)+alu136);
      int alu138 = ((alu137<0)?(alu137+1070080):alu137);
      unsigned char val11 = (((-1<alu138)&(alu138<1070080))?*(data2_2428928+alu138):((unsigned char)(0u)));
      int alu139 = ((Lidx1_0*1440)+alu3);
      *(data0_1382400+(alu139+1)) = val9;
      *(data0_1382400+(alu139+2)) = val10;
      *(data0_1382400+alu139) = val11;
    }
  }
}