//
// GJRobotSprite::create from 0x5e6f38 to 0x5e6fc8 (144 bytes)
//
// 2 xrefs:
// > PlayerObject::createRobot @ 0x440586
// > SimplePlayer::createRobotSprite @ 0x50b268
//
// 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:54:20 +0000
//
int *__fastcall GJRobotSprite::create(GJRobotSprite *this, int a2)
{
int *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (int *)operator new(0x260u);
CCAnimatedSprite::CCAnimatedSprite((CCAnimatedSprite *)v3);
*v3 = (int)&off_CBD130;
v3[66] = (int)&off_CBD3B0;
v3[70] = (int)&off_CBD3F0;
*((_BYTE *)v3 + 572) = 0;
v3[145] = 0;
v3[146] = 0;
*(_WORD *)((char *)v3 + 573) = -1;
*((_WORD *)v3 + 288) = -1;
*((_BYTE *)v3 + 575) = -1;
*((_BYTE *)v3 + 578) = -1;
v3[147] = 0;
v3[148] = 0;
v3[149] = 0;
v3[151] = 0;
if ( GJRobotSprite::init((GJRobotSprite *)v3, (const char *)this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v4 = *v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}