- 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
256 lines
6.3 KiB
Java
256 lines
6.3 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.support.v4.media.session.PlaybackStateCompat;
|
|
import com.applovin.impl.ij;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class i2 {
|
|
protected final a a;
|
|
protected final f b;
|
|
protected c c;
|
|
private final int d;
|
|
|
|
public static final class b implements d {
|
|
@Override // com.applovin.impl.i2.d
|
|
public long a(long j) {
|
|
return j;
|
|
}
|
|
}
|
|
|
|
public interface d {
|
|
long a(long j);
|
|
}
|
|
|
|
public interface f {
|
|
e a(l8 l8Var, long j);
|
|
|
|
default void a() {
|
|
}
|
|
}
|
|
|
|
public final ij a() {
|
|
return this.a;
|
|
}
|
|
|
|
public void b(boolean z, long j) {
|
|
}
|
|
|
|
public final boolean b() {
|
|
return this.c != null;
|
|
}
|
|
|
|
public i2(d dVar, f fVar, long j, long j2, long j3, long j4, long j5, long j6, int i) {
|
|
this.b = fVar;
|
|
this.d = i;
|
|
this.a = new a(dVar, j, j2, j3, j4, j5, j6);
|
|
}
|
|
|
|
public static class c {
|
|
private final long a;
|
|
private final long b;
|
|
private final long c;
|
|
private long d;
|
|
private long e;
|
|
private long f;
|
|
private long g;
|
|
private long h;
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public long a() {
|
|
return this.g;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public long b() {
|
|
return this.f;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public long c() {
|
|
return this.h;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public long d() {
|
|
return this.a;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public long e() {
|
|
return this.b;
|
|
}
|
|
|
|
public c(long j, long j2, long j3, long j4, long j5, long j6, long j7) {
|
|
this.a = j;
|
|
this.b = j2;
|
|
this.d = j3;
|
|
this.e = j4;
|
|
this.f = j5;
|
|
this.g = j6;
|
|
this.c = j7;
|
|
this.h = a(j2, j3, j4, j5, j6, j7);
|
|
}
|
|
|
|
private void f() {
|
|
this.h = a(this.b, this.d, this.e, this.f, this.g, this.c);
|
|
}
|
|
|
|
public static long a(long j, long j2, long j3, long j4, long j5, long j6) {
|
|
if (j4 + 1 >= j5 || j2 + 1 >= j3) {
|
|
return j4;
|
|
}
|
|
long j7 = (long) ((j - j2) * ((j5 - j4) / (j3 - j2)));
|
|
return xp.b(((j7 + j4) - j6) - (j7 / 20), j4, j5 - 1);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void b(long j, long j2) {
|
|
this.d = j;
|
|
this.f = j2;
|
|
f();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(long j, long j2) {
|
|
this.e = j;
|
|
this.g = j2;
|
|
f();
|
|
}
|
|
}
|
|
|
|
public final void b(long j) {
|
|
c cVar = this.c;
|
|
if (cVar == null || cVar.d() != j) {
|
|
this.c = a(j);
|
|
}
|
|
}
|
|
|
|
public int a(l8 l8Var, th thVar) {
|
|
while (true) {
|
|
c cVar = (c) b1.b(this.c);
|
|
long b2 = cVar.b();
|
|
long a2 = cVar.a();
|
|
long c2 = cVar.c();
|
|
if (a2 - b2 <= this.d) {
|
|
a(false, b2);
|
|
return a(l8Var, b2, thVar);
|
|
}
|
|
if (!a(l8Var, c2)) {
|
|
return a(l8Var, c2, thVar);
|
|
}
|
|
l8Var.b();
|
|
e a3 = this.b.a(l8Var, cVar.e());
|
|
int i = a3.a;
|
|
if (i == -3) {
|
|
a(false, c2);
|
|
return a(l8Var, c2, thVar);
|
|
}
|
|
if (i == -2) {
|
|
cVar.b(a3.b, a3.c);
|
|
} else {
|
|
if (i != -1) {
|
|
if (i != 0) {
|
|
throw new IllegalStateException("Invalid case");
|
|
}
|
|
a(l8Var, a3.c);
|
|
a(true, a3.c);
|
|
return a(l8Var, a3.c, thVar);
|
|
}
|
|
cVar.a(a3.b, a3.c);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static final class e {
|
|
public static final e d = new e(-3, C.TIME_UNSET, -1);
|
|
private final int a;
|
|
private final long b;
|
|
private final long c;
|
|
|
|
public static e a(long j, long j2) {
|
|
return new e(-1, j, j2);
|
|
}
|
|
|
|
public static e b(long j, long j2) {
|
|
return new e(-2, j, j2);
|
|
}
|
|
|
|
public static e a(long j) {
|
|
return new e(0, C.TIME_UNSET, j);
|
|
}
|
|
|
|
private e(int i, long j, long j2) {
|
|
this.a = i;
|
|
this.b = j;
|
|
this.c = j2;
|
|
}
|
|
}
|
|
|
|
public static class a implements ij {
|
|
private final d a;
|
|
private final long b;
|
|
private final long c;
|
|
private final long d;
|
|
private final long e;
|
|
private final long f;
|
|
private final long g;
|
|
|
|
@Override // com.applovin.impl.ij
|
|
public boolean b() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ij
|
|
public long d() {
|
|
return this.b;
|
|
}
|
|
|
|
public a(d dVar, long j, long j2, long j3, long j4, long j5, long j6) {
|
|
this.a = dVar;
|
|
this.b = j;
|
|
this.c = j2;
|
|
this.d = j3;
|
|
this.e = j4;
|
|
this.f = j5;
|
|
this.g = j6;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ij
|
|
public ij.a b(long j) {
|
|
return new ij.a(new kj(j, c.a(this.a.a(j), this.c, this.d, this.e, this.f, this.g)));
|
|
}
|
|
|
|
public long c(long j) {
|
|
return this.a.a(j);
|
|
}
|
|
}
|
|
|
|
public final void a(boolean z, long j) {
|
|
this.c = null;
|
|
this.b.a();
|
|
b(z, j);
|
|
}
|
|
|
|
public final int a(l8 l8Var, long j, th thVar) {
|
|
if (j == l8Var.f()) {
|
|
return 0;
|
|
}
|
|
thVar.a = j;
|
|
return 1;
|
|
}
|
|
|
|
public final boolean a(l8 l8Var, long j) {
|
|
long f2 = j - l8Var.f();
|
|
if (f2 < 0 || f2 > PlaybackStateCompat.ACTION_SET_REPEAT_MODE) {
|
|
return false;
|
|
}
|
|
l8Var.a((int) f2);
|
|
return true;
|
|
}
|
|
|
|
public c a(long j) {
|
|
return new c(j, this.a.c(j), this.a.c, this.a.d, this.a.e, this.a.f, this.a.g);
|
|
}
|
|
}
|