package defpackage;

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

/* renamed from: ʿᵹ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class ChoreographerFrameCallbackC0476 implements Choreographer.FrameCallback {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ C3539 f2549;

    public ChoreographerFrameCallbackC0476(C3539 c3539) {
        this.f2549 = c3539;
    }

    @Override // android.view.Choreographer.FrameCallback
    public final void doFrame(long j) {
        long j2 = j / 1000000;
        C3539 c3539 = this.f2549;
        ArrayList arrayList = c3539.f13273;
        for (int i = 0; i < arrayList.size(); i++) {
            InterfaceC1739 interfaceC1739 = (InterfaceC1739) arrayList.get(i);
            if (interfaceC1739 != null) {
                interfaceC1739.mo4687(j2);
            }
        }
        if (c3539.f13271) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                if (arrayList.get(size) == null) {
                    arrayList.remove(size);
                }
            }
            c3539.f13271 = false;
        }
        if (arrayList.size() > 0) {
            ChoreographerFrameCallbackC0476 choreographerFrameCallbackC0476 = c3539.f13272;
            choreographerFrameCallbackC0476.getClass();
            Choreographer.getInstance().postFrameCallback(choreographerFrameCallbackC0476);
        }
    }
}
