//
// sub_1008EE8C0 from 0x1008ee8c0 to 0x1008ee9ab (235 bytes)
//
// 1 xrefs:
// > sub_1008DF9B0 @ 0x1008df9ba
//
// 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:37:55 +0000
//
_QWORD *__fastcall sub_1008EE8C0(unsigned int a1)
{
_QWORD *v1; // rbx
v1 = operator new(0x3F8u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*v1 = off_100BB4358;
v1[40] = off_100BB4948;
v1[41] = &off_100BB49B8;
v1[42] = off_100BB49D0;
v1[43] = off_100BB49F0;
v1[44] = off_100BB4A18;
v1[51] = off_100BB4A48;
v1[54] = off_100BB4AC8;
v1[68] = off_100BB4AE8;
v1[83] = &off_100BB4B30;
v1[84] = off_100BB4B48;
*((_DWORD *)v1 + 253) = 0;
if ( (unsigned __int8)sub_1008EE9C0(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v1 + 16LL))(v1);
return nullptr;
}
return v1;
}