- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
68 lines
2.4 KiB
Java
68 lines
2.4 KiB
Java
package kotlin;
|
|
|
|
import androidx.concurrent.futures.AbstractResolvableFuture$SafeAtomicHelper$$ExternalSyntheticBackportWithForwarding0;
|
|
import java.io.Serializable;
|
|
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class SafePublicationLazyImpl implements Lazy, Serializable {
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final AtomicReferenceFieldUpdater valueUpdater = AtomicReferenceFieldUpdater.newUpdater(SafePublicationLazyImpl.class, Object.class, "_value");
|
|
public volatile Object _value;
|
|
|
|
/* renamed from: final, reason: not valid java name */
|
|
public final Object f3083final;
|
|
public volatile Function0 initializer;
|
|
|
|
public SafePublicationLazyImpl(Function0 initializer) {
|
|
Intrinsics.checkNotNullParameter(initializer, "initializer");
|
|
this.initializer = initializer;
|
|
UNINITIALIZED_VALUE uninitialized_value = UNINITIALIZED_VALUE.INSTANCE;
|
|
this._value = uninitialized_value;
|
|
this.f3083final = uninitialized_value;
|
|
}
|
|
|
|
@Override // kotlin.Lazy
|
|
public Object getValue() {
|
|
Object obj = this._value;
|
|
UNINITIALIZED_VALUE uninitialized_value = UNINITIALIZED_VALUE.INSTANCE;
|
|
if (obj != uninitialized_value) {
|
|
return obj;
|
|
}
|
|
Function0 function0 = this.initializer;
|
|
if (function0 != null) {
|
|
Object invoke = function0.invoke();
|
|
if (AbstractResolvableFuture$SafeAtomicHelper$$ExternalSyntheticBackportWithForwarding0.m(valueUpdater, this, uninitialized_value, invoke)) {
|
|
this.initializer = null;
|
|
return invoke;
|
|
}
|
|
}
|
|
return this._value;
|
|
}
|
|
|
|
@Override // kotlin.Lazy
|
|
public boolean isInitialized() {
|
|
return this._value != UNINITIALIZED_VALUE.INSTANCE;
|
|
}
|
|
|
|
public String toString() {
|
|
return isInitialized() ? String.valueOf(getValue()) : "Lazy value not initialized yet.";
|
|
}
|
|
|
|
private final Object writeReplace() {
|
|
return new InitializedLazyImpl(getValue());
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public Companion() {
|
|
}
|
|
}
|
|
}
|