package androidx.media3.exoplayer.hls;

import C4.f;
import E0.b;
import E0.h;
import F0.l;
import G0.r;
import K4.c;
import L0.AbstractC0146a;
import L0.B;
import P2.C0253j;
import d3.C;
import d3.R0;
import java.util.List;
import u0.C1588y;
import x3.e;
import z0.g;

/* JADX INFO: loaded from: classes.dex */
public final class HlsMediaSource$Factory implements B {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public F0.c f8871b;

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final b f8877h = new b(0);

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final e f8874e = new e(4);

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final C0.c f8875f = G0.c.f2754E;
    public final f i = new f(12);

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final C0253j f8876g = new C0253j(7);

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final int f8879k = 1;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final long f8880l = -9223372036854775807L;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final boolean f8878j = true;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f8873d = true;

    public HlsMediaSource$Factory(g gVar) {
        this.f8870a = new c(11, gVar);
    }

    @Override // L0.B
    public final B a(boolean z8) {
        this.f8873d = z8;
        return this;
    }

    @Override // L0.B
    public final B c(C c3) {
        this.f8872c = c3;
        return this;
    }

    @Override // L0.B
    public final AbstractC0146a d(C1588y c1588y) {
        c1588y.f17396b.getClass();
        if (this.f8871b == null) {
            F0.c cVar = new F0.c();
            cVar.f2263a = new C(13);
            this.f8871b = cVar;
        }
        C c3 = this.f8872c;
        if (c3 != null) {
            this.f8871b.f2263a = c3;
        }
        F0.c cVar2 = this.f8871b;
        cVar2.f2264b = this.f8873d;
        r r02 = this.f8874e;
        List list = c1588y.f17396b.f17386c;
        if (!list.isEmpty()) {
            r02 = new R0(r02, list, 16, false);
        }
        h hVarB = this.f8877h.b(c1588y);
        f fVar = this.i;
        this.f8875f.getClass();
        c cVar3 = this.f8870a;
        return new l(c1588y, cVar3, cVar2, this.f8876g, hVarB, fVar, new G0.c(cVar3, fVar, r02), this.f8880l, this.f8878j, this.f8879k);
    }

    @Override // L0.B
    public final B b() {
        return this;
    }
}
