package o;

import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class BG {
    public final String a;
    public final float b;
    public final float c;
    public final float d;
    public final float e;
    public final long f;
    public final int g;
    public final boolean h;
    public final ArrayList i;
    public final AG j;
    public boolean k;

    public BG(String str, float f, float f2, float f3, float f4, long j, int i, boolean z, int i2) {
        str = (i2 & 1) != 0 ? "" : str;
        long j2 = (i2 & 32) != 0 ? C0190Hi.g : j;
        int i3 = (i2 & 64) != 0 ? 5 : i;
        this.a = str;
        this.b = f;
        this.c = f2;
        this.d = f3;
        this.e = f4;
        this.f = j2;
        this.g = i3;
        this.h = z;
        ArrayList arrayList = new ArrayList();
        this.i = arrayList;
        AG ag = new AG(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, null, 1023);
        this.j = ag;
        arrayList.add(ag);
    }

    public static void a(BG bg, ArrayList arrayList, Q90 q90) {
        if (bg.k) {
            AbstractC2133pH.b("ImageVector.Builder is single use, create a new instance to create a new ImageVector");
        }
        ((AG) bg.i.get(r0.size() - 1)).j.add(new C0932cj0("", arrayList, 0, q90, 1.0f, null, 1.0f, 1.0f, 0, 2, 1.0f, 0.0f, 1.0f, 0.0f));
    }

    public final CG b() {
        if (this.k) {
            AbstractC2133pH.b("ImageVector.Builder is single use, create a new instance to create a new ImageVector");
        }
        while (true) {
            ArrayList arrayList = this.i;
            if (arrayList.size() <= 1) {
                AG ag = this.j;
                CG cg = new CG(this.a, this.b, this.c, this.d, this.e, new Yi0(ag.a, ag.b, ag.c, ag.d, ag.e, ag.f, ag.g, ag.h, ag.i, ag.j), this.f, this.g, this.h);
                this.k = true;
                return cg;
            }
            if (this.k) {
                AbstractC2133pH.b("ImageVector.Builder is single use, create a new instance to create a new ImageVector");
            }
            AG ag2 = (AG) arrayList.remove(arrayList.size() - 1);
            ((AG) arrayList.get(arrayList.size() - 1)).j.add(new Yi0(ag2.a, ag2.b, ag2.c, ag2.d, ag2.e, ag2.f, ag2.g, ag2.h, ag2.i, ag2.j));
        }
    }
}
