package 㳳.ῲ.K;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import org.greenrobot.eventbus.EventBusException;

/* renamed from: 㳳.ῲ.K.ඓ  reason: contains not printable characters */
/* compiled from: HandlerPoster */
public class HandlerC2404 extends Handler implements AbstractC2407 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final int f8323;

    /* renamed from: ඓ  reason: contains not printable characters */
    public boolean f8324;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final C2416 f8325 = new C2416();

    /* renamed from: 㸾  reason: contains not printable characters */
    public final C2399 f8326;

    public HandlerC2404(C2399 r1, Looper looper, int i) {
        super(looper);
        this.f8326 = r1;
        this.f8323 = i;
    }

    public void handleMessage(Message message) {
        boolean z = false;
        try {
            long uptimeMillis = SystemClock.uptimeMillis();
            do {
                C2408 r2 = this.f8325.m6470();
                if (r2 == null) {
                    synchronized (this) {
                        r2 = this.f8325.m6470();
                        if (r2 == null) {
                            this.f8324 = z;
                            this.f8324 = z;
                            return;
                        }
                    }
                }
                this.f8326.m6447(r2);
            } while (SystemClock.uptimeMillis() - uptimeMillis < ((long) this.f8323));
            if (sendMessage(obtainMessage())) {
                z = true;
                return;
            }
            throw new EventBusException("Could not send handler message");
        } finally {
            this.f8324 = z;
        }
    }

    @Override // 㳳.ῲ.K.AbstractC2407
    /* renamed from: K  reason: contains not printable characters */
    public void m6451(C2403 r1, Object obj) {
        C2408 r12 = C2408.m6457(r1, obj);
        synchronized (this) {
            this.f8325.m6472(r12);
            if (!this.f8324) {
                this.f8324 = true;
                if (!sendMessage(obtainMessage())) {
                    throw new EventBusException("Could not send handler message");
                }
            }
        }
    }
}
