//
// ThreadViewPopup::buildRows from 0x75bc54 to 0x75bd44 (240 bytes)
//
// 12 xrefs:
// > ThreadViewPopup::exitSearch @ 0x75be2a
// > ThreadViewPopup::threadSearchFinished @ 0x75d842
// > ThreadViewPopup::threadUpdateFinished @ 0x75d8fa
// > ThreadViewPopup::threadUpdateFinished @ 0x75d9ac
// > ThreadViewPopup::onSend @ 0x75de62
// > ThreadViewPopup::threadSendFinished @ 0x75e07c
// > ThreadViewPopup::threadSendFailed @ 0x75e11e
// > ThreadViewPopup::threadMessagesFinished @ 0x75e780
// > ThreadViewPopup::threadMessagesFinished @ 0x75ec4e
// > ThreadViewPopup::threadMessagesFinished @ 0x75ec5c
// > ThreadViewPopup::threadMessagesFinished @ 0x75ec88
// > ThreadViewPopup::threadMessagesFinished @ 0x75ecaa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:59 +0000
//
void __fastcall ThreadViewPopup::buildRows(ThreadViewPopup *this, int a2)
{
int v4; // r2
int v5; // r0
float v6; // s17
float v7; // s16
int v8; // r2
const char *v9; // r2
int v10; // r0
int v11; // r0
void (__fastcall *v12)(int, _BYTE *); // r2
float v13; // s15
float v14; // s15
float v15; // r1
_BYTE v16[4]; // [sp+0h] [bp-8h] BYREF
v4 = *((_DWORD *)this + 155);
v5 = *((_DWORD *)this + 161);
v6 = *(float *)(v4 + 332);
v7 = *(float *)(v4 + 336);
if ( v5 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v5 + 260))(v5);
*((_DWORD *)this + 161) = 0;
}
ThreadViewPopup::layoutRows(this);
if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)) )
{
v13 = *((float *)this + 140);
if ( a2 )
v14 = v13 - *((float *)this + 158);
else
v14 = (float)(v13 - v6) + v7;
if ( v14 > 0.0 )
v15 = v14;
else
v15 = 0.0;
ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 155), v15, v8);
}
else
{
ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 155), 0.0, v8);
v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"No messages yet", "chatFont.fnt", v9);
*((_DWORD *)this + 161) = v10;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1058642330);
v11 = *((_DWORD *)this + 161);
v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 536);
memset(v16, 150, 3);
v12(v11, v16);
(*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 161) + 92))(
*((_DWORD *)this + 161),
(char *)this + 636);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 161));
}
}