//
// PlayerObject::updatePlayerGlow from 0x100402950 to 0x100402ad7 (391 bytes)
//
// 6 xrefs:
// > PlayerObject::doReversePlayer @ 0x1003ef71a
// > PlayerObject::toggleFlyMode @ 0x100403460
// > PlayerObject::resetPlayerIcon @ 0x100403aeb
// > PlayerObject::toggleBirdMode @ 0x100403ed5
// > PlayerObject::toggleRobotMode @ 0x100405b14
// > PlayerObject::toggleSpiderMode @ 0x100405f57
//
// 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 12:30:03 +0000
//
__int64 __fastcall PlayerObject::updatePlayerGlow(__int64 a1)
{
__int64 v2; // r14
char v3; // r15
__int64 v4; // r14
__int64 v5; // r14
__int64 v6; // rax
char v7; // r12
unsigned __int8 v8; // al
unsigned __int8 v9; // r15
__int64 v10; // r14
unsigned __int8 v11; // al
__int64 v12; // r14
__int64 v13; // rsi
__int64 v14; // rdx
__int64 v15; // rcx
__int64 v16; // rdi
char v17; // al
__int64 v18; // rdx
__int64 v19; // rcx
__int64 v20; // rdi
__int64 v21; // rdx
__int64 v22; // rcx
v2 = *(_QWORD *)(a1 + 1824);
v3 = *(_BYTE *)(a1 + 2041);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1800) + 136LL))(*(_QWORD *)(a1 + 1800));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL))(v2);
v4 = *(_QWORD *)(a1 + 1824);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1800) + 152LL))(*(_QWORD *)(a1 + 1800));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
v5 = *(_QWORD *)(a1 + 1824);
v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1800) + 192LL))(*(_QWORD *)(a1 + 1800));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL))(v5, v6);
if ( v3 || *(_BYTE *)(a1 + 1786) == 1 )
{
v7 = 1;
if ( !*(_BYTE *)(a1 + 2421) )
{
v8 = *(_BYTE *)(a1 + 2422) ^ 1;
goto LABEL_7;
}
}
else
{
v7 = 0;
}
v8 = 0;
LABEL_7:
v9 = v8;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1824) + 344LL))(*(_QWORD *)(a1 + 1824), v8);
v10 = *(_QWORD *)(a1 + 1864);
if ( v9 )
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 352LL))(*(_QWORD *)(a1 + 1832));
else
v11 = 0;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, v11);
v12 = *(_QWORD *)(a1 + 1864);
v13 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 192LL))(*(_QWORD *)(a1 + 1832));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 184LL))(v12, v13);
v16 = *(_QWORD *)(a1 + 2136);
if ( v7 )
{
v17 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 352LL))(v16);
v20 = *(_QWORD *)(a1 + 2136);
if ( v17 )
GJRobotSprite::showGlow(v20, v13, v18, v19);
else
GJRobotSprite::hideGlow(v20, v13, v18, v19);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2144) + 352LL))(*(_QWORD *)(a1 + 2144)) )
return GJRobotSprite::showGlow(*(_QWORD *)(a1 + 2144), v13, v21, v22);
}
else
{
GJRobotSprite::hideGlow(v16, v13, v14, v15);
}
return GJRobotSprite::hideGlow(*(_QWORD *)(a1 + 2144), v13, v21, v22);
}