package com.google.android.m4b.maps.bt;

import com.google.common.collect.Lists;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Set;

public final class d
  implements c
{
  private static boolean c = false;
  private int a;
  private int b;

  static void b()
  {
    if (!c)
      throw new RuntimeException("Attempt to update live data from outside a Behavior");
  }

  final void a()
  {
    LinkedList localLinkedList;
    try
    {
      this.b = this.a;
      this.a = ((1 + this.a) % 2);
      null.clear();
      localLinkedList = Lists.newLinkedList(null);
      Iterator localIterator1 = null.iterator();
      if (localIterator1.hasNext())
        null.put((b)localIterator1.next(), Integer.valueOf(0));
    }
    finally
    {
    }
    b localb2 = (b)localLinkedList.pop();
    int k = ((Integer)null.get(localb2)).intValue();
    while (true)
    {
      int m;
      int n;
      try
      {
        Set localSet = (Set)null.remove(localb2);
        if (localSet == null)
          break;
        Iterator localIterator4 = localSet.iterator();
        if (!localIterator4.hasNext())
          break;
        b localb3 = (b)localIterator4.next();
        m = k + 1;
        if (null.containsKey(localb3))
        {
          n = ((Integer)null.get(localb3)).intValue();
          if (n < m)
            n = m;
          null.put(localb3, Integer.valueOf(n));
          localLinkedList.push(localb3);
        }
      }
      finally
      {
      }
    }
    Iterator localIterator2 = null.keySet().iterator();
    while (localIterator2.hasNext())
      null.add((b)localIterator2.next());
    int i;
    if (null.isEmpty())
      i = 0;
    while (!null.isEmpty())
    {
      do
      {
        j = i;
        null.add((b)null.poll());
        b localb1 = (b)null.peek();
        if (localb1 == null)
          break;
        i = ((Integer)null.get(localb1)).intValue();
      }
      while (i == j);
      int j = i;
      c = true;
      try
      {
        Iterator localIterator3 = null.iterator();
        while (localIterator3.hasNext())
          ((b)localIterator3.next()).b(this);
      }
      finally
      {
        c = false;
      }
      i = ((Integer)null.get(null.peek())).intValue();
      continue;
      c = false;
      null.clear();
      i = j;
    }
    null.clear();
  }

  final void a(b paramb)
  {
    c = true;
    try
    {
      paramb.a(this);
      return;
    }
    finally
    {
      c = false;
    }
  }

  // ERROR //
  final void b(b paramb)
  {
    // Byte code:
    //   0: iconst_1
    //   1: putstatic 15	com/google/android/m4b/maps/bt/d:c	Z
    //   4: aconst_null
    //   5: monitorenter
    //   6: aload_0
    //   7: getfield 27	com/google/android/m4b/maps/bt/d:b	I
    //   10: pop
    //   11: aconst_null
    //   12: aload_1
    //   13: invokeinterface 123 2 0
    //   18: pop
    //   19: aconst_null
    //   20: monitorexit
    //   21: aconst_null
    //   22: monitorenter
    //   23: aconst_null
    //   24: aload_1
    //   25: invokeinterface 85 2 0
    //   30: pop
    //   31: aconst_null
    //   32: invokeinterface 97 1 0
    //   37: invokeinterface 42 1 0
    //   42: astore 8
    //   44: aload 8
    //   46: invokeinterface 48 1 0
    //   51: ifeq +51 -> 102
    //   54: aconst_null
    //   55: aload 8
    //   57: invokeinterface 52 1 0
    //   62: checkcast 54	com/google/android/m4b/maps/bt/b
    //   65: invokeinterface 78 2 0
    //   70: checkcast 29	java/util/Set
    //   73: aload_1
    //   74: invokeinterface 123 2 0
    //   79: pop
    //   80: goto -36 -> 44
    //   83: astore 6
    //   85: aconst_null
    //   86: monitorexit
    //   87: aload 6
    //   89: athrow
    //   90: astore_2
    //   91: iconst_0
    //   92: putstatic 15	com/google/android/m4b/maps/bt/d:c	Z
    //   95: aload_2
    //   96: athrow
    //   97: astore_3
    //   98: aconst_null
    //   99: monitorexit
    //   100: aload_3
    //   101: athrow
    //   102: aconst_null
    //   103: monitorexit
    //   104: iconst_0
    //   105: putstatic 15	com/google/android/m4b/maps/bt/d:c	Z
    //   108: return
    //
    // Exception table:
    //   from	to	target	type
    //   23	44	83	finally
    //   44	80	83	finally
    //   102	104	83	finally
    //   4	6	90	finally
    //   21	23	90	finally
    //   85	90	90	finally
    //   98	102	90	finally
    //   6	21	97	finally
  }
}

/* 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.bt.d
 * JD-Core Version:    0.6.2
 */