//
// PlayerObject::resetPlayerIcon from 0x1404f95b0 to 0x1404f97a5 (501 bytes)
//
// 6 xrefs:
// > PlayerObject::toggleFlyMode @ 0x1404f8a9a
// > PlayerObject::toggleBirdMode @ 0x1404f8d90
// > PlayerObject::toggleSwingMode @ 0x1404f9013
// > PlayerObject::toggleDartMode @ 0x1404f9544
// > PlayerObject::toggleSpiderMode @ 0x1404fa105
// > ??> @ 0x14092a29c
//
// This function is hookable on this platform (idp: pc, 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:33:21 +0000
//
__int64 __fastcall PlayerObject::resetPlayerIcon(__int64 a1)
{
bool v2; // zf
__int64 v3; // rcx
__int64 v4; // rcx
__int16 *v5; // rdx
__int64 v6; // rcx
__m128i si128; // [rsp+20h] [rbp-28h] BYREF
PlayerObject::stopPlatformerJumpAnimation(a1);
v2 = *(_BYTE *)(a1 + 2610) == 0;
*(_DWORD *)(a1 + 764) = 1106247680;
*(_DWORD *)(a1 + 768) = 1106247680;
*(_DWORD *)(a1 + 2744) = 1106247680;
if ( v2 && !*(_BYTE *)(a1 + 2540) )
{
v2 = *(_BYTE *)(a1 + 2499) == 0;
*(_WORD *)(a1 + 1840) = 0;
*(_BYTE *)(a1 + 1648) = 0;
*(_DWORD *)(a1 + 1832) = 0;
if ( v2 )
PlayerObject::runNormalRotation(a1, 0, 1.0);
else
PlayerObject::runBallRotation(a1, 1.0);
}
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1856) + 160LL))(*(_QWORD *)(a1 + 1856));
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1856) + 184LL))(*(_QWORD *)(a1 + 1856), &unk_14090B428);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1888) + 336LL))(*(_QWORD *)(a1 + 1888), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1904) + 336LL))(*(_QWORD *)(a1 + 1904), 0);
PlayerObject::updatePlayerGlow(a1);
cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(a1 + 2248));
cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(a1 + 2256));
cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(a1 + 2264));
v3 = *(_QWORD *)(a1 + 2248);
si128 = _mm_load_si128((const __m128i *)&xmmword_1408369C0);
(*(void (__fastcall **)(__int64, __m128i *))(*(_QWORD *)v3 + 1352LL))(v3, &si128);
v4 = *(_QWORD *)(a1 + 2248);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836990);
(*(void (__fastcall **)(__int64, __m128i *))(*(_QWORD *)v4 + 1384LL))(v4, &si128);
v5 = &word_140704518;
if ( !*(_BYTE *)(a1 + 2352) )
v5 = (__int16 *)(a1 + 2709);
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 1960) + 320LL))(*(_QWORD *)(a1 + 1960) + 320LL, v5);
if ( !*(_BYTE *)(a1 + 2353) )
cocos2d::CCMotionStreak::stopStroke(*(cocos2d::CCMotionStreak **)(a1 + 1960));
if ( *(_BYTE *)(a1 + 2432) )
{
*(_BYTE *)(a1 + 2432) = 0;
PlayerObject::fadeOutStreak2(a1);
}
v6 = *(_QWORD *)(a1 + 1968);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, 0);
return PlayerObject::updatePlayerScale(a1);
}