package b5;

import A6.i;
import a5.C0404c;
import c5.C0582a;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.MovieResponse;

/* JADX INFO: renamed from: b5.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0542c extends s7.d {

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final /* synthetic */ C0543d f9206g;

    public C0542c(C0543d c0543d) {
        this.f9206g = c0543d;
    }

    @Override // s7.d
    public final void f(X1.c cVar, Object obj) {
        Object objJ;
        C0582a c0582a = (C0582a) obj;
        P6.g.e(cVar, "statement");
        cVar.e(c0582a.f9332a, 1);
        Long l8 = c0582a.f9333b;
        if (l8 == null) {
            cVar.c(2);
        } else {
            cVar.e(l8.longValue(), 2);
        }
        Long l9 = c0582a.f9334c;
        if (l9 == null) {
            cVar.c(3);
        } else {
            cVar.e(l9.longValue(), 3);
        }
        Long l10 = c0582a.f9335d;
        if (l10 == null) {
            cVar.c(4);
        } else {
            cVar.e(l10.longValue(), 4);
        }
        Long l11 = c0582a.f9336e;
        if (l11 == null) {
            cVar.c(5);
        } else {
            cVar.e(l11.longValue(), 5);
        }
        if (c0582a.f9337f == null) {
            cVar.c(6);
        } else {
            cVar.e(r1.intValue(), 6);
        }
        if (c0582a.f9338g == null) {
            cVar.c(7);
        } else {
            cVar.e(r1.intValue(), 7);
        }
        Long l12 = c0582a.f9339h;
        if (l12 == null) {
            cVar.c(8);
        } else {
            cVar.e(l12.longValue(), 8);
        }
        Double d8 = c0582a.i;
        if (d8 == null) {
            cVar.c(9);
        } else {
            cVar.D(d8.doubleValue());
        }
        if (c0582a.f9340j == null) {
            cVar.c(10);
        } else {
            cVar.e(r1.intValue(), 10);
        }
        Long l13 = c0582a.f9341k;
        if (l13 == null) {
            cVar.c(11);
        } else {
            cVar.e(l13.longValue(), 11);
        }
        C0404c c0404c = (C0404c) this.f9206g.f9209c.getValue();
        c0404c.getClass();
        MovieResponse movieResponse = c0582a.f9342l;
        String str = null;
        if (movieResponse != null) {
            try {
                objJ = c0404c.f7618a.a(MovieResponse.class).d(movieResponse);
            } catch (Throwable th) {
                objJ = C1.j(th);
            }
            str = (String) (objJ instanceof i ? null : objJ);
        }
        if (str == null) {
            str = "";
        }
        cVar.s(12, str);
    }

    @Override // s7.d
    public final String l() {
        return "INSERT OR REPLACE INTO `tbl_continue` (`id`,`user_id`,`movie_id`,`season_id`,`episode_id`,`season_number`,`episode_number`,`time`,`percent`,`status`,`updated_at`,`movie`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)";
    }
}
