package com.google.android.material.bottomsheet;

import android.view.View;
import androidx.core.view.d2;
import androidx.core.view.f3;
import androidx.core.view.l2;
import java.util.Iterator;
import java.util.List;

/* JADX INFO: loaded from: classes2.dex */
public final class q extends d2 {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final View f22335c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f22336d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f22337e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final int[] f22338f = new int[2];

    public q(View view) {
        this.f22335c = view;
    }

    @Override // androidx.core.view.d2
    public final f3 a(f3 f3Var, List list) {
        Iterator it = list.iterator();
        while (true) {
            if (!it.hasNext()) {
                break;
            }
            if ((((l2) it.next()).f1784a.c() & 8) != 0) {
                this.f22335c.setTranslationY(y8.a.c(r0.f1784a.b(), this.f22337e, 0));
                break;
            }
        }
        return f3Var;
    }
}
