package h0;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import rm.n0;

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

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

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

        /* renamed from: b, reason: collision with root package name */
        final /* synthetic */ boolean f20497b;

        a(c0 c0Var, boolean z10) {
            this.f20496a = c0Var;
            this.f20497b = z10;
        }

        @Override // g0.e0
        public int a() {
            return this.f20496a.C().d() == b0.q.Vertical ? c3.r.f(this.f20496a.C().a()) : c3.r.g(this.f20496a.C().a());
        }

        @Override // g0.e0
        public float b() {
            return (float) y.a(this.f20496a);
        }

        @Override // g0.e0
        public int c() {
            return this.f20496a.C().e() + this.f20496a.C().b();
        }

        @Override // g0.e0
        public float d() {
            return (float) d0.g(this.f20496a.C(), this.f20496a.F());
        }

        @Override // g0.e0
        public o2.b e() {
            return this.f20497b ? new o2.b(this.f20496a.F(), 1) : new o2.b(1, this.f20496a.F());
        }

        @Override // g0.e0
        public Object f(int i10, vm.d dVar) {
            Object f10;
            Object Z = c0.Z(this.f20496a, i10, BitmapDescriptorFactory.HUE_RED, dVar, 2, null);
            f10 = wm.d.f();
            return Z == f10 ? Z : n0.f34904a;
        }
    }

    public static final g0.e0 a(c0 c0Var, boolean z10) {
        return new a(c0Var, z10);
    }
}
