package defpackage;

import android.view.Choreographer;
import java.util.ArrayList;

/* JADX INFO: renamed from: ᵼᵬᵞ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class ChoreographerFrameCallbackC5312 implements Choreographer.FrameCallback {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ C0872 f20043;

    public ChoreographerFrameCallbackC5312(C0872 c0872) {
        this.f20043 = c0872;
    }

    @Override // android.view.Choreographer.FrameCallback
    public final void doFrame(long j) {
        long j2 = j / 1000000;
        C0872 c0872 = this.f20043;
        ArrayList arrayList = c0872.f3867;
        for (int i = 0; i < arrayList.size(); i++) {
            InterfaceC3064 interfaceC3064 = (InterfaceC3064) arrayList.get(i);
            if (interfaceC3064 != null) {
                interfaceC3064.mo2671(j2);
            }
        }
        if (c0872.f3868) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                if (arrayList.get(size) == null) {
                    arrayList.remove(size);
                }
            }
            c0872.f3868 = false;
        }
        if (arrayList.size() > 0) {
            ChoreographerFrameCallbackC5312 choreographerFrameCallbackC5312 = c0872.f3869;
            choreographerFrameCallbackC5312.getClass();
            Choreographer.getInstance().postFrameCallback(choreographerFrameCallbackC5312);
        }
    }
}
