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

import android.util.Log;
import defpackage.nq6;

/* JADX INFO: loaded from: classes2.dex */
final class zzhq extends zzhj<Boolean> {
    public zzhq(zzhr zzhrVar, String str, Boolean bool, boolean z) {
        super(zzhrVar, str, bool);
    }

    @Override // com.google.android.gms.internal.measurement.zzhj
    @nq6
    public final /* synthetic */ Boolean zza(Object obj) {
        if (obj instanceof Boolean) {
            return (Boolean) obj;
        }
        if (obj instanceof String) {
            String str = (String) obj;
            if (zzgi.zzc.matcher(str).matches()) {
                return Boolean.TRUE;
            }
            if (zzgi.zzd.matcher(str).matches()) {
                return Boolean.FALSE;
            }
        }
        Log.e("PhenotypeFlag", "Invalid boolean value for " + zzb() + ": " + String.valueOf(obj));
        return null;
    }
}
