public static void method796(int x, int y, int width, int height, int i_30_, int i_31_) { int i_32_ = 0; int i_33_ = 65536 / height; if (x < clipX) { width -= clipX - x; x = clipX; } if (y < clipY) { i_32_ += (clipY - y) * i_33_; height -= clipY - y; y = clipY; } if (x + width > clipWidth) width = clipWidth - x; if (y + height > clipHeight) height = clipHeight - y; int toSkip = imageWidth - width; int index = x + y * imageWidth; for (int i_36_ = -height; i_36_ < 0; i_36_++) { int i_37_ = 65536 - i_32_ >> 8; int i_38_ = i_32_ >> 8; int i_39_ = ((i_30_ & 0xff00ff) * i_37_ + (i_31_ & 0xff00ff) * i_38_ & ~0xff00ff) + ((i_30_ & 0xff00) * i_37_ + (i_31_ & 0xff00) * i_38_ & 0xff0000) >>> 8; for (int i_40_ = -width; i_40_ < 0; i_40_++) imageData[index++] = i_39_; index += toSkip; i_32_ += i_33_; }