package p138.p176.p177.p242.p258.p263;

import android.os.Bundle;
import android.util.Log;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.Ϝ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class BinderC4481 extends AbstractBinderC4409 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final AtomicReference<Bundle> f13858 = new AtomicReference<>();

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public boolean f13859;

    /* JADX WARN: Code restructure failed: missing block: B:4:0x0003, code lost:
    
        r4 = r4.get("r");
     */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static <T> T m7532(Bundle bundle, Class<T> cls) {
        Object obj;
        if (bundle == null || obj == null) {
            return null;
        }
        try {
            return cls.cast(obj);
        } catch (ClassCastException e) {
            Log.w("AM", String.format("Unexpected object type. Expected, Received".concat(": %s, %s"), cls.getCanonicalName(), obj.getClass().getCanonicalName()), e);
            throw e;
        }
    }

    @Override // p138.p176.p177.p242.p258.p263.InterfaceC4385
    /* JADX INFO: renamed from: ֏ */
    public final void mo7283(Bundle bundle) {
        synchronized (this.f13858) {
            try {
                this.f13858.set(bundle);
                this.f13859 = true;
            } finally {
                this.f13858.notify();
            }
        }
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final String m7533(long j) {
        return (String) m7532(m7534(j), String.class);
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final Bundle m7534(long j) {
        Bundle bundle;
        synchronized (this.f13858) {
            if (!this.f13859) {
                try {
                    this.f13858.wait(j);
                } catch (InterruptedException unused) {
                    return null;
                }
            }
            bundle = this.f13858.get();
        }
        return bundle;
    }
}
