//
// sub_10094EA40 from 0x10094ea40 to 0x10094eaeb (171 bytes)
//
// 2 xrefs:
// > sub_10094E790 @ 0x10094e7b1
// > sub_1009553F0 @ 0x10095543c
//
// 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 12:38:37 +0000
//
void __fastcall sub_10094EA40(__int64 a1, __int64 a2)
{
__int64 v4; // rax
int v5; // esi
char updated; // r15
_DWORD *v7; // rdi
std::string v8; // [rsp+0h] [rbp-30h] BYREF
if ( a2 && *(int *)(a1 + 808) <= 0 )
{
v4 = GameLevelManager::sharedState();
v5 = *(_DWORD *)(a2 + 56);
*(_WORD *)&v8.__r_.__value_.__l.0 = 0;
updated = GameLevelManager::updateThread(v4, v5, 8, &v8);
if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v8.__r_.__value_.__l.__data_);
if ( updated )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 776;
*(_DWORD *)(a1 + 808) = *(_DWORD *)(a2 + 56);
*(_BYTE *)(a1 + 812) = 1;
v7 = *(_DWORD **)(a1 + 800);
if ( v7 )
cocos2d::CCObject::release(v7);
*(_QWORD *)(a1 + 800) = a2;
cocos2d::CCObject::retain(a2);
}
}
}