//
// PlayerObject::updatePlayerGlow from 0x753f58 to 0x754160 (520 bytes)
//
// 10 xrefs:
// > PlayerObject::resetPlayerIcon @ 0x754220
// > PlayerObject::doReversePlayer @ 0x754664
// > PlayerObject::doReversePlayer @ 0x7546d0
// > PlayerObject::toggleRobotMode @ 0x759238
// > PlayerObject::toggleRobotMode @ 0x759400
// > PlayerObject::toggleSpiderMode @ 0x7596fc
// > PlayerObject::toggleSpiderMode @ 0x759898
// > PlayerObject::toggleFlyMode @ 0x759aac
// > PlayerObject::toggleBirdMode @ 0x759d68
// > ??> @ 0x8bfc0
//
// 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:52:56 +0000
//
__int64 __fastcall PlayerObject::updatePlayerGlow(PlayerObject *this)
{
__int64 v2; // x20
int v3; // w21
void (__fastcall *v4)(__int64); // x22
__int64 v5; // x20
void (__fastcall *v6)(__int64); // x22
__int64 v7; // x20
void (__fastcall *v8)(__int64, __int64); // x22
__int64 v9; // x0
int v10; // w22
__int64 v11; // x20
void (__fastcall *v12)(__int64, __int64); // x21
__int64 v13; // x0
__int64 v15; // x20
void (__fastcall *v16)(__int64, _QWORD); // x21
unsigned int v17; // w0
__int64 v18; // x20
void (__fastcall *v19)(__int64, __int64); // x21
__int64 v20; // x0
v2 = *((_QWORD *)this + 228);
v3 = *((unsigned __int8 *)this + 2041);
v4 = *(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 225) + 136LL))(*((_QWORD *)this + 225));
v4(v2);
v5 = *((_QWORD *)this + 228);
v6 = *(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 225) + 152LL))(*((_QWORD *)this + 225));
v6(v5);
v7 = *((_QWORD *)this + 228);
v8 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL);
v9 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 225) + 192LL))(*((_QWORD *)this + 225));
v8(v7, v9);
if ( v3 || (v10 = 0, *((_BYTE *)this + 1786)) )
{
if ( !*((_BYTE *)this + 2421) && !*((_BYTE *)this + 2422) )
{
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 228) + 344LL))(*((_QWORD *)this + 228), 1);
v15 = *((_QWORD *)this + 233);
v16 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 344LL);
v17 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 229) + 352LL))(*((_QWORD *)this + 229));
v16(v15, v17);
v18 = *((_QWORD *)this + 233);
v19 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 184LL);
v20 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 229) + 192LL))(*((_QWORD *)this + 229));
v19(v18, v20);
goto LABEL_9;
}
v10 = 1;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 228) + 344LL))(*((_QWORD *)this + 228), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 233) + 344LL))(*((_QWORD *)this + 233), 0);
v11 = *((_QWORD *)this + 233);
v12 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 184LL);
v13 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 229) + 192LL))(*((_QWORD *)this + 229));
v12(v11, v13);
if ( !v10 )
{
GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 267));
return GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 268));
}
LABEL_9:
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 267) + 352LL))(*((_QWORD *)this + 267)) )
GJRobotSprite::showGlow(*((GJRobotSprite **)this + 267));
else
GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 267));
if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 268) + 352LL))(*((_QWORD *)this + 268)) )
return GJRobotSprite::hideGlow(*((GJRobotSprite **)this + 268));
return GJRobotSprite::showGlow(*((GJRobotSprite **)this + 268));
}