package h6; import java.nio.ByteBuffer; import java.security.MessageDigest; /* loaded from: classes2.dex */ final class x implements e6.h { /* renamed from: j, reason: collision with root package name */ private static final b7.g f10538j = new b7.g(50); /* renamed from: b, reason: collision with root package name */ private final i6.a f10539b; /* renamed from: c, reason: collision with root package name */ private final e6.h f10540c; /* renamed from: d, reason: collision with root package name */ private final e6.h f10541d; /* renamed from: e, reason: collision with root package name */ private final int f10542e; /* renamed from: f, reason: collision with root package name */ private final int f10543f; /* renamed from: g, reason: collision with root package name */ private final Class f10544g; /* renamed from: h, reason: collision with root package name */ private final e6.j f10545h; /* renamed from: i, reason: collision with root package name */ private final e6.n f10546i; x(i6.a aVar, e6.h hVar, e6.h hVar2, int i10, int i11, e6.n nVar, Class cls, e6.j jVar) { this.f10539b = aVar; this.f10540c = hVar; this.f10541d = hVar2; this.f10542e = i10; this.f10543f = i11; this.f10546i = nVar; this.f10544g = cls; this.f10545h = jVar; } private byte[] c() { b7.g gVar = f10538j; byte[] bArr = (byte[]) gVar.j(this.f10544g); if (bArr != null) { return bArr; } byte[] bytes = this.f10544g.getName().getBytes(e6.h.f9363a); gVar.l(this.f10544g, bytes); return bytes; } @Override // e6.h public void a(MessageDigest messageDigest) { byte[] bArr = (byte[]) this.f10539b.c(8, byte[].class); ByteBuffer.wrap(bArr).putInt(this.f10542e).putInt(this.f10543f).array(); this.f10541d.a(messageDigest); this.f10540c.a(messageDigest); messageDigest.update(bArr); e6.n nVar = this.f10546i; if (nVar != null) { nVar.a(messageDigest); } this.f10545h.a(messageDigest); messageDigest.update(c()); this.f10539b.d(bArr); } @Override // e6.h public boolean equals(Object obj) { if (!(obj instanceof x)) { return false; } x xVar = (x) obj; return this.f10543f == xVar.f10543f && this.f10542e == xVar.f10542e && b7.k.g(this.f10546i, xVar.f10546i) && this.f10544g.equals(xVar.f10544g) && this.f10540c.equals(xVar.f10540c) && this.f10541d.equals(xVar.f10541d) && this.f10545h.equals(xVar.f10545h); } @Override // e6.h public int hashCode() { int hashCode = (((((this.f10540c.hashCode() * 31) + this.f10541d.hashCode()) * 31) + this.f10542e) * 31) + this.f10543f; e6.n nVar = this.f10546i; if (nVar != null) { hashCode = (hashCode * 31) + nVar.hashCode(); } return (((hashCode * 31) + this.f10544g.hashCode()) * 31) + this.f10545h.hashCode(); } public String toString() { return "ResourceCacheKey{sourceKey=" + this.f10540c + ", signature=" + this.f10541d + ", width=" + this.f10542e + ", height=" + this.f10543f + ", decodedResourceClass=" + this.f10544g + ", transformation='" + this.f10546i + "', options=" + this.f10545h + '}'; } }