package okhttp3.internal.http2;

import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
public final class Settings {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f22592a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int[] f22593b = new int[10];

    public static final class Companion {
        public /* synthetic */ Companion(int i6) {
            this();
        }

        private Companion() {
        }
    }

    static {
        new Companion(0);
    }

    public final int a() {
        if ((this.f22592a & 128) != 0) {
            return this.f22593b[7];
        }
        return 65535;
    }

    public final void b(Settings other) {
        o.h(other, "other");
        for (int i6 = 0; i6 < 10; i6++) {
            if (((1 << i6) & other.f22592a) != 0) {
                c(i6, other.f22593b[i6]);
            }
        }
    }

    public final void c(int i6, int i7) {
        if (i6 >= 0) {
            int[] iArr = this.f22593b;
            if (i6 >= iArr.length) {
                return;
            }
            this.f22592a = (1 << i6) | this.f22592a;
            iArr[i6] = i7;
        }
    }
}
