ChatActivity$10.smali

.class Lim/tpelyyftgw/ui/ChatActivity$10;
.super Lim/tpelyyftgw/ui/components/RecyclerListView;
.source "ChatActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/ChatActivity;->createView(Landroid/content/Context;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field drawCaptionAfter:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lim/tpelyyftgw/ui/cells/ChatMessageCell;",
            ">;"
        }
    .end annotation
.end field

.field drawNamesAfter:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lim/tpelyyftgw/ui/cells/ChatMessageCell;",
            ">;"
        }
    .end annotation
.end field

.field drawTimeAfter:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lim/tpelyyftgw/ui/cells/ChatMessageCell;",
            ">;"
        }
    .end annotation
.end field

.field private endedTrackingX:F

.field private lastReplyButtonAnimationTime:J

.field private lastTrackingAnimationTime:J

.field private lastWidth:I

.field private maybeStartTracking:Z

.field private replyButtonProgress:F

.field private slideAnimationInProgress:Z

.field private slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

.field private startedTracking:Z

.field private startedTrackingPointerId:I

.field private startedTrackingX:I

.field private startedTrackingY:I

.field final synthetic this$0:Lim/tpelyyftgw/ui/ChatActivity;

.field private trackAnimationProgress:F

.field private wasTrackingVibrate:Z


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/ChatActivity;Landroid/content/Context;)V
    .registers 4
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/ChatActivity;
    .param p2, "context"    # Landroid/content/Context;

    .line 2540
    iput-object p1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-direct {p0, p2}, Lim/tpelyyftgw/ui/components/RecyclerListView;-><init>(Landroid/content/Context;)V

    .line 2544
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawTimeAfter:Ljava/util/ArrayList;

    .line 2545
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawNamesAfter:Ljava/util/ArrayList;

    .line 2546
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawCaptionAfter:Ljava/util/ArrayList;

    return-void
.end method

