package u1;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import r1.m;
import r1.n;
import s1.a0;
import s1.f1;
import s1.x0;

/* loaded from: classes.dex */
public abstract class b {

    /* loaded from: classes.dex */
    public static final class a implements h {

        /* renamed from: a, reason: collision with root package name */
        final /* synthetic */ d f36763a;

        a(d dVar) {
            this.f36763a = dVar;
        }

        @Override // u1.h
        public void a(f1 f1Var, int i10) {
            this.f36763a.i().a(f1Var, i10);
        }

        @Override // u1.h
        public void b(float[] fArr) {
            this.f36763a.i().q(fArr);
        }

        @Override // u1.h
        public void c(float f10, float f11, float f12, float f13, int i10) {
            this.f36763a.i().c(f10, f11, f12, f13, i10);
        }

        @Override // u1.h
        public void d(float f10, float f11) {
            this.f36763a.i().d(f10, f11);
        }

        @Override // u1.h
        public void g(float f10, float f11, long j10) {
            a0 i10 = this.f36763a.i();
            i10.d(r1.g.m(j10), r1.g.n(j10));
            i10.f(f10, f11);
            i10.d(-r1.g.m(j10), -r1.g.n(j10));
        }

        @Override // u1.h
        public void h(float f10, float f11, float f12, float f13) {
            a0 i10 = this.f36763a.i();
            d dVar = this.f36763a;
            long a10 = n.a(m.i(j()) - (f12 + f10), m.g(j()) - (f13 + f11));
            if (!(m.i(a10) >= BitmapDescriptorFactory.HUE_RED && m.g(a10) >= BitmapDescriptorFactory.HUE_RED)) {
                x0.a("Width and height must be greater than or equal to zero");
            }
            dVar.g(a10);
            i10.d(f10, f11);
        }

        @Override // u1.h
        public void i(float f10, long j10) {
            a0 i10 = this.f36763a.i();
            i10.d(r1.g.m(j10), r1.g.n(j10));
            i10.h(f10);
            i10.d(-r1.g.m(j10), -r1.g.n(j10));
        }

        public long j() {
            return this.f36763a.b();
        }
    }

    public static final /* synthetic */ h a(d dVar) {
        return b(dVar);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final h b(d dVar) {
        return new a(dVar);
    }
}
