//
// GameObject::createWithFrame from 0x45b17c to 0x45b1ba (62 bytes)
//
// 8 xrefs:
// > PlayLayer::addObject @ 0x40064e
// > PlayLayer::addObject @ 0x40083c
// > PlayLayer::loadPersistentCheckpoint @ 0x402b84
// > PlayLayer::createCheckpoint @ 0x411dfc
// > GameObject::createWithKey @ 0x45bc3c
// > LevelPage::addSecretCoin @ 0x512f24
// > EditorUI::alignObjectsOnAxis @ 0x70f13c
// > EditorUI::alignObjects @ 0x70f43a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:48 +0000
//
GameObject *__fastcall GameObject::createWithFrame(GameObject *this, const char *a2)
{
GameObject *v3; // r4
int v4; // r3
GameObject *v5; // r0
v3 = (GameObject *)operator new(0x490u);
GameObject::GameObject(v3);
if ( GameObject::init(v3, (const char *)this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(GameObject *))(v4 + 8))(v5);
}
return v3;
}