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 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035
.class public final Lb/h0/i/g;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/io/Closeable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lb/h0/i/g$e;,
        Lb/h0/i/g$g;,
        Lb/h0/i/g$c;,
        Lb/h0/i/g$d;,
        Lb/h0/i/g$f;
    }
.end annotation


# static fields
.field public static final a:Ljava/util/concurrent/ExecutorService;

.field public static final synthetic b:Z


# instance fields
.field public final c:Z

.field public final d:Lb/h0/i/g$e;

.field public final e:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lb/h0/i/q;",
            ">;"
        }
    .end annotation
.end field

.field public final f:Ljava/lang/String;

.field public g:I

.field public h:I

.field public i:Z

.field public final j:Ljava/util/concurrent/ScheduledExecutorService;

.field public final k:Ljava/util/concurrent/ExecutorService;

.field public final l:Lb/h0/i/t;

.field public m:J

.field public n:J

.field public o:J

.field public p:J

.field public q:J

.field public r:J

.field public s:J

.field public t:J

.field public u:Lb/h0/i/u;

.field public final v:Lb/h0/i/u;

.field public final w:Ljava/net/Socket;

.field public final x:Lb/h0/i/r;

.field public final y:Lb/h0/i/g$g;

.field public final z:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public static constructor <clinit>()V
    .locals 10

    const-class v0, Lb/h0/i/g;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    const/4 v1, 0x1

    xor-int/2addr v0, v1

    sput-boolean v0, Lb/h0/i/g;->b:Z

    new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;

    sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v8, Ljava/util/concurrent/SynchronousQueue;

    invoke-direct {v8}, Ljava/util/concurrent/SynchronousQueue;-><init>()V

    .line 1
    sget-object v2, Lb/h0/c;->a:[B

    new-instance v9, Lb/h0/c$b;

    const-string v2, "OkHttp Http2Connection"

    invoke-direct {v9, v2, v1}, Lb/h0/c$b;-><init>(Ljava/lang/String;Z)V

    const/4 v3, 0x0

    const v4, 0x7fffffff

    const-wide/16 v5, 0x3c

    move-object v2, v0

    .line 2
    invoke-direct/range {v2 .. v9}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    sput-object v0, Lb/h0/i/g;->a:Ljava/util/concurrent/ExecutorService;

    return-void
.end method

.method public constructor <init>(Lb/h0/i/g$c;)V
    .locals 22

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V

    new-instance v2, Ljava/util/LinkedHashMap;

    invoke-direct {v2}, Ljava/util/LinkedHashMap;-><init>()V

    iput-object v2, v0, Lb/h0/i/g;->e:Ljava/util/Map;

    const-wide/16 v2, 0x0

    iput-wide v2, v0, Lb/h0/i/g;->m:J

    iput-wide v2, v0, Lb/h0/i/g;->n:J

    iput-wide v2, v0, Lb/h0/i/g;->o:J

    iput-wide v2, v0, Lb/h0/i/g;->p:J

    iput-wide v2, v0, Lb/h0/i/g;->q:J

    iput-wide v2, v0, Lb/h0/i/g;->r:J

    iput-wide v2, v0, Lb/h0/i/g;->s:J

    new-instance v2, Lb/h0/i/u;

    invoke-direct {v2}, Lb/h0/i/u;-><init>()V

    iput-object v2, v0, Lb/h0/i/g;->u:Lb/h0/i/u;

    new-instance v2, Lb/h0/i/u;

    invoke-direct {v2}, Lb/h0/i/u;-><init>()V

    iput-object v2, v0, Lb/h0/i/g;->v:Lb/h0/i/u;

    new-instance v3, Ljava/util/LinkedHashSet;

    invoke-direct {v3}, Ljava/util/LinkedHashSet;-><init>()V

    iput-object v3, v0, Lb/h0/i/g;->z:Ljava/util/Set;

    sget-object v3, Lb/h0/i/t;->a:Lb/h0/i/t;

    iput-object v3, v0, Lb/h0/i/g;->l:Lb/h0/i/t;

    const/4 v3, 0x1

    iput-boolean v3, v0, Lb/h0/i/g;->c:Z

    iget-object v4, v1, Lb/h0/i/g$c;->e:Lb/h0/i/g$e;

    iput-object v4, v0, Lb/h0/i/g;->d:Lb/h0/i/g$e;

    iput v3, v0, Lb/h0/i/g;->h:I

    const/4 v4, 0x3

    iput v4, v0, Lb/h0/i/g;->h:I

    iget-object v4, v0, Lb/h0/i/g;->u:Lb/h0/i/u;

    const/4 v5, 0x7

    const/high16 v6, 0x1000000

    invoke-virtual {v4, v5, v6}, Lb/h0/i/u;->a(II)Lb/h0/i/u;

    iget-object v4, v1, Lb/h0/i/g$c;->b:Ljava/lang/String;

    iput-object v4, v0, Lb/h0/i/g;->f:Ljava/lang/String;

    new-instance v6, Ljava/util/concurrent/ScheduledThreadPoolExecutor;

    new-array v7, v3, [Ljava/lang/Object;

    const/4 v13, 0x0

    aput-object v4, v7, v13

    const-string v8, "OkHttp %s Writer"

    invoke-static {v8, v7}, Lb/h0/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7, v13}, Lb/h0/c;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;

    move-result-object v7

    invoke-direct {v6, v3, v7}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V

    iput-object v6, v0, Lb/h0/i/g;->j:Ljava/util/concurrent/ScheduledExecutorService;

    iget v7, v1, Lb/h0/i/g$c;->f:I

    if-eqz v7, :cond_0

    new-instance v7, Lb/h0/i/g$d;

    invoke-direct {v7, v0}, Lb/h0/i/g$d;-><init>(Lb/h0/i/g;)V

    iget v8, v1, Lb/h0/i/g$c;->f:I

    int-to-long v10, v8

    sget-object v12, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    move-wide v8, v10

    invoke-virtual/range {v6 .. v12}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->scheduleAtFixedRate(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    :cond_0
    new-instance v6, Ljava/util/concurrent/ThreadPoolExecutor;

    sget-object v19, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v20, Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-direct/range {v20 .. v20}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V

    new-array v7, v3, [Ljava/lang/Object;

    aput-object v4, v7, v13

    const-string v4, "OkHttp %s Push Observer"

    invoke-static {v4, v7}, Lb/h0/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4, v3}, Lb/h0/c;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;

    move-result-object v21

    const/4 v15, 0x0

    const/16 v16, 0x1

    const-wide/16 v17, 0x3c

    move-object v14, v6

    invoke-direct/range {v14 .. v21}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    iput-object v6, v0, Lb/h0/i/g;->k:Ljava/util/concurrent/ExecutorService;

    const v4, 0xffff

    invoke-virtual {v2, v5, v4}, Lb/h0/i/u;->a(II)Lb/h0/i/u;

    const/4 v4, 0x5

    const/16 v5, 0x4000

    invoke-virtual {v2, v4, v5}, Lb/h0/i/u;->a(II)Lb/h0/i/u;

    invoke-virtual {v2}, Lb/h0/i/u;->a()I

    move-result v2

    int-to-long v4, v2

    iput-wide v4, v0, Lb/h0/i/g;->t:J

    iget-object v2, v1, Lb/h0/i/g$c;->a:Ljava/net/Socket;

    iput-object v2, v0, Lb/h0/i/g;->w:Ljava/net/Socket;

    new-instance v2, Lb/h0/i/r;

    iget-object v4, v1, Lb/h0/i/g$c;->d:Lc/g;

    invoke-direct {v2, v4, v3}, Lb/h0/i/r;-><init>(Lc/g;Z)V

    iput-object v2, v0, Lb/h0/i/g;->x:Lb/h0/i/r;

    new-instance v2, Lb/h0/i/g$g;

    new-instance v4, Lb/h0/i/p;

    iget-object v1, v1, Lb/h0/i/g$c;->c:Lc/h;

    invoke-direct {v4, v1, v3}, Lb/h0/i/p;-><init>(Lc/h;Z)V

    invoke-direct {v2, v0, v4}, Lb/h0/i/g$g;-><init>(Lb/h0/i/g;Lb/h0/i/p;)V

    iput-object v2, v0, Lb/h0/i/g;->y:Lb/h0/i/g$g;

    return-void
.end method

.method public static a(Lb/h0/i/g;)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    :try_start_0
    sget-object v0, Lb/h0/i/b;->b:Lb/h0/i/b;

    invoke-virtual {p0, v0, v0}, Lb/h0/i/g;->a(Lb/h0/i/b;Lb/h0/i/b;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static synthetic a(Lb/h0/i/g;Z)Z
    .locals 0

    iput-boolean p1, p0, Lb/h0/i/g;->i:Z

    return p1
.end method


# virtual methods
.method public a(IJ)V
    .locals 9

    :try_start_0
    iget-object v0, p0, Lb/h0/i/g;->j:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v8, Lb/h0/i/g$b;
    :try_end_0
    .catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0

    const-string v3, "OkHttp Window Update %s stream %d"

    const/4 v1, 0x2

    :try_start_1
    new-array v4, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v2, p0, Lb/h0/i/g;->f:Ljava/lang/String;

    aput-object v2, v4, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v4, v1

    move-object v1, v8

    move-object v2, p0

    move v5, p1

    move-wide v6, p2

    invoke-direct/range {v1 .. v7}, Lb/h0/i/g$b;-><init>(Lb/h0/i/g;Ljava/lang/String;[Ljava/lang/Object;IJ)V

    invoke-interface {v0, v8}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    return-void
.end method

.method public a(ILb/h0/i/b;)V
    .locals 8

    :try_start_0
    iget-object v0, p0, Lb/h0/i/g;->j:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v7, Lb/h0/i/g$a;
    :try_end_0
    .catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0

    const-string v3, "OkHttp %s stream %d"

    const/4 v1, 0x2

    :try_start_1
    new-array v4, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v2, p0, Lb/h0/i/g;->f:Ljava/lang/String;

    aput-object v2, v4, v1

    const/4 v1, 0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v4, v1

    move-object v1, v7

    move-object v2, p0

    move v5, p1

    move-object v6, p2

    invoke-direct/range {v1 .. v6}, Lb/h0/i/g$a;-><init>(Lb/h0/i/g;Ljava/lang/String;[Ljava/lang/Object;ILb/h0/i/b;)V

    invoke-interface {v0, v7}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    return-void
.end method

.method public a(IZLc/f;J)V
    .locals 8

    const-wide/16 v0, 0x0

    cmp-long v2, p4, v0

    const/4 v3, 0x0

    if-nez v2, :cond_0

    iget-object p4, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    invoke-virtual {p4, p2, p1, p3, v3}, Lb/h0/i/r;->a(ZILc/f;I)V

    return-void

    :cond_0
    :goto_0
    cmp-long v2, p4, v0

    if-lez v2, :cond_4

    monitor-enter p0

    :goto_1
    :try_start_0
    iget-wide v4, p0, Lb/h0/i/g;->t:J

    cmp-long v2, v4, v0

    if-gtz v2, :cond_2

    iget-object v2, p0, Lb/h0/i/g;->e:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v2, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-virtual {p0}, Ljava/lang/Object;->wait()V

    goto :goto_1

    :cond_1
    new-instance p1, Ljava/io/IOException;

    const-string p2, "stream closed"

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_2
    :try_start_1
    invoke-static {p4, p5, v4, v5}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v4

    long-to-int v2, v4

    iget-object v4, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    .line 2
    iget v4, v4, Lb/h0/i/r;->e:I

    .line 3
    invoke-static {v2, v4}, Ljava/lang/Math;->min(II)I

    move-result v2

    iget-wide v4, p0, Lb/h0/i/g;->t:J

    int-to-long v6, v2

    sub-long/2addr v4, v6

    iput-wide v4, p0, Lb/h0/i/g;->t:J

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    sub-long/2addr p4, v6

    iget-object v4, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    if-eqz p2, :cond_3

    cmp-long v5, p4, v0

    if-nez v5, :cond_3

    const/4 v5, 0x1

    goto :goto_2

    :cond_3
    move v5, v3

    :goto_2
    invoke-virtual {v4, v5, p1, p3, v2}, Lb/h0/i/r;->a(ZILc/f;I)V

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_3

    :catch_0
    :try_start_2
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V

    new-instance p1, Ljava/io/InterruptedIOException;

    invoke-direct {p1}, Ljava/io/InterruptedIOException;-><init>()V

    throw p1

    :goto_3
    monitor-exit p0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw p1

    :cond_4
    return-void
.end method

.method public a(Lb/h0/i/b;)V
    .locals 4

    iget-object v0, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    monitor-enter v0

    :try_start_0
    monitor-enter p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    iget-boolean v1, p0, Lb/h0/i/g;->i:Z

    if-eqz v1, :cond_0

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    return-void

    :cond_0
    const/4 v1, 0x1

    :try_start_3
    iput-boolean v1, p0, Lb/h0/i/g;->i:Z

    iget v1, p0, Lb/h0/i/g;->g:I

    monitor-exit p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    iget-object v2, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    sget-object v3, Lb/h0/c;->a:[B

    invoke-virtual {v2, v1, p1, v3}, Lb/h0/i/r;->a(ILb/h0/i/b;[B)V

    monitor-exit v0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    return-void

    :catchall_0
    move-exception p1

    :try_start_5
    monitor-exit p0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :try_start_6
    throw p1

    :catchall_1
    move-exception p1

    monitor-exit v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1

    throw p1
.end method

.method public a(Lb/h0/i/b;Lb/h0/i/b;)V
    .locals 4

    sget-boolean v0, Lb/h0/i/g;->b:Z

    if-nez v0, :cond_1

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    new-instance p1, Ljava/lang/AssertionError;

    invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V

    throw p1

    :cond_1
    :goto_0
    const/4 v0, 0x0

    :try_start_0
    invoke-virtual {p0, p1}, Lb/h0/i/g;->a(Lb/h0/i/b;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move-object p1, v0

    goto :goto_1

    :catch_0
    move-exception p1

    :goto_1
    monitor-enter p0

    :try_start_1
    iget-object v1, p0, Lb/h0/i/g;->e:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v0, p0, Lb/h0/i/g;->e:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    iget-object v1, p0, Lb/h0/i/g;->e:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->size()I

    move-result v1

    new-array v1, v1, [Lb/h0/i/q;

    invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lb/h0/i/q;

    iget-object v1, p0, Lb/h0/i/g;->e:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->clear()V

    :cond_2
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v0, :cond_4

    array-length v1, v0

    const/4 v2, 0x0

    :goto_2
    if-ge v2, v1, :cond_4

    aget-object v3, v0, v2

    :try_start_2
    invoke-virtual {v3, p2}, Lb/h0/i/q;->a(Lb/h0/i/b;)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_3

    :catch_1
    move-exception v3

    if-eqz p1, :cond_3

    move-object p1, v3

    :cond_3
    :goto_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_4
    :try_start_3
    iget-object p2, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    invoke-virtual {p2}, Lb/h0/i/r;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    goto :goto_4

    :catch_2
    move-exception p2

    if-nez p1, :cond_5

    move-object p1, p2

    :cond_5
    :goto_4
    :try_start_4
    iget-object p2, p0, Lb/h0/i/g;->w:Ljava/net/Socket;

    invoke-virtual {p2}, Ljava/net/Socket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3

    goto :goto_5

    :catch_3
    move-exception p1

    :goto_5
    iget-object p2, p0, Lb/h0/i/g;->j:Ljava/util/concurrent/ScheduledExecutorService;

    invoke-interface {p2}, Ljava/util/concurrent/ScheduledExecutorService;->shutdown()V

    iget-object p2, p0, Lb/h0/i/g;->k:Ljava/util/concurrent/ExecutorService;

    invoke-interface {p2}, Ljava/util/concurrent/ExecutorService;->shutdown()V

    if-nez p1, :cond_6

    return-void

    :cond_6
    throw p1

    :catchall_0
    move-exception p1

    :try_start_5
    monitor-exit p0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    throw p1
.end method

.method public a(ZII)V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    invoke-virtual {v0, p1, p2, p3}, Lb/h0/i/r;->a(ZII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 4
    :catch_0
    :try_start_1
    sget-object p1, Lb/h0/i/b;->b:Lb/h0/i/b;

    invoke-virtual {p0, p1, p1}, Lb/h0/i/g;->a(Lb/h0/i/b;Lb/h0/i/b;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    :catch_1
    :goto_0
    return-void
.end method

.method public close()V
    .locals 2

    sget-object v0, Lb/h0/i/b;->a:Lb/h0/i/b;

    sget-object v1, Lb/h0/i/b;->f:Lb/h0/i/b;

    invoke-virtual {p0, v0, v1}, Lb/h0/i/g;->a(Lb/h0/i/b;Lb/h0/i/b;)V

    return-void
.end method

.method public d(I)Z
    .locals 1

    const/4 v0, 0x1

    if-eqz p1, :cond_0

    and-int/2addr p1, v0

    if-nez p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public declared-synchronized e(I)Lb/h0/i/q;
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lb/h0/i/g;->e:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lb/h0/i/q;

    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public flush()V
    .locals 3

    iget-object v0, p0, Lb/h0/i/g;->x:Lb/h0/i/r;

    monitor-enter v0

    .line 1
    :try_start_0
    iget-boolean v1, v0, Lb/h0/i/r;->f:Z

    if-nez v1, :cond_0

    iget-object v1, v0, Lb/h0/i/r;->b:Lc/g;

    invoke-interface {v1}, Lc/g;->flush()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :cond_0
    :try_start_1
    new-instance v1, Ljava/io/IOException;

    const-string v2, "closed"

    invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public declared-synchronized h(J)V
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-wide v0, p0, Lb/h0/i/g;->s:J

    add-long/2addr v0, p1

    iput-wide v0, p0, Lb/h0/i/g;->s:J

    iget-object p1, p0, Lb/h0/i/g;->u:Lb/h0/i/u;

    invoke-virtual {p1}, Lb/h0/i/u;->a()I

    move-result p1

    div-int/lit8 p1, p1, 0x2

    int-to-long p1, p1

    cmp-long p1, v0, p1

    if-ltz p1, :cond_0

    iget-wide p1, p0, Lb/h0/i/g;->s:J

    const/4 v0, 0x0

    invoke-virtual {p0, v0, p1, p2}, Lb/h0/i/g;->a(IJ)V

    const-wide/16 p1, 0x0

    iput-wide p1, p0, Lb/h0/i/g;->s:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method