//
// PlayerObject::resetPlayerIcon from 0x4391c4 to 0x4392e8 (292 bytes)
//
// 5 xrefs:
// > PlayerObject::toggleSpiderMode @ 0x43e8f4
// > PlayerObject::toggleFlyMode @ 0x43eb14
// > PlayerObject::toggleBirdMode @ 0x43ed08
// > PlayerObject::toggleSwingMode @ 0x43ee92
// > PlayerObject::toggleDartMode @ 0x43f032
//
// 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:48:20 +0000
//
int __fastcall PlayerObject::resetPlayerIcon(PlayerObject *this)
{
int v2; // r8
void (__fastcall *v3)(int, _DWORD *); // r9
int v4; // r8
void (__fastcall *v5)(int, _DWORD *); // r9
int v6; // r0
_DWORD v8[4]; // [sp+4h] [bp-18h] BYREF
PlayerObject::stopPlatformerJumpAnimation((int)this);
*((_DWORD *)this + 162) = 1106247680;
*((_DWORD *)this + 163) = 1106247680;
*((_DWORD *)this + 536) = 1106247680;
PlayerObject::runRotateAction(this, 0, 5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 373) + 80))(*((_DWORD *)this + 373), 1065353216);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 373) + 92))(*((_DWORD *)this + 373), &unk_D2B834);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 377) + 172))(*((_DWORD *)this + 377), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 379) + 172))(*((_DWORD *)this + 379), 0);
PlayerObject::updatePlayerGlow(this);
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 437));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 438));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 439));
v2 = *((_DWORD *)this + 437);
v3 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v2 + 680);
memset(v8, 0, sizeof(v8));
v8[3] = 1065353216;
v8[0] = 1065353216;
v8[1] = 1053345993;
v3(v2, v8);
v4 = *((_DWORD *)this + 437);
v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 696);
memset(v8, 0, sizeof(v8));
v8[3] = 1065353216;
v8[0] = 1065353216;
v5(v4, v8);
(*(void (**)(void))(**((_DWORD **)this + 386) + 480))();
PlayerObject::deactivateStreak((int)this, 0);
v6 = *((_DWORD *)this + 387);
if ( v6 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 172))(v6, 0);
return PlayerObject::updatePlayerScale((GJActionManager **)this);
}