Rabbit-R1/original r1/smali/smali_classes3/okhttp3/internal/cache/DiskLruCache$Entry.smali
2024-05-21 17:08:36 -04:00

830 lines
23 KiB
Smali

.class public final Lokhttp3/internal/cache/DiskLruCache$Entry;
.super Ljava/lang/Object;
.source "DiskLruCache.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/cache/DiskLruCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "Entry"
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nDiskLruCache.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DiskLruCache.kt\nokhttp3/internal/cache/DiskLruCache$Entry\n+ 2 Util.kt\nokhttp3/internal/Util\n*L\n1#1,1065:1\n601#2,4:1066\n*E\n*S KotlinDebug\n*F\n+ 1 DiskLruCache.kt\nokhttp3/internal/cache/DiskLruCache$Entry\n*L\n1001#1,4:1066\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000v\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0010\u0016\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\u0005\n\u0002\u0010\u000b\n\u0002\u0008\u0005\n\u0002\u0010\t\n\u0002\u0008\u0008\n\u0002\u0010\u0001\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0080\u0004\u0018\u00002\u00020\u0001B\u000f\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0016\u0010.\u001a\u00020/2\u000c\u00100\u001a\u0008\u0012\u0004\u0012\u00020\u000301H\u0002J\u0010\u00102\u001a\u0002032\u0006\u00104\u001a\u00020\u001aH\u0002J\u001b\u00105\u001a\u0002062\u000c\u00100\u001a\u0008\u0012\u0004\u0012\u00020\u000301H\u0000\u00a2\u0006\u0002\u00087J\u0013\u00108\u001a\u0008\u0018\u000109R\u00020\u000cH\u0000\u00a2\u0006\u0002\u0008:J\u0015\u0010;\u001a\u0002062\u0006\u0010<\u001a\u00020=H\u0000\u00a2\u0006\u0002\u0008>R\u001a\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00020\u00070\u0006X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\tR \u0010\n\u001a\u0008\u0018\u00010\u000bR\u00020\u000cX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\r\u0010\u000e\"\u0004\u0008\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\u0008\u0012\u0004\u0012\u00020\u00070\u0006X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0012\u0010\tR\u0014\u0010\u0002\u001a\u00020\u0003X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0013\u0010\u0014R\u0014\u0010\u0015\u001a\u00020\u0016X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0017\u0010\u0018R\u001a\u0010\u0019\u001a\u00020\u001aX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001b\u0010\u001c\"\u0004\u0008\u001d\u0010\u001eR\u001a\u0010\u001f\u001a\u00020 X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008!\u0010\"\"\u0004\u0008#\u0010$R\u001a\u0010%\u001a\u00020&X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\'\u0010(\"\u0004\u0008)\u0010*R\u001a\u0010+\u001a\u00020 X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008,\u0010\"\"\u0004\u0008-\u0010$\u00a8\u0006?"
}
d2 = {
"Lokhttp3/internal/cache/DiskLruCache$Entry;",
"",
"key",
"",
"(Lokhttp3/internal/cache/DiskLruCache;Ljava/lang/String;)V",
"cleanFiles",
"",
"Ljava/io/File;",
"getCleanFiles$okhttp",
"()Ljava/util/List;",
"currentEditor",
"Lokhttp3/internal/cache/DiskLruCache$Editor;",
"Lokhttp3/internal/cache/DiskLruCache;",
"getCurrentEditor$okhttp",
"()Lokhttp3/internal/cache/DiskLruCache$Editor;",
"setCurrentEditor$okhttp",
"(Lokhttp3/internal/cache/DiskLruCache$Editor;)V",
"dirtyFiles",
"getDirtyFiles$okhttp",
"getKey$okhttp",
"()Ljava/lang/String;",
"lengths",
"",
"getLengths$okhttp",
"()[J",
"lockingSourceCount",
"",
"getLockingSourceCount$okhttp",
"()I",
"setLockingSourceCount$okhttp",
"(I)V",
"readable",
"",
"getReadable$okhttp",
"()Z",
"setReadable$okhttp",
"(Z)V",
"sequenceNumber",
"",
"getSequenceNumber$okhttp",
"()J",
"setSequenceNumber$okhttp",
"(J)V",
"zombie",
"getZombie$okhttp",
"setZombie$okhttp",
"invalidLengths",
"",
"strings",
"",
"newSource",
"Lokio/Source;",
"index",
"setLengths",
"",
"setLengths$okhttp",
"snapshot",
"Lokhttp3/internal/cache/DiskLruCache$Snapshot;",
"snapshot$okhttp",
"writeLengths",
"writer",
"Lokio/BufferedSink;",
"writeLengths$okhttp",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# instance fields
.field private final cleanFiles:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
.end field
.field private currentEditor:Lokhttp3/internal/cache/DiskLruCache$Editor;
.field private final dirtyFiles:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
.end field
.field private final key:Ljava/lang/String;
.field private final lengths:[J
.field private lockingSourceCount:I
.field private readable:Z
.field private sequenceNumber:J
.field final synthetic this$0:Lokhttp3/internal/cache/DiskLruCache;
.field private zombie:Z
# direct methods
.method public constructor <init>(Lokhttp3/internal/cache/DiskLruCache;Ljava/lang/String;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")V"
}
.end annotation
const-string v0, "key"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 923
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->key:Ljava/lang/String;
.line 928
invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache;->getValueCount$okhttp()I
move-result v0
new-array v0, v0, [J
iput-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 929
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/List;
iput-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->cleanFiles:Ljava/util/List;
.line 930
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/List;
iput-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->dirtyFiles:Ljava/util/List;
.line 955
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
const/16 p2, 0x2e
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p2
.line 956
invoke-virtual {p2}, Ljava/lang/StringBuilder;->length()I
move-result v0
.line 957
invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache;->getValueCount$okhttp()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
.line 958
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
iget-object v3, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->cleanFiles:Ljava/util/List;
.line 959
check-cast v3, Ljava/util/Collection;
new-instance v4, Ljava/io/File;
invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache;->getDirectory()Ljava/io/File;
move-result-object v5
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-direct {v4, v5, v6}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-interface {v3, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
const-string v3, ".tmp"
.line 960
invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->dirtyFiles:Ljava/util/List;
.line 961
check-cast v3, Ljava/util/Collection;
new-instance v4, Ljava/io/File;
invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache;->getDirectory()Ljava/io/File;
move-result-object v5
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-direct {v4, v5, v6}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-interface {v3, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
.line 962
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->setLength(I)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method private final invalidLengths(Ljava/util/List;)Ljava/lang/Void;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Ljava/lang/Void;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 992
new-instance p0, Ljava/io/IOException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "unexpected journal line: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method private final newSource(I)Lokio/Source;
.locals 2
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 1029
invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache;->getFileSystem$okhttp()Lokhttp3/internal/io/FileSystem;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->cleanFiles:Ljava/util/List;
invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/io/File;
invoke-interface {v0, p1}, Lokhttp3/internal/io/FileSystem;->source(Ljava/io/File;)Lokio/Source;
move-result-object p1
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 1030
invoke-static {v0}, Lokhttp3/internal/cache/DiskLruCache;->access$getCivilizedFileSystem$p(Lokhttp3/internal/cache/DiskLruCache;)Z
move-result v0
if-eqz v0, :cond_0
return-object p1
:cond_0
iget v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lockingSourceCount:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lockingSourceCount:I
.line 1033
new-instance v0, Lokhttp3/internal/cache/DiskLruCache$Entry$newSource$1;
invoke-direct {v0, p0, p1, p1}, Lokhttp3/internal/cache/DiskLruCache$Entry$newSource$1;-><init>(Lokhttp3/internal/cache/DiskLruCache$Entry;Lokio/Source;Lokio/Source;)V
check-cast v0, Lokio/Source;
return-object v0
.end method
# virtual methods
.method public final getCleanFiles$okhttp()Ljava/util/List;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->cleanFiles:Ljava/util/List;
return-object p0
.end method
.method public final getCurrentEditor$okhttp()Lokhttp3/internal/cache/DiskLruCache$Editor;
.locals 0
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->currentEditor:Lokhttp3/internal/cache/DiskLruCache$Editor;
return-object p0
.end method
.method public final getDirtyFiles$okhttp()Ljava/util/List;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/io/File;",
">;"
}
.end annotation
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->dirtyFiles:Ljava/util/List;
return-object p0
.end method
.method public final getKey$okhttp()Ljava/lang/String;
.locals 0
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->key:Ljava/lang/String;
return-object p0
.end method
.method public final getLengths$okhttp()[J
.locals 0
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lengths:[J
return-object p0
.end method
.method public final getLockingSourceCount$okhttp()I
.locals 0
iget p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lockingSourceCount:I
return p0
.end method
.method public final getReadable$okhttp()Z
.locals 0
iget-boolean p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->readable:Z
return p0
.end method
.method public final getSequenceNumber$okhttp()J
.locals 2
iget-wide v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->sequenceNumber:J
return-wide v0
.end method
.method public final getZombie$okhttp()Z
.locals 0
iget-boolean p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->zombie:Z
return p0
.end method
.method public final setCurrentEditor$okhttp(Lokhttp3/internal/cache/DiskLruCache$Editor;)V
.locals 0
iput-object p1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->currentEditor:Lokhttp3/internal/cache/DiskLruCache$Editor;
return-void
.end method
.method public final setLengths$okhttp(Ljava/util/List;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "strings"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 969
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache;->getValueCount$okhttp()I
move-result v1
if-ne v0, v1, :cond_1
.line 974
:try_start_0
move-object v0, p1
check-cast v0, Ljava/util/Collection;
invoke-interface {v0}, Ljava/util/Collection;->size()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v2, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 975
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-static {v3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide v3
aput-wide v3, v2, v1
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.line 978
:catch_0
invoke-direct {p0, p1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->invalidLengths(Ljava/util/List;)Ljava/lang/Void;
new-instance p0, Lkotlin/KotlinNothingValueException;
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
throw p0
.line 970
:cond_1
invoke-direct {p0, p1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->invalidLengths(Ljava/util/List;)Ljava/lang/Void;
new-instance p0, Lkotlin/KotlinNothingValueException;
invoke-direct {p0}, Lkotlin/KotlinNothingValueException;-><init>()V
throw p0
.end method
.method public final setLockingSourceCount$okhttp(I)V
.locals 0
iput p1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lockingSourceCount:I
return-void
.end method
.method public final setReadable$okhttp(Z)V
.locals 0
iput-boolean p1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->readable:Z
return-void
.end method
.method public final setSequenceNumber$okhttp(J)V
.locals 0
iput-wide p1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->sequenceNumber:J
return-void
.end method
.method public final setZombie$okhttp(Z)V
.locals 0
iput-boolean p1, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->zombie:Z
return-void
.end method
.method public final snapshot$okhttp()Lokhttp3/internal/cache/DiskLruCache$Snapshot;
.locals 10
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 1066
sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z
if-eqz v1, :cond_1
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
.line 1067
:cond_0
new-instance p0, Ljava/lang/AssertionError;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Thread "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v2
const-string v3, "Thread.currentThread()"
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, " MUST hold lock on "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
:cond_1
:goto_0
iget-boolean v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->readable:Z
const/4 v1, 0x0
if-nez v0, :cond_2
return-object v1
:cond_2
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 1004
invoke-static {v0}, Lokhttp3/internal/cache/DiskLruCache;->access$getCivilizedFileSystem$p(Lokhttp3/internal/cache/DiskLruCache;)Z
move-result v0
if-nez v0, :cond_4
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->currentEditor:Lokhttp3/internal/cache/DiskLruCache$Editor;
if-nez v0, :cond_3
iget-boolean v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->zombie:Z
if-eqz v0, :cond_4
:cond_3
return-object v1
.line 1006
:cond_4
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/List;
iget-object v2, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 1007
invoke-virtual {v2}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v2
move-object v8, v2
check-cast v8, [J
:try_start_0
iget-object v2, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 1009
invoke-virtual {v2}, Lokhttp3/internal/cache/DiskLruCache;->getValueCount$okhttp()I
move-result v2
const/4 v3, 0x0
:goto_1
if-ge v3, v2, :cond_5
.line 1010
move-object v4, v0
check-cast v4, Ljava/util/Collection;
invoke-direct {p0, v3}, Lokhttp3/internal/cache/DiskLruCache$Entry;->newSource(I)Lokio/Source;
move-result-object v5
invoke-interface {v4, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
add-int/lit8 v3, v3, 0x1
goto :goto_1
.line 1012
:cond_5
new-instance v9, Lokhttp3/internal/cache/DiskLruCache$Snapshot;
iget-object v3, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
iget-object v4, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->key:Ljava/lang/String;
iget-wide v5, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->sequenceNumber:J
move-object v2, v9
move-object v7, v0
invoke-direct/range {v2 .. v8}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;-><init>(Lokhttp3/internal/cache/DiskLruCache;Ljava/lang/String;JLjava/util/List;[J)V
:try_end_0
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object v9
.line 1015
:catch_0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_6
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lokio/Source;
.line 1016
check-cast v2, Ljava/io/Closeable;
invoke-static {v2}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
goto :goto_2
:cond_6
:try_start_1
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->this$0:Lokhttp3/internal/cache/DiskLruCache;
.line 1021
invoke-virtual {v0, p0}, Lokhttp3/internal/cache/DiskLruCache;->removeEntry$okhttp(Lokhttp3/internal/cache/DiskLruCache$Entry;)Z
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
return-object v1
.end method
.method public final writeLengths$okhttp(Lokio/BufferedSink;)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "writer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 985
array-length v0, p0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-wide v2, p0, v1
const/16 v4, 0x20
.line 986
invoke-interface {p1, v4}, Lokio/BufferedSink;->writeByte(I)Lokio/BufferedSink;
move-result-object v4
invoke-interface {v4, v2, v3}, Lokio/BufferedSink;->writeDecimalLong(J)Lokio/BufferedSink;
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method