PkEntryPresenter.smali

.class public Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;
.super Lsg/bigo/core/mvp/presenter/BasePresenterImpl;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/live/support64/component/pk/presenter/b;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lsg/bigo/core/mvp/presenter/BasePresenterImpl<",
        "Lsg/bigo/live/support64/component/pk/view/e;",
        "Lsg/bigo/live/support64/component/pk/model/b;",
        ">;",
        "Lsg/bigo/live/support64/component/pk/presenter/b;"
    }
.end annotation


# direct methods
.method public constructor <init>(Lsg/bigo/live/support64/component/pk/view/e;)V
    .registers 3

    .line 30
    invoke-direct {p0, p1}, Lsg/bigo/core/mvp/presenter/BasePresenterImpl;-><init>(Lsg/bigo/core/mvp/a/a;)V

    .line 31
    new-instance p1, Lsg/bigo/live/support64/component/pk/model/PkEntryModel;

    invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->getLifecycle()Landroidx/lifecycle/Lifecycle;

    move-result-object v0

    invoke-direct {p1, v0}, Lsg/bigo/live/support64/component/pk/model/PkEntryModel;-><init>(Landroidx/lifecycle/Lifecycle;)V

    iput-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->b:Lsg/bigo/core/mvp/mode/a;

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .registers 3

    .line 90
    iget-object v0, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    if-eqz v0, :cond_b

    .line 91
    iget-object v0, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    check-cast v0, Lsg/bigo/live/support64/component/pk/view/e;

    invoke-interface {v0, p1}, Lsg/bigo/live/support64/component/pk/view/e;->a(Ljava/lang/String;)V

    :cond_b
    return-void
.end method

.method private synthetic a(Ljava/lang/Throwable;)V
    .registers 4

    .line 81
    instance-of p1, p1, Lsg/bigo/live/support64/bus/proto/exception/ProtocolTimeOutException;

    if-eqz p1, :cond_19

    const/4 p1, 0x1

    const-string v0, "Revenue_Vs"

    const-string v1, "[PkEntryPresenter][acquireHasPermission] timeout"

    .line 1079
    invoke-static {v0, v1, p1}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)V

    const p1, 0x7d0c001e

    const/4 v0, 0x0

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

    .line 83
    invoke-static {p1, v0}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    :cond_19
    return-void
.end method

