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;
   }
 }
 private void c(View paramView, int paramInt)
 {
   d locald = (d)paramView.getLayoutParams();
   Rect localRect1 = j;
   localRect1.set(getPaddingLeft() + leftMargin, getPaddingTop() + topMargin, getWidth() - getPaddingRight() - rightMargin, getHeight() - getPaddingBottom() - bottomMargin);
   if ((v != null) && (ai.x(this)) && (!ai.x(paramView)))
   {
     left += v.a();
     top += v.b();
     right -= v.c();
     bottom -= v.d();
   }
   Rect localRect2 = k;
   android.support.v4.view.e.a(b(c), paramView.getMeasuredWidth(), paramView.getMeasuredHeight(), localRect1, localRect2, paramInt);
   paramView.layout(left, top, right, bottom);
 }
 private void a(bg parambg)
 {
   if (parambg.e()) {}
   int i1;
   label15:
   View localView;
   Object localObject;
   do
   {
     return;
     int i2 = getChildCount();
     i1 = 0;
     if (i1 >= i2) {
       break label97;
     }
     localView = getChildAt(i1);
     localObject = parambg;
     if (!ai.x(localView)) {
       break;
     }
     localObject = ((d)localView.getLayoutParams()).b();
     if (localObject == null) {
       break label99;
     }
     parambg = ((Behavior)localObject).a(this, localView, parambg);
   } while (parambg.e());
   label97:
   label99:
   for (;;)
   {
     localObject = ai.b(localView, parambg);
     if (((bg)localObject).e()) {
       break;
     }
     i1 += 1;
     parambg = (bg)localObject;
     break label15;
     break;
   }
 }
 public void onDraw(Canvas paramCanvas)
 {
   super.onDraw(paramCanvas);
   if ((w) && (x != null)) {
     if (v == null) {
       break label61;
     }
   }
   label61:
   for (int i1 = v.b();; i1 = 0)
   {
     if (i1 > 0)
     {
       x.setBounds(0, 0, getWidth(), i1);
       x.draw(paramCanvas);
     }
     return;
   }
 }
 public bg a(View paramView, bg parambg) {
   AppBarLayout.a(a, parambg);
   return parambg.f();
 }
 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;
   }
 }