f$b.smali

.class final Lcom/cmcm/safewallet/ui/giftcard/f$b;
.super Ljava/lang/Object;
.source "GiftCardRedeemPresent.kt"

# interfaces
.implements Lio/reactivex/aa;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/cmcm/safewallet/ui/giftcard/f;
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lio/reactivex/aa",
        "<",
        "Ljava/util/List",
        "<+",
        "Lcom/cmcm/safewallet/ui/exchange/data/b;",
        ">;>;"
    }
.end annotation


# static fields
.field public static final alx:Lcom/cmcm/safewallet/ui/giftcard/f$b;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    new-instance v0, Lcom/cmcm/safewallet/ui/giftcard/f$b;

    invoke-direct {v0}, Lcom/cmcm/safewallet/ui/giftcard/f$b;-><init>()V

    sput-object v0, Lcom/cmcm/safewallet/ui/giftcard/f$b;->alx:Lcom/cmcm/safewallet/ui/giftcard/f$b;

    return-void
.end method

.method constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final a(Lio/reactivex/y;)V
    .registers 6
    .param p1    # Lio/reactivex/y;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/y",
            "<",
            "Ljava/util/List",
            "<",
            "Lcom/cmcm/safewallet/ui/exchange/data/b;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    const-string v0, "emitter"

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

    .line 117
    invoke-static {}, Lcom/cmcm/safewallet/utils/as;->vi()Ljava/util/List;

    move-result-object v1

    .line 118
    if-eqz v1, :cond_31

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_31

    .line 119
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    .line 120
    :cond_15
    :goto_15
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_31

    .line 121
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cmcm/safewallet/ui/exchange/data/b;

    .line 122
    const-string v3, "next"

    invoke-static {v0, v3}, Lkotlin/jvm/internal/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/cmcm/safewallet/ui/exchange/data/b;->iB()I

    move-result v0

    const/4 v3, 0x1

    if-eq v0, v3, :cond_15

    .line 123
    invoke-interface {v2}, Ljava/util/Iterator;->remove()V

    goto :goto_15

    .line 127
    :cond_31
    if-eqz v1, :cond_40

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_40

    .line 128
    sget-object v0, Lcom/cmcm/safewallet/ui/giftcard/f$b$1;->aly:Lcom/cmcm/safewallet/ui/giftcard/f$b$1;

    check-cast v0, Ljava/util/Comparator;

    invoke-static {v1, v0}, Lkotlin/collections/k;->a(Ljava/util/List;Ljava/util/Comparator;)V

    .line 132
    :cond_40
    invoke-interface {p1, v1}, Lio/reactivex/y;->onSuccess(Ljava/lang/Object;)V

    .line 133
    return-void
.end method