package o;

import java.io.FileInputStream;
import java.io.IOException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Z60 implements R60 {
    public final C1457i70 l;

    public Z60(C1457i70 c1457i70) {
        this.l = c1457i70;
    }

    @Override // o.R60
    public final Object d() {
        return new Y60(this.l.a(null), null, null);
    }

    @Override // o.R60
    public final void h(Object obj, Hh0 hh0) throws IOException {
        hh0.write(C1565jJ.d.b(Y60.Companion.serializer(), (Y60) obj).getBytes(AbstractC2355rh.a));
    }

    @Override // o.R60
    public final Object l(FileInputStream fileInputStream) throws C0169Gn {
        try {
            C1565jJ c1565jJ = C1565jJ.d;
            String str = new String(As0.N(fileInputStream), AbstractC2355rh.a);
            c1565jJ.getClass();
            return (Y60) c1565jJ.a(Y60.Companion.serializer(), str);
        } catch (Exception e) {
            throw new C0169Gn("Cannot parse session data", e);
        }
    }
}
