//
// SimplePlayer::createRobotSprite from 0x8b9d18 to 0x8b9d80 (104 bytes)
//
// 3 xrefs:
// > SimplePlayer::updatePlayerFrame @ 0x8bc9e4
// > GJGarageLayer::init @ 0x8c200c
// > ??> @ 0xe29f0
//
// 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 12:56:26 +0000
//
__int64 *__fastcall SimplePlayer::createRobotSprite(__int64 *this, unsigned int a2)
{
__int64 *v2; // x19
__int64 v3; // x0
__int64 v4; // x2
if ( !*(this + 80) )
{
v2 = this;
v3 = GJRobotSprite::create((GJRobotSprite *)a2, a2);
v4 = *v2;
v2[80] = v3;
(*(void (__fastcall **)(__int64 *))(v4 + 456))(v2);
return (__int64 *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2[80] + 344LL))(v2[80], 0);
}
return this;
}