CrackMe.apk
Download file
package kotlin.reflect.jvm.internal;
import java.lang.reflect.Constructor;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.reflect.KParameter;
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
import kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.calls.CallerImpl;
import kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lkotlin/reflect/jvm/internal/calls/Caller;", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
/* compiled from: KFunctionImpl.kt */
final class KFunctionImpl$defaultCaller$2 extends Lambda implements Function0<Caller<? extends Member>> {
final /* synthetic */ KFunctionImpl this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
KFunctionImpl$defaultCaller$2(KFunctionImpl kFunctionImpl) {
super(0);
this.this$0 = kFunctionImpl;
}
public final Caller<Member> invoke() {
Member member;
CallerImpl callerImpl;
CallerImpl.Method method;
JvmFunctionSignature mapSignature = RuntimeTypeMapper.INSTANCE.mapSignature(this.this$0.getDescriptor());
if (mapSignature instanceof JvmFunctionSignature.KotlinFunction) {
KDeclarationContainerImpl container = this.this$0.getContainer();
JvmFunctionSignature.KotlinFunction kotlinFunction = (JvmFunctionSignature.KotlinFunction) mapSignature;
String methodName = kotlinFunction.getMethodName();
String methodDesc = kotlinFunction.getMethodDesc();
Member member2 = this.this$0.getCaller().getMember();
Intrinsics.checkNotNull(member2);
member = container.findDefaultMethod(methodName, methodDesc, !Modifier.isStatic(member2.getModifiers()));
} else if (mapSignature instanceof JvmFunctionSignature.KotlinConstructor) {
if (this.this$0.isAnnotationConstructor()) {
Class<?> jClass = this.this$0.getContainer().getJClass();
Iterable<KParameter> parameters = this.this$0.getParameters();
Collection arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(parameters, 10));
for (KParameter name : parameters) {
String name2 = name.getName();
Intrinsics.checkNotNull(name2);
arrayList.add(name2);
}
return new AnnotationConstructorCaller(jClass, (List) arrayList, AnnotationConstructorCaller.CallMode.CALL_BY_NAME, AnnotationConstructorCaller.Origin.KOTLIN, (List) null, 16, (DefaultConstructorMarker) null);
}
member = this.this$0.getContainer().findDefaultConstructor(((JvmFunctionSignature.KotlinConstructor) mapSignature).getConstructorDesc());
} else if (mapSignature instanceof JvmFunctionSignature.FakeJavaAnnotationConstructor) {
List<Method> methods = ((JvmFunctionSignature.FakeJavaAnnotationConstructor) mapSignature).getMethods();
Class<?> jClass2 = this.this$0.getContainer().getJClass();
Iterable<Method> iterable = methods;
Collection arrayList2 = new ArrayList(CollectionsKt.collectionSizeOrDefault(iterable, 10));
for (Method name3 : iterable) {
arrayList2.add(name3.getName());
}
return new AnnotationConstructorCaller(jClass2, (List) arrayList2, AnnotationConstructorCaller.CallMode.CALL_BY_NAME, AnnotationConstructorCaller.Origin.JAVA, methods);
} else {
Member member3 = null;
member = null;
}
if (member instanceof Constructor) {
KFunctionImpl kFunctionImpl = this.this$0;
callerImpl = kFunctionImpl.createConstructorCaller((Constructor) member, kFunctionImpl.getDescriptor());
} else if (member instanceof Method) {
if (this.this$0.getDescriptor().getAnnotations().findAnnotation(UtilKt.getJVM_STATIC()) == null || ((ClassDescriptor) this.this$0.getDescriptor().getContainingDeclaration()).isCompanionObject()) {
method = this.this$0.createStaticMethodCaller((Method) member);
} else {
method = this.this$0.createJvmStaticInObjectCaller((Method) member);
}
callerImpl = method;
} else {
callerImpl = null;
}
if (callerImpl == null) {
return null;
}
return InlineClassAwareCallerKt.createInlineClassAwareCallerIfNeeded(callerImpl, this.this$0.getDescriptor(), true);
}
}
Download file