package d0.x; import d0.c0.b; import d0.c0.c; import d0.t.k; import d0.z.d.m; import java.lang.reflect.Method; /* compiled from: PlatformImplementations.kt */ public class a { /* compiled from: PlatformImplementations.kt */ /* renamed from: d0.x.a$a reason: collision with other inner class name */ public static final class C0300a { public static final Method a; /* JADX WARNING: Removed duplicated region for block: B:10:0x003e A[LOOP:0: B:1:0x000e->B:10:0x003e, LOOP_END] */ /* JADX WARNING: Removed duplicated region for block: B:18:0x0042 A[EDGE_INSN: B:18:0x0042->B:12:0x0042 ?: BREAK , SYNTHETIC] */ static { Method method; boolean z2; Method[] methods = Throwable.class.getMethods(); m.checkNotNullExpressionValue(methods, "throwableMethods"); int length = methods.length; int i = 0; while (true) { if (i >= length) { method = null; break; } method = methods[i]; m.checkNotNullExpressionValue(method, "it"); if (m.areEqual(method.getName(), "addSuppressed")) { Class[] parameterTypes = method.getParameterTypes(); m.checkNotNullExpressionValue(parameterTypes, "it.parameterTypes"); if (m.areEqual((Class) k.singleOrNull(parameterTypes), Throwable.class)) { z2 = true; if (!z2) { break; } i++; } } z2 = false; if (!z2) { } } a = method; for (Method method2 : methods) { m.checkNotNullExpressionValue(method2, "it"); if (m.areEqual(method2.getName(), "getSuppressed")) { return; } } } } public void addSuppressed(Throwable th, Throwable th2) { m.checkNotNullParameter(th, "cause"); m.checkNotNullParameter(th2, "exception"); Method method = C0300a.a; if (method != null) { method.invoke(th, th2); } } public c defaultPlatformRandom() { return new b(); } }