public boolean a(View paramView1, View paramView2)
 {
   if ((paramView1.getVisibility() == 0) && (paramView2.getVisibility() == 0))
   {
     Rect localRect = j;
     if (paramView1.getParent() != this)
     {
       bool = true;
       a(paramView1, bool, localRect);
       paramView1 = k;
       if (paramView2.getParent() == this) {
         break label115;
       }
     }
     label115:
     for (boolean bool = true;; bool = false)
     {
       a(paramView2, bool, paramView1);
       if ((left > right) || (top > bottom) || (right < left) || (bottom < top)) {
         break label120;
       }
       return true;
       bool = false;
       break;
     }
     label120:
     return false;
   }
   return false;
 }
 public void onChildViewRemoved(View paramView1, View paramView2)
 {
   b(paramView2);
   if (CoordinatorLayout.a(CoordinatorLayout.this) != null) {
     CoordinatorLayout.a(CoordinatorLayout.this).onChildViewRemoved(paramView1, paramView2);
   }
 }
 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);
       }
     }
   }
 }
 private void a(View paramView1, View paramView2, int paramInt)
 {
   Object localObject = (d)paramView1.getLayoutParams();
   localObject = j;
   Rect localRect = k;
   a(paramView2, (Rect)localObject);
   a(paramView1, paramInt, (Rect)localObject, localRect);
   paramView1.layout(left, top, right, bottom);
 }
 private void setWindowInsets(bg parambg)
 {
   boolean bool2 = true;
   if (v != parambg)
   {
     v = parambg;
     if ((parambg == null) || (parambg.b() <= 0)) {
       break label64;
     }
     bool1 = true;
     w = bool1;
     if ((w) || (getBackground() != null)) {
       break label69;
     }
   }
   label64:
   label69:
   for (boolean bool1 = bool2;; bool1 = false)
   {
     setWillNotDraw(bool1);
     a(parambg);
     requestLayout();
     return;
     bool1 = false;
     break;
   }
 }
 public void onNestedScroll(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
 {
   int i3 = getChildCount();
   int i1 = 0;
   int i2 = 0;
   View localView;
   Object localObject;
   if (i2 < i3)
   {
     localView = getChildAt(i2);
     localObject = (d)localView.getLayoutParams();
     if (((d)localObject).h()) {}
   }
   for (;;)
   {
     i2 += 1;
     break;
     localObject = ((d)localObject).b();
     if (localObject != null)
     {
       ((Behavior)localObject).a(this, localView, paramView, paramInt1, paramInt2, paramInt3, paramInt4);
       i1 = 1;
       continue;
       if (i1 != 0) {
         a(true);
       }
       return;
     }
   }
 }
 public boolean onNestedFling(View paramView, float paramFloat1, float paramFloat2, boolean paramBoolean)
 {
   int i2 = getChildCount();
   int i1 = 0;
   boolean bool = false;
   View localView;
   Object localObject;
   if (i1 < i2)
   {
     localView = getChildAt(i1);
     localObject = (d)localView.getLayoutParams();
     if (((d)localObject).h()) {}
   }
   for (;;)
   {
     i1 += 1;
     break;
     localObject = ((d)localObject).b();
     if (localObject != null)
     {
       bool = ((Behavior)localObject).a(this, localView, paramView, paramFloat1, paramFloat2, paramBoolean) | bool;
       continue;
       if (bool) {
         a(true);
       }
       return bool;
     }
   }
 }
 void a(boolean paramBoolean)
 {
   int i3 = ai.h(this);
   int i4 = g.size();
   int i1 = 0;
   while (i1 < i4)
   {
     View localView = (View)g.get(i1);
     Object localObject1 = (d)localView.getLayoutParams();
     int i2 = 0;
     while (i2 < i1)
     {
       localObject2 = (View)g.get(i2);
       if (h == localObject2) {
         b(localView, i3);
       }
       i2 += 1;
     }
     localObject1 = j;
     Object localObject2 = k;
     c(localView, (Rect)localObject1);
     a(localView, true, (Rect)localObject2);
     if (((Rect)localObject1).equals(localObject2))
     {
       i1 += 1;
     }
     else
     {
       b(localView, (Rect)localObject2);
       i2 = i1 + 1;
       label155:
       Behavior localBehavior;
       if (i2 < i4)
       {
         localObject1 = (View)g.get(i2);
         localObject2 = (d)((View)localObject1).getLayoutParams();
         localBehavior = ((d)localObject2).b();
         if ((localBehavior != null) && (localBehavior.b(this, (View)localObject1, localView)))
         {
           if ((paramBoolean) || (!((d)localObject2).i())) {
             break label235;
           }
           ((d)localObject2).j();
         }
       }
       for (;;)
       {
         i2 += 1;
         break label155;
         break;
         label235:
         boolean bool = localBehavior.c(this, (View)localObject1, localView);
         if (paramBoolean) {
           ((d)localObject2).b(bool);
         }
       }
     }
   }
 }
 d(Context paramContext, AttributeSet paramAttributeSet)
 {
   super(paramAttributeSet);
   TypedArray localTypedArray = paramContext.obtainStyledAttributes(paramAttributeSet, a.i.CoordinatorLayout_LayoutParams);
   c = localTypedArray.getInteger(a.i.CoordinatorLayout_LayoutParams_android_layout_gravity, 0);
   f = localTypedArray.getResourceId(a.i.CoordinatorLayout_LayoutParams_layout_anchor, -1);
   d = localTypedArray.getInteger(a.i.CoordinatorLayout_LayoutParams_layout_anchorGravity, 0);
   e = localTypedArray.getInteger(a.i.CoordinatorLayout_LayoutParams_layout_keyline, -1);
   b = localTypedArray.hasValue(a.i.CoordinatorLayout_LayoutParams_layout_behavior);
   if (b) {
     a = CoordinatorLayout.a(paramContext, paramAttributeSet, localTypedArray.getString(a.i.CoordinatorLayout_LayoutParams_layout_behavior));
   }
   localTypedArray.recycle();
 }
 void a(View paramView, boolean paramBoolean, Rect paramRect)
 {
   if ((paramView.isLayoutRequested()) || (paramView.getVisibility() == 8))
   {
     paramRect.set(0, 0, 0, 0);
     return;
   }
   if (paramBoolean)
   {
     a(paramView, paramRect);
     return;
   }
   paramRect.set(paramView.getLeft(), paramView.getTop(), paramView.getRight(), paramView.getBottom());
 }
 protected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
 {
   paramInt2 = ai.h(this);
   paramInt3 = g.size();
   paramInt1 = 0;
   while (paramInt1 < paramInt3)
   {
     View localView = (View)g.get(paramInt1);
     Behavior localBehavior = ((d)localView.getLayoutParams()).b();
     if ((localBehavior == null) || (!localBehavior.a(this, localView, paramInt2))) {
       a(localView, paramInt2);
     }
     paramInt1 += 1;
   }
 }
 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);
 }
 public boolean a(
     CoordinatorLayout paramCoordinatorLayout,
     View paramView,
     int paramInt1,
     int paramInt2,
     int paramInt3,
     int paramInt4) {
   int j = getLayoutParamsheight;
   Object localObject;
   if ((j == -1) || (j == -2)) {
     localObject = paramCoordinatorLayout.d(paramView);
     if (!((List) localObject).isEmpty()) {
       break label41;
     }
   }
   label41:
   do {
     return false;
     localObject = a((List) localObject);
   } while ((localObject == null) || (!ai.D((View) localObject)));
   if (ai.x((View) localObject)) {
     ai.a(paramView, true);
   }
   int i = View.MeasureSpec.getSize(paramInt3);
   paramInt3 = i;
   if (i == 0) {
     paramInt3 = paramCoordinatorLayout.getHeight();
   }
   int k = ((AppBarLayout) localObject).getMeasuredHeight();
   int m = ((AppBarLayout) localObject).getTotalScrollRange();
   if (j == -1) {}
   for (i = 1073741824; ; i = Integer.MIN_VALUE) {
     paramCoordinatorLayout.a(
         paramView,
         paramInt1,
         paramInt2,
         View.MeasureSpec.makeMeasureSpec(m + (paramInt3 - k), i),
         paramInt4);
     return true;
   }
 }
 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;
   }
 }
 public void onNestedPreScroll(View paramView, int paramInt1, int paramInt2, int[] paramArrayOfInt)
 {
   int i2 = 0;
   int i1 = 0;
   int i3 = 0;
   int i6 = getChildCount();
   int i4 = 0;
   View localView;
   Object localObject;
   int i5;
   if (i4 < i6)
   {
     localView = getChildAt(i4);
     localObject = (d)localView.getLayoutParams();
     if (!((d)localObject).h())
     {
       i5 = i3;
       i3 = i2;
       i2 = i1;
       i1 = i5;
     }
   }
   for (;;)
   {
     i5 = i4 + 1;
     i4 = i3;
     i3 = i1;
     i1 = i2;
     i2 = i4;
     i4 = i5;
     break;
     localObject = ((d)localObject).b();
     if (localObject != null)
     {
       int[] arrayOfInt = m;
       m[1] = 0;
       arrayOfInt[0] = 0;
       ((Behavior)localObject).a(this, localView, paramView, paramInt1, paramInt2, m);
       if (paramInt1 > 0)
       {
         i3 = Math.max(i2, m[0]);
         label158:
         if (paramInt2 <= 0) {
           break label201;
         }
       }
       label201:
       for (i1 = Math.max(i1, m[1]);; i1 = Math.min(i1, m[1]))
       {
         i2 = i1;
         i1 = 1;
         break;
         i3 = Math.min(i2, m[0]);
         break label158;
       }
       paramArrayOfInt[0] = i2;
       paramArrayOfInt[1] = i1;
       if (i3 != 0) {
         a(true);
       }
       return;
     }
     i5 = i3;
     i3 = i2;
     i2 = i1;
     i1 = i5;
   }
 }
 public boolean a(View paramView, int paramInt1, int paramInt2)
 {
   Rect localRect = j;
   a(paramView, localRect);
   return localRect.contains(paramInt1, paramInt2);
 }
 public bg a(View paramView, bg parambg)
 {
   CoordinatorLayout.a(CoordinatorLayout.this, parambg);
   return parambg.f();
 }
 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;
   }
 }