a.smali

.class public final Lf/b/b/b/m1/j/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lf/b/b/b/m1/c;


# static fields
.field private static final c:Ljava/util/regex/Pattern;


# instance fields
.field private final a:Ljava/nio/charset/CharsetDecoder;

.field private final b:Ljava/nio/charset/CharsetDecoder;


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

    const-string v0, "(.+?)=\'(.*?)\';"

    const/16 v1, 0x20

    invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lf/b/b/b/m1/j/a;->c:Ljava/util/regex/Pattern;

    return-void
.end method

.method public constructor <init>()V
    .registers 2

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

    const-string v0, "UTF-8"

    invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v0

    invoke-virtual {v0}, Ljava/nio/charset/Charset;->newDecoder()Ljava/nio/charset/CharsetDecoder;

    move-result-object v0

    iput-object v0, p0, Lf/b/b/b/m1/j/a;->a:Ljava/nio/charset/CharsetDecoder;

    const-string v0, "ISO-8859-1"

    invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;

    move-result-object v0

    invoke-virtual {v0}, Ljava/nio/charset/Charset;->newDecoder()Ljava/nio/charset/CharsetDecoder;

    move-result-object v0

    iput-object v0, p0, Lf/b/b/b/m1/j/a;->b:Ljava/nio/charset/CharsetDecoder;

    return-void
.end method

.method private b(Ljava/nio/ByteBuffer;)Ljava/lang/String;
    .registers 4

    :try_start_0
    iget-object v0, p0, Lf/b/b/b/m1/j/a;->a:Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {v0, p1}, Ljava/nio/charset/CharsetDecoder;->decode(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/nio/CharBuffer;->toString()Ljava/lang/String;

    move-result-object v0
    :try_end_a
    .catch Ljava/nio/charset/CharacterCodingException; {:try_start_0 .. :try_end_a} :catch_1d
    .catchall {:try_start_0 .. :try_end_a} :catchall_13

    iget-object v1, p0, Lf/b/b/b/m1/j/a;->a:Ljava/nio/charset/CharsetDecoder;

    :goto_c
    invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;

    return-object v0

    :catchall_13
    move-exception v0

    iget-object v1, p0, Lf/b/b/b/m1/j/a;->a:Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;

    throw v0

    :catch_1d
    iget-object v0, p0, Lf/b/b/b/m1/j/a;->a:Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {v0}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;

    :try_start_25
    iget-object v0, p0, Lf/b/b/b/m1/j/a;->b:Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {v0, p1}, Ljava/nio/charset/CharsetDecoder;->decode(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/nio/CharBuffer;->toString()Ljava/lang/String;

    move-result-object v0
    :try_end_2f
    .catch Ljava/nio/charset/CharacterCodingException; {:try_start_25 .. :try_end_2f} :catch_3c
    .catchall {:try_start_25 .. :try_end_2f} :catchall_32

    :goto_2f
    iget-object v1, p0, Lf/b/b/b/m1/j/a;->b:Ljava/nio/charset/CharsetDecoder;

    goto :goto_c

    :catchall_32
    move-exception v0

    iget-object v1, p0, Lf/b/b/b/m1/j/a;->b:Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {v1}, Ljava/nio/charset/CharsetDecoder;->reset()Ljava/nio/charset/CharsetDecoder;

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;

    throw v0

    :catch_3c
    const/4 v0, 0x0

    goto :goto_2f
.end method


# virtual methods
.method public a(Lf/b/b/b/m1/e;)Lf/b/b/b/m1/a;
    .registers 10

    iget-object p1, p1, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;

    invoke-static {p1}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;

    check-cast p1, Ljava/nio/ByteBuffer;

    invoke-direct {p0, p1}, Lf/b/b/b/m1/j/a;->b(Ljava/nio/ByteBuffer;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I

    move-result v1

    new-array v1, v1, [B

    invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    const/4 p1, 0x1

    const/4 v2, 0x0

    const/4 v3, 0x0

    if-nez v0, :cond_28

    new-instance v0, Lf/b/b/b/m1/a;

    new-array p1, p1, [Lf/b/b/b/m1/a$b;

    new-instance v4, Lf/b/b/b/m1/j/c;

    invoke-direct {v4, v1, v3, v3}, Lf/b/b/b/m1/j/c;-><init>([BLjava/lang/String;Ljava/lang/String;)V

    aput-object v4, p1, v2

    invoke-direct {v0, p1}, Lf/b/b/b/m1/a;-><init>([Lf/b/b/b/m1/a$b;)V

    return-object v0

    :cond_28
    sget-object v4, Lf/b/b/b/m1/j/a;->c:Ljava/util/regex/Pattern;

    invoke-virtual {v4, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    move-object v4, v3

    const/4 v5, 0x0

    :goto_30
    invoke-virtual {v0, v5}, Ljava/util/regex/Matcher;->find(I)Z

    move-result v5

    if-eqz v5, :cond_5f

    invoke-virtual {v0, p1}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lf/b/b/b/s1/m0;->P0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x2

    invoke-virtual {v0, v6}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5}, Ljava/lang/String;->hashCode()I

    const-string v7, "streamurl"

    invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_59

    const-string v7, "streamtitle"

    invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_57

    goto :goto_5a

    :cond_57
    move-object v3, v6

    goto :goto_5a

    :cond_59
    move-object v4, v6

    :goto_5a
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I

    move-result v5

    goto :goto_30

    :cond_5f
    new-instance v0, Lf/b/b/b/m1/a;

    new-array p1, p1, [Lf/b/b/b/m1/a$b;

    new-instance v5, Lf/b/b/b/m1/j/c;

    invoke-direct {v5, v1, v3, v4}, Lf/b/b/b/m1/j/c;-><init>([BLjava/lang/String;Ljava/lang/String;)V

    aput-object v5, p1, v2

    invoke-direct {v0, p1}, Lf/b/b/b/m1/a;-><init>([Lf/b/b/b/m1/a$b;)V

    return-object v0
.end method