package com.google.android.play.core.assetpacks;

import X.4Ms;
import android.content.Context;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.google.android.play.core.b.bi;
import com.google.android.play.core.b.bk;
import java.io.File;
import java.util.concurrent.Executor;

public final class bv implements bk<bu> {
    public final bk<String> LIZ;
    public final bk<w> LIZIZ;
    public final bk<ay> LIZJ;
    public final bk<Context> LIZLLL;
    public final bk<ch> LJ;
    public final bk<Executor> LJFF;

    static {
        Covode.recordClassIndex(44155);
    }

    public bv(bk<String> bkVar, bk<w> bkVar2, bk<ay> bkVar3, bk<Context> bkVar4, bk<ch> bkVar5, bk<Executor> bkVar6) {
        this.LIZ = bkVar;
        this.LIZIZ = bkVar2;
        this.LIZJ = bkVar3;
        this.LIZLLL = bkVar4;
        this.LJ = bkVar5;
        this.LJFF = bkVar6;
    }

    public static File LIZ(Context context) {
        if (!TextUtils.isEmpty((CharSequence) null)) {
            return context.getExternalFilesDir((String) null);
        }
        if (4Ms.LIZLLL != null && 4Ms.LJ) {
            return 4Ms.LIZLLL;
        }
        File externalFilesDir = context.getExternalFilesDir((String) null);
        4Ms.LIZLLL = externalFilesDir;
        return externalFilesDir;
    }

    public final /* synthetic */ Object LIZ() {
        String LIZ2 = this.LIZ.LIZ();
        w LIZ3 = this.LIZIZ.LIZ();
        ay LIZ4 = this.LIZJ.LIZ();
        Context LIZ5 = dg.LIZ(((dg) this.LIZLLL).LIZ);
        ch LIZ6 = this.LJ.LIZ();
        return new bu(LIZ2 != null ? new File(LIZ(LIZ5), LIZ2) : LIZ(LIZ5), LIZ3, LIZ4, LIZ5, LIZ6, bi.LIZIZ(this.LJFF));
    }
}
