package com.google.android.gms.internal.ads;

import androidx.annotation.Nullable;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;

/* JADX INFO: loaded from: classes2.dex */
public final class c5 implements z9 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f9724a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f9725b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final String f9726c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f9727d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final int f9728e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final int f9729f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final int f9730g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final byte[] f9731h;

    public c5(int i10, String str, String str2, int i11, int i12, int i13, int i14, byte[] bArr) {
        this.f9724a = i10;
        this.f9725b = str;
        this.f9726c = str2;
        this.f9727d = i11;
        this.f9728e = i12;
        this.f9729f = i13;
        this.f9730g = i14;
        this.f9731h = bArr;
    }

    public static c5 b(p01 p01Var) {
        int iB = p01Var.b();
        String strA = hc.a(p01Var.k(p01Var.b(), StandardCharsets.US_ASCII));
        String strK = p01Var.k(p01Var.b(), StandardCharsets.UTF_8);
        int iB2 = p01Var.b();
        int iB3 = p01Var.b();
        int iB4 = p01Var.b();
        int iB5 = p01Var.b();
        int iB6 = p01Var.b();
        byte[] bArr = new byte[iB6];
        p01Var.F(0, iB6, bArr);
        return new c5(iB, strA, strK, iB2, iB3, iB4, iB5, bArr);
    }

    @Override // com.google.android.gms.internal.ads.z9
    public final void a(g8 g8Var) {
        g8Var.w(this.f9724a, this.f9731h);
    }

    public final boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && c5.class == obj.getClass()) {
            c5 c5Var = (c5) obj;
            if (this.f9724a == c5Var.f9724a && this.f9725b.equals(c5Var.f9725b) && this.f9726c.equals(c5Var.f9726c) && this.f9727d == c5Var.f9727d && this.f9728e == c5Var.f9728e && this.f9729f == c5Var.f9729f && this.f9730g == c5Var.f9730g && Arrays.equals(this.f9731h, c5Var.f9731h)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Arrays.hashCode(this.f9731h) + ((((((((((this.f9726c.hashCode() + ((this.f9725b.hashCode() + ((this.f9724a + 527) * 31)) * 31)) * 31) + this.f9727d) * 31) + this.f9728e) * 31) + this.f9729f) * 31) + this.f9730g) * 31);
    }

    public final String toString() {
        String str = this.f9725b;
        int length = String.valueOf(str).length() + 32;
        String str2 = this.f9726c;
        return com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.h(new StringBuilder(str2.length() + length), "Picture: mimeType=", str, ", description=", str2);
    }
}
