//
// GJMGLayer::toggleVisible02 from 0x546704 to 0x546724 (32 bytes)
//
// 1 xrefs:
// > PlayLayer::toggleMGVisibility @ 0x3ff582
//
// 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 GJMGLayer::toggleVisible02(int this, int a2)
{
int v2; // r2
if ( *(unsigned __int8 *)(this + 341) != a2 )
{
v2 = *(_DWORD *)this;
*(_BYTE *)(this + 341) = a2;
return (*(int (**)(void))(v2 + 172))();
}
return this;
}