package g.m0;

import g.h0.b.p;
import g.h0.c.l;
import g.h0.c.m;
import g.k;

/* JADX INFO: compiled from: Strings.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class g extends m implements p<CharSequence, Integer, k<? extends Integer, ? extends Integer>> {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ char[] f4171b;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public g(char[] cArr, boolean z) {
        super(2);
        this.f4171b = cArr;
        this.f4172e = z;
    }

    @Override // g.h0.b.p
    public k<? extends Integer, ? extends Integer> d(CharSequence charSequence, Integer num) {
        CharSequence charSequence2 = charSequence;
        int iIntValue = num.intValue();
        l.f(charSequence2, "$this$$receiver");
        int iN = f.n(charSequence2, this.f4171b, iIntValue, this.f4172e);
        if (iN < 0) {
            return null;
        }
        return new k<>(Integer.valueOf(iN), 1);
    }
}
