/*
 * Decompiled with CFR 0.152.
 */
import java.io.DataInput;
import java.io.DataOutput;
import java.io.OutputStream;

public final class eh
implements jf,
fh {
    private final int e;
    private final jb f;
    private final lk g;
    private final long i = System.currentTimeMillis();
    private static int d;
    public static int c;
    private lk h;
    private long j;
    private long k;
    private long l;
    public boolean a = true;
    public boolean b;

    public eh(jb jb2, String string) {
        this(jb2, string, null);
    }

    public eh(jb jb2, iv iv2) {
        this(jb2, null, iv2);
    }

    private void l() {
        ck.e().a(this);
    }

    public final void e() {
        this.g.b(17, this.g.a(17));
    }

    public final void j() {
        if (c > 0 && this.g.h(17)) {
            new hd(this).a(c);
            return;
        }
        this.l();
    }

    /*
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public final boolean a(DataInput dataInput) {
        if (this.b) {
            dataInput.skipBytes(Math.abs(dataInput.readInt()));
        } else {
            try {
                int n = 0;
                int n2 = 0;
                this.k = System.currentTimeMillis();
                this.h = ar.a(la.bh, dataInput);
                this.l = System.currentTimeMillis();
                if (this.h.h(17)) {
                    lk lk2 = this.h.f(17);
                    n2 = lk2.i(22);
                    for (int i = 0; i < n2; n += lk2.e(22, i).c(25).length, ++i) {
                    }
                }
                if (n2 != 0) {
                    gu.a("sv", (int)(this.j - this.i), (int)(this.k - this.i), (int)(this.l - this.i), n2, n, null);
                }
            }
            catch (OutOfMemoryError outOfMemoryError) {
                this.g.g(33, 0);
                this.b = true;
                throw outOfMemoryError;
            }
        }
        if (this.f != null) {
            this.f.b(this);
        }
        return true;
    }

    public final void a(ck ck2) {
        jt jt2 = ck2.f;
        lk lk2 = this.h.f(17);
        int n = lk2.d(19);
        int n2 = lk2.i(22);
        for (int i = 0; i < n2; ++i) {
            lk lk3 = lk2.e(22, i);
            jt2.a(n, lk3.d(23), lk3.d(24), lk3.c(25));
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private eh(jb jb2, String string, iv iv2) {
        this.f = jb2;
        this.e = d++;
        this.g = new lk(la.bg);
        if (string == null) {
            if (iv2 == null) throw new IllegalArgumentException();
            this.g.b(2, iv2.b());
        } else {
            this.g.b(1, string);
        }
        this.g.a(51, true);
    }

    public final void a(DataOutput dataOutput) {
        dataOutput.writeInt(this.g.b());
        this.g.a((OutputStream)((Object)dataOutput));
        this.j = System.currentTimeMillis();
    }

    public final void a(int n) {
        lk lk2 = this.g.a(33);
        this.g.b(33, lk2);
        lk lk3 = new lk(la.q);
        lk3.h(16, 2);
        lk2.b(34, lk3);
        lk2.h(35, 64);
        lk2.h(36, n);
    }

    public final void a(int n, int n2) {
        lk lk2 = this.g.f(33);
        lk lk3 = lk2.a(37);
        lk2.a(37, lk3);
        lk3.h(39, n);
        lk3.h(40, n2);
    }

    public final ck h() {
        ck ck2 = new ck(this.h.f(3));
        c = ck2.a();
        return ck2;
    }

    public final String toString() {
        return "SVR[" + this.e + "]";
    }

    public final String g() {
        return this.h.g(2);
    }

    public final boolean f() {
        return !ed.b(ar.a(this.h, 2));
    }

    public final boolean i() {
        return this.h.h(17);
    }

    public final boolean y_() {
        return this.a;
    }

    public final boolean z_() {
        return true;
    }

    public final boolean A_() {
        return false;
    }

    public final int z() {
        return 40;
    }

    public final void a(hd hd2) {
        hd2.b();
        this.l();
    }
}

