previous | start

Reverse engineering: loops (3)

int dw_loop(int x, int y, int n)      int dw_loop(int x, int y, int n)             
{                                     {
  L3:                                    do {
    x = x + n;                             x = x + n;
    y = y * n;                             y = y * n;
    n = n - 1;                             n = n - 1;
    if (n <= 0) goto L5;                 } while((n > 0) && (y < n) );
    if (y < n) goto L3                   return x;
  L5:                                 }
    return x;              
}      
   


previous | start