package androidx.collection; import java.util.Collection; import java.util.Iterator; import java.util.Set; import kotlin.collections.CollectionsKt___CollectionsKt; import kotlin.jvm.internal.CollectionToArray; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; import kotlin.jvm.internal.markers.KMutableSet; /* JADX INFO: Add missing generic type declarations: [K] */ @SourceDebugExtension({"SMAP\nScatterMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/MutableScatterMap$MutableMapWrapper$keys$1\n+ 2 ScatterMap.kt\nandroidx/collection/ScatterMap\n+ 3 ScatterMap.kt\nandroidx/collection/ScatterMapKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,1850:1\n363#2,6:1851\n373#2,3:1858\n376#2,9:1862\n363#2,6:1871\n373#2,3:1878\n376#2,9:1882\n633#2:1891\n634#2:1895\n636#2,2:1897\n638#2,4:1900\n642#2:1907\n643#2:1911\n644#2:1913\n645#2,4:1916\n651#2:1921\n652#2,8:1923\n1826#3:1857\n1688#3:1861\n1826#3:1877\n1688#3:1881\n1605#3,3:1892\n1619#3:1896\n1615#3:1899\n1795#3,3:1904\n1809#3,3:1908\n1733#3:1912\n1721#3:1914\n1715#3:1915\n1728#3:1920\n1818#3:1922\n1726#4,3:1931\n*S KotlinDebug\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/MutableScatterMap$MutableMapWrapper$keys$1\n*L\n1466#1:1851,6\n1466#1:1858,3\n1466#1:1862,9\n1477#1:1871,6\n1477#1:1878,3\n1477#1:1882,9\n1487#1:1891\n1487#1:1895\n1487#1:1897,2\n1487#1:1900,4\n1487#1:1907\n1487#1:1911\n1487#1:1913\n1487#1:1916,4\n1487#1:1921\n1487#1:1923,8\n1466#1:1857\n1466#1:1861\n1477#1:1877\n1477#1:1881\n1487#1:1892,3\n1487#1:1896\n1487#1:1899\n1487#1:1904,3\n1487#1:1908,3\n1487#1:1912\n1487#1:1914\n1487#1:1915\n1487#1:1920\n1487#1:1922\n1496#1:1931,3\n*E\n"}) /* loaded from: classes.dex */ public final class MutableScatterMap$MutableMapWrapper$keys$1 implements Set, KMutableSet { final /* synthetic */ MutableScatterMap this$0; @Override // java.util.Set, java.util.Collection public Object[] toArray() { return CollectionToArray.toArray(this); } @Override // java.util.Set, java.util.Collection public T[] toArray(T[] array) { Intrinsics.checkNotNullParameter(array, "array"); return (T[]) CollectionToArray.toArray(this, array); } @Override // java.util.Set, java.util.Collection public boolean removeAll(Collection elements) { boolean contains; Intrinsics.checkNotNullParameter(elements, "elements"); MutableScatterMap mutableScatterMap = this.this$0; long[] jArr = mutableScatterMap.metadata; int length = jArr.length - 2; boolean z = false; if (length >= 0) { int i = 0; boolean z2 = false; while (true) { long j = jArr[i]; if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) { int i2 = 8 - ((~(i - length)) >>> 31); for (int i3 = 0; i3 < i2; i3++) { if ((255 & j) < 128) { int i4 = (i << 3) + i3; contains = CollectionsKt___CollectionsKt.contains(elements, mutableScatterMap.keys[i4]); if (contains) { mutableScatterMap.removeValueAt(i4); z2 = true; } } j >>= 8; } if (i2 != 8) { return z2; } } if (i == length) { z = z2; break; } i++; } } return z; } @Override // java.util.Set, java.util.Collection public boolean retainAll(Collection elements) { boolean contains; Intrinsics.checkNotNullParameter(elements, "elements"); MutableScatterMap mutableScatterMap = this.this$0; long[] jArr = mutableScatterMap.metadata; int length = jArr.length - 2; boolean z = false; if (length >= 0) { int i = 0; boolean z2 = false; while (true) { long j = jArr[i]; if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) { int i2 = 8 - ((~(i - length)) >>> 31); for (int i3 = 0; i3 < i2; i3++) { if ((255 & j) < 128) { int i4 = (i << 3) + i3; contains = CollectionsKt___CollectionsKt.contains(elements, mutableScatterMap.keys[i4]); if (!contains) { mutableScatterMap.removeValueAt(i4); z2 = true; } } j >>= 8; } if (i2 != 8) { return z2; } } if (i == length) { z = z2; break; } i++; } } return z; } public MutableScatterMap$MutableMapWrapper$keys$1(MutableScatterMap mutableScatterMap) { this.this$0 = mutableScatterMap; } @Override // java.util.Set, java.util.Collection public final /* bridge */ int size() { return getSize(); } public int getSize() { return this.this$0._size; } @Override // java.util.Set, java.util.Collection public boolean isEmpty() { return this.this$0.isEmpty(); } @Override // java.util.Set, java.util.Collection, java.lang.Iterable public Iterator iterator() { return new MutableScatterMap$MutableMapWrapper$keys$1$iterator$1(this.this$0); } @Override // java.util.Set, java.util.Collection public void clear() { this.this$0.clear(); } @Override // java.util.Set, java.util.Collection public boolean addAll(Collection elements) { Intrinsics.checkNotNullParameter(elements, "elements"); throw new UnsupportedOperationException(); } @Override // java.util.Set, java.util.Collection public boolean add(K k) { throw new UnsupportedOperationException(); } /* JADX WARN: Multi-variable type inference failed */ @Override // java.util.Set, java.util.Collection public boolean containsAll(Collection elements) { Intrinsics.checkNotNullParameter(elements, "elements"); Collection collection = elements; MutableScatterMap mutableScatterMap = this.this$0; if (collection.isEmpty()) { return true; } Iterator it = collection.iterator(); while (it.hasNext()) { if (!mutableScatterMap.containsKey(it.next())) { return false; } } return true; } @Override // java.util.Set, java.util.Collection public boolean contains(Object obj) { return this.this$0.containsKey(obj); } /* JADX WARN: Code restructure failed: missing block: B:19:0x0070, code lost: if (((r8 & ((~r8) << 6)) & (-9187201950435737472L)) == 0) goto L22; */ /* JADX WARN: Code restructure failed: missing block: B:22:0x0072, code lost: r12 = -1; */ @Override // java.util.Set, java.util.Collection /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public boolean remove(java.lang.Object r19) { /* r18 = this; r0 = r18 r1 = r19 androidx.collection.MutableScatterMap r2 = r0.this$0 if (r1 == 0) goto Ld int r4 = r19.hashCode() goto Le Ld: r4 = 0 Le: r5 = -862048943(0xffffffffcc9e2d51, float:-8.293031E7) int r4 = r4 * r5 int r5 = r4 << 16 r4 = r4 ^ r5 r5 = r4 & 127(0x7f, float:1.78E-43) int r6 = r2._capacity int r4 = r4 >>> 7 r4 = r4 & r6 r7 = 0 L1d: long[] r8 = r2.metadata int r9 = r4 >> 3 r10 = r4 & 7 int r10 = r10 << 3 r11 = r8[r9] long r11 = r11 >>> r10 r13 = 1 int r9 = r9 + r13 r14 = r8[r9] int r8 = 64 - r10 long r8 = r14 << r8 long r14 = (long) r10 long r14 = -r14 r10 = 63 long r14 = r14 >> r10 long r8 = r8 & r14 long r8 = r8 | r11 long r10 = (long) r5 r14 = 72340172838076673(0x101010101010101, double:7.748604185489348E-304) long r10 = r10 * r14 long r10 = r10 ^ r8 long r14 = r10 - r14 long r10 = ~r10 long r10 = r10 & r14 r14 = -9187201950435737472(0x8080808080808080, double:-2.937446524422997E-306) long r10 = r10 & r14 L49: r16 = 0 int r12 = (r10 > r16 ? 1 : (r10 == r16 ? 0 : -1)) if (r12 == 0) goto L69 int r12 = java.lang.Long.numberOfTrailingZeros(r10) int r12 = r12 >> 3 int r12 = r12 + r4 r12 = r12 & r6 java.lang.Object[] r3 = r2.keys r3 = r3[r12] boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r3, r1) if (r3 == 0) goto L62 goto L73 L62: r16 = 1 long r16 = r10 - r16 long r10 = r10 & r16 goto L49 L69: long r10 = ~r8 r3 = 6 long r10 = r10 << r3 long r8 = r8 & r10 long r8 = r8 & r14 int r3 = (r8 > r16 ? 1 : (r8 == r16 ? 0 : -1)) if (r3 == 0) goto L7d r12 = -1 L73: if (r12 < 0) goto L7b androidx.collection.MutableScatterMap r1 = r0.this$0 r1.removeValueAt(r12) return r13 L7b: r3 = 0 return r3 L7d: r3 = 0 int r7 = r7 + 8 int r4 = r4 + r7 r4 = r4 & r6 goto L1d */ throw new UnsupportedOperationException("Method not decompiled: androidx.collection.MutableScatterMap$MutableMapWrapper$keys$1.remove(java.lang.Object):boolean"); } }