//
// sub_1004284DC from 0x1004284dc to 0x100428564 (136 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x1002f1604
//
// 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:02 +0000
//
char *__fastcall sub_1004284DC(__int64 a1)
{
char *v2; // x19
v2 = (char *)operator new(0x5B0u);
EnhancedGameObject::EnhancedGameObject((__int64)v2);
*(_QWORD *)v2 = &off_100951BB0;
*((_QWORD *)v2 + 40) = off_100952308;
*((_QWORD *)v2 + 43) = off_100952388;
*(_WORD *)(v2 + 1447) = 0;
if ( (unsigned int)EnhancedGameObject::init((__int64)v2, a1) )
{
v2[313] = 0;
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}