hu.java 26.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796
import android.support.annotation.WorkerThread;
import android.support.v4.util.ArrayMap;
import android.text.TextUtils;
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.internal.zzatj;
import com.google.android.gms.internal.zzatx;
import com.google.android.gms.internal.zzatx.zza;
import com.google.android.gms.internal.zzaue;
import com.google.android.gms.internal.zzaut;
import com.google.android.gms.internal.zzauu.zzb;
import com.google.android.gms.internal.zzauu.zzc;
import com.google.android.gms.internal.zzauu.zzd;
import com.google.android.gms.internal.zzauu.zze;
import com.google.android.gms.internal.zzauu.zzf;
import com.google.android.gms.internal.zzauw.zza;
import com.google.android.gms.internal.zzauw.zzb;
import com.google.android.gms.internal.zzauw.zzc;
import com.google.android.gms.internal.zzauw.zzf;
import com.google.android.gms.internal.zzauw.zzg;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public final class hu
  extends hz
{
  public hu(zzaue paramzzaue)
  {
    super(paramzzaue);
  }
  
  private static Boolean a(double paramDouble, zzauu.zzd paramzzd)
  {
    try
    {
      paramzzd = a(new BigDecimal(paramDouble), paramzzd, Math.ulp(paramDouble));
      return paramzzd;
    }
    catch (NumberFormatException paramzzd) {}
    return null;
  }
  
  private static Boolean a(long paramLong, zzauu.zzd paramzzd)
  {
    try
    {
      paramzzd = a(new BigDecimal(paramLong), paramzzd, 0.0D);
      return paramzzd;
    }
    catch (NumberFormatException paramzzd) {}
    return null;
  }
  
  private Boolean a(zzauu.zzb paramzzb, zzauw.zzb paramzzb1, long paramLong)
  {
    if (paramzzb.zzbws != null)
    {
      localObject1 = a(paramLong, paramzzb.zzbws);
      if (localObject1 == null) {
        return null;
      }
      if (!((Boolean)localObject1).booleanValue()) {
        return Boolean.valueOf(false);
      }
    }
    Object localObject2 = new HashSet();
    Object localObject1 = paramzzb.zzbwq;
    int j = localObject1.length;
    int i = 0;
    while (i < j)
    {
      localObject3 = localObject1[i];
      if (TextUtils.isEmpty(((zzauu.zzc)localObject3).zzbwx))
      {
        zzKl().zzMa().zzj("null or empty param name in filter. event", paramzzb1.name);
        return null;
      }
      ((Set)localObject2).add(((zzauu.zzc)localObject3).zzbwx);
      i += 1;
    }
    localObject1 = new ArrayMap();
    Object localObject3 = paramzzb1.zzbwY;
    j = localObject3.length;
    i = 0;
    Object localObject4;
    if (i < j)
    {
      localObject4 = localObject3[i];
      if (((Set)localObject2).contains(((zzauw.zzc)localObject4).name))
      {
        if (((zzauw.zzc)localObject4).zzbxc == null) {
          break label212;
        }
        ((Map)localObject1).put(((zzauw.zzc)localObject4).name, ((zzauw.zzc)localObject4).zzbxc);
      }
      for (;;)
      {
        i += 1;
        break;
        label212:
        if (((zzauw.zzc)localObject4).zzbwf != null)
        {
          ((Map)localObject1).put(((zzauw.zzc)localObject4).name, ((zzauw.zzc)localObject4).zzbwf);
        }
        else
        {
          if (((zzauw.zzc)localObject4).zzaGV == null) {
            break label270;
          }
          ((Map)localObject1).put(((zzauw.zzc)localObject4).name, ((zzauw.zzc)localObject4).zzaGV);
        }
      }
      label270:
      zzKl().zzMa().zze("Unknown value for param. event, param", paramzzb1.name, ((zzauw.zzc)localObject4).name);
      return null;
    }
    localObject2 = paramzzb.zzbwq;
    int k = localObject2.length;
    i = 0;
    while (i < k)
    {
      paramzzb = localObject2[i];
      int m = Boolean.TRUE.equals(paramzzb.zzbww);
      localObject3 = paramzzb.zzbwx;
      if (TextUtils.isEmpty((CharSequence)localObject3))
      {
        zzKl().zzMa().zzj("Event has empty param name. event", paramzzb1.name);
        return null;
      }
      localObject4 = ((Map)localObject1).get(localObject3);
      if ((localObject4 instanceof Long))
      {
        if (paramzzb.zzbwv == null)
        {
          zzKl().zzMa().zze("No number filter for long param. event, param", paramzzb1.name, localObject3);
          return null;
        }
        paramzzb = a(((Long)localObject4).longValue(), paramzzb.zzbwv);
        if (paramzzb == null) {
          return null;
        }
        if (!paramzzb.booleanValue()) {}
        for (j = 1; (j ^ m) != 0; j = 0) {
          return Boolean.valueOf(false);
        }
      }
      if ((localObject4 instanceof Double))
      {
        if (paramzzb.zzbwv == null)
        {
          zzKl().zzMa().zze("No number filter for double param. event, param", paramzzb1.name, localObject3);
          return null;
        }
        paramzzb = a(((Double)localObject4).doubleValue(), paramzzb.zzbwv);
        if (paramzzb == null) {
          return null;
        }
        if (!paramzzb.booleanValue()) {}
        for (j = 1; (j ^ m) != 0; j = 0) {
          return Boolean.valueOf(false);
        }
      }
      if ((localObject4 instanceof String))
      {
        if (paramzzb.zzbwu != null) {
          paramzzb = a((String)localObject4, paramzzb.zzbwu);
        }
        while (paramzzb == null)
        {
          return null;
          if (paramzzb.zzbwv != null)
          {
            if (zzaut.c((String)localObject4))
            {
              paramzzb = a((String)localObject4, paramzzb.zzbwv);
            }
            else
            {
              zzKl().zzMa().zze("Invalid param value for number filter. event, param", paramzzb1.name, localObject3);
              return null;
            }
          }
          else
          {
            zzKl().zzMa().zze("No filter for String param. event, param", paramzzb1.name, localObject3);
            return null;
          }
        }
        if (!paramzzb.booleanValue()) {}
        for (j = 1; (j ^ m) != 0; j = 0) {
          return Boolean.valueOf(false);
        }
      }
      if (localObject4 == null)
      {
        zzKl().zzMe().zze("Missing param for filter. event, param", paramzzb1.name, localObject3);
        return Boolean.valueOf(false);
      }
      zzKl().zzMa().zze("Unknown param type. event, param", paramzzb1.name, localObject3);
      return null;
      i += 1;
    }
    return Boolean.valueOf(true);
  }
  
  private static Boolean a(Boolean paramBoolean, boolean paramBoolean1)
  {
    if (paramBoolean == null) {
      return null;
    }
    return Boolean.valueOf(paramBoolean.booleanValue() ^ paramBoolean1);
  }
  
  private static Boolean a(String paramString, zzauu.zzd paramzzd)
  {
    if (!zzaut.c(paramString)) {
      return null;
    }
    try
    {
      paramString = a(new BigDecimal(paramString), paramzzd, 0.0D);
      return paramString;
    }
    catch (NumberFormatException paramString) {}
    return null;
  }
  
  private static Boolean a(String paramString, zzauu.zzf paramzzf)
  {
    zzac.zzw(paramzzf);
    if (paramString == null) {
      return null;
    }
    if ((paramzzf.zzbwG == null) || (paramzzf.zzbwG.intValue() == 0)) {
      return null;
    }
    if (paramzzf.zzbwG.intValue() == 6)
    {
      if ((paramzzf.zzbwJ == null) || (paramzzf.zzbwJ.length == 0)) {
        return null;
      }
    }
    else if (paramzzf.zzbwH == null) {
      return null;
    }
    int k = paramzzf.zzbwG.intValue();
    int i;
    String str1;
    if ((paramzzf.zzbwI != null) && (paramzzf.zzbwI.booleanValue()))
    {
      i = 1;
      if ((i == 0) && (k != 1) && (k != 6)) {
        break label169;
      }
      str1 = paramzzf.zzbwH;
      label119:
      if (paramzzf.zzbwJ != null) {
        break label184;
      }
      paramzzf = null;
      label128:
      if (k != 1) {
        break label412;
      }
    }
    label169:
    label184:
    label256:
    label314:
    label412:
    for (Object localObject = str1;; localObject = null)
    {
      if (paramString != null)
      {
        if (k == 6)
        {
          if ((paramzzf != null) && (paramzzf.size() != 0)) {
            break label256;
          }
          return null;
          i = 0;
          break;
          str1 = paramzzf.zzbwH.toUpperCase(Locale.ENGLISH);
          break label119;
          localObject = paramzzf.zzbwJ;
          if (i != 0)
          {
            paramzzf = Arrays.asList((Object[])localObject);
            break label128;
          }
          paramzzf = new ArrayList();
          int m = localObject.length;
          int j = 0;
          while (j < m)
          {
            paramzzf.add(localObject[j].toUpperCase(Locale.ENGLISH));
            j += 1;
          }
          break label128;
        }
        if (str1 != null)
        {
          str2 = paramString;
          if (i == 0) {
            if (k != 1) {
              break label314;
            }
          }
        }
      }
      for (String str2 = paramString;; str2 = paramString.toUpperCase(Locale.ENGLISH)) {
        switch (k)
        {
        default: 
          return null;
        }
      }
      if (i != 0) {}
      for (i = 0;; i = 66) {
        return Boolean.valueOf(Pattern.compile((String)localObject, i).matcher(str2).matches());
      }
      return Boolean.valueOf(str2.startsWith(str1));
      return Boolean.valueOf(str2.endsWith(str1));
      return Boolean.valueOf(str2.contains(str1));
      return Boolean.valueOf(str2.equals(str1));
      return Boolean.valueOf(paramzzf.contains(str2));
    }
  }
  
  private static Boolean a(BigDecimal paramBigDecimal, zzauu.zzd paramzzd, double paramDouble)
  {
    boolean bool2 = true;
    boolean bool3 = true;
    boolean bool4 = true;
    boolean bool5 = true;
    boolean bool1 = true;
    zzac.zzw(paramzzd);
    if ((paramzzd.zzbwy == null) || (paramzzd.zzbwy.intValue() == 0)) {
      return null;
    }
    if (paramzzd.zzbwy.intValue() == 4)
    {
      if ((paramzzd.zzbwB == null) || (paramzzd.zzbwC == null)) {
        return null;
      }
    }
    else if (paramzzd.zzbwA == null) {
      return null;
    }
    int i = paramzzd.zzbwy.intValue();
    if (paramzzd.zzbwy.intValue() == 4) {
      if ((!zzaut.c(paramzzd.zzbwB)) || (!zzaut.c(paramzzd.zzbwC))) {
        return null;
      }
    }
    BigDecimal localBigDecimal1;
    BigDecimal localBigDecimal2;
    for (;;)
    {
      try
      {
        localBigDecimal1 = new BigDecimal(paramzzd.zzbwB);
        paramzzd = new BigDecimal(paramzzd.zzbwC);
        localBigDecimal2 = null;
        if (i != 4) {
          break;
        }
        if (localBigDecimal1 != null) {
          break label202;
        }
        return null;
      }
      catch (NumberFormatException paramBigDecimal)
      {
        return null;
      }
      if (!zzaut.c(paramzzd.zzbwA)) {
        return null;
      }
      try
      {
        localBigDecimal2 = new BigDecimal(paramzzd.zzbwA);
        localBigDecimal1 = null;
        paramzzd = null;
      }
      catch (NumberFormatException paramBigDecimal)
      {
        return null;
      }
    }
    if (localBigDecimal2 != null) {}
    switch (i)
    {
    default: 
      return null;
    case 1: 
      if (paramBigDecimal.compareTo(localBigDecimal2) == -1) {}
      for (;;)
      {
        return Boolean.valueOf(bool1);
        bool1 = false;
      }
    case 2: 
      if (paramBigDecimal.compareTo(localBigDecimal2) == 1) {}
      for (bool1 = bool2;; bool1 = false) {
        return Boolean.valueOf(bool1);
      }
    case 3: 
      label202:
      if (paramDouble != 0.0D)
      {
        if ((paramBigDecimal.compareTo(localBigDecimal2.subtract(new BigDecimal(paramDouble).multiply(new BigDecimal(2)))) == 1) && (paramBigDecimal.compareTo(localBigDecimal2.add(new BigDecimal(paramDouble).multiply(new BigDecimal(2)))) == -1)) {}
        for (bool1 = bool3;; bool1 = false) {
          return Boolean.valueOf(bool1);
        }
      }
      if (paramBigDecimal.compareTo(localBigDecimal2) == 0) {}
      for (bool1 = bool4;; bool1 = false) {
        return Boolean.valueOf(bool1);
      }
    }
    if ((paramBigDecimal.compareTo(localBigDecimal1) != -1) && (paramBigDecimal.compareTo(paramzzd) != 1)) {}
    for (bool1 = bool5;; bool1 = false) {
      return Boolean.valueOf(bool1);
    }
  }
  
  @WorkerThread
  public final zzauw.zza[] a(String paramString, zzauw.zzb[] paramArrayOfzzb, zzauw.zzg[] paramArrayOfzzg)
  {
    zzac.zzdr(paramString);
    HashSet localHashSet = new HashSet();
    ArrayMap localArrayMap1 = new ArrayMap();
    ArrayMap localArrayMap2 = new ArrayMap();
    ArrayMap localArrayMap3 = new ArrayMap();
    Object localObject4 = zzKg().e(paramString);
    Object localObject5;
    int j;
    Object localObject6;
    Object localObject3;
    Object localObject2;
    Object localObject1;
    int i;
    if (localObject4 != null)
    {
      localObject5 = ((Map)localObject4).keySet().iterator();
      while (((Iterator)localObject5).hasNext())
      {
        j = ((Integer)((Iterator)localObject5).next()).intValue();
        localObject6 = (zzauw.zzf)((Map)localObject4).get(Integer.valueOf(j));
        localObject3 = (BitSet)localArrayMap2.get(Integer.valueOf(j));
        localObject2 = (BitSet)localArrayMap3.get(Integer.valueOf(j));
        localObject1 = localObject3;
        if (localObject3 == null)
        {
          localObject1 = new BitSet();
          localArrayMap2.put(Integer.valueOf(j), localObject1);
          localObject2 = new BitSet();
          localArrayMap3.put(Integer.valueOf(j), localObject2);
        }
        i = 0;
        while (i < ((zzauw.zzf)localObject6).zzbxG.length * 64)
        {
          if (zzaut.zza(((zzauw.zzf)localObject6).zzbxG, i))
          {
            zzKl().zzMe().zze("Filter already evaluated. audience ID, filter ID", Integer.valueOf(j), Integer.valueOf(i));
            ((BitSet)localObject2).set(i);
            if (zzaut.zza(((zzauw.zzf)localObject6).zzbxH, i)) {
              ((BitSet)localObject1).set(i);
            }
          }
          i += 1;
        }
        localObject3 = new zzauw.zza();
        localArrayMap1.put(Integer.valueOf(j), localObject3);
        ((zzauw.zza)localObject3).zzbwW = Boolean.valueOf(false);
        ((zzauw.zza)localObject3).zzbwV = ((zzauw.zzf)localObject6);
        ((zzauw.zza)localObject3).zzbwU = new zzauw.zzf();
        ((zzauw.zza)localObject3).zzbwU.zzbxH = zzaut.zza((BitSet)localObject1);
        ((zzauw.zza)localObject3).zzbwU.zzbxG = zzaut.zza((BitSet)localObject2);
      }
    }
    Object localObject7;
    long l;
    label559:
    Iterator localIterator;
    label573:
    int k;
    if (paramArrayOfzzb != null)
    {
      localObject6 = new ArrayMap();
      j = paramArrayOfzzb.length;
      i = 0;
      if (i < j)
      {
        localObject7 = paramArrayOfzzb[i];
        localObject1 = zzKg().a(paramString, ((zzauw.zzb)localObject7).name);
        if (localObject1 == null) {
          zzKl().zzMa().zze("Event aggregate wasn't created during raw event logging. appId, event", zzatx.zzfE(paramString), ((zzauw.zzb)localObject7).name);
        }
        for (localObject1 = new hw(paramString, ((zzauw.zzb)localObject7).name, 1L, 1L, ((zzauw.zzb)localObject7).zzbwZ.longValue());; localObject1 = ((hw)localObject1).a())
        {
          zzKg().a((hw)localObject1);
          l = ((hw)localObject1).c;
          localObject1 = (Map)((Map)localObject6).get(((zzauw.zzb)localObject7).name);
          if (localObject1 != null) {
            break label2230;
          }
          localObject2 = zzKg().f(paramString, ((zzauw.zzb)localObject7).name);
          localObject1 = localObject2;
          if (localObject2 == null) {
            localObject1 = new ArrayMap();
          }
          ((Map)localObject6).put(((zzauw.zzb)localObject7).name, localObject1);
          localIterator = ((Map)localObject1).keySet().iterator();
          for (;;)
          {
            if (!localIterator.hasNext()) {
              break label1080;
            }
            k = ((Integer)localIterator.next()).intValue();
            if (!localHashSet.contains(Integer.valueOf(k))) {
              break;
            }
            zzKl().zzMe().zzj("Skipping failed audience ID", Integer.valueOf(k));
          }
        }
        localObject4 = (zzauw.zza)localArrayMap1.get(Integer.valueOf(k));
        localObject3 = (BitSet)localArrayMap2.get(Integer.valueOf(k));
        localObject2 = (BitSet)localArrayMap3.get(Integer.valueOf(k));
        if (localObject4 != null) {
          break label2233;
        }
        localObject2 = new zzauw.zza();
        localArrayMap1.put(Integer.valueOf(k), localObject2);
        ((zzauw.zza)localObject2).zzbwW = Boolean.valueOf(true);
        localObject3 = new BitSet();
        localArrayMap2.put(Integer.valueOf(k), localObject3);
        localObject2 = new BitSet();
        localArrayMap3.put(Integer.valueOf(k), localObject2);
      }
    }
    label1043:
    label1080:
    label1192:
    label1206:
    label1635:
    label1966:
    label1972:
    label2006:
    label2221:
    label2224:
    label2227:
    label2230:
    label2233:
    for (;;)
    {
      Object localObject8 = ((List)((Map)localObject1).get(Integer.valueOf(k))).iterator();
      Object localObject9;
      while (((Iterator)localObject8).hasNext())
      {
        localObject9 = (zzauu.zzb)((Iterator)localObject8).next();
        if (zzKl().zzak(2))
        {
          zzKl().zzMe().zzd("Evaluating filter. audience, filter, event", Integer.valueOf(k), ((zzauu.zzb)localObject9).zzbwo, ((zzauu.zzb)localObject9).zzbwp);
          zzKl().zzMe().zzj("Filter definition", zzaut.zza((zzauu.zzb)localObject9));
        }
        if ((((zzauu.zzb)localObject9).zzbwo == null) || (((zzauu.zzb)localObject9).zzbwo.intValue() > 256))
        {
          zzKl().zzMa().zze("Invalid event filter ID. appId, id", zzatx.zzfE(paramString), String.valueOf(((zzauu.zzb)localObject9).zzbwo));
        }
        else if (((BitSet)localObject3).get(((zzauu.zzb)localObject9).zzbwo.intValue()))
        {
          zzKl().zzMe().zze("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(k), ((zzauu.zzb)localObject9).zzbwo);
        }
        else
        {
          localObject5 = a((zzauu.zzb)localObject9, (zzauw.zzb)localObject7, l);
          zzatx.zza localzza = zzKl().zzMe();
          if (localObject5 == null) {}
          for (localObject4 = "null";; localObject4 = localObject5)
          {
            localzza.zzj("Event filter result", localObject4);
            if (localObject5 != null) {
              break label1043;
            }
            localHashSet.add(Integer.valueOf(k));
            break;
          }
          ((BitSet)localObject2).set(((zzauu.zzb)localObject9).zzbwo.intValue());
          if (((Boolean)localObject5).booleanValue()) {
            ((BitSet)localObject3).set(((zzauu.zzb)localObject9).zzbwo.intValue());
          }
        }
      }
      break label573;
      i += 1;
      break;
      if (paramArrayOfzzg != null)
      {
        localObject5 = new ArrayMap();
        j = paramArrayOfzzg.length;
        i = 0;
        if (i < j)
        {
          localObject6 = paramArrayOfzzg[i];
          localObject1 = (Map)((Map)localObject5).get(((zzauw.zzg)localObject6).name);
          if (localObject1 != null) {
            break label2224;
          }
          localObject1 = zzKg().g(paramString, ((zzauw.zzg)localObject6).name);
          paramArrayOfzzb = (zzauw.zzb[])localObject1;
          if (localObject1 == null) {
            paramArrayOfzzb = new ArrayMap();
          }
          ((Map)localObject5).put(((zzauw.zzg)localObject6).name, paramArrayOfzzb);
          localObject1 = paramArrayOfzzb;
          localObject7 = ((Map)localObject1).keySet().iterator();
          while (((Iterator)localObject7).hasNext())
          {
            k = ((Integer)((Iterator)localObject7).next()).intValue();
            if (localHashSet.contains(Integer.valueOf(k)))
            {
              zzKl().zzMe().zzj("Skipping failed audience ID", Integer.valueOf(k));
            }
            else
            {
              paramArrayOfzzb = (zzauw.zza)localArrayMap1.get(Integer.valueOf(k));
              localObject3 = (BitSet)localArrayMap2.get(Integer.valueOf(k));
              localObject2 = (BitSet)localArrayMap3.get(Integer.valueOf(k));
              if (paramArrayOfzzb != null) {
                break label2227;
              }
              paramArrayOfzzb = new zzauw.zza();
              localArrayMap1.put(Integer.valueOf(k), paramArrayOfzzb);
              paramArrayOfzzb.zzbwW = Boolean.valueOf(true);
              localObject3 = new BitSet();
              localArrayMap2.put(Integer.valueOf(k), localObject3);
              localObject2 = new BitSet();
              localArrayMap3.put(Integer.valueOf(k), localObject2);
            }
          }
        }
      }
      for (;;)
      {
        localIterator = ((List)((Map)localObject1).get(Integer.valueOf(k))).iterator();
        for (;;)
        {
          if (!localIterator.hasNext()) {
            break label2006;
          }
          localObject8 = (zzauu.zze)localIterator.next();
          if (zzKl().zzak(2))
          {
            zzKl().zzMe().zzd("Evaluating filter. audience, filter, property", Integer.valueOf(k), ((zzauu.zze)localObject8).zzbwo, ((zzauu.zze)localObject8).zzbwE);
            zzKl().zzMe().zzj("Filter definition", zzaut.zza((zzauu.zze)localObject8));
          }
          if ((((zzauu.zze)localObject8).zzbwo == null) || (((zzauu.zze)localObject8).zzbwo.intValue() > 256))
          {
            zzKl().zzMa().zze("Invalid property filter ID. appId, id", zzatx.zzfE(paramString), String.valueOf(((zzauu.zze)localObject8).zzbwo));
            localHashSet.add(Integer.valueOf(k));
            break;
          }
          if (((BitSet)localObject3).get(((zzauu.zze)localObject8).zzbwo.intValue()))
          {
            zzKl().zzMe().zze("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(k), ((zzauu.zze)localObject8).zzbwo);
          }
          else
          {
            paramArrayOfzzb = ((zzauu.zze)localObject8).zzbwF;
            if (paramArrayOfzzb == null)
            {
              zzKl().zzMa().zzj("Missing property filter. property", ((zzauw.zzg)localObject6).name);
              paramArrayOfzzb = null;
              localObject9 = zzKl().zzMe();
              if (paramArrayOfzzb != null) {
                break label1966;
              }
            }
            for (localObject4 = "null";; localObject4 = paramArrayOfzzb)
            {
              ((zzatx.zza)localObject9).zzj("Property filter result", localObject4);
              if (paramArrayOfzzb != null) {
                break label1972;
              }
              localHashSet.add(Integer.valueOf(k));
              break;
              boolean bool = Boolean.TRUE.equals(paramArrayOfzzb.zzbww);
              if (((zzauw.zzg)localObject6).zzbxc != null)
              {
                if (paramArrayOfzzb.zzbwv == null)
                {
                  zzKl().zzMa().zzj("No number filter for long property. property", ((zzauw.zzg)localObject6).name);
                  paramArrayOfzzb = null;
                  break label1635;
                }
                paramArrayOfzzb = a(a(((zzauw.zzg)localObject6).zzbxc.longValue(), paramArrayOfzzb.zzbwv), bool);
                break label1635;
              }
              if (((zzauw.zzg)localObject6).zzbwf != null)
              {
                if (paramArrayOfzzb.zzbwv == null)
                {
                  zzKl().zzMa().zzj("No number filter for double property. property", ((zzauw.zzg)localObject6).name);
                  paramArrayOfzzb = null;
                  break label1635;
                }
                paramArrayOfzzb = a(a(((zzauw.zzg)localObject6).zzbwf.doubleValue(), paramArrayOfzzb.zzbwv), bool);
                break label1635;
              }
              if (((zzauw.zzg)localObject6).zzaGV != null)
              {
                if (paramArrayOfzzb.zzbwu == null)
                {
                  if (paramArrayOfzzb.zzbwv == null) {
                    zzKl().zzMa().zzj("No string or number filter defined. property", ((zzauw.zzg)localObject6).name);
                  }
                  for (;;)
                  {
                    paramArrayOfzzb = null;
                    break;
                    if (zzaut.c(((zzauw.zzg)localObject6).zzaGV))
                    {
                      paramArrayOfzzb = a(a(((zzauw.zzg)localObject6).zzaGV, paramArrayOfzzb.zzbwv), bool);
                      break;
                    }
                    zzKl().zzMa().zze("Invalid user property value for Numeric number filter. property, value", ((zzauw.zzg)localObject6).name, ((zzauw.zzg)localObject6).zzaGV);
                  }
                }
                paramArrayOfzzb = a(a(((zzauw.zzg)localObject6).zzaGV, paramArrayOfzzb.zzbwu), bool);
                break label1635;
              }
              zzKl().zzMa().zzj("User property has no value, property", ((zzauw.zzg)localObject6).name);
              paramArrayOfzzb = null;
              break label1635;
            }
            ((BitSet)localObject2).set(((zzauu.zze)localObject8).zzbwo.intValue());
            if (paramArrayOfzzb.booleanValue()) {
              ((BitSet)localObject3).set(((zzauu.zze)localObject8).zzbwo.intValue());
            }
          }
        }
        break label1206;
        i += 1;
        break;
        paramArrayOfzzg = new zzauw.zza[localArrayMap2.size()];
        localObject1 = localArrayMap2.keySet().iterator();
        i = 0;
        while (((Iterator)localObject1).hasNext())
        {
          j = ((Integer)((Iterator)localObject1).next()).intValue();
          if (!localHashSet.contains(Integer.valueOf(j)))
          {
            paramArrayOfzzb = (zzauw.zza)localArrayMap1.get(Integer.valueOf(j));
            if (paramArrayOfzzb != null) {
              break label2221;
            }
            paramArrayOfzzb = new zzauw.zza();
          }
        }
        for (;;)
        {
          paramArrayOfzzg[i] = paramArrayOfzzb;
          paramArrayOfzzb.zzbwk = Integer.valueOf(j);
          paramArrayOfzzb.zzbwU = new zzauw.zzf();
          paramArrayOfzzb.zzbwU.zzbxH = zzaut.zza((BitSet)localArrayMap2.get(Integer.valueOf(j)));
          paramArrayOfzzb.zzbwU.zzbxG = zzaut.zza((BitSet)localArrayMap3.get(Integer.valueOf(j)));
          zzKg().a(paramString, j, paramArrayOfzzb.zzbwU);
          i += 1;
          break;
          return (zzauw.zza[])Arrays.copyOf(paramArrayOfzzg, i);
        }
        break label1192;
      }
      break label559;
    }
  }
  
  protected final void zzmS() {}
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/hu.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */