Rabbit-R1/switch port/smali/smali_classes3/kotlin/time/jdk8/DurationConversionsJDK8Kt.smali

97 lines
3 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lkotlin/time/jdk8/DurationConversionsJDK8Kt;
.super Ljava/lang/Object;
.source "DurationConversions.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nDurationConversions.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DurationConversions.kt\nkotlin/time/jdk8/DurationConversionsJDK8Kt\n+ 2 Duration.kt\nkotlin/time/Duration\n*L\n1#1,33:1\n731#2,2:34\n*S KotlinDebug\n*F\n+ 1 DurationConversions.kt\nkotlin/time/jdk8/DurationConversionsJDK8Kt\n*L\n33#1:34,2\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u001a\u0017\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0087\u0008\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0003\u0010\u0004\u001a\u0012\u0010\u0005\u001a\u00020\u0002*\u00020\u0001H\u0087\u0008\u00a2\u0006\u0002\u0010\u0006\u0082\u0002\u0007\n\u0005\u0008\u00a1\u001e0\u0001\u00a8\u0006\u0007"
}
d2 = {
"toJavaDuration",
"Ljava/time/Duration;",
"Lkotlin/time/Duration;",
"toJavaDuration-LRDsOJo",
"(J)Ljava/time/Duration;",
"toKotlinDuration",
"(Ljava/time/Duration;)J",
"kotlin-stdlib-jdk8"
}
k = 0x2
mv = {
0x1,
0x9,
0x0
}
pn = "kotlin.time"
xi = 0x30
.end annotation
# direct methods
.method private static final toJavaDuration-LRDsOJo(J)Ljava/time/Duration;
.locals 2
.line 35
invoke-static {p0, p1}, Lkotlin/time/Duration;->getInWholeSeconds-impl(J)J
move-result-wide v0
invoke-static {p0, p1}, Lkotlin/time/Duration;->getNanosecondsComponent-impl(J)I
move-result p0
int-to-long p0, p0
.line 33
invoke-static {v0, v1, p0, p1}, Ljava/time/Duration;->ofSeconds(JJ)Ljava/time/Duration;
move-result-object p0
const-string p1, "toComponents-impl(...)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method private static final toKotlinDuration(Ljava/time/Duration;)J
.locals 4
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 21
invoke-virtual {p0}, Ljava/time/Duration;->getSeconds()J
move-result-wide v0
sget-object v2, Lkotlin/time/DurationUnit;->SECONDS:Lkotlin/time/DurationUnit;
invoke-static {v0, v1, v2}, Lkotlin/time/DurationKt;->toDuration(JLkotlin/time/DurationUnit;)J
move-result-wide v0
invoke-virtual {p0}, Ljava/time/Duration;->getNano()I
move-result p0
sget-object v2, Lkotlin/time/DurationUnit;->NANOSECONDS:Lkotlin/time/DurationUnit;
invoke-static {p0, v2}, Lkotlin/time/DurationKt;->toDuration(ILkotlin/time/DurationUnit;)J
move-result-wide v2
invoke-static {v0, v1, v2, v3}, Lkotlin/time/Duration;->plus-LRDsOJo(JJ)J
move-result-wide v0
return-wide v0
.end method