package androidx.room.coroutines;

/* JADX INFO: loaded from: classes.dex */
public final class i implements k3.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final k3.c f4035a;

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

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

    public i(k kVar, k3.c cVar) {
        nb.g.i(cVar, "delegate");
        this.f4037c = kVar;
        this.f4035a = cVar;
        this.f4036b = androidx.datastore.preferences.core.c.d();
    }

    @Override // k3.c
    public final String A(int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.A(i10);
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final boolean G() {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.G();
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final void a(int i10, long j10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            this.f4035a.a(i10, j10);
        } else {
            ua.b.I(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // k3.c
    public final void b(double d10, int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            this.f4035a.b(d10, i10);
        } else {
            ua.b.I(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // java.lang.AutoCloseable
    public final void close() throws Exception {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            this.f4035a.close();
        } else {
            ua.b.I(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // k3.c
    public final void d(int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            this.f4035a.d(i10);
        } else {
            ua.b.I(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // k3.c
    public final int getColumnCount() {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.getColumnCount();
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final String getColumnName(int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.getColumnName(i10);
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final double getDouble(int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.getDouble(i10);
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final long getLong(int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.getLong(i10);
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final boolean isNull(int i10) {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            return this.f4035a.isNull(i10);
        }
        ua.b.I(21, "Attempted to use statement on a different thread");
        throw null;
    }

    @Override // k3.c
    public final void reset() {
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            this.f4035a.reset();
        } else {
            ua.b.I(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }

    @Override // k3.c
    public final void s(int i10, String str) {
        nb.g.i(str, "value");
        if (this.f4037c.f4042d.get()) {
            ua.b.I(21, "Statement is recycled");
            throw null;
        }
        if (this.f4036b == androidx.datastore.preferences.core.c.d()) {
            this.f4035a.s(i10, str);
        } else {
            ua.b.I(21, "Attempted to use statement on a different thread");
            throw null;
        }
    }
}
