//
// GJGroundLayer::toggleVisible01 from 0x545b18 to 0x545b34 (28 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x596d56
// > GJBaseGameLayer::updateCameraBGArt @ 0x596d86
//
// 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::toggleVisible01(int this, int a2)
{
int v2; // r3
int (__fastcall *v3)(int, int); // r3
if ( *(unsigned __int8 *)(this + 348) != a2 )
{
v2 = *(_DWORD *)this;
*(_BYTE *)(this + 348) = a2;
v3 = *(int (__fastcall **)(int, int))(v2 + 172);
if ( a2 )
a2 = *(unsigned __int8 *)(this + 349);
return v3(this, a2);
}
return this;
}