package com.applovin.impl; import android.os.Bundle; import com.applovin.impl.o2; import com.ironsource.mediationsdk.logger.IronSourceError; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; /* loaded from: classes.dex */ public final class f9 implements o2 { private static final f9 H = new b().a(); public static final o2.a I = new o2.a() { // from class: com.applovin.impl.f9$$ExternalSyntheticLambda0 @Override // com.applovin.impl.o2.a public final o2 a(Bundle bundle) { f9 a2; a2 = f9.a(bundle); return a2; } }; public final int A; public final int B; public final int C; public final int D; public final int E; public final int F; private int G; public final String a; public final String b; public final String c; public final int d; public final int f; public final int g; public final int h; public final int i; public final String j; public final bf k; public final String l; public final String m; public final int n; public final List o; public final y6 p; public final long q; public final int r; public final int s; public final float t; public final int u; public final float v; public final byte[] w; public final int x; public final r3 y; public final int z; private static Object a(Object obj, Object obj2) { return obj != null ? obj : obj2; } private static String c(int i) { return b(12) + "_" + Integer.toString(i, 36); } public int b() { int i; int i2 = this.r; if (i2 == -1 || (i = this.s) == -1) { return -1; } return i2 * i; } public String toString() { return "Format(" + this.a + ", " + this.b + ", " + this.l + ", " + this.m + ", " + this.j + ", " + this.i + ", " + this.c + ", [" + this.r + ", " + this.s + ", " + this.t + "], [" + this.z + ", " + this.A + "])"; } public static final class b { private int A; private int B; private int C; private int D; private String a; private String b; private String c; private int d; private int e; private int f; private int g; private String h; private bf i; private String j; private String k; private int l; private List m; private y6 n; private long o; private int p; private int q; private float r; private int s; private float t; private byte[] u; private int v; private r3 w; private int x; private int y; private int z; public b a(float f) { this.r = f; return this; } public b a(int i) { this.C = i; return this; } public b a(long j) { this.o = j; return this; } public b a(bf bfVar) { this.i = bfVar; return this; } public b a(r3 r3Var) { this.w = r3Var; return this; } public b a(y6 y6Var) { this.n = y6Var; return this; } public b a(String str) { this.h = str; return this; } public b a(List list) { this.m = list; return this; } public b a(byte[] bArr) { this.u = bArr; return this; } public b b(float f) { this.t = f; return this; } public b b(int i) { this.f = i; return this; } public b b(String str) { this.j = str; return this; } public b c(int i) { this.x = i; return this; } public b c(String str) { this.a = str; return this; } public b d(int i) { this.D = i; return this; } public b d(String str) { this.b = str; return this; } public b e(int i) { this.A = i; return this; } public b e(String str) { this.c = str; return this; } public b f(int i) { this.B = i; return this; } public b f(String str) { this.k = str; return this; } public b g(int i) { this.q = i; return this; } public b i(int i) { this.l = i; return this; } public b j(int i) { this.z = i; return this; } public b k(int i) { this.g = i; return this; } public b l(int i) { this.e = i; return this; } public b m(int i) { this.s = i; return this; } public b n(int i) { this.y = i; return this; } public b o(int i) { this.d = i; return this; } public b p(int i) { this.v = i; return this; } public b q(int i) { this.p = i; return this; } public b() { this.f = -1; this.g = -1; this.l = -1; this.o = Long.MAX_VALUE; this.p = -1; this.q = -1; this.r = -1.0f; this.t = 1.0f; this.v = -1; this.x = -1; this.y = -1; this.z = -1; this.C = -1; this.D = 0; } public b h(int i) { this.a = Integer.toString(i); return this; } private b(f9 f9Var) { this.a = f9Var.a; this.b = f9Var.b; this.c = f9Var.c; this.d = f9Var.d; this.e = f9Var.f; this.f = f9Var.g; this.g = f9Var.h; this.h = f9Var.j; this.i = f9Var.k; this.j = f9Var.l; this.k = f9Var.m; this.l = f9Var.n; this.m = f9Var.o; this.n = f9Var.p; this.o = f9Var.q; this.p = f9Var.r; this.q = f9Var.s; this.r = f9Var.t; this.s = f9Var.u; this.t = f9Var.v; this.u = f9Var.w; this.v = f9Var.x; this.w = f9Var.y; this.x = f9Var.z; this.y = f9Var.A; this.z = f9Var.B; this.A = f9Var.C; this.B = f9Var.D; this.C = f9Var.E; this.D = f9Var.F; } public f9 a() { return new f9(this); } } private f9(b bVar) { this.a = bVar.a; this.b = bVar.b; this.c = xp.f(bVar.c); this.d = bVar.d; this.f = bVar.e; int i = bVar.f; this.g = i; int i2 = bVar.g; this.h = i2; this.i = i2 != -1 ? i2 : i; this.j = bVar.h; this.k = bVar.i; this.l = bVar.j; this.m = bVar.k; this.n = bVar.l; this.o = bVar.m == null ? Collections.emptyList() : bVar.m; y6 y6Var = bVar.n; this.p = y6Var; this.q = bVar.o; this.r = bVar.p; this.s = bVar.q; this.t = bVar.r; this.u = bVar.s == -1 ? 0 : bVar.s; this.v = bVar.t == -1.0f ? 1.0f : bVar.t; this.w = bVar.u; this.x = bVar.v; this.y = bVar.w; this.z = bVar.x; this.A = bVar.y; this.B = bVar.z; this.C = bVar.A == -1 ? 0 : bVar.A; this.D = bVar.B != -1 ? bVar.B : 0; this.E = bVar.C; if (bVar.D != 0 || y6Var == null) { this.F = bVar.D; } else { this.F = 1; } } public f9 a(int i) { return a().d(i).a(); } public int hashCode() { if (this.G == 0) { String str = this.a; int hashCode = ((str == null ? 0 : str.hashCode()) + IronSourceError.ERROR_NON_EXISTENT_INSTANCE) * 31; String str2 = this.b; int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31; String str3 = this.c; int hashCode3 = (((((((((hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31) + this.d) * 31) + this.f) * 31) + this.g) * 31) + this.h) * 31; String str4 = this.j; int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31; bf bfVar = this.k; int hashCode5 = (hashCode4 + (bfVar == null ? 0 : bfVar.hashCode())) * 31; String str5 = this.l; int hashCode6 = (hashCode5 + (str5 == null ? 0 : str5.hashCode())) * 31; String str6 = this.m; this.G = ((((((((((((((((((((((((((((((hashCode6 + (str6 != null ? str6.hashCode() : 0)) * 31) + this.n) * 31) + ((int) this.q)) * 31) + this.r) * 31) + this.s) * 31) + Float.floatToIntBits(this.t)) * 31) + this.u) * 31) + Float.floatToIntBits(this.v)) * 31) + this.x) * 31) + this.z) * 31) + this.A) * 31) + this.B) * 31) + this.C) * 31) + this.D) * 31) + this.E) * 31) + this.F; } return this.G; } public boolean equals(Object obj) { int i; if (this == obj) { return true; } if (obj == null || f9.class != obj.getClass()) { return false; } f9 f9Var = (f9) obj; int i2 = this.G; if (i2 == 0 || (i = f9Var.G) == 0 || i2 == i) { return this.d == f9Var.d && this.f == f9Var.f && this.g == f9Var.g && this.h == f9Var.h && this.n == f9Var.n && this.q == f9Var.q && this.r == f9Var.r && this.s == f9Var.s && this.u == f9Var.u && this.x == f9Var.x && this.z == f9Var.z && this.A == f9Var.A && this.B == f9Var.B && this.C == f9Var.C && this.D == f9Var.D && this.E == f9Var.E && this.F == f9Var.F && Float.compare(this.t, f9Var.t) == 0 && Float.compare(this.v, f9Var.v) == 0 && xp.a((Object) this.a, (Object) f9Var.a) && xp.a((Object) this.b, (Object) f9Var.b) && xp.a((Object) this.j, (Object) f9Var.j) && xp.a((Object) this.l, (Object) f9Var.l) && xp.a((Object) this.m, (Object) f9Var.m) && xp.a((Object) this.c, (Object) f9Var.c) && Arrays.equals(this.w, f9Var.w) && xp.a(this.k, f9Var.k) && xp.a(this.y, f9Var.y) && xp.a(this.p, f9Var.p) && a(f9Var); } return false; } public boolean a(f9 f9Var) { if (this.o.size() != f9Var.o.size()) { return false; } for (int i = 0; i < this.o.size(); i++) { if (!Arrays.equals((byte[]) this.o.get(i), (byte[]) f9Var.o.get(i))) { return false; } } return true; } public b a() { return new b(); } /* JADX INFO: Access modifiers changed from: private */ public static f9 a(Bundle bundle) { b bVar = new b(); p2.a(bundle); int i = 0; String string = bundle.getString(b(0)); f9 f9Var = H; bVar.c((String) a(string, f9Var.a)).d((String) a(bundle.getString(b(1)), f9Var.b)).e((String) a(bundle.getString(b(2)), f9Var.c)).o(bundle.getInt(b(3), f9Var.d)).l(bundle.getInt(b(4), f9Var.f)).b(bundle.getInt(b(5), f9Var.g)).k(bundle.getInt(b(6), f9Var.h)).a((String) a(bundle.getString(b(7)), f9Var.j)).a((bf) a((bf) bundle.getParcelable(b(8)), f9Var.k)).b((String) a(bundle.getString(b(9)), f9Var.l)).f((String) a(bundle.getString(b(10)), f9Var.m)).i(bundle.getInt(b(11), f9Var.n)); ArrayList arrayList = new ArrayList(); while (true) { byte[] byteArray = bundle.getByteArray(c(i)); if (byteArray == null) { b a2 = bVar.a(arrayList).a((y6) bundle.getParcelable(b(13))); String b2 = b(14); f9 f9Var2 = H; a2.a(bundle.getLong(b2, f9Var2.q)).q(bundle.getInt(b(15), f9Var2.r)).g(bundle.getInt(b(16), f9Var2.s)).a(bundle.getFloat(b(17), f9Var2.t)).m(bundle.getInt(b(18), f9Var2.u)).b(bundle.getFloat(b(19), f9Var2.v)).a(bundle.getByteArray(b(20))).p(bundle.getInt(b(21), f9Var2.x)).a((r3) p2.a(r3.g, bundle.getBundle(b(22)))).c(bundle.getInt(b(23), f9Var2.z)).n(bundle.getInt(b(24), f9Var2.A)).j(bundle.getInt(b(25), f9Var2.B)).e(bundle.getInt(b(26), f9Var2.C)).f(bundle.getInt(b(27), f9Var2.D)).a(bundle.getInt(b(28), f9Var2.E)).d(bundle.getInt(b(29), f9Var2.F)); return bVar.a(); } arrayList.add(byteArray); i++; } } private static String b(int i) { return Integer.toString(i, 36); } }