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

import android.text.TextUtils;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public final class n90 implements k90 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f14486a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final ps0 f14487b;

    public /* synthetic */ n90(ps0 ps0Var, int i10) {
        this.f14486a = i10;
        this.f14487b = ps0Var;
    }

    /* JADX WARN: Removed duplicated region for block: B:23:0x0053  */
    @Override // com.google.android.gms.internal.ads.k90
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void a(HashMap map) {
        byte b10;
        int i10 = this.f14486a;
        ps0 ps0Var = this.f14487b;
        switch (i10) {
            case 0:
                String str = (String) map.get("gesture");
                if (!TextUtils.isEmpty(str)) {
                    int iHashCode = str.hashCode();
                    if (iHashCode != 97520651) {
                        b10 = (iHashCode == 109399814 && str.equals("shake")) ? (byte) 0 : (byte) -1;
                    } else if (str.equals("flick")) {
                        b10 = 1;
                    }
                    if (b10 == 0) {
                        ps0Var.h(zzebb.f19663b, true);
                    } else if (b10 == 1) {
                        ps0Var.h(zzebb.f19664c, true);
                    } else {
                        ps0Var.h(zzebb.f19662a, true);
                    }
                    break;
                }
                break;
            default:
                String str2 = (String) map.get("test_mode_enabled");
                if (!TextUtils.isEmpty(str2)) {
                    ps0Var.b(str2.equals("true"));
                    break;
                }
                break;
        }
    }
}
