package o; import android.graphics.Rect; import androidx.recyclerview.widget.RecyclerView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; /* renamed from: o.pIo, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ public final class C16549pIo { public final int a; public final int b; public final long c; public final int d; public final int e; public final int f; public final int h; private int i; public final Rect j; public C16549pIo(RecyclerView.zJl zjl, int i, int i2) { this.f = zjl.itemView.getWidth(); this.d = zjl.itemView.getHeight(); this.c = zjl.getItemId(); int left = zjl.itemView.getLeft(); this.b = left; int top = zjl.itemView.getTop(); this.h = top; this.a = i - left; this.e = i2 - top; Rect rect = new Rect(); this.j = rect; BvX.Of_(zjl.itemView, rect); this.i = BvX.e(zjl); } /* JADX INFO: Access modifiers changed from: package-private */ public C16549pIo(C16549pIo c16549pIo, RecyclerView.zJl zjl) { this.c = c16549pIo.c; int width = zjl.itemView.getWidth(); this.f = width; int height = zjl.itemView.getHeight(); this.d = height; this.j = new Rect(c16549pIo.j); this.i = BvX.e(zjl); this.b = c16549pIo.b; this.h = c16549pIo.h; float f = c16549pIo.f; float f2 = width; float f3 = f2 * 0.5f; float f4 = height; float f5 = f4 * 0.5f; float f6 = (c16549pIo.a - (f * 0.5f)) + f3; float f7 = (c16549pIo.e - (c16549pIo.d * 0.5f)) + f5; if (f6 >= BitmapDescriptorFactory.HUE_RED && f6 < f2) { f3 = f6; } this.a = (int) f3; if (f7 >= BitmapDescriptorFactory.HUE_RED && f7 < f4) { f5 = f7; } this.e = (int) f5; } }