//
// SimplePlayer::createSpiderSprite from 0x10039ffd0 to 0x1003a005c (140 bytes)
//
// 2 xrefs:
// > GJGarageLayer::init @ 0x10039effc
// > SimplePlayer::updatePlayerFrame @ 0x1003a0570
//
// This function is hookable on this platform (idp: arm, 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:03:46 +0000
//
__int64 __fastcall SimplePlayer::createSpiderSprite(__int64 result, __int64 a2)
{
__int64 v2; // x29
__int64 v3; // x30
_QWORD *v4; // x19
char *v5; // x0
__int64 v6; // x19
float v7; // [xsp+8h] [xbp-28h] BYREF
__int64 v8; // [xsp+20h] [xbp-10h]
__int64 v9; // [xsp+28h] [xbp-8h]
if ( !*(_QWORD *)(result + 648) )
{
v8 = v2;
v9 = v3;
v4 = (_QWORD *)result;
v5 = GJSpiderSprite::create(a2);
v4[81] = v5;
(*(void (__fastcall **)(_QWORD *, char *))(*v4 + 456LL))(v4, v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v4[81] + 344LL))(v4[81], 0);
v6 = v4[81];
sub_1000262BC(&v7, 0.0, -1.5);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v7);
}
return result;
}