void b(View paramView, int paramInt)
 {
   d locald = (d)paramView.getLayoutParams();
   if (g != null)
   {
     Object localObject = j;
     Rect localRect1 = k;
     Rect localRect2 = l;
     a(g, (Rect)localObject);
     a(paramView, false, localRect1);
     a(paramView, paramInt, (Rect)localObject, localRect2);
     paramInt = left - left;
     int i1 = top - top;
     if (paramInt != 0) {
       paramView.offsetLeftAndRight(paramInt);
     }
     if (i1 != 0) {
       paramView.offsetTopAndBottom(i1);
     }
     if ((paramInt != 0) || (i1 != 0))
     {
       localObject = locald.b();
       if (localObject != null) {
         ((Behavior)localObject).c(this, paramView, g);
       }
     }
   }
 }
 public void c(View paramView)
 {
   int i3 = g.size();
   int i2 = 0;
   int i1 = 0;
   if (i2 < i3)
   {
     View localView = (View)g.get(i2);
     if (localView == paramView) {
       i1 = 1;
     }
     for (;;)
     {
       i2 += 1;
       break;
       if (i1 != 0)
       {
         d locald = (d)localView.getLayoutParams();
         Behavior localBehavior = locald.b();
         if ((localBehavior != null) && (locald.a(this, localView, paramView))) {
           localBehavior.c(this, localView, paramView);
         }
       }
     }
   }
 }
 public void onStopNestedScroll(View paramView)
 {
   z.a(paramView);
   int i2 = getChildCount();
   int i1 = 0;
   if (i1 < i2)
   {
     View localView = getChildAt(i1);
     d locald = (d)localView.getLayoutParams();
     if (!locald.h()) {}
     for (;;)
     {
       i1 += 1;
       break;
       Behavior localBehavior = locald.b();
       if (localBehavior != null) {
         localBehavior.a(this, localView, paramView);
       }
       locald.g();
       locald.j();
     }
   }
   r = null;
   s = null;
 }
 public boolean onStartNestedScroll(View paramView1, View paramView2, int paramInt)
 {
   int i2 = getChildCount();
   int i1 = 0;
   boolean bool1 = false;
   if (i1 < i2)
   {
     View localView = getChildAt(i1);
     d locald = (d)localView.getLayoutParams();
     Behavior localBehavior = locald.b();
     if (localBehavior != null)
     {
       boolean bool2 = localBehavior.a(this, localView, paramView1, paramView2, paramInt);
       bool1 |= bool2;
       locald.a(bool2);
     }
     for (;;)
     {
       i1 += 1;
       break;
       locald.a(false);
     }
   }
   return bool1;
 }
 public void a(View paramView, int paramInt)
 {
   d locald = (d)paramView.getLayoutParams();
   if (locald.d()) {
     throw new IllegalStateException("An anchor may not be changed after CoordinatorLayout measurement begins before layout is complete.");
   }
   if (g != null)
   {
     a(paramView, g, paramInt);
     return;
   }
   if (e >= 0)
   {
     b(paramView, e, paramInt);
     return;
   }
   c(paramView, paramInt);
 }
 boolean e(View paramView)
 {
   d locald = (d)paramView.getLayoutParams();
   if (g != null) {
     return true;
   }
   int i2 = getChildCount();
   int i1 = 0;
   if (i1 < i2)
   {
     View localView = getChildAt(i1);
     if (localView == paramView) {}
     while (!locald.a(this, paramView, localView))
     {
       i1 += 1;
       break;
     }
     return true;
   }
   return false;
 }
 public List<View> d(View paramView)
 {
   d locald = (d)paramView.getLayoutParams();
   List localList = i;
   localList.clear();
   int i2 = getChildCount();
   int i1 = 0;
   if (i1 < i2)
   {
     View localView = getChildAt(i1);
     if (localView == paramView) {}
     for (;;)
     {
       i1 += 1;
       break;
       if (locald.a(this, paramView, localView)) {
         localList.add(localView);
       }
     }
   }
   return localList;
 }
 d a(View paramView)
 {
   d locald = (d)paramView.getLayoutParams();
   View localView;
   if (!b)
   {
     Class localClass = paramView.getClass();
     paramView = null;
     for (;;)
     {
       localView = paramView;
       if (localClass == null) {
         break;
       }
       paramView = (b)localClass.getAnnotation(b.class);
       localView = paramView;
       if (paramView != null) {
         break;
       }
       localClass = localClass.getSuperclass();
     }
     if (localView == null) {}
   }
   try
   {
     locald.a((Behavior)localView.a().newInstance());
     b = true;
     return locald;
   }
   catch (Exception paramView)
   {
     for (;;)
     {
       Log.e("CoordinatorLayout", "Default behavior class " + localView.a().getName() + " could not be instantiated. Did you forget a default constructor?", paramView);
     }
   }
 }
 private void f()
 {
   int i4 = 0;
   int i5 = getChildCount();
   if (g.size() != i5) {}
   for (int i1 = 1;; i1 = 0)
   {
     int i2 = 0;
     while (i2 < i5)
     {
       View localView = getChildAt(i2);
       d locald = a(localView);
       int i3 = i1;
       if (i1 == 0)
       {
         i3 = i1;
         if (locald.c(this, localView)) {
           i3 = 1;
         }
       }
       locald.b(this, localView);
       i2 += 1;
       i1 = i3;
     }
   }
   if (i1 != 0)
   {
     g.clear();
     i1 = i4;
     while (i1 < i5)
     {
       g.add(getChildAt(i1));
       i1 += 1;
     }
     Collections.sort(g, d);
   }
 }
 private boolean a(MotionEvent paramMotionEvent, int paramInt)
 {
   boolean bool1 = false;
   int i1 = 0;
   MotionEvent localMotionEvent = null;
   int i3 = t.a(paramMotionEvent);
   List localList = h;
   a(localList);
   int i4 = localList.size();
   int i2 = 0;
   View localView;
   Behavior localBehavior;
   if (i2 < i4)
   {
     localView = (View)localList.get(i2);
     d locald = (d)localView.getLayoutParams();
     localBehavior = locald.b();
     if (((bool1) || (i1 != 0)) && (i3 != 0))
     {
       if (localBehavior == null) {
         break label330;
       }
       if (localMotionEvent == null)
       {
         long l1 = SystemClock.uptimeMillis();
         localMotionEvent = MotionEvent.obtain(l1, l1, 3, 0.0F, 0.0F, 0);
         switch (paramInt)
         {
         }
         for (;;)
         {
           label140:
           i2 += 1;
           break;
           localBehavior.b(this, localView, localMotionEvent);
           continue;
           localBehavior.a(this, localView, localMotionEvent);
         }
       }
     }
     else
     {
       boolean bool2 = bool1;
       if (!bool1)
       {
         bool2 = bool1;
         if (localBehavior == null) {}
       }
       switch (paramInt)
       {
       default: 
         label220:
         bool2 = bool1;
         if (bool1)
         {
           q = localView;
           bool2 = bool1;
         }
         bool1 = bool2;
         bool2 = locald.e();
         boolean bool3 = locald.a(this, localView);
         if ((bool3) && (!bool2))
         {
           i1 = 1;
           label272:
           if ((!bool3) || (i1 != 0)) {
             break label324;
           }
         }
         break;
       }
     }
   }
   for (;;)
   {
     localList.clear();
     return bool1;
     bool1 = localBehavior.b(this, localView, paramMotionEvent);
     break label220;
     bool1 = localBehavior.a(this, localView, paramMotionEvent);
     break label220;
     i1 = 0;
     break label272;
     label324:
     break label140;
     break;
     label330:
     break label140;
   }
 }
 protected void onMeasure(int paramInt1, int paramInt2)
 {
   f();
   a();
   int i10 = getPaddingLeft();
   int i11 = getPaddingTop();
   int i12 = getPaddingRight();
   int i13 = getPaddingBottom();
   int i14 = ai.h(this);
   int i2;
   int i7;
   int i6;
   int i3;
   label100:
   int i4;
   int i5;
   label117:
   View localView;
   d locald;
   int i8;
   int i1;
   int i9;
   int i20;
   if (i14 == 1)
   {
     i2 = 1;
     int i15 = View.MeasureSpec.getMode(paramInt1);
     int i16 = View.MeasureSpec.getSize(paramInt1);
     int i17 = View.MeasureSpec.getMode(paramInt2);
     int i18 = View.MeasureSpec.getSize(paramInt2);
     i7 = getSuggestedMinimumWidth();
     i6 = getSuggestedMinimumHeight();
     if ((v == null) || (!ai.x(this))) {
       break label443;
     }
     i3 = 1;
     int i19 = g.size();
     i4 = 0;
     i5 = 0;
     if (i4 >= i19) {
       break label490;
     }
     localView = (View)g.get(i4);
     locald = (d)localView.getLayoutParams();
     i8 = 0;
     i1 = i8;
     if (e >= 0)
     {
       i1 = i8;
       if (i15 != 0)
       {
         i9 = a(e);
         i20 = android.support.v4.view.e.a(c(c), i14) & 0x7;
         if (((i20 != 3) || (i2 != 0)) && ((i20 != 5) || (i2 == 0))) {
           break label449;
         }
         i1 = Math.max(0, i16 - i12 - i9);
       }
     }
     label236:
     if ((i3 == 0) || (ai.x(localView))) {
       break label518;
     }
     i8 = v.a();
     int i21 = v.c();
     i9 = v.b();
     i20 = v.d();
     i8 = View.MeasureSpec.makeMeasureSpec(i16 - (i8 + i21), i15);
     i9 = View.MeasureSpec.makeMeasureSpec(i18 - (i9 + i20), i17);
   }
   for (;;)
   {
     Behavior localBehavior = locald.b();
     if ((localBehavior == null) || (!localBehavior.a(this, localView, i8, i1, i9, 0))) {
       a(localView, i8, i1, i9, 0);
     }
     i7 = Math.max(i7, localView.getMeasuredWidth() + (i10 + i12) + leftMargin + rightMargin);
     i6 = Math.max(i6, localView.getMeasuredHeight() + (i11 + i13) + topMargin + bottomMargin);
     i5 = ai.a(i5, ai.l(localView));
     i4 += 1;
     break label117;
     i2 = 0;
     break;
     label443:
     i3 = 0;
     break label100;
     label449:
     if ((i20 != 5) || (i2 != 0))
     {
       i1 = i8;
       if (i20 != 3) {
         break label236;
       }
       i1 = i8;
       if (i2 == 0) {
         break label236;
       }
     }
     i1 = Math.max(0, i9 - i10);
     break label236;
     label490:
     setMeasuredDimension(ai.a(i7, paramInt1, 0xFF000000 & i5), ai.a(i6, paramInt2, i5 << 16));
     return;
     label518:
     i9 = paramInt2;
     i8 = paramInt1;
   }
 }