package p421.p433.p434.p445;

import java.util.concurrent.ExecutorService;
import net.lingala.zip4j.exception.ZipException;
import p421.p433.p434.p444.C6837;

/* JADX INFO: renamed from: ޏ.ؠ.֏.ބ.ބ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC6848<T> {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C6837 f19877;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public boolean f19878;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public ExecutorService f19879;

    /* JADX INFO: renamed from: ޏ.ؠ.֏.ބ.ބ$֏, reason: contains not printable characters */
    public static class C6849 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public C6837 f19880;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public boolean f19881;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public ExecutorService f19882;

        public C6849(ExecutorService executorService, boolean z, C6837 c6837) {
            this.f19882 = executorService;
            this.f19881 = z;
            this.f19880 = c6837;
        }
    }

    public AbstractC6848(C6849 c6849) {
        this.f19877 = c6849.f19880;
        this.f19878 = c6849.f19881;
        this.f19879 = c6849.f19882;
    }

    /* JADX INFO: renamed from: ֏ */
    public abstract long mo9990(T t);

    /* JADX INFO: renamed from: ֏ */
    public abstract C6837.EnumC6840 mo9986();

    /* JADX INFO: renamed from: ֏ */
    public abstract void mo9991(T t, C6837 c6837);

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void m9992() {
        if (this.f19877 == null) {
            throw null;
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void m9993(final T t) throws ZipException {
        C6837 c6837 = this.f19877;
        c6837.m9979();
        c6837.f19845 = 0L;
        c6837.f19846 = 0L;
        c6837.f19847 = 0;
        C6837 c68372 = this.f19877;
        c68372.f19844 = C6837.EnumC6839.BUSY;
        mo9986();
        if (c68372 == null) {
            throw null;
        }
        if (!this.f19878) {
            m9994(t, this.f19877);
        } else {
            this.f19877.f19845 = mo9990(t);
            this.f19879.execute(new Runnable() { // from class: ޏ.ؠ.֏.ބ.֏
                @Override // java.lang.Runnable
                public final void run() {
                    this.f19865.m9995(t);
                }
            });
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m9994(T t, C6837 c6837) throws ZipException {
        try {
            mo9991(t, c6837);
            if (c6837 == null) {
                throw null;
            }
            C6837.EnumC6838 enumC6838 = C6837.EnumC6838.SUCCESS;
            c6837.f19847 = 100;
            c6837.m9979();
        } catch (ZipException e) {
            if (c6837 == null) {
                throw null;
            }
            C6837.EnumC6838 enumC68382 = C6837.EnumC6838.ERROR;
            c6837.m9979();
            throw e;
        } catch (Exception e2) {
            if (c6837 == null) {
                throw null;
            }
            C6837.EnumC6838 enumC68383 = C6837.EnumC6838.ERROR;
            c6837.m9979();
            throw new ZipException(e2);
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public /* synthetic */ void m9995(Object obj) {
        try {
            m9994(obj, this.f19877);
        } catch (ZipException unused) {
        }
    }
}
