//
// ThreadViewPopup::buildRows from 0x1400e2c60 to 0x1400e2da0 (320 bytes)
//
// 13 xrefs:
// > ThreadViewPopup::exitSearch @ 0x1400dbec0
// > ThreadViewPopup::threadSearchFinished @ 0x1400dc540
// > ThreadViewPopup::threadUpdateFinished @ 0x1400dd2ce
// > ThreadViewPopup::threadUpdateFinished @ 0x1400dd3b9
// > ThreadViewPopup::onSend @ 0x1400de21c
// > ThreadViewPopup::threadSendFinished @ 0x1400de664
// > ThreadViewPopup::threadSendFailed @ 0x1400de8d6
// > ThreadViewPopup::threadMessagesFinished @ 0x1400df4ae
// > ThreadViewPopup::threadMessagesFinished @ 0x1400dfccd
// > ThreadViewPopup::threadMessagesFinished @ 0x1400dfce5
// > ThreadViewPopup::threadMessagesFinished @ 0x1400dfd2e
// > ThreadViewPopup::threadMessagesFinished @ 0x1400dfd9f
// > ??> @ 0x140914ad4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:26:31 +0000
//
void __fastcall ThreadViewPopup::buildRows(__int64 a1, __int64 a2, __int64 a3, double a4)
{
__int64 v4; // rax
__int64 v6; // rcx
char v7; // di
float v8; // xmm6_4
float v9; // xmm7_4
unsigned int v10; // eax
__int64 v11; // rcx
struct cocos2d::CCLabelBMFont *v12; // rax
void (__fastcall ***v13)(_QWORD, __int16 *); // rcx
float v14; // xmm0_4
float v15; // xmm0_4
__int16 v16; // [rsp+50h] [rbp+8h] BYREF
char v17; // [rsp+52h] [rbp+Ah]
v4 = *(_QWORD *)(a1 + 816);
v6 = *(_QWORD *)(a1 + 848);
v7 = a2;
v8 = *(float *)(v4 + 432);
v9 = *(float *)(v4 + 436);
if ( v6 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6);
*(_QWORD *)(a1 + 848) = 0;
}
ThreadViewPopup::layoutRows(a1, a2, a3, a4);
v10 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 752));
v11 = *(_QWORD *)(a1 + 816);
if ( v10 )
{
v14 = *(float *)(a1 + 736);
if ( v7 )
v15 = v14 - *(float *)(a1 + 836);
else
v15 = (float)(v14 - v8) + v9;
ScrollableContentLayer::reloadVirtualRows(v11, fmaxf(0.0, v15));
}
else
{
ScrollableContentLayer::reloadVirtualRows(v11, 0.0);
v12 = cocos2d::CCLabelBMFont::create("No messages yet", "chatFont.fnt");
*(_QWORD *)(a1 + 848) = v12;
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v12 + 160LL))(v12);
v13 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 848) + 368LL);
v16 = -26986;
v17 = -106;
(**v13)(v13, &v16);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 848) + 184LL))(*(_QWORD *)(a1 + 848), a1 + 840);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 848));
}
}