1487 lines
51 KiB
Java
1487 lines
51 KiB
Java
|
package com.google.firebase.firestore.model;
|
||
|
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import com.google.common.base.Ascii;
|
||
|
import com.google.firebase.firestore.util.Assert;
|
||
|
import com.google.firebase.firestore.util.Util;
|
||
|
import com.pingan.ai.p;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.Map;
|
||
|
import java.util.TreeMap;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
import o.AQX;
|
||
|
import o.EnumC15686hkD;
|
||
|
import o.Nhs;
|
||
|
import o.QwV;
|
||
|
import o.gwr;
|
||
|
import o.jrE;
|
||
|
import o.ldG;
|
||
|
import o.sbb;
|
||
|
import o.uOO;
|
||
|
import o.xzZ;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class Values {
|
||
|
public static final sbb MAX_VALUE;
|
||
|
private static final sbb MAX_VALUE_TYPE;
|
||
|
public static final sbb MIN_VALUE;
|
||
|
public static final sbb NAN_VALUE;
|
||
|
public static final sbb NULL_VALUE;
|
||
|
private static int a;
|
||
|
private static long c;
|
||
|
private static int d;
|
||
|
private static char e;
|
||
|
private static final byte[] $$a = {Ascii.ESC, 74, ISO7816.INS_UPDATE_RECORD, 124};
|
||
|
private static final int $$b = 95;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int b = 0;
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
|
||
|
/* JADX WARN: Type inference failed for: r8v1, types: [int] */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002d). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void g(byte r6, int r7, short r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r6 = r6 * 4
|
||
|
int r6 = 4 - r6
|
||
|
byte[] r0 = com.google.firebase.firestore.model.Values.$$a
|
||
|
int r8 = r8 + 114
|
||
|
int r7 = r7 * 4
|
||
|
int r7 = r7 + 1
|
||
|
byte[] r1 = new byte[r7]
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L15
|
||
|
r4 = r8
|
||
|
r3 = r2
|
||
|
r8 = r6
|
||
|
goto L2d
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
r5 = r8
|
||
|
r8 = r6
|
||
|
r6 = r5
|
||
|
byte r4 = (byte) r6
|
||
|
r1[r3] = r4
|
||
|
int r3 = r3 + 1
|
||
|
if (r3 != r7) goto L28
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L28:
|
||
|
r4 = r0[r8]
|
||
|
r5 = r8
|
||
|
r8 = r6
|
||
|
r6 = r5
|
||
|
L2d:
|
||
|
int r6 = r6 + 1
|
||
|
int r4 = -r4
|
||
|
int r8 = r8 + r4
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.firestore.model.Values.g(byte, int, short, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
a = 1;
|
||
|
b();
|
||
|
NAN_VALUE = sbb.d().b(Double.NaN).build();
|
||
|
sbb build = sbb.d().b(EnumC15686hkD.NULL_VALUE).build();
|
||
|
NULL_VALUE = build;
|
||
|
MIN_VALUE = build;
|
||
|
sbb build2 = sbb.d().e("__max__").build();
|
||
|
MAX_VALUE_TYPE = build2;
|
||
|
MAX_VALUE = sbb.d().d(ldG.a().b("__type__", build2)).build();
|
||
|
int i = b + 43;
|
||
|
a = i % 128;
|
||
|
if (i % 2 != 0) {
|
||
|
return;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: com.google.firebase.firestore.model.Values$1, reason: invalid class name */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static /* synthetic */ class AnonymousClass1 {
|
||
|
static final int[] $SwitchMap$com$google$firestore$v1$Value$ValueTypeCase;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[sbb.HBt.values().length];
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase = iArr;
|
||
|
try {
|
||
|
iArr[sbb.HBt.NULL_VALUE.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.BOOLEAN_VALUE.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.INTEGER_VALUE.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.DOUBLE_VALUE.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused4) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.TIMESTAMP_VALUE.ordinal()] = 5;
|
||
|
} catch (NoSuchFieldError unused5) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.STRING_VALUE.ordinal()] = 6;
|
||
|
} catch (NoSuchFieldError unused6) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.BYTES_VALUE.ordinal()] = 7;
|
||
|
} catch (NoSuchFieldError unused7) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.REFERENCE_VALUE.ordinal()] = 8;
|
||
|
} catch (NoSuchFieldError unused8) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.GEO_POINT_VALUE.ordinal()] = 9;
|
||
|
} catch (NoSuchFieldError unused9) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.ARRAY_VALUE.ordinal()] = 10;
|
||
|
} catch (NoSuchFieldError unused10) {
|
||
|
}
|
||
|
try {
|
||
|
$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.MAP_VALUE.ordinal()] = 11;
|
||
|
} catch (NoSuchFieldError unused11) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static int typeOrder(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
switch (AnonymousClass1.$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.c(sbbVar.valueTypeCase_).ordinal()]) {
|
||
|
case 1:
|
||
|
return 0;
|
||
|
case 2:
|
||
|
int i2 = a + 31;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
int i3 = 36 / 0;
|
||
|
}
|
||
|
return 1;
|
||
|
case 3:
|
||
|
case 4:
|
||
|
return 2;
|
||
|
case 5:
|
||
|
return 3;
|
||
|
case 6:
|
||
|
return 5;
|
||
|
case 7:
|
||
|
return 6;
|
||
|
case 8:
|
||
|
int i4 = a + 3;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return 7;
|
||
|
case 9:
|
||
|
int i6 = a + 17;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
return 8;
|
||
|
case 10:
|
||
|
return 9;
|
||
|
case 11:
|
||
|
if (ServerTimestamps.isServerTimestamp(sbbVar)) {
|
||
|
return 4;
|
||
|
}
|
||
|
return isMaxValue(sbbVar) ? Integer.MAX_VALUE : 10;
|
||
|
default:
|
||
|
StringBuilder sb = new StringBuilder("Invalid value type: ");
|
||
|
sb.append(sbb.HBt.c(sbbVar.valueTypeCase_));
|
||
|
throw Assert.fail(sb.toString(), new Object[0]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x001f, code lost:
|
||
|
|
||
|
if (r6 != null) goto L13;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0024, code lost:
|
||
|
|
||
|
r2 = typeOrder(r5);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x002c, code lost:
|
||
|
|
||
|
if (r2 == typeOrder(r6)) goto L16;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x002e, code lost:
|
||
|
|
||
|
return false;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x002f, code lost:
|
||
|
|
||
|
if (r2 == 2) goto L34;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x0032, code lost:
|
||
|
|
||
|
if (r2 == 4) goto L32;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0034, code lost:
|
||
|
|
||
|
r3 = com.google.firebase.firestore.model.Values.b + 113;
|
||
|
r4 = r3 % 128;
|
||
|
com.google.firebase.firestore.model.Values.a = r4;
|
||
|
r3 = r3 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0040, code lost:
|
||
|
|
||
|
if (r2 == Integer.MAX_VALUE) goto L31;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x0044, code lost:
|
||
|
|
||
|
if (r2 == 9) goto L29;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x0048, code lost:
|
||
|
|
||
|
if (r2 == 10) goto L27;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x004a, code lost:
|
||
|
|
||
|
r4 = r4 + 41;
|
||
|
com.google.firebase.firestore.model.Values.b = r4 % 128;
|
||
|
r4 = r4 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x0055, code lost:
|
||
|
|
||
|
return r5.equals(r6);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x005a, code lost:
|
||
|
|
||
|
return objectEquals(r5, r6);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x005f, code lost:
|
||
|
|
||
|
return arrayEquals(r5, r6);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:29:0x0060, code lost:
|
||
|
|
||
|
return true;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:31:0x006d, code lost:
|
||
|
|
||
|
return com.google.firebase.firestore.model.ServerTimestamps.getLocalWriteTime(r5).equals(com.google.firebase.firestore.model.ServerTimestamps.getLocalWriteTime(r6));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x0072, code lost:
|
||
|
|
||
|
return numberEquals(r5, r6);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x0022, code lost:
|
||
|
|
||
|
if (r6 != null) goto L13;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static boolean equals(o.sbb r5, o.sbb r6) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = com.google.firebase.firestore.model.Values.a
|
||
|
int r1 = r1 + 35
|
||
|
int r2 = r1 % 128
|
||
|
com.google.firebase.firestore.model.Values.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
r1 = 1
|
||
|
if (r5 != r6) goto L10
|
||
|
return r1
|
||
|
L10:
|
||
|
r3 = 0
|
||
|
if (r5 == 0) goto L73
|
||
|
int r2 = r2 + 71
|
||
|
int r4 = r2 % 128
|
||
|
com.google.firebase.firestore.model.Values.a = r4
|
||
|
int r2 = r2 % r0
|
||
|
if (r2 != 0) goto L22
|
||
|
r2 = 50
|
||
|
int r2 = r2 / r3
|
||
|
if (r6 == 0) goto L73
|
||
|
goto L24
|
||
|
L22:
|
||
|
if (r6 == 0) goto L73
|
||
|
L24:
|
||
|
int r2 = typeOrder(r5)
|
||
|
int r4 = typeOrder(r6)
|
||
|
if (r2 == r4) goto L2f
|
||
|
return r3
|
||
|
L2f:
|
||
|
if (r2 == r0) goto L6e
|
||
|
r3 = 4
|
||
|
if (r2 == r3) goto L61
|
||
|
int r3 = com.google.firebase.firestore.model.Values.b
|
||
|
int r3 = r3 + 113
|
||
|
int r4 = r3 % 128
|
||
|
com.google.firebase.firestore.model.Values.a = r4
|
||
|
int r3 = r3 % r0
|
||
|
r3 = 2147483647(0x7fffffff, float:NaN)
|
||
|
if (r2 == r3) goto L60
|
||
|
r1 = 9
|
||
|
if (r2 == r1) goto L5b
|
||
|
r1 = 10
|
||
|
if (r2 == r1) goto L56
|
||
|
int r4 = r4 + 41
|
||
|
int r1 = r4 % 128
|
||
|
com.google.firebase.firestore.model.Values.b = r1
|
||
|
int r4 = r4 % r0
|
||
|
boolean r5 = r5.equals(r6)
|
||
|
return r5
|
||
|
L56:
|
||
|
boolean r5 = objectEquals(r5, r6)
|
||
|
return r5
|
||
|
L5b:
|
||
|
boolean r5 = arrayEquals(r5, r6)
|
||
|
return r5
|
||
|
L60:
|
||
|
return r1
|
||
|
L61:
|
||
|
o.AQX r5 = com.google.firebase.firestore.model.ServerTimestamps.getLocalWriteTime(r5)
|
||
|
o.AQX r6 = com.google.firebase.firestore.model.ServerTimestamps.getLocalWriteTime(r6)
|
||
|
boolean r5 = r5.equals(r6)
|
||
|
return r5
|
||
|
L6e:
|
||
|
boolean r5 = numberEquals(r5, r6)
|
||
|
return r5
|
||
|
L73:
|
||
|
return r3
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.firestore.model.Values.equals(o.sbb, o.sbb):boolean");
|
||
|
}
|
||
|
|
||
|
private static void f(char c2, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
|
||
|
int i2 = 2;
|
||
|
int i3 = 2 % 2;
|
||
|
Nhs nhs = new Nhs();
|
||
|
int length = cArr.length;
|
||
|
char[] cArr4 = new char[length];
|
||
|
int length2 = cArr3.length;
|
||
|
char[] cArr5 = new char[length2];
|
||
|
System.arraycopy(cArr, 0, cArr4, 0, length);
|
||
|
System.arraycopy(cArr3, 0, cArr5, 0, length2);
|
||
|
cArr4[0] = (char) (cArr4[0] ^ c2);
|
||
|
cArr5[2] = (char) (cArr5[2] + ((char) i));
|
||
|
int length3 = cArr2.length;
|
||
|
char[] cArr6 = new char[length3];
|
||
|
nhs.a = 0;
|
||
|
while (nhs.a < length3) {
|
||
|
int i4 = $11 + 1;
|
||
|
$10 = i4 % 128;
|
||
|
int i5 = i4 % i2;
|
||
|
try {
|
||
|
Object[] objArr2 = {nhs};
|
||
|
Object obj = xzZ.y.get(263693715);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(46 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) View.MeasureSpec.getMode(0))).getMethod("t", Object.class);
|
||
|
xzZ.y.put(263693715, obj);
|
||
|
}
|
||
|
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
||
|
try {
|
||
|
Object[] objArr3 = {nhs};
|
||
|
Object obj2 = xzZ.y.get(-484664112);
|
||
|
if (obj2 == null) {
|
||
|
Class cls = (Class) xzZ.c(352 - (ViewConfiguration.getLongPressTimeout() >> 16), 5 - (ViewConfiguration.getEdgeSlop() >> 16), (char) ((ViewConfiguration.getDoubleTapTimeout() >> 16) + 52128));
|
||
|
byte b2 = (byte) 0;
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
g(b2, b3, (byte) (b3 + 1), objArr4);
|
||
|
obj2 = cls.getMethod((String) objArr4[0], Object.class);
|
||
|
xzZ.y.put(-484664112, obj2);
|
||
|
}
|
||
|
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
|
||
|
try {
|
||
|
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
|
||
|
Object obj3 = xzZ.y.get(430099516);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(748 - TextUtils.indexOf("", "", 0), 5 - TextUtils.indexOf("", "", 0, 0), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).getMethod(p.a, Object.class, Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(430099516, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr5);
|
||
|
try {
|
||
|
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
|
||
|
Object obj4 = xzZ.y.get(1019894806);
|
||
|
if (obj4 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(401 - ExpandableListView.getPackedPositionChild(0L), Process.getGidForName("") + 6, (char) (View.resolveSizeAndState(0, 0, 0) + 21608));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
g(b4, b5, b5, objArr7);
|
||
|
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(1019894806, obj4);
|
||
|
}
|
||
|
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
|
||
|
cArr4[intValue2] = nhs.c;
|
||
|
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (c ^ 9051040786702654117L)) ^ ((int) (d ^ 9051040786702654117L))) ^ ((char) (e ^ 9051040786702654117L)));
|
||
|
nhs.a++;
|
||
|
i2 = 2;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
} catch (Throwable th3) {
|
||
|
Throwable cause3 = th3.getCause();
|
||
|
if (cause3 == null) {
|
||
|
throw th3;
|
||
|
}
|
||
|
throw cause3;
|
||
|
}
|
||
|
} catch (Throwable th4) {
|
||
|
Throwable cause4 = th4.getCause();
|
||
|
if (cause4 == null) {
|
||
|
throw th4;
|
||
|
}
|
||
|
throw cause4;
|
||
|
}
|
||
|
}
|
||
|
String str = new String(cArr6);
|
||
|
int i6 = $11 + 21;
|
||
|
$10 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
objArr[0] = str;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:25:0x0070 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:28:0x007b */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:47:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0034 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static boolean numberEquals(o.sbb r9, o.sbb r10) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 201
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.firestore.model.Values.numberEquals(o.sbb, o.sbb):boolean");
|
||
|
}
|
||
|
|
||
|
private static boolean arrayEquals(sbb sbbVar, sbb sbbVar2) {
|
||
|
uOO e2;
|
||
|
uOO e3;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 115;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (sbbVar.valueTypeCase_ == 9) {
|
||
|
e2 = (uOO) sbbVar.valueType_;
|
||
|
int i4 = b + 41;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
} else {
|
||
|
e2 = uOO.e();
|
||
|
}
|
||
|
if (sbbVar2.valueTypeCase_ == 9) {
|
||
|
int i6 = b + 83;
|
||
|
a = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
e3 = (uOO) sbbVar2.valueType_;
|
||
|
} else {
|
||
|
e3 = uOO.e();
|
||
|
}
|
||
|
if (e2.values_.size() != e3.values_.size()) {
|
||
|
int i8 = a + 7;
|
||
|
b = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
for (int i10 = 0; i10 < e2.values_.size(); i10++) {
|
||
|
if (!equals(e2.values_.get(i10), e3.values_.get(i10))) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
private static boolean objectEquals(sbb sbbVar, sbb sbbVar2) {
|
||
|
ldG d2;
|
||
|
int i = 2 % 2;
|
||
|
ldG d3 = sbbVar.valueTypeCase_ == 6 ? (ldG) sbbVar.valueType_ : ldG.d();
|
||
|
if (sbbVar2.valueTypeCase_ == 6) {
|
||
|
int i2 = b + 93;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
d2 = (ldG) sbbVar2.valueType_;
|
||
|
} else {
|
||
|
d2 = ldG.d();
|
||
|
}
|
||
|
if (d3.fields_.size() != d2.fields_.size()) {
|
||
|
int i4 = a + 13;
|
||
|
b = i4 % 128;
|
||
|
return i4 % 2 != 0;
|
||
|
}
|
||
|
Iterator it = Collections.unmodifiableMap(d3.fields_).entrySet().iterator();
|
||
|
while (it.hasNext()) {
|
||
|
int i5 = a + 19;
|
||
|
b = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
Map.Entry entry = (Map.Entry) it.next();
|
||
|
int i6 = 54 / 0;
|
||
|
if (!equals((sbb) entry.getValue(), (sbb) Collections.unmodifiableMap(d2.fields_).get(entry.getKey()))) {
|
||
|
int i7 = b + 51;
|
||
|
a = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
} else {
|
||
|
Map.Entry entry2 = (Map.Entry) it.next();
|
||
|
if (!equals((sbb) entry2.getValue(), (sbb) Collections.unmodifiableMap(d2.fields_).get(entry2.getKey()))) {
|
||
|
int i72 = b + 51;
|
||
|
a = i72 % 128;
|
||
|
int i82 = i72 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
int i9 = a + 13;
|
||
|
b = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public static boolean contains(gwr gwrVar, sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
Iterator<sbb> it = gwrVar.b().iterator();
|
||
|
int i2 = b + 107;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
while (!(!it.hasNext())) {
|
||
|
if (equals(it.next(), sbbVar)) {
|
||
|
int i4 = b + 95;
|
||
|
a = i4 % 128;
|
||
|
return i4 % 2 != 0;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public static int compare(sbb sbbVar, sbb sbbVar2) {
|
||
|
String str;
|
||
|
boolean z;
|
||
|
QwV qwV;
|
||
|
QwV qwV2;
|
||
|
jrE a2;
|
||
|
jrE a3;
|
||
|
uOO e2;
|
||
|
ldG d2;
|
||
|
int i = 2 % 2;
|
||
|
int typeOrder = typeOrder(sbbVar);
|
||
|
int typeOrder2 = typeOrder(sbbVar2);
|
||
|
if (typeOrder != typeOrder2) {
|
||
|
return Util.compareIntegers(typeOrder, typeOrder2);
|
||
|
}
|
||
|
Object obj = null;
|
||
|
if (typeOrder != Integer.MAX_VALUE) {
|
||
|
str = "";
|
||
|
switch (typeOrder) {
|
||
|
case 0:
|
||
|
break;
|
||
|
case 1:
|
||
|
if (sbbVar.valueTypeCase_ == 1) {
|
||
|
int i2 = a + 63;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
z = ((Boolean) sbbVar.valueType_).booleanValue();
|
||
|
} else {
|
||
|
z = false;
|
||
|
}
|
||
|
return Util.compareBooleans(z, sbbVar2.valueTypeCase_ == 1 ? ((Boolean) sbbVar2.valueType_).booleanValue() : false);
|
||
|
case 2:
|
||
|
return compareNumbers(sbbVar, sbbVar2);
|
||
|
case 3:
|
||
|
return compareTimestamps(sbbVar.valueTypeCase_ == 10 ? (AQX) sbbVar.valueType_ : AQX.c(), sbbVar2.valueTypeCase_ == 10 ? (AQX) sbbVar2.valueType_ : AQX.c());
|
||
|
case 4:
|
||
|
return compareTimestamps(ServerTimestamps.getLocalWriteTime(sbbVar), ServerTimestamps.getLocalWriteTime(sbbVar2));
|
||
|
case 5:
|
||
|
String str2 = sbbVar.valueTypeCase_ == 17 ? (String) sbbVar.valueType_ : "";
|
||
|
if (sbbVar2.valueTypeCase_ == 17) {
|
||
|
int i4 = a + 3;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
str = (String) sbbVar2.valueType_;
|
||
|
int i5 = 12 / 0;
|
||
|
} else {
|
||
|
str = (String) sbbVar2.valueType_;
|
||
|
}
|
||
|
}
|
||
|
return str2.compareTo(str);
|
||
|
case 6:
|
||
|
if (sbbVar.valueTypeCase_ == 18) {
|
||
|
int i6 = b + 7;
|
||
|
a = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
qwV = (QwV) sbbVar.valueType_;
|
||
|
} else {
|
||
|
qwV = QwV.a;
|
||
|
}
|
||
|
if (sbbVar2.valueTypeCase_ == 18) {
|
||
|
int i8 = a + 43;
|
||
|
b = i8 % 128;
|
||
|
if (i8 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
qwV2 = (QwV) sbbVar2.valueType_;
|
||
|
} else {
|
||
|
qwV2 = QwV.a;
|
||
|
}
|
||
|
return Util.compareByteStrings(qwV, qwV2);
|
||
|
case 7:
|
||
|
return compareReferences(sbbVar.valueTypeCase_ == 5 ? (String) sbbVar.valueType_ : "", sbbVar2.valueTypeCase_ == 5 ? (String) sbbVar2.valueType_ : "");
|
||
|
case 8:
|
||
|
if (sbbVar.valueTypeCase_ == 8) {
|
||
|
int i9 = a + 1;
|
||
|
b = i9 % 128;
|
||
|
if (i9 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
a2 = (jrE) sbbVar.valueType_;
|
||
|
} else {
|
||
|
a2 = jrE.a();
|
||
|
}
|
||
|
if (sbbVar2.valueTypeCase_ == 8) {
|
||
|
int i10 = a + 51;
|
||
|
b = i10 % 128;
|
||
|
if (i10 % 2 != 0) {
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
a3 = (jrE) sbbVar2.valueType_;
|
||
|
} else {
|
||
|
a3 = jrE.a();
|
||
|
}
|
||
|
return compareGeoPoints(a2, a3);
|
||
|
case 9:
|
||
|
if (sbbVar.valueTypeCase_ == 9) {
|
||
|
int i11 = b + 75;
|
||
|
a = i11 % 128;
|
||
|
if (i11 % 2 == 0) {
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
e2 = (uOO) sbbVar.valueType_;
|
||
|
} else {
|
||
|
e2 = uOO.e();
|
||
|
}
|
||
|
return compareArrays(e2, sbbVar2.valueTypeCase_ == 9 ? (uOO) sbbVar2.valueType_ : uOO.e());
|
||
|
case 10:
|
||
|
if (sbbVar.valueTypeCase_ == 6) {
|
||
|
int i12 = a + 45;
|
||
|
b = i12 % 128;
|
||
|
int i13 = i12 % 2;
|
||
|
d2 = (ldG) sbbVar.valueType_;
|
||
|
} else {
|
||
|
d2 = ldG.d();
|
||
|
}
|
||
|
return compareMaps(d2, sbbVar2.valueTypeCase_ == 6 ? (ldG) sbbVar2.valueType_ : ldG.d());
|
||
|
default:
|
||
|
throw Assert.fail("Invalid value type: ".concat(String.valueOf(typeOrder)), new Object[0]);
|
||
|
}
|
||
|
}
|
||
|
int i14 = b + 35;
|
||
|
a = i14 % 128;
|
||
|
if (i14 % 2 != 0) {
|
||
|
return 0;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public static int lowerBoundCompare(sbb sbbVar, boolean z, sbb sbbVar2, boolean z2) {
|
||
|
int i = 2 % 2;
|
||
|
int compare = compare(sbbVar, sbbVar2);
|
||
|
if (compare != 0) {
|
||
|
int i2 = a + 11;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return compare;
|
||
|
}
|
||
|
if (z && !z2) {
|
||
|
int i4 = b + 11;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return -1;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
if (z) {
|
||
|
return 0;
|
||
|
}
|
||
|
int i5 = a;
|
||
|
int i6 = i5 + 11;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
if (!z2) {
|
||
|
return 0;
|
||
|
}
|
||
|
int i8 = i5 + 105;
|
||
|
b = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
public static int upperBoundCompare(sbb sbbVar, boolean z, sbb sbbVar2, boolean z2) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 33;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
int compare = compare(sbbVar, sbbVar2);
|
||
|
if (compare != 0) {
|
||
|
return compare;
|
||
|
}
|
||
|
if (!z || z2) {
|
||
|
return (z || !z2) ? 0 : -1;
|
||
|
}
|
||
|
int i4 = b + 111;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
private static int compareNumbers(sbb sbbVar, sbb sbbVar2) {
|
||
|
long j;
|
||
|
double d2;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 71;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
sbb.HBt.c(sbbVar.valueTypeCase_);
|
||
|
sbb.HBt hBt = sbb.HBt.DOUBLE_VALUE;
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
if (sbb.HBt.c(sbbVar.valueTypeCase_) == sbb.HBt.DOUBLE_VALUE) {
|
||
|
if (sbbVar.valueTypeCase_ == 3) {
|
||
|
int i3 = a + 109;
|
||
|
b = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
d2 = ((Double) sbbVar.valueType_).doubleValue();
|
||
|
int i5 = b + 113;
|
||
|
a = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
int i6 = 5 % 4;
|
||
|
}
|
||
|
} else {
|
||
|
d2 = 0.0d;
|
||
|
}
|
||
|
if (sbb.HBt.c(sbbVar2.valueTypeCase_) == sbb.HBt.DOUBLE_VALUE) {
|
||
|
int compareDoubles = Util.compareDoubles(d2, sbbVar2.valueTypeCase_ == 3 ? ((Double) sbbVar2.valueType_).doubleValue() : 0.0d);
|
||
|
int i7 = b + 75;
|
||
|
a = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
return compareDoubles;
|
||
|
}
|
||
|
if (sbb.HBt.c(sbbVar2.valueTypeCase_) == sbb.HBt.INTEGER_VALUE) {
|
||
|
return Util.compareMixed(d2, sbbVar2.valueTypeCase_ == 2 ? ((Long) sbbVar2.valueType_).longValue() : 0L);
|
||
|
}
|
||
|
} else if (sbb.HBt.c(sbbVar.valueTypeCase_) == sbb.HBt.INTEGER_VALUE) {
|
||
|
int i9 = a + 41;
|
||
|
b = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
if (sbbVar.valueTypeCase_ == 2) {
|
||
|
int i11 = a + 113;
|
||
|
b = i11 % 128;
|
||
|
if (i11 % 2 != 0) {
|
||
|
j = ((Long) sbbVar.valueType_).longValue();
|
||
|
int i12 = 6 / 0;
|
||
|
} else {
|
||
|
j = ((Long) sbbVar.valueType_).longValue();
|
||
|
}
|
||
|
} else {
|
||
|
j = 0;
|
||
|
}
|
||
|
if (sbb.HBt.c(sbbVar2.valueTypeCase_) == sbb.HBt.INTEGER_VALUE) {
|
||
|
return Util.compareLongs(j, sbbVar2.valueTypeCase_ == 2 ? ((Long) sbbVar2.valueType_).longValue() : 0L);
|
||
|
}
|
||
|
if (sbb.HBt.c(sbbVar2.valueTypeCase_) == sbb.HBt.DOUBLE_VALUE) {
|
||
|
int i13 = -Util.compareMixed(sbbVar2.valueTypeCase_ == 3 ? ((Double) sbbVar2.valueType_).doubleValue() : 0.0d, j);
|
||
|
int i14 = a + 33;
|
||
|
b = i14 % 128;
|
||
|
int i15 = i14 % 2;
|
||
|
return i13;
|
||
|
}
|
||
|
}
|
||
|
throw Assert.fail("Unexpected values: %s vs %s", sbbVar, sbbVar2);
|
||
|
}
|
||
|
|
||
|
private static int compareTimestamps(AQX aqx, AQX aqx2) {
|
||
|
int i = 2 % 2;
|
||
|
int compareLongs = Util.compareLongs(aqx.seconds_, aqx2.seconds_);
|
||
|
if (compareLongs != 0) {
|
||
|
int i2 = a + 65;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return compareLongs;
|
||
|
}
|
||
|
int compareIntegers = Util.compareIntegers(aqx.nanos_, aqx2.nanos_);
|
||
|
int i4 = b + 1;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return compareIntegers;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
private static int compareReferences(String str, String str2) {
|
||
|
String[] split;
|
||
|
String[] split2;
|
||
|
int min;
|
||
|
int i;
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = a + 9;
|
||
|
b = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
split = str.split("/", -1);
|
||
|
split2 = str2.split("/", -1);
|
||
|
min = Math.min(split.length, split2.length);
|
||
|
i = 1;
|
||
|
} else {
|
||
|
split = str.split("/", -1);
|
||
|
split2 = str2.split("/", -1);
|
||
|
min = Math.min(split.length, split2.length);
|
||
|
i = 0;
|
||
|
}
|
||
|
while (i < min) {
|
||
|
int i4 = b + 37;
|
||
|
a = i4 % 128;
|
||
|
Object obj = null;
|
||
|
if (i4 % 2 != 0) {
|
||
|
int compareTo = split[i].compareTo(split2[i]);
|
||
|
if (compareTo != 0) {
|
||
|
int i5 = b + 65;
|
||
|
a = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return compareTo;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
i++;
|
||
|
} else {
|
||
|
split[i].compareTo(split2[i]);
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
return Util.compareIntegers(split.length, split2.length);
|
||
|
}
|
||
|
|
||
|
private static int compareGeoPoints(jrE jre, jrE jre2) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 87;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
int compareDoubles = Util.compareDoubles(jre.latitude_, jre2.latitude_);
|
||
|
if (compareDoubles != 0) {
|
||
|
return compareDoubles;
|
||
|
}
|
||
|
int i4 = b + 87;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return Util.compareDoubles(jre.longitude_, jre2.longitude_);
|
||
|
}
|
||
|
|
||
|
private static int compareArrays(uOO uoo, uOO uoo2) {
|
||
|
int i = 2 % 2;
|
||
|
int min = Math.min(uoo.values_.size(), uoo2.values_.size());
|
||
|
int i2 = 0;
|
||
|
while (true) {
|
||
|
Object obj = null;
|
||
|
if (i2 >= min) {
|
||
|
int compareIntegers = Util.compareIntegers(uoo.values_.size(), uoo2.values_.size());
|
||
|
int i3 = b + 47;
|
||
|
a = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
return compareIntegers;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
int i4 = b + 107;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
int compare = compare(uoo.values_.get(i2), uoo2.values_.get(i2));
|
||
|
if (compare != 0) {
|
||
|
int i6 = a + 109;
|
||
|
b = i6 % 128;
|
||
|
if (i6 % 2 == 0) {
|
||
|
return compare;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static int compareMaps(ldG ldg, ldG ldg2) {
|
||
|
int i = 2 % 2;
|
||
|
Iterator it = new TreeMap(Collections.unmodifiableMap(ldg.fields_)).entrySet().iterator();
|
||
|
Iterator it2 = new TreeMap(Collections.unmodifiableMap(ldg2.fields_)).entrySet().iterator();
|
||
|
while (it.hasNext() && it2.hasNext()) {
|
||
|
Map.Entry entry = (Map.Entry) it.next();
|
||
|
Map.Entry entry2 = (Map.Entry) it2.next();
|
||
|
int compareTo = ((String) entry.getKey()).compareTo((String) entry2.getKey());
|
||
|
if (compareTo == 0) {
|
||
|
int compare = compare((sbb) entry.getValue(), (sbb) entry2.getValue());
|
||
|
if (compare != 0) {
|
||
|
int i2 = a + 85;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return compare;
|
||
|
}
|
||
|
} else {
|
||
|
int i4 = b + 77;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return compareTo;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
return Util.compareBooleans(it.hasNext(), it2.hasNext());
|
||
|
}
|
||
|
|
||
|
public static String canonicalId(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
canonifyValue(sb, sbbVar);
|
||
|
String obj = sb.toString();
|
||
|
int i2 = a + 123;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return obj;
|
||
|
}
|
||
|
|
||
|
private static void canonifyValue(StringBuilder sb, sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 77;
|
||
|
b = i2 % 128;
|
||
|
Object obj = null;
|
||
|
if (i2 % 2 != 0) {
|
||
|
int i3 = AnonymousClass1.$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.c(sbbVar.valueTypeCase_).ordinal()];
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
boolean z = false;
|
||
|
switch (AnonymousClass1.$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[sbb.HBt.c(sbbVar.valueTypeCase_).ordinal()]) {
|
||
|
case 1:
|
||
|
Object[] objArr = new Object[1];
|
||
|
f((char) (TextUtils.indexOf("", "") + 53387), Process.myTid() >> 22, new char[]{15605, 56876, 35774, 51152}, new char[]{10043, 14154, 10750, 41010}, new char[]{22827, 54099, 14601, 16248}, objArr);
|
||
|
sb.append(((String) objArr[0]).intern());
|
||
|
int i4 = a + 125;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
return;
|
||
|
case 2:
|
||
|
if (sbbVar.valueTypeCase_ == 1) {
|
||
|
int i5 = a + 21;
|
||
|
b = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
z = ((Boolean) sbbVar.valueType_).booleanValue();
|
||
|
}
|
||
|
sb.append(z);
|
||
|
return;
|
||
|
case 3:
|
||
|
sb.append(sbbVar.valueTypeCase_ == 2 ? ((Long) sbbVar.valueType_).longValue() : 0L);
|
||
|
return;
|
||
|
case 4:
|
||
|
sb.append(sbbVar.valueTypeCase_ == 3 ? ((Double) sbbVar.valueType_).doubleValue() : 0.0d);
|
||
|
return;
|
||
|
case 5:
|
||
|
canonifyTimestamp(sb, sbbVar.valueTypeCase_ == 10 ? (AQX) sbbVar.valueType_ : AQX.c());
|
||
|
return;
|
||
|
case 6:
|
||
|
sb.append(sbbVar.valueTypeCase_ == 17 ? (String) sbbVar.valueType_ : "");
|
||
|
return;
|
||
|
case 7:
|
||
|
sb.append(Util.toDebugString(sbbVar.valueTypeCase_ == 18 ? (QwV) sbbVar.valueType_ : QwV.a));
|
||
|
return;
|
||
|
case 8:
|
||
|
canonifyReference(sb, sbbVar);
|
||
|
return;
|
||
|
case 9:
|
||
|
canonifyGeoPoint(sb, sbbVar.valueTypeCase_ == 8 ? (jrE) sbbVar.valueType_ : jrE.a());
|
||
|
return;
|
||
|
case 10:
|
||
|
canonifyArray(sb, sbbVar.valueTypeCase_ == 9 ? (uOO) sbbVar.valueType_ : uOO.e());
|
||
|
return;
|
||
|
case 11:
|
||
|
canonifyObject(sb, sbbVar.valueTypeCase_ == 6 ? (ldG) sbbVar.valueType_ : ldG.d());
|
||
|
return;
|
||
|
default:
|
||
|
StringBuilder sb2 = new StringBuilder("Invalid value type: ");
|
||
|
sb2.append(sbb.HBt.c(sbbVar.valueTypeCase_));
|
||
|
throw Assert.fail(sb2.toString(), new Object[0]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void canonifyTimestamp(StringBuilder sb, AQX aqx) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 63;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
sb.append(String.format("time(%s,%s)", Long.valueOf(aqx.seconds_), Integer.valueOf(aqx.nanos_)));
|
||
|
int i4 = a + 3;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
private static void canonifyGeoPoint(StringBuilder sb, jrE jre) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 63;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
sb.append(String.format("geo(%s,%s)", Double.valueOf(jre.latitude_), Double.valueOf(jre.longitude_)));
|
||
|
int i4 = b + 35;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void canonifyReference(StringBuilder sb, sbb sbbVar) {
|
||
|
String str;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 91;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Assert.hardAssert(isReferenceValue(sbbVar), "Value should be a ReferenceValue", new Object[0]);
|
||
|
if (sbbVar.valueTypeCase_ == 5) {
|
||
|
int i4 = b + 103;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
str = (String) sbbVar.valueType_;
|
||
|
} else {
|
||
|
int i5 = b + 85;
|
||
|
a = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
str = "";
|
||
|
}
|
||
|
sb.append(DocumentKey.fromName(str));
|
||
|
}
|
||
|
|
||
|
private static void canonifyObject(StringBuilder sb, ldG ldg) {
|
||
|
int i = 2 % 2;
|
||
|
ArrayList arrayList = new ArrayList(Collections.unmodifiableMap(ldg.fields_).keySet());
|
||
|
Collections.sort(arrayList);
|
||
|
sb.append(UrlTreeKt.componentParamPrefix);
|
||
|
Iterator it = arrayList.iterator();
|
||
|
boolean z = true;
|
||
|
while (it.hasNext()) {
|
||
|
int i2 = b + 21;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
String str = (String) it.next();
|
||
|
if (z) {
|
||
|
z = false;
|
||
|
} else {
|
||
|
sb.append(",");
|
||
|
int i3 = a + 105;
|
||
|
b = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
}
|
||
|
sb.append(str);
|
||
|
sb.append(":");
|
||
|
canonifyValue(sb, ldg.b(str));
|
||
|
}
|
||
|
sb.append(UrlTreeKt.componentParamSuffix);
|
||
|
}
|
||
|
|
||
|
private static void canonifyArray(StringBuilder sb, uOO uoo) {
|
||
|
int i;
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = a + 57;
|
||
|
b = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
sb.append("[");
|
||
|
i = 1;
|
||
|
} else {
|
||
|
sb.append("[");
|
||
|
i = 0;
|
||
|
}
|
||
|
int i4 = b + 93;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
while (i < uoo.values_.size()) {
|
||
|
canonifyValue(sb, uoo.values_.get(i));
|
||
|
if (i != uoo.values_.size() - 1) {
|
||
|
sb.append(",");
|
||
|
}
|
||
|
i++;
|
||
|
}
|
||
|
sb.append("]");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x002f A[RETURN] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:12:0x0030 */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static boolean isInteger(o.sbb r5) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
r1 = 0
|
||
|
r2 = 1
|
||
|
if (r5 == 0) goto L24
|
||
|
int r3 = com.google.firebase.firestore.model.Values.b
|
||
|
int r3 = r3 + 61
|
||
|
int r4 = r3 % 128
|
||
|
com.google.firebase.firestore.model.Values.a = r4
|
||
|
int r3 = r3 % r0
|
||
|
int r5 = r5.valueTypeCase_
|
||
|
if (r3 == 0) goto L1e
|
||
|
o.sbb$HBt r5 = o.sbb.HBt.c(r5)
|
||
|
o.sbb$HBt r3 = o.sbb.HBt.INTEGER_VALUE
|
||
|
if (r5 != r3) goto L24
|
||
|
r5 = r2
|
||
|
goto L25
|
||
|
L1e:
|
||
|
o.sbb.HBt.c(r5)
|
||
|
o.sbb$HBt r5 = o.sbb.HBt.INTEGER_VALUE
|
||
|
throw r1
|
||
|
L24:
|
||
|
r5 = 0
|
||
|
L25:
|
||
|
int r3 = com.google.firebase.firestore.model.Values.b
|
||
|
int r3 = r3 + r2
|
||
|
int r2 = r3 % 128
|
||
|
com.google.firebase.firestore.model.Values.a = r2
|
||
|
int r3 = r3 % r0
|
||
|
if (r3 == 0) goto L30
|
||
|
return r5
|
||
|
L30:
|
||
|
throw r1
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.firestore.model.Values.isInteger(o.sbb):boolean");
|
||
|
}
|
||
|
|
||
|
public static boolean isDouble(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a;
|
||
|
int i3 = i2 + 43;
|
||
|
b = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
if (sbbVar != null) {
|
||
|
int i5 = i2 + 27;
|
||
|
b = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
int i7 = sbbVar.valueTypeCase_;
|
||
|
if (i6 == 0) {
|
||
|
if (sbb.HBt.c(i7) == sbb.HBt.DOUBLE_VALUE) {
|
||
|
return true;
|
||
|
}
|
||
|
} else {
|
||
|
sbb.HBt.c(i7);
|
||
|
sbb.HBt hBt = sbb.HBt.DOUBLE_VALUE;
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public static boolean isNumber(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 65;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (isInteger(sbbVar) || isDouble(sbbVar)) {
|
||
|
int i4 = a + 45;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return true;
|
||
|
}
|
||
|
int i6 = b + 125;
|
||
|
a = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public static boolean isArray(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
if (sbbVar != null) {
|
||
|
int i2 = a + 115;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (sbb.HBt.c(sbbVar.valueTypeCase_) == sbb.HBt.ARRAY_VALUE) {
|
||
|
int i4 = a + 63;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
int i6 = b + 91;
|
||
|
a = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public static boolean isReferenceValue(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 103;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
if (sbbVar == null || sbb.HBt.c(sbbVar.valueTypeCase_) != sbb.HBt.REFERENCE_VALUE) {
|
||
|
return false;
|
||
|
}
|
||
|
int i3 = b + 39;
|
||
|
a = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public static boolean isNullValue(sbb sbbVar) {
|
||
|
boolean z;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 63;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (sbbVar == null || sbb.HBt.c(sbbVar.valueTypeCase_) != sbb.HBt.NULL_VALUE) {
|
||
|
z = false;
|
||
|
} else {
|
||
|
int i4 = b + 85;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
z = true;
|
||
|
}
|
||
|
int i6 = a + 105;
|
||
|
b = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
int i7 = 39 / 0;
|
||
|
}
|
||
|
return z;
|
||
|
}
|
||
|
|
||
|
public static boolean isNanValue(sbb sbbVar) {
|
||
|
double d2;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 85;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
if (sbbVar == null) {
|
||
|
return false;
|
||
|
}
|
||
|
if (sbbVar.valueTypeCase_ == 3) {
|
||
|
int i3 = b + 117;
|
||
|
a = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
Object obj = sbbVar.valueType_;
|
||
|
if (i4 == 0) {
|
||
|
((Double) obj).doubleValue();
|
||
|
throw null;
|
||
|
}
|
||
|
d2 = ((Double) obj).doubleValue();
|
||
|
} else {
|
||
|
d2 = 0.0d;
|
||
|
}
|
||
|
if (!Double.isNaN(d2)) {
|
||
|
return false;
|
||
|
}
|
||
|
int i5 = b + 121;
|
||
|
a = i5 % 128;
|
||
|
return i5 % 2 != 0;
|
||
|
}
|
||
|
|
||
|
public static boolean isMapValue(sbb sbbVar) {
|
||
|
int i = 2 % 2;
|
||
|
if (sbbVar != null) {
|
||
|
int i2 = a + 11;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (sbb.HBt.c(sbbVar.valueTypeCase_) == sbb.HBt.MAP_VALUE) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
int i4 = a + 33;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public static sbb refValue(DatabaseId databaseId, DocumentKey documentKey) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 55;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
sbb build = sbb.d().b(String.format("projects/%s/databases/%s/documents/%s", databaseId.getProjectId(), databaseId.getDatabaseId(), documentKey.toString())).build();
|
||
|
int i4 = b + 119;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
int i5 = 37 / 0;
|
||
|
}
|
||
|
return build;
|
||
|
}
|
||
|
|
||
|
public static sbb getLowerBound(sbb.HBt hBt) {
|
||
|
int i = 2 % 2;
|
||
|
switch (AnonymousClass1.$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[hBt.ordinal()]) {
|
||
|
case 1:
|
||
|
sbb sbbVar = NULL_VALUE;
|
||
|
int i2 = b + 35;
|
||
|
a = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return sbbVar;
|
||
|
case 2:
|
||
|
return sbb.d().a(false).build();
|
||
|
case 3:
|
||
|
case 4:
|
||
|
return sbb.d().b(Double.NaN).build();
|
||
|
case 5:
|
||
|
return sbb.d().e(AQX.b().c(Long.MIN_VALUE)).build();
|
||
|
case 6:
|
||
|
return sbb.d().e("").build();
|
||
|
case 7:
|
||
|
sbb build = sbb.d().e(QwV.a).build();
|
||
|
int i4 = b + 119;
|
||
|
a = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
int i5 = 69 / 0;
|
||
|
}
|
||
|
return build;
|
||
|
case 8:
|
||
|
return refValue(DatabaseId.EMPTY, DocumentKey.empty());
|
||
|
case 9:
|
||
|
return sbb.d().c(jrE.b().a(-90.0d).c(-180.0d)).build();
|
||
|
case 10:
|
||
|
return sbb.d().e(uOO.e()).build();
|
||
|
case 11:
|
||
|
return sbb.d().c(ldG.d()).build();
|
||
|
default:
|
||
|
throw new IllegalArgumentException("Unknown value type: ".concat(String.valueOf(hBt)));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static sbb getUpperBound(sbb.HBt hBt) {
|
||
|
int i = 2 % 2;
|
||
|
Object obj = null;
|
||
|
switch (AnonymousClass1.$SwitchMap$com$google$firestore$v1$Value$ValueTypeCase[hBt.ordinal()]) {
|
||
|
case 1:
|
||
|
return getLowerBound(sbb.HBt.BOOLEAN_VALUE);
|
||
|
case 2:
|
||
|
sbb lowerBound = getLowerBound(sbb.HBt.INTEGER_VALUE);
|
||
|
int i2 = b + 51;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
return lowerBound;
|
||
|
}
|
||
|
throw null;
|
||
|
case 3:
|
||
|
case 4:
|
||
|
sbb lowerBound2 = getLowerBound(sbb.HBt.TIMESTAMP_VALUE);
|
||
|
int i3 = a + 59;
|
||
|
b = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
int i4 = 35 / 0;
|
||
|
}
|
||
|
return lowerBound2;
|
||
|
case 5:
|
||
|
return getLowerBound(sbb.HBt.STRING_VALUE);
|
||
|
case 6:
|
||
|
return getLowerBound(sbb.HBt.BYTES_VALUE);
|
||
|
case 7:
|
||
|
return getLowerBound(sbb.HBt.REFERENCE_VALUE);
|
||
|
case 8:
|
||
|
return getLowerBound(sbb.HBt.GEO_POINT_VALUE);
|
||
|
case 9:
|
||
|
sbb lowerBound3 = getLowerBound(sbb.HBt.ARRAY_VALUE);
|
||
|
int i5 = b + 67;
|
||
|
a = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return lowerBound3;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
case 10:
|
||
|
return getLowerBound(sbb.HBt.MAP_VALUE);
|
||
|
case 11:
|
||
|
sbb sbbVar = MAX_VALUE;
|
||
|
int i6 = b + 101;
|
||
|
a = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
return sbbVar;
|
||
|
}
|
||
|
throw null;
|
||
|
default:
|
||
|
throw new IllegalArgumentException("Unknown value type: ".concat(String.valueOf(hBt)));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static boolean isMaxValue(sbb sbbVar) {
|
||
|
ldG d2;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 99;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
sbb sbbVar2 = MAX_VALUE_TYPE;
|
||
|
if (sbbVar.valueTypeCase_ == 6) {
|
||
|
int i4 = a + 91;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
d2 = (ldG) sbbVar.valueType_;
|
||
|
} else {
|
||
|
d2 = ldG.d();
|
||
|
}
|
||
|
return sbbVar2.equals(Collections.unmodifiableMap(d2.fields_).get("__type__"));
|
||
|
}
|
||
|
|
||
|
static void b() {
|
||
|
c = 4819969451512857486L;
|
||
|
d = 452713125;
|
||
|
e = (char) 55973;
|
||
|
}
|
||
|
}
|