package com.tencent.mm.plugin.appbrand.launching;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.appcache.WxaPkgWrappingInfo;
import com.tencent.mm.plugin.appbrand.appcache.bd;
import com.tencent.mm.plugin.appbrand.r.j;
import com.tencent.mm.protocal.protobuf.arc;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;

final class ah$c implements Callable<WxaPkgWrappingInfo> {
    private final arc iiu;
    final /* synthetic */ ah iiv;
    private final int iix;

    /* synthetic */ ah$c(ah ahVar, int i, arc arc, byte b) {
        this(ahVar, i, arc);
    }

    private ah$c(ah ahVar, int i, arc arc) {
        this.iiv = ahVar;
        this.iix = i;
        this.iiu = arc;
    }

    /* Access modifiers changed, original: final */
    public final WxaPkgWrappingInfo aHA() {
        AppMethodBeat.i(131968);
        CountDownLatch countDownLatch = new CountDownLatch(1);
        j jVar = new j();
        if (bd.a(this.iiu.wuP, this.iiv.appId, this.iix, 0, new 1(this, this.iiv.har, jVar, countDownLatch))) {
            try {
                countDownLatch.await();
            } catch (InterruptedException e) {
                ab.printErrStackTrace("MicroMsg.AppBrand.PrepareStepCheckAppPkg", e, "doZstdJob semaphore exp ", new Object[0]);
            }
            WxaPkgWrappingInfo wxaPkgWrappingInfo = (WxaPkgWrappingInfo) jVar.value;
            AppMethodBeat.o(131968);
            return wxaPkgWrappingInfo;
        }
        AppMethodBeat.o(131968);
        return null;
    }

    public final /* synthetic */ Object call() {
        AppMethodBeat.i(131969);
        WxaPkgWrappingInfo aHA = aHA();
        AppMethodBeat.o(131969);
        return aHA;
    }
}
