package com.google.android.m4b.maps.bj;

public final class g
{
  private boolean a;
  private int b;
  private boolean c;
  private x d;

  public g()
  {
    b();
  }

  private void b()
  {
    this.a = false;
    this.b = -1;
    this.c = false;
  }

  private boolean c()
  {
    return this.d != null;
  }

  public final void a(x paramx)
  {
    this.d = paramx;
    b();
  }

  public final boolean a()
  {
    return this.a;
  }

  public final boolean a(float paramFloat1, float paramFloat2)
  {
    if (!c())
      return false;
    int i = this.d.a((int)paramFloat1, (int)paramFloat2);
    if (i != -1)
    {
      this.a = true;
      this.b = i;
      this.d.b(this.b);
      this.c = true;
    }
    while (true)
    {
      return this.a;
      b();
    }
  }

  public final boolean b(float paramFloat1, float paramFloat2)
  {
    boolean bool;
    if ((c()) && (this.a))
    {
      if (this.d.a((int)paramFloat1, (int)paramFloat2) != this.b)
        break label67;
      bool = true;
      if (bool != this.c)
      {
        this.c = bool;
        if (!bool)
          break label72;
        this.d.b(this.b);
      }
    }
    while (true)
    {
      return this.a;
      label67: bool = false;
      break;
      label72: this.d.b(-1);
    }
  }

  public final int c(float paramFloat1, float paramFloat2)
  {
    if ((c()) && (this.a))
    {
      if (this.c)
        this.d.b(-1);
      int i = this.d.a((int)paramFloat1, (int)paramFloat2);
      if (i == this.b)
      {
        b();
        return i;
      }
    }
    b();
    return -1;
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bj.g
 * JD-Core Version:    0.6.2
 */