//
// sub_100513BD8 from 0x100513bd8 to 0x100513c28 (80 bytes)
//
// 2 xrefs:
// > sub_1005135EC @ 0x1005137c0
// > ThreadDescPopup::threadUpdateFinished @ 0x100513dac
//
// 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 11:07:04 +0000
//
__int64 __fastcall sub_100513BD8(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
*(_BYTE *)(a1 + 1113) = 0;
v2 = GameLevelManager::sharedState();
result = sub_1000C8838(v2, *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL), 14, a1 + 1064);
if ( (_DWORD)result )
{
result = GameLevelManager::sharedState();
*(_QWORD *)(result + 1264) = a1 + 1016;
*(_BYTE *)(a1 + 1113) = 1;
}
return result;
}