package defpackage;

import com.google.android.gms.internal.measurement.zzaeh;
import com.google.android.gms.internal.measurement.zzafy;
import java.io.IOException;
import java.util.List;

/* JADX INFO: renamed from: ᵵˊᵧ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC4714 implements Cloneable {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final AbstractC4729 f17954;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public AbstractC4729 f17955;

    public AbstractC4714(AbstractC4729 abstractC4729) {
        this.f17954 = abstractC4729;
        if (abstractC4729.m9883()) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Default instance must be immutable.");
            throw null;
        }
        this.f17955 = abstractC4729.m9885();
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static void m9864(int i, List list) {
        int size = list.size() - i;
        StringBuilder sb = new StringBuilder(String.valueOf(size).length() + 26);
        sb.append("Element at index ");
        sb.append(size);
        sb.append(" is null.");
        String string = sb.toString();
        int size2 = list.size();
        while (true) {
            size2--;
            if (size2 < i) {
                throw new NullPointerException(string);
            }
            list.remove(size2);
        }
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final void m9865(byte[] bArr, int i, C1743 c1743) throws zzaeh {
        if (!this.f17955.m9883()) {
            AbstractC4729 abstractC4729M9885 = this.f17954.m9885();
            C3884.f14820.m8590(abstractC4729M9885.getClass()).mo1452(abstractC4729M9885, this.f17955);
            this.f17955 = abstractC4729M9885;
        }
        try {
            C3884.f14820.m8590(this.f17955.getClass()).mo1456(this.f17955, bArr, 0, i, new C4449(c1743));
        } catch (zzaeh e) {
            throw e;
        } catch (IOException e2) {
            ᵷᵝˎ.ᵪᵹᵥᵻ("Reading from byte array should not throw IOException.", e2);
        } catch (IndexOutOfBoundsException unused) {
            C1974.m5334("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
        }
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final AbstractC4714 clone() {
        AbstractC4714 abstractC4714 = (AbstractC4714) this.f17954.mo1186(5);
        boolean zM9883 = this.f17955.m9883();
        AbstractC4729 abstractC4729 = this.f17955;
        if (zM9883) {
            abstractC4729.getClass();
            C3884.f14820.m8590(abstractC4729.getClass()).mo1450(abstractC4729);
            abstractC4729.m9879();
            abstractC4729 = this.f17955;
        }
        abstractC4714.f17955 = abstractC4729;
        return abstractC4714;
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final void m9867(AbstractC4729 abstractC4729) {
        AbstractC4729 abstractC47292 = this.f17954;
        if (abstractC47292.equals(abstractC4729)) {
            return;
        }
        if (!this.f17955.m9883()) {
            AbstractC4729 abstractC4729M9885 = abstractC47292.m9885();
            C3884.f14820.m8590(abstractC4729M9885.getClass()).mo1452(abstractC4729M9885, this.f17955);
            this.f17955 = abstractC4729M9885;
        }
        AbstractC4729 abstractC47293 = this.f17955;
        C3884.f14820.m8590(abstractC47293.getClass()).mo1452(abstractC47293, abstractC4729);
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void m9868() {
        if (this.f17955.m9883()) {
            return;
        }
        AbstractC4729 abstractC4729M9885 = this.f17954.m9885();
        C3884.f14820.m8590(abstractC4729M9885.getClass()).mo1452(abstractC4729M9885, this.f17955);
        this.f17955 = abstractC4729M9885;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final AbstractC4729 m9869() {
        boolean zM9883 = this.f17955.m9883();
        AbstractC4729 abstractC4729 = this.f17955;
        if (zM9883) {
            abstractC4729.getClass();
            C3884.f14820.m8590(abstractC4729.getClass()).mo1450(abstractC4729);
            abstractC4729.m9879();
            abstractC4729 = this.f17955;
        }
        abstractC4729.getClass();
        if (AbstractC4729.m9878(abstractC4729, true)) {
            return abstractC4729;
        }
        throw new zzafy();
    }
}
