//
// sub_1004FBF18 from 0x1004fbf18 to 0x1004fc000 (232 bytes)
//
// 1 xrefs:
// > sub_1004FBE84 @ 0x1004fbecc
//
// 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:51 +0000
//
char *__fastcall sub_1004FBF18(__int64 a1, __int64 a2, __int64 a3)
{
char *v6; // x19
v6 = (char *)operator new(0x430u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v6);
*(_QWORD *)v6 = off_100995C50;
*((_QWORD *)v6 + 40) = off_100996248;
*((_QWORD *)v6 + 41) = &off_1009962B8;
*((_QWORD *)v6 + 42) = off_1009962D0;
*((_QWORD *)v6 + 43) = off_1009962F0;
*((_QWORD *)v6 + 44) = off_100996318;
*((_QWORD *)v6 + 51) = off_100996348;
*((_QWORD *)v6 + 54) = off_1009963C8;
*((_QWORD *)v6 + 68) = off_1009963E8;
*((_QWORD *)v6 + 83) = &off_100996430;
*((_QWORD *)v6 + 84) = off_100996448;
*((_QWORD *)v6 + 127) = &off_100996468;
*((_OWORD *)v6 + 64) = 0u;
*((_OWORD *)v6 + 65) = 0u;
*(_OWORD *)(v6 + 1049) = 0u;
if ( (unsigned int)sub_100501B28(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return v6;
}