qz$a.java 2.08 KB
import com.google.common.hash.AbstractStreamingHashFunction.AbstractStreamingHasher;
import com.google.common.hash.HashCode;
import java.nio.ByteBuffer;

final class qz$a
  extends AbstractStreamingHashFunction.AbstractStreamingHasher
{
  private final int a;
  private final int b;
  private long c = 8317987319222330741L;
  private long d = 7237128888997146477L;
  private long e = 7816392313619706465L;
  private long f = 8387220255154660723L;
  private long g = 0L;
  private long h = 0L;
  
  qz$a(int paramInt1, int paramInt2, long paramLong1, long paramLong2)
  {
    super(8);
    this.a = paramInt1;
    this.b = paramInt2;
    this.c ^= paramLong1;
    this.d ^= paramLong2;
    this.e ^= paramLong1;
    this.f ^= paramLong2;
  }
  
  private void a(int paramInt)
  {
    int i = 0;
    while (i < paramInt)
    {
      this.c += this.d;
      this.e += this.f;
      this.d = Long.rotateLeft(this.d, 13);
      this.f = Long.rotateLeft(this.f, 16);
      this.d ^= this.c;
      this.f ^= this.e;
      this.c = Long.rotateLeft(this.c, 32);
      this.e += this.d;
      this.c += this.f;
      this.d = Long.rotateLeft(this.d, 17);
      this.f = Long.rotateLeft(this.f, 21);
      this.d ^= this.e;
      this.f ^= this.c;
      this.e = Long.rotateLeft(this.e, 32);
      i += 1;
    }
  }
  
  private void a(long paramLong)
  {
    this.f ^= paramLong;
    a(this.a);
    this.c ^= paramLong;
  }
  
  public final HashCode a()
  {
    this.h ^= this.g << 56;
    a(this.h);
    this.e ^= 0xFF;
    a(this.b);
    return HashCode.fromLong(this.c ^ this.d ^ this.e ^ this.f);
  }
  
  protected final void process(ByteBuffer paramByteBuffer)
  {
    this.g += 8L;
    a(paramByteBuffer.getLong());
  }
  
  protected final void processRemaining(ByteBuffer paramByteBuffer)
  {
    this.g += paramByteBuffer.remaining();
    int i = 0;
    while (paramByteBuffer.hasRemaining())
    {
      this.h ^= (paramByteBuffer.get() & 0xFF) << i;
      i += 8;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/qz$a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */