//
// sub_10002FB40 from 0x10002fb40 to 0x10002fb74 (52 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a09b4
// > GJBaseGameLayer::updateCameraBGArt @ 0x1002a09ec
//
// 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_10002FB40(_BYTE *result, int a2)
{
char v2; // w8
if ( (unsigned __int8)result[456] != a2 )
{
result[456] = a2;
if ( a2 )
v2 = result[457];
else
v2 = 0;
return (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 344LL))(result, v2 & 1);
}
return result;
}