package com.google.android.m4b.maps.bj;

import android.content.Context;
import android.graphics.Bitmap;
import android.opengl.Matrix;
import android.util.FloatMath;
import android.view.SurfaceHolder;
import android.view.SurfaceHolder.Callback;
import android.view.View;
import com.google.android.m4b.maps.bu.bp;
import com.google.android.m4b.maps.bu.bw;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Semaphore;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.egl.EGLSurface;
import javax.microedition.khronos.opengles.GL10;

final class x extends Thread
  implements SurfaceHolder.Callback, u.c
{
  private static final double a = Math.tan(bp.o(45.0F));
  private static final Semaphore b = new Semaphore(1);
  private k A;
  private volatile boolean B;
  private i C;
  private h D;
  private final ah E = new ah();
  private final u F;
  private Context c;
  private SurfaceHolder d;
  private boolean e;
  private EGL10 f;
  private EGLContext g;
  private EGLDisplay h;
  private EGLSurface i;
  private EGLConfig j;
  private GL10 k;
  private boolean l;
  private boolean m;
  private bw n;
  private ae o;
  private q p;
  private c q;
  private w r;
  private p s;
  private f t;
  private int u;
  private g v;
  private int w;
  private int x;
  private b y;
  private boolean z;

  x(u paramu)
  {
    this.F = paramu;
    this.w = 0;
    this.x = 0;
    this.A = new k(true, 512, 128);
    this.t = new f();
    this.y = new b((byte)0);
    this.r = new w();
  }

  public static float a(float paramFloat)
  {
    if (c(paramFloat))
      return bp.n(2.0F * (float)Math.atan(a / paramFloat));
    return 90.0F;
  }

  private a a(a parama)
  {
    b localb1 = this.y;
    if (parama != null);
    try
    {
      b localb3 = this.y;
      parama.a = localb3.a;
      parama.e = null;
      localb3.a = parama;
      b localb2 = this.y;
      a locala = localb2.b;
      if (locala != null)
      {
        localb2.b = locala.a;
        locala.a = null;
        if (localb2.b == null)
          localb2.c = null;
      }
      return locala;
    }
    finally
    {
    }
  }

  private final void a(int paramInt1, int paramInt2, int paramInt3)
  {
    a(paramInt1, paramInt2, paramInt3, null);
  }

  private final void a(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    synchronized (this.y)
    {
      if (this.y.a())
        this.y.notify();
      b localb2 = this.y;
      a locala = localb2.c;
      if ((locala != null) && (locala.b == paramInt1))
      {
        locala.c = paramInt2;
        locala.d = paramInt3;
        locala.e = paramObject;
        return;
      }
      localb2.a(paramInt1, paramInt2, paramInt3, paramObject);
    }
  }

  private final void a(int paramInt, Object paramObject)
  {
    synchronized (this.y)
    {
      if (this.y.a())
        this.y.notify();
      this.y.a(paramInt, 0, 0, paramObject);
      return;
    }
  }

  private void a(long paramLong)
  {
    if ((this.w == 0) || (this.x == 0) || (this.g == null));
    int i1;
    int i2;
    label34: 
    do
    {
      return;
      if (!this.l)
        break;
      i1 = 2;
      i2 = 0;
    }
    while (i2 >= i1);
    GL10 localGL10 = this.k;
    label108: int i7;
    label142: int i8;
    int i9;
    if (localGL10 != null)
    {
      if ((this.m) && (this.p != null));
      switch (this.p.q)
      {
      default:
        this.q = new ab(this.F, this);
        if ((this.p != null) && (this.D != null))
          if ((this.C != null) && (this.C.b()))
          {
            i7 = 1;
            h localh = this.D;
            i8 = 0;
            i9 = 0;
            if (localh != null)
            {
              q localq = this.D.a;
              i8 = 0;
              i9 = 0;
              if (localq != null)
              {
                if (this.D.a.o)
                  break label889;
                Iterator localIterator = this.D.a.r.iterator();
                s locals;
                do
                {
                  if (!localIterator.hasNext())
                    break;
                  locals = (s)localIterator.next();
                }
                while (this.o.a(locals) != null);
              }
            }
          }
        break;
      case 1:
      }
    }
    label301: label610: label883: label889: for (int i11 = 0; ; i11 = 1)
    {
      boolean bool = this.D.a.a;
      i9 = i11;
      i8 = bool;
      int i10;
      if ((i7 != 0) && ((i9 != 0) || (i8 != 0) || (this.D == null) || (this.D.a == null)))
      {
        i10 = 1;
        if (i10 == 0)
          break label883;
        if (this.p.y != null)
          this.p.y.b();
        this.n = this.C.a;
        this.C = null;
        a(this.D);
        this.D = null;
      }
      for (int i3 = 1; ; i3 = 0)
      {
        int i4 = this.w;
        int i5 = this.x;
        if (((this.l) || (this.m)) && (this.p != null))
        {
          this.q.a(this.p, this.o, i4, i5);
          this.r.a(0, 0, i4, i5);
          this.s.a(this.p, i4, i5);
        }
        if ((this.p != null) || (i3 == 0))
        {
          localGL10.glClearColor(0.0F, 0.0F, 0.0F, 1.0F);
          localGL10.glClear(16384);
          if ((this.p != null) && ((this.p == null) || (!this.p.b())) && (this.n != null) && (this.q != null));
        }
        else
        {
          this.l = false;
          this.m = false;
          ((EGL10)EGLContext.getEGL()).eglSwapBuffers(this.h, this.i);
          i2++;
          break label34;
          i1 = 1;
          break;
          this.q = new a(this.F, this);
          break label108;
          i7 = 0;
          break label142;
          i10 = 0;
          break label301;
        }
        localGL10.glViewport(0, 0, i4, i5);
        bw localbw;
        int i6;
        if (this.C == null)
        {
          localbw = this.n;
          this.q.a(localGL10, localbw, this.t, this.C);
          if (this.v != null)
          {
            if (!this.p.c())
              break label841;
            i6 = 10000;
          }
        }
        while (true)
        {
          if (i6 != this.u)
          {
            this.v.a(i6);
            this.u = i6;
          }
          if (this.C == null)
            this.s.a(localGL10, this.n, paramLong);
          if ((!this.p.o) && (this.p.p))
            break;
          this.v.b(-2);
          this.p.o = false;
          this.p.p = true;
          break;
          float f1 = bp.b(this.C.a.b(), this.n.b());
          float f2 = this.C.a.c() - this.n.c();
          localbw = new bw(this.n.b() + f1 * this.C.a(), this.n.c() + f2 * this.C.a(), 0.0F);
          break label610;
          f localf = this.t;
          if (localf.b == 0)
            i6 = 0;
          else
            i6 = (int)(10000.0F * localf.a / localf.b);
        }
      }
    }
  }

  private void a(e parame)
  {
    float[] arrayOfFloat4;
    e locale;
    if (this.n == null)
    {
      arrayOfFloat4 = null;
      locale = parame;
    }
    while (true)
    {
      locale.e = arrayOfFloat4;
      try
      {
        parame.d = true;
        parame.notify();
        return;
        this.r.a(this.k);
        float[] arrayOfFloat5;
        if (parame.c)
        {
          arrayOfFloat5 = new float[16];
          Matrix.multiplyMM(arrayOfFloat5, 0, this.n.a(), 0, this.p.d(), 0);
          Matrix.rotateM(arrayOfFloat5, 0, -this.p.s, 0.0F, 1.0F, 0.0F);
        }
        for (float[] arrayOfFloat1 = arrayOfFloat5; ; arrayOfFloat1 = this.n.a())
        {
          float[] arrayOfFloat2 = new float[4];
          w localw = this.r;
          float[] arrayOfFloat3 = new float[3];
          arrayOfFloat3[0] = parame.a;
          arrayOfFloat3[1] = (this.x - parame.b);
          arrayOfFloat3[2] = 1.0F;
          localw.b(arrayOfFloat3, 0, arrayOfFloat1, arrayOfFloat2, 0);
          arrayOfFloat4 = new float[2];
          bp.a(arrayOfFloat2[0], arrayOfFloat2[1], arrayOfFloat2[2], arrayOfFloat4);
          if (!parame.c)
            arrayOfFloat4[0] = bp.b(0.5F + arrayOfFloat4[0]);
          if ((!Float.isNaN(arrayOfFloat4[0])) && (!Float.isNaN(arrayOfFloat4[1])))
            break label234;
          locale = parame;
          arrayOfFloat4 = null;
          break;
        }
        label234: locale = parame;
      }
      finally
      {
      }
    }
  }

  private void a(h paramh)
  {
    try
    {
      if (this.C != null)
        this.D = paramh;
      while (true)
      {
        return;
        if ((this.p != null) && (this.p.y != null))
          this.p.y.b();
        this.p = paramh.a;
        this.m = true;
        if (this.p != null)
          this.E.a(this.p, this.n);
      }
    }
    finally
    {
    }
  }

  private void a(j paramj)
  {
    float[] arrayOfFloat3;
    j localj;
    if (this.n == null)
    {
      arrayOfFloat3 = null;
      localj = paramj;
    }
    while (true)
    {
      localj.d = arrayOfFloat3;
      try
      {
        paramj.c = true;
        paramj.notify();
        return;
        float f1 = bp.b(paramj.a - 0.5F);
        float[] arrayOfFloat1 = new float[3];
        bp.a(f1, paramj.b, arrayOfFloat1, 0);
        this.r.a(this.k);
        float[] arrayOfFloat2 = new float[4];
        this.r.a(arrayOfFloat1, 0, this.n.a(), arrayOfFloat2, 0);
        if ((Float.isNaN(arrayOfFloat2[0])) || (Float.isNaN(arrayOfFloat2[1])) || (arrayOfFloat2[2] > 1.0F))
        {
          localj = paramj;
          arrayOfFloat3 = null;
          continue;
        }
        arrayOfFloat3 = new float[2];
        arrayOfFloat3[0] = arrayOfFloat2[0];
        arrayOfFloat3[1] = (this.x - (int)arrayOfFloat2[1]);
        localj = paramj;
      }
      finally
      {
      }
    }
  }

  private static void a(Object paramObject)
  {
    try
    {
      paramObject.notifyAll();
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  private boolean a(EGL10 paramEGL10)
  {
    int i1 = paramEGL10.eglGetError();
    if (i1 != 12288)
    {
      Object[] arrayOfObject = new Object[1];
      arrayOfObject[0] = Integer.valueOf(i1);
      String.format("EGL error: %d", arrayOfObject);
      this.k = null;
      return true;
    }
    return false;
  }

  public static float b(float paramFloat)
  {
    if (c(paramFloat))
      return 90.0F;
    return bp.n(2.0F * (float)Math.atan(a * paramFloat));
  }

  private final void b(int paramInt1, int paramInt2)
  {
    a(paramInt1, paramInt2, 0, null);
  }

  private final void b(int paramInt, Object paramObject)
  {
    a(paramInt, 0, 0, paramObject);
  }

  private static boolean c(float paramFloat)
  {
    return paramFloat >= 1.0F;
  }

  private final void e(int paramInt)
  {
    a(paramInt, 0, 0, null);
  }

  private void f()
  {
    if (this.C != null)
      return;
    while (true)
    {
      synchronized (this.y)
      {
        if (!this.y.a())
          break;
        if (this.g == null)
        {
          l1 = 0L;
          if (l1 == 0L)
            break label82;
          long l2 = l1 - System.currentTimeMillis();
          if (l2 <= 0L)
            break;
          this.y.wait(l2);
        }
      }
      long l1 = this.s.a();
      continue;
      label82: this.y.wait();
    }
  }

  private void g()
  {
    i();
    this.d.removeCallback(this);
  }

  private void h()
  {
    EGLContext localEGLContext;
    if ((this.g == null) && (this.e))
    {
      b.acquire();
      this.f = ((EGL10)EGLContext.getEGL());
      EGLDisplay localEGLDisplay1 = this.f.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
      int[] arrayOfInt1 = new int[2];
      this.f.eglInitialize(localEGLDisplay1, arrayOfInt1);
      int[] arrayOfInt2 = { 12325, 16, 12344 };
      EGLConfig[] arrayOfEGLConfig = new EGLConfig[1];
      int[] arrayOfInt3 = new int[1];
      this.f.eglChooseConfig(localEGLDisplay1, arrayOfInt2, arrayOfEGLConfig, 1, arrayOfInt3);
      EGLConfig localEGLConfig = arrayOfEGLConfig[0];
      localEGLContext = this.f.eglCreateContext(localEGLDisplay1, localEGLConfig, EGL10.EGL_NO_CONTEXT, null);
      this.h = localEGLDisplay1;
      this.j = localEGLConfig;
      this.g = localEGLContext;
      if (a(this.f))
      {
        this.k = null;
        b.release();
      }
    }
    else
    {
      return;
    }
    this.k = ((GL10)localEGLContext.getGL());
    this.k = new c(this.k);
    GL10 localGL10 = this.k;
    EGL10 localEGL10 = (EGL10)EGLContext.getEGL();
    EGLDisplay localEGLDisplay2 = this.h;
    this.i = localEGL10.eglCreateWindowSurface(localEGLDisplay2, this.j, this.d, null);
    localEGL10.eglMakeCurrent(localEGLDisplay2, this.i, this.i, this.g);
    this.o.a(localGL10);
    this.A.a(localGL10);
    localGL10.glDisable(2929);
    localGL10.glDisable(3089);
    localGL10.glDisable(3024);
    localGL10.glDisable(2896);
    localGL10.glDisable(3042);
    localGL10.glHint(3152, 4354);
    localGL10.glShadeModel(7424);
    localGL10.glDisable(2884);
    localGL10.glFrontFace(2305);
    localGL10.glDepthFunc(515);
  }

  private void i()
  {
    EGLContext localEGLContext = this.g;
    GL10 localGL10 = this.k;
    EGLDisplay localEGLDisplay = this.h;
    EGLSurface localEGLSurface = this.i;
    if (localEGLContext != null)
    {
      this.o.c();
      this.A.b(localGL10);
      this.s.a(localGL10);
      if (localEGLDisplay != null)
      {
        this.f.eglMakeCurrent(localEGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
        this.f.eglDestroyContext(localEGLDisplay, localEGLContext);
        if (localEGLSurface != null)
          this.f.eglDestroySurface(localEGLDisplay, localEGLSurface);
        this.f.eglTerminate(localEGLDisplay);
      }
      this.f = null;
      this.g = null;
      b.release();
    }
  }

  private void j()
  {
    EGL10 localEGL10 = this.f;
    if (localEGL10 != null)
    {
      EGLDisplay localEGLDisplay = this.h;
      EGLSurface localEGLSurface = this.i;
      localEGL10.eglMakeCurrent(localEGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
      localEGL10.eglDestroySurface(localEGLDisplay, localEGLSurface);
      this.i = localEGL10.eglCreateWindowSurface(localEGLDisplay, this.j, this.d, null);
      localEGL10.eglMakeCurrent(localEGLDisplay, this.i, this.i, this.g);
      a(localEGL10);
    }
  }

  public final int a(int paramInt1, int paramInt2)
  {
    int i1 = -1 + this.x - paramInt2;
    return this.s.a(paramInt1, i1);
  }

  public final void a()
  {
    e(8);
  }

  public final void a(float paramFloat1, float paramFloat2)
  {
    a(14, -1, -1);
  }

  public final void a(int paramInt)
  {
    b(4, paramInt);
  }

  public final void a(Context paramContext, SurfaceHolder paramSurfaceHolder, g paramg, View paramView)
  {
    this.c = paramContext;
    this.d = paramSurfaceHolder;
    this.d.addCallback(this);
    this.o = new ae(17);
    this.v = paramg;
    this.q = null;
    this.d.setType(2);
    this.s = new p(this.c, this.r, paramView);
    setName("Renderer");
    setPriority(6);
    start();
    try
    {
      while (true)
      {
        boolean bool = this.z;
        if (bool)
          break;
        try
        {
          wait();
        }
        catch (InterruptedException localInterruptedException)
        {
        }
      }
      return;
    }
    finally
    {
    }
  }

  public final void a(q paramq)
  {
    b(3, new h(paramq));
  }

  public final void a(s params, Bitmap paramBitmap)
  {
    a(6, new d(params, paramBitmap));
  }

  public final void a(i parami)
  {
    b(18, parami);
  }

  public final void a(bw parambw)
  {
    b(5, parambw);
  }

  public final void a(boolean paramBoolean)
  {
    this.s.a(paramBoolean);
  }

  public final float[] a(float paramFloat1, float paramFloat2, boolean paramBoolean)
  {
    synchronized (new e(paramFloat1, paramFloat2, false))
    {
      a(15, ???);
    }
    try
    {
      label28: 
      do
        ???.wait();
      while (!???.d);
      return ???.e;
      localObject = finally;
      throw localObject;
    }
    catch (InterruptedException localInterruptedException)
    {
      break label28;
    }
  }

  public final void b()
  {
    e(7);
  }

  public final void b(int paramInt)
  {
    b(10, paramInt);
  }

  public final void b(boolean paramBoolean)
  {
    this.s.b(paramBoolean);
  }

  public final float[] b(float paramFloat1, float paramFloat2)
  {
    synchronized (new j(paramFloat1, paramFloat2))
    {
      a(19, ???);
    }
    try
    {
      label23: 
      do
        ???.wait();
      while (!???.c);
      return ???.d;
      localObject = finally;
      throw localObject;
    }
    catch (InterruptedException localInterruptedException)
    {
      break label23;
    }
  }

  public final void c()
  {
    e(9);
  }

  public final void c(int paramInt)
  {
    b(11, paramInt);
  }

  public final t d(int paramInt)
  {
    return this.s.a(paramInt);
  }

  public final boolean d()
  {
    return this.s.b();
  }

  public final p e()
  {
    return this.s;
  }

  public final void run()
  {
    Object localObject1 = null;
    Object localObject4;
    label25: int i3;
    int i4;
    while (true)
    {
      try
      {
      }
      catch (InterruptedException localInterruptedException)
      {
      }
      finally
      {
        g();
      }
      this.e = true;
      h();
      continue;
      i();
      this.e = false;
      continue;
      i3 = ((a)localObject4).c;
      i4 = ((a)localObject4).d;
      if ((this.w != 0) || (this.x != 0))
        break label787;
    }
    label787: for (int i5 = 1; ; i5 = 0)
    {
      if (i5 == 0)
      {
        Object[] arrayOfObject = new Object[4];
        arrayOfObject[0] = Integer.valueOf(this.w);
        arrayOfObject[1] = Integer.valueOf(this.x);
        arrayOfObject[2] = Integer.valueOf(i3);
        arrayOfObject[3] = Integer.valueOf(i4);
        String.format("Window changed size: %d,%d -> %d,%d Recreating OpenGL surface", arrayOfObject);
        j();
        j();
      }
      this.w = i3;
      this.x = i4;
      this.l = true;
      float f3 = b(this.w / this.x);
      this.E.a(f3);
      break label25;
      a((h)((a)localObject4).e);
      break label25;
      if (this.C == null)
        break label25;
      break label25;
      bw localbw = (bw)((a)localObject4).e;
      if (this.C != null)
        break label25;
      this.n = localbw;
      this.E.a(this.n);
      break label25;
      float f1 = Float.intBitsToFloat(((a)localObject4).c);
      float f2 = Float.intBitsToFloat(((a)localObject4).d);
      if (this.p.y == null)
        break label25;
      e locale = new e(f1, f2, false);
      a(locale);
      float[] arrayOfFloat1 = new float[2];
      this.p.a(locale.e[0], locale.e[1], arrayOfFloat1);
      float[] arrayOfFloat2 = new float[3];
      this.p.y.a();
      this.p.y.a(arrayOfFloat1[0], arrayOfFloat1[1], arrayOfFloat2);
      this.p.y.c(arrayOfFloat1[0], arrayOfFloat1[1]);
      this.p.a(arrayOfFloat2[0], arrayOfFloat2[1], arrayOfFloat2[2], arrayOfFloat2);
      break label25;
      this.C = ((i)((a)localObject4).e);
      this.D = null;
      break label25;
      d locald = (d)((a)localObject4).e;
      s locals = locald.a;
      Bitmap localBitmap = locald.b;
      if (this.o.a(locals) != null)
        break label25;
      this.o.a(locals, localBitmap);
      break label25;
      i();
      break label25;
      h();
      this.l = true;
      break label25;
      int i2 = ((a)localObject4).c;
      this.s.b(i2);
      break label25;
      int i1 = ((a)localObject4).c;
      this.s.a(i1, System.currentTimeMillis());
      break label25;
      a(((a)localObject4).e);
      break label25;
      this.B = true;
      break label25;
      a((e)((a)localObject4).e);
      break label25;
      a((j)((a)localObject4).e);
      break label25;
      if (this.g != null)
        a(System.currentTimeMillis());
      f();
      localObject1 = localObject4;
      break;
      g();
      return;
    }
  }

  public final void surfaceChanged(SurfaceHolder paramSurfaceHolder, int paramInt1, int paramInt2, int paramInt3)
  {
    a(2, paramInt2, paramInt3);
  }

  public final void surfaceCreated(SurfaceHolder paramSurfaceHolder)
  {
    e(0);
  }

  public final void surfaceDestroyed(SurfaceHolder paramSurfaceHolder)
  {
    e(1);
    try
    {
      if (this.B)
      {
        join();
        return;
      }
      synchronized (new Integer(0))
      {
        a(12, ???);
        ???.wait();
        return;
      }
    }
    catch (InterruptedException localInterruptedException)
    {
    }
  }

  static final class a
  {
    a a;
    int b;
    int c;
    int d;
    Object e;
  }

  static final class b
  {
    x.a a;
    x.a b;
    x.a c;

    final void a(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
    {
      x.a locala = this.a;
      if (locala != null)
      {
        this.a = locala.a;
        locala.a = null;
      }
      while (true)
      {
        locala.b = paramInt1;
        locala.c = paramInt2;
        locala.d = paramInt3;
        locala.e = paramObject;
        if (this.c != null)
          break;
        this.c = locala;
        this.b = locala;
        return;
        locala = new x.a();
      }
      this.c.a = locala;
      this.c = locala;
    }

    final boolean a()
    {
      return this.b == null;
    }
  }

  static abstract interface c
  {
    public abstract void a(q paramq, ae paramae, int paramInt1, int paramInt2);

    public abstract void a(GL10 paramGL10, bw parambw, x.f paramf, x.i parami);
  }

  static final class d
  {
    public final s a;
    public final Bitmap b;

    public d(s params, Bitmap paramBitmap)
    {
      this.a = params;
      this.b = paramBitmap;
    }
  }

  static final class e
  {
    public final float a;
    public final float b;
    public final boolean c;
    public boolean d;
    public float[] e;

    e(float paramFloat1, float paramFloat2, boolean paramBoolean)
    {
      this.a = paramFloat1;
      this.b = paramFloat2;
      this.c = paramBoolean;
    }
  }

  static final class f
  {
    public float a;
    public int b;

    public final void a(float paramFloat)
    {
      this.b = (1 + this.b);
      this.a = (paramFloat + this.a);
    }
  }

  static abstract interface g
  {
    public abstract void a(int paramInt);

    public abstract void b(int paramInt);
  }

  static final class h
  {
    public final q a;

    public h(q paramq)
    {
      this.a = paramq;
    }
  }

  public static final class i
  {
    public final bw a;
    private float b;
    private float c;
    private float d;
    private float e;
    private final long f;
    private final int g;

    public i(float paramFloat1, float paramFloat2, bw parambw, int paramInt)
    {
      this.b = paramFloat1;
      this.c = paramFloat2;
      this.d = paramFloat1;
      this.e = paramFloat2;
      this.a = new bw(parambw);
      this.f = System.currentTimeMillis();
      this.g = 1000;
    }

    public final float a()
    {
      return Math.min(1.0F, (float)(System.currentTimeMillis() - this.f) / this.g);
    }

    public final boolean a(b paramb)
    {
      float[] arrayOfFloat = new float[2];
      bp.a(this.b, 0.0F, -this.c, arrayOfFloat);
      float f1 = 0.9F * paramb.a(arrayOfFloat[0], arrayOfFloat[1], null);
      this.d = this.b;
      this.e = this.c;
      float f2 = FloatMath.sqrt(this.b * this.b + this.c * this.c);
      if ((f1 > 0.0F) && (f2 > f1))
      {
        this.d *= f1 / f2;
        this.e *= f1 / f2;
        return true;
      }
      return false;
    }

    public final boolean b()
    {
      return this.f + this.g < System.currentTimeMillis();
    }

    public final float c()
    {
      return this.d;
    }

    public final float d()
    {
      return this.e;
    }
  }

  static final class j
  {
    public final float a;
    public final float b;
    public boolean c;
    public float[] d;

    j(float paramFloat1, float paramFloat2)
    {
      this.a = paramFloat1;
      this.b = paramFloat2;
    }
  }
}

/* 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.x
 * JD-Core Version:    0.6.2
 */