//
// sub_10037D5A0 from 0x10037d5a0 to 0x10037d64e (174 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b284f8
//
// 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
//
__int64 __fastcall sub_10037D5A0(_QWORD *a1, double a2)
{
__int64 v3; // rdi
*(a1 - 40) = off_100B28058;
*a1 = off_100B284F8;
a1[1] = &off_100B28568;
a1[2] = off_100B28580;
a1[3] = off_100B285A0;
a1[4] = off_100B285C8;
a1[11] = off_100B285F8;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1224) != a1 + 11 )
{
v3 = a1[18];
if ( !v3 )
return sub_1004A9420(a1 - 40);
goto LABEL_5;
}
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1224) = 0;
v3 = a1[18];
if ( v3 )
LABEL_5:
cocos2d::CCObject::release(v3);
return sub_1004A9420(a1 - 40);
}