package p138.p176.p278.p279.p287;

import com.google.protobuf.CodedOutputStream;
import com.google.protobuf.InvalidProtocolBufferException;
import java.io.IOException;
import p138.p176.p328.AbstractC6028;
import p138.p176.p328.C6022;
import p138.p176.p328.InterfaceC6052;

/* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޛ.ၻ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C5445 extends AbstractC6028<C5445, C5447> implements InterfaceC5448 {

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public static final C5445 f15795;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public static volatile InterfaceC6052<C5445> f15796;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public int f15799;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public boolean f15800;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public String f15797 = "";

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public String f15798 = "";

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public String f15801 = "";

    /* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޛ.ၻ$֏, reason: contains not printable characters */
    public static /* synthetic */ class C5446 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final /* synthetic */ int[] f15802;

        static {
            int[] iArr = new int[AbstractC6028.EnumC6039.values().length];
            f15802 = iArr;
            try {
                AbstractC6028.EnumC6039 enumC6039 = AbstractC6028.EnumC6039.NEW_MUTABLE_INSTANCE;
                iArr[4] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                int[] iArr2 = f15802;
                AbstractC6028.EnumC6039 enumC60392 = AbstractC6028.EnumC6039.IS_INITIALIZED;
                iArr2[0] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                int[] iArr3 = f15802;
                AbstractC6028.EnumC6039 enumC60393 = AbstractC6028.EnumC6039.MAKE_IMMUTABLE;
                iArr3[3] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                int[] iArr4 = f15802;
                AbstractC6028.EnumC6039 enumC60394 = AbstractC6028.EnumC6039.NEW_BUILDER;
                iArr4[5] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                int[] iArr5 = f15802;
                AbstractC6028.EnumC6039 enumC60395 = AbstractC6028.EnumC6039.VISIT;
                iArr5[1] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                int[] iArr6 = f15802;
                AbstractC6028.EnumC6039 enumC60396 = AbstractC6028.EnumC6039.MERGE_FROM_STREAM;
                iArr6[2] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                int[] iArr7 = f15802;
                AbstractC6028.EnumC6039 enumC60397 = AbstractC6028.EnumC6039.GET_DEFAULT_INSTANCE;
                iArr7[6] = 7;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                int[] iArr8 = f15802;
                AbstractC6028.EnumC6039 enumC60398 = AbstractC6028.EnumC6039.GET_PARSER;
                iArr8[7] = 8;
            } catch (NoSuchFieldError unused8) {
            }
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.ހ.֏.ޛ.ၻ$ؠ, reason: contains not printable characters */
    public static final class C5447 extends AbstractC6028.AbstractC6030<C5445, C5447> implements InterfaceC5448 {
        public C5447() {
            super(C5445.f15795);
        }

        public /* synthetic */ C5447(C5446 c5446) {
            super(C5445.f15795);
        }
    }

    static {
        C5445 c5445 = new C5445();
        f15795 = c5445;
        c5445.mo9398();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m8841(C5445 c5445, String str) {
        if (str == null) {
            throw null;
        }
        c5445.f15797 = str;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ void m8842(C5445 c5445, String str) {
        if (str == null) {
            throw null;
        }
        c5445.f15801 = str;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static /* synthetic */ void m8843(C5445 c5445, String str) {
        if (str == null) {
            throw null;
        }
        c5445.f15798 = str;
    }

    @Override // p138.p176.p328.AbstractC6028
    /* JADX INFO: renamed from: ֏ */
    public final Object mo8727(AbstractC6028.EnumC6039 enumC6039, Object obj, Object obj2) {
        C5446 c5446 = null;
        switch (enumC6039.ordinal()) {
            case 0:
                return f15795;
            case 1:
                AbstractC6028.InterfaceC6040 interfaceC6040 = (AbstractC6028.InterfaceC6040) obj;
                C5445 c5445 = (C5445) obj2;
                this.f15797 = interfaceC6040.mo9410(!this.f15797.isEmpty(), this.f15797, !c5445.f15797.isEmpty(), c5445.f15797);
                this.f15798 = interfaceC6040.mo9410(!this.f15798.isEmpty(), this.f15798, !c5445.f15798.isEmpty(), c5445.f15798);
                this.f15799 = interfaceC6040.mo9409(this.f15799 != 0, this.f15799, c5445.f15799 != 0, c5445.f15799);
                boolean z = this.f15800;
                boolean z2 = c5445.f15800;
                this.f15800 = interfaceC6040.mo9416(z, z, z2, z2);
                this.f15801 = interfaceC6040.mo9410(!this.f15801.isEmpty(), this.f15801, true ^ c5445.f15801.isEmpty(), c5445.f15801);
                return this;
            case 2:
                C6022 c6022 = (C6022) obj;
                while (!z) {
                    try {
                        int iM9377 = c6022.m9377();
                        if (iM9377 != 0) {
                            if (iM9377 == 10) {
                                this.f15797 = c6022.m9375();
                            } else if (iM9377 == 18) {
                                this.f15798 = c6022.m9375();
                            } else if (iM9377 == 24) {
                                this.f15799 = c6022.m9371();
                            } else if (iM9377 == 32) {
                                this.f15800 = c6022.m9366();
                            } else if (iM9377 == 42) {
                                this.f15801 = c6022.m9375();
                            } else if (!c6022.m9374(iM9377)) {
                            }
                        }
                        z = true;
                    } catch (InvalidProtocolBufferException e) {
                        throw new RuntimeException(e);
                    } catch (IOException e2) {
                        throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()));
                    }
                }
                break;
            case 3:
                return null;
            case 4:
                return new C5445();
            case 5:
                return new C5447(c5446);
            case 6:
                break;
            case 7:
                if (f15796 == null) {
                    synchronized (C5445.class) {
                        if (f15796 == null) {
                            f15796 = new AbstractC6028.C6031(f15795);
                        }
                        break;
                    }
                }
                return f15796;
            default:
                throw new UnsupportedOperationException();
        }
        return f15795;
    }

    @Override // p138.p176.p328.InterfaceC6049
    /* JADX INFO: renamed from: ֏ */
    public void mo8728(CodedOutputStream codedOutputStream) throws CodedOutputStream.OutOfSpaceException {
        if (!this.f15797.isEmpty()) {
            codedOutputStream.mo1452(1, this.f15797);
        }
        if (!this.f15798.isEmpty()) {
            codedOutputStream.mo1452(2, this.f15798);
        }
        int i = this.f15799;
        if (i != 0) {
            codedOutputStream.mo1455(3, i);
        }
        boolean z = this.f15800;
        if (z) {
            CodedOutputStream.C0345 c0345 = (CodedOutputStream.C0345) codedOutputStream;
            c0345.mo1450(32);
            byte b = z ? (byte) 1 : (byte) 0;
            try {
                byte[] bArr = c0345.f2164;
                int i2 = c0345.f2166;
                c0345.f2166 = i2 + 1;
                bArr[i2] = b;
            } catch (IndexOutOfBoundsException e) {
                throw new CodedOutputStream.OutOfSpaceException(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(c0345.f2166), Integer.valueOf(c0345.f2165), 1), e);
            }
        }
        if (this.f15801.isEmpty()) {
            return;
        }
        codedOutputStream.mo1452(5, this.f15801);
    }

    @Override // p138.p176.p328.InterfaceC6049
    /* JADX INFO: renamed from: ؠ */
    public int mo8729() {
        int i = this.f16914;
        if (i != -1) {
            return i;
        }
        int iM1442 = this.f15797.isEmpty() ? 0 : 0 + CodedOutputStream.m1442(1, this.f15797);
        if (!this.f15798.isEmpty()) {
            iM1442 += CodedOutputStream.m1442(2, this.f15798);
        }
        int i2 = this.f15799;
        if (i2 != 0) {
            iM1442 += CodedOutputStream.m1448(3, i2);
        }
        if (this.f15800) {
            iM1442 += CodedOutputStream.m1445(4) + 1;
        }
        if (!this.f15801.isEmpty()) {
            iM1442 += CodedOutputStream.m1442(5, this.f15801);
        }
        this.f16914 = iM1442;
        return iM1442;
    }
}
