//
// ThreadViewPopup::onLoadEarlier from 0x1400db760 to 0x1400db8bd (349 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::mountVirtualRow @ 0x1400e189c
// > ??> @ 0x1409148c4
//
// 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:28 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall ThreadViewPopup::onLoadEarlier(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
__int64 v4; // rbx
__int64 v5; // rcx
__int64 v6; // rdx
void *v7; // [rsp+30h] [rbp+8h]
void *v8; // [rsp+30h] [rbp+8h]
void *v9; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(a1 + 1104) )
{
if ( *(__int64 *)(a1 + 760) > 0 )
{
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
if ( (unsigned int)GameLevelManager::getTimeLeft(v2, "threadSearch") - 1 > 2 )
{
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
if ( (unsigned __int8)GameLevelManager::searchThreadMessages(
v3,
*(unsigned int *)(*(_QWORD *)(a1 + 744) + 56LL),
a1 + 1112,
*(_QWORD *)(a1 + 760)) )
{
v4 = a1 + 672;
v5 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v9 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v5 + 1392) = v4;
GameLevelManager::makeTimeStamp(v5, "threadSearch");
}
}
}
}
else
{
v6 = *(_QWORD *)(a1 + 760);
if ( v6 > 0 )
ThreadViewPopup::requestMessages(a1, v6, 0);
}
}