package ᨨ;

import android.support.v4.media.session.PlaybackStateCompat;

/* renamed from: ᨨ.䀟  reason: contains not printable characters */
/* compiled from: SegmentPool */
public final class C1497 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public static long f5534;

    /* renamed from: K  reason: contains not printable characters */
    public static C1475 f5535;

    /* renamed from: K  reason: contains not printable characters */
    public static C1475 m3826() {
        synchronized (C1497.class) {
            if (f5535 == null) {
                return new C1475();
            }
            C1475 r1 = f5535;
            f5535 = r1.f5499;
            r1.f5499 = null;
            f5534 -= PlaybackStateCompat.ACTION_PLAY_FROM_URI;
            return r1;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static void m3827(C1475 r8) {
        if (r8.f5499 != null || r8.f5497 != null) {
            throw new IllegalArgumentException();
        } else if (!r8.f5500) {
            synchronized (C1497.class) {
                if (f5534 + PlaybackStateCompat.ACTION_PLAY_FROM_URI <= PlaybackStateCompat.ACTION_PREPARE_FROM_SEARCH) {
                    f5534 += PlaybackStateCompat.ACTION_PLAY_FROM_URI;
                    r8.f5499 = f5535;
                    r8.f5494 = 0;
                    r8.f5496 = 0;
                    f5535 = r8;
                }
            }
        }
    }
}
