package ῲ.ݜ;

import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;
import androidx.media.MediaBrowserServiceCompat;
import ඓ.K.K.K.C1293;

/* renamed from: ῲ.ݜ.K  reason: contains not printable characters */
/* compiled from: MediaBrowserServiceCompat */
public class RunnableC1597 implements Runnable {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final /* synthetic */ String f5777;

    /* renamed from: ඓ  reason: contains not printable characters */
    public final /* synthetic */ int f5778;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final /* synthetic */ MediaBrowserServiceCompat.AbstractC0200 f5779;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final /* synthetic */ MediaBrowserServiceCompat.C0218 f5780;

    /* renamed from: 㴹  reason: contains not printable characters */
    public final /* synthetic */ Bundle f5781;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final /* synthetic */ int f5782;

    public RunnableC1597(MediaBrowserServiceCompat.C0218 r1, MediaBrowserServiceCompat.AbstractC0200 r2, String str, int i, int i2, Bundle bundle) {
        this.f5780 = r1;
        this.f5779 = r2;
        this.f5777 = str;
        this.f5782 = i;
        this.f5778 = i2;
        this.f5781 = bundle;
    }

    public void run() {
        IBinder r0 = ((MediaBrowserServiceCompat.C0210) this.f5779).m751();
        MediaBrowserServiceCompat.this.f1379.remove(r0);
        MediaBrowserServiceCompat.C0213 r1 = new MediaBrowserServiceCompat.C0213(this.f5777, this.f5782, this.f5778, this.f5781, this.f5779);
        MediaBrowserServiceCompat mediaBrowserServiceCompat = MediaBrowserServiceCompat.this;
        mediaBrowserServiceCompat.f1383 = r1;
        mediaBrowserServiceCompat.m730(this.f5777, this.f5778, this.f5781);
        r1.f1407 = null;
        MediaBrowserServiceCompat mediaBrowserServiceCompat2 = MediaBrowserServiceCompat.this;
        mediaBrowserServiceCompat2.f1383 = null;
        if (r1.f1407 == null) {
            StringBuilder r02 = C1293.m3416("No root for client ");
            r02.append(this.f5777);
            r02.append(" from service ");
            r02.append(RunnableC1597.class.getName());
            Log.i("MBServiceCompat", r02.toString());
            try {
                ((MediaBrowserServiceCompat.C0210) this.f5779).m752(2, null);
            } catch (RemoteException unused) {
                StringBuilder r03 = C1293.m3416("Calling onConnectFailed() failed. Ignoring. pkg=");
                r03.append(this.f5777);
                Log.w("MBServiceCompat", r03.toString());
            }
        } else {
            try {
                mediaBrowserServiceCompat2.f1379.put(r0, r1);
                r0.linkToDeath(r1, 0);
                if (MediaBrowserServiceCompat.this.f1382 != null) {
                    MediaBrowserServiceCompat.C0202 r04 = r1.f1407;
                    throw null;
                }
            } catch (RemoteException unused2) {
                StringBuilder r12 = C1293.m3416("Calling onConnect() failed. Dropping client. pkg=");
                r12.append(this.f5777);
                Log.w("MBServiceCompat", r12.toString());
                MediaBrowserServiceCompat.this.f1379.remove(r0);
            }
        }
    }
}
