package P;

import android.view.WindowInsets;

/* JADX INFO: loaded from: classes.dex */
public class j0 extends i0 {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public G.b f2461n;

    public j0(s0 s0Var, WindowInsets windowInsets) {
        super(s0Var, windowInsets);
        this.f2461n = null;
    }

    @Override // P.p0
    public s0 b() {
        return s0.d(null, this.f2455c.consumeStableInsets());
    }

    @Override // P.p0
    public s0 c() {
        return s0.d(null, this.f2455c.consumeSystemWindowInsets());
    }

    @Override // P.p0
    public final G.b h() {
        if (this.f2461n == null) {
            WindowInsets windowInsets = this.f2455c;
            this.f2461n = G.b.b(windowInsets.getStableInsetLeft(), windowInsets.getStableInsetTop(), windowInsets.getStableInsetRight(), windowInsets.getStableInsetBottom());
        }
        return this.f2461n;
    }

    @Override // P.p0
    public boolean m() {
        return this.f2455c.isConsumed();
    }

    @Override // P.p0
    public void r(G.b bVar) {
        this.f2461n = bVar;
    }
}
