package com.tapjoy.internal; import android.support.v4.media.session.PlaybackStateCompat; /* loaded from: classes4.dex */ public abstract class c1 { public static b1 a; public static long b; public static b1 a() { synchronized (c1.class) { try { b1 b1Var = a; if (b1Var == null) { return new b1(); } a = b1Var.f; b1Var.f = null; b -= PlaybackStateCompat.ACTION_PLAY_FROM_URI; return b1Var; } catch (Throwable th) { throw th; } } } public static void a(b1 b1Var) { if (b1Var.f == null && b1Var.g == null) { if (b1Var.d) { return; } synchronized (c1.class) { try { long j = b + PlaybackStateCompat.ACTION_PLAY_FROM_URI; if (j > PlaybackStateCompat.ACTION_PREPARE_FROM_SEARCH) { return; } b = j; b1Var.f = a; b1Var.c = 0; b1Var.b = 0; a = b1Var; return; } catch (Throwable th) { throw th; } } } throw new IllegalArgumentException(); } }