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

import android.os.Parcel;
import android.os.SystemClock;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/* JADX INFO: loaded from: classes2.dex */
public final class ds0 extends zi implements bu {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ Object f10496a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ long f10498c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ id1 f10499d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ e30 f10500e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ gs0 f10501f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public ds0(long j10, e30 e30Var, gs0 gs0Var, id1 id1Var, Object obj, String str) {
        super("com.google.android.gms.ads.internal.initialization.IAdapterInitializationCallback");
        this.f10496a = obj;
        this.f10497b = str;
        this.f10498c = j10;
        this.f10499d = id1Var;
        this.f10500e = e30Var;
        this.f10501f = gs0Var;
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) {
        if (i10 == 2) {
            zze();
        } else {
            if (i10 != 3) {
                return false;
            }
            String string = parcel.readString();
            aj.e(parcel);
            a(string);
        }
        parcel2.writeNoException();
        return true;
    }

    @Override // com.google.android.gms.internal.ads.bu
    public final void a(String str) {
        synchronized (this.f10496a) {
            gs0 gs0Var = this.f10501f;
            String str2 = this.f10497b;
            m7.n.C.f30472k.getClass();
            gs0Var.d(str2, (int) (SystemClock.elapsedRealtime() - this.f10498c), str, false);
            gs0Var.f11860l.c(str2, IjkMediaPlayer.OnNativeInvokeListener.ARG_ERROR);
            gs0Var.f11863o.a(str2, IjkMediaPlayer.OnNativeInvokeListener.ARG_ERROR);
            nd1 nd1Var = gs0Var.f11864p;
            id1 id1Var = this.f10499d;
            id1Var.zzk(str);
            id1Var.a(false);
            nd1Var.zzb(id1Var.zzm());
            this.f10500e.zzc(Boolean.FALSE);
        }
    }

    @Override // com.google.android.gms.internal.ads.bu
    public final void zze() {
        synchronized (this.f10496a) {
            gs0 gs0Var = this.f10501f;
            String str = this.f10497b;
            m7.n.C.f30472k.getClass();
            gs0Var.d(str, (int) (SystemClock.elapsedRealtime() - this.f10498c), "", true);
            gs0Var.f11860l.b(str);
            gs0Var.f11863o.zzb(str);
            nd1 nd1Var = gs0Var.f11864p;
            id1 id1Var = this.f10499d;
            id1Var.a(true);
            nd1Var.zzb(id1Var.zzm());
            this.f10500e.zzc(Boolean.TRUE);
        }
    }
}
