package android.support.constraint.i.j;

import android.support.constraint.i.j.e;
import java.util.ArrayList;

/* JADX INFO: compiled from: Snapshot.java */
/* JADX INFO: loaded from: classes.dex */
public class o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private int f478a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private int f479b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private int f480c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private int f481d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private ArrayList<a> f482e = new ArrayList<>();

    /* JADX INFO: compiled from: Snapshot.java */
    static class a {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        private e f483a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        private e f484b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        private int f485c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        private e.c f486d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        private int f487e;

        public a(e eVar) {
            this.f483a = eVar;
            this.f484b = eVar.i();
            this.f485c = eVar.d();
            this.f486d = eVar.h();
            this.f487e = eVar.c();
        }

        public void a(f fVar) {
            fVar.h(this.f483a.j()).b(this.f484b, this.f485c, this.f486d, this.f487e);
        }

        public void b(f fVar) {
            e eVarH = fVar.h(this.f483a.j());
            this.f483a = eVarH;
            if (eVarH != null) {
                this.f484b = eVarH.i();
                this.f485c = this.f483a.d();
                this.f486d = this.f483a.h();
                this.f487e = this.f483a.c();
                return;
            }
            this.f484b = null;
            this.f485c = 0;
            this.f486d = e.c.STRONG;
            this.f487e = 0;
        }
    }

    public o(f fVar) {
        this.f478a = fVar.G();
        this.f479b = fVar.H();
        this.f480c = fVar.D();
        this.f481d = fVar.r();
        ArrayList<e> arrayListI = fVar.i();
        int size = arrayListI.size();
        for (int i = 0; i < size; i++) {
            this.f482e.add(new a(arrayListI.get(i)));
        }
    }

    public void a(f fVar) {
        fVar.C0(this.f478a);
        fVar.D0(this.f479b);
        fVar.y0(this.f480c);
        fVar.b0(this.f481d);
        int size = this.f482e.size();
        for (int i = 0; i < size; i++) {
            this.f482e.get(i).a(fVar);
        }
    }

    public void b(f fVar) {
        this.f478a = fVar.G();
        this.f479b = fVar.H();
        this.f480c = fVar.D();
        this.f481d = fVar.r();
        int size = this.f482e.size();
        for (int i = 0; i < size; i++) {
            this.f482e.get(i).b(fVar);
        }
    }
}
