package ῲ.ⁱ.ῲ.㿎.ᕣ;

import androidx.constraintlayout.solver.widgets.analyzer.DependencyNode;
import androidx.constraintlayout.solver.widgets.analyzer.WidgetRun;
import java.util.ArrayList;

/* renamed from: ῲ.ⁱ.ῲ.㿎.ᕣ.ᕣ  reason: contains not printable characters */
/* compiled from: RunGroup */
public class C2086 {

    /* renamed from: 㸾  reason: contains not printable characters */
    public static int f7219;

    /* renamed from: ʬ  reason: contains not printable characters */
    public ArrayList<WidgetRun> f7220 = new ArrayList<>();

    /* renamed from: ῲ  reason: contains not printable characters */
    public WidgetRun f7221 = null;

    /* renamed from: K  reason: contains not printable characters */
    public boolean f7222;

    public C2086(WidgetRun widgetRun, int i) {
        f7219++;
        this.f7221 = widgetRun;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final long m5507(DependencyNode dependencyNode, long j) {
        WidgetRun widgetRun = dependencyNode.f916;
        if (widgetRun instanceof C2087) {
            return j;
        }
        int size = dependencyNode.f908.size();
        long j2 = j;
        for (int i = 0; i < size; i++) {
            AbstractC2096 r5 = dependencyNode.f908.get(i);
            if (r5 instanceof DependencyNode) {
                DependencyNode dependencyNode2 = (DependencyNode) r5;
                if (dependencyNode2.f916 != widgetRun) {
                    j2 = Math.max(j2, m5507(dependencyNode2, ((long) dependencyNode2.f915) + j));
                }
            }
        }
        if (dependencyNode != widgetRun.f928) {
            return j2;
        }
        long r10 = j + widgetRun.m529();
        return Math.max(Math.max(j2, m5507(widgetRun.f921, r10)), r10 - ((long) widgetRun.f921.f915));
    }

    /* renamed from: K  reason: contains not printable characters */
    public final long m5508(DependencyNode dependencyNode, long j) {
        WidgetRun widgetRun = dependencyNode.f916;
        if (widgetRun instanceof C2087) {
            return j;
        }
        int size = dependencyNode.f908.size();
        long j2 = j;
        for (int i = 0; i < size; i++) {
            AbstractC2096 r5 = dependencyNode.f908.get(i);
            if (r5 instanceof DependencyNode) {
                DependencyNode dependencyNode2 = (DependencyNode) r5;
                if (dependencyNode2.f916 != widgetRun) {
                    j2 = Math.min(j2, m5508(dependencyNode2, ((long) dependencyNode2.f915) + j));
                }
            }
        }
        if (dependencyNode != widgetRun.f921) {
            return j2;
        }
        long r10 = j - widgetRun.m529();
        return Math.min(Math.min(j2, m5508(widgetRun.f928, r10)), r10 - ((long) widgetRun.f928.f915));
    }
}
