//
// sub_1004B9240 from 0x1004b9240 to 0x1004b9314 (212 bytes)
//
// 1 xrefs:
// > sub_1004BB75C @ 0x1004bb76c
//
// 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:16 +0000
//
_QWORD *__fastcall sub_1004B9240(__int64 a1, __int64 a2)
{
_QWORD *v4; // x19
v4 = operator new(0x410u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*v4 = &off_1009838F8;
v4[40] = off_100983EF0;
v4[41] = &off_100983F60;
v4[42] = off_100983F78;
v4[43] = off_100983F98;
v4[44] = off_100983FC0;
v4[51] = off_100983FF0;
v4[54] = off_100984070;
v4[68] = off_100984090;
v4[83] = &off_1009840D8;
v4[84] = off_1009840F0;
v4[127] = &off_100984110;
*((_OWORD *)v4 + 64) = 0u;
if ( (unsigned int)sub_1004B9328(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);
return nullptr;
}
return v4;
}