package o; import java.io.Closeable; /* loaded from: classes.dex */ public final class gbF { public static final void d(Closeable closeable, Throwable th) { if (closeable != null) { if (th == null) { closeable.close(); return; } try { closeable.close(); } catch (Throwable th2) { C14957gcv.e(th, ""); C14957gcv.e(th2, ""); if (th != th2) { C14887gbC.c.d(th, th2); } } } } }