//
// GJGroundLayer::toggleVisible02 from 0x9165fc to 0x916634 (56 bytes)
//
// 5 xrefs:
// > PlayLayer::toggleGroundVisibility @ 0x6f2c3c
// > PlayLayer::toggleGroundVisibility @ 0x6f2c50
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7968
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7974
// > ??> @ 0xe9f38
//
// 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:57:19 +0000
//
__int64 *__fastcall GJGroundLayer::toggleVisible02(__int64 *this, unsigned __int8 a2)
{
__int64 v2; // x4
if ( *((unsigned __int8 *)this + 457) != a2 )
{
v2 = *this;
*((_BYTE *)this + 457) = a2;
return (__int64 *)(*(__int64 (__fastcall **)(__int64 *, _QWORD))(v2 + 344))(
this,
(unsigned __int8)(a2 & *(_BYTE *)(this + 57)));
}
return this;
}