package com.ironsource; import android.os.Handler; import android.os.Looper; import android.os.Message; import com.ironsource.mediationsdk.logger.IronLog; import java.util.concurrent.ConcurrentHashMap; /* loaded from: classes2.dex */ public class gc extends Handler { private final ConcurrentHashMap a; public gc(Looper looper) { super(looper); this.a = new ConcurrentHashMap<>(); } private boolean a(int i) { return i == 1016 || i == 1015; } public void a(String str, hn hnVar) { if (str == null || hnVar == null) { return; } this.a.put(str, hnVar); } @Override // android.os.Handler public void handleMessage(Message message) { try { zf zfVar = (zf) message.obj; String path = zfVar.getPath(); hn hnVar = this.a.get(path); if (hnVar == null) { return; } if (a(message.what)) { hnVar.a(zfVar); } else { int i = message.what; hnVar.a(zfVar, new rf(i, yt.a(i))); } this.a.remove(path); } catch (Throwable th) { i9.d().a(th); IronLog.INTERNAL.error(th.toString()); } } }