//
// sub_100975580 from 0x100975580 to 0x10097566b (235 bytes)
//
// 2 xrefs:
// > sub_100975680 @ 0x10097568c
// > ??> @ 0x100bd0660
//
// 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
//
void __fastcall sub_100975580(_QWORD *__p)
{
_DWORD *v2; // rdi
*__p = off_100BD0650;
__p[40] = off_100BD0BB0;
__p[41] = &off_100BD0C20;
__p[42] = off_100BD0C38;
__p[43] = off_100BD0C58;
__p[44] = off_100BD0C80;
__p[51] = off_100BD0CB0;
__p[54] = off_100BD0D30;
__p[68] = off_100BD0D50;
__p[83] = off_100BD0D98;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1472) != __p + 83 )
{
v2 = (_DWORD *)__p[85];
if ( !v2 )
goto LABEL_6;
goto LABEL_5;
}
*(_QWORD *)(GameLevelManager::sharedState() + 1472) = 0;
v2 = (_DWORD *)__p[85];
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
LABEL_6:
sub_1004936F0((__int64)__p);
operator delete(__p);
}