package com.google.android.gms.internal.clearcut; /* loaded from: classes2.dex */ public final class zzfw implements Cloneable { private static final zzfx zzrl = new zzfx(); private int mSize; private boolean zzrm; private int[] zzrn; private zzfx[] zzro; /* JADX INFO: Access modifiers changed from: package-private */ public final zzfx zzaq(int i) { return this.zzro[i]; } /* JADX INFO: Access modifiers changed from: package-private */ public final int size() { return this.mSize; } public final boolean isEmpty() { return this.mSize == 0; } public final int hashCode() { int i = 17; for (int i2 = 0; i2 < this.mSize; i2++) { i = (((i * 31) + this.zzrn[i2]) * 31) + this.zzro[i2].hashCode(); } return i; } public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof zzfw)) { return false; } zzfw zzfwVar = (zzfw) obj; int i = this.mSize; if (i != zzfwVar.mSize) { return false; } int[] iArr = this.zzrn; int[] iArr2 = zzfwVar.zzrn; int i2 = 0; while (true) { if (i2 >= i) { zzfx[] zzfxVarArr = this.zzro; zzfx[] zzfxVarArr2 = zzfwVar.zzro; int i3 = this.mSize; for (int i4 = 0; i4 < i3; i4++) { if (zzfxVarArr[i4].equals(zzfxVarArr2[i4])) { } } return true; } if (iArr[i2] != iArr2[i2]) { break; } i2++; } return false; } public final /* synthetic */ Object clone() throws CloneNotSupportedException { int i = this.mSize; zzfw zzfwVar = new zzfw(i); System.arraycopy(this.zzrn, 0, zzfwVar.zzrn, 0, i); for (int i2 = 0; i2 < i; i2++) { zzfx zzfxVar = this.zzro[i2]; if (zzfxVar != null) { zzfwVar.zzro[i2] = (zzfx) zzfxVar.clone(); } } zzfwVar.mSize = i; return zzfwVar; } private zzfw(int i) { this.zzrm = false; int i2 = i << 2; int i3 = 4; while (true) { if (i3 >= 32) { break; } int i4 = (1 << i3) - 12; if (i2 <= i4) { i2 = i4; break; } i3++; } int i5 = i2 / 4; this.zzrn = new int[i5]; this.zzro = new zzfx[i5]; this.mSize = 0; } zzfw() { this(10); } }