c$n.smali

.class public final Lkh/c$n;
.super Lcom/google/android/gms/location/LocationCallback;
.source "FusedProvider.kt"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lkh/c;->a(Lgh/j;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field public final synthetic a:Lkotlin/coroutines/Continuation;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lkotlin/coroutines/Continuation;)V
    .registers 2

    iput-object p1, p0, Lkh/c$n;->a:Lkotlin/coroutines/Continuation;

    invoke-direct {p0}, Lcom/google/android/gms/location/LocationCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public onLocationAvailability(Lcom/google/android/gms/location/LocationAvailability;)V
    .registers 4

    if-eqz p1, :cond_10

    invoke-virtual {p1}, Lcom/google/android/gms/location/LocationAvailability;->isLocationAvailable()Z

    move-result p1

    if-nez p1, :cond_10

    sget-object p1, Lkh/c;->c:Lkh/c;

    iget-object v0, p0, Lkh/c$n;->a:Lkotlin/coroutines/Continuation;

    const/4 v1, 0x0

    invoke-static {p1, v0, v1, p0}, Lkh/c;->a(Lkh/c;Lkotlin/coroutines/Continuation;Ljava/lang/Object;Lcom/google/android/gms/location/LocationCallback;)V

    :cond_10
    return-void
.end method

.method public onLocationResult(Lcom/google/android/gms/location/LocationResult;)V
    .registers 10

    sget-object v0, Lkh/d;->b:Lkh/d;

    invoke-virtual {v0}, Lkh/d;->b()V

    if-eqz p1, :cond_5c

    sget-object v0, Lgh/d;->g:Lgh/d;

    invoke-virtual {p1}, Lcom/google/android/gms/location/LocationResult;->getLocations()Ljava/util/List;

    move-result-object p1

    const-string v0, "locations"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1e

    const/4 p1, 0x0

    goto :goto_51

    :cond_1e
    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_2a

    :goto_28
    move-object p1, v0

    goto :goto_51

    :cond_2a
    move-object v1, v0

    check-cast v1, Landroid/location/Location;

    const-string v2, "location"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v1}, Landroid/location/Location;->getElapsedRealtimeNanos()J

    move-result-wide v3

    :cond_36
    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    move-object v5, v1

    check-cast v5, Landroid/location/Location;

    invoke-static {v5, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v5}, Landroid/location/Location;->getElapsedRealtimeNanos()J

    move-result-wide v5

    cmp-long v7, v3, v5

    if-gez v7, :cond_4a

    move-object v0, v1

    move-wide v3, v5

    :cond_4a
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_36

    goto :goto_28

    :goto_51
    check-cast p1, Landroid/location/Location;

    if-eqz p1, :cond_5c

    sget-object v0, Lkh/c;->c:Lkh/c;

    iget-object v1, p0, Lkh/c$n;->a:Lkotlin/coroutines/Continuation;

    invoke-static {v0, v1, p1, p0}, Lkh/c;->a(Lkh/c;Lkotlin/coroutines/Continuation;Ljava/lang/Object;Lcom/google/android/gms/location/LocationCallback;)V

    :cond_5c
    return-void
.end method