//
// PlayerObject::updatePlayerGlow from 0x1002c5cec to 0x1002c5e8c (416 bytes)
//
// 6 xrefs:
// > PlayerObject::doReversePlayer @ 0x1002b9dfc
// > PlayerObject::toggleFlyMode @ 0x1002c6510
// > PlayerObject::resetPlayerIcon @ 0x1002c69f0
// > PlayerObject::toggleBirdMode @ 0x1002c6c38
// > PlayerObject::toggleRobotMode @ 0x1002c804c
// > PlayerObject::toggleSpiderMode @ 0x1002c831c
//
// 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 11:02:33 +0000
//
__int64 __fastcall PlayerObject::updatePlayerGlow(__int64 a1)
{
char v2; // w21
__int64 v3; // x20
__int64 v4; // x20
__int64 v5; // x20
__int64 v6; // x0
char v7; // w22
int v8; // w21
__int64 v9; // x20
__int64 v10; // x1
__int64 v11; // x20
__int64 v12; // x0
__int64 v13; // x0
char v14; // w8
__int64 v15; // x0
v2 = *(_BYTE *)(a1 + 2041);
v3 = *(_QWORD *)(a1 + 1824);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1800) + 136LL))(*(_QWORD *)(a1 + 1800));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 128LL))(v3);
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 ( (v2 & 1) != 0 || *(_BYTE *)(a1 + 1786) == 1 )
{
if ( (*(_BYTE *)(a1 + 2421) & 1) != 0 )
v7 = 0;
else
v7 = *(_BYTE *)(a1 + 2422) ^ 1;
v8 = 1;
}
else
{
v8 = 0;
v7 = 0;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1824) + 344LL))(*(_QWORD *)(a1 + 1824), v7 & 1);
v9 = *(_QWORD *)(a1 + 1864);
if ( (v7 & 1) != 0 )
v10 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 352LL))(*(_QWORD *)(a1 + 1832));
else
v10 = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 344LL))(v9, v10);
v11 = *(_QWORD *)(a1 + 1864);
v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 192LL))(*(_QWORD *)(a1 + 1832));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 184LL))(v11, v12);
v13 = *(_QWORD *)(a1 + 2136);
if ( v8 )
{
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 352LL))(v13);
v15 = *(_QWORD *)(a1 + 2136);
if ( (v14 & 1) != 0 )
GJRobotSprite::showGlow(v15);
else
GJRobotSprite::hideGlow(v15);
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2144) + 352LL))(*(_QWORD *)(a1 + 2144)) )
return GJRobotSprite::showGlow(*(_QWORD *)(a1 + 2144));
}
else
{
GJRobotSprite::hideGlow(v13);
}
return GJRobotSprite::hideGlow(*(_QWORD *)(a1 + 2144));
}