//
// sub_100506D80 from 0x100506d80 to 0x100506eac (300 bytes)
//
// 4 xrefs:
// > sub_100506EC0 @ 0x100506ec5
// > sub_100506ED0 @ 0x100506edc
// > sub_100506EF0 @ 0x100506ef9
// > sub_100506F10 @ 0x100506f23
//
// 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:32 +0000
//
__int64 __fastcall sub_100506D80(_QWORD *a1, double a2)
{
_DWORD *v3; // rdi
_DWORD *v4; // rdi
*a1 = off_100B65BF8;
a1[40] = off_100B66208;
a1[41] = &off_100B66278;
a1[42] = off_100B66290;
a1[43] = off_100B662B0;
a1[44] = off_100B662D8;
a1[51] = off_100B66308;
a1[54] = off_100B66388;
a1[68] = off_100B663A8;
a1[83] = &off_100B663F0;
a1[84] = off_100B66408;
a1[127] = &off_100B66428;
a1[128] = off_100B66440;
a1[129] = &off_100B66460;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1360) == a1 + 128 )
{
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1360) = 0;
v3 = (_DWORD *)a1[130];
if ( !v3 )
goto LABEL_6;
goto LABEL_5;
}
v3 = (_DWORD *)a1[130];
if ( v3 )
LABEL_5:
cocos2d::CCObject::release(v3);
LABEL_6:
v4 = (_DWORD *)a1[131];
if ( v4 )
cocos2d::CCObject::release(v4);
return SetupTriggerPopup::dSetupTriggerPopup((__int64)a1);
}