package o; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /* renamed from: o.fNt, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ class C13007fNt { private final Method a; boolean b = true; private final int c; final Object d; /* JADX INFO: Access modifiers changed from: package-private */ public C13007fNt(Object obj, Method method) { if (obj == null) { throw new NullPointerException("EventProducer target cannot be null."); } if (method == null) { throw new NullPointerException("EventProducer method cannot be null."); } this.d = obj; this.a = method; method.setAccessible(true); this.c = ((method.hashCode() + 31) * 31) + obj.hashCode(); } public final Object b() throws InvocationTargetException { if (!this.b) { StringBuilder sb = new StringBuilder(); sb.append(toString()); sb.append(" has been invalidated and can no longer produce events."); throw new IllegalStateException(sb.toString()); } try { return this.a.invoke(this.d, new Object[0]); } catch (IllegalAccessException e) { throw new AssertionError(e); } catch (InvocationTargetException e2) { if (e2.getCause() instanceof Error) { throw ((Error) e2.getCause()); } throw e2; } } public String toString() { StringBuilder sb = new StringBuilder("[EventProducer "); sb.append(this.a); sb.append("]"); return sb.toString(); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } C13007fNt c13007fNt = (C13007fNt) obj; return this.a.equals(c13007fNt.a) && this.d == c13007fNt.d; } public int hashCode() { return this.c; } }