package ඓ.ῲ.K.ᕣ.ᨨ;

import com.bumptech.glide.load.DataSource;
import java.io.File;
import java.util.List;
import ඓ.ῲ.K.ᕣ.AbstractC1029;
import ඓ.ῲ.K.ᕣ.ᨨ.AbstractC1021;
import ඓ.ῲ.K.ᕣ.㳳.AbstractC1033;
import ඓ.ῲ.K.ᕣ.㿎.AbstractC1146;

/* renamed from: ඓ.ῲ.K.ᕣ.ᨨ.ʬ  reason: contains not printable characters */
/* compiled from: DataCacheGenerator */
public class C0934 implements AbstractC1021, AbstractC1146.AbstractC1147<Object> {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final C0956<?> f4228;

    /* renamed from: ඓ  reason: contains not printable characters */
    public int f4229 = -1;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public volatile AbstractC1033.C1034<?> f4230;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final List<AbstractC1029> f4231;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public List<AbstractC1033<File, ?>> f4232;

    /* renamed from: 㳳  reason: contains not printable characters */
    public File f4233;

    /* renamed from: 㴹  reason: contains not printable characters */
    public AbstractC1029 f4234;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final AbstractC1021.AbstractC1022 f4235;

    /* renamed from: 㿎  reason: contains not printable characters */
    public int f4236;

    public C0934(List<AbstractC1029> list, C0956<?> r3, AbstractC1021.AbstractC1022 k) {
        this.f4231 = list;
        this.f4228 = r3;
        this.f4235 = k;
    }

    @Override // ඓ.ῲ.K.ᕣ.ᨨ.AbstractC1021
    public void cancel() {
        AbstractC1033.C1034<?> k = this.f4230;
        if (k != null) {
            k.f4474.cancel();
        }
    }

    @Override // ඓ.ῲ.K.ᕣ.ᨨ.AbstractC1021
    /* renamed from: K  reason: contains not printable characters */
    public boolean m2652() {
        while (true) {
            List<AbstractC1033<File, ?>> list = this.f4232;
            if (list != null) {
                if (this.f4236 < list.size()) {
                    this.f4230 = null;
                    boolean z = false;
                    while (!z) {
                        if (!(this.f4236 < this.f4232.size())) {
                            break;
                        }
                        List<AbstractC1033<File, ?>> list2 = this.f4232;
                        int i = this.f4236;
                        this.f4236 = i + 1;
                        File file = this.f4233;
                        C0956<?> r5 = this.f4228;
                        this.f4230 = list2.get(i).m2849(file, r5.f4305, r5.f4316, r5.f4308);
                        if (this.f4230 != null && this.f4228.m2709(this.f4230.f4474.m3066())) {
                            this.f4230.f4474.m3067(this.f4228.f4313, this);
                            z = true;
                        }
                    }
                    return z;
                }
            }
            this.f4229++;
            if (this.f4229 >= this.f4231.size()) {
                return false;
            }
            AbstractC1029 r0 = this.f4231.get(this.f4229);
            this.f4233 = this.f4228.m2710().m2799(new C1024(r0, this.f4228.f4303));
            File file2 = this.f4233;
            if (file2 != null) {
                this.f4234 = r0;
                this.f4232 = this.f4228.m2713(file2);
                this.f4236 = 0;
            }
        }
    }

    @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146.AbstractC1147
    /* renamed from: K  reason: contains not printable characters */
    public void m2651(Object obj) {
        this.f4235.m2836(this.f4234, obj, this.f4230.f4474, DataSource.DATA_DISK_CACHE, this.f4234);
    }

    @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146.AbstractC1147
    /* renamed from: K  reason: contains not printable characters */
    public void m2650(Exception exc) {
        this.f4235.m2835(this.f4234, exc, this.f4230.f4474, DataSource.DATA_DISK_CACHE);
    }
}
