package com.applovin.impl; import com.applovin.impl.dp; import com.applovin.impl.f9; import com.mbridge.msdk.playercommon.exoplayer2.C; /* loaded from: classes.dex */ public final class eh implements gj { private f9 a; private ho b; private qo c; public eh(String str) { this.a = new f9.b().f(str).a(); } private void a() { b1.b(this.b); xp.a(this.c); } @Override // com.applovin.impl.gj public void a(bh bhVar) { a(); long b = this.b.b(); long c = this.b.c(); if (b == C.TIME_UNSET || c == C.TIME_UNSET) { return; } f9 f9Var = this.a; if (c != f9Var.q) { f9 a = f9Var.a().a(c).a(); this.a = a; this.c.a(a); } int a2 = bhVar.a(); this.c.a(bhVar, a2); this.c.a(b, 1, a2, 0, null); } @Override // com.applovin.impl.gj public void a(ho hoVar, m8 m8Var, dp.d dVar) { this.b = hoVar; dVar.a(); qo a = m8Var.a(dVar.c(), 5); this.c = a; a.a(this.a); } }