package o;

import android.view.View;
import java.util.Iterator;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class MH extends AbstractC2071oh {
    public final View n;

    /* renamed from: o, reason: collision with root package name */
    public int f230o;
    public int p;
    public final int[] q;

    public MH(View view) {
        super(0);
        this.q = new int[2];
        this.n = view;
    }

    @Override // o.AbstractC2071oh
    public final void d(C2554tl0 c2554tl0) {
        this.n.setTranslationY(0.0f);
    }

    @Override // o.AbstractC2071oh
    public final void e() {
        View view = this.n;
        int[] iArr = this.q;
        view.getLocationOnScreen(iArr);
        this.f230o = iArr[1];
    }

    @Override // o.AbstractC2071oh
    public final Kl0 f(Kl0 kl0, List list) {
        Iterator it = list.iterator();
        while (true) {
            if (!it.hasNext()) {
                break;
            }
            if ((((C2554tl0) it.next()).a.d() & 8) != 0) {
                this.n.setTranslationY(T6.c(r0.a.c(), this.p, 0));
                break;
            }
        }
        return kl0;
    }

    @Override // o.AbstractC2071oh
    public final C3040yr g(C2554tl0 c2554tl0, C3040yr c3040yr) {
        View view = this.n;
        int[] iArr = this.q;
        view.getLocationOnScreen(iArr);
        int i = this.f230o - iArr[1];
        this.p = i;
        view.setTranslationY(i);
        return c3040yr;
    }
}
