package d3;

import java.util.List;
import w4.C3137A;
import x4.AbstractC3252r;

/* JADX INFO: loaded from: classes.dex */
public final class G1 implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f15116a = 1;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ n0.x f15118c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ List f15119d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ List f15120e;

    public G1(int i6, n0.x xVar, List list, List list2) {
        this.f15117b = i6;
        this.f15118c = xVar;
        this.f15119d = list;
        this.f15120e = list2;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f15116a) {
            case 0:
                n0.q focusProperties = (n0.q) obj;
                kotlin.jvm.internal.o.h(focusProperties, "$this$focusProperties");
                List list = this.f15119d;
                int i6 = this.f15117b;
                focusProperties.i((n0.x) list.get(i6));
                focusProperties.b((n0.x) list.get(i6));
                focusProperties.e(i6 == 0 ? this.f15118c : (n0.x) list.get(i6 - 1));
                focusProperties.g(i6 == AbstractC3252r.A(this.f15120e) ? (n0.x) list.get(i6) : (n0.x) list.get(i6 + 1));
                break;
            default:
                n0.q focusProperties2 = (n0.q) obj;
                kotlin.jvm.internal.o.h(focusProperties2, "$this$focusProperties");
                List list2 = this.f15119d;
                int i7 = this.f15117b;
                focusProperties2.e(i7 == 0 ? this.f15118c : (n0.x) list2.get(i7 - 1));
                if (i7 != AbstractC3252r.A(this.f15120e)) {
                    i7++;
                }
                focusProperties2.g((n0.x) list2.get(i7));
                break;
        }
        return C3137A.f25453a;
    }

    public G1(List list, int i6, n0.x xVar, List list2) {
        this.f15119d = list;
        this.f15117b = i6;
        this.f15118c = xVar;
        this.f15120e = list2;
    }
}
