//
// sub_100508C30 from 0x100508c30 to 0x100508d54 (292 bytes)
//
// 4 xrefs:
// > sub_100508D60 @ 0x100508d65
// > sub_100508D70 @ 0x100508d7c
// > sub_100508D90 @ 0x100508d99
// > sub_100508DB0 @ 0x100508dc3
//
// 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:31:33 +0000
//
__int64 __fastcall sub_100508C30(_QWORD *a1, double a2)
{
__int64 v3; // rax
_DWORD *v4; // rdi
*a1 = off_100B66478;
a1[40] = off_100B66A88;
a1[41] = &off_100B66AF8;
a1[42] = off_100B66B10;
a1[43] = off_100B66B30;
a1[44] = off_100B66B58;
a1[51] = off_100B66B88;
a1[54] = off_100B66C08;
a1[68] = off_100B66C28;
a1[83] = &off_100B66C70;
a1[84] = off_100B66C88;
a1[127] = &off_100B66CA8;
a1[128] = off_100B66CC0;
a1[129] = &off_100B66CE0;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1360) == a1 + 128 )
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1360) = 0;
v3 = a1[131];
if ( v3 )
*(_QWORD *)(v3 + 664) = 0;
v4 = (_DWORD *)a1[130];
if ( v4 )
cocos2d::CCObject::release(v4);
return SetupTriggerPopup::dSetupTriggerPopup((__int64)a1);
}