//
// GJSpiderSprite::create from 0x8e3f08 to 0x8e4014 (268 bytes)
//
// 3 xrefs:
// > PlayerObject::createSpider @ 0x6225b8
// > SimplePlayer::createSpiderSprite @ 0x791a58
// > ??> @ 0xa0170
//
// 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
//
GJSpiderSprite *GJSpiderSprite::create(int a1)
{
__int64 v2; // x19
v2 = operator new(0x2E0u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);
*(_BYTE *)(v2 + 681) = -1;
*(_QWORD *)(v2 + 600) = &byte_124B6C8;
*(_QWORD *)(v2 + 608) = &byte_124B6C8;
*(_QWORD *)(v2 + 656) = &byte_124B6C8;
*(_BYTE *)(v2 + 682) = -1;
*(_BYTE *)(v2 + 683) = -1;
*(_BYTE *)(v2 + 684) = -1;
*(_BYTE *)(v2 + 685) = -1;
*(_BYTE *)(v2 + 686) = -1;
*(_QWORD *)(v2 + 616) = 0;
*(_QWORD *)(v2 + 624) = 0;
*(_QWORD *)(v2 + 632) = 0;
*(_QWORD *)(v2 + 640) = 0;
*(_DWORD *)(v2 + 648) = 0;
*(_QWORD *)(v2 + 664) = 0;
*(_BYTE *)(v2 + 680) = 0;
*(_QWORD *)(v2 + 688) = 0;
*(_QWORD *)(v2 + 696) = 0;
*(_QWORD *)(v2 + 704) = 0;
*(_DWORD *)(v2 + 712) = 0;
*(_DWORD *)(v2 + 716) = 0;
*(_QWORD *)(v2 + 728) = 0;
*(_QWORD *)v2 = &off_11A1140;
*(_QWORD *)(v2 + 320) = &off_11A1630;
*(_QWORD *)(v2 + 344) = &off_11A16B0;
if ( GJSpiderSprite::init((GJSpiderSprite *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GJSpiderSprite *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}