package com.google.android.material.appbar;

import android.view.View;
import androidx.coordinatorlayout.widget.CoordinatorLayout;

/* JADX INFO: loaded from: classes2.dex */
public abstract class r extends d0.b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public s f22217a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f22218b = 0;

    public r() {
    }

    @Override // d0.b
    public boolean l(CoordinatorLayout coordinatorLayout, View view, int i10) {
        x(coordinatorLayout, view, i10);
        if (this.f22217a == null) {
            this.f22217a = new s(view);
        }
        s sVar = this.f22217a;
        View view2 = sVar.f22219a;
        sVar.f22220b = view2.getTop();
        sVar.f22221c = view2.getLeft();
        this.f22217a.a();
        int i11 = this.f22218b;
        if (i11 == 0) {
            return true;
        }
        this.f22217a.b(i11);
        this.f22218b = 0;
        return true;
    }

    public final int w() {
        s sVar = this.f22217a;
        if (sVar != null) {
            return sVar.f22222d;
        }
        return 0;
    }

    public void x(CoordinatorLayout coordinatorLayout, View view, int i10) {
        coordinatorLayout.p(i10, view);
    }

    public r(int i10) {
    }
}