.method private drawReplyButton(Landroid/graphics/Canvas;)V
    .registers 18
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 2633
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    iget-object v2, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-nez v2, :cond_9

    .line 2634
    return-void

    .line 2636
    :cond_9
    invoke-virtual {v2}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v2

    .line 2637
    .local v2, "translationX":F
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    .line 2638
    .local v3, "newTime":J
    const-wide/16 v5, 0x11

    iget-wide v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastReplyButtonAnimationTime:J

    sub-long v7, v3, v7

    invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v5

    .line 2639
    .local v5, "dt":J
    iput-wide v3, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastReplyButtonAnimationTime:J

    .line 2641
    const/high16 v7, 0x42480000    # 50.0f

    invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    neg-int v7, v7

    int-to-float v7, v7

    const/4 v8, 0x0

    cmpg-float v7, v2, v7

    if-gtz v7, :cond_2c

    const/4 v7, 0x1

    goto :goto_2d

    :cond_2c
    const/4 v7, 0x0

    :goto_2d
    move v9, v7

    .local v9, "showing":Z
    const/high16 v10, 0x43340000    # 180.0f

    if-eqz v7, :cond_4a

    .line 2642
    iget v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    const/high16 v11, 0x3f800000    # 1.0f

    cmpg-float v12, v7, v11

    if-gez v12, :cond_60

    .line 2643
    long-to-float v12, v5

    div-float/2addr v12, v10

    add-float/2addr v7, v12

    iput v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    .line 2644
    cmpl-float v7, v7, v11

    if-lez v7, :cond_46

    .line 2645
    iput v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    goto :goto_60

    .line 2647
    :cond_46
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    goto :goto_60

    .line 2651
    :cond_4a
    iget v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    const/4 v11, 0x0

    cmpl-float v12, v7, v11

    if-lez v12, :cond_60

    .line 2652
    long-to-float v12, v5

    div-float/2addr v12, v10

    sub-float/2addr v7, v12

    iput v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    .line 2653
    cmpg-float v7, v7, v11

    if-gez v7, :cond_5d

    .line 2654
    iput v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    goto :goto_60

    .line 2656
    :cond_5d
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    .line 2662
    :cond_60
    :goto_60
    const/high16 v7, 0x437f0000    # 255.0f

    if-eqz v9, :cond_88

    .line 2663
    iget v10, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    const v11, 0x3f99999a    # 1.2f

    const v12, 0x3f4ccccd    # 0.8f

    cmpg-float v13, v10, v12

    if-gtz v13, :cond_74

    .line 2664
    div-float/2addr v10, v12

    mul-float v10, v10, v11

    .local v10, "scale":F
    goto :goto_7d

    .line 2666
    .end local v10    # "scale":F
    :cond_74
    sub-float/2addr v10, v12

    const v13, 0x3e4ccccd    # 0.2f

    div-float/2addr v10, v13

    mul-float v10, v10, v13

    sub-float v10, v11, v10

    .line 2668
    .restart local v10    # "scale":F
    :goto_7d
    iget v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    div-float/2addr v11, v12

    mul-float v11, v11, v7

    invoke-static {v7, v11}, Ljava/lang/Math;->min(FF)F

    move-result v7

    float-to-int v7, v7

    .local v7, "alpha":I
    goto :goto_93

    .line 2670
    .end local v7    # "alpha":I
    .end local v10    # "scale":F
    :cond_88
    iget v10, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    .line 2671
    .restart local v10    # "scale":F
    iget v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->replyButtonProgress:F

    mul-float v11, v11, v7

    invoke-static {v7, v11}, Ljava/lang/Math;->min(FF)F

    move-result v7

    float-to-int v7, v7

    .line 2673
    .restart local v7    # "alpha":I
    :goto_93
    sget-object v11, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_shareDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v11, v7}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 2674
    sget-object v11, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyIconDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v11, v7}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 2675
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getMeasuredWidth()I

    move-result v11

    int-to-float v11, v11

    iget-object v12, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v12

    const/high16 v13, 0x40000000    # 2.0f

    div-float/2addr v12, v13

    add-float/2addr v11, v12

    .line 2676
    .local v11, "x":F
    iget-object v12, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v12

    iget-object v13, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v13}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getMeasuredHeight()I

    move-result v13

    div-int/lit8 v13, v13, 0x2

    add-int/2addr v12, v13

    int-to-float v12, v12

    .line 2677
    .local v12, "y":F
    invoke-static {}, Lim/tpelyyftgw/ui/actionbar/Theme;->isCustomTheme()Z

    move-result v13

    const-string v14, "chat_shareBackground"

    if-eqz v13, :cond_d3

    invoke-static {v14}, Lim/tpelyyftgw/ui/actionbar/Theme;->hasThemeKey(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_cb

    goto :goto_d3

    .line 2680
    :cond_cb
    sget-object v8, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_shareDrawable:Landroid/graphics/drawable/Drawable;

    sget-object v13, Lim/tpelyyftgw/ui/actionbar/Theme;->colorFilter2:Landroid/graphics/PorterDuffColorFilter;

    invoke-virtual {v8, v13}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V

    goto :goto_e0

    .line 2678
    :cond_d3
    :goto_d3
    sget-object v13, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_shareDrawable:Landroid/graphics/drawable/Drawable;

    invoke-static {v14}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v14

    invoke-static {v14, v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getShareColorFilter(IZ)Landroid/graphics/ColorFilter;

    move-result-object v8

    invoke-virtual {v13, v8}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V

    .line 2682
    :goto_e0
    sget-object v8, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_shareDrawable:Landroid/graphics/drawable/Drawable;

    const/high16 v13, 0x41600000    # 14.0f

    invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v14

    int-to-float v14, v14

    mul-float v14, v14, v10

    sub-float v14, v11, v14

    float-to-int v14, v14

    invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v15

    int-to-float v15, v15

    mul-float v15, v15, v10

    sub-float v15, v12, v15

    float-to-int v15, v15

    .line 2683
    invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v0

    int-to-float v0, v0

    mul-float v0, v0, v10

    add-float/2addr v0, v11

    float-to-int v0, v0

    invoke-static {v13}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v13

    int-to-float v13, v13

    mul-float v13, v13, v10

    add-float/2addr v13, v12

    float-to-int v13, v13

    .line 2682
    invoke-virtual {v8, v14, v15, v0, v13}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 2684
    sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_shareDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 2685
    sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyIconDrawable:Landroid/graphics/drawable/Drawable;

    const/high16 v8, 0x40e00000    # 7.0f

    invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v13

    int-to-float v13, v13

    mul-float v13, v13, v10

    sub-float v13, v11, v13

    float-to-int v13, v13

    const/high16 v14, 0x40c00000    # 6.0f

    invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v14

    int-to-float v14, v14

    mul-float v14, v14, v10

    sub-float v14, v12, v14

    float-to-int v14, v14

    .line 2686
    invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v8

    int-to-float v8, v8

    mul-float v8, v8, v10

    add-float/2addr v8, v11

    float-to-int v8, v8

    const/high16 v15, 0x40a00000    # 5.0f

    invoke-static {v15}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v15

    int-to-float v15, v15

    mul-float v15, v15, v10

    add-float/2addr v15, v12

    float-to-int v15, v15

    .line 2685
    invoke-virtual {v0, v13, v14, v8, v15}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 2687
    sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyIconDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 2688
    sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_shareDrawable:Landroid/graphics/drawable/Drawable;

    const/16 v8, 0xff

    invoke-virtual {v0, v8}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 2689
    sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyIconDrawable:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v8}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 2690
    return-void
.end method

.method private processTouchEvent(Landroid/view/MotionEvent;)V
    .registers 20
    .param p1, "e"    # Landroid/view/MotionEvent;

    .line 2693
    move-object/from16 v1, p0

    move-object/from16 v2, p1

    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    const/4 v3, 0x1

    invoke-static {v0, v3}, Lim/tpelyyftgw/ui/ChatActivity;->access$802(Lim/tpelyyftgw/ui/ChatActivity;Z)Z

    .line 2694
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v4, 0x0

    if-nez v0, :cond_e8

    iget-boolean v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    if-nez v0, :cond_e8

    iget-boolean v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    if-nez v0, :cond_e8

    .line 2695
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getPressedChildView()Landroid/view/View;

    move-result-object v0

    .line 2696
    .local v0, "view":Landroid/view/View;
    instance-of v5, v0, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v5, :cond_e6

    .line 2697
    move-object v5, v0

    check-cast v5, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    iput-object v5, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2698
    invoke-virtual {v5}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getMessageObject()Lim/tpelyyftgw/messenger/MessageObject;

    move-result-object v5

    .line 2699
    .local v5, "message":Lim/tpelyyftgw/messenger/MessageObject;
    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v6}, Lim/tpelyyftgw/ui/ChatActivity;->access$13400(Lim/tpelyyftgw/ui/ChatActivity;)Z

    move-result v6

    if-nez v6, :cond_e2

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentEncryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    if-eqz v6, :cond_46

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentEncryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    iget v6, v6, Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;->layer:I

    .line 2700
    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPeerLayerVersion(I)I

    move-result v6

    const/16 v7, 0x2e

    if-lt v6, v7, :cond_e2

    :cond_46
    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    .line 2701
    invoke-static {v6, v5}, Lim/tpelyyftgw/ui/ChatActivity;->access$13500(Lim/tpelyyftgw/ui/ChatActivity;Lim/tpelyyftgw/messenger/MessageObject;)I

    move-result v6

    if-ne v6, v3, :cond_62

    invoke-virtual {v5}, Lim/tpelyyftgw/messenger/MessageObject;->getDialogId()J

    move-result-wide v6

    iget-object v8, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v8}, Lim/tpelyyftgw/ui/ChatActivity;->access$6700(Lim/tpelyyftgw/ui/ChatActivity;)J

    move-result-wide v8

    cmp-long v10, v6, v8

    if-eqz v10, :cond_e2

    invoke-virtual {v5}, Lim/tpelyyftgw/messenger/MessageObject;->needDrawBluredPreview()Z

    move-result v6

    if-nez v6, :cond_e2

    :cond_62
    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentEncryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    if-nez v6, :cond_6e

    .line 2702
    invoke-virtual {v5}, Lim/tpelyyftgw/messenger/MessageObject;->getId()I

    move-result v6

    if-ltz v6, :cond_e2

    :cond_6e
    iget v6, v5, Lim/tpelyyftgw/messenger/MessageObject;->type:I

    const/16 v7, 0x65

    if-eq v6, v7, :cond_e2

    iget v6, v5, Lim/tpelyyftgw/messenger/MessageObject;->type:I

    const/16 v7, 0x66

    if-eq v6, v7, :cond_e2

    iget v6, v5, Lim/tpelyyftgw/messenger/MessageObject;->type:I

    const/16 v7, 0x69

    if-eq v6, v7, :cond_e2

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    .line 2703
    invoke-static {v6}, Lim/tpelyyftgw/ui/ChatActivity;->access$13600(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v6

    if-eqz v6, :cond_94

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v6}, Lim/tpelyyftgw/ui/ChatActivity;->access$13600(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/FrameLayout;->getVisibility()I

    move-result v6

    if-eqz v6, :cond_e2

    :cond_94
    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentChat:Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    if-eqz v6, :cond_cb

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentChat:Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    .line 2704
    invoke-static {v6}, Lim/tpelyyftgw/messenger/ChatObject;->isNotInChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v6

    if-nez v6, :cond_e2

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentChat:Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    invoke-static {v6}, Lim/tpelyyftgw/messenger/ChatObject;->isChannel(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v6

    if-eqz v6, :cond_c0

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentChat:Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    invoke-static {v6}, Lim/tpelyyftgw/messenger/ChatObject;->canPost(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v6

    if-nez v6, :cond_c0

    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentChat:Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    iget-boolean v6, v6, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->megagroup:Z

    if-eqz v6, :cond_e2

    :cond_c0
    iget-object v6, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v6, v6, Lim/tpelyyftgw/ui/ChatActivity;->currentChat:Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    invoke-static {v6}, Lim/tpelyyftgw/messenger/ChatObject;->canSendMessages(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v6

    if-nez v6, :cond_cb

    goto :goto_e2

    .line 2708
    :cond_cb
    invoke-virtual {v2, v4}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v4

    iput v4, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingPointerId:I

    .line 2709
    iput-boolean v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    .line 2710
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    float-to-int v3, v3

    iput v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingX:I

    .line 2711
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    float-to-int v3, v3

    iput v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingY:I

    goto :goto_e6

    .line 2705
    :cond_e2
    :goto_e2
    const/4 v3, 0x0

    iput-object v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2706
    return-void

    .line 2713
    .end local v0    # "view":Landroid/view/View;
    .end local v5    # "message":Lim/tpelyyftgw/messenger/MessageObject;
    :cond_e6
    :goto_e6
    goto/16 :goto_222

    :cond_e8
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    const/high16 v5, 0x42480000    # 50.0f

    const/4 v6, 0x3

    if-eqz v0, :cond_1c2

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v7, 0x2

    if-ne v0, v7, :cond_1c2

    invoke-virtual {v2, v4}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v0

    iget v8, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingPointerId:I

    if-ne v0, v8, :cond_1c2

    .line 2714
    const/high16 v0, -0x3d600000    # -80.0f

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v0

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v8

    iget v9, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingX:I

    int-to-float v9, v9

    sub-float/2addr v8, v9

    float-to-int v8, v8

    invoke-static {v4, v8}, Ljava/lang/Math;->min(II)I

    move-result v8

    invoke-static {v0, v8}, Ljava/lang/Math;->max(II)I

    move-result v8

    .line 2715
    .local v8, "dx":I
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    iget v9, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingY:I

    sub-int/2addr v0, v9

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v9

    .line 2716
    .local v9, "dy":I
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getScrollState()I

    move-result v0

    if-nez v0, :cond_17e

    iget-boolean v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    if-eqz v0, :cond_17e

    iget-boolean v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    if-nez v0, :cond_17e

    int-to-float v0, v8

    const v10, 0x3ecccccd    # 0.4f

    invoke-static {v10, v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPixelsInCM(FZ)F

    move-result v10

    neg-float v10, v10

    cmpg-float v0, v0, v10

    if-gtz v0, :cond_17e

    invoke-static {v8}, Ljava/lang/Math;->abs(I)I

    move-result v0

    div-int/2addr v0, v6

    if-le v0, v9, :cond_17e

    .line 2717
    const-wide/16 v10, 0x0

    const-wide/16 v12, 0x0

    const/4 v14, 0x3

    const/4 v15, 0x0

    const/16 v16, 0x0

    const/16 v17, 0x0

    invoke-static/range {v10 .. v17}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;

    move-result-object v0

    .line 2718
    .local v0, "event":Landroid/view/MotionEvent;
    iget-object v5, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v5, v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->onTouchEvent(Landroid/view/MotionEvent;)Z

    .line 2719
    invoke-super {v1, v0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    .line 2720
    invoke-virtual {v0}, Landroid/view/MotionEvent;->recycle()V

    .line 2721
    iget-object v5, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v5}, Lim/tpelyyftgw/ui/ChatActivity;->access$12600(Lim/tpelyyftgw/ui/ChatActivity;)Landroidx/recyclerview/widget/GridLayoutManagerFixed;

    move-result-object v5

    invoke-virtual {v5, v4}, Landroidx/recyclerview/widget/GridLayoutManagerFixed;->setCanScrollVertically(Z)V

    .line 2722
    iput-boolean v4, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    .line 2723
    iput-boolean v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    .line 2724
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v4

    float-to-int v4, v4

    iput v4, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingX:I

    .line 2725
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getParent()Landroid/view/ViewParent;

    move-result-object v4

    if-eqz v4, :cond_1c1

    .line 2726
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getParent()Landroid/view/ViewParent;

    move-result-object v4

    invoke-interface {v4, v3}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    goto :goto_1c1

    .line 2728
    .end local v0    # "event":Landroid/view/MotionEvent;
    :cond_17e
    iget-boolean v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    if-eqz v0, :cond_1c1

    .line 2729
    invoke-static {v8}, Ljava/lang/Math;->abs(I)I

    move-result v0

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    if-lt v0, v5, :cond_198

    .line 2730
    iget-boolean v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->wasTrackingVibrate:Z

    if-nez v0, :cond_19a

    .line 2732
    :try_start_190
    invoke-virtual {v1, v6, v7}, Lim/tpelyyftgw/ui/ChatActivity$10;->performHapticFeedback(II)Z
    :try_end_193
    .catch Ljava/lang/Exception; {:try_start_190 .. :try_end_193} :catch_194

    .line 2735
    goto :goto_195

    .line 2733
    :catch_194
    move-exception v0

    .line 2736
    :goto_195
    iput-boolean v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->wasTrackingVibrate:Z

    goto :goto_19a

    .line 2739
    :cond_198
    iput-boolean v4, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->wasTrackingVibrate:Z

    .line 2741
    :cond_19a
    :goto_19a
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    int-to-float v3, v8

    invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->setTranslationX(F)V

    .line 2742
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getMessageObject()Lim/tpelyyftgw/messenger/MessageObject;

    move-result-object v0

    .line 2743
    .local v0, "messageObject":Lim/tpelyyftgw/messenger/MessageObject;
    invoke-virtual {v0}, Lim/tpelyyftgw/messenger/MessageObject;->isRoundVideo()Z

    move-result v3

    if-nez v3, :cond_1b2

    invoke-virtual {v0}, Lim/tpelyyftgw/messenger/MessageObject;->isVideo()Z

    move-result v3

    if-eqz v3, :cond_1b7

    .line 2744
    :cond_1b2
    iget-object v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/ChatActivity;->updateTextureViewPosition(Z)V

    .line 2746
    :cond_1b7
    iget-object v3, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    int-to-float v4, v8

    invoke-direct {v1, v3, v4}, Lim/tpelyyftgw/ui/ChatActivity$10;->setGroupTranslationX(Lim/tpelyyftgw/ui/cells/ChatMessageCell;F)V

    .line 2747
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    goto :goto_221

    .line 2728
    .end local v0    # "messageObject":Lim/tpelyyftgw/messenger/MessageObject;
    :cond_1c1
    :goto_1c1
    goto :goto_221

    .line 2749
    .end local v8    # "dx":I
    .end local v9    # "dy":I
    :cond_1c2
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v0, :cond_221

    invoke-virtual {v2, v4}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v0

    iget v7, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTrackingPointerId:I

    if-ne v0, v7, :cond_221

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-eq v0, v6, :cond_1e1

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-eq v0, v3, :cond_1e1

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v6, 0x6

    if-ne v0, v6, :cond_221

    .line 2750
    :cond_1e1
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    int-to-float v5, v5

    cmpl-float v0, v0, v5

    if-ltz v0, :cond_1ff

    .line 2751
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v5, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getMessageObject()Lim/tpelyyftgw/messenger/MessageObject;

    move-result-object v5

    invoke-virtual {v0, v5}, Lim/tpelyyftgw/ui/ChatActivity;->showFieldPanelForReply(Lim/tpelyyftgw/messenger/MessageObject;)V

    .line 2753
    :cond_1ff
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v0

    iput v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->endedTrackingX:F

    .line 2754
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    iput-wide v5, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->lastTrackingAnimationTime:J

    .line 2755
    const/4 v0, 0x0

    iput v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->trackAnimationProgress:F

    .line 2756
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    .line 2757
    iput-boolean v4, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    .line 2758
    iput-boolean v4, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    .line 2759
    iget-object v0, v1, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12600(Lim/tpelyyftgw/ui/ChatActivity;)Landroidx/recyclerview/widget/GridLayoutManagerFixed;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroidx/recyclerview/widget/GridLayoutManagerFixed;->setCanScrollVertically(Z)V

    goto :goto_222

    .line 2749
    :cond_221
    :goto_221
    nop

    .line 2761
    :goto_222
    return-void
.end method

.method private setGroupTranslationX(Lim/tpelyyftgw/ui/cells/ChatMessageCell;F)V
    .registers 9
    .param p1, "view"    # Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .param p2, "dx"    # F

    .line 2595
    invoke-virtual {p1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v0

    .line 2596
    .local v0, "group":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    if-nez v0, :cond_7

    .line 2597
    return-void

    .line 2599
    :cond_7
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildCount()I

    move-result v1

    .line 2600
    .local v1, "count":I
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_c
    if-ge v2, v1, :cond_2b

    .line 2601
    invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 2602
    .local v3, "child":Landroid/view/View;
    if-eq v3, p0, :cond_28

    instance-of v4, v3, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-nez v4, :cond_19

    .line 2603
    goto :goto_28

    .line 2605
    :cond_19
    move-object v4, v3

    check-cast v4, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2606
    .local v4, "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v5

    if-ne v5, v0, :cond_28

    .line 2607
    invoke-virtual {v4, p2}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->setTranslationX(F)V

    .line 2608
    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->invalidate()V

    .line 2600
    .end local v3    # "child":Landroid/view/View;
    .end local v4    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_28
    :goto_28
    add-int/lit8 v2, v2, 0x1

    goto :goto_c

    .line 2611
    .end local v2    # "a":I
    :cond_2b
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    .line 2612
    return-void
.end method


# virtual methods
.method public createAccessibilityNodeInfo()Landroid/view/accessibility/AccessibilityNodeInfo;
    .registers 2

    .line 3136
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v0, v0, Lim/tpelyyftgw/ui/ChatActivity;->currentEncryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    if-eqz v0, :cond_8

    .line 3137
    const/4 v0, 0x0

    return-object v0

    .line 3139
    :cond_8
    invoke-super {p0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->createAccessibilityNodeInfo()Landroid/view/accessibility/AccessibilityNodeInfo;

    move-result-object v0

    return-object v0
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .registers 18
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 2839
    move-object/from16 v0, p0

    iget-object v1, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lim/tpelyyftgw/ui/ChatActivity;->access$7902(Lim/tpelyyftgw/ui/ChatActivity;Lim/tpelyyftgw/ui/cells/ChatMessageCell;)Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2840
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildCount()I

    move-result v1

    .line 2841
    .local v1, "count":I
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_d
    if-ge v2, v1, :cond_66

    .line 2842
    invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 2843
    .local v3, "child":Landroid/view/View;
    instance-of v4, v3, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v4, :cond_63

    .line 2844
    move-object v4, v3

    check-cast v4, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2845
    .local v4, "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentPosition()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;

    move-result-object v5

    .line 2846
    .local v5, "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->isDrawingSelectionBackground()Z

    move-result v6

    if-eqz v6, :cond_63

    if-eqz v5, :cond_2c

    iget v6, v5, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I

    and-int/lit8 v6, v6, 0x2

    if-eqz v6, :cond_63

    .line 2847
    :cond_2c
    const-string v6, "chat_selectedBackground"

    invoke-static {v6}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v7

    .line 2848
    .local v7, "color":I
    invoke-static {v7}, Landroid/graphics/Color;->alpha(I)I

    move-result v8

    .line 2849
    .local v8, "alpha":I
    sget-object v9, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyLinePaint:Landroid/graphics/Paint;

    invoke-static {v6}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v6

    invoke-virtual {v9, v6}, Landroid/graphics/Paint;->setColor(I)V

    .line 2850
    sget-object v6, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyLinePaint:Landroid/graphics/Paint;

    int-to-float v9, v8

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getHightlightAlpha()F

    move-result v10

    mul-float v9, v9, v10

    float-to-int v9, v9

    invoke-virtual {v6, v9}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 2851
    const/4 v11, 0x0

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v6

    int-to-float v12, v6

    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getMeasuredWidth()I

    move-result v6

    int-to-float v13, v6

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getBottom()I

    move-result v6

    int-to-float v14, v6

    sget-object v15, Lim/tpelyyftgw/ui/actionbar/Theme;->chat_replyLinePaint:Landroid/graphics/Paint;

    move-object/from16 v10, p1

    invoke-virtual/range {v10 .. v15}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 2841
    .end local v3    # "child":Landroid/view/View;
    .end local v4    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v5    # "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
    .end local v7    # "color":I
    .end local v8    # "alpha":I
    :cond_63
    add-int/lit8 v2, v2, 0x1

    goto :goto_d

    .line 2855
    .end local v2    # "a":I
    :cond_66
    invoke-super/range {p0 .. p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->dispatchDraw(Landroid/graphics/Canvas;)V

    .line 2856
    return-void
.end method

.method public drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
    .registers 35
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "child"    # Landroid/view/View;
    .param p3, "drawingTime"    # J

    .line 2860
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    const/4 v3, 0x0

    .line 2861
    .local v3, "clipLeft":I
    const/4 v4, 0x0

    .line 2862
    .local v4, "clipBottom":I
    iget-object v5, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v5}, Lim/tpelyyftgw/ui/ChatActivity;->access$7500(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/view/View;

    move-result-object v5

    const/4 v7, 0x1

    if-ne v2, v5, :cond_13

    const/4 v5, 0x1

    goto :goto_14

    :cond_13
    const/4 v5, 0x0

    .line 2864
    .local v5, "skipDraw":Z
    :goto_14
    instance-of v8, v2, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v8, :cond_7f

    .line 2865
    move-object v8, v2

    check-cast v8, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2866
    .local v8, "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentPosition()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;

    move-result-object v9

    .line 2867
    .local v9, "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v10

    .line 2868
    .local v10, "group":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    if-eqz v9, :cond_52

    .line 2869
    iget v11, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->pw:I

    iget v12, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I

    if-eq v11, v12, :cond_3e

    iget v11, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I

    const/16 v12, 0x3e8

    if-ne v11, v12, :cond_3e

    iget-object v11, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->siblingHeights:[F

    if-nez v11, :cond_3e

    iget-boolean v11, v10, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;->hasSibling:Z

    if-eqz v11, :cond_3e

    .line 2870
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getBackgroundDrawableLeft()I

    move-result v3

    goto :goto_52

    .line 2871
    :cond_3e
    iget-object v11, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->siblingHeights:[F

    if-eqz v11, :cond_52

    .line 2872
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getBottom()I

    move-result v11

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->isPinnedBottom()Z

    move-result v12

    add-int/2addr v12, v7

    int-to-float v12, v12

    invoke-static {v12}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v12

    sub-int/2addr v11, v12

    move v4, v11

    .line 2875
    :cond_52
    :goto_52
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->needDelayRoundProgressDraw()Z

    move-result v11

    if-eqz v11, :cond_5d

    .line 2876
    iget-object v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v11, v8}, Lim/tpelyyftgw/ui/ChatActivity;->access$7902(Lim/tpelyyftgw/ui/ChatActivity;Lim/tpelyyftgw/ui/cells/ChatMessageCell;)Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2878
    :cond_5d
    if-nez v5, :cond_7e

    iget-object v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v11}, Lim/tpelyyftgw/ui/ChatActivity;->access$7500(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/view/View;

    move-result-object v11

    instance-of v11, v11, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v11, :cond_7e

    .line 2879
    iget-object v11, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v11}, Lim/tpelyyftgw/ui/ChatActivity;->access$7500(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/view/View;

    move-result-object v11

    check-cast v11, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2880
    .local v11, "cell2":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    invoke-virtual {v11}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v12

    if-eqz v12, :cond_7e

    invoke-virtual {v11}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v12

    if-ne v12, v10, :cond_7e

    .line 2881
    const/4 v5, 0x1

    .line 2884
    .end local v9    # "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
    .end local v10    # "group":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .end local v11    # "cell2":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_7e
    goto :goto_80

    .line 2885
    .end local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_7f
    const/4 v8, 0x0

    .line 2887
    .restart local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :goto_80
    if-eqz v3, :cond_86

    .line 2888
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    goto :goto_8b

    .line 2890
    :cond_86
    if-eqz v4, :cond_8b

    .line 2891
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 2895
    :cond_8b
    :goto_8b
    if-nez v5, :cond_92

    .line 2896
    invoke-super/range {p0 .. p4}, Lim/tpelyyftgw/ui/components/RecyclerListView;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    move-result v9

    .local v9, "result":Z
    goto :goto_93

    .line 2898
    .end local v9    # "result":Z
    :cond_92
    const/4 v9, 0x0

    .line 2900
    .restart local v9    # "result":Z
    :goto_93
    if-nez v3, :cond_97

    if-eqz v4, :cond_9a

    .line 2901
    :cond_97
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    .line 2903
    :cond_9a
    if-eqz v8, :cond_9f

    .line 2904
    invoke-virtual {v8, v1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawCheckBox(Landroid/graphics/Canvas;)V

    .line 2906
    :cond_9f
    const/4 v10, 0x0

    .line 2907
    .local v10, "num":I
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildCount()I

    move-result v11

    .line 2908
    .local v11, "count":I
    const/4 v12, 0x0

    .local v12, "a":I
    :goto_a5
    if-ge v12, v11, :cond_b2

    .line 2909
    invoke-virtual {v0, v12}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildAt(I)Landroid/view/View;

    move-result-object v13

    if-ne v13, v2, :cond_af

    .line 2910
    move v10, v12

    .line 2911
    goto :goto_b2

    .line 2908
    :cond_af
    add-int/lit8 v12, v12, 0x1

    goto :goto_a5

    .line 2914
    .end local v12    # "a":I
    :cond_b2
    :goto_b2
    add-int/lit8 v12, v11, -0x1

    if-ne v10, v12, :cond_16e

    .line 2915
    iget-object v12, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawTimeAfter:Ljava/util/ArrayList;

    invoke-virtual {v12}, Ljava/util/ArrayList;->size()I

    move-result v12

    .line 2916
    .local v12, "size":I
    if-lez v12, :cond_ed

    .line 2917
    const/4 v13, 0x0

    .local v13, "a":I
    :goto_bf
    if-ge v13, v12, :cond_e8

    .line 2918
    iget-object v14, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawTimeAfter:Ljava/util/ArrayList;

    invoke-virtual {v14, v13}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v14

    move-object v8, v14

    check-cast v8, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2919
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 2920
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getLeft()I

    move-result v14

    int-to-float v14, v14

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v15

    add-float/2addr v14, v15

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v15

    int-to-float v15, v15

    invoke-virtual {v1, v14, v15}, Landroid/graphics/Canvas;->translate(FF)V

    .line 2921
    invoke-virtual {v8, v1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawTime(Landroid/graphics/Canvas;)V

    .line 2922
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    .line 2917
    add-int/lit8 v13, v13, 0x1

    goto :goto_bf

    .line 2924
    .end local v13    # "a":I
    :cond_e8
    iget-object v13, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawTimeAfter:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->clear()V

    .line 2926
    :cond_ed
    iget-object v13, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawNamesAfter:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v12

    .line 2927
    if-lez v12, :cond_124

    .line 2928
    const/4 v13, 0x0

    .restart local v13    # "a":I
    :goto_f6
    if-ge v13, v12, :cond_11f

    .line 2929
    iget-object v14, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawNamesAfter:Ljava/util/ArrayList;

    invoke-virtual {v14, v13}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v14

    move-object v8, v14

    check-cast v8, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2930
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 2931
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getLeft()I

    move-result v14

    int-to-float v14, v14

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v15

    add-float/2addr v14, v15

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v15

    int-to-float v15, v15

    invoke-virtual {v1, v14, v15}, Landroid/graphics/Canvas;->translate(FF)V

    .line 2932
    invoke-virtual {v8, v1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawNamesLayout(Landroid/graphics/Canvas;)V

    .line 2933
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    .line 2928
    add-int/lit8 v13, v13, 0x1

    goto :goto_f6

    .line 2935
    .end local v13    # "a":I
    :cond_11f
    iget-object v13, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawNamesAfter:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->clear()V

    .line 2937
    :cond_124
    iget-object v13, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawCaptionAfter:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v12

    .line 2938
    if-lez v12, :cond_16e

    .line 2939
    const/4 v13, 0x0

    .restart local v13    # "a":I
    :goto_12d
    if-ge v13, v12, :cond_169

    .line 2940
    iget-object v14, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawCaptionAfter:Ljava/util/ArrayList;

    invoke-virtual {v14, v13}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v14

    move-object v8, v14

    check-cast v8, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2941
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentPosition()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;

    move-result-object v14

    if-nez v14, :cond_13f

    .line 2942
    goto :goto_166

    .line 2944
    :cond_13f
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 2945
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getLeft()I

    move-result v14

    int-to-float v14, v14

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v15

    add-float/2addr v14, v15

    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v15

    int-to-float v15, v15

    invoke-virtual {v1, v14, v15}, Landroid/graphics/Canvas;->translate(FF)V

    .line 2946
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentPosition()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;

    move-result-object v14

    iget v14, v14, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I

    and-int/2addr v14, v7

    if-nez v14, :cond_15f

    const/4 v14, 0x1

    goto :goto_160

    :cond_15f
    const/4 v14, 0x0

    :goto_160
    invoke-virtual {v8, v1, v14}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawCaptionLayout(Landroid/graphics/Canvas;Z)V

    .line 2947
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    .line 2939
    :goto_166
    add-int/lit8 v13, v13, 0x1

    goto :goto_12d

    .line 2949
    .end local v13    # "a":I
    :cond_169
    iget-object v13, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawCaptionAfter:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->clear()V

    .line 2952
    .end local v12    # "size":I
    :cond_16e
    instance-of v12, v2, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v12, :cond_42d

    .line 2953
    move-object v12, v2

    check-cast v12, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2955
    .local v12, "chatMessageCell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentPosition()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;

    move-result-object v13

    .line 2956
    .local v13, "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
    if-eqz v13, :cond_217

    .line 2957
    iget-boolean v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->last:Z

    if-nez v14, :cond_187

    iget-byte v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minX:B

    if-nez v14, :cond_1d2

    iget-byte v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minY:B

    if-nez v14, :cond_1d2

    .line 2958
    :cond_187
    add-int/lit8 v14, v11, -0x1

    if-ne v10, v14, :cond_1b6

    .line 2959
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 2960
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getLeft()I

    move-result v14

    int-to-float v14, v14

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v15

    add-float/2addr v14, v15

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v15

    int-to-float v15, v15

    invoke-virtual {v1, v14, v15}, Landroid/graphics/Canvas;->translate(FF)V

    .line 2961
    iget-boolean v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->last:Z

    if-eqz v14, :cond_1a7

    .line 2962
    invoke-virtual {v12, v1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawTime(Landroid/graphics/Canvas;)V

    .line 2964
    :cond_1a7
    iget-byte v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minX:B

    if-nez v14, :cond_1b2

    iget-byte v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minY:B

    if-nez v14, :cond_1b2

    .line 2965
    invoke-virtual {v12, v1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawNamesLayout(Landroid/graphics/Canvas;)V

    .line 2967
    :cond_1b2
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    goto :goto_1d2

    .line 2969
    :cond_1b6
    iget-boolean v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->last:Z

    if-eqz v14, :cond_1bf

    .line 2970
    iget-object v14, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawTimeAfter:Ljava/util/ArrayList;

    invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2972
    :cond_1bf
    iget-byte v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minX:B

    if-nez v14, :cond_1d2

    iget-byte v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minY:B

    if-nez v14, :cond_1d2

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->hasNameLayout()Z

    move-result v14

    if-eqz v14, :cond_1d2

    .line 2973
    iget-object v14, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawNamesAfter:Ljava/util/ArrayList;

    invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2977
    :cond_1d2
    :goto_1d2
    add-int/lit8 v14, v11, -0x1

    if-ne v10, v14, :cond_206

    .line 2978
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 2979
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getLeft()I

    move-result v14

    int-to-float v14, v14

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v15

    add-float/2addr v14, v15

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v15

    int-to-float v15, v15

    invoke-virtual {v1, v14, v15}, Landroid/graphics/Canvas;->translate(FF)V

    .line 2980
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->hasCaptionLayout()Z

    move-result v14

    if-eqz v14, :cond_202

    iget v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I

    and-int/lit8 v14, v14, 0x8

    if-eqz v14, :cond_202

    .line 2981
    iget v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I

    and-int/2addr v14, v7

    if-nez v14, :cond_1fe

    const/4 v14, 0x1

    goto :goto_1ff

    :cond_1fe
    const/4 v14, 0x0

    :goto_1ff
    invoke-virtual {v12, v1, v14}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->drawCaptionLayout(Landroid/graphics/Canvas;Z)V

    .line 2983
    :cond_202
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    goto :goto_217

    .line 2985
    :cond_206
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->hasCaptionLayout()Z

    move-result v14

    if-eqz v14, :cond_217

    iget v14, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I

    and-int/lit8 v14, v14, 0x8

    if-eqz v14, :cond_217

    .line 2986
    iget-object v14, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->drawCaptionAfter:Ljava/util/ArrayList;

    invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2990
    :cond_217
    :goto_217
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getMessageObject()Lim/tpelyyftgw/messenger/MessageObject;

    move-result-object v14

    .line 2991
    .local v14, "message":Lim/tpelyyftgw/messenger/MessageObject;
    iget-object v15, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v15}, Lim/tpelyyftgw/ui/ChatActivity;->access$7400(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v15

    if-eqz v15, :cond_2c7

    invoke-virtual {v14}, Lim/tpelyyftgw/messenger/MessageObject;->isRoundVideo()Z

    move-result v15

    if-nez v15, :cond_234

    invoke-virtual {v14}, Lim/tpelyyftgw/messenger/MessageObject;->isVideo()Z

    move-result v15

    if-eqz v15, :cond_230

    goto :goto_234

    :cond_230
    move/from16 v18, v3

    goto/16 :goto_2c9

    :cond_234
    :goto_234
    invoke-static {}, Lim/tpelyyftgw/messenger/MediaController;->getInstance()Lim/tpelyyftgw/messenger/MediaController;

    move-result-object v15

    invoke-virtual {v15, v14}, Lim/tpelyyftgw/messenger/MediaController;->isPlayingMessage(Lim/tpelyyftgw/messenger/MessageObject;)Z

    move-result v15

    if-eqz v15, :cond_2c7

    .line 2992
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getPhotoImage()Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v15

    .line 2993
    .local v15, "imageReceiver":Lim/tpelyyftgw/messenger/ImageReceiver;
    invoke-virtual {v15}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageX()I

    move-result v6

    int-to-float v6, v6

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getX()F

    move-result v17

    add-float v6, v6, v17

    .line 2994
    .local v6, "newX":F
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    .line 2995
    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$13800(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/view/View;

    move-result-object v7

    invoke-virtual {v7}, Landroid/view/View;->getPaddingTop()I

    move-result v7

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTop()I

    move-result v18

    add-int v7, v7, v18

    invoke-virtual {v15}, Lim/tpelyyftgw/messenger/ImageReceiver;->getImageY()I

    move-result v18

    add-int v7, v7, v18

    move/from16 v18, v3

    .end local v3    # "clipLeft":I
    .local v18, "clipLeft":I
    iget-object v3, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/ChatActivity;->access$400(Lim/tpelyyftgw/ui/ChatActivity;)I

    move-result v3

    sub-int/2addr v7, v3

    int-to-float v3, v7

    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$100(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v7

    invoke-virtual {v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getTranslationY()F

    move-result v7

    add-float/2addr v3, v7

    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$13900(Lim/tpelyyftgw/ui/ChatActivity;)Z

    move-result v7

    if-eqz v7, :cond_283

    sget v7, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I

    goto :goto_284

    :cond_283
    const/4 v7, 0x0

    :goto_284
    int-to-float v7, v7

    add-float/2addr v3, v7

    .line 2996
    .local v3, "newY":F
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$7400(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v7

    invoke-virtual {v7}, Landroid/widget/FrameLayout;->getTranslationX()F

    move-result v7

    cmpl-float v7, v7, v6

    if-nez v7, :cond_2a2

    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$7400(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v7

    invoke-virtual {v7}, Landroid/widget/FrameLayout;->getTranslationY()F

    move-result v7

    cmpl-float v7, v7, v3

    if-eqz v7, :cond_2c9

    .line 2997
    :cond_2a2
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$7400(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v7

    invoke-virtual {v7, v6}, Landroid/widget/FrameLayout;->setTranslationX(F)V

    .line 2998
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$7400(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v7

    invoke-virtual {v7, v3}, Landroid/widget/FrameLayout;->setTranslationY(F)V

    .line 2999
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$14000(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/view/View;

    move-result-object v7

    invoke-virtual {v7}, Landroid/view/View;->invalidate()V

    .line 3000
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$7400(Lim/tpelyyftgw/ui/ChatActivity;)Landroid/widget/FrameLayout;

    move-result-object v7

    invoke-virtual {v7}, Landroid/widget/FrameLayout;->invalidate()V

    goto :goto_2c9

    .line 2991
    .end local v6    # "newX":F
    .end local v15    # "imageReceiver":Lim/tpelyyftgw/messenger/ImageReceiver;
    .end local v18    # "clipLeft":I
    .local v3, "clipLeft":I
    :cond_2c7
    move/from16 v18, v3

    .line 3003
    .end local v3    # "clipLeft":I
    .restart local v18    # "clipLeft":I
    :cond_2c9
    :goto_2c9
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getAvatarImage()Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v3

    .line 3005
    .local v3, "imageReceiver":Lim/tpelyyftgw/messenger/ImageReceiver;
    if-eqz v3, :cond_428

    .line 3006
    iget-object v6, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v6, v14}, Lim/tpelyyftgw/ui/ChatActivity;->access$14100(Lim/tpelyyftgw/ui/ChatActivity;Lim/tpelyyftgw/messenger/MessageObject;)Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v6

    .line 3007
    .local v6, "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I

    move-result v7

    .line 3041
    .local v7, "top":I
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v15

    .line 3042
    .local v15, "tx":F
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I

    move-result v16

    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getLayoutHeight()I

    move-result v19

    move/from16 v20, v4

    .end local v4    # "clipBottom":I
    .local v20, "clipBottom":I
    add-int v4, v16, v19

    .line 3043
    .local v4, "y":I
    move/from16 v16, v5

    .end local v5    # "skipDraw":Z
    .local v16, "skipDraw":Z
    iget-object v5, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v5}, Lim/tpelyyftgw/ui/ChatActivity;->access$100(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v5

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getMeasuredHeight()I

    move-result v5

    move/from16 v19, v7

    .end local v7    # "top":I
    .local v19, "top":I
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$100(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v7

    invoke-virtual {v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getPaddingBottom()I

    move-result v7

    sub-int/2addr v5, v7

    .line 3044
    .local v5, "maxY":I
    if-le v4, v5, :cond_305

    .line 3045
    move v4, v5

    .line 3047
    :cond_305
    invoke-virtual {v12}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->isPinnedTop()Z

    move-result v7

    const/high16 v21, 0x42400000    # 48.0f

    if-eqz v7, :cond_3f0

    .line 3048
    iget-object v7, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$100(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v7

    invoke-virtual {v7, v2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildViewHolder(Landroid/view/View;)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object v7

    .line 3049
    .local v7, "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    if-eqz v7, :cond_3eb

    .line 3050
    const/16 v22, 0x0

    move/from16 v2, v22

    .line 3052
    .local v2, "tries":I
    :goto_31d
    move/from16 v22, v5

    .end local v5    # "maxY":I
    .local v22, "maxY":I
    const/16 v5, 0x14

    if-lt v2, v5, :cond_329

    .line 3053
    move-object/from16 v28, v6

    move-object/from16 v27, v8

    goto/16 :goto_3e6

    .line 3055
    :cond_329
    add-int/lit8 v2, v2, 0x1

    .line 3056
    invoke-virtual {v7}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I

    move-result v5

    .line 3058
    .local v5, "p":I
    if-eqz v6, :cond_38d

    if-eqz v13, :cond_38d

    .line 3059
    move/from16 v23, v2

    .end local v2    # "tries":I
    .local v23, "tries":I
    iget-object v2, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;->posArray:Ljava/util/ArrayList;

    invoke-virtual {v2, v13}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v2

    .line 3060
    .local v2, "idx":I
    if-gez v2, :cond_343

    .line 3061
    move-object/from16 v28, v6

    move-object/from16 v27, v8

    goto/16 :goto_3e6

    .line 3063
    :cond_343
    move-object/from16 v24, v7

    .end local v7    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .local v24, "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    iget-object v7, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;->posArray:Ljava/util/ArrayList;

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    .line 3064
    .local v7, "size":I
    move/from16 v25, v7

    .end local v7    # "size":I
    .local v25, "size":I
    iget v7, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I

    and-int/lit8 v7, v7, 0x4

    if-eqz v7, :cond_35e

    .line 3065
    add-int v7, v5, v2

    const/16 v17, 0x1

    add-int/lit8 v7, v7, 0x1

    move-object/from16 v28, v6

    move-object/from16 v27, v8

    .local v7, "prevPosition":I
    goto :goto_38c

    .line 3067
    .end local v7    # "prevPosition":I
    :cond_35e
    const/16 v17, 0x1

    add-int/lit8 v7, v5, 0x1

    .line 3068
    .restart local v7    # "prevPosition":I
    add-int/lit8 v26, v2, -0x1

    move/from16 v29, v26

    move/from16 v26, v2

    move/from16 v2, v29

    .local v2, "a":I
    .local v26, "idx":I
    :goto_36a
    if-ltz v2, :cond_388

    .line 3069
    move-object/from16 v27, v8

    .end local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .local v27, "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    iget-object v8, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;->posArray:Ljava/util/ArrayList;

    invoke-virtual {v8, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;

    iget-byte v8, v8, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->maxY:B

    move-object/from16 v28, v6

    .end local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .local v28, "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    iget-byte v6, v13, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->minY:B

    if-ge v8, v6, :cond_37f

    .line 3070
    goto :goto_38c

    .line 3072
    :cond_37f
    add-int/lit8 v7, v7, 0x1

    .line 3068
    add-int/lit8 v2, v2, -0x1

    move-object/from16 v8, v27

    move-object/from16 v6, v28

    goto :goto_36a

    .end local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_388
    move-object/from16 v28, v6

    move-object/from16 v27, v8

    .line 3076
    .end local v2    # "a":I
    .end local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .end local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v25    # "size":I
    .end local v26    # "idx":I
    .restart local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    :goto_38c
    goto :goto_399

    .line 3058
    .end local v23    # "tries":I
    .end local v24    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .end local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .local v2, "tries":I
    .restart local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .local v7, "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .restart local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_38d
    move/from16 v23, v2

    move-object/from16 v28, v6

    move-object/from16 v24, v7

    move-object/from16 v27, v8

    const/16 v17, 0x1

    .line 3077
    .end local v2    # "tries":I
    .end local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .end local v7    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .end local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v23    # "tries":I
    .restart local v24    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .restart local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    add-int/lit8 v7, v5, 0x1

    .line 3079
    .local v7, "prevPosition":I
    :goto_399
    iget-object v2, v0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/ChatActivity;->access$100(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v2

    invoke-virtual {v2, v7}, Lim/tpelyyftgw/ui/components/RecyclerListView;->findViewHolderForAdapterPosition(I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object v2

    .line 3080
    .end local v24    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .local v2, "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    if-eqz v2, :cond_3e6

    .line 3081
    iget-object v6, v2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getTop()I

    move-result v19

    .line 3082
    invoke-static/range {v21 .. v21}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    sub-int v6, v4, v6

    iget-object v8, v2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getBottom()I

    move-result v8

    if-ge v6, v8, :cond_3c4

    .line 3083
    iget-object v6, v2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getTranslationX()F

    move-result v6

    invoke-static {v6, v15}, Ljava/lang/Math;->min(FF)F

    move-result v6

    move v15, v6

    .line 3085
    :cond_3c4
    iget-object v6, v2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    instance-of v6, v6, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v6, :cond_3e1

    .line 3086
    iget-object v6, v2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    move-object v8, v6

    check-cast v8, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 3087
    .end local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    invoke-virtual {v8}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->isPinnedTop()Z

    move-result v6

    if-nez v6, :cond_3d8

    .line 3088
    move/from16 v7, v19

    goto :goto_3f6

    .line 3096
    .end local v5    # "p":I
    .end local v7    # "prevPosition":I
    :cond_3d8
    move-object v7, v2

    move/from16 v5, v22

    move/from16 v2, v23

    move-object/from16 v6, v28

    goto/16 :goto_31d

    .line 3085
    .end local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v5    # "p":I
    .restart local v7    # "prevPosition":I
    .restart local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_3e1
    move/from16 v7, v19

    move-object/from16 v8, v27

    goto :goto_3f6

    .line 3099
    .end local v2    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .end local v5    # "p":I
    .end local v7    # "prevPosition":I
    .end local v23    # "tries":I
    .end local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_3e6
    :goto_3e6
    move/from16 v7, v19

    move-object/from16 v8, v27

    .end local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .end local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .restart local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    goto :goto_3f6

    .line 3049
    .end local v22    # "maxY":I
    .end local v27    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .local v5, "maxY":I
    .restart local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .local v7, "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .restart local v8    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_3eb
    move/from16 v22, v5

    move-object/from16 v28, v6

    .end local v5    # "maxY":I
    .end local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v22    # "maxY":I
    .restart local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    goto :goto_3f4

    .line 3047
    .end local v7    # "holder":Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .end local v22    # "maxY":I
    .end local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v5    # "maxY":I
    .restart local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    :cond_3f0
    move/from16 v22, v5

    move-object/from16 v28, v6

    .line 3099
    .end local v5    # "maxY":I
    .end local v6    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .restart local v22    # "maxY":I
    .restart local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    :goto_3f4
    move/from16 v7, v19

    .end local v19    # "top":I
    .local v7, "top":I
    :goto_3f6
    invoke-static/range {v21 .. v21}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    sub-int v2, v4, v2

    if-ge v2, v7, :cond_404

    .line 3100
    invoke-static/range {v21 .. v21}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    add-int v4, v7, v2

    .line 3102
    :cond_404
    const/4 v2, 0x0

    cmpl-float v5, v15, v2

    if-eqz v5, :cond_40f

    .line 3103
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 3104
    invoke-virtual {v1, v15, v2}, Landroid/graphics/Canvas;->translate(FF)V

    .line 3110
    :cond_40f
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I

    move-result v5

    const/high16 v6, 0x40e00000    # 7.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    add-int/2addr v5, v6

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImageY(I)V

    .line 3111
    invoke-virtual {v3, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->draw(Landroid/graphics/Canvas;)Z

    .line 3112
    cmpl-float v2, v15, v2

    if-eqz v2, :cond_433

    .line 3113
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    goto :goto_433

    .line 3005
    .end local v7    # "top":I
    .end local v15    # "tx":F
    .end local v16    # "skipDraw":Z
    .end local v20    # "clipBottom":I
    .end local v22    # "maxY":I
    .end local v28    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .local v4, "clipBottom":I
    .local v5, "skipDraw":Z
    :cond_428
    move/from16 v20, v4

    move/from16 v16, v5

    .end local v4    # "clipBottom":I
    .end local v5    # "skipDraw":Z
    .restart local v16    # "skipDraw":Z
    .restart local v20    # "clipBottom":I
    goto :goto_433

    .line 2952
    .end local v12    # "chatMessageCell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    .end local v13    # "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
    .end local v14    # "message":Lim/tpelyyftgw/messenger/MessageObject;
    .end local v16    # "skipDraw":Z
    .end local v18    # "clipLeft":I
    .end local v20    # "clipBottom":I
    .local v3, "clipLeft":I
    .restart local v4    # "clipBottom":I
    .restart local v5    # "skipDraw":Z
    :cond_42d
    move/from16 v18, v3

    move/from16 v20, v4

    move/from16 v16, v5

    .line 3117
    .end local v3    # "clipLeft":I
    .end local v4    # "clipBottom":I
    .end local v5    # "skipDraw":Z
    .restart local v16    # "skipDraw":Z
    .restart local v18    # "clipLeft":I
    .restart local v20    # "clipBottom":I
    :cond_433
    :goto_433
    return v9
.end method

.method protected onChildPressed(Landroid/view/View;Z)V
    .registers 9
    .param p1, "child"    # Landroid/view/View;
    .param p2, "pressed"    # Z

    .line 2789
    invoke-super {p0, p1, p2}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onChildPressed(Landroid/view/View;Z)V

    .line 2790
    instance-of v0, p1, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v0, :cond_34

    .line 2791
    move-object v0, p1

    check-cast v0, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v0

    .line 2792
    .local v0, "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    if-eqz v0, :cond_34

    .line 2793
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildCount()I

    move-result v1

    .line 2794
    .local v1, "count":I
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_15
    if-ge v2, v1, :cond_34

    .line 2795
    invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 2796
    .local v3, "item":Landroid/view/View;
    if-eq v3, p1, :cond_31

    instance-of v4, v3, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-nez v4, :cond_22

    .line 2797
    goto :goto_31

    .line 2799
    :cond_22
    move-object v4, v3

    check-cast v4, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    .line 2800
    .local v4, "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    move-object v5, v3

    check-cast v5, Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getCurrentMessagesGroup()Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;

    move-result-object v5

    if-ne v5, v0, :cond_31

    .line 2801
    invoke-virtual {v4, p2}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->setPressed(Z)V

    .line 2794
    .end local v3    # "item":Landroid/view/View;
    .end local v4    # "cell":Lim/tpelyyftgw/ui/cells/ChatMessageCell;
    :cond_31
    :goto_31
    add-int/lit8 v2, v2, 0x1

    goto :goto_15

    .line 2806
    .end local v0    # "groupedMessages":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessages;
    .end local v1    # "count":I
    .end local v2    # "a":I
    :cond_34
    return-void
.end method

.method public onDraw(Landroid/graphics/Canvas;)V
    .registers 12
    .param p1, "c"    # Landroid/graphics/Canvas;

    .line 2810
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onDraw(Landroid/graphics/Canvas;)V

    .line 2811
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v0, :cond_74

    .line 2812
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v0

    .line 2813
    .local v0, "translationX":F
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    if-nez v1, :cond_71

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    if-nez v1, :cond_71

    iget v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->endedTrackingX:F

    const/4 v2, 0x0

    cmpl-float v1, v1, v2

    if-eqz v1, :cond_71

    cmpl-float v1, v0, v2

    if-eqz v1, :cond_71

    .line 2814
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    .line 2815
    .local v3, "newTime":J
    iget-wide v5, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastTrackingAnimationTime:J

    sub-long v5, v3, v5

    .line 2816
    .local v5, "dt":J
    iget v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->trackAnimationProgress:F

    long-to-float v7, v5

    const/high16 v8, 0x43340000    # 180.0f

    div-float/2addr v7, v8

    add-float/2addr v1, v7

    iput v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->trackAnimationProgress:F

    .line 2817
    const/high16 v7, 0x3f800000    # 1.0f

    cmpl-float v1, v1, v7

    if-lez v1, :cond_37

    .line 2818
    iput v7, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->trackAnimationProgress:F

    .line 2820
    :cond_37
    iput-wide v3, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastTrackingAnimationTime:J

    .line 2821
    iget v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->endedTrackingX:F

    sget-object v8, Lim/tpelyyftgw/messenger/AndroidUtilities;->decelerateInterpolator:Landroid/view/animation/DecelerateInterpolator;

    iget v9, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->trackAnimationProgress:F

    invoke-virtual {v8, v9}, Landroid/view/animation/DecelerateInterpolator;->getInterpolation(F)F

    move-result v8

    sub-float/2addr v7, v8

    mul-float v0, v1, v7

    .line 2822
    cmpl-float v1, v0, v2

    if-nez v1, :cond_4c

    .line 2823
    iput v2, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->endedTrackingX:F

    .line 2825
    :cond_4c
    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-direct {p0, v1, v0}, Lim/tpelyyftgw/ui/ChatActivity$10;->setGroupTranslationX(Lim/tpelyyftgw/ui/cells/ChatMessageCell;F)V

    .line 2826
    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->setTranslationX(F)V

    .line 2827
    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getMessageObject()Lim/tpelyyftgw/messenger/MessageObject;

    move-result-object v1

    .line 2828
    .local v1, "messageObject":Lim/tpelyyftgw/messenger/MessageObject;
    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/MessageObject;->isRoundVideo()Z

    move-result v2

    if-nez v2, :cond_68

    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/MessageObject;->isVideo()Z

    move-result v2

    if-eqz v2, :cond_6e

    .line 2829
    :cond_68
    iget-object v2, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    const/4 v7, 0x0

    invoke-virtual {v2, v7}, Lim/tpelyyftgw/ui/ChatActivity;->updateTextureViewPosition(Z)V

    .line 2831
    :cond_6e
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    .line 2833
    .end local v1    # "messageObject":Lim/tpelyyftgw/messenger/MessageObject;
    .end local v3    # "newTime":J
    .end local v5    # "dt":J
    :cond_71
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/ChatActivity$10;->drawReplyButton(Landroid/graphics/Canvas;)V

    .line 2835
    .end local v0    # "translationX":F
    :cond_74
    return-void
.end method

.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
    .registers 6
    .param p1, "info"    # Landroid/view/accessibility/AccessibilityNodeInfo;

    .line 3122
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    iget-object v0, v0, Lim/tpelyyftgw/ui/ChatActivity;->currentEncryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    if-eqz v0, :cond_7

    .line 3123
    return-void

    .line 3125
    :cond_7
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V

    .line 3126
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x13

    if-lt v0, v1, :cond_23

    .line 3127
    invoke-virtual {p1}, Landroid/view/accessibility/AccessibilityNodeInfo;->getCollectionInfo()Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;

    move-result-object v0

    .line 3128
    .local v0, "collection":Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;
    if-eqz v0, :cond_23

    .line 3129
    invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;->getRowCount()I

    move-result v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;->obtain(IIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCollectionInfo(Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;)V

    .line 3132
    .end local v0    # "collection":Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;
    :cond_23
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 4
    .param p1, "e"    # Landroid/view/MotionEvent;

    .line 2624
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    .line 2625
    .local v0, "result":Z
    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v1}, Lim/tpelyyftgw/ui/ChatActivity;->access$13300(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/actionbar/ActionBar;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->isActionModeShowed()Z

    move-result v1

    if-eqz v1, :cond_11

    .line 2626
    return v0

    .line 2628
    :cond_11
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/ChatActivity$10;->processTouchEvent(Landroid/view/MotionEvent;)V

    .line 2629
    return v0
.end method

.method protected onLayout(ZIIII)V
    .registers 14
    .param p1, "changed"    # Z
    .param p2, "l"    # I
    .param p3, "t"    # I
    .param p4, "r"    # I
    .param p5, "b"    # I

    .line 2564
    invoke-super/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onLayout(ZIIII)V

    .line 2565
    iget v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastWidth:I

    sub-int v1, p4, p2

    if-eq v0, v1, :cond_40

    .line 2566
    sub-int v0, p4, p2

    iput v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastWidth:I

    .line 2567
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12700(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/HintView;

    move-result-object v0

    if-eqz v0, :cond_1e

    .line 2568
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12700(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/HintView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/HintView;->hide()V

    .line 2570
    :cond_1e
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12800(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/HintView;

    move-result-object v0

    if-eqz v0, :cond_2f

    .line 2571
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12800(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/HintView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/HintView;->hide()V

    .line 2573
    :cond_2f
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12900(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/HintView;

    move-result-object v0

    if-eqz v0, :cond_40

    .line 2574
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12900(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/HintView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/HintView;->hide()V

    .line 2577
    :cond_40
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/ChatActivity;->access$13002(Lim/tpelyyftgw/ui/ChatActivity;Z)Z

    .line 2578
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$4400(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/ChatActivity$ChatActivityAdapter;

    move-result-object v0

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity$ChatActivityAdapter;->access$13100(Lim/tpelyyftgw/ui/ChatActivity$ChatActivityAdapter;)Z

    move-result v0

    if-eqz v0, :cond_80

    .line 2579
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildCount()I

    move-result v0

    .line 2580
    .local v0, "childCount":I
    const/4 v2, 0x0

    .local v2, "a":I
    :goto_57
    if-ge v2, v0, :cond_80

    .line 2581
    invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/ChatActivity$10;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    .line 2582
    .local v3, "child":Landroid/view/View;
    instance-of v4, v3, Lim/tpelyyftgw/ui/cells/BotHelpCell;

    if-eqz v4, :cond_7d

    .line 2583
    sub-int v4, p5, p3

    .line 2584
    .local v4, "height":I
    div-int/lit8 v5, v4, 0x2

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    div-int/lit8 v6, v6, 0x2

    sub-int/2addr v5, v6

    .line 2585
    .local v5, "top":I
    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v6

    if-le v6, v5, :cond_80

    .line 2586
    sub-int v6, p4, p2

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v7

    add-int/2addr v7, v5

    invoke-virtual {v3, v1, v5, v6, v7}, Landroid/view/View;->layout(IIII)V

    goto :goto_80

    .line 2580
    .end local v3    # "child":Landroid/view/View;
    .end local v4    # "height":I
    .end local v5    # "top":I
    :cond_7d
    add-int/lit8 v2, v2, 0x1

    goto :goto_57

    .line 2592
    .end local v0    # "childCount":I
    .end local v2    # "a":I
    :cond_80
    :goto_80
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 4
    .param p1, "e"    # Landroid/view/MotionEvent;

    .line 2765
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    .line 2766
    .local v0, "result":Z
    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v1}, Lim/tpelyyftgw/ui/ChatActivity;->access$13700(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/actionbar/ActionBar;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->isActionModeShowed()Z

    move-result v1

    if-eqz v1, :cond_11

    .line 2767
    return v0

    .line 2769
    :cond_11
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/ChatActivity$10;->processTouchEvent(Landroid/view/MotionEvent;)V

    .line 2770
    iget-boolean v1, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    if-nez v1, :cond_1d

    if-eqz v0, :cond_1b

    goto :goto_1d

    :cond_1b
    const/4 v1, 0x0

    goto :goto_1e

    :cond_1d
    :goto_1d
    const/4 v1, 0x1

    :goto_1e
    return v1
.end method

.method public requestChildRectangleOnScreen(Landroid/view/View;Landroid/graphics/Rect;Z)Z
    .registers 5
    .param p1, "child"    # Landroid/view/View;
    .param p2, "rect"    # Landroid/graphics/Rect;
    .param p3, "immediate"    # Z

    .line 2616
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$13200(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/actionbar/ActionBarPopupWindow;

    move-result-object v0

    if-eqz v0, :cond_a

    .line 2617
    const/4 v0, 0x0

    return v0

    .line 2619
    :cond_a
    invoke-super {p0, p1, p2, p3}, Lim/tpelyyftgw/ui/components/RecyclerListView;->requestChildRectangleOnScreen(Landroid/view/View;Landroid/graphics/Rect;Z)Z

    move-result v0

    return v0
.end method

.method public requestDisallowInterceptTouchEvent(Z)V
    .registers 4
    .param p1, "disallowIntercept"    # Z

    .line 2775
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->requestDisallowInterceptTouchEvent(Z)V

    .line 2776
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->slidingView:Lim/tpelyyftgw/ui/cells/ChatMessageCell;

    if-eqz v0, :cond_28

    .line 2777
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/ChatMessageCell;->getTranslationX()F

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->endedTrackingX:F

    .line 2778
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->lastTrackingAnimationTime:J

    .line 2779
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->trackAnimationProgress:F

    .line 2780
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/ChatActivity$10;->invalidate()V

    .line 2781
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->maybeStartTracking:Z

    .line 2782
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->startedTracking:Z

    .line 2783
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$10;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$12600(Lim/tpelyyftgw/ui/ChatActivity;)Landroidx/recyclerview/widget/GridLayoutManagerFixed;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/GridLayoutManagerFixed;->setCanScrollVertically(Z)V

    .line 2785
    :cond_28
    return-void
.end method