package E1;

import java.util.regex.Pattern;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class x extends P6.h implements O6.a {

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ y f2139s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ x(y yVar, int i) {
        super(0);
        this.f2138r = i;
        this.f2139s = yVar;
    }

    @Override // O6.a
    public final Object a() {
        switch (this.f2138r) {
            case u0.f15495q /* 0 */:
                String str = this.f2139s.f2149j;
                if (str != null) {
                    return Pattern.compile(str);
                }
                return null;
            default:
                String str2 = this.f2139s.f2146f;
                if (str2 != null) {
                    return Pattern.compile(str2, 2);
                }
                return null;
        }
    }
}
