package defpackage;

import androidx.datastore.preferences.protobuf.AbstractC0001;
import androidx.datastore.preferences.protobuf.C0005;
import androidx.datastore.preferences.protobuf.C0012;
import androidx.datastore.preferences.protobuf.InvalidProtocolBufferException;
import androidx.datastore.preferences.protobuf.UninitializedMessageException;
import j$.util.DesugarCollections;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Map;

/* renamed from: ˈᵖ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1063 extends AbstractC0001 {
    private static final C1063 DEFAULT_INSTANCE;
    private static volatile InterfaceC4784 PARSER = null;
    public static final int PREFERENCES_FIELD_NUMBER = 1;
    private C1995 preferences_ = C1995.f8011;

    static {
        C1063 c1063 = new C1063();
        DEFAULT_INSTANCE = c1063;
        AbstractC0001.m101(C1063.class, c1063);
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public static C1995 m3439(C1063 c1063) {
        C1995 c1995 = c1063.preferences_;
        if (!c1995.f8012) {
            c1063.preferences_ = c1995.m5516();
        }
        return c1063.preferences_;
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public static C3029 m3440() {
        return (C3029) ((AbstractC3082) DEFAULT_INSTANCE.mo104(5));
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public static C1063 m3441(FileInputStream fileInputStream) throws InvalidProtocolBufferException {
        C1063 c1063 = DEFAULT_INSTANCE;
        C0005 c0005 = new C0005(fileInputStream);
        C3098 c3098M7433 = C3098.m7433();
        AbstractC0001 abstractC0001M105 = c1063.m105();
        try {
            C1291 c1291 = C1291.f5320;
            c1291.getClass();
            InterfaceC4249 interfaceC4249M4013 = c1291.m4013(abstractC0001M105.getClass());
            C0012 c0012 = (C0012) c0005.f3452;
            if (c0012 == null) {
                c0012 = new C0012(c0005);
            }
            interfaceC4249M4013.mo119(abstractC0001M105, c0012, c3098M7433);
            interfaceC4249M4013.mo141(abstractC0001M105);
            if (AbstractC0001.m100(abstractC0001M105, true)) {
                return (C1063) abstractC0001M105;
            }
            throw new InvalidProtocolBufferException(new UninitializedMessageException().getMessage());
        } catch (InvalidProtocolBufferException e) {
            if (e.f329) {
                throw new InvalidProtocolBufferException(e.getMessage(), e);
            }
            throw e;
        } catch (UninitializedMessageException e2) {
            throw new InvalidProtocolBufferException(e2.getMessage());
        } catch (IOException e3) {
            if (e3.getCause() instanceof InvalidProtocolBufferException) {
                throw ((InvalidProtocolBufferException) e3.getCause());
            }
            throw new InvalidProtocolBufferException(e3.getMessage(), e3);
        } catch (RuntimeException e4) {
            if (e4.getCause() instanceof InvalidProtocolBufferException) {
                throw ((InvalidProtocolBufferException) e4.getCause());
            }
            throw e4;
        }
    }

    @Override // androidx.datastore.preferences.protobuf.AbstractC0001
    /* renamed from: ˏᵙ */
    public final Object mo104(int i) {
        InterfaceC4784 c0136;
        switch (AbstractC1327.m4088(i)) {
            case 0:
                return (byte) 1;
            case 1:
                return null;
            case 2:
                return new C2259(DEFAULT_INSTANCE, "\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u00012", new Object[]{"preferences_", AbstractC1884.f7604});
            case 3:
                return new C1063();
            case 4:
                return new C3029(DEFAULT_INSTANCE);
            case 5:
                return DEFAULT_INSTANCE;
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                InterfaceC4784 interfaceC4784 = PARSER;
                if (interfaceC4784 != null) {
                    return interfaceC4784;
                }
                synchronized (C1063.class) {
                    try {
                        c0136 = PARSER;
                        if (c0136 == null) {
                            c0136 = new C0136();
                            PARSER = c0136;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
                return c0136;
            default:
                C2585.m6504();
                return null;
        }
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final Map m3442() {
        return DesugarCollections.unmodifiableMap(this.preferences_);
    }
}
