//
// GameObject::createWithFrame from 0x1005a1fc0 to 0x1005a201a (90 bytes)
//
// 6 xrefs:
// > EditorUI::alignObjects @ 0x10004db73
// > PlayLayer::addObject @ 0x1000b21b4
// > PlayLayer::addObject @ 0x1000b2823
// > PlayLayer::createCheckpoint @ 0x1000bb6e8
// > LevelPage::addSecretCoin @ 0x10043404a
// > GameObject::createWithKey @ 0x10059d71b
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GameObject *__fastcall GameObject::createWithFrame(const char *a1)
{
GameObject *v1; // rbx
v1 = (GameObject *)operator new(0x548u);
GameObject::GameObject(v1);
if ( CCSpritePlus::initWithSpriteFrameName(v1, a1) )
{
GameObject::commonSetup(v1);
v1->m_bUnkBool2 = 1;
cocos2d::CCObject::autorelease(v1);
}
else
{
((void (__fastcall *)(GameObject *))v1->~GameObject_0)(v1);
return nullptr;
}
return v1;
}