- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
73 lines
2.1 KiB
Java
73 lines
2.1 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.lg;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class hr implements lg, lg.a {
|
|
private final Map<String, Integer> a = new HashMap();
|
|
private final Map<String, Integer> b = new HashMap();
|
|
|
|
@Override // com.ironsource.lg.a
|
|
public void a(lg.b smash) {
|
|
Intrinsics.checkNotNullParameter(smash, "smash");
|
|
synchronized (this) {
|
|
try {
|
|
String c = smash.c();
|
|
if (this.a.containsKey(c)) {
|
|
Map<String, Integer> map = this.a;
|
|
Integer num = map.get(c);
|
|
Intrinsics.checkNotNull(num);
|
|
map.put(c, Integer.valueOf(num.intValue() + 1));
|
|
}
|
|
Unit unit = Unit.INSTANCE;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.lg.a
|
|
public void a(List<? extends lg.b> smashes) {
|
|
Intrinsics.checkNotNullParameter(smashes, "smashes");
|
|
for (lg.b bVar : smashes) {
|
|
this.a.put(bVar.c(), 0);
|
|
this.b.put(bVar.c(), Integer.valueOf(bVar.b()));
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.lg
|
|
public boolean a() {
|
|
for (String str : this.b.keySet()) {
|
|
Integer num = this.a.get(str);
|
|
Intrinsics.checkNotNull(num);
|
|
int intValue = num.intValue();
|
|
Integer num2 = this.b.get(str);
|
|
Intrinsics.checkNotNull(num2);
|
|
if (intValue < num2.intValue()) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // com.ironsource.lg
|
|
public boolean b(lg.b smash) {
|
|
boolean z;
|
|
Intrinsics.checkNotNullParameter(smash, "smash");
|
|
synchronized (this) {
|
|
String c = smash.c();
|
|
if (this.a.containsKey(c)) {
|
|
Integer num = this.a.get(c);
|
|
Intrinsics.checkNotNull(num);
|
|
z = num.intValue() >= smash.b();
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
}
|