//
// ThreadViewPopup::onLoadEarlier from 0xc65930 to 0xc659e4 (180 bytes)
//
// 3 xrefs:
// > ??> @ 0x93778
// > ThreadViewPopup::mountVirtualRow @ 0xc8b1ec
// > ??> @ 0x1543f80
//
// 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:24 +0000
//
__int64 __fastcall ThreadViewPopup::onLoadEarlier(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
__int64 v3; // x19
GameLevelManager *v4; // x0
__int64 v5; // x1
cocos2d::CCObject *v6; // x0
GameLevelManager *v7; // x0
GameLevelManager *v8; // x0
v2 = this;
if ( *(_BYTE *)(this + 1104) )
{
this = *(_QWORD *)(this + 768);
if ( this > 0 )
{
v3 = v2;
v4 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
this = (unsigned int)GameLevelManager::getTimeLeft(v4, "threadSearch", 3.0) - 1;
if ( (unsigned int)this > 2 )
{
v6 = (cocos2d::CCObject *)GameLevelManager::sharedState((GameLevelManager *)this);
this = (unsigned __int8)GameLevelManager::searchThreadMessages(
v6,
(char *)*(unsigned int *)(*(_QWORD *)(v3 + 752) + 56LL),
(char *)(v3 + 1112),
*(_QWORD *)(v3 + 768));
if ( (_BYTE)this )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
*((_QWORD *)v7 + 158) = v3 + 672;
v8 = (GameLevelManager *)GameLevelManager::sharedState(v7);
return GameLevelManager::makeTimeStamp(v8, "threadSearch");
}
}
}
}
else
{
v5 = *(_QWORD *)(this + 768);
if ( v5 > 0 )
return ThreadViewPopup::requestMessages((ThreadViewPopup *)this, v5, 0);
}
return this;
}