//
// GJGroundLayer::toggleVisible02 from 0x545b34 to 0x545b54 (32 bytes)
//
// 4 xrefs:
// > PlayLayer::toggleGroundVisibility @ 0x3ff56a
// > PlayLayer::toggleGroundVisibility @ 0x3ff578
// > GJBaseGameLayer::resetLevelVariables @ 0x5b995c
// > GJBaseGameLayer::resetLevelVariables @ 0x5b9968
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:23 +0000
//
int __fastcall GJGroundLayer::toggleVisible02(int this, int a2)
{
int v2; // r2
if ( *(unsigned __int8 *)(this + 349) != a2 )
{
v2 = *(_DWORD *)this;
*(_BYTE *)(this + 349) = a2;
return (*(int (**)(void))(v2 + 172))();
}
return this;
}