package o;

import android.graphics.Bitmap;
import java.io.EOFException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Of, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0368Of {
    public final Object a = AbstractC2001nt0.y(3, new C0342Nf(this, 0));
    public final Object b = AbstractC2001nt0.y(3, new C0342Nf(this, 1));
    public final long c;
    public final long d;
    public final boolean e;
    public final LE f;

    public C0368Of(C1822m00 c1822m00) throws NumberFormatException, EOFException {
        this.c = Long.parseLong(c1822m00.A(Long.MAX_VALUE));
        this.d = Long.parseLong(c1822m00.A(Long.MAX_VALUE));
        this.e = Integer.parseInt(c1822m00.A(Long.MAX_VALUE)) > 0;
        int i = Integer.parseInt(c1822m00.A(Long.MAX_VALUE));
        KE ke = new KE(0);
        for (int i2 = 0; i2 < i; i2++) {
            String strA = c1822m00.A(Long.MAX_VALUE);
            Bitmap.Config[] configArr = AbstractC1345h.a;
            int iV = Za0.V(strA, ':', 0, 6);
            if (iV == -1) {
                throw new IllegalArgumentException("Unexpected header: ".concat(strA).toString());
            }
            ke.c(Za0.o0(strA.substring(0, iV)).toString(), strA.substring(iV + 1));
        }
        this.f = ke.d();
    }

    public final void a(C1632k00 c1632k00) {
        c1632k00.K(this.c);
        c1632k00.writeByte(10);
        c1632k00.K(this.d);
        c1632k00.writeByte(10);
        c1632k00.K(this.e ? 1L : 0L);
        c1632k00.writeByte(10);
        LE le = this.f;
        c1632k00.K(le.size());
        c1632k00.writeByte(10);
        int size = le.size();
        for (int i = 0; i < size; i++) {
            c1632k00.J(le.b(i));
            c1632k00.J(": ");
            c1632k00.J(le.d(i));
            c1632k00.writeByte(10);
        }
    }

    public C0368Of(C20 c20) {
        this.c = c20.v;
        this.d = c20.w;
        this.e = c20.p != null;
        this.f = c20.q;
    }
}
