//
// GJSpiderSprite::create from 0x1006aec30 to 0x1006aed50 (288 bytes)
//
// 4 xrefs:
// > GJGarageLayer::init @ 0x1003531e1
// > SimplePlayer::createSpiderSprite @ 0x1003541cb
// > SimplePlayer::updatePlayerFrame @ 0x10035474c
// > PlayerObject::createSpider @ 0x1003e9642
//
// 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 GJSpiderSprite::create(unsigned int a1)
{
char *v1; // rbx
char v2; // r14
char v4; // [rsp+8h] [rbp-28h] BYREF
char v5[15]; // [rsp+9h] [rbp-27h] 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;
v1[728] = 0;
*(_DWORD *)(v1 + 729) = -1;
*(_WORD *)(v1 + 733) = -1;
*((_QWORD *)v1 + 97) = 0;
*((_OWORD *)v1 + 46) = 0;
*((_OWORD *)v1 + 47) = 0;
*(_QWORD *)v1 = off_100B87D68;
*((_QWORD *)v1 + 40) = off_100B88268;
*((_QWORD *)v1 + 43) = off_100B882E8;
*((_DWORD *)v1 + 190) = 6;
v4 = 12;
strcpy(v5, "Spider");
v2 = GJRobotSprite::init((__int64)v1, a1, (__int64)&v4, 0.0);
if ( (v4 & 1) != 0 )
operator delete(__p);
if ( v2 )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}