package o; import o.C1230Yni; /* loaded from: classes.dex */ public final class vbe extends ZXE { @Override // o.C17026tNn public final void d(Npn npn, boolean z) { super.d(npn, z); if (((NsV) this).aF > 0) { C17026tNn c17026tNn = ((NsV) this).aD[0]; c17026tNn.s(); c17026tNn.d(C1230Yni.HBt.LEFT, this, C1230Yni.HBt.LEFT, 0); c17026tNn.d(C1230Yni.HBt.RIGHT, this, C1230Yni.HBt.RIGHT, 0); c17026tNn.d(C1230Yni.HBt.TOP, this, C1230Yni.HBt.TOP, 0); c17026tNn.d(C1230Yni.HBt.BOTTOM, this, C1230Yni.HBt.BOTTOM, 0); } } @Override // o.ZXE public final void c(int i, int i2, int i3, int i4) { int i5 = ((ZXE) this).aQ + ((ZXE) this).aN; int i6 = ((ZXE) this).aP + ((ZXE) this).aJ; if (((NsV) this).aF > 0) { C17026tNn c17026tNn = ((NsV) this).aD[0]; i5 += c17026tNn.Z == 8 ? 0 : c17026tNn.ac; C17026tNn c17026tNn2 = ((NsV) this).aD[0]; i6 += c17026tNn2.Z == 8 ? 0 : c17026tNn2.p; } int max = Math.max(i(), i5); int max2 = Math.max(g(), i6); if (i != 1073741824) { if (i == Integer.MIN_VALUE) { i2 = Math.min(max, i2); } else { i2 = i == 0 ? max : 0; } } if (i3 != 1073741824) { if (i3 == Integer.MIN_VALUE) { i4 = Math.min(max2, i4); } else { i4 = i3 == 0 ? max2 : 0; } } ((ZXE) this).aC = i2; ((ZXE) this).aE = i4; i(i2); c(i4); ((ZXE) this).aG = ((NsV) this).aF > 0; } }