package defpackage;

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

/* renamed from: ˈᵸːᵿ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1113 implements InterfaceC4207 {

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public static final C1271 f4795 = new C1271(50);

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int f4796;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final Class f4797;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final int f4798;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final InterfaceC4207 f4799;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final InterfaceC3731 f4800;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final C4805 f4801;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final C0210 f4802;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final InterfaceC4207 f4803;

    public C1113(C4805 c4805, InterfaceC4207 interfaceC4207, InterfaceC4207 interfaceC42072, int i, int i2, InterfaceC3731 interfaceC3731, Class cls, C0210 c0210) {
        this.f4801 = c4805;
        this.f4799 = interfaceC4207;
        this.f4803 = interfaceC42072;
        this.f4796 = i;
        this.f4798 = i2;
        this.f4800 = interfaceC3731;
        this.f4797 = cls;
        this.f4802 = c0210;
    }

    @Override // defpackage.InterfaceC4207
    public final boolean equals(Object obj) {
        if (obj instanceof C1113) {
            C1113 c1113 = (C1113) obj;
            if (this.f4798 == c1113.f4798 && this.f4796 == c1113.f4796 && ˊˉʤﹳ.ᵻᵢﹳᵰ(this.f4800, c1113.f4800) && this.f4797.equals(c1113.f4797) && this.f4799.equals(c1113.f4799) && this.f4803.equals(c1113.f4803) && this.f4802.equals(c1113.f4802)) {
                return true;
            }
        }
        return false;
    }

    @Override // defpackage.InterfaceC4207
    public final int hashCode() {
        int iHashCode = ((((this.f4803.hashCode() + (this.f4799.hashCode() * 31)) * 31) + this.f4796) * 31) + this.f4798;
        InterfaceC3731 interfaceC3731 = this.f4800;
        if (interfaceC3731 != null) {
            iHashCode = (iHashCode * 31) + interfaceC3731.hashCode();
        }
        int iHashCode2 = this.f4797.hashCode();
        return this.f4802.f1704.hashCode() + ((iHashCode2 + (iHashCode * 31)) * 31);
    }

    public final String toString() {
        return "ResourceCacheKey{sourceKey=" + this.f4799 + ", signature=" + this.f4803 + ", width=" + this.f4796 + ", height=" + this.f4798 + ", decodedResourceClass=" + this.f4797 + ", transformation='" + this.f4800 + "', options=" + this.f4802 + '}';
    }

    @Override // defpackage.InterfaceC4207
    /* renamed from: ᵴᵳ */
    public final void mo1352(MessageDigest messageDigest) {
        Object objM10121;
        C4805 c4805 = this.f4801;
        synchronized (c4805) {
            C1802 c1802 = (C1802) c4805.f17838;
            InterfaceC4322 interfaceC4322M5123 = (InterfaceC4322) ((ArrayDeque) ((ᵢˇᵭ) c1802).ᵧᵾˀˈ).poll();
            if (interfaceC4322M5123 == null) {
                interfaceC4322M5123 = c1802.m5123();
            }
            C2408 c2408 = (C2408) interfaceC4322M5123;
            c2408.f9400 = 8;
            c2408.f9398 = byte[].class;
            objM10121 = c4805.m10121(c2408, byte[].class);
        }
        byte[] bArr = (byte[]) objM10121;
        ByteBuffer.wrap(bArr).putInt(this.f4796).putInt(this.f4798).array();
        this.f4803.mo1352(messageDigest);
        this.f4799.mo1352(messageDigest);
        messageDigest.update(bArr);
        InterfaceC3731 interfaceC3731 = this.f4800;
        if (interfaceC3731 != null) {
            interfaceC3731.mo1352(messageDigest);
        }
        this.f4802.mo1352(messageDigest);
        C1271 c1271 = f4795;
        Class cls = this.f4797;
        byte[] bytes = (byte[]) c1271.m3830(cls);
        if (bytes == null) {
            bytes = cls.getName().getBytes(InterfaceC4207.f15732);
            c1271.m3832(cls, bytes);
        }
        messageDigest.update(bytes);
        this.f4801.m10124(bArr);
    }
}
