package p138.p176.p177.p242.p258.p263;

import com.google.android.gms.internal.measurement.zzes;
import com.google.android.gms.internal.measurement.zzft;
import com.google.android.gms.internal.measurement.zzib;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import p138.p176.p177.p242.p246.p251.C4303;
import p138.p176.p177.p242.p258.p263.AbstractC4421;
import p138.p176.p177.p242.p258.p263.AbstractC4421.AbstractC4423;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC4421<MessageType extends AbstractC4421<MessageType, BuilderType>, BuilderType extends AbstractC4423<MessageType, BuilderType>> extends AbstractC4444<MessageType, BuilderType> {
    public static Map<Object, AbstractC4421<?, ?>> zzd = new ConcurrentHashMap();
    public C4486 zzb = C4486.f13883;
    public int zzc = -1;

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ$֏, reason: contains not printable characters */
    public static class C4422<T extends AbstractC4421<T, ?>> extends C4441<T> {
        public C4422(T t) {
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ$ؠ, reason: contains not printable characters */
    public static abstract class AbstractC4423<MessageType extends AbstractC4421<MessageType, BuilderType>, BuilderType extends AbstractC4423<MessageType, BuilderType>> extends AbstractC4532<MessageType, BuilderType> {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final MessageType f13773;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public MessageType f13774;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public boolean f13775 = false;

        public AbstractC4423(MessageType messagetype) {
            this.f13773 = messagetype;
            this.f13774 = (MessageType) messagetype.mo7357(4, null, null);
        }

        /* JADX WARN: Multi-variable type inference failed */
        public /* synthetic */ Object clone() {
            AbstractC4423 abstractC4423 = (AbstractC4423) this.f13773.mo7357(5, null, null);
            abstractC4423.m7366((AbstractC4421) m7369());
            return abstractC4423;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final BuilderType m7366(MessageType messagetype) {
            if (this.f13775) {
                m7368();
                this.f13775 = false;
            }
            MessageType messagetype2 = this.f13774;
            C4492.f13896.m7547(messagetype2).mo7272(messagetype2, messagetype);
            return this;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final AbstractC4423 m7367(byte[] bArr, int i, C4453 c4453) throws zzft {
            if (this.f13775) {
                m7368();
                this.f13775 = false;
            }
            try {
                C4492.f13896.m7547(this.f13774).mo7270(this.f13774, bArr, 0, i + 0, new C4620(c4453));
                return this;
            } catch (zzft e) {
                throw e;
            } catch (IOException e2) {
                throw new RuntimeException("Reading from byte array should not throw IOException.", e2);
            } catch (IndexOutOfBoundsException unused) {
                throw zzft.m1402();
            }
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4504
        /* JADX INFO: renamed from: ހ */
        public final boolean mo7360() {
            return AbstractC4421.m7356(this.f13774, false);
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4504
        /* JADX INFO: renamed from: ށ */
        public final /* synthetic */ InterfaceC4450 mo7361() {
            return this.f13773;
        }

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public void m7368() {
            MessageType messagetype = (MessageType) this.f13774.mo7357(4, null, null);
            C4492.f13896.m7547(messagetype).mo7272(messagetype, this.f13774);
            this.f13774 = messagetype;
        }

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public /* synthetic */ InterfaceC4450 m7369() {
            if (this.f13775) {
                return this.f13774;
            }
            MessageType messagetype = this.f13774;
            C4492.f13896.m7547(messagetype).mo7274(messagetype);
            this.f13775 = true;
            return this.f13774;
        }

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public /* synthetic */ InterfaceC4450 m7370() {
            AbstractC4421 abstractC4421 = (AbstractC4421) m7369();
            if (abstractC4421.mo7360()) {
                return abstractC4421;
            }
            throw new zzib();
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ$ހ, reason: contains not printable characters */
    public static final class C4424 implements InterfaceC4432<C4424> {
        @Override // java.lang.Comparable
        public final /* synthetic */ int compareTo(Object obj) {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final int mo7371() {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final InterfaceC4488 mo7372(InterfaceC4488 interfaceC4488, InterfaceC4488 interfaceC44882) {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final InterfaceC4669 mo7373(InterfaceC4669 interfaceC4669, InterfaceC4450 interfaceC4450) {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final EnumC4485 mo7374() {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final EnumC4397 mo7375() {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final boolean mo7376() {
            throw new NoSuchMethodError();
        }

        @Override // p138.p176.p177.p242.p258.p263.InterfaceC4432
        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public final boolean mo7377() {
            throw new NoSuchMethodError();
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ$ށ, reason: contains not printable characters */
    public static abstract class AbstractC4425<MessageType extends AbstractC4425<MessageType, BuilderType>, BuilderType> extends AbstractC4421<MessageType, BuilderType> implements InterfaceC4504 {
        public C4456<C4424> zzc = C4456.f13806;

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final C4456<C4424> m7378() {
            C4456<C4424> c4456 = this.zzc;
            if (c4456.f13808) {
                this.zzc = (C4456) c4456.clone();
            }
            return this.zzc;
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ$ނ, reason: contains not printable characters */
    public enum C4426 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final /* synthetic */ int[] f13776 = {1, 2, 3, 4, 5, 6, 7};

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int[] m7379() {
            return (int[]) f13776.clone();
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.ʵ$ރ, reason: contains not printable characters */
    public static class C4427<ContainingType extends InterfaceC4450, Type> extends C4420<ContainingType, Type> {
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Object m7352(Method method, Object obj, Object... objArr) {
        try {
            return method.invoke(obj, objArr);
        } catch (IllegalAccessException e) {
            throw new RuntimeException("Couldn't use Java reflection to implement protocol message reflection.", e);
        } catch (InvocationTargetException e2) {
            Throwable cause = e2.getCause();
            if (cause instanceof RuntimeException) {
                throw ((RuntimeException) cause);
            }
            if (cause instanceof Error) {
                throw ((Error) cause);
            }
            throw new RuntimeException("Unexpected exception thrown by generated accessor method.", cause);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T extends AbstractC4421<?, ?>> T m7353(Class<T> cls) {
        AbstractC4421<?, ?> abstractC4421 = zzd.get(cls);
        if (abstractC4421 == null) {
            try {
                Class.forName(cls.getName(), true, cls.getClassLoader());
                abstractC4421 = zzd.get(cls);
            } catch (ClassNotFoundException e) {
                throw new IllegalStateException("Class initialization cannot fail.", e);
            }
        }
        if (abstractC4421 == null) {
            abstractC4421 = (T) ((AbstractC4421) C4458.m7444(cls)).mo7357(6, (Object) null, (Object) null);
            if (abstractC4421 == null) {
                throw new IllegalStateException();
            }
            zzd.put(cls, abstractC4421);
        }
        return (T) abstractC4421;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <E> InterfaceC4518<E> m7354(InterfaceC4518<E> interfaceC4518) {
        int size = interfaceC4518.size();
        return interfaceC4518.mo7302(size == 0 ? 10 : size << 1);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC4527 m7355(InterfaceC4527 interfaceC4527) {
        int size = interfaceC4527.size();
        return ((C4657) interfaceC4527).mo7302(size == 0 ? 10 : size << 1);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T extends AbstractC4421<T, ?>> boolean m7356(T t, boolean z) {
        byte bByteValue = ((Byte) t.mo7357(1, null, null)).byteValue();
        if (bByteValue == 1) {
            return true;
        }
        if (bByteValue == 0) {
            return false;
        }
        boolean zMo7273 = C4492.f13896.m7547(t).mo7273(t);
        if (z) {
            t.mo7357(2, zMo7273 ? t : null, null);
        }
        return zMo7273;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && getClass() == obj.getClass()) {
            return C4492.f13896.m7547(this).mo7271(this, (AbstractC4421) obj);
        }
        return false;
    }

    public int hashCode() {
        int i = this.zza;
        if (i != 0) {
            return i;
        }
        int iMo7267 = C4492.f13896.m7547(this).mo7267(this);
        this.zza = iMo7267;
        return iMo7267;
    }

    public String toString() {
        String string = super.toString();
        StringBuilder sb = new StringBuilder();
        sb.append("# ");
        sb.append(string);
        C4303.m7100(this, sb, 0);
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public abstract Object mo7357(int i, Object obj, Object obj2);

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4450
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void mo7358(zzes zzesVar) {
        InterfaceC4386 interfaceC4386M7547 = C4492.f13896.m7547(this);
        C4457 c4457 = zzesVar.f2117;
        if (c4457 == null) {
            c4457 = new C4457(zzesVar);
        }
        interfaceC4386M7547.mo7269(this, c4457);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4450
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final /* synthetic */ InterfaceC4669 mo7359() {
        return (AbstractC4423) mo7357(5, (Object) null, (Object) null);
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4504
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final boolean mo7360() {
        return m7356(this, Boolean.TRUE.booleanValue());
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4504
    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final /* synthetic */ InterfaceC4450 mo7361() {
        return (AbstractC4421) mo7357(6, (Object) null, (Object) null);
    }

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final <MessageType extends AbstractC4421<MessageType, BuilderType>, BuilderType extends AbstractC4423<MessageType, BuilderType>> BuilderType m7362() {
        return (BuilderType) mo7357(5, (Object) null, (Object) null);
    }

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final BuilderType m7363() {
        BuilderType buildertype = (BuilderType) mo7357(5, (Object) null, (Object) null);
        buildertype.m7366(this);
        return buildertype;
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4450
    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final int mo7364() {
        if (this.zzc == -1) {
            this.zzc = C4492.f13896.m7547(this).mo7275(this);
        }
        return this.zzc;
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4450
    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final /* synthetic */ InterfaceC4669 mo7365() {
        AbstractC4423 abstractC4423 = (AbstractC4423) mo7357(5, (Object) null, (Object) null);
        abstractC4423.m7366(this);
        return abstractC4423;
    }
}
