.class public final Lokhttp3/internal/cache2/Relay$RelaySource; .super Ljava/lang/Object; .source "Relay.kt" # interfaces .implements Lokio/Source; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/cache2/Relay; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "RelaySource" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nRelay.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Relay.kt\nokhttp3/internal/cache2/Relay$RelaySource\n+ 2 Util.kt\nokhttp3/internal/Util\n*L\n1#1,356:1\n528#2:357\n528#2:358\n528#2:359\n528#2:360\n*E\n*S KotlinDebug\n*F\n+ 1 Relay.kt\nokhttp3/internal/cache2/Relay$RelaySource\n*L\n265#1:357\n265#1:358\n265#1:359\n265#1:360\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0080\u0004\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010\t\u001a\u00020\nH\u0016J\u0018\u0010\u000b\u001a\u00020\u00062\u0006\u0010\u000c\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u0006H\u0016J\u0008\u0010\u0007\u001a\u00020\u0008H\u0016R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000f" } d2 = { "Lokhttp3/internal/cache2/Relay$RelaySource;", "Lokio/Source;", "(Lokhttp3/internal/cache2/Relay;)V", "fileOperator", "Lokhttp3/internal/cache2/FileOperator;", "sourcePos", "", "timeout", "Lokio/Timeout;", "close", "", "read", "sink", "Lokio/Buffer;", "byteCount", "okhttp" } k = 0x1 mv = { 0x1, 0x1, 0x10 } .end annotation # instance fields .field private fileOperator:Lokhttp3/internal/cache2/FileOperator; .field private sourcePos:J .field final synthetic this$0:Lokhttp3/internal/cache2/Relay; .field private final timeout:Lokio/Timeout; # direct methods .method public constructor (Lokhttp3/internal/cache2/Relay;)V .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation .line 156 iput-object p1, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-direct {p0}, Ljava/lang/Object;->()V .line 157 new-instance v0, Lokio/Timeout; invoke-direct {v0}, Lokio/Timeout;->()V iput-object v0, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->timeout:Lokio/Timeout; .line 160 new-instance v0, Lokhttp3/internal/cache2/FileOperator; invoke-virtual {p1}, Lokhttp3/internal/cache2/Relay;->getFile()Ljava/io/RandomAccessFile; move-result-object p1 if-nez p1, :cond_17 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_17 invoke-virtual {p1}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel; move-result-object p1 const-string v1, "file!!.channel" invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {v0, p1}, Lokhttp3/internal/cache2/FileOperator;->(Ljava/nio/channels/FileChannel;)V iput-object v0, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->fileOperator:Lokhttp3/internal/cache2/FileOperator; return-void .end method # virtual methods .method public close()V .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 276 iget-object v0, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->fileOperator:Lokhttp3/internal/cache2/FileOperator; if-nez v0, :cond_5 return-void :cond_5 const/4 v0, 0x0 .line 277 move-object v1, v0 check-cast v1, Lokhttp3/internal/cache2/FileOperator; iput-object v0, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->fileOperator:Lokhttp3/internal/cache2/FileOperator; .line 279 move-object v1, v0 check-cast v1, Ljava/io/RandomAccessFile; .line 280 iget-object v1, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; monitor-enter v1 .line 281 :try_start_11 iget-object v2, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v2}, Lokhttp3/internal/cache2/Relay;->getSourceCount()I move-result v3 add-int/lit8 v3, v3, -0x1 invoke-virtual {v2, v3}, Lokhttp3/internal/cache2/Relay;->setSourceCount(I)V .line 282 iget-object v2, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v2}, Lokhttp3/internal/cache2/Relay;->getSourceCount()I move-result v2 if-nez v2, :cond_33 .line 283 iget-object v2, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v2}, Lokhttp3/internal/cache2/Relay;->getFile()Ljava/io/RandomAccessFile; move-result-object v2 .line 284 iget-object v3, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; move-object v4, v0 check-cast v4, Ljava/io/RandomAccessFile; invoke-virtual {v3, v0}, Lokhttp3/internal/cache2/Relay;->setFile(Ljava/io/RandomAccessFile;)V move-object v0, v2 .line 286 :cond_33 sget-object v2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_35 .catchall {:try_start_11 .. :try_end_35} :catchall_3e .line 280 monitor-exit v1 if-eqz v0, :cond_3d .line 288 check-cast v0, Ljava/io/Closeable; invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V :cond_3d return-void :catchall_3e move-exception v0 .line 280 monitor-exit v1 throw v0 .end method .method public read(Lokio/Buffer;J)J .registers 23 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation move-object/from16 v1, p0 move-wide/from16 v2, p2 const-string v0, "sink" move-object/from16 v5, p1 invoke-static {v5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 188 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->fileOperator:Lokhttp3/internal/cache2/FileOperator; const/4 v4, 0x1 if-eqz v0, :cond_12 move v0, v4 goto :goto_13 :cond_12 const/4 v0, 0x0 :goto_13 if-eqz v0, :cond_1cd .line 190 iget-object v8, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; monitor-enter v8 .line 193 :goto_18 :try_start_18 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v6 .line 194 iget-wide v9, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J cmp-long v0, v9, v6 const/4 v6, 0x2 const-wide/16 v9, -0x1 if-eqz v0, :cond_65 .line 210 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v11 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getBuffer()Lokio/Buffer; move-result-object v0 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v13 sub-long/2addr v11, v13 .line 213 iget-wide v13, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J cmp-long v0, v13, v11 if-gez v0, :cond_40 move v4, v6 goto :goto_88 .line 218 :cond_40 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v6 iget-wide v9, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J sub-long/2addr v6, v9 invoke-static {v2, v3, v6, v7}, Ljava/lang/Math;->min(JJ)J move-result-wide v9 .line 219 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getBuffer()Lokio/Buffer; move-result-object v2 iget-wide v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J sub-long v6, v3, v11 move-object/from16 v3, p1 move-wide v4, v6 move-wide v6, v9 invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .line 220 iget-wide v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J add-long/2addr v2, v9 iput-wide v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J :try_end_63 .catchall {:try_start_18 .. :try_end_63} :catchall_1ca .line 221 monitor-exit v8 return-wide v9 .line 197 :cond_65 :try_start_65 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getComplete()Z move-result v0 :try_end_6b .catchall {:try_start_65 .. :try_end_6b} :catchall_1ca if-eqz v0, :cond_6f monitor-exit v8 return-wide v9 .line 200 :cond_6f :try_start_6f iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamReader()Ljava/lang/Thread; move-result-object v0 if-eqz v0, :cond_7f .line 201 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->timeout:Lokio/Timeout; iget-object v6, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0, v6}, Lokio/Timeout;->waitUntilNotified(Ljava/lang/Object;)V goto :goto_18 .line 206 :cond_7f iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v7 invoke-virtual {v0, v7}, Lokhttp3/internal/cache2/Relay;->setUpstreamReader(Ljava/lang/Thread;)V :try_end_88 .catchall {:try_start_6f .. :try_end_88} :catchall_1ca .line 190 :goto_88 monitor-exit v8 const-wide/16 v11, 0x20 if-ne v4, v6, :cond_b0 .line 226 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v6 iget-wide v8, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J sub-long/2addr v6, v8 invoke-static {v2, v3, v6, v7}, Ljava/lang/Math;->min(JJ)J move-result-wide v8 .line 227 iget-object v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->fileOperator:Lokhttp3/internal/cache2/FileOperator; if-nez v2, :cond_a1 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_a1 iget-wide v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J add-long/2addr v3, v11 move-object/from16 v5, p1 move-wide v6, v8 invoke-virtual/range {v2 .. v7}, Lokhttp3/internal/cache2/FileOperator;->read(JLokio/Buffer;J)V .line 228 iget-wide v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J add-long/2addr v2, v8 iput-wide v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J return-wide v8 :cond_b0 const/4 v8, 0x0 .line 235 :try_start_b1 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstream()Lokio/Source; move-result-object v0 if-nez v0, :cond_bc invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_bc iget-object v4, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v4}, Lokhttp3/internal/cache2/Relay;->getUpstreamBuffer()Lokio/Buffer; move-result-object v4 iget-object v6, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v6}, Lokhttp3/internal/cache2/Relay;->getBufferMaxSize()J move-result-wide v6 invoke-interface {v0, v4, v6, v7}, Lokio/Source;->read(Lokio/Buffer;J)J move-result-wide v14 cmp-long v0, v14, v9 if-nez v0, :cond_fc .line 239 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v2 invoke-virtual {v0, v2, v3}, Lokhttp3/internal/cache2/Relay;->commit(J)V :try_end_d9 .catchall {:try_start_b1 .. :try_end_d9} :catchall_1a6 .line 265 iget-object v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; monitor-enter v2 .line 266 :try_start_dc iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; move-object v3, v8 check-cast v3, Ljava/lang/Thread; invoke-virtual {v0, v8}, Lokhttp3/internal/cache2/Relay;->setUpstreamReader(Ljava/lang/Thread;)V .line 267 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; if-eqz v0, :cond_f1 .line 357 check-cast v0, Ljava/lang/Object; invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V .line 268 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_ef .catchall {:try_start_dc .. :try_end_ef} :catchall_f9 .line 265 monitor-exit v2 return-wide v9 .line 357 :cond_f1 :try_start_f1 new-instance v0, Lkotlin/TypeCastException; const-string v3, "null cannot be cast to non-null type java.lang.Object" invoke-direct {v0, v3}, Lkotlin/TypeCastException;->(Ljava/lang/String;)V throw v0 :try_end_f9 .catchall {:try_start_f1 .. :try_end_f9} :catchall_f9 :catchall_f9 move-exception v0 .line 265 monitor-exit v2 throw v0 .line 244 :cond_fc :try_start_fc invoke-static {v14, v15, v2, v3}, Ljava/lang/Math;->min(JJ)J move-result-wide v9 .line 245 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamBuffer()Lokio/Buffer; move-result-object v2 const-wide/16 v6, 0x0 move-object/from16 v3, p1 move-wide v4, v6 move-wide v6, v9 invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .line 246 iget-wide v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J add-long/2addr v2, v9 iput-wide v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->sourcePos:J .line 249 iget-object v13, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->fileOperator:Lokhttp3/internal/cache2/FileOperator; if-nez v13, :cond_11b invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 250 :cond_11b iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v2 add-long/2addr v2, v11 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamBuffer()Lokio/Buffer; move-result-object v0 invoke-virtual {v0}, Lokio/Buffer;->clone()Lokio/Buffer; move-result-object v16 move-wide v4, v14 move-wide v14, v2 move-wide/from16 v17, v4 .line 249 invoke-virtual/range {v13 .. v18}, Lokhttp3/internal/cache2/FileOperator;->write(JLokio/Buffer;J)V .line 252 iget-object v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; monitor-enter v2 :try_end_136 .catchall {:try_start_fc .. :try_end_136} :catchall_1a6 .line 254 :try_start_136 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getBuffer()Lokio/Buffer; move-result-object v0 iget-object v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v3}, Lokhttp3/internal/cache2/Relay;->getUpstreamBuffer()Lokio/Buffer; move-result-object v3 invoke-virtual {v0, v3, v4, v5}, Lokio/Buffer;->write(Lokio/Buffer;J)V .line 255 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getBuffer()Lokio/Buffer; move-result-object v0 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v6 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getBufferMaxSize()J move-result-wide v11 cmp-long v0, v6, v11 if-lez v0, :cond_173 .line 256 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getBuffer()Lokio/Buffer; move-result-object v0 iget-object v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v3}, Lokhttp3/internal/cache2/Relay;->getBuffer()Lokio/Buffer; move-result-object v3 invoke-virtual {v3}, Lokio/Buffer;->size()J move-result-wide v6 iget-object v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v3}, Lokhttp3/internal/cache2/Relay;->getBufferMaxSize()J move-result-wide v11 sub-long/2addr v6, v11 invoke-virtual {v0, v6, v7}, Lokio/Buffer;->skip(J)V .line 260 :cond_173 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; invoke-virtual {v0}, Lokhttp3/internal/cache2/Relay;->getUpstreamPos()J move-result-wide v6 add-long/2addr v6, v4 invoke-virtual {v0, v6, v7}, Lokhttp3/internal/cache2/Relay;->setUpstreamPos(J)V .line 261 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_17f .catchall {:try_start_136 .. :try_end_17f} :catchall_1a3 .line 252 :try_start_17f monitor-exit v2 :try_end_180 .catchall {:try_start_17f .. :try_end_180} :catchall_1a6 .line 265 iget-object v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; monitor-enter v2 .line 266 :try_start_183 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; move-object v3, v8 check-cast v3, Ljava/lang/Thread; invoke-virtual {v0, v8}, Lokhttp3/internal/cache2/Relay;->setUpstreamReader(Ljava/lang/Thread;)V .line 267 iget-object v0, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; if-eqz v0, :cond_198 .line 358 check-cast v0, Ljava/lang/Object; invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V .line 268 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_196 .catchall {:try_start_183 .. :try_end_196} :catchall_1a0 .line 265 monitor-exit v2 return-wide v9 .line 358 :cond_198 :try_start_198 new-instance v0, Lkotlin/TypeCastException; const-string v3, "null cannot be cast to non-null type java.lang.Object" invoke-direct {v0, v3}, Lkotlin/TypeCastException;->(Ljava/lang/String;)V throw v0 :try_end_1a0 .catchall {:try_start_198 .. :try_end_1a0} :catchall_1a0 :catchall_1a0 move-exception v0 .line 265 monitor-exit v2 throw v0 :catchall_1a3 move-exception v0 .line 252 :try_start_1a4 monitor-exit v2 throw v0 :try_end_1a6 .catchall {:try_start_1a4 .. :try_end_1a6} :catchall_1a6 :catchall_1a6 move-exception v0 .line 265 iget-object v2, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; monitor-enter v2 .line 266 :try_start_1aa iget-object v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; move-object v4, v8 check-cast v4, Ljava/lang/Thread; invoke-virtual {v3, v8}, Lokhttp3/internal/cache2/Relay;->setUpstreamReader(Ljava/lang/Thread;)V .line 267 iget-object v3, v1, Lokhttp3/internal/cache2/Relay$RelaySource;->this$0:Lokhttp3/internal/cache2/Relay; if-nez v3, :cond_1be .line 360 new-instance v0, Lkotlin/TypeCastException; const-string v3, "null cannot be cast to non-null type java.lang.Object" invoke-direct {v0, v3}, Lkotlin/TypeCastException;->(Ljava/lang/String;)V throw v0 :cond_1be check-cast v3, Ljava/lang/Object; invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V .line 268 sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_1c5 .catchall {:try_start_1aa .. :try_end_1c5} :catchall_1c7 .line 265 monitor-exit v2 throw v0 :catchall_1c7 move-exception v0 monitor-exit v2 throw v0 :catchall_1ca move-exception v0 .line 190 monitor-exit v8 throw v0 .line 188 :cond_1cd const-string v0, "Check failed." new-instance v2, Ljava/lang/IllegalStateException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v2, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v2, Ljava/lang/Throwable; throw v2 .end method .method public timeout()Lokio/Timeout; .registers 2 .line 272 iget-object v0, p0, Lokhttp3/internal/cache2/Relay$RelaySource;->timeout:Lokio/Timeout; return-object v0 .end method