//
// GameObject::createWithFrame from 0x14028ada0 to 0x14028ae24 (132 bytes)
//
// 4 xrefs:
// > GameObject::createWithKey @ 0x1402893dc
// > PlayLayer::addObject @ 0x14050ccf7
// > PlayLayer::addObject @ 0x14050d10f
// > ??> @ 0x14091d240
//
// 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 11:29:04 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall GameObject::createWithFrame(const char *a1)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // rbx
void *v5; // [rsp+38h] [rbp+10h]
v5 = operator new(0x550u);
v2 = (cocos2d::CCObject *)GameObject::GameObject((__int64)v5);
v3 = v2;
if ( v2 )
{
*((_DWORD *)v2 + 7) = 13;
if ( cocos2d::CCSprite::initWithSpriteFrameName(v2, a1) )
{
GameObject::commonSetup(v3);
*((_BYTE *)v3 + 313) = 1;
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
return nullptr;
}
return v3;
}