//
// sub_100506F40 from 0x100506f40 to 0x100507085 (325 bytes)
//
// 1 xrefs:
// > sub_10034A5A0 @ 0x10034a5b2
//
// 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
//
char *__fastcall sub_100506F40(__int64 a1, __int64 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x468u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v2);
*(_QWORD *)v2 = off_100B65BF8;
*((_QWORD *)v2 + 40) = off_100B66208;
*((_QWORD *)v2 + 41) = &off_100B66278;
*((_QWORD *)v2 + 42) = off_100B66290;
*((_QWORD *)v2 + 43) = off_100B662B0;
*((_QWORD *)v2 + 44) = off_100B662D8;
*((_QWORD *)v2 + 51) = off_100B66308;
*((_QWORD *)v2 + 54) = off_100B66388;
*((_QWORD *)v2 + 68) = off_100B663A8;
*((_QWORD *)v2 + 83) = &off_100B663F0;
*((_QWORD *)v2 + 84) = off_100B66408;
*((_QWORD *)v2 + 127) = &off_100B66428;
*((_QWORD *)v2 + 128) = off_100B66440;
*((_QWORD *)v2 + 129) = &off_100B66460;
*((_OWORD *)v2 + 65) = 0;
*(_OWORD *)(v2 + 1049) = 0;
sub_1002782A0(v2 + 1068);
*((_QWORD *)v2 + 140) = 0;
if ( (unsigned __int8)sub_1005070C0(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}