//
// GJSpiderSprite::create from 0x1403adc30 to 0x1403adcfd (205 bytes)
//
// 3 xrefs:
// > SimplePlayer::createSpiderSprite @ 0x14038258a
// > PlayerObject::createSpider @ 0x1404e660f
// > ??> @ 0x140923b1c
//
// 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
_QWORD *__fastcall GJSpiderSprite::create(unsigned int a1)
{
_QWORD *v2; // rdi
__int128 v4; // [rsp+20h] [rbp-28h] BYREF
__int64 v5; // [rsp+30h] [rbp-18h]
__int64 v6; // [rsp+38h] [rbp-10h]
v2 = operator new(0x328u);
GJRobotSprite::GJRobotSprite((__int64)v2);
*v2 = &GJSpiderSprite::`vftable';
v2[40] = &GJSpiderSprite::`vftable';
v2[43] = &GJSpiderSprite::`vftable';
*((_DWORD *)v2 + 196) = 6;
v4 = 0;
v5 = 6;
v6 = 15;
strcpy((char *)&v4, "Spider");
if ( GJRobotSprite::init(v2, a1, &v4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
return nullptr;
}
}