package com.tencent.mm.pluginsdk.ui.applet;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.model.t;
import com.tencent.mm.pluginsdk.ui.applet.k.a;

class i$3 implements a {
    final /* synthetic */ i vkB;

    i$3(i iVar) {
        this.vkB = iVar;
    }

    public final void KT(int i) {
        int i2 = 1;
        AppMethodBeat.i(79733);
        if (!(this.vkB.rPU == null || this.vkB.vkt == null)) {
            j jVar = this.vkB.vkt;
            int i3 = jVar.vkL ? (jVar.ekq || i != jVar.vkJ + 2) ? 0 : 1 : (jVar.ekq || i != jVar.vkJ + 1) ? 0 : 1;
            if (i3 == 0) {
                jVar = this.vkB.vkt;
                if (jVar.ekq || i != jVar.vkJ) {
                    i3 = 0;
                } else {
                    i3 = 1;
                }
                if (i3 == 0) {
                    jVar = this.vkB.vkt;
                    if (jVar.ekq || i != jVar.vkJ + 1) {
                        i2 = 0;
                    }
                    if (i2 != 0) {
                        if (this.vkB.vkt.vkL) {
                            if (t.kH(this.vkB.username)) {
                                this.vkB.rPU.iA(i);
                                AppMethodBeat.o(79733);
                                return;
                            }
                            this.vkB.vkt.KU(0);
                            AppMethodBeat.o(79733);
                            return;
                        }
                    } else if (this.vkB.vkt.ekq && this.vkB.vkt.KW(i)) {
                        this.vkB.rPU.iA(i);
                        AppMethodBeat.o(79733);
                        return;
                    } else if (this.vkB.vkt.ekq && !this.vkB.vkt.KW(i)) {
                        this.vkB.rPU.JT();
                        AppMethodBeat.o(79733);
                        return;
                    } else if (!this.vkB.vkt.ekq && this.vkB.vkt.KW(i)) {
                        this.vkB.rPU.iB(i);
                    }
                } else if (this.vkB.vkt.vkM) {
                    this.vkB.rPU.iC(i);
                    AppMethodBeat.o(79733);
                    return;
                }
            }
        }
        AppMethodBeat.o(79733);
    }
}
