package com.google.android.m4b.maps.ao;

import android.graphics.Bitmap;
import android.graphics.Rect;
import com.google.android.m4b.maps.bq.m;
import com.google.android.m4b.maps.bu.bb;
import com.google.android.m4b.maps.bu.bb.a;
import com.google.android.m4b.maps.model.LatLng;

public final class e
  implements bb.a
{
  private m a;
  private final bb b;
  private final d c;

  public e(bb parambb, d paramd)
  {
    this.b = parambb;
    this.c = paramd;
  }

  private m a(String paramString, LatLng paramLatLng, Bitmap paramBitmap, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, float paramFloat5, float paramFloat6)
  {
    m localm = new m(b.b(paramLatLng), paramBitmap, null, Math.round(paramFloat1 * paramBitmap.getWidth()), Math.round(paramFloat2 * paramBitmap.getHeight()), null, null, false);
    localm.b(paramString);
    localm.a(paramBoolean1);
    localm.c(paramBoolean2);
    if (!paramBoolean3);
    for (boolean bool = true; ; bool = false)
    {
      localm.b(bool);
      localm.a(paramFloat5);
      localm.b(Math.round(paramFloat3 * paramBitmap.getWidth()), Math.round(paramFloat4 * paramBitmap.getHeight()));
      localm.b(paramFloat6);
      localm.a(this.b);
      return localm;
    }
  }

  public final void a()
  {
    Bitmap localBitmap = this.b.c();
    this.a = a(this.b.getId(), this.b.b(), localBitmap, this.b.e(), this.b.g(), this.b.i(), this.b.k(), this.b.n(), this.b.o(), this.b.p(), this.b.q(), this.b.r());
    this.c.a(this);
    this.c.a();
  }

  public final void a(int paramInt)
  {
    if ((paramInt & 0x1) != 0)
    {
      LatLng localLatLng = this.b.getPosition();
      this.a.a(b.b(localLatLng));
      this.c.b();
      this.c.a();
    }
    if ((paramInt & 0x2) != 0)
    {
      String str2 = this.b.getTitle();
      this.b.getSnippet();
      this.c.a(this.a);
      this.a = a(this.b.getId(), this.b.b(), this.b.c(), this.b.d(), this.b.f(), this.b.h(), this.b.j(), this.b.n(), this.b.o(), this.b.p(), this.b.q(), this.b.r());
      this.a.a(str2);
      this.c.a(this);
      this.c.a();
    }
    if ((paramInt & 0x4) != 0)
    {
      float f3 = this.b.e();
      float f4 = this.b.g();
      this.a.a(Math.round(f3 * this.a.j().getWidth()), Math.round(f4 * this.a.j().getHeight()));
      this.c.a();
    }
    m localm;
    if ((paramInt & 0x8) != 0)
    {
      boolean bool2 = this.b.p();
      localm = this.a;
      if (bool2)
        break label578;
    }
    label578: for (boolean bool3 = true; ; bool3 = false)
    {
      localm.b(bool3);
      this.c.a();
      if ((paramInt & 0x10) != 0)
      {
        this.a.a(this.b.q());
        this.c.a();
      }
      if ((paramInt & 0x40) != 0)
      {
        boolean bool1 = this.b.o();
        if (!bool1)
          this.c.c(this);
        this.a.c(bool1);
        this.c.a();
        this.c.b();
      }
      if ((paramInt & 0x400) != 0)
      {
        this.a.b(this.b.r());
        this.c.a();
      }
      if ((paramInt & 0x200) != 0)
      {
        float f1 = this.b.i();
        float f2 = this.b.k();
        this.a.b(Math.round(f1 * this.a.j().getWidth()), Math.round(f2 * this.a.j().getHeight()));
        this.c.a();
      }
      if ((paramInt & 0x80) != 0)
      {
        String str1 = this.b.l();
        this.a.a(str1);
        this.c.a();
      }
      if ((paramInt & 0x20) != 0)
        this.a.a(this.b.n());
      if ((paramInt & 0x100) != 0)
      {
        this.b.m();
        this.c.a();
      }
      return;
    }
  }

  public final void b()
  {
    this.c.a(this.a);
    this.c.a();
  }

  public final void c()
  {
    this.c.b(this);
    this.c.a();
  }

  public final void d()
  {
    this.c.c(this);
    this.c.a();
  }

  public final void e()
  {
    bb localbb = this.b;
    com.google.android.m4b.maps.aj.b localb = this.a.i();
    localbb.a(new LatLng(1.0E-006D * localb.a(), 1.0E-006D * localb.b()));
  }

  public final boolean f()
  {
    return this.c.b(this.a);
  }

  public final m g()
  {
    return this.a;
  }

  public final bb h()
  {
    return this.b;
  }

  public final Rect i()
  {
    return this.a.p();
  }
}

/* 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.ao.e
 * JD-Core Version:    0.6.2
 */