package G;

import G0.InterfaceC0247b0;
import java.util.List;
import java.util.Map;
import x.EnumC3207z0;
import x4.AbstractC3251q;

/* JADX INFO: loaded from: classes.dex */
public final class y implements InterfaceC0247b0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Object f1822a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f1823b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f1824c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f1825d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final EnumC3207z0 f1826e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final int f1827f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final int f1828g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final int f1829h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final C0234i f1830i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final C0234i f1831j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final float f1832k;
    public final int l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final boolean f1833m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final y.l f1834n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final InterfaceC0247b0 f1835o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final boolean f1836p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final List f1837q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final List f1838r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final V4.C f1839s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final h1.c f1840t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final long f1841u;

    /* JADX WARN: Illegal instructions before constructor call */
    public /* synthetic */ y(int i6, int i7, int i8, int i9, int i10, int i11, y.l lVar, InterfaceC0247b0 interfaceC0247b0, V4.C c6, h1.c cVar, long j4) {
        x4.y yVar = x4.y.f26065a;
        this(yVar, i6, i7, i8, EnumC3207z0.f25985b, i9, i10, i11, null, null, 0.0f, 0, false, lVar, interfaceC0247b0, false, yVar, yVar, c6, cVar, j4);
    }

    /* JADX WARN: Type inference failed for: r5v0, types: [java.lang.Object, java.util.Collection, java.util.List] */
    public final y a(int i6) {
        int i7;
        int i8 = this.f1823b + this.f1824c;
        if (this.f1836p) {
            return null;
        }
        ?? r5 = this.f1822a;
        if (r5.isEmpty() || this.f1830i == null || (i7 = this.l - i6) < 0 || i7 >= i8) {
            return null;
        }
        float f6 = this.f1832k - (i8 != 0 ? i6 / i8 : 0.0f);
        if (this.f1831j == null || f6 >= 0.5f || f6 <= -0.5f) {
            return null;
        }
        C0234i c0234i = (C0234i) AbstractC3251q.e0(r5);
        C0234i c0234i2 = (C0234i) AbstractC3251q.n0(r5);
        int i9 = this.f1828g;
        int i10 = this.f1827f;
        if (i6 < 0) {
            if (Math.min((c0234i.f1765j + i8) - i10, (c0234i2.f1765j + i8) - i9) <= (-i6)) {
                return null;
            }
        } else if (Math.min(i10 - c0234i.f1765j, i9 - c0234i2.f1765j) <= i6) {
            return null;
        }
        int size = r5.size();
        for (int i11 = 0; i11 < size; i11++) {
            ((C0234i) r5.get(i11)).a(i6);
        }
        List list = this.f1837q;
        int size2 = list.size();
        for (int i12 = 0; i12 < size2; i12++) {
            ((C0234i) list.get(i12)).a(i6);
        }
        List list2 = this.f1838r;
        int size3 = list2.size();
        for (int i13 = 0; i13 < size3; i13++) {
            ((C0234i) list2.get(i13)).a(i6);
        }
        return new y(r5, this.f1823b, this.f1824c, this.f1825d, this.f1826e, this.f1827f, this.f1828g, this.f1829h, this.f1830i, this.f1831j, f6, i7, this.f1833m || i6 > 0, this.f1834n, this.f1835o, this.f1836p, this.f1837q, this.f1838r, this.f1839s, this.f1840t, this.f1841u);
    }

    @Override // G0.InterfaceC0247b0
    public final Map b() {
        return this.f1835o.b();
    }

    @Override // G0.InterfaceC0247b0
    public final void c() {
        this.f1835o.c();
    }

    @Override // G0.InterfaceC0247b0
    public final J4.c d() {
        return this.f1835o.d();
    }

    public final long e() {
        InterfaceC0247b0 interfaceC0247b0 = this.f1835o;
        return (((long) interfaceC0247b0.getWidth()) << 32) | (((long) interfaceC0247b0.getHeight()) & 4294967295L);
    }

    @Override // G0.InterfaceC0247b0
    public final int getHeight() {
        return this.f1835o.getHeight();
    }

    @Override // G0.InterfaceC0247b0
    public final int getWidth() {
        return this.f1835o.getWidth();
    }

    public y(List list, int i6, int i7, int i8, EnumC3207z0 enumC3207z0, int i9, int i10, int i11, C0234i c0234i, C0234i c0234i2, float f6, int i12, boolean z6, y.l lVar, InterfaceC0247b0 interfaceC0247b0, boolean z7, List list2, List list3, V4.C c6, h1.c cVar, long j4) {
        this.f1822a = list;
        this.f1823b = i6;
        this.f1824c = i7;
        this.f1825d = i8;
        this.f1826e = enumC3207z0;
        this.f1827f = i9;
        this.f1828g = i10;
        this.f1829h = i11;
        this.f1830i = c0234i;
        this.f1831j = c0234i2;
        this.f1832k = f6;
        this.l = i12;
        this.f1833m = z6;
        this.f1834n = lVar;
        this.f1835o = interfaceC0247b0;
        this.f1836p = z7;
        this.f1837q = list2;
        this.f1838r = list3;
        this.f1839s = c6;
        this.f1840t = cVar;
        this.f1841u = j4;
    }
}
