.class public final Lz5/q10;
.super Lq5/a;
.source ""


# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/os/Parcelable$Creator<",
            "Lz5/q10;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public r:Landroid/os/ParcelFileDescriptor;

.field public s:Landroid/os/Parcelable;

.field public t:Z


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

    new-instance v0, Lz5/r10;

    invoke-direct {v0}, Lz5/r10;-><init>()V

    sput-object v0, Lz5/q10;->CREATOR:Landroid/os/Parcelable$Creator;

    return-void
.end method

.method public constructor <init>(Landroid/os/ParcelFileDescriptor;)V
    .registers 2

    invoke-direct {p0}, Lq5/a;-><init>()V

    iput-object p1, p0, Lz5/q10;->r:Landroid/os/ParcelFileDescriptor;

    const/4 p1, 0x0

    iput-object p1, p0, Lz5/q10;->s:Landroid/os/Parcelable;

    const/4 p1, 0x1

    iput-boolean p1, p0, Lz5/q10;->t:Z

    return-void
.end method


# virtual methods
.method public final writeToParcel(Landroid/os/Parcel;I)V
    .registers 10

    iget-object v0, p0, Lz5/q10;->r:Landroid/os/ParcelFileDescriptor;

    const/4 v1, 0x0

    if-nez v0, :cond_58

    invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;

    move-result-object v0

    :try_start_9
    iget-object v2, p0, Lz5/q10;->s:Landroid/os/Parcelable;

    invoke-interface {v2, v0, v1}, Landroid/os/Parcelable;->writeToParcel(Landroid/os/Parcel;I)V

    invoke-virtual {v0}, Landroid/os/Parcel;->marshall()[B

    move-result-object v2
    :try_end_12
    .catchall {:try_start_9 .. :try_end_12} :catchall_53

    invoke-virtual {v0}, Landroid/os/Parcel;->recycle()V

    const/4 v0, 0x0

    :try_start_16
    invoke-static {}, Landroid/os/ParcelFileDescriptor;->createPipe()[Landroid/os/ParcelFileDescriptor;

    move-result-object v3

    const/4 v4, 0x1

    aget-object v4, v3, v4

    new-instance v5, Landroid/os/ParcelFileDescriptor$AutoCloseOutputStream;

    invoke-direct {v5, v4}, Landroid/os/ParcelFileDescriptor$AutoCloseOutputStream;-><init>(Landroid/os/ParcelFileDescriptor;)V
    :try_end_22
    .catch Ljava/io/IOException; {:try_start_16 .. :try_end_22} :catch_33

    :try_start_22
    sget-object v4, Lz5/k50;->a:Lz5/gc1;

    new-instance v6, Ll5/m;

    invoke-direct {v6, v5, v2}, Ll5/m;-><init>(Ljava/io/OutputStream;[B)V

    check-cast v4, Lz5/j50;

    invoke-virtual {v4, v6}, Lz5/j50;->execute(Ljava/lang/Runnable;)V

    aget-object v0, v3, v1
    :try_end_30
    .catch Ljava/io/IOException; {:try_start_22 .. :try_end_30} :catch_31

    goto :goto_50

    :catch_31
    move-exception v2

    goto :goto_35

    :catch_33
    move-exception v2

    move-object v5, v0

    :goto_35
    const-string v3, "Error transporting the ad response"

    invoke-static {v3, v2}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzg()Lcom/google/android/gms/internal/ads/u1;

    move-result-object v3

    .line 1
    iget-object v4, v3, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object v3, v3, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {v4, v3}, Lcom/google/android/gms/internal/ads/h1;->d(Landroid/content/Context;Lz5/g50;)Lz5/f10;

    move-result-object v3

    const-string v4, "LargeParcelTeleporter.pipeData.2"

    invoke-interface {v3, v2, v4}, Lz5/f10;->a(Ljava/lang/Throwable;Ljava/lang/String;)V

    if-eqz v5, :cond_50

    .line 2
    :try_start_4d
    invoke-interface {v5}, Ljava/io/Closeable;->close()V
    :try_end_50
    .catch Ljava/io/IOException; {:try_start_4d .. :try_end_50} :catch_50

    .line 3
    :catch_50
    :cond_50
    :goto_50
    iput-object v0, p0, Lz5/q10;->r:Landroid/os/ParcelFileDescriptor;

    goto :goto_58

    :catchall_53
    move-exception p1

    invoke-virtual {v0}, Landroid/os/Parcel;->recycle()V

    throw p1

    :cond_58
    :goto_58
    const/16 v0, 0x4f45

    .line 4
    invoke-static {p1, v0}, Lq5/c;->j(Landroid/os/Parcel;I)I

    move-result v0

    const/4 v2, 0x2

    .line 5
    iget-object v3, p0, Lz5/q10;->r:Landroid/os/ParcelFileDescriptor;

    invoke-static {p1, v2, v3, p2, v1}, Lq5/c;->d(Landroid/os/Parcel;ILandroid/os/Parcelable;IZ)V

    .line 6
    invoke-static {p1, v0}, Lq5/c;->k(Landroid/os/Parcel;I)V

    return-void
.end method
