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;

/* renamed from: ᵿˊ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC5490 implements Cloneable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public AbstractC4985 f20589;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final AbstractC4985 f20590;

    public AbstractC5490(AbstractC4985 abstractC4985) {
        this.f20590 = abstractC4985;
        if (abstractC4985.m10433()) {
            ᵹˉᵞ.ˌᵜᵹᵩ("Default instance must be immutable.");
            throw null;
        }
        this.f20589 = abstractC4985.m10435();
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static void m11115(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);
        }
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final AbstractC5490 clone() {
        AbstractC5490 abstractC5490 = (AbstractC5490) this.f20590.mo1179(5);
        boolean zM10433 = this.f20589.m10433();
        AbstractC4985 abstractC4985 = this.f20589;
        if (zM10433) {
            abstractC4985.getClass();
            C5430.f20370.m11073(abstractC4985.getClass()).mo3035(abstractC4985);
            abstractC4985.m10439();
            abstractC4985 = this.f20589;
        }
        abstractC5490.f20589 = abstractC4985;
        return abstractC5490;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void m11117(AbstractC4985 abstractC4985) {
        AbstractC4985 abstractC49852 = this.f20590;
        if (abstractC49852.equals(abstractC4985)) {
            return;
        }
        if (!this.f20589.m10433()) {
            AbstractC4985 abstractC4985M10435 = abstractC49852.m10435();
            C5430.f20370.m11073(abstractC4985M10435.getClass()).mo3038(abstractC4985M10435, this.f20589);
            this.f20589 = abstractC4985M10435;
        }
        AbstractC4985 abstractC49853 = this.f20589;
        C5430.f20370.m11073(abstractC49853.getClass()).mo3038(abstractC49853, abstractC4985);
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final AbstractC4985 m11118() {
        boolean zM10433 = this.f20589.m10433();
        AbstractC4985 abstractC4985 = this.f20589;
        if (zM10433) {
            abstractC4985.getClass();
            C5430.f20370.m11073(abstractC4985.getClass()).mo3035(abstractC4985);
            abstractC4985.m10439();
            abstractC4985 = this.f20589;
        }
        abstractC4985.getClass();
        if (AbstractC4985.m10428(abstractC4985, true)) {
            return abstractC4985;
        }
        throw new zzafy();
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final void m11119(byte[] bArr, int i, C1037 c1037) throws zzaeh {
        if (!this.f20589.m10433()) {
            AbstractC4985 abstractC4985M10435 = this.f20590.m10435();
            C5430.f20370.m11073(abstractC4985M10435.getClass()).mo3038(abstractC4985M10435, this.f20589);
            this.f20589 = abstractC4985M10435;
        }
        try {
            C5430.f20370.m11073(this.f20589.getClass()).mo3037(this.f20589, bArr, 0, i, new C4572(c1037));
        } catch (zzaeh e) {
            throw e;
        } catch (IOException e2) {
            ᵨᴵᵺ.ᵪʩ("Reading from byte array should not throw IOException.", e2);
        } catch (IndexOutOfBoundsException unused) {
            C1499.m4426("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.");
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m11120() {
        if (this.f20589.m10433()) {
            return;
        }
        AbstractC4985 abstractC4985M10435 = this.f20590.m10435();
        C5430.f20370.m11073(abstractC4985M10435.getClass()).mo3038(abstractC4985M10435, this.f20589);
        this.f20589 = abstractC4985M10435;
    }
}
