package kotlin.coroutines.jvm.internal; import java.lang.reflect.Method; /* loaded from: classes2.dex */ final class i { /* renamed from: a, reason: collision with root package name */ public static final i f11422a = new i(); /* renamed from: b, reason: collision with root package name */ private static final a f11423b = new a(null, null, null); /* renamed from: c, reason: collision with root package name */ private static a f11424c; private static final class a { /* renamed from: a, reason: collision with root package name */ public final Method f11425a; /* renamed from: b, reason: collision with root package name */ public final Method f11426b; /* renamed from: c, reason: collision with root package name */ public final Method f11427c; public a(Method method, Method method2, Method method3) { this.f11425a = method; this.f11426b = method2; this.f11427c = method3; } } private i() { } private final a a(kotlin.coroutines.jvm.internal.a aVar) { try { a aVar2 = new a(Class.class.getDeclaredMethod("getModule", new Class[0]), aVar.getClass().getClassLoader().loadClass("java.lang.Module").getDeclaredMethod("getDescriptor", new Class[0]), aVar.getClass().getClassLoader().loadClass("java.lang.module.ModuleDescriptor").getDeclaredMethod("name", new Class[0])); f11424c = aVar2; return aVar2; } catch (Exception unused) { a aVar3 = f11423b; f11424c = aVar3; return aVar3; } } public final String b(kotlin.coroutines.jvm.internal.a aVar) { d9.j.e(aVar, "continuation"); a aVar2 = f11424c; if (aVar2 == null) { aVar2 = a(aVar); } if (aVar2 == f11423b) { return null; } Method method = aVar2.f11425a; Object invoke = method != null ? method.invoke(aVar.getClass(), new Object[0]) : null; if (invoke == null) { return null; } Method method2 = aVar2.f11426b; Object invoke2 = method2 != null ? method2.invoke(invoke, new Object[0]) : null; if (invoke2 == null) { return null; } Method method3 = aVar2.f11427c; Object invoke3 = method3 != null ? method3.invoke(invoke2, new Object[0]) : null; if (invoke3 instanceof String) { return (String) invoke3; } return null; } }