package p402.p409;

import java.lang.reflect.Method;
import p402.InterfaceC6540;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ގ.ލ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public class C6598 {

    /* JADX INFO: renamed from: ގ.ލ.֏$֏, reason: contains not printable characters */
    public static final class C6599 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final Method f19380;

        /* JADX WARN: Removed duplicated region for block: B:13:0x003a  */
        static {
            Method method;
            Method[] methods = Throwable.class.getMethods();
            C6635.m9823((Object) methods, "throwableClass.methods");
            int length = methods.length;
            int i = 0;
            while (true) {
                method = null;
                if (i >= length) {
                    break;
                }
                Method method2 = methods[i];
                C6635.m9823((Object) method2, "it");
                if (C6635.m9825((Object) method2.getName(), (Object) "addSuppressed")) {
                    Class<?>[] parameterTypes = method2.getParameterTypes();
                    C6635.m9823((Object) parameterTypes, "it.parameterTypes");
                    boolean z = C6635.m9825(parameterTypes.length == 1 ? parameterTypes[0] : null, Throwable.class);
                    if (z) {
                        method = method2;
                        break;
                    }
                    i++;
                }
            }
            f19380 = method;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo9808(Throwable th, Throwable th2) {
        if (th == null) {
            C6635.m9824("cause");
            throw null;
        }
        if (th2 == null) {
            C6635.m9824("exception");
            throw null;
        }
        Method method = C6599.f19380;
        if (method != null) {
            method.invoke(th, th2);
        }
    }
}
