//
// GJRobotSprite::create from 0x1403ac740 to 0x1403ac7ee (174 bytes)
//
// 4 xrefs:
// > GJGarageLayer::init @ 0x14037c198
// > SimplePlayer::updatePlayerFrame @ 0x140382d35
// > PlayerObject::createRobot @ 0x1404e621f
// > ??> @ 0x140923ad4
//
// 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:31:21 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall GJRobotSprite::create(unsigned int a1)
{
__int64 v2; // rax
cocos2d::CCObject *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 = GJRobotSprite::GJRobotSprite((__int64)v8);
v3 = (cocos2d::CCObject *)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, a1, &v5) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
return nullptr;
}
return v3;
}