a$b.smali

.class final Lsg/bigo/apm/plugins/memoryinfo/c/a$b;
.super Lkotlin/f/b/p;
.source "SourceFile"

# interfaces
.implements Lkotlin/f/a/b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lsg/bigo/apm/plugins/memoryinfo/c/a;->a(Landroid/os/Debug$MemoryInfo;)I
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/f/b/p;",
        "Lkotlin/f/a/b<",
        "[I",
        "Ljava/lang/Integer;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/reflect/Method;

.field final synthetic b:Ljava/lang/reflect/Method;

.field final synthetic c:Landroid/os/Debug$MemoryInfo;


# direct methods
.method constructor <init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Landroid/os/Debug$MemoryInfo;)V
    .registers 4

    iput-object p1, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->a:Ljava/lang/reflect/Method;

    iput-object p2, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->b:Ljava/lang/reflect/Method;

    iput-object p3, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->c:Landroid/os/Debug$MemoryInfo;

    const/4 p1, 0x1

    invoke-direct {p0, p1}, Lkotlin/f/b/p;-><init>(I)V

    return-void
.end method


# virtual methods
.method public final synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 12

    .line 26
    check-cast p1, [I

    const-string v0, "others"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1366
    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_b
    if-ge v2, v0, :cond_53

    aget v4, p1, v2

    .line 1298
    iget-object v5, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->a:Ljava/lang/reflect/Method;

    iget-object v6, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->c:Landroid/os/Debug$MemoryInfo;

    const/4 v7, 0x1

    new-array v8, v7, [Ljava/lang/Object;

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v9

    aput-object v9, v8, v1

    invoke-virtual {v5, v6, v8}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    const-string v6, "null cannot be cast to non-null type kotlin.Int"

    if-eqz v5, :cond_4d

    check-cast v5, Ljava/lang/Integer;

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    iget-object v8, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->b:Ljava/lang/reflect/Method;

    iget-object v9, p0, Lsg/bigo/apm/plugins/memoryinfo/c/a$b;->c:Landroid/os/Debug$MemoryInfo;

    new-array v7, v7, [Ljava/lang/Object;

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v7, v1

    invoke-virtual {v8, v9, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_47

    check-cast v4, Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    add-int/2addr v5, v4

    add-int/2addr v3, v5

    add-int/lit8 v2, v2, 0x1

    goto :goto_b

    :cond_47
    new-instance p1, Lkotlin/TypeCastException;

    invoke-direct {p1, v6}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_4d
    new-instance p1, Lkotlin/TypeCastException;

    invoke-direct {p1, v6}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 26
    :cond_53
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    return-object p1
.end method