//
// GJRobotSprite::create from 0x1006ad560 to 0x1006ad67c (284 bytes)
//
// 4 xrefs:
// > GJGarageLayer::init @ 0x10035319a
// > SimplePlayer::createRobotSprite @ 0x100354176
// > SimplePlayer::updatePlayerFrame @ 0x100354560
// > PlayerObject::createRobot @ 0x1003e92a7
//
// 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 12:35:23 +0000
//
char *__fastcall GJRobotSprite::create(unsigned int a1)
{
char *v1; // rbx
char v2; // r14
char v4[16]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
v1 = (char *)operator new(0x310u);
cocos2d::CCSprite::CCSprite((__int64)v1);
*(_OWORD *)(v1 + 664) = 0;
*(_OWORD *)(v1 + 648) = 0;
*(_OWORD *)(v1 + 632) = 0;
*(_OWORD *)(v1 + 616) = 0;
*(_OWORD *)(v1 + 600) = 0;
*((_DWORD *)v1 + 170) = 0;
*((_OWORD *)v1 + 43) = 0;
*((_OWORD *)v1 + 44) = 0;
*(_QWORD *)v1 = off_100B877A0;
*((_QWORD *)v1 + 40) = off_100B87CA0;
*((_QWORD *)v1 + 43) = off_100B87D20;
v1[728] = 0;
*(_DWORD *)(v1 + 729) = -1;
*(_WORD *)(v1 + 733) = -1;
*((_QWORD *)v1 + 97) = 0;
*((_OWORD *)v1 + 46) = 0;
*((_OWORD *)v1 + 47) = 0;
*((_DWORD *)v1 + 190) = 5;
strcpy(v4, "\nRobot");
v2 = GJRobotSprite::init(v1, a1, v4);
if ( (v4[0] & 1) != 0 )
operator delete(__p);
if ( v2 )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}