//
// GJGroundLayer::toggleVisible01 from 0x9165bc to 0x9165fc (64 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x9a99d4
// > GJBaseGameLayer::updateCameraBGArt @ 0x9a9a08
// > ??> @ 0x47ba8
//
// 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::toggleVisible01(__int64 *this, unsigned __int8 a2)
{
int v2; // w2
__int64 v3; // x3
__int64 v4; // x1
__int64 (__fastcall *v5)(__int64, __int64); // x3
v2 = a2;
if ( *((unsigned __int8 *)this + 456) != a2 )
{
v3 = *this;
v4 = 0;
*((_BYTE *)this + 456) = v2;
v5 = *(__int64 (__fastcall **)(__int64, __int64))(v3 + 344);
if ( v2 )
v4 = *((unsigned __int8 *)this + 457);
return (__int64 *)v5((__int64)this, v4);
}
return this;
}