what-the-bank/sources/com/google/android/gms/internal/measurement/zzml.java

217 lines
7.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.measurement;
import com.google.android.libraries.places.api.model.PlaceTypes;
import com.google.common.primitives.UnsignedBytes;
import java.lang.reflect.Field;
import java.nio.Buffer;
import java.security.AccessController;
import java.util.logging.Level;
import java.util.logging.Logger;
import sun.misc.Unsafe;
/* loaded from: classes.dex */
final class zzml {
static final long zza;
static final boolean zzb;
private static final Unsafe zzc;
private static final Class<?> zzd;
private static final boolean zze;
private static final boolean zzf;
private static final zzmk zzg;
private static final boolean zzh;
private static final boolean zzi;
/* JADX WARN: Removed duplicated region for block: B:12:0x0062 */
/* JADX WARN: Removed duplicated region for block: B:15:0x0071 */
/* JADX WARN: Removed duplicated region for block: B:22:0x0149 */
/* JADX WARN: Removed duplicated region for block: B:27:0x0158 */
static {
/*
Method dump skipped, instructions count: 348
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.measurement.zzml.<clinit>():void");
}
private static int zzA(Class<?> cls) {
if (zzi) {
return zzg.zzi(cls);
}
return -1;
}
private static Field zzB() {
int i = zzij.zza;
Field zzC = zzC(Buffer.class, "effectiveDirectAddress");
if (zzC != null) {
return zzC;
}
Field zzC2 = zzC(Buffer.class, PlaceTypes.ADDRESS);
if (zzC2 == null || zzC2.getType() != Long.TYPE) {
return null;
}
return zzC2;
}
private static Field zzC(Class<?> cls, String str) {
try {
return cls.getDeclaredField(str);
} catch (Throwable unused) {
return null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static void zzD(Object obj, long j, byte b) {
long j2 = (-4) & j;
zzmk zzmkVar = zzg;
int zzj = zzmkVar.zzj(obj, j2);
int i = ((~((int) j)) & 3) << 3;
zzmkVar.zzn(obj, j2, ((~(255 << i)) & zzj) | ((b & UnsignedBytes.MAX_VALUE) << i));
}
/* JADX INFO: Access modifiers changed from: private */
public static void zzE(Object obj, long j, byte b) {
long j2 = (-4) & j;
zzmk zzmkVar = zzg;
int zzj = zzmkVar.zzj(obj, j2);
int i = (((int) j) & 3) << 3;
zzmkVar.zzn(obj, j2, ((~(255 << i)) & zzj) | ((b & UnsignedBytes.MAX_VALUE) << i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static double zza(Object obj, long j) {
return zzg.zza(obj, j);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static float zzb(Object obj, long j) {
return zzg.zzb(obj, j);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzc(Object obj, long j) {
return zzg.zzj(obj, j);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static long zzd(Object obj, long j) {
return zzg.zzk(obj, j);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static <T> T zze(Class<T> cls) {
try {
return (T) zzc.allocateInstance(cls);
} catch (InstantiationException e) {
throw new IllegalStateException(e);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Object zzf(Object obj, long j) {
return zzg.zzm(obj, j);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Unsafe zzg() {
try {
return (Unsafe) AccessController.doPrivileged(new zzmh());
} catch (Throwable unused) {
return null;
}
}
static /* synthetic */ void zzh(Throwable th) {
Logger.getLogger(zzml.class.getName()).logp(Level.WARNING, "o.vqr", "logMissingMethod", "platform method missing - proto runtime falling back to safer methods: ".concat(th.toString()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzm(Object obj, long j, boolean z) {
zzg.zzc(obj, j, z);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzn(byte[] bArr, long j, byte b) {
zzg.zzd(bArr, zza + j, b);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzo(Object obj, long j, double d) {
zzg.zze(obj, j, d);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzp(Object obj, long j, float f) {
zzg.zzf(obj, j, f);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzq(Object obj, long j, int i) {
zzg.zzn(obj, j, i);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzr(Object obj, long j, long j2) {
zzg.zzo(obj, j, j2);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void zzs(Object obj, long j, Object obj2) {
zzg.zzp(obj, j, obj2);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean zzt(Object obj, long j) {
return ((byte) ((zzg.zzj(obj, (-4) & j) >>> ((int) (((~j) & 3) << 3))) & 255)) != 0;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ boolean zzu(Object obj, long j) {
return ((byte) ((zzg.zzj(obj, (-4) & j) >>> ((int) ((j & 3) << 3))) & 255)) != 0;
}
static boolean zzv(Class<?> cls) {
int i = zzij.zza;
try {
Class<?> cls2 = zzd;
cls2.getMethod("peekLong", cls, Boolean.TYPE);
cls2.getMethod("pokeLong", cls, Long.TYPE, Boolean.TYPE);
cls2.getMethod("pokeInt", cls, Integer.TYPE, Boolean.TYPE);
cls2.getMethod("peekInt", cls, Boolean.TYPE);
cls2.getMethod("pokeByte", cls, Byte.TYPE);
cls2.getMethod("peekByte", cls);
cls2.getMethod("pokeByteArray", cls, byte[].class, Integer.TYPE, Integer.TYPE);
cls2.getMethod("peekByteArray", cls, byte[].class, Integer.TYPE, Integer.TYPE);
return true;
} catch (Throwable unused) {
return false;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzw(Object obj, long j) {
return zzg.zzg(obj, j);
}
private static int zzz(Class<?> cls) {
if (zzi) {
return zzg.zzh(cls);
}
return -1;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzy() {
return zzh;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzx() {
return zzi;
}
private zzml() {
}
}