package Q1;

import a.AbstractC0386a;

/* JADX INFO: loaded from: classes.dex */
public final class l implements X1.c, AutoCloseable {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final X1.c f5597q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final long f5598r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ s f5599s;

    public l(s sVar, X1.c cVar) {
        P6.g.e(cVar, "delegate");
        this.f5599s = sVar;
        this.f5597q = cVar;
        this.f5598r = AbstractC0386a.k();
    }

    @Override // X1.c
    public final void D(double d8) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            this.f5597q.D(d8);
        } else {
            android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // X1.c
    public final boolean N(int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.N(i);
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final String P(int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.P(i);
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final boolean W() {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.W();
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final double b0(int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.b0(i);
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final void c(int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            this.f5597q.c(i);
        } else {
            android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // java.lang.AutoCloseable
    public final void close() throws Exception {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            this.f5597q.close();
        } else {
            android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // X1.c
    public final void e(long j8, int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            this.f5597q.e(j8, i);
        } else {
            android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // X1.c
    public final String o(int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.o(i);
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final int p() {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.p();
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final long q(int i) {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            return this.f5597q.q(i);
        }
        android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // X1.c
    public final void reset() {
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            this.f5597q.reset();
        } else {
            android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // X1.c
    public final void s(int i, String str) {
        P6.g.e(str, "value");
        if (this.f5599s.f5631d.get()) {
            android.support.v4.media.session.a.t(21, "Statement is recycled");
            throw null;
        }
        if (this.f5598r == AbstractC0386a.k()) {
            this.f5597q.s(i, str);
        } else {
            android.support.v4.media.session.a.t(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // X1.c
    public final boolean z() {
        return q(0) != 0;
    }
}
