//
// ThreadDescPopup::sendDescription from 0x1400fe080 to 0x1400fe150 (208 bytes)
//
// 3 xrefs:
// > ThreadDescPopup::onSave @ 0x1400fdffb
// > ThreadDescPopup::threadUpdateFinished @ 0x1400fe32b
// > ??> @ 0x14091556c
//
// 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:41 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall ThreadDescPopup::sendDescription(__int64 a1)
{
__int64 v2; // rcx
__int64 result; // rax
void *v4; // [rsp+30h] [rbp+8h]
void *v5; // [rsp+30h] [rbp+8h]
*(_BYTE *)(a1 + 1113) = 0;
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v4 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v4);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
result = GameLevelManager::updateThread(v2, *(unsigned int *)(*(_QWORD *)(a1 + 1016) + 56LL), 14, a1 + 1048);
if ( (_BYTE)result )
{
result = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
result = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(result + 1392) = a1 + 1000;
*(_BYTE *)(a1 + 1113) = 1;
}
return result;
}