package com.tencent.mm.emoji.a;

import a.f.b.j;
import a.l;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.emoji.a.c.b;
import com.tencent.mm.emoji.a.d.c;
import com.tencent.mm.kernel.b.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.emoji.b.d;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\u001e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0005\u001a\n \u0007*\u0004\u0018\u00010\u00060\u00062\u000e\u0010\b\u001a\n \u0007*\u0004\u0018\u00010\u00060\u00062\u0006\u0010\t\u001a\u00020\nH\n¢\u0006\u0002\b\u000b"}, dWq = {"<anonymous>", "", "errType", "", "errCode", "errMsg", "", "kotlin.jvm.PlatformType", "gifMd5", "isTooLarge", "", "onUploadEnd"})
final class d$c$1 implements b {
    final /* synthetic */ c ezb;

    d$c$1(c cVar) {
        this.ezb = cVar;
    }

    public final void b(int i, int i2, String str, boolean z) {
        AppMethodBeat.i(63245);
        d.b bVar;
        a M;
        if (i == 0 && i2 == 0) {
            d.a(this.ezb.eza, str);
            AppMethodBeat.o(63245);
        } else if (5 == i2) {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(5, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (6 == i2) {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(6, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (7 == i2) {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(7, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (4 == i2) {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(4, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (-434 == i2) {
            if (5 > this.ezb.eza.exP.dva()) {
                this.ezb.eza.exP.dvb();
                M = g.M(d.class);
                j.o(M, "MMKernel.plugin(IPluginEmoji::class.java)");
                ((d) M).getEmojiMgr().updateEmojiInfo(this.ezb.eza.exP);
                bVar = this.ezb.eza.eyY;
                if (bVar != null) {
                    bVar.f(3, null, null);
                    AppMethodBeat.o(63245);
                    return;
                }
                AppMethodBeat.o(63245);
                return;
            }
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(9, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (z) {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(2, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (-24 == i2) {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(8, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else if (5 > this.ezb.eza.exP.dva()) {
            this.ezb.eza.exP.dvb();
            M = g.M(d.class);
            j.o(M, "MMKernel.plugin(IPluginEmoji::class.java)");
            ((d) M).getEmojiMgr().updateEmojiInfo(this.ezb.eza.exP);
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(1, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        } else {
            bVar = this.ezb.eza.eyY;
            if (bVar != null) {
                bVar.f(9, null, null);
                AppMethodBeat.o(63245);
                return;
            }
            AppMethodBeat.o(63245);
        }
    }
}
