package C3;

import android.os.IBinder;
import android.os.IInterface;
import android.os.RemoteException;
import java.util.Iterator;

/* JADX INFO: renamed from: C3.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C0126b extends B {

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ IBinder f709j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ ServiceConnectionC0128d f710k;

    public C0126b(ServiceConnectionC0128d serviceConnectionC0128d, IBinder iBinder) {
        this.f710k = serviceConnectionC0128d;
        this.f709j = iBinder;
    }

    @Override // C3.B
    public final void b() {
        C0129e c0129e = (C0129e) this.f710k.f714b;
        c0129e.f728n = (IInterface) c0129e.f724i.a(this.f709j);
        A a6 = c0129e.f717b;
        a6.b("linkToDeath", new Object[0]);
        try {
            c0129e.f728n.asBinder().linkToDeath(c0129e.f726k, 0);
        } catch (RemoteException e6) {
            a6.a(e6, "linkToDeath failed", new Object[0]);
        }
        c0129e.f722g = false;
        Iterator it = c0129e.f719d.iterator();
        while (it.hasNext()) {
            ((Runnable) it.next()).run();
        }
        c0129e.f719d.clear();
    }
}
