package com.tencent.mm.emoji.loader.c;

import a.f.a.b;
import a.f.a.m;
import a.f.b.k;
import a.l;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.storage.emotion.EmojiInfo;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005H\n¢\u0006\u0002\b\u0006"}, dWq = {"<anonymous>", "", "success", "", "config", "Lcom/tencent/mm/emoji/loader/fetcher/EmojiFetcherConfig;", "invoke"})
final class g$a extends k implements m<Boolean, d, y> {
    final /* synthetic */ EmojiInfo exH;
    final /* synthetic */ b exI;

    g$a(EmojiInfo emojiInfo, b bVar) {
        this.exH = emojiInfo;
        this.exI = bVar;
        super(2);
    }

    public final /* synthetic */ Object m(Object obj, Object obj2) {
        AppMethodBeat.i(63191);
        d dVar = (d) obj2;
        g gVar;
        if (!((Boolean) obj).booleanValue() || dVar == null) {
            gVar = g.exW;
            ab.i(g.getTAG(), "fetch: get config fail " + this.exH.Aq());
            b bVar = this.exI;
            if (bVar != null) {
                bVar.am(Boolean.FALSE);
            }
        } else {
            Object obj3;
            c cVar;
            gVar = g.exW;
            ab.i(g.getTAG(), dVar.exR + ' ' + dVar.exP.Aq());
            if (dVar.exR == 3) {
                obj3 = 1;
            } else {
                obj3 = null;
            }
            if (obj3 != null) {
                cVar = (c) new a();
            } else {
                cVar = (c) new f();
            }
            cVar.a(dVar, this.exI);
        }
        y yVar = y.AUy;
        AppMethodBeat.o(63191);
        return yVar;
    }
}
