//
// GameObject::createWithFrame from 0x1006736c0 to 0x10067371a (90 bytes)
//
// 8 xrefs:
// > PlayLayer::addObject @ 0x10007f732
// > PlayLayer::addObject @ 0x10007fda1
// > PlayLayer::createCheckpoint @ 0x100089348
// > PlayLayer::loadPersistentCheckpoint @ 0x10008be58
// > LevelPage::addSecretCoin @ 0x1004219aa
// > EditorUI::alignObjectsOnAxis @ 0x100610e35
// > EditorUI::alignObjects @ 0x1006113d1
// > GameObject::createWithKey @ 0x10066edc2
//
// This function is hookable on this platform (idp: pc, 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 12:35:02 +0000
//
_BYTE *__fastcall GameObject::createWithFrame(__int64 a1, double a2)
{
_BYTE *v2; // rbx
v2 = operator new(0x548u);
GameObject::GameObject((__int64)v2);
if ( (unsigned __int8)CCSpritePlus::initWithSpriteFrameName((__int64)v2, a1, a2) )
{
GameObject::commonSetup(v2);
v2[313] = 1;
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}