.method private synthetic a(ZILsg/bigo/live/support64/bus/proto/d/b;)V
    .registers 8

    .line 50
    invoke-static {p3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "acquireHasPermission res: "

    invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "PKEntry"

    invoke-static {v1, v0}, Lsg/bigo/log/TraceLog;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 51
    iget v0, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    const/4 v1, 0x4

    const/4 v2, 0x5

    if-nez v0, :cond_3f

    if-eqz p1, :cond_23

    .line 53
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    if-eqz p1, :cond_c8

    .line 54
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    check-cast p1, Lsg/bigo/live/support64/component/pk/view/e;

    invoke-interface {p1}, Lsg/bigo/live/support64/component/pk/view/e;->h()V

    return-void

    :cond_23
    if-ne p2, v2, :cond_31

    .line 57
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    if-eqz p1, :cond_c8

    .line 58
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    check-cast p1, Lsg/bigo/live/support64/component/pk/view/e;

    invoke-interface {p1}, Lsg/bigo/live/support64/component/pk/view/e;->f()V

    return-void

    :cond_31
    if-ne p2, v1, :cond_c8

    .line 61
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    if-eqz p1, :cond_c8

    .line 62
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    check-cast p1, Lsg/bigo/live/support64/component/pk/view/e;

    invoke-interface {p1}, Lsg/bigo/live/support64/component/pk/view/e;->g()V

    return-void

    .line 65
    :cond_3f
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    const/4 p2, 0x1

    const/4 v0, 0x0

    if-ne p1, p2, :cond_52

    const p1, 0x7d0c00c0

    new-array p2, v0, [Ljava/lang/Object;

    .line 66
    invoke-static {p1, p2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    return-void

    .line 67
    :cond_52
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    const/4 v3, 0x2

    if-ne p1, v3, :cond_68

    const p1, 0x7d0c00be

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

    .line 68
    iget-object p3, p3, Lsg/bigo/live/support64/bus/proto/d/b;->d:Ljava/lang/String;

    aput-object p3, p2, v0

    invoke-static {p1, p2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    return-void

    .line 69
    :cond_68
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    const/4 v3, 0x3

    if-ne p1, v3, :cond_7e

    const p1, 0x7d0c00bf

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

    .line 70
    iget-object p3, p3, Lsg/bigo/live/support64/bus/proto/d/b;->d:Ljava/lang/String;

    aput-object p3, p2, v0

    invoke-static {p1, p2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    return-void

    .line 71
    :cond_7e
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    if-ne p1, v1, :cond_93

    const p1, 0x7d0c00c1

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

    .line 72
    iget-object p3, p3, Lsg/bigo/live/support64/bus/proto/d/b;->d:Ljava/lang/String;

    aput-object p3, p2, v0

    invoke-static {p1, p2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    return-void

    .line 73
    :cond_93
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    if-ne p1, v2, :cond_a4

    const p1, 0x7d0c001e

    new-array p2, v0, [Ljava/lang/Object;

    .line 74
    invoke-static {p1, p2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    return-void

    .line 75
    :cond_a4
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    const/4 p2, 0x6

    if-ne p1, p2, :cond_b6

    const p1, 0x7d0c0154

    new-array p2, v0, [Ljava/lang/Object;

    .line 76
    invoke-static {p1, p2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/String;)V

    return-void

    .line 77
    :cond_b6
    iget p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->c:I

    const/4 p2, 0x7

    if-ne p1, p2, :cond_c8

    .line 78
    iget-object p1, p3, Lsg/bigo/live/support64/bus/proto/d/b;->e:Ljava/util/Map;

    .line 1096
    iget-object p2, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    if-eqz p2, :cond_c8

    .line 1097
    iget-object p2, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a:Lsg/bigo/core/mvp/a/a;

    check-cast p2, Lsg/bigo/live/support64/component/pk/view/e;

    invoke-interface {p2, p1}, Lsg/bigo/live/support64/component/pk/view/e;->a(Ljava/util/Map;)V

    :cond_c8
    return-void
.end method

.method public static synthetic lambda$_O20Jw_QxupVLUbixeYDvM2HR_I(Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;ZILsg/bigo/live/support64/bus/proto/d/b;)V
    .registers 4

    invoke-direct {p0, p1, p2, p3}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(ZILsg/bigo/live/support64/bus/proto/d/b;)V

    return-void
.end method

.method public static synthetic lambda$tPF2EvA9zUHxfjumXSTdTeZfH3M(Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;Ljava/lang/Throwable;)V
    .registers 2

    invoke-direct {p0, p1}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->a(Ljava/lang/Throwable;)V

    return-void
.end method


# virtual methods
.method public final a(Z)V
    .registers 5

    .line 37
    iget-object v0, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->b:Lsg/bigo/core/mvp/mode/a;

    if-eqz v0, :cond_49

    .line 38
    invoke-static {p1}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v0

    const-string v1, "[PkEntryPresenter][acquireHasPermission] isStart:"

    invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "Revenue_Vs"

    .line 1071
    invoke-static {v1, v0}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 39
    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object v0

    invoke-virtual {v0}, Lsg/bigo/live/support64/o;->E()I

    move-result v0

    const/4 v1, 0x5

    const/4 v2, 0x0

    if-ne v0, v1, :cond_20

    goto :goto_24

    :cond_20
    const/4 v1, 0x4

    if-ne v0, v1, :cond_24

    const/4 v2, 0x1

    .line 46
    :cond_24
    :goto_24
    iget-object v1, p0, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;->b:Lsg/bigo/core/mvp/mode/a;

    check-cast v1, Lsg/bigo/live/support64/component/pk/model/b;

    invoke-interface {v1, v2}, Lsg/bigo/live/support64/component/pk/model/b;->a(I)Lrx/c;

    move-result-object v1

    .line 47
    invoke-static {}, Lrx/g/a;->c()Lrx/f;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrx/c;->b(Lrx/f;)Lrx/c;

    move-result-object v1

    .line 48
    invoke-static {}, Lrx/a/b/a;->a()Lrx/f;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrx/c;->a(Lrx/f;)Lrx/c;

    move-result-object v1

    new-instance v2, Lsg/bigo/live/support64/component/pk/presenter/-$$Lambda$PkEntryPresenter$_O20Jw_QxupVLUbixeYDvM2HR_I;

    invoke-direct {v2, p0, p1, v0}, Lsg/bigo/live/support64/component/pk/presenter/-$$Lambda$PkEntryPresenter$_O20Jw_QxupVLUbixeYDvM2HR_I;-><init>(Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;ZI)V

    new-instance p1, Lsg/bigo/live/support64/component/pk/presenter/-$$Lambda$PkEntryPresenter$tPF2EvA9zUHxfjumXSTdTeZfH3M;

    invoke-direct {p1, p0}, Lsg/bigo/live/support64/component/pk/presenter/-$$Lambda$PkEntryPresenter$tPF2EvA9zUHxfjumXSTdTeZfH3M;-><init>(Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;)V

    .line 49
    invoke-virtual {v1, v2, p1}, Lrx/c;->a(Lrx/b/b;Lrx/b/b;)Lrx/j;

    :cond_49
    return-void
.end method