.class public final Lz5/wu1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/zt1;


# instance fields
.field public final a:Lz5/j7;

.field public b:Lz5/bu1;

.field public c:I

.field public d:I

.field public e:I

.field public f:J

.field public g:Lz5/k6;

.field public h:Lz5/au1;

.field public i:Lz5/yu1;

.field public j:Lz5/yv1;


# direct methods
.method public constructor <init>()V
    .registers 4

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

    new-instance v0, Lz5/j7;

    const/4 v1, 0x6

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Lz5/j7;-><init>(II)V

    iput-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lz5/wu1;->f:J

    return-void
.end method


# virtual methods
.method public final a(Lz5/au1;)I
    .registers 5

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lz5/j7;->i(I)V

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    .line 1
    iget-object v0, v0, Lz5/j7;->b:[B

    .line 2
    check-cast p1, Lz5/vt1;

    const/4 v2, 0x0

    invoke-virtual {p1, v0, v2, v1, v2}, Lz5/vt1;->k([BIIZ)Z

    iget-object p1, p0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {p1}, Lz5/j7;->B()I

    move-result p1

    return p1
.end method

.method public final b()V
    .registers 7

    const/4 v0, 0x0

    new-array v0, v0, [Lz5/t4;

    invoke-virtual {p0, v0}, Lz5/wu1;->g([Lz5/t4;)V

    iget-object v0, p0, Lz5/wu1;->b:Lz5/bu1;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-interface {v0}, Lz5/bu1;->zzC()V

    iget-object v0, p0, Lz5/wu1;->b:Lz5/bu1;

    new-instance v1, Lz5/eu1;

    const-wide v2, -0x7fffffffffffffffL    # -4.9E-324

    const-wide/16 v4, 0x0

    invoke-direct {v1, v2, v3, v4, v5}, Lz5/eu1;-><init>(JJ)V

    invoke-interface {v0, v1}, Lz5/bu1;->i(Lz5/lu1;)V

    const/4 v0, 0x6

    iput v0, p0, Lz5/wu1;->c:I

    return-void
.end method

.method public final c(Lz5/au1;)Z
    .registers 8

    invoke-virtual {p0, p1}, Lz5/wu1;->a(Lz5/au1;)I

    move-result v0

    const/4 v1, 0x0

    const v2, 0xffd8

    if-eq v0, v2, :cond_b

    return v1

    :cond_b
    invoke-virtual {p0, p1}, Lz5/wu1;->a(Lz5/au1;)I

    move-result v0

    iput v0, p0, Lz5/wu1;->d:I

    const v2, 0xffe0

    const/4 v3, 0x2

    if-ne v0, v2, :cond_37

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {v0, v3}, Lz5/j7;->i(I)V

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    .line 1
    iget-object v0, v0, Lz5/j7;->b:[B

    .line 2
    move-object v2, p1

    check-cast v2, Lz5/vt1;

    invoke-virtual {v2, v0, v1, v3, v1}, Lz5/vt1;->k([BIIZ)Z

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {v0}, Lz5/j7;->B()I

    move-result v0

    add-int/lit8 v0, v0, -0x2

    invoke-virtual {v2, v0, v1}, Lz5/vt1;->i(IZ)Z

    invoke-virtual {p0, p1}, Lz5/wu1;->a(Lz5/au1;)I

    move-result v0

    iput v0, p0, Lz5/wu1;->d:I

    :cond_37
    const v2, 0xffe1

    if-ne v0, v2, :cond_65

    check-cast p1, Lz5/vt1;

    invoke-virtual {p1, v3, v1}, Lz5/vt1;->i(IZ)Z

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    const/4 v2, 0x6

    invoke-virtual {v0, v2}, Lz5/j7;->i(I)V

    iget-object v0, p0, Lz5/wu1;->a:Lz5/j7;

    .line 3
    iget-object v0, v0, Lz5/j7;->b:[B

    .line 4
    invoke-virtual {p1, v0, v1, v2, v1}, Lz5/vt1;->k([BIIZ)Z

    iget-object p1, p0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {p1}, Lz5/j7;->H()J

    move-result-wide v2

    const-wide/32 v4, 0x45786966    # 5.758429993E-315

    cmp-long p1, v2, v4

    if-nez p1, :cond_65

    iget-object p1, p0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {p1}, Lz5/j7;->B()I

    move-result p1

    if-nez p1, :cond_65

    const/4 p1, 0x1

    return p1

    :cond_65
    return v1
.end method

.method public final d(Lz5/au1;Lz5/p8;)I
    .registers 36

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    iget v3, v0, Lz5/wu1;->c:I

    const/4 v4, 0x0

    const/4 v5, 0x1

    const/4 v6, 0x4

    const/4 v7, 0x2

    const-wide/16 v8, -0x1

    if-eqz v3, :cond_299

    if-eq v3, v5, :cond_27e

    const/4 v10, -0x1

    if-eq v3, v7, :cond_a9

    const/4 v7, 0x5

    if-eq v3, v6, :cond_4c

    if-eq v3, v7, :cond_24

    const/4 v1, 0x6

    if-ne v3, v1, :cond_1e

    return v10

    :cond_1e
    new-instance v1, Ljava/lang/IllegalStateException;

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

    throw v1

    :cond_24
    iget-object v3, v0, Lz5/wu1;->i:Lz5/yu1;

    if-eqz v3, :cond_2c

    iget-object v3, v0, Lz5/wu1;->h:Lz5/au1;

    if-eq v1, v3, :cond_37

    :cond_2c
    iput-object v1, v0, Lz5/wu1;->h:Lz5/au1;

    new-instance v3, Lz5/yu1;

    iget-wide v6, v0, Lz5/wu1;->f:J

    invoke-direct {v3, v1, v6, v7}, Lz5/yu1;-><init>(Lz5/au1;J)V

    iput-object v3, v0, Lz5/wu1;->i:Lz5/yu1;

    :cond_37
    iget-object v1, v0, Lz5/wu1;->j:Lz5/yv1;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v3, v0, Lz5/wu1;->i:Lz5/yu1;

    invoke-virtual {v1, v3, v2}, Lz5/yv1;->d(Lz5/au1;Lz5/p8;)I

    move-result v1

    if-ne v1, v5, :cond_4b

    iget-wide v3, v2, Lz5/p8;->a:J

    iget-wide v5, v0, Lz5/wu1;->f:J

    add-long/2addr v3, v5

    iput-wide v3, v2, Lz5/p8;->a:J

    :cond_4b
    return v1

    :cond_4c
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzn()J

    move-result-wide v8

    iget-wide v10, v0, Lz5/wu1;->f:J

    cmp-long v3, v8, v10

    if-nez v3, :cond_a6

    iget-object v2, v0, Lz5/wu1;->a:Lz5/j7;

    .line 1
    iget-object v2, v2, Lz5/j7;->b:[B

    .line 2
    invoke-interface {v1, v2, v4, v5, v5}, Lz5/au1;->k([BIIZ)Z

    move-result v2

    if-nez v2, :cond_61

    goto :goto_a2

    :cond_61
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzl()V

    iget-object v2, v0, Lz5/wu1;->j:Lz5/yv1;

    if-nez v2, :cond_6f

    new-instance v2, Lz5/yv1;

    invoke-direct {v2, v4}, Lz5/yv1;-><init>(I)V

    iput-object v2, v0, Lz5/wu1;->j:Lz5/yv1;

    :cond_6f
    new-instance v2, Lz5/yu1;

    iget-wide v8, v0, Lz5/wu1;->f:J

    invoke-direct {v2, v1, v8, v9}, Lz5/yu1;-><init>(Lz5/au1;J)V

    iput-object v2, v0, Lz5/wu1;->i:Lz5/yu1;

    iget-object v1, v0, Lz5/wu1;->j:Lz5/yv1;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 3
    invoke-static {v2, v4, v4}, Lz5/zv1;->a(Lz5/au1;ZZ)Z

    move-result v1

    if-eqz v1, :cond_a2

    .line 4
    iget-object v1, v0, Lz5/wu1;->j:Lz5/yv1;

    new-instance v2, Lz5/yu1;

    iget-wide v8, v0, Lz5/wu1;->f:J

    iget-object v3, v0, Lz5/wu1;->b:Lz5/bu1;

    invoke-static {v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-direct {v2, v8, v9, v3}, Lz5/yu1;-><init>(JLz5/bu1;)V

    .line 5
    iput-object v2, v1, Lz5/yv1;->p:Lz5/bu1;

    new-array v1, v5, [Lz5/t4;

    .line 6
    iget-object v2, v0, Lz5/wu1;->g:Lz5/k6;

    invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    aput-object v2, v1, v4

    invoke-virtual {v0, v1}, Lz5/wu1;->g([Lz5/t4;)V

    iput v7, v0, Lz5/wu1;->c:I

    goto :goto_a5

    :cond_a2
    :goto_a2
    invoke-virtual/range {p0 .. p0}, Lz5/wu1;->b()V

    :goto_a5
    return v4

    :cond_a6
    iput-wide v10, v2, Lz5/p8;->a:J

    return v5

    :cond_a9
    iget v2, v0, Lz5/wu1;->d:I

    const v3, 0xffe1

    if-ne v2, v3, :cond_274

    iget v2, v0, Lz5/wu1;->e:I

    .line 7
    new-array v3, v2, [B

    .line 8
    move-object v11, v1

    check-cast v11, Lz5/vt1;

    invoke-virtual {v11, v3, v4, v2, v4}, Lz5/vt1;->j([BIIZ)Z

    iget-object v11, v0, Lz5/wu1;->g:Lz5/k6;

    if-nez v11, :cond_27b

    add-int/lit8 v11, v2, 0x0

    const/4 v12, 0x0

    if-eqz v11, :cond_dd

    move v11, v4

    :goto_c4
    if-ge v11, v2, :cond_cd

    .line 9
    aget-byte v13, v3, v11

    if-eqz v13, :cond_cd

    add-int/lit8 v11, v11, 0x1

    goto :goto_c4

    :cond_cd
    add-int/lit8 v13, v11, 0x0

    sget v14, Lz5/r7;->a:I

    .line 10
    new-instance v14, Ljava/lang/String;

    sget-object v15, Lz5/m91;->b:Ljava/nio/charset/Charset;

    invoke-direct {v14, v3, v4, v13, v15}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V

    if-ge v11, v2, :cond_df

    add-int/lit8 v11, v11, 0x1

    goto :goto_df

    :cond_dd
    move v11, v4

    move-object v14, v12

    :cond_df
    :goto_df
    const-string v13, "http://ns.adobe.com/xap/1.0/"

    .line 11
    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_27b

    sub-int v13, v2, v11

    if-eqz v13, :cond_100

    move v13, v11

    :goto_ec
    if-ge v13, v2, :cond_f5

    .line 12
    aget-byte v14, v3, v13

    if-eqz v14, :cond_f5

    add-int/lit8 v13, v13, 0x1

    goto :goto_ec

    :cond_f5
    sub-int/2addr v13, v11

    sget v2, Lz5/r7;->a:I

    .line 13
    new-instance v2, Ljava/lang/String;

    sget-object v14, Lz5/m91;->b:Ljava/nio/charset/Charset;

    invoke-direct {v2, v3, v11, v13, v14}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V

    goto :goto_101

    :cond_100
    move-object v2, v12

    :goto_101
    if-eqz v2, :cond_27b

    .line 14
    invoke-interface/range {p1 .. p1}, Lz5/au1;->zzo()J

    move-result-wide v13

    cmp-long v1, v13, v8

    if-nez v1, :cond_10d

    goto/16 :goto_26b

    :cond_10d
    const-string v1, "x:xmpmeta"

    .line 15
    :try_start_10f
    invoke-static {}, Lorg/xmlpull/v1/XmlPullParserFactory;->newInstance()Lorg/xmlpull/v1/XmlPullParserFactory;

    move-result-object v3

    invoke-virtual {v3}, Lorg/xmlpull/v1/XmlPullParserFactory;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v3

    new-instance v11, Ljava/io/StringReader;

    invoke-direct {v11, v2}, Ljava/io/StringReader;-><init>(Ljava/lang/String;)V

    invoke-interface {v3, v11}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/Reader;)V

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    invoke-static {v3, v1}, Lcom/google/android/gms/internal/ads/p8;->f(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1e3

    sget-object v2, Lcom/google/android/gms/internal/ads/q6;->s:Lz5/v91;

    .line 16
    sget-object v2, Lcom/google/android/gms/internal/ads/b7;->v:Lcom/google/android/gms/internal/ads/q6;

    const-wide v17, -0x7fffffffffffffffL    # -4.9E-324

    .line 17
    :goto_131
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    const-string v11, "rdf:Description"

    invoke-static {v3, v11}, Lcom/google/android/gms/internal/ads/p8;->f(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_1ab

    sget-object v2, Lz5/av1;->a:[Ljava/lang/String;

    move v11, v4

    :goto_13f
    if-ge v11, v6, :cond_1f1

    aget-object v15, v2, v11

    invoke-static {v3, v15}, Lcom/google/android/gms/internal/ads/p8;->g(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    if-eqz v15, :cond_1a8

    invoke-static {v15}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    if-ne v2, v5, :cond_1f1

    sget-object v2, Lz5/av1;->b:[Ljava/lang/String;

    move v11, v4

    :goto_152
    if-ge v11, v6, :cond_16b

    aget-object v15, v2, v11

    invoke-static {v3, v15}, Lcom/google/android/gms/internal/ads/p8;->g(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    if-eqz v15, :cond_168

    invoke-static {v15}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v15

    cmp-long v2, v15, v8

    if-nez v2, :cond_165

    goto :goto_16b

    :cond_165
    move-wide/from16 v17, v15

    goto :goto_170

    :cond_168
    add-int/lit8 v11, v11, 0x1

    goto :goto_152

    :cond_16b
    :goto_16b
    const-wide v17, -0x7fffffffffffffffL    # -4.9E-324

    :goto_170
    sget-object v2, Lz5/av1;->c:[Ljava/lang/String;

    move v11, v4

    :goto_173
    if-ge v11, v7, :cond_1a5

    aget-object v15, v2, v11

    invoke-static {v3, v15}, Lcom/google/android/gms/internal/ads/p8;->g(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    if-eqz v15, :cond_1a2

    invoke-static {v15}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v22

    new-instance v2, Lz5/xu1;

    const-string v25, "image/jpeg"

    const-string v26, "Primary"

    const-wide/16 v27, 0x0

    const-wide/16 v29, 0x0

    move-object/from16 v24, v2

    invoke-direct/range {v24 .. v30}, Lz5/xu1;-><init>(Ljava/lang/String;Ljava/lang/String;JJ)V

    new-instance v11, Lz5/xu1;

    const-string v20, "video/mp4"

    const-string v21, "MotionPhoto"

    const-wide/16 v24, 0x0

    move-object/from16 v19, v11

    invoke-direct/range {v19 .. v25}, Lz5/xu1;-><init>(Ljava/lang/String;Ljava/lang/String;JJ)V

    invoke-static {v2, v11}, Lcom/google/android/gms/internal/ads/q6;->P(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/android/gms/internal/ads/q6;

    move-result-object v2

    goto :goto_1c8

    :cond_1a2
    add-int/lit8 v11, v11, 0x1

    goto :goto_173

    .line 18
    :cond_1a5
    sget-object v2, Lcom/google/android/gms/internal/ads/b7;->v:Lcom/google/android/gms/internal/ads/q6;

    goto :goto_1c8

    :cond_1a8
    add-int/lit8 v11, v11, 0x1

    goto :goto_13f

    :cond_1ab
    const-string v11, "Container:Directory"

    .line 19
    invoke-static {v3, v11}, Lcom/google/android/gms/internal/ads/p8;->f(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_1b8

    const-string v2, "Container"

    const-string v11, "Item"

    goto :goto_1c4

    :cond_1b8
    const-string v11, "GContainer:Directory"

    invoke-static {v3, v11}, Lcom/google/android/gms/internal/ads/p8;->f(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_1c8

    const-string v2, "GContainer"

    const-string v11, "GContainerItem"

    :goto_1c4
    invoke-static {v3, v2, v11}, Lz5/av1;->a(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;Ljava/lang/String;)Lcom/google/android/gms/internal/ads/q6;

    move-result-object v2

    :cond_1c8
    :goto_1c8
    move-wide/from16 v5, v17

    invoke-static {v3, v1}, Lcom/google/android/gms/internal/ads/p8;->d(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)Z

    move-result v16

    if-eqz v16, :cond_1dd

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

    move-result v1

    if-eqz v1, :cond_1d7

    goto :goto_1f1

    :cond_1d7
    new-instance v1, Lz5/yu1;

    invoke-direct {v1, v5, v6, v2}, Lz5/yu1;-><init>(JLjava/util/List;)V

    goto :goto_1f2

    :cond_1dd
    move-wide/from16 v17, v5

    const/4 v5, 0x1

    const/4 v6, 0x4

    goto/16 :goto_131

    :cond_1e3
    const-string v1, "Couldn\'t find xmp metadata"

    invoke-static {v1, v12}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object v1

    throw v1
    :try_end_1ea
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_10f .. :try_end_1ea} :catch_1ea
    .catch Lz5/r3; {:try_start_10f .. :try_end_1ea} :catch_1ea
    .catch Ljava/lang/NumberFormatException; {:try_start_10f .. :try_end_1ea} :catch_1ea

    :catch_1ea
    const-string v1, "MotionPhotoXmpParser"

    const-string v2, "Ignoring unexpected XMP metadata"

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1f1
    :goto_1f1
    move-object v1, v12

    :goto_1f2
    if-nez v1, :cond_1f6

    goto/16 :goto_26b

    .line 20
    :cond_1f6
    iget-object v2, v1, Lz5/yu1;->r:Ljava/lang/Object;

    check-cast v2, Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v2, v7, :cond_202

    goto/16 :goto_26b

    :cond_202
    iget-object v2, v1, Lz5/yu1;->r:Ljava/lang/Object;

    check-cast v2, Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    add-int/2addr v2, v10

    move v3, v4

    move-wide/from16 v16, v8

    move-wide/from16 v18, v16

    move-wide/from16 v22, v18

    move-wide/from16 v24, v22

    :goto_214
    if-ltz v2, :cond_250

    iget-object v5, v1, Lz5/yu1;->r:Ljava/lang/Object;

    check-cast v5, Ljava/util/List;

    invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lz5/xu1;

    iget-object v6, v5, Lz5/xu1;->a:Ljava/lang/String;

    const-string v7, "video/mp4"

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

    move-result v6

    or-int/2addr v3, v6

    if-nez v2, :cond_231

    iget-wide v5, v5, Lz5/xu1;->c:J

    sub-long/2addr v13, v5

    const-wide/16 v5, 0x0

    goto :goto_235

    :cond_231
    iget-wide v5, v5, Lz5/xu1;->b:J

    sub-long v5, v13, v5

    :goto_235
    move-wide/from16 v31, v5

    move-wide v5, v13

    move-wide/from16 v13, v31

    if-eqz v3, :cond_245

    cmp-long v7, v13, v5

    if-eqz v7, :cond_245

    sub-long v24, v5, v13

    move v3, v4

    move-wide/from16 v22, v13

    :cond_245
    if-nez v2, :cond_249

    move-wide/from16 v18, v5

    :cond_249
    if-nez v2, :cond_24d

    move-wide/from16 v16, v13

    :cond_24d
    add-int/lit8 v2, v2, -0x1

    goto :goto_214

    :cond_250
    cmp-long v2, v22, v8

    if-eqz v2, :cond_26b

    cmp-long v2, v24, v8

    if-eqz v2, :cond_26b

    cmp-long v2, v16, v8

    if-eqz v2, :cond_26b

    cmp-long v2, v18, v8

    if-nez v2, :cond_261

    goto :goto_26b

    :cond_261
    new-instance v12, Lz5/k6;

    iget-wide v1, v1, Lz5/yu1;->s:J

    move-object v15, v12

    move-wide/from16 v20, v1

    invoke-direct/range {v15 .. v25}, Lz5/k6;-><init>(JJJJJ)V

    :cond_26b
    :goto_26b
    iput-object v12, v0, Lz5/wu1;->g:Lz5/k6;

    if-eqz v12, :cond_27b

    iget-wide v1, v12, Lz5/k6;->u:J

    iput-wide v1, v0, Lz5/wu1;->f:J

    goto :goto_27b

    :cond_274
    iget v2, v0, Lz5/wu1;->e:I

    check-cast v1, Lz5/vt1;

    invoke-virtual {v1, v2, v4}, Lz5/vt1;->c(IZ)Z

    :cond_27b
    :goto_27b
    iput v4, v0, Lz5/wu1;->c:I

    return v4

    :cond_27e
    iget-object v2, v0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {v2, v7}, Lz5/j7;->i(I)V

    iget-object v2, v0, Lz5/wu1;->a:Lz5/j7;

    .line 21
    iget-object v2, v2, Lz5/j7;->b:[B

    .line 22
    check-cast v1, Lz5/vt1;

    invoke-virtual {v1, v2, v4, v7, v4}, Lz5/vt1;->j([BIIZ)Z

    iget-object v1, v0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {v1}, Lz5/j7;->B()I

    move-result v1

    add-int/lit8 v1, v1, -0x2

    iput v1, v0, Lz5/wu1;->e:I

    iput v7, v0, Lz5/wu1;->c:I

    return v4

    :cond_299
    iget-object v2, v0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {v2, v7}, Lz5/j7;->i(I)V

    iget-object v2, v0, Lz5/wu1;->a:Lz5/j7;

    .line 23
    iget-object v2, v2, Lz5/j7;->b:[B

    .line 24
    check-cast v1, Lz5/vt1;

    invoke-virtual {v1, v2, v4, v7, v4}, Lz5/vt1;->j([BIIZ)Z

    iget-object v1, v0, Lz5/wu1;->a:Lz5/j7;

    invoke-virtual {v1}, Lz5/j7;->B()I

    move-result v1

    iput v1, v0, Lz5/wu1;->d:I

    const v2, 0xffda

    if-ne v1, v2, :cond_2c2

    iget-wide v1, v0, Lz5/wu1;->f:J

    cmp-long v1, v1, v8

    if-eqz v1, :cond_2be

    const/4 v1, 0x4

    :goto_2bb
    iput v1, v0, Lz5/wu1;->c:I

    goto :goto_2d3

    :cond_2be
    invoke-virtual/range {p0 .. p0}, Lz5/wu1;->b()V

    goto :goto_2d3

    :cond_2c2
    const v2, 0xffd0

    if-lt v1, v2, :cond_2cc

    const v2, 0xffd9

    if-le v1, v2, :cond_2d3

    :cond_2cc
    const v2, 0xff01

    if-eq v1, v2, :cond_2d3

    const/4 v1, 0x1

    goto :goto_2bb

    :cond_2d3
    :goto_2d3
    return v4
.end method

.method public final e(Lz5/bu1;)V
    .registers 2

    iput-object p1, p0, Lz5/wu1;->b:Lz5/bu1;

    return-void
.end method

.method public final f(JJ)V
    .registers 7

    const-wide/16 v0, 0x0

    cmp-long v0, p1, v0

    if-nez v0, :cond_d

    const/4 p1, 0x0

    iput p1, p0, Lz5/wu1;->c:I

    const/4 p1, 0x0

    iput-object p1, p0, Lz5/wu1;->j:Lz5/yv1;

    return-void

    :cond_d
    iget v0, p0, Lz5/wu1;->c:I

    const/4 v1, 0x5

    if-ne v0, v1, :cond_1a

    iget-object v0, p0, Lz5/wu1;->j:Lz5/yv1;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {v0, p1, p2, p3, p4}, Lz5/yv1;->f(JJ)V

    :cond_1a
    return-void
.end method

.method public final varargs g([Lz5/t4;)V
    .registers 5

    iget-object v0, p0, Lz5/wu1;->b:Lz5/bu1;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v1, 0x400

    const/4 v2, 0x4

    invoke-interface {v0, v1, v2}, Lz5/bu1;->c(II)Lz5/ou1;

    move-result-object v0

    new-instance v1, Lz5/w2;

    invoke-direct {v1}, Lz5/w2;-><init>()V

    const-string v2, "image/jpeg"

    .line 1
    iput-object v2, v1, Lz5/w2;->i:Ljava/lang/String;

    .line 2
    new-instance v2, Lz5/u4;

    invoke-direct {v2, p1}, Lz5/u4;-><init>([Lz5/t4;)V

    .line 3
    iput-object v2, v1, Lz5/w2;->h:Lz5/u4;

    .line 4
    new-instance p1, Lz5/x2;

    .line 5
    invoke-direct {p1, v1}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 6
    invoke-interface {v0, p1}, Lz5/ou1;->a(Lz5/x2;)V

    return-void
.end method
