package r6;

import android.content.res.TypedArray;
import o0.i;

/* JADX INFO: loaded from: classes2.dex */
public final class b extends i {

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public b(int i10) {
        super(5);
        this.f32482b = i10;
        if (i10 != 1) {
            ((c) this.f31277a).f32498p = true;
        } else {
            super(5);
            ((c) this.f31277a).f32498p = false;
        }
    }

    @Override // o0.i
    public final i f(TypedArray typedArray) {
        switch (this.f32482b) {
            case 1:
                super.f(typedArray);
                int i10 = a.ShimmerFrameLayout_shimmer_base_color;
                boolean zHasValue = typedArray.hasValue(i10);
                Object obj = this.f31277a;
                if (zHasValue) {
                    c cVar = (c) obj;
                    cVar.f32487e = (typedArray.getColor(i10, cVar.f32487e) & 16777215) | (cVar.f32487e & (-16777216));
                }
                int i11 = a.ShimmerFrameLayout_shimmer_highlight_color;
                if (typedArray.hasValue(i11)) {
                    c cVar2 = (c) obj;
                    cVar2.f32486d = typedArray.getColor(i11, cVar2.f32486d);
                }
                return this;
            default:
                return super.f(typedArray);
        }
    }
}
