//
// sub_10002FB74 from 0x10002fb74 to 0x10002fb9c (40 bytes)
//
// 4 xrefs:
// > PlayLayer::toggleGroundVisibility @ 0x1001478f4
// > PlayLayer::toggleGroundVisibility @ 0x100147908
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f43c
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f448
//
// 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 10:57:30 +0000
//
_BYTE *__fastcall sub_10002FB74(_BYTE *result, int a2)
{
if ( (unsigned __int8)result[457] != a2 )
{
result[457] = a2;
return (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 344LL))(
result,
(unsigned __int8)(result[456] & a2));
}
return result;
}