//
// GJBaseGameLayer::togglePlayerVisibility from 0x9a82ec to 0x9a8314 (40 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::togglePlayerVisibility @ 0x9a8330
// > GJBaseGameLayer::togglePlayerVisibility @ 0x9a8348
// > GJBaseGameLayer::processOptionsTrigger @ 0x9a8514
// > GJBaseGameLayer::processOptionsTrigger @ 0x9a852c
// > ??> @ 0x7ced0
//
// 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:58:11 +0000
//
__int64 __fastcall GJBaseGameLayer::togglePlayerVisibility(__int64 this, unsigned __int8 a2, char a3)
{
__int64 v3; // x0
if ( a3 )
{
v3 = *(_QWORD *)(this + 3256);
}
else
{
if ( !*(_BYTE *)(this + 1010) )
return this;
v3 = *(_QWORD *)(this + 3264);
}
return PlayerObject::toggleVisibility(v3, a2);
}