package defpackage;

import j$.util.Objects;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.ListIterator;

/* JADX INFO: renamed from: ᵪˑᵦ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3893 extends AbstractC4516 implements InterfaceC0778 {

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ C4790 f14862;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ int f14863;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C3893(C4790 c4790, int i) {
        super(1);
        this.f14863 = i;
        this.f14862 = c4790;
    }

    @Override // defpackage.InterfaceC0778
    /* JADX INFO: renamed from: ʽˈˋ */
    public final Object mo1706(Object obj) {
        int i = this.f14863;
        C5063 c5063 = C5063.f19112;
        int i2 = 0;
        Object obj2 = null;
        C4790 c4790 = this.f14862;
        switch (i) {
            case 0:
                C0920 c0920 = c4790.f18219;
                ListIterator listIterator = c0920.listIterator(c0920.mo3166());
                while (true) {
                    if (listIterator.hasPrevious()) {
                        Object objPrevious = listIterator.previous();
                        if (((C2610) objPrevious).f10124) {
                            obj2 = objPrevious;
                        }
                    }
                }
                C2610 c2610 = (C2610) obj2;
                c4790.f18220 = c2610;
                if (c2610 != null) {
                    AbstractC0651 abstractC0651 = c2610.f10125;
                    if (AbstractC0651.m2324(3)) {
                        Objects.toString(abstractC0651);
                    }
                    abstractC0651.m2379();
                    abstractC0651.m2386(new C0277(abstractC0651), false);
                }
                break;
            default:
                C1783 c1783 = (C1783) obj;
                C2610 c26102 = c4790.f18220;
                if (c26102 == null) {
                    C0920 c09202 = c4790.f18219;
                    ListIterator listIterator2 = c09202.listIterator(c09202.mo3166());
                    while (true) {
                        if (listIterator2.hasPrevious()) {
                            Object objPrevious2 = listIterator2.previous();
                            if (((C2610) objPrevious2).f10124) {
                                obj2 = objPrevious2;
                            }
                        }
                    }
                    c26102 = (C2610) obj2;
                }
                if (c26102 != null) {
                    AbstractC0651 abstractC06512 = c26102.f10125;
                    if (AbstractC0651.m2324(2)) {
                        Objects.toString(abstractC06512);
                    }
                    if (abstractC06512.f3057 != null) {
                        for (C2313 c2313 : abstractC06512.m2391(new ArrayList(Collections.singletonList(abstractC06512.f3057)), 0, 1)) {
                            c2313.getClass();
                            AbstractC0651.m2324(2);
                            ArrayList arrayList = c2313.f9097;
                            ArrayList arrayList2 = new ArrayList();
                            int size = arrayList.size();
                            int i3 = 0;
                            while (i3 < size) {
                                Object obj3 = arrayList.get(i3);
                                i3++;
                                AbstractC5477.m11101(((C5362) obj3).f20293, arrayList2);
                            }
                            List listM8998 = AbstractC4126.m8998(AbstractC4126.m9012(arrayList2));
                            int size2 = listM8998.size();
                            for (int i4 = 0; i4 < size2; i4++) {
                                ((AbstractC2055) listM8998.get(i4)).mo1770(c1783);
                            }
                        }
                        ArrayList arrayList3 = abstractC06512.f3074;
                        int size3 = arrayList3.size();
                        while (i2 < size3) {
                            Object obj4 = arrayList3.get(i2);
                            i2++;
                            ((ˎᵹ) obj4).getClass();
                        }
                    }
                }
                break;
        }
        return c5063;
    }
}
