//
// sub_1004CBC6C from 0x1004cbc6c to 0x1004cbd24 (184 bytes)
//
// 1 xrefs:
// > sub_1004C63B8 @ 0x1004c63c4
//
// This function is hookable on this platform (idp: arm, 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 11:06:25 +0000
//
_QWORD *__fastcall sub_1004CBC6C(__int64 a1)
{
_QWORD *v2; // x19
double v3; // d0
v2 = operator new(0x3F8u);
v3 = SetupTriggerPopup::SetupTriggerPopup((__int64)v2);
*v2 = &off_100987360;
v2[40] = off_100987950;
v2[41] = &off_1009879C0;
v2[42] = off_1009879D8;
v2[43] = off_1009879F8;
v2[44] = off_100987A20;
v2[51] = off_100987A50;
v2[54] = off_100987AD0;
v2[68] = off_100987AF0;
v2[83] = &off_100987B38;
v2[84] = off_100987B50;
*((_DWORD *)v2 + 253) = 0;
if ( (unsigned int)sub_1004CBD38(v2, a1, v3) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}