package A4;

import x4.C1717b;
import x4.C1718c;

/* JADX INFO: loaded from: classes.dex */
public final class h implements x4.g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f410a = false;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f411b = false;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public C1718c f412c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final f f413d;

    public h(f fVar) {
        this.f413d = fVar;
    }

    @Override // x4.g
    public final x4.g a(String str) {
        if (this.f410a) {
            throw new C1717b("Cannot encode a second value in the ValueEncoderContext");
        }
        this.f410a = true;
        this.f413d.h(this.f412c, str, this.f411b);
        return this;
    }

    @Override // x4.g
    public final x4.g b(boolean z8) {
        if (this.f410a) {
            throw new C1717b("Cannot encode a second value in the ValueEncoderContext");
        }
        this.f410a = true;
        this.f413d.b(this.f412c, z8 ? 1 : 0, this.f411b);
        return this;
    }
}
