package f;

import okhttp3.HttpUrl;

/* JADX INFO: renamed from: f.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0461g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final int f3865a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final int f3866b;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    protected boolean f3869e;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private final StringBuilder f3868d = new StringBuilder();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private int f3867c = 0;

    protected C0461g(int i2, int i3) {
        this.f3866b = i2;
        this.f3865a = i3;
        this.f3869e = i3 == 0;
    }

    protected String a() {
        return this.f3868d.length() != 0 ? this.f3868d.substring(1) : HttpUrl.FRAGMENT_ENCODE_SET;
    }

    protected void b(String str, int i2) {
        int i3 = this.f3866b;
        if (i2 < i3 || i2 >= i3 + this.f3865a) {
            return;
        }
        if (!str.equals("arg" + this.f3867c)) {
            this.f3869e = true;
        }
        this.f3868d.append(',');
        this.f3868d.append(str);
        this.f3867c++;
    }
}
