package ඓ.ῲ.K.ᕣ.㳳;

import java.util.Queue;
import ඓ.ῲ.K.ᓣ.C0841;
import ඓ.ῲ.K.ᓣ.C0845;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.䁗  reason: contains not printable characters */
/* compiled from: ModelCache */
public class C1117<A, B> {

    /* renamed from: K  reason: contains not printable characters */
    public final C0841<C1118<A>, B> f4581;

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.䁗$K  reason: contains not printable characters */
    /* compiled from: ModelCache */
    public class C1119 extends C0841<C1118<A>, B> {
        public C1119(C1117 r1, long j) {
            super(j);
        }

        @Override // ඓ.ῲ.K.ᓣ.C0841
        /* renamed from: K  reason: contains not printable characters */
        public void m3000(Object obj, Object obj2) {
            ((C1118) obj).m2999();
        }
    }

    public C1117(long j) {
        this.f4581 = new C1119(this, j);
    }

    /* renamed from: K  reason: contains not printable characters */
    public B m2996(A a, int i, int i2) {
        C1118<A> r1 = C1118.m2998(a, i, i2);
        B r2 = this.f4581.m2440(r1);
        r1.m2999();
        return r2;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2997(A a, int i, int i2, B b) {
        this.f4581.m2439(C1118.m2998(a, i, i2), b);
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.䁗$ῲ  reason: contains not printable characters */
    /* compiled from: ModelCache */
    public static final class C1118<A> {

        /* renamed from: 㸾  reason: contains not printable characters */
        public static final Queue<C1118<?>> f4582 = C0845.m2458(0);

        /* renamed from: ʬ  reason: contains not printable characters */
        public A f4583;

        /* renamed from: ῲ  reason: contains not printable characters */
        public int f4584;

        /* renamed from: K  reason: contains not printable characters */
        public int f4585;

        /* renamed from: K  reason: contains not printable characters */
        public static <A> C1118<A> m2998(A a, int i, int i2) {
            C1118<A> r1;
            synchronized (f4582) {
                r1 = (C1118<A>) f4582.poll();
            }
            if (r1 == null) {
                r1 = new C1118<>();
            }
            r1.f4583 = a;
            r1.f4584 = i;
            r1.f4585 = i2;
            return r1;
        }

        public boolean equals(Object obj) {
            if (!(obj instanceof C1118)) {
                return false;
            }
            C1118 r4 = (C1118) obj;
            if (this.f4584 == r4.f4584 && this.f4585 == r4.f4585 && this.f4583.equals(r4.f4583)) {
                return true;
            }
            return false;
        }

        public int hashCode() {
            return this.f4583.hashCode() + (((this.f4585 * 31) + this.f4584) * 31);
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m2999() {
            synchronized (f4582) {
                f4582.offer(this);
            }
        }
    }
}
