/*
 * Decompiled with CFR 0.152.
 */
import java.util.Hashtable;

public final class dh
extends oe {
    private jt b;
    private Hashtable c;
    private int d;
    private boolean e;
    private ps f;

    public final boolean a() {
        return true;
    }

    private void e() {
        le le2 = null;
        dk dk2 = (dk)this.c.get(this.b.h());
        if (dk2 != null) {
            switch (this.d) {
                case 1: {
                    le2 = dk2.f;
                    break;
                }
                case 2: {
                    le2 = dk2.a();
                    break;
                }
                case 0: {
                    le2 = dk2.e;
                }
            }
        }
        if (this.a(le2) || !this.e) {
            this.e = true;
            this.a(this.h(), this.i());
            this.t();
        }
    }

    public final void b(ht ht2, int n, int n2) {
        block8: {
            int n3;
            int n4;
            int n5;
            boolean bl2;
            block7: {
                jt jt2;
                block6: {
                    bl2 = this.c.get(this.b.h()) != null;
                    n5 = bl2 ? super.h() : this.f.b(this.d);
                    n4 = bl2 ? super.i() : this.f.a(this.d);
                    jt2 = this.b;
                    if (!jt2.h()) break block6;
                    n3 = jt2.o() ? -16621882 : -7566196;
                    break block7;
                }
                if (!jt2.c()) break block8;
                n3 = -1184275;
            }
            int n6 = n + 3;
            ht2.a(n3);
            n3 = n2 + 3 + 1;
            ht2.c(n6 - 3, n3 - 3, n5 + 6, n4 + 6);
            if (false) {
                ht2.a(-16777216);
                ht2.d(n6 - 3, n3 - 3, n5 + 6 - 1, n4 + 6 - 1);
            }
            n2 = n2 + 3 + 1;
            n += 3;
            if (bl2) {
                if (this.a != null) {
                    super.b(ht2, n, n2);
                    return;
                }
                this.e();
                return;
            }
            this.f.a(this.b.h(), this.d, ht2, n, n2);
            return;
        }
        throw new IllegalStateException("Should not be drawing feature icon.");
    }

    public final int h() {
        int n = (dk)this.c.get(this.b.h()) != null ? super.h() : this.f.b(this.d);
        if (n <= 0) {
            return n;
        }
        return n + 6;
    }

    public final int i() {
        int n = super.i();
        if ((dk)this.c.get(this.b.h()) == null) {
            n = this.f.a(this.d);
        }
        if (n > 0) {
            return n + 6 + 2;
        }
        return n;
    }

    public dh(jt jt2, Hashtable hashtable, int n, ps ps2) {
        super(null);
        this.b = jt2;
        this.c = hashtable;
        this.d = n;
        this.f = ps2;
        this.e();
    }

    public final void c_(int n) {
        this.e();
    }
}

