package l4;

import android.content.Context;
import android.os.Build;
import androidx.work.NetworkType;
import m4.h;
import n4.o;

/* JADX INFO: loaded from: classes.dex */
public final class a extends c {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ int f30112e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public a(Context context, p4.a aVar, int i10) {
        super(h.a(context, aVar).f30376a);
        this.f30112e = i10;
        if (i10 == 1) {
            super(h.a(context, aVar).f30377b);
            return;
        }
        if (i10 == 2) {
            super(h.a(context, aVar).f30378c);
            return;
        }
        if (i10 == 3) {
            super(h.a(context, aVar).f30378c);
        } else if (i10 != 4) {
        } else {
            super(h.a(context, aVar).f30379d);
        }
    }

    @Override // l4.c
    public final boolean a(o oVar) {
        switch (this.f30112e) {
            case 0:
                return oVar.f30827j.f4550b;
            case 1:
                return oVar.f30827j.f4552d;
            case 2:
                return oVar.f30827j.f4549a == NetworkType.f4507b;
            case 3:
                NetworkType networkType = oVar.f30827j.f4549a;
                if (networkType != NetworkType.f4508c) {
                    return Build.VERSION.SDK_INT >= 30 && networkType == NetworkType.f4511f;
                }
                return true;
            default:
                return oVar.f30827j.f4553e;
        }
    }

    @Override // l4.c
    public final /* bridge */ /* synthetic */ boolean b(Object obj) {
        switch (this.f30112e) {
            case 0:
                return d((Boolean) obj);
            case 1:
                return d((Boolean) obj);
            case 2:
                return e((k4.b) obj);
            case 3:
                return e((k4.b) obj);
            default:
                return d((Boolean) obj);
        }
    }

    public final boolean d(Boolean bool) {
        switch (this.f30112e) {
        }
        return !bool.booleanValue();
    }

    public final boolean e(k4.b bVar) {
        switch (this.f30112e) {
            case 2:
                return Build.VERSION.SDK_INT >= 26 ? (bVar.f29062a && bVar.f29063b) ? false : true : true ^ bVar.f29062a;
            default:
                return !bVar.f29062a || bVar.f29064c;
        }
    }
}
