//
// GJRobotSprite::create from 0x4b8818 to 0x4b8856 (62 bytes)
//
// 2 xrefs:
// > PlayerObject::createRobot @ 0x33cc9a
// > SimplePlayer::createRobotSprite @ 0x402d30
//
// 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
//
GJRobotSprite *GJRobotSprite::create(int a1)
{
GJRobotSprite *v2; // r4
GJRobotSprite_vtbl *v3; // r3
GJRobotSprite *v4; // r0
v2 = (GJRobotSprite *)operator new(0x248u);
GJRobotSprite::GJRobotSprite(v2);
if ( GJRobotSprite::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~GJRobotSprite_0(v4);
}
return v2;
}