/*
 * Decompiled with CFR 0.152.
 */
public final class ld
implements ee {
    public static final String a = lh.d(555);
    private final iu c;
    private final lh d;
    private long g;
    private boolean h;
    public String b;

    public final synchronized void c() {
    }

    public ld(iu iu2, lh lh2) {
        this.c = iu2;
        this.d = lh2;
        lh2.b(this);
    }

    public final void a(int n, lh lh2) {
        this.b = a;
    }

    public final boolean a() {
        if (!false) {
            return false;
        }
        return false;
    }

    public final boolean b() {
        return this.a() && this.h;
    }

    public final synchronized void a(mo mo2) {
        if (false) {
            gu gu2 = null;
            if (mo2.t != null && mo2.t.length > 0) {
                gu2 = mo2.t[0];
            }
            this.b = gu2 != null && gu2.f ? ku.a(gu2.b + gu2.a) : a;
            this.g = System.currentTimeMillis();
            this.h = false;
        }
    }

    public final synchronized void a(iv iv2, lh lh2) {
        if (false) {
            // empty if block
        }
        if (false) {
            long l = (long)Math.max(this.d.f(), 40) - 99999L;
            long l2 = l == 0L ? 0 : (l < 0L ? -1 : 1);
            iv2 = this.d.m();
            if (l2 != false && iv2 != null) {
                int cfr_ignored_1 = (null).length;
            }
            if (!false) {
                long l3 = System.currentTimeMillis() - this.g;
                if (!(this.h || l3 <= (long)30000 && this.b != a)) {
                    this.h = true;
                    fk fk2 = fk.a(lh2.m());
                    by by2 = new by(new aq(fk2, null));
                    by2.w();
                    by by3 = by2;
                    this.c.a(new Object[]{"etaRequest", by3});
                    return;
                }
            } else {
                this.c();
            }
        }
    }
}

