package com.tencent.mm.plugin.emojicapture.model.a;

import a.f.a.a;
import a.f.b.j;
import a.f.b.k;
import a.l;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ab.b;
import com.tencent.mm.plugin.emojicapture.model.c.d;
import com.tencent.mm.plugin.emojicapture.model.c.i;
import com.tencent.mm.sdk.platformtools.ab;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "invoke"})
final class c$b extends k implements a<y> {
    final /* synthetic */ int lhT;

    c$b(int i) {
        this.lhT = i;
        super(0);
    }

    public final /* synthetic */ Object invoke() {
        b bVar;
        int i;
        AppMethodBeat.i(2640);
        e eVar = e.lii;
        int i2 = this.lhT;
        e.dO(e.lhY + e.lic + i2, e.lhX + e.lic + i2);
        c cVar = c.lhS;
        int i3 = 0;
        for (b bVar2 : c.bnt()) {
            if (bVar2.cuu == this.lhT) {
                i = i3;
                break;
            }
            i3++;
        }
        i = -1;
        if (i >= 0) {
            cVar = c.lhS;
            if (i < c.bnt().size()) {
                Object obj;
                cVar = c.lhS;
                Object obj2 = c.bnt().get(i);
                j.o(obj2, "stickerList[position]");
                bVar2 = (b) obj2;
                c cVar2 = c.lhS;
                for (Object next : c.bnu().ewZ) {
                    boolean z;
                    if (((d) next).ljp == this.lhT) {
                        z = true;
                        continue;
                    } else {
                        z = false;
                        continue;
                    }
                    if (z) {
                        obj = next;
                        break;
                    }
                }
                obj = null;
                d dVar = (d) obj;
                if (dVar != null) {
                    e eVar2 = e.lii;
                    String uw = e.uw(bVar2.cuu);
                    i iVar = new i();
                    com.tencent.mm.plugin.emojicapture.model.c.a.a aVar = com.tencent.mm.plugin.emojicapture.model.c.a.ljn;
                    com.tencent.mm.plugin.emojicapture.model.c.a.a.a(uw, (com.tencent.mm.plugin.emojicapture.model.c.a) iVar);
                    bVar2.version = iVar.ljI;
                    c cVar3 = c.lhS;
                    ab.i(c.bnv(), "onResUpdate: " + this.lhT + ", " + bVar2.version);
                    if (bVar2.version >= dVar.ljr) {
                        bVar2.ajN = true;
                        b.a((a) new 1(this, i));
                    }
                }
            }
        }
        y yVar = y.AUy;
        AppMethodBeat.o(2640);
        return yVar;
    }
}
