package IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2;

import IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.KQgRr5e_0.PGPF6hQ_2;
import IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.Mqv2r_3;
import android.util.SparseArray;
/* compiled from: Listener4Assist.java */
/* loaded from: classes.dex */
public class KQgRr5e_0<T extends PGPF6hQ_2> implements IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.PGPF6hQ_2 {
    public InterfaceC0007KQgRr5e_0 KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public QxJ9d_1 f131KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Mqv2r_3<T> f132KQgRr5e_0;

    /* compiled from: Listener4Assist.java */
    /* renamed from: IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public interface InterfaceC0007KQgRr5e_0 {
        boolean KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, int i, long j, PGPF6hQ_2 pGPF6hQ_22);

        boolean KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, int i, PGPF6hQ_2 pGPF6hQ_22);

        boolean KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.Mqv2r_3.PGPF6hQ_2 pGPF6hQ_22, boolean z, PGPF6hQ_2 pGPF6hQ_23);

        boolean KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.X6FRs_4.KQgRr5e_0 kQgRr5e_0, Exception exc, PGPF6hQ_2 pGPF6hQ_22);
    }

    /* compiled from: Listener4Assist.java */
    /* loaded from: classes.dex */
    public static class PGPF6hQ_2 implements Mqv2r_3.KQgRr5e_0 {
        public final int KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public long f133KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.Mqv2r_3.PGPF6hQ_2 f134KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public SparseArray<Long> f135KQgRr5e_0;

        public PGPF6hQ_2(int i) {
            this.KQgRr5e_0 = i;
        }

        @Override // IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.Mqv2r_3.KQgRr5e_0
        public void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.Mqv2r_3.PGPF6hQ_2 pGPF6hQ_2) {
            this.f134KQgRr5e_0 = pGPF6hQ_2;
            this.f133KQgRr5e_0 = pGPF6hQ_2.m94QxJ9d_1();
            SparseArray<Long> sparseArray = new SparseArray<>();
            int KQgRr5e_0 = pGPF6hQ_2.KQgRr5e_0();
            for (int i = 0; i < KQgRr5e_0; i++) {
                sparseArray.put(i, Long.valueOf(pGPF6hQ_2.KQgRr5e_0(i).QxJ9d_1()));
            }
            this.f135KQgRr5e_0 = sparseArray;
        }

        @Override // IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.Mqv2r_3.KQgRr5e_0
        public int getId() {
            return this.KQgRr5e_0;
        }
    }

    /* compiled from: Listener4Assist.java */
    /* loaded from: classes.dex */
    public interface QxJ9d_1 {
        void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, int i, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.Mqv2r_3.KQgRr5e_0 kQgRr5e_0);

        void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, long j);

        void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.Mqv2r_3.PGPF6hQ_2 pGPF6hQ_22, boolean z, PGPF6hQ_2 pGPF6hQ_23);

        void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.X6FRs_4.KQgRr5e_0 kQgRr5e_0, Exception exc, PGPF6hQ_2 pGPF6hQ_22);

        void Mqv2r_3(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, int i, long j);
    }

    public KQgRr5e_0(Mqv2r_3.QxJ9d_1<T> qxJ9d_1) {
        this.f132KQgRr5e_0 = new Mqv2r_3<>(qxJ9d_1);
    }

    public void KQgRr5e_0(QxJ9d_1 qxJ9d_1) {
        this.f131KQgRr5e_0 = qxJ9d_1;
    }

    public void KQgRr5e_0(InterfaceC0007KQgRr5e_0 interfaceC0007KQgRr5e_0) {
        this.KQgRr5e_0 = interfaceC0007KQgRr5e_0;
    }

    public void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.Mqv2r_3.PGPF6hQ_2 pGPF6hQ_22, boolean z) {
        QxJ9d_1 qxJ9d_1;
        T KQgRr5e_0 = this.f132KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, pGPF6hQ_22);
        InterfaceC0007KQgRr5e_0 interfaceC0007KQgRr5e_0 = this.KQgRr5e_0;
        if ((interfaceC0007KQgRr5e_0 == null || !interfaceC0007KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, pGPF6hQ_22, z, KQgRr5e_0)) && (qxJ9d_1 = this.f131KQgRr5e_0) != null) {
            qxJ9d_1.KQgRr5e_0(pGPF6hQ_2, pGPF6hQ_22, z, KQgRr5e_0);
        }
    }

    public void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, int i, long j) {
        QxJ9d_1 qxJ9d_1;
        T QxJ9d_12 = this.f132KQgRr5e_0.QxJ9d_1(pGPF6hQ_2, pGPF6hQ_2.KQgRr5e_0());
        if (QxJ9d_12 == null) {
            return;
        }
        long longValue = QxJ9d_12.f135KQgRr5e_0.get(i).longValue() + j;
        QxJ9d_12.f135KQgRr5e_0.put(i, Long.valueOf(longValue));
        QxJ9d_12.f133KQgRr5e_0 += j;
        InterfaceC0007KQgRr5e_0 interfaceC0007KQgRr5e_0 = this.KQgRr5e_0;
        if ((interfaceC0007KQgRr5e_0 == null || !interfaceC0007KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, i, j, QxJ9d_12)) && (qxJ9d_1 = this.f131KQgRr5e_0) != null) {
            qxJ9d_1.Mqv2r_3(pGPF6hQ_2, i, longValue);
            this.f131KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, QxJ9d_12.f133KQgRr5e_0);
        }
    }

    public void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, int i) {
        QxJ9d_1 qxJ9d_1;
        T QxJ9d_12 = this.f132KQgRr5e_0.QxJ9d_1(pGPF6hQ_2, pGPF6hQ_2.KQgRr5e_0());
        if (QxJ9d_12 == null) {
            return;
        }
        InterfaceC0007KQgRr5e_0 interfaceC0007KQgRr5e_0 = this.KQgRr5e_0;
        if ((interfaceC0007KQgRr5e_0 == null || !interfaceC0007KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, i, QxJ9d_12)) && (qxJ9d_1 = this.f131KQgRr5e_0) != null) {
            qxJ9d_1.KQgRr5e_0(pGPF6hQ_2, i, QxJ9d_12.f134KQgRr5e_0.KQgRr5e_0(i));
        }
    }

    public synchronized void KQgRr5e_0(IMuAHx_6.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2, IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.X6FRs_4.KQgRr5e_0 kQgRr5e_0, Exception exc) {
        T PGPF6hQ_22 = this.f132KQgRr5e_0.PGPF6hQ_2(pGPF6hQ_2, pGPF6hQ_2.KQgRr5e_0());
        if (this.KQgRr5e_0 == null || !this.KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, kQgRr5e_0, exc, PGPF6hQ_22)) {
            if (this.f131KQgRr5e_0 != null) {
                this.f131KQgRr5e_0.KQgRr5e_0(pGPF6hQ_2, kQgRr5e_0, exc, PGPF6hQ_22);
            }
        }
    }

    @Override // IMuAHx_6.KQgRr5e_0.KQgRr5e_0.XnFJ5_9.KNBe_11.PGPF6hQ_2.PGPF6hQ_2
    public void KQgRr5e_0(boolean z) {
        this.f132KQgRr5e_0.KQgRr5e_0(z);
    }
}
