//
// sub_1009754A0 from 0x1009754a0 to 0x100975578 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bd0bb0
//
// 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:55 +0000
//
__int64 __fastcall sub_1009754A0(_QWORD *a1)
{
_DWORD *v2; // rdi
*(a1 - 40) = off_100BD0650;
*a1 = off_100BD0BB0;
a1[1] = &off_100BD0C20;
a1[2] = off_100BD0C38;
a1[3] = off_100BD0C58;
a1[4] = off_100BD0C80;
a1[11] = off_100BD0CB0;
a1[14] = off_100BD0D30;
a1[28] = off_100BD0D50;
a1[43] = off_100BD0D98;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1472) != a1 + 43 )
{
v2 = (_DWORD *)a1[45];
if ( !v2 )
return sub_1004936F0((__int64)(a1 - 40));
goto LABEL_5;
}
*(_QWORD *)(GameLevelManager::sharedState() + 1472) = 0;
v2 = (_DWORD *)a1[45];
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
return sub_1004936F0((__int64)(a1 - 40));
}