//
// PlayerObject::updatePlayerGlow from 0x4390c0 to 0x4391c4 (260 bytes)
//
// 6 xrefs:
// > PlayerObject::resetPlayerIcon @ 0x439234
// > PlayerObject::doReversePlayer @ 0x439508
// > PlayerObject::toggleRobotMode @ 0x43e66c
// > PlayerObject::toggleSpiderMode @ 0x43e8fa
// > PlayerObject::toggleFlyMode @ 0x43ea9e
// > PlayerObject::toggleBirdMode @ 0x43ec46
//
// 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::updatePlayerGlow(PlayerObject *this)
{
int v2; // r5
int v3; // r6
void (__fastcall *v4)(int, int); // r7
int v5; // r0
int v6; // r5
void (__fastcall *v7)(int, int); // r7
int v8; // r0
int v9; // r5
void (__fastcall *v10)(int, int); // r7
int v11; // r0
int v12; // r5
int v13; // r6
int v14; // r7
void (__fastcall *v15)(int, int); // r8
int v16; // r1
int v17; // r6
void (__fastcall *v18)(int, int); // r7
int v19; // r0
v2 = *((_DWORD *)this + 376);
v3 = *((unsigned __int8 *)this + 1673);
v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 64);
v5 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 373) + 68))(*((_DWORD *)this + 373));
v4(v2, v5);
v6 = *((_DWORD *)this + 376);
v7 = *(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 72);
v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 373) + 76))(*((_DWORD *)this + 373));
v7(v6, v8);
v9 = *((_DWORD *)this + 376);
v10 = *(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 92);
v11 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 373) + 96))(*((_DWORD *)this + 373));
v10(v9, v11);
if ( !v3 )
{
v12 = *((unsigned __int8 *)this + 1482);
if ( !*((_BYTE *)this + 1482) )
goto LABEL_5;
}
if ( *((_BYTE *)this + 1957) )
{
v12 = 1;
LABEL_5:
v13 = 0;
goto LABEL_8;
}
v12 = 1;
if ( *((_BYTE *)this + 1958) )
goto LABEL_5;
v13 = 1;
LABEL_8:
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 376) + 172))(*((_DWORD *)this + 376), v13);
v14 = *((_DWORD *)this + 381);
v15 = *(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 172);
if ( v13 )
v16 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 377) + 176))(*((_DWORD *)this + 377));
else
v16 = 0;
v15(v14, v16);
v17 = *((_DWORD *)this + 381);
v18 = *(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 92);
v19 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 377) + 96))(*((_DWORD *)this + 377));
v18(v17, v19);
if ( v12 && (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 433) + 176))(*((_DWORD *)this + 433)) )
{
GJRobotSprite::showGlow(*((GJRobotSprite **)this + 433));
}
else
{
GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 433));
if ( !v12 )
return GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 434));
}
if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 434) + 176))(*((_DWORD *)this + 434)) )
return GJRobotSprite::showGlow(*((GJRobotSprite **)this + 434));
return GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 434));
}