//
// sub_1004D2ECC from 0x1004d2ecc to 0x1004d2fb8 (236 bytes)
//
// 1 xrefs:
// > sub_1004D235C @ 0x1004d23bc
//
// 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:29 +0000
//
char *__fastcall sub_1004D2ECC(__int64 a1, __int64 a2, __int64 a3)
{
char *v6; // x19
v6 = (char *)operator new(0x448u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v6);
*(_QWORD *)v6 = off_100989460;
*((_QWORD *)v6 + 40) = off_100989A60;
*((_QWORD *)v6 + 41) = &off_100989AD0;
*((_QWORD *)v6 + 42) = off_100989AE8;
*((_QWORD *)v6 + 43) = off_100989B08;
*((_QWORD *)v6 + 44) = off_100989B30;
*((_QWORD *)v6 + 51) = off_100989B60;
*((_QWORD *)v6 + 54) = off_100989BE0;
*((_QWORD *)v6 + 68) = off_100989C00;
*((_QWORD *)v6 + 83) = &off_100989C48;
*((_QWORD *)v6 + 84) = off_100989C60;
*((_QWORD *)v6 + 127) = off_100989C80;
*((_OWORD *)v6 + 64) = 0u;
*((_DWORD *)v6 + 260) = 0;
*(_OWORD *)(v6 + 1048) = 0u;
*(_OWORD *)(v6 + 1064) = 0u;
*(_OWORD *)(v6 + 1080) = 0u;
if ( (unsigned int)sub_1004D4894(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return v6;
}