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

import androidx.annotation.Nullable;
import androidx.media3.exoplayer.RendererCapabilities;
import tv.danmaku.ijk.media.player.IjkMediaMeta;

/* JADX INFO: loaded from: classes2.dex */
public final class i3 {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f12347b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f12348c;

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

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

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

    @Nullable
    public String zzb;

    public final boolean a(int i10) {
        int i11;
        int i12;
        int i13;
        int i14;
        if ((i10 & (-2097152)) != -2097152 || (i11 = (i10 >>> 19) & 3) == 1 || (i12 = (i10 >>> 17) & 3) == 0 || (i13 = (i10 >>> 12) & 15) == 0 || i13 == 15 || (i14 = (i10 >>> 10) & 3) == 3) {
            return false;
        }
        int i15 = i13 - 1;
        this.f12346a = i11;
        this.zzb = za2.f19199a[3 - i12];
        int i16 = za2.f19200b[i14];
        this.f12348c = i16;
        if (i11 == 2) {
            i16 /= 2;
            this.f12348c = i16;
        } else if (i11 == 0) {
            i16 /= 4;
            this.f12348c = i16;
        }
        int i17 = (i10 >>> 9) & 1;
        int i18 = 1152;
        if (i12 != 1) {
            if (i12 != 2) {
                i18 = RendererCapabilities.DECODER_SUPPORT_MASK;
            }
        } else if (i11 != 3) {
            i18 = 576;
        }
        this.f12351f = i18;
        if (i12 == 3) {
            int i19 = i11 == 3 ? za2.f19201c[i15] : za2.f19202d[i15];
            this.f12350e = i19;
            this.f12347b = (((i19 * 12) / i16) + i17) * 4;
        } else {
            int i20 = IjkMediaMeta.FF_PROFILE_H264_HIGH_444;
            if (i11 == 3) {
                int i21 = i12 == 2 ? za2.f19203e[i15] : za2.f19204f[i15];
                this.f12350e = i21;
                this.f12347b = defpackage.e.C(i21, IjkMediaMeta.FF_PROFILE_H264_HIGH_444, i16, i17);
            } else {
                int i22 = za2.f19205g[i15];
                this.f12350e = i22;
                if (i12 == 1) {
                    i20 = 72;
                }
                this.f12347b = defpackage.e.C(i20, i22, i16, i17);
            }
        }
        this.f12349d = ((i10 >> 6) & 3) == 3 ? 1 : 2;
        return true;
    }
}
