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);
 }
 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;
   }
 }