package o;

import com.google.android.gms.common.api.Api;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.oO, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2045oO extends AbstractC0706aK implements NC {
    public final /* synthetic */ int m;
    public final /* synthetic */ C2140pO n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C2045oO(C2140pO c2140pO, int i) {
        super(0);
        this.m = i;
        this.n = c2140pO;
    }

    @Override // o.NC
    public final Object a() {
        UW placementScope;
        switch (this.m) {
            case 0:
                C2140pO c2140pO = this.n;
                C2800wK c2800wK = c2140pO.q;
                c2800wK.h = 0;
                C1479iR c1479iRW = c2800wK.a.w();
                Object[] objArr = c1479iRW.l;
                int i = c1479iRW.n;
                for (int i2 = 0; i2 < i; i2++) {
                    C2140pO c2140pO2 = ((C2420sK) objArr[i2]).O.f773o;
                    c2140pO2.s = c2140pO2.t;
                    c2140pO2.t = Api.BaseClientBuilder.API_PRIORITY_OTHER;
                    c2140pO2.C = false;
                    if (c2140pO2.U == 2) {
                        c2140pO2.U = 3;
                    }
                }
                C2420sK c2420sK = c2800wK.a;
                C2420sK c2420sK2 = c2800wK.a;
                C1479iR c1479iRW2 = c2420sK.w();
                Object[] objArr2 = c1479iRW2.l;
                int i3 = c1479iRW2.n;
                for (int i4 = 0; i4 < i3; i4++) {
                    ((C2420sK) objArr2[i4]).O.f773o.G.getClass();
                }
                c2140pO.n().x0().b();
                C1479iR c1479iRW3 = c2420sK2.w();
                Object[] objArr3 = c1479iRW3.l;
                int i5 = c1479iRW3.n;
                for (int i6 = 0; i6 < i5; i6++) {
                    C2420sK c2420sK3 = (C2420sK) objArr3[i6];
                    C2800wK c2800wK2 = c2420sK3.O;
                    if (c2800wK2.f773o.s != c2420sK3.t()) {
                        c2420sK2.L();
                        c2420sK2.z();
                        if (c2420sK3.t() == Integer.MAX_VALUE) {
                            if (c2800wK2.b) {
                                c2800wK2.p.d0(false);
                            }
                            c2800wK2.f773o.f0();
                        }
                    }
                }
                C1479iR c1479iRW4 = c2420sK2.w();
                Object[] objArr4 = c1479iRW4.l;
                int i7 = c1479iRW4.n;
                for (int i8 = 0; i8 < i7; i8++) {
                    C2515tK c2515tK = ((C2420sK) objArr4[i8]).O.f773o.G;
                    c2515tK.getClass();
                    c2515tK.c = false;
                }
                break;
            case 1:
                C2140pO c2140pO3 = this.n;
                c2140pO3.q.a().c(c2140pO3.K);
                break;
            default:
                C2140pO c2140pO4 = this.n;
                C2800wK c2800wK3 = c2140pO4.q;
                AbstractC2239qS abstractC2239qS = c2800wK3.a().B;
                if (abstractC2239qS == null || (placementScope = abstractC2239qS.w) == null) {
                    placementScope = ((C2207q3) AbstractC2705vK.a(c2800wK3.a)).getPlacementScope();
                }
                OC oc = c2140pO4.P;
                if (oc == null) {
                    AbstractC2239qS abstractC2239qSA = c2800wK3.a();
                    long j = c2140pO4.Q;
                    float f = c2140pO4.R;
                    placementScope.getClass();
                    UW.a(placementScope, abstractC2239qSA);
                    abstractC2239qSA.a0(C0704aI.c(j, abstractC2239qSA.p), f, null);
                } else {
                    AbstractC2239qS abstractC2239qSA2 = c2800wK3.a();
                    long j2 = c2140pO4.Q;
                    float f2 = c2140pO4.R;
                    placementScope.getClass();
                    UW.a(placementScope, abstractC2239qSA2);
                    abstractC2239qSA2.a0(C0704aI.c(j2, abstractC2239qSA2.p), f2, oc);
                }
                break;
        }
        return Oh0.a;
    }
}
