package com.google.android.material.appbar; import android.view.View; import androidx.core.view.n0; /* loaded from: classes2.dex */ class d { /* renamed from: a, reason: collision with root package name */ private final View f4292a; /* renamed from: b, reason: collision with root package name */ private int f4293b; /* renamed from: c, reason: collision with root package name */ private int f4294c; /* renamed from: d, reason: collision with root package name */ private int f4295d; /* renamed from: e, reason: collision with root package name */ private int f4296e; /* renamed from: f, reason: collision with root package name */ private boolean f4297f = true; /* renamed from: g, reason: collision with root package name */ private boolean f4298g = true; public d(View view) { this.f4292a = view; } void a() { View view = this.f4292a; n0.Y(view, this.f4295d - (view.getTop() - this.f4293b)); View view2 = this.f4292a; n0.X(view2, this.f4296e - (view2.getLeft() - this.f4294c)); } public int b() { return this.f4295d; } void c() { this.f4293b = this.f4292a.getTop(); this.f4294c = this.f4292a.getLeft(); } public boolean d(int i10) { if (!this.f4298g || this.f4296e == i10) { return false; } this.f4296e = i10; a(); return true; } public boolean e(int i10) { if (!this.f4297f || this.f4295d == i10) { return false; } this.f4295d = i10; a(); return true; } }