//
// GJRobotSprite::create from 0x1402a6690 to 0x1402a673e (174 bytes)
//
// 5 xrefs:
// > GJGarageLayer::init @ 0x140273a0a
// > SimplePlayer::updatePlayerFrame @ 0x14027a342
// > PlayerObject::createRobot @ 0x14038803c
// > ??> @ 0x1406d2108
// > ??> @ 0x1406d2114
//
// 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
//
// Hidden C++ exception states: #wind=1
GJRobotSprite *GJRobotSprite::create(int a1)
{
__int64 v2; // rax
GJRobotSprite *v3; // rbx
__int128 v5; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+30h] [rbp-18h]
__int64 v7; // [rsp+38h] [rbp-10h]
void *v8; // [rsp+58h] [rbp+10h]
v8 = operator new(0x328u);
v2 = sub_1402A64B0((__int64)v8);
v3 = (GJRobotSprite *)v2;
if ( v2 )
{
*(_DWORD *)(v2 + 784) = 5;
v5 = 0;
v6 = 5;
v7 = 15;
LODWORD(v5) = *(_DWORD *)"Robot";
WORD2(v5) = (unsigned __int8)aRobot_0[4];
if ( (unsigned __int8)GJRobotSprite::init(v2, (unsigned int)a1, &v5) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
((void (__fastcall *)(GJRobotSprite *, __int64))v3->~GJRobotSprite)(v3, 1);
return nullptr;
}
return v3;
}