package p138.p145.p146.p170;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.util.Map;
import p000.p001.p002.p003.p004.C0567;
import p138.p145.p146.EnumC2812;
import p138.p145.p146.p151.C2845;
import p138.p145.p146.p151.C2848;
import p138.p145.p146.p151.InterfaceC2844;
import p138.p145.p146.p151.InterfaceC2852;
import p138.p145.p146.p151.p154.AbstractC2905;
import p138.p145.p146.p151.p160.p161.AbstractC3089;
import p138.p145.p146.p151.p160.p161.C3087;
import p138.p145.p146.p151.p160.p161.C3088;
import p138.p145.p146.p151.p160.p161.C3100;
import p138.p145.p146.p151.p160.p161.C3102;
import p138.p145.p146.p151.p160.p165.C3142;
import p138.p145.p146.p151.p160.p165.C3146;
import p138.p145.p146.p170.AbstractC3199;
import p138.p145.p146.p173.C3225;
import p138.p145.p146.p174.C3230;
import p138.p145.p146.p174.C3240;

/* JADX INFO: renamed from: ދ.ؠ.֏.ސ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC3199<T extends AbstractC3199<T>> implements Cloneable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public int f9479;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public Drawable f9483;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public int f9484;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public Drawable f9485;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public int f9486;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public boolean f9491;

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public Drawable f9493;

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public int f9494;

    /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
    public boolean f9498;

    /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
    public Resources.Theme f9499;

    /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
    public boolean f9500;

    /* JADX INFO: renamed from: ޙ, reason: contains not printable characters */
    public boolean f9501;

    /* JADX INFO: renamed from: ޚ, reason: contains not printable characters */
    public boolean f9502;

    /* JADX INFO: renamed from: ޜ, reason: contains not printable characters */
    public boolean f9504;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public float f9480 = 1.0f;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public AbstractC2905 f9481 = AbstractC2905.f8961;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public EnumC2812 f9482 = EnumC2812.NORMAL;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public boolean f9487 = true;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public int f9488 = -1;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public int f9489 = -1;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public InterfaceC2844 f9490 = C3225.f9564;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public boolean f9492 = true;

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public C2848 f9495 = new C2848();

    /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
    public Map<Class<?>, InterfaceC2852<?>> f9496 = new C3230();

    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    public Class<?> f9497 = Object.class;

    /* JADX INFO: renamed from: ޛ, reason: contains not printable characters */
    public boolean f9503 = true;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static boolean m5264(int i, int i2) {
        return (i & i2) != 0;
    }

    @Override // 
    public T clone() {
        try {
            T t = (T) super.clone();
            C2848 c2848 = new C2848();
            t.f9495 = c2848;
            c2848.m4980(this.f9495);
            C3230 c3230 = new C3230();
            t.f9496 = c3230;
            c3230.putAll(this.f9496);
            t.f9498 = false;
            t.f9500 = false;
            return t;
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof AbstractC3199)) {
            return false;
        }
        AbstractC3199 abstractC3199 = (AbstractC3199) obj;
        return Float.compare(abstractC3199.f9480, this.f9480) == 0 && this.f9484 == abstractC3199.f9484 && C3240.m5339(this.f9483, abstractC3199.f9483) && this.f9486 == abstractC3199.f9486 && C3240.m5339(this.f9485, abstractC3199.f9485) && this.f9494 == abstractC3199.f9494 && C3240.m5339(this.f9493, abstractC3199.f9493) && this.f9487 == abstractC3199.f9487 && this.f9488 == abstractC3199.f9488 && this.f9489 == abstractC3199.f9489 && this.f9491 == abstractC3199.f9491 && this.f9492 == abstractC3199.f9492 && this.f9501 == abstractC3199.f9501 && this.f9502 == abstractC3199.f9502 && this.f9481.equals(abstractC3199.f9481) && this.f9482 == abstractC3199.f9482 && this.f9495.equals(abstractC3199.f9495) && this.f9496.equals(abstractC3199.f9496) && this.f9497.equals(abstractC3199.f9497) && C3240.m5339(this.f9490, abstractC3199.f9490) && C3240.m5339(this.f9499, abstractC3199.f9499);
    }

    public int hashCode() {
        return C3240.m5331(this.f9499, C3240.m5331(this.f9490, C3240.m5331(this.f9497, C3240.m5331(this.f9496, C3240.m5331(this.f9495, C3240.m5331(this.f9482, C3240.m5331(this.f9481, (((((((((((((C3240.m5331(this.f9493, (C3240.m5331(this.f9485, (C3240.m5331(this.f9483, (C3240.m5328(this.f9480) * 31) + this.f9484) * 31) + this.f9486) * 31) + this.f9494) * 31) + (this.f9487 ? 1 : 0)) * 31) + this.f9488) * 31) + this.f9489) * 31) + (this.f9491 ? 1 : 0)) * 31) + (this.f9492 ? 1 : 0)) * 31) + (this.f9501 ? 1 : 0)) * 31) + (this.f9502 ? 1 : 0))))))));
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2528(int i, int i2) {
        if (this.f9500) {
            return (T) clone().mo2528(i, i2);
        }
        this.f9489 = i;
        this.f9488 = i2;
        this.f9479 |= 512;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2529(Drawable drawable) {
        if (this.f9500) {
            return (T) clone().mo2529(drawable);
        }
        this.f9483 = drawable;
        int i = this.f9479 | 16;
        this.f9479 = i;
        this.f9484 = 0;
        this.f9479 = i & (-33);
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2530(Class<?> cls) {
        if (this.f9500) {
            return (T) clone().mo2530(cls);
        }
        C0567.m1858(cls, "Argument must not be null");
        this.f9497 = cls;
        this.f9479 |= 4096;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public <Y> T m5265(Class<Y> cls, InterfaceC2852<Y> interfaceC2852, boolean z) {
        if (this.f9500) {
            return (T) clone().m5265(cls, interfaceC2852, z);
        }
        C0567.m1858(cls, "Argument must not be null");
        C0567.m1858(interfaceC2852, "Argument must not be null");
        this.f9496.put(cls, interfaceC2852);
        int i = this.f9479 | 2048;
        this.f9479 = i;
        this.f9492 = true;
        int i2 = i | 65536;
        this.f9479 = i2;
        this.f9503 = false;
        if (z) {
            this.f9479 = i2 | 131072;
            this.f9491 = true;
        }
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2531(EnumC2812 enumC2812) {
        if (this.f9500) {
            return (T) clone().mo2531(enumC2812);
        }
        C0567.m1858(enumC2812, "Argument must not be null");
        this.f9482 = enumC2812;
        this.f9479 |= 8;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2532(InterfaceC2844 interfaceC2844) {
        if (this.f9500) {
            return (T) clone().mo2532(interfaceC2844);
        }
        C0567.m1858(interfaceC2844, "Argument must not be null");
        this.f9490 = interfaceC2844;
        this.f9479 |= 1024;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public <Y> T mo2533(C2845<Y> c2845, Y y) {
        if (this.f9500) {
            return (T) clone().mo2533(c2845, y);
        }
        C0567.m1858(c2845, "Argument must not be null");
        C0567.m1858(y, "Argument must not be null");
        this.f9495.f8816.put(c2845, y);
        m5268();
        return this;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public T m5266(InterfaceC2852<Bitmap> interfaceC2852, boolean z) {
        if (this.f9500) {
            return (T) clone().m5266(interfaceC2852, z);
        }
        C3100 c3100 = new C3100(interfaceC2852, z);
        m5265(Bitmap.class, interfaceC2852, z);
        m5265(Drawable.class, c3100, z);
        m5265(BitmapDrawable.class, c3100, z);
        m5265(C3142.class, new C3146(interfaceC2852), z);
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2534(AbstractC2905 abstractC2905) {
        if (this.f9500) {
            return (T) clone().mo2534(abstractC2905);
        }
        C0567.m1858(abstractC2905, "Argument must not be null");
        this.f9481 = abstractC2905;
        this.f9479 |= 4;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2535(AbstractC3089 abstractC3089) {
        C2845 c2845 = AbstractC3089.f9297;
        C0567.m1858(abstractC3089, "Argument must not be null");
        return (T) mo2533((C2845<AbstractC3089>) c2845, abstractC3089);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final T m5267(AbstractC3089 abstractC3089, InterfaceC2852<Bitmap> interfaceC2852) {
        if (this.f9500) {
            return (T) clone().m5267(abstractC3089, interfaceC2852);
        }
        mo2535(abstractC3089);
        return (T) m5266(interfaceC2852, false);
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2527(AbstractC3199<?> abstractC3199) {
        if (this.f9500) {
            return (T) clone().mo2527(abstractC3199);
        }
        if (m5264(abstractC3199.f9479, 2)) {
            this.f9480 = abstractC3199.f9480;
        }
        if (m5264(abstractC3199.f9479, 262144)) {
            this.f9501 = abstractC3199.f9501;
        }
        if (m5264(abstractC3199.f9479, 1048576)) {
            this.f9504 = abstractC3199.f9504;
        }
        if (m5264(abstractC3199.f9479, 4)) {
            this.f9481 = abstractC3199.f9481;
        }
        if (m5264(abstractC3199.f9479, 8)) {
            this.f9482 = abstractC3199.f9482;
        }
        if (m5264(abstractC3199.f9479, 16)) {
            this.f9483 = abstractC3199.f9483;
            this.f9484 = 0;
            this.f9479 &= -33;
        }
        if (m5264(abstractC3199.f9479, 32)) {
            this.f9484 = abstractC3199.f9484;
            this.f9483 = null;
            this.f9479 &= -17;
        }
        if (m5264(abstractC3199.f9479, 64)) {
            this.f9485 = abstractC3199.f9485;
            this.f9486 = 0;
            this.f9479 &= -129;
        }
        if (m5264(abstractC3199.f9479, 128)) {
            this.f9486 = abstractC3199.f9486;
            this.f9485 = null;
            this.f9479 &= -65;
        }
        if (m5264(abstractC3199.f9479, 256)) {
            this.f9487 = abstractC3199.f9487;
        }
        if (m5264(abstractC3199.f9479, 512)) {
            this.f9489 = abstractC3199.f9489;
            this.f9488 = abstractC3199.f9488;
        }
        if (m5264(abstractC3199.f9479, 1024)) {
            this.f9490 = abstractC3199.f9490;
        }
        if (m5264(abstractC3199.f9479, 4096)) {
            this.f9497 = abstractC3199.f9497;
        }
        if (m5264(abstractC3199.f9479, 8192)) {
            this.f9493 = abstractC3199.f9493;
            this.f9494 = 0;
            this.f9479 &= -16385;
        }
        if (m5264(abstractC3199.f9479, 16384)) {
            this.f9494 = abstractC3199.f9494;
            this.f9493 = null;
            this.f9479 &= -8193;
        }
        if (m5264(abstractC3199.f9479, 32768)) {
            this.f9499 = abstractC3199.f9499;
        }
        if (m5264(abstractC3199.f9479, 65536)) {
            this.f9492 = abstractC3199.f9492;
        }
        if (m5264(abstractC3199.f9479, 131072)) {
            this.f9491 = abstractC3199.f9491;
        }
        if (m5264(abstractC3199.f9479, 2048)) {
            this.f9496.putAll(abstractC3199.f9496);
            this.f9503 = abstractC3199.f9503;
        }
        if (m5264(abstractC3199.f9479, 524288)) {
            this.f9502 = abstractC3199.f9502;
        }
        if (!this.f9492) {
            this.f9496.clear();
            int i = this.f9479 & (-2049);
            this.f9479 = i;
            this.f9491 = false;
            this.f9479 = i & (-131073);
            this.f9503 = true;
        }
        this.f9479 |= abstractC3199.f9479;
        this.f9495.m4980(abstractC3199.f9495);
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ֏ */
    public T mo2536(boolean z) {
        if (this.f9500) {
            return (T) clone().mo2536(true);
        }
        this.f9487 = !z;
        this.f9479 |= 256;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ؠ */
    public T mo2537() {
        if (this.f9498 && !this.f9500) {
            throw new IllegalStateException("You cannot auto lock an already locked options object, try clone() first");
        }
        this.f9500 = true;
        return (T) mo2540();
    }

    /* JADX INFO: renamed from: ؠ */
    public T mo2538(Drawable drawable) {
        if (this.f9500) {
            return (T) clone().mo2538(drawable);
        }
        this.f9485 = drawable;
        int i = this.f9479 | 64;
        this.f9479 = i;
        this.f9486 = 0;
        this.f9479 = i & (-129);
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ؠ */
    public T mo2539(boolean z) {
        if (this.f9500) {
            return (T) clone().mo2539(z);
        }
        this.f9504 = z;
        this.f9479 |= 1048576;
        m5268();
        return this;
    }

    /* JADX INFO: renamed from: ހ */
    public T mo2540() {
        this.f9498 = true;
        return this;
    }

    /* JADX INFO: renamed from: ށ */
    public T mo2541() {
        return (T) m5267(AbstractC3089.f9294, new C3087());
    }

    /* JADX INFO: renamed from: ނ */
    public T mo2542() {
        T t = (T) m5267(AbstractC3089.f9293, new C3088());
        t.f9503 = true;
        return t;
    }

    /* JADX INFO: renamed from: ކ */
    public T mo2543() {
        T t = (T) m5267(AbstractC3089.f9292, new C3102());
        t.f9503 = true;
        return t;
    }

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final T m5268() {
        if (this.f9498) {
            throw new IllegalStateException("You cannot modify locked T, consider clone()");
        }
        return this;
    }
}
