package g;

import com.seewo.vcommons.constants.Platform;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final boolean f6065a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f6067c;

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean f6069e;

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f6071g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final int f6072h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final int f6073i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final boolean f6074j;
    public final boolean k;
    public final boolean l;

    @Nullable
    public String m;

    static {
        TimeUnit.SECONDS.toSeconds(Platform.UNKNOWN);
    }

    public c(boolean z, boolean z2, int i2, int i3, boolean z3, boolean z4, boolean z5, int i4, int i5, boolean z6, boolean z7, boolean z8, @Nullable String str) {
        this.f6065a = z;
        this.f6066b = z2;
        this.f6067c = i2;
        this.f6068d = i3;
        this.f6069e = z3;
        this.f6070f = z4;
        this.f6071g = z5;
        this.f6072h = i4;
        this.f6073i = i5;
        this.f6074j = z6;
        this.k = z7;
        this.l = z8;
        this.m = str;
    }

    /* JADX WARN: Removed duplicated region for block: B:15:0x0041  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static g.c a(g.r r22) {
        /*
            Method dump skipped, instruction units count: 350
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: g.c.a(g.r):g.c");
    }

    public String toString() {
        String string = this.m;
        if (string == null) {
            StringBuilder sb = new StringBuilder();
            if (this.f6065a) {
                sb.append("no-cache, ");
            }
            if (this.f6066b) {
                sb.append("no-store, ");
            }
            if (this.f6067c != -1) {
                sb.append("max-age=");
                sb.append(this.f6067c);
                sb.append(", ");
            }
            if (this.f6068d != -1) {
                sb.append("s-maxage=");
                sb.append(this.f6068d);
                sb.append(", ");
            }
            if (this.f6069e) {
                sb.append("private, ");
            }
            if (this.f6070f) {
                sb.append("public, ");
            }
            if (this.f6071g) {
                sb.append("must-revalidate, ");
            }
            if (this.f6072h != -1) {
                sb.append("max-stale=");
                sb.append(this.f6072h);
                sb.append(", ");
            }
            if (this.f6073i != -1) {
                sb.append("min-fresh=");
                sb.append(this.f6073i);
                sb.append(", ");
            }
            if (this.f6074j) {
                sb.append("only-if-cached, ");
            }
            if (this.k) {
                sb.append("no-transform, ");
            }
            if (this.l) {
                sb.append("immutable, ");
            }
            if (sb.length() == 0) {
                string = "";
            } else {
                sb.delete(sb.length() - 2, sb.length());
                string = sb.toString();
            }
            this.m = string;
        }
        return string;
    }
}
