package defpackage;

import java.nio.ByteBuffer;
import java.security.MessageDigest;

/* JADX INFO: loaded from: classes.dex */
final class e28 implements v25 {
    public static final nl5 j = new nl5(50);
    public final ys b;
    public final v25 c;
    public final v25 d;
    public final int e;
    public final int f;
    public final Class g;
    public final my6 h;
    public final et9 i;

    public e28(ys ysVar, v25 v25Var, v25 v25Var2, int i, int i2, et9 et9Var, Class cls, my6 my6Var) {
        this.b = ysVar;
        this.c = v25Var;
        this.d = v25Var2;
        this.e = i;
        this.f = i2;
        this.i = et9Var;
        this.g = cls;
        this.h = my6Var;
    }

    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$ArrayArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    @Override // defpackage.v25
    public final void b(MessageDigest messageDigest) {
        ys ysVar = this.b;
        byte[] bArr = (byte[]) ysVar.d();
        ByteBuffer.wrap(bArr).putInt(this.e).putInt(this.f).array();
        this.d.b(messageDigest);
        this.c.b(messageDigest);
        messageDigest.update(bArr);
        et9 et9Var = this.i;
        if (et9Var != null) {
            et9Var.b(messageDigest);
        }
        this.h.b(messageDigest);
        nl5 nl5Var = j;
        Class cls = this.g;
        byte[] bytes = (byte[]) nl5Var.f(cls);
        if (bytes == null) {
            bytes = cls.getName().getBytes(v25.a);
            nl5Var.i(cls, bytes);
        }
        messageDigest.update(bytes);
        ysVar.put(bArr);
    }

    @Override // defpackage.v25
    public final boolean equals(Object obj) {
        if (obj instanceof e28) {
            e28 e28Var = (e28) obj;
            if (this.f == e28Var.f && this.e == e28Var.e && hda.b(this.i, e28Var.i) && this.g.equals(e28Var.g) && this.c.equals(e28Var.c) && this.d.equals(e28Var.d) && this.h.equals(e28Var.h)) {
                return true;
            }
        }
        return false;
    }

    @Override // defpackage.v25
    public final int hashCode() {
        int iHashCode = ((((this.d.hashCode() + (this.c.hashCode() * 31)) * 31) + this.e) * 31) + this.f;
        et9 et9Var = this.i;
        if (et9Var != null) {
            iHashCode = (iHashCode * 31) + et9Var.hashCode();
        }
        return this.h.b.hashCode() + ((this.g.hashCode() + (iHashCode * 31)) * 31);
    }

    public final String toString() {
        return "ResourceCacheKey{sourceKey=" + this.c + ", signature=" + this.d + ", width=" + this.e + ", height=" + this.f + ", decodedResourceClass=" + this.g + ", transformation='" + this.i + "', options=" + this.h + '}';
    }
}
