//
// sub_1009414E0 from 0x1009414e0 to 0x1009415f0 (272 bytes)
//
// 4 xrefs:
// > sub_100941600 @ 0x100941605
// > sub_100941610 @ 0x10094161c
// > sub_100941630 @ 0x100941639
// > sub_100941650 @ 0x100941663
//
// 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:31 +0000
//
__int64 __fastcall sub_1009414E0(_QWORD *a1)
{
_DWORD *v2; // rdi
_DWORD *v3; // rdi
*a1 = off_100BC4F68;
a1[40] = off_100BC5568;
a1[41] = &off_100BC55D8;
a1[42] = off_100BC55F0;
a1[43] = off_100BC5610;
a1[44] = off_100BC5638;
a1[51] = off_100BC5668;
a1[54] = off_100BC56E8;
a1[68] = off_100BC5708;
a1[97] = off_100BC5750;
a1[98] = off_100BC57D0;
a1[99] = &off_100BC5828;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1264) == a1 + 97 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = 0;
v2 = (_DWORD *)a1[100];
if ( !v2 )
goto LABEL_6;
goto LABEL_5;
}
v2 = (_DWORD *)a1[100];
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
LABEL_6:
v3 = (_DWORD *)a1[107];
if ( v3 )
cocos2d::CCObject::release(v3);
return sub_10095C250(a1);
}