package k3;

import i3.C0636d;
import java.io.IOException;
import p3.C0952a;
import q3.C0957b;

/* JADX INFO: loaded from: classes.dex */
public final class h extends i3.k {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public i3.k f8629a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ boolean f8630b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ boolean f8631c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ C0636d f8632d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ C0952a f8633e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ i f8634f;

    public h(i iVar, boolean z5, boolean z6, C0636d c0636d, C0952a c0952a) {
        this.f8634f = iVar;
        this.f8630b = z5;
        this.f8631c = z6;
        this.f8632d = c0636d;
        this.f8633e = c0952a;
    }

    @Override // i3.k
    public final Object a(C0957b c0957b) throws IOException {
        if (this.f8630b) {
            c0957b.M();
            return null;
        }
        i3.k kVarD = this.f8629a;
        if (kVarD == null) {
            kVarD = this.f8632d.d(this.f8634f, this.f8633e);
            this.f8629a = kVarD;
        }
        return kVarD.a(c0957b);
    }

    @Override // i3.k
    public final void b(q3.c cVar, Object obj) throws IOException {
        if (this.f8631c) {
            cVar.o();
            return;
        }
        i3.k kVarD = this.f8629a;
        if (kVarD == null) {
            kVarD = this.f8632d.d(this.f8634f, this.f8633e);
            this.f8629a = kVarD;
        }
        kVarD.b(cVar, obj);
    }
}
