Rabbit-R1/switch port/smali/smali_classes3/kotlin/jvm/internal/AdaptedFunctionReference.smali

323 lines
7.2 KiB
Smali
Raw Normal View History

2024-05-21 21:08:36 +00:00
.class public Lkotlin/jvm/internal/AdaptedFunctionReference;
.super Ljava/lang/Object;
.source "AdaptedFunctionReference.java"
# interfaces
.implements Lkotlin/jvm/internal/FunctionBase;
.implements Ljava/io/Serializable;
# instance fields
.field private final arity:I
.field private final flags:I
.field private final isTopLevel:Z
.field private final name:Ljava/lang/String;
.field private final owner:Ljava/lang/Class;
.field protected final receiver:Ljava/lang/Object;
.field private final signature:Ljava/lang/String;
# direct methods
.method public constructor <init>(ILjava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
.locals 7
.line 39
sget-object v2, Lkotlin/jvm/internal/CallableReference;->NO_RECEIVER:Ljava/lang/Object;
move-object v0, p0
move v1, p1
move-object v3, p2
move-object v4, p3
move-object v5, p4
move v6, p5
invoke-direct/range {v0 .. v6}, Lkotlin/jvm/internal/AdaptedFunctionReference;-><init>(ILjava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
return-void
.end method
.method public constructor <init>(ILjava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
.locals 0
.line 42
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->receiver:Ljava/lang/Object;
iput-object p3, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->owner:Ljava/lang/Class;
iput-object p4, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->name:Ljava/lang/String;
iput-object p5, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->signature:Ljava/lang/String;
and-int/lit8 p2, p6, 0x1
const/4 p3, 0x1
if-ne p2, p3, :cond_0
move p2, p3
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
iput-boolean p2, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->isTopLevel:Z
iput p1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->arity:I
shr-int/lit8 p1, p6, 0x1
iput p1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->flags:I
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
.line 65
:cond_0
instance-of v1, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
.line 66
:cond_1
check-cast p1, Lkotlin/jvm/internal/AdaptedFunctionReference;
iget-boolean v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->isTopLevel:Z
.line 67
iget-boolean v3, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->isTopLevel:Z
if-ne v1, v3, :cond_2
iget v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->arity:I
iget v3, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->arity:I
if-ne v1, v3, :cond_2
iget v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->flags:I
iget v3, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->flags:I
if-ne v1, v3, :cond_2
iget-object v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->receiver:Ljava/lang/Object;
iget-object v3, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->receiver:Ljava/lang/Object;
.line 70
invoke-static {v1, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
iget-object v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->owner:Ljava/lang/Class;
iget-object v3, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->owner:Ljava/lang/Class;
.line 71
invoke-static {v1, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
iget-object v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->name:Ljava/lang/String;
iget-object v3, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->name:Ljava/lang/String;
.line 72
invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
iget-object p0, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->signature:Ljava/lang/String;
iget-object p1, p1, Lkotlin/jvm/internal/AdaptedFunctionReference;->signature:Ljava/lang/String;
.line 73
invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
goto :goto_0
:cond_2
move v0, v2
:goto_0
return v0
.end method
.method public getArity()I
.locals 0
iget p0, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->arity:I
return p0
.end method
.method public getOwner()Lkotlin/reflect/KDeclarationContainer;
.locals 1
iget-object v0, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->owner:Ljava/lang/Class;
if-nez v0, :cond_0
const/4 p0, 0x0
goto :goto_0
:cond_0
iget-boolean p0, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->isTopLevel:Z
if-eqz p0, :cond_1
.line 59
invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->getOrCreateKotlinPackage(Ljava/lang/Class;)Lkotlin/reflect/KDeclarationContainer;
move-result-object p0
goto :goto_0
:cond_1
invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass;
move-result-object p0
:goto_0
return-object p0
.end method
.method public hashCode()I
.locals 3
iget-object v0, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->receiver:Ljava/lang/Object;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 78
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_0
:cond_0
move v0, v1
:goto_0
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->owner:Ljava/lang/Class;
if-eqz v2, :cond_1
.line 79
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v1
:cond_1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->name:Ljava/lang/String;
.line 80
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->signature:Ljava/lang/String;
.line 81
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->isTopLevel:Z
if-eqz v1, :cond_2
const/16 v1, 0x4cf
goto :goto_1
:cond_2
const/16 v1, 0x4d5
:goto_1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->arity:I
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget p0, p0, Lkotlin/jvm/internal/AdaptedFunctionReference;->flags:I
add-int/2addr v0, p0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 0
.line 90
invoke-static {p0}, Lkotlin/jvm/internal/Reflection;->renderLambdaToString(Lkotlin/jvm/internal/FunctionBase;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method