Rabbit-R1/switch port/smali/smali_classes3/kotlin/time/AbstractLongTimeSource.smali

187 lines
5 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public abstract Lkotlin/time/AbstractLongTimeSource;
.super Ljava/lang/Object;
.source "TimeSources.kt"
# interfaces
.implements Lkotlin/time/TimeSource$WithComparableMarks;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/time/AbstractLongTimeSource$LongTimeMark;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\t\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0008\'\u0018\u00002\u00020\u0001:\u0001\u0011B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0008\u0010\r\u001a\u00020\u0008H\u0002J\u0008\u0010\u000e\u001a\u00020\u000fH\u0016J\u0008\u0010\u0010\u001a\u00020\u0008H$R\u0014\u0010\u0002\u001a\u00020\u0003X\u0084\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0005\u0010\u0006R\u001b\u0010\u0007\u001a\u00020\u00088BX\u0082\u0084\u0002\u00a2\u0006\u000c\n\u0004\u0008\u000b\u0010\u000c\u001a\u0004\u0008\t\u0010\n\u00a8\u0006\u0012"
}
d2 = {
"Lkotlin/time/AbstractLongTimeSource;",
"Lkotlin/time/TimeSource$WithComparableMarks;",
"unit",
"Lkotlin/time/DurationUnit;",
"(Lkotlin/time/DurationUnit;)V",
"getUnit",
"()Lkotlin/time/DurationUnit;",
"zero",
"",
"getZero",
"()J",
"zero$delegate",
"Lkotlin/Lazy;",
"adjustedRead",
"markNow",
"Lkotlin/time/ComparableTimeMark;",
"read",
"LongTimeMark",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final unit:Lkotlin/time/DurationUnit;
.field private final zero$delegate:Lkotlin/Lazy;
# direct methods
.method public constructor <init>(Lkotlin/time/DurationUnit;)V
.locals 1
const-string v0, "unit"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlin/time/AbstractLongTimeSource;->unit:Lkotlin/time/DurationUnit;
.line 40
new-instance p1, Lkotlin/time/AbstractLongTimeSource$zero$2;
invoke-direct {p1, p0}, Lkotlin/time/AbstractLongTimeSource$zero$2;-><init>(Lkotlin/time/AbstractLongTimeSource;)V
check-cast p1, Lkotlin/jvm/functions/Function0;
invoke-static {p1}, Lkotlin/LazyKt;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object p1
iput-object p1, p0, Lkotlin/time/AbstractLongTimeSource;->zero$delegate:Lkotlin/Lazy;
return-void
.end method
.method public static final synthetic access$adjustedRead(Lkotlin/time/AbstractLongTimeSource;)J
.locals 2
.line 26
invoke-direct {p0}, Lkotlin/time/AbstractLongTimeSource;->adjustedRead()J
move-result-wide v0
return-wide v0
.end method
.method private final adjustedRead()J
.locals 4
.line 41
invoke-virtual {p0}, Lkotlin/time/AbstractLongTimeSource;->read()J
move-result-wide v0
invoke-direct {p0}, Lkotlin/time/AbstractLongTimeSource;->getZero()J
move-result-wide v2
sub-long/2addr v0, v2
return-wide v0
.end method
.method private final getZero()J
.locals 2
iget-object p0, p0, Lkotlin/time/AbstractLongTimeSource;->zero$delegate:Lkotlin/Lazy;
.line 40
invoke-interface {p0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Number;
invoke-virtual {p0}, Ljava/lang/Number;->longValue()J
move-result-wide v0
return-wide v0
.end method
# virtual methods
.method protected final getUnit()Lkotlin/time/DurationUnit;
.locals 0
iget-object p0, p0, Lkotlin/time/AbstractLongTimeSource;->unit:Lkotlin/time/DurationUnit;
return-object p0
.end method
.method public markNow()Lkotlin/time/ComparableTimeMark;
.locals 8
.line 87
new-instance v7, Lkotlin/time/AbstractLongTimeSource$LongTimeMark;
invoke-direct {p0}, Lkotlin/time/AbstractLongTimeSource;->adjustedRead()J
move-result-wide v1
sget-object v0, Lkotlin/time/Duration;->Companion:Lkotlin/time/Duration$Companion;
invoke-virtual {v0}, Lkotlin/time/Duration$Companion;->getZERO-UwyO8pc()J
move-result-wide v4
const/4 v6, 0x0
move-object v0, v7
move-object v3, p0
invoke-direct/range {v0 .. v6}, Lkotlin/time/AbstractLongTimeSource$LongTimeMark;-><init>(JLkotlin/time/AbstractLongTimeSource;JLkotlin/jvm/internal/DefaultConstructorMarker;)V
check-cast v7, Lkotlin/time/ComparableTimeMark;
return-object v7
.end method
.method public bridge synthetic markNow()Lkotlin/time/TimeMark;
.locals 0
.line 26
invoke-virtual {p0}, Lkotlin/time/AbstractLongTimeSource;->markNow()Lkotlin/time/ComparableTimeMark;
move-result-object p0
check-cast p0, Lkotlin/time/TimeMark;
return-object p0
.end method
.method protected abstract read()J
.end method