.class public final Lu1/f;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lu1/e;


# instance fields
.field public final a:Lb1/h;

.field public final b:Lb1/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lb1/b<",
            "Lu1/d;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lb1/h;)V
    .registers 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lu1/f;->a:Lb1/h;

    new-instance v0, Lu1/f$a;

    invoke-direct {v0, p0, p1}, Lu1/f$a;-><init>(Lu1/f;Lb1/h;)V

    iput-object v0, p0, Lu1/f;->b:Lb1/b;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/lang/Long;
    .registers 6

    const-string v0, "SELECT long_value FROM Preference where `key`=?"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v0

    if-nez p1, :cond_d

    invoke-virtual {v0, v1}, Lb1/j;->o(I)V

    goto :goto_10

    :cond_d
    invoke-virtual {v0, v1, p1}, Lb1/j;->p(ILjava/lang/String;)V

    :goto_10
    iget-object p1, p0, Lu1/f;->a:Lb1/h;

    invoke-virtual {p1}, Lb1/h;->b()V

    iget-object p1, p0, Lu1/f;->a:Lb1/h;

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-static {p1, v0, v1, v2}, Ld1/b;->a(Lb1/h;Le1/d;ZLandroid/os/CancellationSignal;)Landroid/database/Cursor;

    move-result-object p1

    :try_start_1d
    invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v3

    if-eqz v3, :cond_32

    invoke-interface {p1, v1}, Landroid/database/Cursor;->isNull(I)Z

    move-result v3

    if-eqz v3, :cond_2a

    goto :goto_32

    :cond_2a
    invoke-interface {p1, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2
    :try_end_32
    .catchall {:try_start_1d .. :try_end_32} :catchall_39

    :cond_32
    :goto_32
    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    invoke-virtual {v0}, Lb1/j;->q()V

    return-object v2

    :catchall_39
    move-exception v1

    invoke-interface {p1}, Landroid/database/Cursor;->close()V

    invoke-virtual {v0}, Lb1/j;->q()V

    throw v1
.end method

.method public b(Lu1/d;)V
    .registers 3

    iget-object v0, p0, Lu1/f;->a:Lb1/h;

    invoke-virtual {v0}, Lb1/h;->b()V

    iget-object v0, p0, Lu1/f;->a:Lb1/h;

    invoke-virtual {v0}, Lb1/h;->c()V

    :try_start_a
    iget-object v0, p0, Lu1/f;->b:Lb1/b;

    invoke-virtual {v0, p1}, Lb1/b;->e(Ljava/lang/Object;)V

    iget-object p1, p0, Lu1/f;->a:Lb1/h;

    invoke-virtual {p1}, Lb1/h;->k()V
    :try_end_14
    .catchall {:try_start_a .. :try_end_14} :catchall_1a

    iget-object p1, p0, Lu1/f;->a:Lb1/h;

    invoke-virtual {p1}, Lb1/h;->g()V

    return-void

    :catchall_1a
    move-exception p1

    iget-object v0, p0, Lu1/f;->a:Lb1/h;

    invoke-virtual {v0}, Lb1/h;->g()V

    throw p1
.end method
