//
// SimplePlayer::createRobotSprite from 0x50b25c to 0x50b290 (52 bytes)
//
// 2 xrefs:
// > SimplePlayer::updatePlayerFrame @ 0x50c84a
// > GJGarageLayer::init @ 0x5104bc
//
// 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::createRobotSprite(int this, GJRobotSprite *a2)
{
int *v2; // r4
int v3; // r0
int v4; // r3
v2 = (int *)this;
if ( !*(_DWORD *)(this + 528) )
{
v3 = GJRobotSprite::create(a2, (int)a2);
v4 = *v2;
v2[132] = v3;
(*(void (__fastcall **)(int *, int))(v4 + 228))(v2, v3);
return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v2[132] + 172))(v2[132], 0);
}
return this;
}