//
// sub_10037D660 from 0x10037d660 to 0x10037d721 (193 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b28068
//
// 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:29:07 +0000
//
void __fastcall sub_10037D660(_QWORD *__p, double a2)
{
__int64 v3; // rdi
*__p = off_100B28058;
__p[40] = off_100B284F8;
__p[41] = &off_100B28568;
__p[42] = off_100B28580;
__p[43] = off_100B285A0;
__p[44] = off_100B285C8;
__p[51] = off_100B285F8;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1224) != __p + 51 )
{
v3 = __p[58];
if ( !v3 )
goto LABEL_6;
goto LABEL_5;
}
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1224) = 0;
v3 = __p[58];
if ( v3 )
LABEL_5:
cocos2d::CCObject::release(v3);
LABEL_6:
sub_1004A9420(__p);
operator delete(__p);
}