package com.google.android.gms.internal.pal;

import android.app.Activity;
import android.view.View;
import java.util.HashMap;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class g4 extends w4 {

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final /* synthetic */ int f20930h = 0;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final View f20931i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final Object f20932j;

    public g4(y3 y3Var, ea eaVar, int i10, View view, Activity activity) {
        super(y3Var, "uJ6tafbdnitpIiJcEDt3zh4lzBZEYeFsW45S60suhbKyZNy2K2MuNEbuksualim4", "Cv/m6MvBjdOit7tT7cC+xPCpFEqovwYj4XIOcXUxCMs=", eaVar, i10, 62);
        this.f20931i = view;
        this.f20932j = activity;
    }

    @Override // com.google.android.gms.internal.pal.w4
    public final void a() {
        switch (this.f20930h) {
            case 0:
                if (this.f20931i == null) {
                    return;
                }
                boolean zBooleanValue = ((Boolean) f5.f20904d.f20907c.b(l5.f21044i)).booleanValue();
                Object[] objArr = (Object[]) this.f21307e.invoke(null, this.f20931i, (Activity) this.f20932j, Boolean.valueOf(zBooleanValue));
                synchronized (this.f21306d) {
                    try {
                        ea eaVar = this.f21306d;
                        long jLongValue = ((Long) objArr[0]).longValue();
                        if (eaVar.f20700c) {
                            eaVar.i();
                            eaVar.f20700c = false;
                        }
                        l1.J((l1) eaVar.f20699b, jLongValue);
                        ea eaVar2 = this.f21306d;
                        long jLongValue2 = ((Long) objArr[1]).longValue();
                        if (eaVar2.f20700c) {
                            eaVar2.i();
                            eaVar2.f20700c = false;
                        }
                        l1.K((l1) eaVar2.f20699b, jLongValue2);
                        if (zBooleanValue) {
                            ea eaVar3 = this.f21306d;
                            String str = (String) objArr[2];
                            if (eaVar3.f20700c) {
                                eaVar3.i();
                                eaVar3.f20700c = false;
                            }
                            l1.L((l1) eaVar3.f20699b, str);
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return;
            default:
                long[] jArr = new long[2];
                Map map = (Map) this.f20932j;
                jArr[0] = map.containsKey(1) ? ((Long) map.get(1)).longValue() : Long.MIN_VALUE;
                Map map2 = (Map) this.f20932j;
                jArr[1] = map2.containsKey(2) ? ((Long) map2.get(2)).longValue() : Long.MIN_VALUE;
                long[] jArr2 = (long[]) this.f21307e.invoke(null, jArr, this.f21303a.f21348a, this.f20931i);
                long j10 = jArr2[0];
                ((Map) this.f20932j).put(1, Long.valueOf(jArr2[1]));
                long j11 = jArr2[2];
                ((Map) this.f20932j).put(2, Long.valueOf(jArr2[3]));
                synchronized (this.f21306d) {
                    ea eaVar4 = this.f21306d;
                    if (eaVar4.f20700c) {
                        eaVar4.i();
                        eaVar4.f20700c = false;
                    }
                    l1.Q((l1) eaVar4.f20699b, j10);
                    ea eaVar5 = this.f21306d;
                    if (eaVar5.f20700c) {
                        eaVar5.i();
                        eaVar5.f20700c = false;
                    }
                    l1.R((l1) eaVar5.f20699b, j11);
                    break;
                }
                return;
        }
    }

    public g4(y3 y3Var, ea eaVar, int i10, HashMap map, View view) {
        super(y3Var, "RKC3mFMqGi7xOgQ7s39JMoZe9bnzGCFipcdUUf0vlgHDkBg7SvMkVmBGpwLs06ia", "8Xr1ilYJHo+oWZQAYAG91DIHBuqEmXK8yHtxL6KkyfU=", eaVar, i10, 85);
        this.f20932j = map;
        this.f20931i = view;
    }
}
