//
// SimplePlayer::createSpiderSprite from 0x50b290 to 0x50b2f6 (102 bytes)
//
// 2 xrefs:
// > SimplePlayer::updatePlayerFrame @ 0x50c86a
// > GJGarageLayer::init @ 0x5104c6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:27 +0000
//
int __fastcall SimplePlayer::createSpiderSprite(int this, GJSpiderSprite *a2)
{
int *v2; // r4
int v3; // r0
int v4; // r3
int v5; // r6
int (__fastcall *v6)(int, _BYTE *); // r7
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
v2 = (int *)this;
if ( !*(_DWORD *)(this + 532) )
{
v3 = GJSpiderSprite::create(a2, (int)a2);
v4 = *v2;
v2[133] = v3;
(*(void (__fastcall **)(int *, int))(v4 + 228))(v2, v3);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v2[133] + 172))(v2[133], 0);
v5 = v2[133];
v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, 0.0, -1.5);
return v6(v5, v7);
}
return this;
}