ArticleViewer$BlockCollageCell$GroupedMessages.smali
.class public Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;
.super Ljava/lang/Object;
.source "ArticleViewer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "GroupedMessages"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
}
.end annotation
# instance fields
.field public groupId:J
.field public hasSibling:Z
.field private maxSizeWidth:I
.field public posArray:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;",
">;"
}
.end annotation
.end field
.field public positions:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Lim/tpelyyftgw/tgnet/TLObject;",
"Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;",
">;"
}
.end annotation
.end field
.field final synthetic this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;)V
.registers 3
.param p1, "this$1" # Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
.line 7294
iput-object p1, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 7297
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
.line 7298
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->positions:Ljava/util/HashMap;
.line 7300
const/16 v0, 0x3e8
iput v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
return-void
.end method
.method private multiHeight([FII)F
.registers 7
.param p1, "array" # [F
.param p2, "start" # I
.param p3, "end" # I
.line 7324
const/4 v0, 0x0
.line 7325
.local v0, "sum":F
move v1, p2
.local v1, "a":I
:goto_2
if-ge v1, p3, :cond_a
.line 7326
aget v2, p1, v1
add-float/2addr v0, v2
.line 7325
add-int/lit8 v1, v1, 0x1
goto :goto_2
.line 7328
.end local v1 # "a":I
:cond_a
iget v1, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v1, v1
div-float/2addr v1, v0
return v1
.end method
# virtual methods
.method public calculate()V
.registers 42
.line 7332
move-object/from16 v10, p0
iget-object v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
.line 7333
iget-object v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->positions:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->clear()V
.line 7334
iget-object v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;->currentBlock:Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockCollage;
invoke-static {v0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;->access$16400(Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;)Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockCollage;
move-result-object v0
iget-object v0, v0, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockCollage;->items:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v11
.line 7335
.local v11, "count":I
const/4 v12, 0x1
if-gt v11, v12, :cond_1c
.line 7336
return-void
.line 7339
:cond_1c
const v13, 0x444b8000 # 814.0f
.line 7340
.local v13, "maxSizeHeight":F
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
move-object v14, v0
.line 7341
.local v14, "proportions":Ljava/lang/StringBuilder;
const/high16 v0, 0x3f800000 # 1.0f
.line 7342
.local v0, "averageAspectRatio":F
const/4 v1, 0x0
.line 7343
.local v1, "forceCalc":Z
const/4 v15, 0x0
iput-boolean v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->hasSibling:Z
.line 7345
const/4 v2, 0x0
move/from16 v16, v1
.end local v1 # "forceCalc":Z
.local v2, "a":I
.local v16, "forceCalc":Z
:goto_2e
const v17, 0x3f99999a # 1.2f
const/high16 v1, 0x40000000 # 2.0f
if-ge v2, v11, :cond_d7
.line 7349
iget-object v4, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;->currentBlock:Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockCollage;
invoke-static {v4}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;->access$16400(Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;)Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockCollage;
move-result-object v4
iget-object v4, v4, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockCollage;->items:Ljava/util/ArrayList;
invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/tgnet/TLObject;
.line 7350
.local v4, "object":Lim/tpelyyftgw/tgnet/TLObject;
instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockPhoto;
if-eqz v5, :cond_63
.line 7351
move-object v5, v4
check-cast v5, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockPhoto;
.line 7352
.local v5, "pageBlockPhoto":Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockPhoto;
iget-object v6, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
iget-object v6, v6, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;->this$0:Lim/tpelyyftgw/ui/ArticleViewer;
iget-wide v7, v5, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockPhoto;->photo_id:J
invoke-static {v6, v7, v8}, Lim/tpelyyftgw/ui/ArticleViewer;->access$12900(Lim/tpelyyftgw/ui/ArticleViewer;J)Lim/tpelyyftgw/tgnet/TLRPC$Photo;
move-result-object v6
.line 7353
.local v6, "photo":Lim/tpelyyftgw/tgnet/TLRPC$Photo;
if-nez v6, :cond_58
.line 7354
goto/16 :goto_d3
.line 7356
:cond_58
iget-object v7, v6, Lim/tpelyyftgw/tgnet/TLRPC$Photo;->sizes:Ljava/util/ArrayList;
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPhotoSize()I
move-result v8
invoke-static {v7, v8}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;I)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
move-result-object v5
.line 7357
.end local v6 # "photo":Lim/tpelyyftgw/tgnet/TLRPC$Photo;
.local v5, "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
goto :goto_80
.end local v5 # "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
:cond_63
instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockVideo;
if-eqz v5, :cond_d3
.line 7358
move-object v5, v4
check-cast v5, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockVideo;
.line 7359
.local v5, "pageBlockVideo":Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockVideo;
iget-object v6, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;
iget-object v6, v6, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell;->this$0:Lim/tpelyyftgw/ui/ArticleViewer;
iget-wide v7, v5, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockVideo;->video_id:J
invoke-static {v6, v7, v8}, Lim/tpelyyftgw/ui/ArticleViewer;->access$10800(Lim/tpelyyftgw/ui/ArticleViewer;J)Lim/tpelyyftgw/tgnet/TLRPC$Document;
move-result-object v6
.line 7360
.local v6, "document":Lim/tpelyyftgw/tgnet/TLRPC$Document;
if-nez v6, :cond_77
.line 7361
goto :goto_d3
.line 7363
:cond_77
iget-object v7, v6, Lim/tpelyyftgw/tgnet/TLRPC$Document;->thumbs:Ljava/util/ArrayList;
const/16 v8, 0x5a
invoke-static {v7, v8}, Lim/tpelyyftgw/messenger/FileLoader;->getClosestPhotoSizeWithSize(Ljava/util/ArrayList;I)Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
move-result-object v7
move-object v5, v7
.line 7368
.end local v6 # "document":Lim/tpelyyftgw/tgnet/TLRPC$Document;
.local v5, "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
:goto_80
new-instance v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
invoke-direct {v6}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;-><init>()V
.line 7369
.local v6, "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
add-int/lit8 v7, v11, -0x1
if-ne v2, v7, :cond_8b
const/4 v7, 0x1
goto :goto_8c
:cond_8b
const/4 v7, 0x0
:goto_8c
iput-boolean v7, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->last:Z
.line 7370
if-nez v5, :cond_93
const/high16 v3, 0x3f800000 # 1.0f
goto :goto_9a
:cond_93
iget v3, v5, Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;->w:I
int-to-float v3, v3
iget v7, v5, Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;->h:I
int-to-float v7, v7
div-float/2addr v3, v7
:goto_9a
iput v3, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
.line 7372
iget v3, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
cmpl-float v3, v3, v17
if-lez v3, :cond_a9
.line 7373
const-string/jumbo v3, "w"
invoke-virtual {v14, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_be
.line 7374
:cond_a9
iget v3, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
const v7, 0x3f4ccccd # 0.8f
cmpg-float v3, v3, v7
if-gez v3, :cond_b8
.line 7375
const-string v3, "n"
invoke-virtual {v14, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_be
.line 7377
:cond_b8
const-string/jumbo v3, "q"
invoke-virtual {v14, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 7380
:goto_be
iget v3, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
add-float/2addr v0, v3
.line 7382
iget v3, v6, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
cmpl-float v1, v3, v1
if-lez v1, :cond_c9
.line 7383
const/16 v16, 0x1
.line 7386
:cond_c9
iget-object v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->positions:Ljava/util/HashMap;
invoke-virtual {v1, v4, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 7387
iget-object v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v1, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 7345
.end local v4 # "object":Lim/tpelyyftgw/tgnet/TLObject;
.end local v5 # "photoSize":Lim/tpelyyftgw/tgnet/TLRPC$PhotoSize;
.end local v6 # "position":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
:cond_d3
:goto_d3
add-int/lit8 v2, v2, 0x1
goto/16 :goto_2e
.line 7390
.end local v2 # "a":I
:cond_d7
const/high16 v2, 0x42f00000 # 120.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v9
.line 7391
.local v9, "minHeight":I
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
int-to-float v2, v2
sget-object v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v4, v4, Landroid/graphics/Point;->x:I
sget-object v5, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v5, v5, Landroid/graphics/Point;->y:I
invoke-static {v4, v5}, Ljava/lang/Math;->min(II)I
move-result v4
int-to-float v4, v4
iget v5, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v5, v5
div-float/2addr v4, v5
div-float/2addr v2, v4
float-to-int v8, v2
.line 7392
.local v8, "minWidth":I
const/high16 v2, 0x42200000 # 40.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
int-to-float v2, v2
sget-object v4, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v4, v4, Landroid/graphics/Point;->x:I
sget-object v5, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v5, v5, Landroid/graphics/Point;->y:I
invoke-static {v4, v5}, Ljava/lang/Math;->min(II)I
move-result v4
int-to-float v4, v4
iget v5, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v6, v5
div-float/2addr v4, v6
div-float/2addr v2, v4
float-to-int v7, v2
.line 7394
.local v7, "paddingsWidth":I
int-to-float v2, v5
div-float v6, v2, v13
.line 7395
.local v6, "maxAspectRatio":F
int-to-float v2, v11
div-float v5, v0, v2
.line 7397
.end local v0 # "averageAspectRatio":F
.local v5, "averageAspectRatio":F
const/4 v4, 0x4
const/4 v2, 0x2
const/4 v0, 0x3
if-nez v16, :cond_564
if-eq v11, v2, :cond_12b
if-eq v11, v0, :cond_12b
if-ne v11, v4, :cond_121
goto :goto_12b
:cond_121
move/from16 v25, v5
move/from16 v26, v6
move-object/from16 v21, v14
const/16 v19, 0x2
goto/16 :goto_56c
.line 7398
:cond_12b
:goto_12b
const v17, 0x3ecccccd # 0.4f
if-ne v11, v2, :cond_273
.line 7399
iget-object v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v0, v15}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7400
.local v0, "position1":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget-object v4, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v4, v12}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7401
.local v4, "position2":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v15
.line 7402
.local v15, "pString":Ljava/lang/String;
const-string/jumbo v12, "ww"
invoke-virtual {v15, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v18
if-eqz v18, :cond_1b4
float-to-double v2, v5
const-wide v20, 0x3ff6666666666666L # 1.4
move-wide/from16 v23, v2
float-to-double v1, v6
invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z
mul-double v1, v1, v20
cmpl-double v3, v23, v1
if-lez v3, :cond_1b4
iget v1, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
iget v2, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
sub-float/2addr v1, v2
float-to-double v1, v1
const-wide v20, 0x3fc999999999999aL # 0.2
cmpg-double v3, v1, v20
if-gez v3, :cond_1b4
.line 7403
iget v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v1, v1
iget v2, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v1, v2
iget v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v2, v2
iget v3, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v2, v3
const/high16 v3, 0x40000000 # 2.0f
div-float v3, v13, v3
invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F
move-result v2
invoke-static {v1, v2}, Ljava/lang/Math;->min(FF)F
move-result v1
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
int-to-float v1, v1
div-float/2addr v1, v13
.line 7404
.local v1, "height":F
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
const/16 v22, 0x0
iget v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/16 v25, 0x7
move-object/from16 v18, v0
move/from16 v23, v2
move/from16 v24, v1
invoke-virtual/range {v18 .. v25}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7405
const/16 v21, 0x1
const/16 v22, 0x1
iget v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/16 v25, 0xb
move-object/from16 v18, v4
move/from16 v23, v2
invoke-virtual/range {v18 .. v25}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7406
.end local v1 # "height":F
move/from16 v26, v6
goto/16 :goto_262
:cond_1b4
invoke-virtual {v15, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_227
const-string/jumbo v1, "qq"
invoke-virtual {v15, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1c6
move/from16 v26, v6
goto :goto_229
.line 7412
:cond_1c6
iget v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v2, v1
mul-float v2, v2, v17
int-to-float v1, v1
iget v3, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v1, v3
iget v3, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
const/high16 v12, 0x3f800000 # 1.0f
div-float v3, v12, v3
move/from16 v26, v6
.end local v6 # "maxAspectRatio":F
.local v26, "maxAspectRatio":F
iget v6, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float v6, v12, v6
add-float/2addr v3, v6
div-float/2addr v1, v3
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
int-to-float v1, v1
invoke-static {v2, v1}, Ljava/lang/Math;->max(FF)F
move-result v1
float-to-int v1, v1
.line 7413
.local v1, "secondWidth":I
iget v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
sub-int/2addr v2, v1
.line 7414
.local v2, "firstWidth":I
if-ge v2, v8, :cond_1f0
.line 7415
sub-int v3, v8, v2
.line 7416
.local v3, "diff":I
move v2, v8
.line 7417
sub-int/2addr v1, v3
.line 7420
.end local v3 # "diff":I
:cond_1f0
int-to-float v3, v2
iget v6, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v3, v6
int-to-float v6, v1
iget v12, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v6, v12
invoke-static {v3, v6}, Ljava/lang/Math;->min(FF)F
move-result v3
invoke-static {v3}, Ljava/lang/Math;->round(F)I
move-result v3
int-to-float v3, v3
invoke-static {v13, v3}, Ljava/lang/Math;->min(FF)F
move-result v3
div-float/2addr v3, v13
.line 7421
.local v3, "height":F
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
const/16 v22, 0x0
const/16 v25, 0xd
move-object/from16 v18, v0
move/from16 v23, v2
move/from16 v24, v3
invoke-virtual/range {v18 .. v25}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7422
const/16 v19, 0x1
const/16 v20, 0x1
const/16 v25, 0xe
move-object/from16 v18, v4
move/from16 v23, v1
invoke-virtual/range {v18 .. v25}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
goto :goto_262
.line 7406
.end local v1 # "secondWidth":I
.end local v2 # "firstWidth":I
.end local v3 # "height":F
.end local v26 # "maxAspectRatio":F
.restart local v6 # "maxAspectRatio":F
:cond_227
move/from16 v26, v6
.line 7407
.end local v6 # "maxAspectRatio":F
.restart local v26 # "maxAspectRatio":F
:goto_229
iget v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/4 v2, 0x2
div-int/2addr v1, v2
.line 7408
.local v1, "width":I
int-to-float v2, v1
iget v3, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v2, v3
int-to-float v3, v1
iget v6, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v3, v6
invoke-static {v3, v13}, Ljava/lang/Math;->min(FF)F
move-result v3
invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F
move-result v2
invoke-static {v2}, Ljava/lang/Math;->round(F)I
move-result v2
int-to-float v2, v2
div-float/2addr v2, v13
.line 7409
.local v2, "height":F
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
const/16 v22, 0x0
const/16 v25, 0xd
move-object/from16 v18, v0
move/from16 v23, v1
move/from16 v24, v2
invoke-virtual/range {v18 .. v25}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7410
const/16 v19, 0x1
const/16 v20, 0x1
const/16 v25, 0xe
move-object/from16 v18, v4
invoke-virtual/range {v18 .. v25}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7411
.end local v1 # "width":I
.end local v2 # "height":F
nop
.line 7424
.end local v0 # "position1":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v4 # "position2":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v15 # "pString":Ljava/lang/String;
:goto_262
move/from16 v18, v5
move/from16 v27, v7
move v12, v8
move/from16 v30, v9
move/from16 v23, v11
move/from16 v32, v13
move-object/from16 v21, v14
move/from16 v22, v26
goto/16 :goto_849
.end local v26 # "maxAspectRatio":F
.restart local v6 # "maxAspectRatio":F
:cond_273
move/from16 v26, v6
.end local v6 # "maxAspectRatio":F
.restart local v26 # "maxAspectRatio":F
const v1, 0x3f28f5c3 # 0.66f
if-ne v11, v0, :cond_3b9
.line 7425
iget-object v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v0, v15}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7426
.restart local v0 # "position1":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget-object v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
const/4 v3, 0x1
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7427
.local v2, "position2":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget-object v3, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
const/4 v4, 0x2
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7428
.local v3, "position3":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->charAt(I)C
move-result v4
const/16 v6, 0x6e
if-ne v4, v6, :cond_33f
.line 7429
const/high16 v1, 0x3f000000 # 0.5f
mul-float v4, v13, v1
iget v6, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
iget v12, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v12, v12
mul-float v6, v6, v12
iget v12, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
iget v15, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
add-float/2addr v12, v15
div-float/2addr v6, v12
invoke-static {v6}, Ljava/lang/Math;->round(F)I
move-result v6
int-to-float v6, v6
invoke-static {v4, v6}, Ljava/lang/Math;->min(FF)F
move-result v4
.line 7430
.local v4, "thirdHeight":F
sub-float v6, v13, v4
.line 7431
.local v6, "secondHeight":F
int-to-float v12, v8
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v15, v15
mul-float v15, v15, v1
iget v1, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
mul-float v1, v1, v4
move/from16 v25, v5
.end local v5 # "averageAspectRatio":F
.local v25, "averageAspectRatio":F
iget v5, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
mul-float v5, v5, v6
invoke-static {v1, v5}, Ljava/lang/Math;->min(FF)F
move-result v1
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
int-to-float v1, v1
invoke-static {v15, v1}, Ljava/lang/Math;->min(FF)F
move-result v1
invoke-static {v12, v1}, Ljava/lang/Math;->max(FF)F
move-result v1
float-to-int v1, v1
.line 7433
.local v1, "rightWidth":I
iget v5, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
mul-float v5, v5, v13
int-to-float v12, v7
add-float/2addr v5, v12
iget v12, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
sub-int/2addr v12, v1
int-to-float v12, v12
invoke-static {v5, v12}, Ljava/lang/Math;->min(FF)F
move-result v5
invoke-static {v5}, Ljava/lang/Math;->round(F)I
move-result v5
.line 7434
.local v5, "leftWidth":I
const/16 v28, 0x0
const/16 v29, 0x0
const/16 v30, 0x0
const/16 v31, 0x1
const/high16 v33, 0x3f800000 # 1.0f
const/16 v34, 0xd
move-object/from16 v27, v0
move/from16 v32, v5
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7436
const/16 v28, 0x1
const/16 v29, 0x1
const/16 v31, 0x0
div-float v33, v6, v13
const/16 v34, 0x6
move-object/from16 v27, v2
move/from16 v32, v1
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7438
const/16 v28, 0x0
const/16 v30, 0x1
const/16 v31, 0x1
div-float v33, v4, v13
const/16 v34, 0xa
move-object/from16 v27, v3
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7439
iget v12, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
iput v12, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
.line 7441
const/4 v12, 0x2
new-array v12, v12, [F
div-float v15, v4, v13
const/16 v17, 0x0
aput v15, v12, v17
div-float v15, v6, v13
move/from16 v17, v1
const/4 v1, 0x1
.end local v1 # "rightWidth":I
.local v17, "rightWidth":I
aput v15, v12, v1
iput-object v12, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->siblingHeights:[F
.line 7443
iget v12, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
sub-int/2addr v12, v5
iput v12, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
.line 7444
iput v5, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->leftSpanOffset:I
.line 7446
iput-boolean v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->hasSibling:Z
.line 7447
.end local v4 # "thirdHeight":F
.end local v5 # "leftWidth":I
.end local v6 # "secondHeight":F
.end local v17 # "rightWidth":I
goto :goto_3a8
.line 7448
.end local v25 # "averageAspectRatio":F
.local v5, "averageAspectRatio":F
:cond_33f
move/from16 v25, v5
.end local v5 # "averageAspectRatio":F
.restart local v25 # "averageAspectRatio":F
iget v4, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v4, v4
iget v5, v0, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v4, v5
mul-float v1, v1, v13
invoke-static {v4, v1}, Ljava/lang/Math;->min(FF)F
move-result v1
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
int-to-float v1, v1
div-float/2addr v1, v13
.line 7449
.local v1, "firstHeight":F
const/16 v28, 0x0
const/16 v29, 0x1
const/16 v30, 0x0
const/16 v31, 0x0
iget v4, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/16 v34, 0x7
move-object/from16 v27, v0
move/from16 v32, v4
move/from16 v33, v1
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7451
iget v4, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/4 v5, 0x2
div-int/2addr v4, v5
.line 7452
.local v4, "width":I
sub-float v5, v13, v1
int-to-float v6, v4
iget v12, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v6, v12
int-to-float v12, v4
iget v15, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v12, v15
invoke-static {v6, v12}, Ljava/lang/Math;->min(FF)F
move-result v6
invoke-static {v6}, Ljava/lang/Math;->round(F)I
move-result v6
int-to-float v6, v6
invoke-static {v5, v6}, Ljava/lang/Math;->min(FF)F
move-result v5
div-float/2addr v5, v13
.line 7453
.local v5, "secondHeight":F
const/16 v29, 0x0
const/16 v30, 0x1
const/16 v31, 0x1
const/16 v34, 0x9
move-object/from16 v27, v2
move/from16 v32, v4
move/from16 v33, v5
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7454
const/16 v18, 0x1
const/16 v19, 0x1
const/16 v20, 0x1
const/16 v21, 0x1
const/16 v24, 0xa
move-object/from16 v17, v3
move/from16 v22, v4
move/from16 v23, v5
invoke-virtual/range {v17 .. v24}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7456
.end local v0 # "position1":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v1 # "firstHeight":F
.end local v2 # "position2":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v3 # "position3":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v4 # "width":I
.end local v5 # "secondHeight":F
:goto_3a8
move/from16 v27, v7
move v12, v8
move/from16 v30, v9
move/from16 v23, v11
move/from16 v32, v13
move-object/from16 v21, v14
move/from16 v18, v25
move/from16 v22, v26
goto/16 :goto_849
.end local v25 # "averageAspectRatio":F
.local v5, "averageAspectRatio":F
:cond_3b9
move/from16 v25, v5
.end local v5 # "averageAspectRatio":F
.restart local v25 # "averageAspectRatio":F
if-ne v11, v4, :cond_553
.line 7457
iget-object v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
const/4 v3, 0x0
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7458
.local v2, "position1":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget-object v3, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
const/4 v4, 0x1
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7459
.local v3, "position2":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget-object v4, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
const/4 v5, 0x2
invoke-virtual {v4, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7460
.local v4, "position3":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget-object v5, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v5, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7461
.local v5, "position4":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
const/4 v6, 0x0
invoke-virtual {v14, v6}, Ljava/lang/StringBuilder;->charAt(I)C
move-result v12
const/16 v6, 0x77
if-ne v12, v6, :cond_484
.line 7462
iget v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v0, v0
iget v6, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v0, v6
mul-float v1, v1, v13
invoke-static {v0, v1}, Ljava/lang/Math;->min(FF)F
move-result v0
invoke-static {v0}, Ljava/lang/Math;->round(F)I
move-result v0
int-to-float v0, v0
div-float/2addr v0, v13
.line 7463
.local v0, "h0":F
const/16 v28, 0x0
const/16 v29, 0x2
const/16 v30, 0x0
const/16 v31, 0x0
iget v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/16 v34, 0x7
move-object/from16 v27, v2
move/from16 v32, v1
move/from16 v33, v0
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7465
iget v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v1, v1
iget v6, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
iget v12, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
add-float/2addr v6, v12
iget v12, v5, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
add-float/2addr v6, v12
div-float/2addr v1, v6
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
int-to-float v1, v1
.line 7466
.local v1, "h":F
int-to-float v6, v8
iget v12, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v12, v12
mul-float v12, v12, v17
iget v15, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
mul-float v15, v15, v1
invoke-static {v12, v15}, Ljava/lang/Math;->min(FF)F
move-result v12
invoke-static {v6, v12}, Ljava/lang/Math;->max(FF)F
move-result v6
float-to-int v6, v6
.line 7467
.local v6, "w0":I
int-to-float v12, v8
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
int-to-float v15, v15
const v17, 0x3ea8f5c3 # 0.33f
mul-float v15, v15, v17
invoke-static {v12, v15}, Ljava/lang/Math;->max(FF)F
move-result v12
iget v15, v5, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
mul-float v15, v15, v1
invoke-static {v12, v15}, Ljava/lang/Math;->max(FF)F
move-result v12
float-to-int v12, v12
.line 7468
.local v12, "w2":I
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
sub-int/2addr v15, v6
sub-int/2addr v15, v12
.line 7469
.local v15, "w1":I
move-object/from16 v21, v14
.end local v14 # "proportions":Ljava/lang/StringBuilder;
.local v21, "proportions":Ljava/lang/StringBuilder;
sub-float v14, v13, v0
invoke-static {v14, v1}, Ljava/lang/Math;->min(FF)F
move-result v1
.line 7470
div-float/2addr v1, v13
.line 7471
const/16 v29, 0x0
const/16 v30, 0x1
const/16 v31, 0x1
const/16 v34, 0x9
move-object/from16 v27, v3
move/from16 v32, v6
move/from16 v33, v1
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7472
const/16 v28, 0x1
const/16 v29, 0x1
const/16 v34, 0x8
move-object/from16 v27, v4
move/from16 v32, v15
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7473
const/16 v28, 0x2
const/16 v29, 0x2
const/16 v34, 0xa
move-object/from16 v27, v5
move/from16 v32, v12
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7474
.end local v0 # "h0":F
.end local v1 # "h":F
.end local v6 # "w0":I
.end local v12 # "w2":I
.end local v15 # "w1":I
goto/16 :goto_544
.line 7475
.end local v21 # "proportions":Ljava/lang/StringBuilder;
.restart local v14 # "proportions":Ljava/lang/StringBuilder;
:cond_484
move-object/from16 v21, v14
.end local v14 # "proportions":Ljava/lang/StringBuilder;
.restart local v21 # "proportions":Ljava/lang/StringBuilder;
iget v1, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
const/high16 v6, 0x3f800000 # 1.0f
div-float v1, v6, v1
iget v12, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float v12, v6, v12
add-float/2addr v1, v12
iget-object v12, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v12, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v12
check-cast v12, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget v12, v12, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float v12, v6, v12
add-float/2addr v1, v12
div-float v1, v13, v1
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
invoke-static {v8, v1}, Ljava/lang/Math;->max(II)I
move-result v1
.line 7476
.local v1, "w":I
int-to-float v6, v9
int-to-float v12, v1
iget v14, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v12, v14
invoke-static {v6, v12}, Ljava/lang/Math;->max(FF)F
move-result v6
div-float/2addr v6, v13
const v12, 0x3ea8f5c3 # 0.33f
invoke-static {v12, v6}, Ljava/lang/Math;->min(FF)F
move-result v6
.line 7477
.local v6, "h0":F
int-to-float v14, v9
int-to-float v15, v1
iget v0, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
div-float/2addr v15, v0
invoke-static {v14, v15}, Ljava/lang/Math;->max(FF)F
move-result v0
div-float/2addr v0, v13
invoke-static {v12, v0}, Ljava/lang/Math;->min(FF)F
move-result v0
.line 7478
.local v0, "h1":F
const/high16 v12, 0x3f800000 # 1.0f
sub-float/2addr v12, v6
sub-float/2addr v12, v0
.line 7479
.local v12, "h2":F
iget v14, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
mul-float v14, v14, v13
int-to-float v15, v7
add-float/2addr v14, v15
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
sub-int/2addr v15, v1
int-to-float v15, v15
invoke-static {v14, v15}, Ljava/lang/Math;->min(FF)F
move-result v14
invoke-static {v14}, Ljava/lang/Math;->round(F)I
move-result v14
.line 7481
.local v14, "w0":I
const/16 v28, 0x0
const/16 v29, 0x0
const/16 v30, 0x0
const/16 v31, 0x2
add-float v15, v6, v0
add-float v33, v15, v12
const/16 v34, 0xd
move-object/from16 v27, v2
move/from16 v32, v14
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7483
const/16 v28, 0x1
const/16 v29, 0x1
const/16 v31, 0x0
const/16 v34, 0x6
move-object/from16 v27, v3
move/from16 v32, v1
move/from16 v33, v6
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7485
const/16 v28, 0x0
const/16 v30, 0x1
const/16 v31, 0x1
const/16 v34, 0x2
move-object/from16 v27, v4
move/from16 v33, v0
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7486
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
iput v15, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
.line 7488
const/16 v30, 0x2
const/16 v31, 0x2
const/16 v34, 0xa
move-object/from16 v27, v5
move/from16 v33, v12
invoke-virtual/range {v27 .. v34}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7489
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
iput v15, v5, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
.line 7491
iget v15, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
sub-int/2addr v15, v14
iput v15, v3, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
.line 7492
iput v14, v4, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->leftSpanOffset:I
.line 7493
iput v14, v5, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->leftSpanOffset:I
.line 7495
const/4 v15, 0x3
new-array v15, v15, [F
const/16 v17, 0x0
aput v6, v15, v17
move/from16 v17, v1
const/4 v1, 0x1
.end local v1 # "w":I
.local v17, "w":I
aput v0, v15, v1
const/16 v19, 0x2
aput v12, v15, v19
iput-object v15, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->siblingHeights:[F
.line 7496
iput-boolean v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->hasSibling:Z
.line 7498
.end local v0 # "h1":F
.end local v2 # "position1":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v3 # "position2":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v4 # "position3":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v5 # "position4":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v6 # "h0":F
.end local v12 # "h2":F
.end local v14 # "w0":I
.end local v17 # "w":I
:goto_544
move/from16 v27, v7
move v12, v8
move/from16 v30, v9
move/from16 v23, v11
move/from16 v32, v13
move/from16 v18, v25
move/from16 v22, v26
goto/16 :goto_849
.line 7456
.end local v21 # "proportions":Ljava/lang/StringBuilder;
.local v14, "proportions":Ljava/lang/StringBuilder;
:cond_553
move-object/from16 v21, v14
.end local v14 # "proportions":Ljava/lang/StringBuilder;
.restart local v21 # "proportions":Ljava/lang/StringBuilder;
move/from16 v27, v7
move v12, v8
move/from16 v30, v9
move/from16 v23, v11
move/from16 v32, v13
move/from16 v18, v25
move/from16 v22, v26
goto/16 :goto_849
.line 7397
.end local v21 # "proportions":Ljava/lang/StringBuilder;
.end local v25 # "averageAspectRatio":F
.end local v26 # "maxAspectRatio":F
.local v5, "averageAspectRatio":F
.local v6, "maxAspectRatio":F
.restart local v14 # "proportions":Ljava/lang/StringBuilder;
:cond_564
move/from16 v25, v5
move/from16 v26, v6
move-object/from16 v21, v14
const/16 v19, 0x2
.line 7500
.end local v5 # "averageAspectRatio":F
.end local v6 # "maxAspectRatio":F
.end local v14 # "proportions":Ljava/lang/StringBuilder;
.restart local v21 # "proportions":Ljava/lang/StringBuilder;
.restart local v25 # "averageAspectRatio":F
.restart local v26 # "maxAspectRatio":F
:goto_56c
iget-object v0, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
new-array v12, v0, [F
.line 7501
.local v12, "croppedRatios":[F
const/4 v0, 0x0
.local v0, "a":I
:goto_575
if-ge v0, v11, :cond_5b8
.line 7502
const v1, 0x3f8ccccd # 1.1f
cmpl-float v1, v25, v1
if-lez v1, :cond_591
.line 7503
iget-object v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget v1, v1, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
const/high16 v2, 0x3f800000 # 1.0f
invoke-static {v2, v1}, Ljava/lang/Math;->max(FF)F
move-result v1
aput v1, v12, v0
goto :goto_5a3
.line 7505
:cond_591
const/high16 v2, 0x3f800000 # 1.0f
iget-object v1, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget v1, v1, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->aspectRatio:F
invoke-static {v2, v1}, Ljava/lang/Math;->min(FF)F
move-result v1
aput v1, v12, v0
.line 7507
:goto_5a3
const v1, 0x3f2aaae3
const v3, 0x3fd9999a # 1.7f
aget v5, v12, v0
invoke-static {v3, v5}, Ljava/lang/Math;->min(FF)F
move-result v3
invoke-static {v1, v3}, Ljava/lang/Math;->max(FF)F
move-result v1
aput v1, v12, v0
.line 7501
add-int/lit8 v0, v0, 0x1
goto :goto_575
.line 7514
.end local v0 # "a":I
:cond_5b8
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
move-object v14, v0
.line 7515
.local v14, "attempts":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;>;"
const/4 v0, 0x1
move v6, v0
.local v6, "firstLine":I
:goto_5c0
array-length v0, v12
if-ge v6, v0, :cond_608
.line 7516
array-length v0, v12
sub-int v15, v0, v6
.line 7517
.local v15, "secondLine":I
const/4 v0, 0x3
if-gt v6, v0, :cond_5f8
if-le v15, v0, :cond_5d2
.line 7518
move/from16 v23, v11
move/from16 v18, v25
const/16 v24, 0x4
goto :goto_5fe
.line 7520
:cond_5d2
new-instance v5, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
const/4 v1, 0x0
invoke-direct {v10, v12, v1, v6}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v18
array-length v1, v12
invoke-direct {v10, v12, v6, v1}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v22
const/4 v3, 0x3
move-object v0, v5
move-object/from16 v1, p0
move/from16 v23, v11
const/4 v11, 0x2
.end local v11 # "count":I
.local v23, "count":I
move v2, v6
const/4 v11, 0x3
move v3, v15
const/16 v24, 0x4
move/from16 v4, v18
move-object v11, v5
move/from16 v18, v25
.end local v25 # "averageAspectRatio":F
.local v18, "averageAspectRatio":F
move/from16 v5, v22
invoke-direct/range {v0 .. v5}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;-><init>(Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;IIFF)V
invoke-virtual {v14, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_5fe
.line 7517
.end local v18 # "averageAspectRatio":F
.end local v23 # "count":I
.restart local v11 # "count":I
.restart local v25 # "averageAspectRatio":F
:cond_5f8
move/from16 v23, v11
move/from16 v18, v25
const/16 v24, 0x4
.line 7515
.end local v11 # "count":I
.end local v25 # "averageAspectRatio":F
.restart local v18 # "averageAspectRatio":F
.restart local v23 # "count":I
:goto_5fe
add-int/lit8 v6, v6, 0x1
move/from16 v25, v18
move/from16 v11, v23
const/4 v4, 0x4
const/16 v19, 0x2
goto :goto_5c0
.line 7523
.end local v15 # "secondLine":I
.end local v18 # "averageAspectRatio":F
.end local v23 # "count":I
.restart local v11 # "count":I
.restart local v25 # "averageAspectRatio":F
:cond_608
move/from16 v23, v11
move/from16 v18, v25
const/16 v24, 0x4
.end local v11 # "count":I
.end local v25 # "averageAspectRatio":F
.restart local v18 # "averageAspectRatio":F
.restart local v23 # "count":I
const/4 v0, 0x1
move v11, v0
.end local v6 # "firstLine":I
.local v11, "firstLine":I
:goto_610
array-length v0, v12
const/4 v1, 0x1
sub-int/2addr v0, v1
if-ge v11, v0, :cond_684
.line 7524
const/4 v0, 0x1
move v15, v0
.restart local v15 # "secondLine":I
:goto_617
array-length v0, v12
sub-int/2addr v0, v11
if-ge v15, v0, :cond_67b
.line 7525
array-length v0, v12
sub-int/2addr v0, v11
sub-int v6, v0, v15
.line 7526
.local v6, "thirdLine":I
const/4 v0, 0x3
if-gt v11, v0, :cond_66a
const v0, 0x3f59999a # 0.85f
cmpg-float v0, v18, v0
if-gez v0, :cond_62b
const/4 v4, 0x4
goto :goto_62c
:cond_62b
const/4 v4, 0x3
:goto_62c
if-gt v15, v4, :cond_66a
const/4 v0, 0x3
if-le v6, v0, :cond_63a
.line 7527
move/from16 v27, v7
move/from16 v29, v8
move/from16 v22, v26
move/from16 v26, v6
goto :goto_672
.line 7529
:cond_63a
new-instance v5, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
const/4 v0, 0x0
invoke-direct {v10, v12, v0, v11}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v22
add-int v0, v11, v15
invoke-direct {v10, v12, v11, v0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v27
add-int v0, v11, v15
array-length v1, v12
invoke-direct {v10, v12, v0, v1}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v28
move-object v0, v5
move-object/from16 v1, p0
move v2, v11
move v3, v15
move v4, v6
move/from16 v29, v8
move-object v8, v5
.end local v8 # "minWidth":I
.local v29, "minWidth":I
move/from16 v5, v22
move/from16 v22, v26
move/from16 v26, v6
.end local v6 # "thirdLine":I
.local v22, "maxAspectRatio":F
.local v26, "thirdLine":I
move/from16 v6, v27
move/from16 v27, v7
.end local v7 # "paddingsWidth":I
.local v27, "paddingsWidth":I
move/from16 v7, v28
invoke-direct/range {v0 .. v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;-><init>(Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;IIIFFF)V
invoke-virtual {v14, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_672
.line 7526
.end local v22 # "maxAspectRatio":F
.end local v27 # "paddingsWidth":I
.end local v29 # "minWidth":I
.restart local v6 # "thirdLine":I
.restart local v7 # "paddingsWidth":I
.restart local v8 # "minWidth":I
.local v26, "maxAspectRatio":F
:cond_66a
move/from16 v27, v7
move/from16 v29, v8
move/from16 v22, v26
move/from16 v26, v6
.line 7524
.end local v6 # "thirdLine":I
.end local v7 # "paddingsWidth":I
.end local v8 # "minWidth":I
.restart local v22 # "maxAspectRatio":F
.local v26, "thirdLine":I
.restart local v27 # "paddingsWidth":I
.restart local v29 # "minWidth":I
:goto_672
add-int/lit8 v15, v15, 0x1
move/from16 v26, v22
move/from16 v7, v27
move/from16 v8, v29
goto :goto_617
.line 7523
.end local v22 # "maxAspectRatio":F
.end local v27 # "paddingsWidth":I
.end local v29 # "minWidth":I
.restart local v7 # "paddingsWidth":I
.restart local v8 # "minWidth":I
.local v26, "maxAspectRatio":F
:cond_67b
move/from16 v27, v7
move/from16 v29, v8
move/from16 v22, v26
.end local v7 # "paddingsWidth":I
.end local v8 # "minWidth":I
.end local v26 # "maxAspectRatio":F
.restart local v22 # "maxAspectRatio":F
.restart local v27 # "paddingsWidth":I
.restart local v29 # "minWidth":I
add-int/lit8 v11, v11, 0x1
goto :goto_610
.line 7533
.end local v15 # "secondLine":I
.end local v22 # "maxAspectRatio":F
.end local v27 # "paddingsWidth":I
.end local v29 # "minWidth":I
.restart local v7 # "paddingsWidth":I
.restart local v8 # "minWidth":I
.restart local v26 # "maxAspectRatio":F
:cond_684
move/from16 v27, v7
move/from16 v29, v8
move/from16 v22, v26
.end local v7 # "paddingsWidth":I
.end local v8 # "minWidth":I
.end local v26 # "maxAspectRatio":F
.restart local v22 # "maxAspectRatio":F
.restart local v27 # "paddingsWidth":I
.restart local v29 # "minWidth":I
const/4 v0, 0x1
move v11, v0
:goto_68c
array-length v0, v12
const/4 v1, 0x2
sub-int/2addr v0, v1
if-ge v11, v0, :cond_731
.line 7534
const/4 v0, 0x1
move v15, v0
.restart local v15 # "secondLine":I
:goto_693
array-length v0, v12
sub-int/2addr v0, v11
if-ge v15, v0, :cond_723
.line 7535
const/4 v0, 0x1
move v8, v0
.local v8, "thirdLine":I
:goto_699
array-length v0, v12
sub-int/2addr v0, v11
sub-int/2addr v0, v15
if-ge v8, v0, :cond_711
.line 7536
array-length v0, v12
sub-int/2addr v0, v11
sub-int/2addr v0, v15
sub-int v7, v0, v8
.line 7537
.local v7, "fourthLine":I
const/4 v0, 0x3
if-gt v11, v0, :cond_6fa
if-gt v15, v0, :cond_6fa
if-gt v8, v0, :cond_6fa
if-le v7, v0, :cond_6b9
.line 7538
move/from16 v26, v7
move/from16 v30, v9
move-object/from16 v28, v12
move/from16 v32, v13
move/from16 v12, v29
move/from16 v29, v8
goto :goto_706
.line 7540
:cond_6b9
new-instance v6, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
const/4 v0, 0x0
invoke-direct {v10, v12, v0, v11}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v26
add-int v0, v11, v15
invoke-direct {v10, v12, v11, v0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v28
add-int v0, v11, v15
add-int v1, v11, v15
add-int/2addr v1, v8
invoke-direct {v10, v12, v0, v1}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v30
add-int v0, v11, v15
add-int/2addr v0, v8
array-length v1, v12
invoke-direct {v10, v12, v0, v1}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->multiHeight([FII)F
move-result v31
move-object v0, v6
move-object/from16 v1, p0
move v2, v11
move v3, v15
move v4, v8
move v5, v7
move/from16 v32, v13
move-object v13, v6
.end local v13 # "maxSizeHeight":F
.local v32, "maxSizeHeight":F
move/from16 v6, v26
move/from16 v26, v7
.end local v7 # "fourthLine":I
.local v26, "fourthLine":I
move/from16 v7, v28
move-object/from16 v28, v12
move/from16 v12, v29
move/from16 v29, v8
.end local v8 # "thirdLine":I
.local v12, "minWidth":I
.local v28, "croppedRatios":[F
.local v29, "thirdLine":I
move/from16 v8, v30
move/from16 v30, v9
.end local v9 # "minHeight":I
.local v30, "minHeight":I
move/from16 v9, v31
invoke-direct/range {v0 .. v9}, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;-><init>(Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;IIIIFFFF)V
invoke-virtual {v14, v13}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_706
.line 7537
.end local v26 # "fourthLine":I
.end local v28 # "croppedRatios":[F
.end local v30 # "minHeight":I
.end local v32 # "maxSizeHeight":F
.restart local v7 # "fourthLine":I
.restart local v8 # "thirdLine":I
.restart local v9 # "minHeight":I
.local v12, "croppedRatios":[F
.restart local v13 # "maxSizeHeight":F
.local v29, "minWidth":I
:cond_6fa
move/from16 v26, v7
move/from16 v30, v9
move-object/from16 v28, v12
move/from16 v32, v13
move/from16 v12, v29
move/from16 v29, v8
.line 7535
.end local v7 # "fourthLine":I
.end local v8 # "thirdLine":I
.end local v9 # "minHeight":I
.end local v13 # "maxSizeHeight":F
.local v12, "minWidth":I
.restart local v26 # "fourthLine":I
.restart local v28 # "croppedRatios":[F
.local v29, "thirdLine":I
.restart local v30 # "minHeight":I
.restart local v32 # "maxSizeHeight":F
:goto_706
add-int/lit8 v8, v29, 0x1
move/from16 v29, v12
move-object/from16 v12, v28
move/from16 v9, v30
move/from16 v13, v32
.end local v29 # "thirdLine":I
.restart local v8 # "thirdLine":I
goto :goto_699
.line 7534
.end local v26 # "fourthLine":I
.end local v28 # "croppedRatios":[F
.end local v30 # "minHeight":I
.end local v32 # "maxSizeHeight":F
.restart local v9 # "minHeight":I
.local v12, "croppedRatios":[F
.restart local v13 # "maxSizeHeight":F
.local v29, "minWidth":I
:cond_711
move/from16 v30, v9
move-object/from16 v28, v12
move/from16 v32, v13
move/from16 v12, v29
move/from16 v29, v8
.end local v8 # "thirdLine":I
.end local v9 # "minHeight":I
.end local v13 # "maxSizeHeight":F
.local v12, "minWidth":I
.restart local v28 # "croppedRatios":[F
.local v29, "thirdLine":I
.restart local v30 # "minHeight":I
.restart local v32 # "maxSizeHeight":F
add-int/lit8 v15, v15, 0x1
move/from16 v29, v12
move-object/from16 v12, v28
goto/16 :goto_693
.line 7533
.end local v28 # "croppedRatios":[F
.end local v30 # "minHeight":I
.end local v32 # "maxSizeHeight":F
.restart local v9 # "minHeight":I
.local v12, "croppedRatios":[F
.restart local v13 # "maxSizeHeight":F
.local v29, "minWidth":I
:cond_723
move/from16 v30, v9
move-object/from16 v28, v12
move/from16 v32, v13
move/from16 v12, v29
.end local v9 # "minHeight":I
.end local v13 # "maxSizeHeight":F
.end local v29 # "minWidth":I
.local v12, "minWidth":I
.restart local v28 # "croppedRatios":[F
.restart local v30 # "minHeight":I
.restart local v32 # "maxSizeHeight":F
add-int/lit8 v11, v11, 0x1
move-object/from16 v12, v28
goto/16 :goto_68c
.line 7545
.end local v15 # "secondLine":I
.end local v28 # "croppedRatios":[F
.end local v30 # "minHeight":I
.end local v32 # "maxSizeHeight":F
.restart local v9 # "minHeight":I
.local v12, "croppedRatios":[F
.restart local v13 # "maxSizeHeight":F
.restart local v29 # "minWidth":I
:cond_731
move/from16 v30, v9
move-object/from16 v28, v12
move/from16 v32, v13
move/from16 v12, v29
.end local v9 # "minHeight":I
.end local v13 # "maxSizeHeight":F
.end local v29 # "minWidth":I
.local v12, "minWidth":I
.restart local v28 # "croppedRatios":[F
.restart local v30 # "minHeight":I
.restart local v32 # "maxSizeHeight":F
const/4 v0, 0x0
.line 7546
.local v0, "optimal":Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
const/4 v1, 0x0
.line 7547
.local v1, "optimalDiff":F
iget v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
const/4 v3, 0x3
div-int/2addr v2, v3
mul-int/lit8 v2, v2, 0x4
int-to-float v2, v2
.line 7548
.local v2, "maxHeight":F
const/4 v3, 0x0
.local v3, "a":I
:goto_743
invoke-virtual {v14}, Ljava/util/ArrayList;->size()I
move-result v4
if-ge v3, v4, :cond_7c8
.line 7549
invoke-virtual {v14, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
.line 7550
.local v4, "attempt":Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
const/4 v5, 0x0
.line 7551
.local v5, "height":F
const v6, 0x7f7fffff # Float.MAX_VALUE
.line 7552
.local v6, "minLineHeight":F
const/4 v7, 0x0
.local v7, "b":I
:goto_754
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->heights:[F
array-length v8, v8
if-ge v7, v8, :cond_76d
.line 7553
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->heights:[F
aget v8, v8, v7
add-float/2addr v5, v8
.line 7554
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->heights:[F
aget v8, v8, v7
cmpg-float v8, v8, v6
if-gez v8, :cond_76a
.line 7555
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->heights:[F
aget v6, v8, v7
.line 7552
:cond_76a
add-int/lit8 v7, v7, 0x1
goto :goto_754
.line 7559
.end local v7 # "b":I
:cond_76d
sub-float v7, v5, v2
invoke-static {v7}, Ljava/lang/Math;->abs(F)F
move-result v7
.line 7560
.local v7, "diff":F
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
array-length v8, v8
const/4 v9, 0x1
if-le v8, v9, :cond_7b1
.line 7561
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
const/4 v13, 0x0
aget v8, v8, v13
iget-object v15, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
aget v15, v15, v9
if-gt v8, v15, :cond_7ac
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
array-length v8, v8
const/4 v15, 0x2
if-le v8, v15, :cond_798
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
aget v8, v8, v9
iget-object v9, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
aget v9, v9, v15
if-gt v8, v9, :cond_795
goto :goto_798
:cond_795
const/4 v9, 0x3
const/4 v15, 0x2
goto :goto_7ae
:cond_798
:goto_798
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
array-length v8, v8
const/4 v9, 0x3
if-le v8, v9, :cond_7aa
iget-object v8, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
const/4 v15, 0x2
aget v8, v8, v15
iget-object v13, v4, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
aget v13, v13, v9
if-le v8, v13, :cond_7b3
goto :goto_7ae
:cond_7aa
const/4 v15, 0x2
goto :goto_7b3
:cond_7ac
const/4 v9, 0x3
const/4 v15, 0x2
.line 7562
:goto_7ae
mul-float v7, v7, v17
goto :goto_7b3
.line 7560
:cond_7b1
const/4 v9, 0x3
const/4 v15, 0x2
.line 7566
:cond_7b3
:goto_7b3
int-to-float v8, v12
cmpg-float v8, v6, v8
if-gez v8, :cond_7bc
.line 7567
const/high16 v8, 0x3fc00000 # 1.5f
mul-float v7, v7, v8
.line 7570
:cond_7bc
if-eqz v0, :cond_7c2
cmpg-float v8, v7, v1
if-gez v8, :cond_7c4
.line 7571
:cond_7c2
move-object v0, v4
.line 7572
move v1, v7
.line 7548
.end local v4 # "attempt":Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
.end local v5 # "height":F
.end local v6 # "minLineHeight":F
.end local v7 # "diff":F
:cond_7c4
add-int/lit8 v3, v3, 0x1
goto/16 :goto_743
.line 7575
.end local v3 # "a":I
:cond_7c8
if-nez v0, :cond_7cb
.line 7576
return-void
.line 7579
:cond_7cb
const/4 v3, 0x0
.line 7580
.local v3, "index":I
const/4 v4, 0x0
.line 7582
.local v4, "y":F
const/4 v5, 0x0
.local v5, "i":I
:goto_7ce
iget-object v6, v0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
array-length v6, v6
if-ge v5, v6, :cond_845
.line 7583
iget-object v6, v0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
aget v6, v6, v5
.line 7584
.local v6, "c":I
iget-object v7, v0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->heights:[F
aget v7, v7, v5
.line 7585
.local v7, "lineHeight":F
iget v8, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->maxSizeWidth:I
.line 7586
.local v8, "spanLeft":I
const/4 v9, 0x0
.line 7587
.local v9, "posToFix":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
const/4 v13, 0x0
.local v13, "k":I
:goto_7df
if-ge v13, v6, :cond_831
.line 7588
aget v15, v28, v3
.line 7589
.local v15, "ratio":F
move/from16 v17, v1
.end local v1 # "optimalDiff":F
.local v17, "optimalDiff":F
mul-float v1, v15, v7
float-to-int v1, v1
.line 7590
.local v1, "width":I
sub-int/2addr v8, v1
.line 7591
move/from16 v19, v2
.end local v2 # "maxHeight":F
.local v19, "maxHeight":F
iget-object v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7592
.local v2, "pos":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
const/16 v20, 0x0
.line 7593
.local v20, "flags":I
if-nez v5, :cond_7f9
.line 7594
or-int/lit8 v20, v20, 0x4
.line 7596
:cond_7f9
move/from16 v24, v8
.end local v8 # "spanLeft":I
.local v24, "spanLeft":I
iget-object v8, v0, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;->lineCounts:[I
array-length v8, v8
const/16 v25, 0x1
add-int/lit8 v8, v8, -0x1
if-ne v5, v8, :cond_806
.line 7597
or-int/lit8 v20, v20, 0x8
.line 7599
:cond_806
if-nez v13, :cond_80a
.line 7600
or-int/lit8 v20, v20, 0x1
.line 7602
:cond_80a
add-int/lit8 v8, v6, -0x1
if-ne v13, v8, :cond_812
.line 7603
or-int/lit8 v20, v20, 0x2
.line 7604
move-object v8, v2
move-object v9, v8
.line 7606
:cond_812
div-float v39, v7, v32
move-object/from16 v33, v2
move/from16 v34, v13
move/from16 v35, v13
move/from16 v36, v5
move/from16 v37, v5
move/from16 v38, v1
move/from16 v40, v20
invoke-virtual/range {v33 .. v40}, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->set(IIIIIFI)V
.line 7607
nop
.end local v1 # "width":I
.end local v2 # "pos":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.end local v15 # "ratio":F
.end local v20 # "flags":I
add-int/lit8 v3, v3, 0x1
.line 7587
add-int/lit8 v13, v13, 0x1
move/from16 v1, v17
move/from16 v2, v19
move/from16 v8, v24
goto :goto_7df
.end local v17 # "optimalDiff":F
.end local v19 # "maxHeight":F
.end local v24 # "spanLeft":I
.local v1, "optimalDiff":F
.local v2, "maxHeight":F
.restart local v8 # "spanLeft":I
:cond_831
move/from16 v17, v1
move/from16 v19, v2
.line 7609
.end local v1 # "optimalDiff":F
.end local v2 # "maxHeight":F
.end local v13 # "k":I
.restart local v17 # "optimalDiff":F
.restart local v19 # "maxHeight":F
iget v1, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->pw:I
add-int/2addr v1, v8
iput v1, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->pw:I
.line 7610
iget v1, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
add-int/2addr v1, v8
iput v1, v9, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->spanSize:I
.line 7611
add-float/2addr v4, v7
.line 7582
.end local v6 # "c":I
.end local v7 # "lineHeight":F
.end local v8 # "spanLeft":I
.end local v9 # "posToFix":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
add-int/lit8 v5, v5, 0x1
move/from16 v1, v17
goto :goto_7ce
.end local v17 # "optimalDiff":F
.end local v19 # "maxHeight":F
.restart local v1 # "optimalDiff":F
.restart local v2 # "maxHeight":F
:cond_845
move/from16 v17, v1
move/from16 v19, v2
.line 7614
.end local v0 # "optimal":Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;
.end local v1 # "optimalDiff":F
.end local v2 # "maxHeight":F
.end local v3 # "index":I
.end local v4 # "y":F
.end local v5 # "i":I
.end local v11 # "firstLine":I
.end local v14 # "attempts":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages$MessageGroupedLayoutAttempt;>;"
.end local v28 # "croppedRatios":[F
:goto_849
const/4 v0, 0x0
.local v0, "a":I
:goto_84a
move/from16 v1, v23
.end local v23 # "count":I
.local v1, "count":I
if-ge v0, v1, :cond_863
.line 7615
iget-object v2, v10, Lim/tpelyyftgw/ui/ArticleViewer$BlockCollageCell$GroupedMessages;->posArray:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
.line 7617
.local v2, "pos":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
iget v3, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->flags:I
const/4 v4, 0x1
and-int/2addr v3, v4
if-eqz v3, :cond_85e
.line 7618
iput-boolean v4, v2, Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;->edge:Z
.line 7614
.end local v2 # "pos":Lim/tpelyyftgw/messenger/MessageObject$GroupedMessagePosition;
:cond_85e
add-int/lit8 v0, v0, 0x1
move/from16 v23, v1
goto :goto_84a
.line 7621
.end local v0 # "a":I
:cond_863
return-void
.end method