//
// sub_100513F60 from 0x100513f60 to 0x100513fa8 (72 bytes)
//
// 2 xrefs:
// > ThreadDescPopup::threadUpdateFailed @ 0x100513e70
// > ThreadDescPopup::onClose @ 0x100514200
//
// 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_100513F60(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
__int64 v4; // x8
result = GameLevelManager::sharedState();
if ( *(_QWORD *)(result + 1264) == a1 + 1016 )
{
result = GameLevelManager::sharedState();
v3 = *(_QWORD *)(a1 + 1040);
if ( v3 )
v4 = v3 + 672;
else
v4 = 0;
*(_QWORD *)(result + 1264) = v4;
}
return result;
}