//
// sub_10042238C from 0x10042238c to 0x10042247c (240 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x1002f1b00
//
// 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:05:00 +0000
//
char *__fastcall sub_10042238C(__int64 a1)
{
char *v2; // x19
v2 = (char *)operator new(0x828u);
EffectGameObject::EffectGameObject();
*(_QWORD *)v2 = &off_1009554E8;
*((_QWORD *)v2 + 40) = off_100955C40;
*((_QWORD *)v2 + 43) = off_100955CC0;
*((_DWORD *)v2 + 520) = 0;
*((_OWORD *)v2 + 115) = 0u;
*((_OWORD *)v2 + 116) = 0u;
*(_OWORD *)(v2 + 1866) = 0u;
v2[1932] = 0;
*(_OWORD *)(v2 + 1884) = 0u;
*(_OWORD *)(v2 + 1900) = 0u;
*(_OWORD *)(v2 + 1916) = 0u;
*((_QWORD *)v2 + 242) = 0;
v2[1944] = 0;
*(_OWORD *)(v2 + 1948) = 0u;
*(_OWORD *)(v2 + 1964) = 0u;
*(_OWORD *)(v2 + 1980) = 0u;
*(_OWORD *)(v2 + 1991) = 0u;
*(_QWORD *)(v2 + 2069) = 0;
*(_OWORD *)(v2 + 2040) = 0u;
*(_OWORD *)(v2 + 2056) = 0u;
*(_OWORD *)(v2 + 2008) = 0u;
*(_OWORD *)(v2 + 2024) = 0u;
if ( (unsigned int)EnhancedGameObject::init((__int64)v2, a1) )
{
*((_DWORD *)v2 + 312) = 1;
v2[1450] = -1;
*((_WORD *)v2 + 724) = -1;
*((_DWORD *)v2 + 363) = 1056964608;
v2[1636] = 1;
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}