//
// ThreadViewPopup::buildRows from 0xc86460 to 0xc865bc (348 bytes)
//
// 13 xrefs:
// > ThreadViewPopup::exitSearch @ 0xc8669c
// > ThreadViewPopup::threadSearchFinished @ 0xc88fe4
// > ThreadViewPopup::threadUpdateFinished @ 0xc8950c
// > ThreadViewPopup::threadUpdateFinished @ 0xc89604
// > ThreadViewPopup::onSend @ 0xc89b9c
// > ThreadViewPopup::threadSendFinished @ 0xc89e78
// > ThreadViewPopup::threadSendFailed @ 0xc8a050
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a664
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a990
// > ThreadViewPopup::threadMessagesFinished @ 0xc8acac
// > ThreadViewPopup::threadMessagesFinished @ 0xc8ae70
// > ThreadViewPopup::threadMessagesFinished @ 0xc8ae84
// > ??> @ 0xb30e0
//
// This function is hookable on this platform (idp: arm, 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 13:05:41 +0000
//
__int64 __fastcall ThreadViewPopup::buildRows(ThreadViewPopup *this, unsigned __int8 a2)
{
int v3; // w21
__int64 v4; // x1
__int64 v5; // x0
float v6; // s9
float v7; // s8
float v8; // s1
ScrollableContentLayer *v9; // x0
float v10; // s0
const char *v12; // x2
__int64 v13; // x0
__int64 *v14; // x0
__int64 v15; // x3
_BYTE v16[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = a2;
v4 = *((_QWORD *)this + 103);
v5 = *((_QWORD *)this + 107);
v6 = *(float *)(v4 + 432);
v7 = *(float *)(v4 + 436);
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5);
*((_QWORD *)this + 107) = 0;
}
ThreadViewPopup::layoutRows(this);
if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 95)) )
{
ScrollableContentLayer::reloadVirtualRows(*((ScrollableContentLayer **)this + 103), 0.0);
v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"No messages yet", "chatFont.fnt", v12);
*((_QWORD *)this + 107) = v13;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.6);
v14 = *((__int64 **)this + 107);
v15 = *v14;
memset(v16, 150, 3);
(*(void (__fastcall **)(__int64 *, _BYTE *))(v15 + 1072))(v14, v16);
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 107) + 184LL))(
*((_QWORD *)this + 107),
(char *)this + 848);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 107));
return _stack_chk_guard;
}
v8 = *((float *)this + 186);
if ( !v3 )
{
v9 = *((ScrollableContentLayer **)this + 103);
v10 = v7 + (float)(v8 - v6);
if ( v10 > 0.0 )
goto LABEL_6;
LABEL_9:
v10 = 0.0;
goto LABEL_6;
}
v9 = *((ScrollableContentLayer **)this + 103);
v10 = v8 - *((float *)this + 211);
if ( v10 <= 0.0 )
goto LABEL_9;
LABEL_6:
ScrollableContentLayer::reloadVirtualRows(v9, v10);
return _stack_chk_guard;
}