package com.tencent.mm.plugin.appbrand;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.i.a;
import com.tencent.mm.plugin.appbrand.i.b;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.concurrent.ConcurrentLinkedQueue;

class i$8 implements a {
    final /* synthetic */ i gOb;
    final /* synthetic */ ConcurrentLinkedQueue gOi;
    final /* synthetic */ b gOj;
    final /* synthetic */ a gOk;

    i$8(i iVar, ConcurrentLinkedQueue concurrentLinkedQueue, b bVar, a aVar) {
        this.gOb = iVar;
        this.gOi = concurrentLinkedQueue;
        this.gOj = bVar;
        this.gOk = aVar;
    }

    public final void done() {
        AppMethodBeat.i(86659);
        if (this.gOi.remove(this.gOj)) {
            if (this.gOi.isEmpty()) {
                this.gOk.done();
            }
            AppMethodBeat.o(86659);
            return;
        }
        ab.e("MicroMsg.AppBrandRuntime", "[%s]prepare duplicate ready() called", new Object[]{this.gOb.mAppId});
        AppMethodBeat.o(86659);
    }
}
