.class public final Le0/b$a; .super Ljava/lang/Object; .source "AsyncTimeout.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Le0/b; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "a" .end annotation # direct methods .method public synthetic constructor (Lkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public final a()Le0/b; .locals 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/InterruptedException; } .end annotation const-class v0, Le0/b; sget-object v1, Le0/b;->j:Le0/b; const/4 v2, 0x0 if-eqz v1, :cond_5 iget-object v1, v1, Le0/b;->f:Le0/b; if-nez v1, :cond_2 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v3 sget-wide v5, Le0/b;->h:J invoke-virtual {v0, v5, v6}, Ljava/lang/Object;->wait(J)V sget-object v0, Le0/b;->j:Le0/b; if-eqz v0, :cond_1 iget-object v0, v0, Le0/b;->f:Le0/b; if-nez v0, :cond_0 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v0 sub-long/2addr v0, v3 sget-wide v3, Le0/b;->i:J cmp-long v5, v0, v3 if-ltz v5, :cond_0 sget-object v2, Le0/b;->j:Le0/b; :cond_0 return-object v2 :cond_1 invoke-static {}, Lz/u/b/j;->throwNpe()V throw v2 :cond_2 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v3 iget-wide v5, v1, Le0/b;->g:J sub-long/2addr v5, v3 const-wide/16 v3, 0x0 cmp-long v7, v5, v3 if-lez v7, :cond_3 const-wide/32 v3, 0xf4240 div-long v7, v5, v3 mul-long v3, v3, v7 sub-long/2addr v5, v3 long-to-int v1, v5 invoke-virtual {v0, v7, v8, v1}, Ljava/lang/Object;->wait(JI)V return-object v2 :cond_3 sget-object v0, Le0/b;->j:Le0/b; if-eqz v0, :cond_4 iget-object v3, v1, Le0/b;->f:Le0/b; iput-object v3, v0, Le0/b;->f:Le0/b; iput-object v2, v1, Le0/b;->f:Le0/b; return-object v1 :cond_4 invoke-static {}, Lz/u/b/j;->throwNpe()V throw v2 :cond_5 invoke-static {}, Lz/u/b/j;->throwNpe()V throw v2 .end method .method public final a(Le0/b;JZ)V .locals 8 const-class v0, Le0/b; monitor-enter v0 :try_start_0 sget-object v1, Le0/b;->j:Le0/b; if-nez v1, :cond_0 new-instance v1, Le0/b; invoke-direct {v1}, Le0/b;->()V sput-object v1, Le0/b;->j:Le0/b; new-instance v1, Le0/b$b; invoke-direct {v1}, Le0/b$b;->()V invoke-virtual {v1}, Ljava/lang/Thread;->start()V :cond_0 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v1 const-wide/16 v3, 0x0 cmp-long v5, p2, v3 if-eqz v5, :cond_1 if-eqz p4, :cond_1 invoke-virtual {p1}, Le0/x;->c()J move-result-wide v3 sub-long/2addr v3, v1 invoke-static {p2, p3, v3, v4}, Ljava/lang/Math;->min(JJ)J move-result-wide p2 add-long/2addr p2, v1 iput-wide p2, p1, Le0/b;->g:J goto :goto_0 :cond_1 if-eqz v5, :cond_2 add-long/2addr p2, v1 iput-wide p2, p1, Le0/b;->g:J goto :goto_0 :cond_2 if-eqz p4, :cond_8 invoke-virtual {p1}, Le0/x;->c()J move-result-wide p2 iput-wide p2, p1, Le0/b;->g:J :goto_0 iget-wide p2, p1, Le0/b;->g:J sub-long/2addr p2, v1 sget-object p4, Le0/b;->j:Le0/b; const/4 v3, 0x0 if-eqz p4, :cond_7 :goto_1 iget-object v4, p4, Le0/b;->f:Le0/b; if-eqz v4, :cond_5 iget-object v4, p4, Le0/b;->f:Le0/b; if-eqz v4, :cond_4 iget-wide v5, v4, Le0/b;->g:J sub-long/2addr v5, v1 cmp-long v7, p2, v5 if-gez v7, :cond_3 goto :goto_2 :cond_3 move-object p4, v4 goto :goto_1 :cond_4 invoke-static {}, Lz/u/b/j;->throwNpe()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw v3 :cond_5 :goto_2 :try_start_1 iget-object p2, p4, Le0/b;->f:Le0/b; iput-object p2, p1, Le0/b;->f:Le0/b; iput-object p1, p4, Le0/b;->f:Le0/b; sget-object p1, Le0/b;->j:Le0/b; if-ne p4, p1, :cond_6 invoke-virtual {v0}, Ljava/lang/Object;->notify()V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :cond_6 monitor-exit v0 return-void :cond_7 :try_start_2 invoke-static {}, Lz/u/b/j;->throwNpe()V :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 throw v3 :cond_8 :try_start_3 new-instance p1, Ljava/lang/AssertionError; invoke-direct {p1}, Ljava/lang/AssertionError;->()V throw p1 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 :catchall_0 move-exception p1 monitor-exit v0 throw p1 .end method .method public final a(Le0/b;)Z .locals 3 const-class v0, Le0/b; monitor-enter v0 :try_start_0 sget-object v1, Le0/b;->j:Le0/b; :goto_0 if-eqz v1, :cond_1 iget-object v2, v1, Le0/b;->f:Le0/b; if-ne v2, p1, :cond_0 iget-object v2, p1, Le0/b;->f:Le0/b; iput-object v2, v1, Le0/b;->f:Le0/b; const/4 v1, 0x0 iput-object v1, p1, Le0/b;->f:Le0/b; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 const/4 p1, 0x0 monitor-exit v0 return p1 :catchall_0 move-exception p1 goto :goto_1 :cond_0 move-object v1, v2 goto :goto_0 :cond_1 const/4 p1, 0x1 monitor-exit v0 return p1 :goto_1 monitor-exit v0 throw p1 .end method