content: /*
   * Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty).
   */
  package okhttp3.internal.http2;
  
  import kotlin.Metadata;
  import kotlin.collections.ArraysKt;
  import kotlin.jvm.internal.DefaultConstructorMarker;
  import kotlin.jvm.internal.Intrinsics;
  import org.jetbrains.annotations.NotNull;
  
  @Metadata(mv={1, 4, 0}, bv={1, 0, 3}, k=1, d1={"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u0015\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000b\u0018\u0000 \u001b2\u00020\u0001:\u0001\u001bB\u0005\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\f\u001a\u00020\rJ\u0011\u0010\u000e\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u0004H\u0086\u0002J\u000e\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0011J\u0006\u0010\u0013\u001a\u00020\u0004J\u000e\u0010\u0014\u001a\u00020\u00042\u0006\u0010\u0012\u001a\u00020\u0004J\u000e\u0010\u0015\u001a\u00020\u00042\u0006\u0010\u0012\u001a\u00020\u0004J\u000e\u0010\u0016\u001a\u00020\u00112\u0006\u0010\u000f\u001a\u00020\u0004J\u000e\u0010\u0017\u001a\u00020\r2\u0006\u0010\u0018\u001a\u00020\u0000J\u0019\u0010\t\u001a\u00020\u00002\u0006\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u0019\u001a\u00020\u0004H\u0086\u0002J\u0006\u0010\u001a\u001a\u00020\u0004R\u0011\u0010\u0003\u001a\u00020\u00048F\u00a2\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0011\u0010\u0007\u001a\u00020\u00048F\u00a2\u0006\u0006\u001a\u0004\b\b\u0010\u0006R\u000e\u0010\t\u001a\u00020\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u001c"}, d2={"Lokhttp3/internal/http2/Settings;", "", "()V", "headerTableSize", "", "getHeaderTableSize", "()I", "initialWindowSize", "getInitialWindowSize", "set", "values", "", "clear", "", "get", "id", "getEnablePush", "", "defaultValue", "getMaxConcurrentStreams", "getMaxFrameSize", "getMaxHeaderListSize", "isSet", "merge", "other", "value", "size", "Companion", "okhttp"})
  public final class Settings {
      private int set;
      private final int[] values = new int[10];
      public static final int DEFAULT_INITIAL_WINDOW_SIZE = 65535;
      public static final int HEADER_TABLE_SIZE = 1;
      public static final int ENABLE_PUSH = 2;
      public static final int MAX_CONCURRENT_STREAMS = 4;
      public static final int MAX_FRAME_SIZE = 5;
      public static final int MAX_HEADER_LIST_SIZE = 6;
      public static final int INITIAL_WINDOW_SIZE = 7;
      public static final int COUNT = 10;
      public static final Companion Companion = new Companion(null);
  
      public final int getHeaderTableSize() {
          int bit = 2;
          return (bit & this.set) != 0 ? this.values[1] : -1;
      }
  
      public final int getInitialWindowSize() {
          int bit = 128;
          return (bit & this.set) != 0 ? this.values[7] : 65535;
      }
  
      public final void clear() {
          this.set = 0;
          ArraysKt.fill$default(this.values, 0, 0, 0, 6, null);
      }
  
      @NotNull
      public final Settings set(int id, int value) {
          if (id < 0 || id >= this.values.length) {
              return this;
          }
          int bit = 1 << id;
          this.set |= bit;
          this.values[id] = value;
          return this;
      }
  
      public final boolean isSet(int id) {
          int bit = 1 << id;
          return (this.set & bit) != 0;
      }
  
      public final int get(int id) {
          return this.values[id];
      }
  
      public final int size() {
          return Integer.bitCount(this.set);
      }
  
      public final boolean getEnablePush(boolean defaultValue) {
          int bit = 4;
          return (bit & this.set) != 0 ? this.values[2] == 1 : defaultValue;
      }
  
      public final int getMaxConcurrentStreams() {
          int bit = 16;
          return (bit & this.set) != 0 ? this.values[4] : Integer.MAX_VALUE;
      }
  
      public final int getMaxFrameSize(int defaultValue) {
          int bit = 32;
          return (bit & this.set) != 0 ? this.values[5] : defaultValue;
      }
  
      public final int getMaxHeaderListSize(int defaultValue) {
          int bit = 64;
          return (bit & this.set) != 0 ? this.values[6] : defaultValue;
      }
  
      /*
       * WARNING - void declaration
       */
      public final void merge(@NotNull Settings other) {
          Intrinsics.checkNotNullParameter(other, "other");
          int n = 0;
          int n2 = 10;
          while (n < n2) {
              void i;
              if (other.isSet((int)i)) {
                  this.set((int)i, other.get((int)i));
              }
              ++i;
          }
      }
  
      @Metadata(mv={1, 4, 0}, bv={1, 0, 3}, k=1, d1={"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\b\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000\u00a8\u0006\f"}, d2={"Lokhttp3/internal/http2/Settings$Companion;", "", "()V", "COUNT", "", "DEFAULT_INITIAL_WINDOW_SIZE", "ENABLE_PUSH", "HEADER_TABLE_SIZE", "INITIAL_WINDOW_SIZE", "MAX_CONCURRENT_STREAMS", "MAX_FRAME_SIZE", "MAX_HEADER_LIST_SIZE", "okhttp"})
      public static final class Companion {
          private Companion() {
          }
  
          public /* synthetic */ Companion(DefaultConstructorMarker $constructor_marker) {
              this();
          }
      }
  }
  
  