package defpackage;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.exoplayer.upstream.CmcdData;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@si8
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\b\u0087\b\u0018\u0000 \u00022\u00020\u0001:\u0002\u0003\u0004¨\u0006\u0005"}, d2 = {"Liba;", "", "Companion", CmcdData.OBJECT_TYPE_AUDIO_ONLY, "b", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final /* data */ class iba {

    /* JADX INFO: renamed from: Companion, reason: from kotlin metadata */
    @kp6
    public static final Companion INSTANCE = new Companion();
    public final String a;
    public final String b;
    public final String c;
    public final String d;
    public final boolean e;
    public final String f;

    @e52
    @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\bÇ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001R\u0017\u0010\u0004\u001a\u00020\u00038\u0006¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"com/strmr/ps/data/supabase/models/UserDeviceEntity.$serializer", "Lat3;", "Liba;", "Lbi8;", "descriptor", "Lbi8;", "getDescriptor", "()Lbi8;", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public /* synthetic */ class a implements at3<iba> {
        public static final a a;

        @kp6
        private static final bi8 descriptor;

        static {
            a aVar = new a();
            a = aVar;
            va7 va7Var = new va7("com.strmr.ps.data.supabase.models.UserDeviceEntity", aVar, 6);
            va7Var.j(TtmlNode.ATTR_ID, true);
            va7Var.j("user_id", false);
            va7Var.j("device_identifier", false);
            va7Var.j("device_name", false);
            va7Var.j("is_active", true);
            va7Var.j("last_active", true);
            descriptor = va7Var;
        }

        @Override // defpackage.at3
        public final n25[] childSerializers() {
            u79 u79Var = u79.a;
            return new n25[]{qk0.a(u79Var), u79Var, u79Var, u79Var, be0.a, qk0.a(u79Var)};
        }

        @Override // defpackage.o52
        public final Object deserialize(ux1 ux1Var) {
            bi8 bi8Var = descriptor;
            da1 da1VarC = ux1Var.c(bi8Var);
            int i = 0;
            boolean zAc = false;
            String str = null;
            String strK = null;
            String strK2 = null;
            String strK3 = null;
            String str2 = null;
            boolean z = true;
            while (z) {
                int iW = da1VarC.w(bi8Var);
                switch (iW) {
                    case -1:
                        z = false;
                        break;
                    case 0:
                        str = (String) da1VarC.o(bi8Var, 0, u79.a, str);
                        i |= 1;
                        break;
                    case 1:
                        strK = da1VarC.k(bi8Var, 1);
                        i |= 2;
                        break;
                    case 2:
                        strK2 = da1VarC.k(bi8Var, 2);
                        i |= 4;
                        break;
                    case 3:
                        strK3 = da1VarC.k(bi8Var, 3);
                        i |= 8;
                        break;
                    case 4:
                        zAc = da1VarC.ac(bi8Var, 4);
                        i |= 16;
                        break;
                    case 5:
                        str2 = (String) da1VarC.o(bi8Var, 5, u79.a, str2);
                        i |= 32;
                        break;
                    default:
                        throw new q6a(iW);
                }
            }
            da1VarC.b(bi8Var);
            return new iba(i, str, strK, strK2, strK3, zAc, str2);
        }

        @Override // defpackage.yi8, defpackage.o52
        public final bi8 getDescriptor() {
            return descriptor;
        }

        @Override // defpackage.yi8
        public final void serialize(fl2 fl2Var, Object obj) {
            iba ibaVar = (iba) obj;
            cr4.g(ibaVar, AppMeasurementSdk.ConditionalUserProperty.VALUE);
            String str = ibaVar.a;
            bi8 bi8Var = descriptor;
            fa1 fa1VarC = fl2Var.c(bi8Var);
            if (fa1VarC.e(bi8Var, 0) || str != null) {
                fa1VarC.ae(bi8Var, 0, u79.a, str);
            }
            String str2 = ibaVar.b;
            String str3 = ibaVar.f;
            boolean z = ibaVar.e;
            fa1VarC.n(bi8Var, 1, str2);
            fa1VarC.n(bi8Var, 2, ibaVar.c);
            fa1VarC.n(bi8Var, 3, ibaVar.d);
            if (fa1VarC.e(bi8Var, 4) || !z) {
                fa1VarC.j(bi8Var, 4, z);
            }
            if (fa1VarC.e(bi8Var, 5) || str3 != null) {
                fa1VarC.ae(bi8Var, 5, u79.a, str3);
            }
            fa1VarC.b(bi8Var);
        }

        @Override // defpackage.at3
        public final n25[] typeParametersSerializers() {
            return xa7.a;
        }
    }

    /* JADX INFO: renamed from: iba$b, reason: from kotlin metadata */
    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001J\u0013\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002¢\u0006\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Liba$b;", "", "Ln25;", "Liba;", "serializer", "()Ln25;", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Companion {
        @kp6
        public final n25<iba> serializer() {
            return a.a;
        }
    }

    public iba(String str, String str2, String str3, String str4) {
        cr4.g(str, "userId");
        cr4.g(str2, "deviceIdentifier");
        cr4.g(str3, "deviceName");
        this.a = null;
        this.b = str;
        this.c = str2;
        this.d = str3;
        this.e = true;
        this.f = str4;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof iba)) {
            return false;
        }
        iba ibaVar = (iba) obj;
        return cr4.b(this.a, ibaVar.a) && cr4.b(this.b, ibaVar.b) && cr4.b(this.c, ibaVar.c) && cr4.b(this.d, ibaVar.d) && this.e == ibaVar.e && cr4.b(this.f, ibaVar.f);
    }

    public final int hashCode() {
        String str = this.a;
        int iC = fi7.c(vw2.b(vw2.b(vw2.b((str == null ? 0 : str.hashCode()) * 31, 31, this.b), 31, this.c), 31, this.d), 31, this.e);
        String str2 = this.f;
        return iC + (str2 != null ? str2.hashCode() : 0);
    }

    public final String toString() {
        StringBuilder sbM = fi7.m("UserDeviceEntity(id=", this.a, ", userId=", this.b, ", deviceIdentifier=");
        vw2.aa(sbM, this.c, ", deviceName=", this.d, ", isActive=");
        sbM.append(this.e);
        sbM.append(", lastActiveAt=");
        sbM.append(this.f);
        sbM.append(")");
        return sbM.toString();
    }

    public /* synthetic */ iba(int i, String str, String str2, String str3, String str4, boolean z, String str5) {
        if (14 != (i & 14)) {
            ta7.a(i, 14, a.a.getDescriptor());
            throw null;
        }
        if ((i & 1) == 0) {
            this.a = null;
        } else {
            this.a = str;
        }
        this.b = str2;
        this.c = str3;
        this.d = str4;
        if ((i & 16) == 0) {
            this.e = true;
        } else {
            this.e = z;
        }
        if ((i & 32) == 0) {
            this.f = null;
        } else {
            this.f = str5;
        }
    }
}
