//
// sub_1009491E0 from 0x1009491e0 to 0x1009492e2 (258 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bc6740
//
// 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:34 +0000
//
__int64 __fastcall sub_1009491E0(_QWORD *a1)
{
_DWORD *v2; // rdi
*(a1 - 40) = off_100BC6108;
*a1 = off_100BC6740;
a1[1] = &off_100BC67B0;
a1[2] = off_100BC67C8;
a1[3] = off_100BC67E8;
a1[4] = off_100BC6810;
a1[11] = off_100BC6840;
a1[14] = off_100BC68C0;
a1[28] = off_100BC68E0;
a1[43] = &off_100BC6928;
a1[44] = off_100BC6940;
a1[87] = off_100BC6960;
a1[88] = &off_100BC69E0;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1264) != a1 + 87 )
{
v2 = (_DWORD *)a1[89];
if ( !v2 )
return SetupTriggerPopup::dSetupTriggerPopup((__int64)(a1 - 40));
goto LABEL_5;
}
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = 0;
v2 = (_DWORD *)a1[89];
if ( v2 )
LABEL_5:
cocos2d::CCObject::release(v2);
return SetupTriggerPopup::dSetupTriggerPopup((__int64)(a1 - 40));
}