package o; import com.google.common.primitives.UnsignedBytes; import java.io.IOException; /* renamed from: o.gnu, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15345gnu extends AbstractC15315gnE { public final byte[] e; private static final byte[] a = {-1}; private static final byte[] d = {0}; private static C15345gnu c = new C15345gnu(false); public static final C15345gnu b = new C15345gnu(true); /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final int c() { return 3; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final boolean d() { return false; } public static C15345gnu d(Object obj) { if (obj == null || (obj instanceof C15345gnu)) { return (C15345gnu) obj; } StringBuilder sb = new StringBuilder("illegal object in getInstance: "); sb.append(obj.getClass().getName()); throw new IllegalArgumentException(sb.toString()); } public static C15345gnu c(AbstractC15321gnP abstractC15321gnP) { InterfaceC15342gnr interfaceC15342gnr = abstractC15321gnP.d; AbstractC15315gnE i = interfaceC15342gnr != null ? interfaceC15342gnr.i() : null; if (i instanceof C15345gnu) { return d(i); } return d(((gnD) i).b()); } private C15345gnu(byte[] bArr) { byte[] bArr2; if (bArr.length != 1) { throw new IllegalArgumentException("byte value should have 1 byte in it"); } byte b2 = bArr[0]; if (b2 == 0) { bArr2 = d; } else if ((b2 & UnsignedBytes.MAX_VALUE) == 255) { bArr2 = a; } else if (bArr == null) { bArr2 = null; } else { byte[] bArr3 = new byte[bArr.length]; System.arraycopy(bArr, 0, bArr3, 0, bArr.length); bArr2 = bArr3; } this.e = bArr2; } private C15345gnu(boolean z) { this.e = z ? a : d; } @Override // o.AbstractC15315gnE protected final boolean e(AbstractC15315gnE abstractC15315gnE) { return (abstractC15315gnE instanceof C15345gnu) && this.e[0] == ((C15345gnu) abstractC15315gnE).e[0]; } @Override // o.AbstractC15346gnv public final int hashCode() { return this.e[0]; } public final String toString() { return this.e[0] != 0 ? "TRUE" : "FALSE"; } /* JADX INFO: Access modifiers changed from: package-private */ public static C15345gnu d(byte[] bArr) { if (bArr.length != 1) { throw new IllegalArgumentException("BOOLEAN value should have 1 byte in it"); } byte b2 = bArr[0]; return b2 == 0 ? c : (b2 & UnsignedBytes.MAX_VALUE) == 255 ? b : new C15345gnu(bArr); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final void c(gnG gng) throws IOException { byte[] bArr = this.e; gng.a(1); gng.d(bArr.length); gng.a.write(bArr); } public static C15345gnu d(boolean z) { return z ? b : c; } }