//
// sub_100242E30 from 0x100242e30 to 0x100242f00 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009064c8
//
// 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:01:25 +0000
//
_OWORD *__fastcall sub_100242E30(_QWORD *a1, void **a2)
{
_OWORD *v3; // x19
void **v4; // x21
if ( a2 && (v3 = *a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = operator new(0x88u);
*v3 = 0u;
v3[1] = 0u;
v3[2] = 0u;
v3[3] = 0u;
v3[4] = 0u;
v3[5] = 0u;
v3[6] = 0u;
v3[7] = 0u;
*((_QWORD *)v3 + 16) = 0;
cocos2d::CCAction::CCAction();
*((_DWORD *)v3 + 20) = 0;
*((_QWORD *)v3 + 11) = 0;
*((_DWORD *)v3 + 24) = 0;
*((_QWORD *)v3 + 13) = 0;
*((_QWORD *)v3 + 14) = 0;
*(_QWORD *)v3 = &off_1009064C8;
*((_QWORD *)v3 + 15) = &off_100906578;
v4 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v4, v3);
a2 = v4;
}
cocos2d::CCCallFunc::copyWithZone((__int64)a1, a2);
(*(void (__fastcall **)(_OWORD *, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v3 + 152LL))(
v3,
a1[11],
a1[13],
a1[14],
a1[16]);
if ( v4 )
operator delete(v4);
return v3;
}