package t1;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import kotlin.jvm.internal.l;
import o1.AbstractC0668d;

/* JADX INFO: renamed from: t1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC0720a {

    /* JADX INFO: renamed from: t1.a$a, reason: collision with other inner class name */
    private static final class C0097a {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public static final C0097a f6512a = new C0097a();

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public static final Method f6513b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        public static final Method f6514c;

        static {
            Method method;
            Method method2;
            Method[] methods = Throwable.class.getMethods();
            l.b(methods);
            int length = methods.length;
            int i2 = 0;
            int i3 = 0;
            while (true) {
                method = null;
                if (i3 >= length) {
                    method2 = null;
                    break;
                }
                method2 = methods[i3];
                if (l.a(method2.getName(), "addSuppressed")) {
                    Class<?>[] parameterTypes = method2.getParameterTypes();
                    l.d(parameterTypes, "getParameterTypes(...)");
                    if (l.a(AbstractC0668d.B(parameterTypes), Throwable.class)) {
                        break;
                    }
                }
                i3++;
            }
            f6513b = method2;
            int length2 = methods.length;
            while (true) {
                if (i2 >= length2) {
                    break;
                }
                Method method3 = methods[i2];
                if (l.a(method3.getName(), "getSuppressed")) {
                    method = method3;
                    break;
                }
                i2++;
            }
            f6514c = method;
        }

        private C0097a() {
        }
    }

    public void a(Throwable cause, Throwable exception) throws IllegalAccessException, InvocationTargetException {
        l.e(cause, "cause");
        l.e(exception, "exception");
        Method method = C0097a.f6513b;
        if (method != null) {
            method.invoke(cause, exception);
        }
    }

    public A1.c b() {
        return new A1.b();
    }
}
