//
// GameObject::createWithFrame from 0x1002f1c84 to 0x1002f1cf4 (112 bytes)
//
// 8 xrefs:
// > PlayLayer::addObject @ 0x100141b88
// > PlayLayer::addObject @ 0x100141dfc
// > PlayLayer::createCheckpoint @ 0x100148f7c
// > PlayLayer::loadPersistentCheckpoint @ 0x10014ae0c
// > EditorUI::alignObjectsOnAxis @ 0x10015f120
// > EditorUI::alignObjects @ 0x10015f57c
// > GameObject::createWithKey @ 0x1002f1a10
// > LevelPage::addSecretCoin @ 0x100483d34
//
// 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:02:56 +0000
//
_BYTE *__fastcall GameObject::createWithFrame(__int64 a1)
{
_BYTE *v2; // x19
v2 = operator new(0x548u);
GameObject::GameObject((__int64)v2);
if ( (unsigned int)CCSpritePlus::initWithSpriteFrameName((__int64)v2, a1) )
{
GameObject::commonSetup(v2);
v2[313] = 1;
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}