//
// sub_1002FA6C4 from 0x1002fa6c4 to 0x1002fa6e4 (32 bytes)
//
// 25 xrefs:
// > SetGroupIDLayer::updateGroupIDButtons @ 0x1000418f0
// > SetGroupIDLayer::updateGroupIDButtons @ 0x1000419c0
// > sub_100287404 @ 0x1002874c8
// > GJBaseGameLayer::addToGroups @ 0x10028df04
// > GJBaseGameLayer::removeFromGroups @ 0x10028e0ac
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x100296a44
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x100296a68
// > GJBaseGameLayer::opacityForObject @ 0x10029a568
// > LevelEditorLayer::addSpecial @ 0x1003f9d00
// > LevelEditorLayer::updateVisibility @ 0x100400310
// > LevelEditorLayer::updateVisibility @ 0x100400464
// > LevelEditorLayer::updateVisibility @ 0x10040057c
// > LevelEditorLayer::updateVisibility @ 0x100400694
// > LevelEditorLayer::updateObjectColors @ 0x100400930
// > LevelEditorLayer::updateObjectColors @ 0x100400a44
// > LevelEditorLayer::updateObjectColors @ 0x100400b28
// > LevelEditorLayer::updateObjectColors @ 0x100400c3c
// > sub_100400CC4 @ 0x100400d80
// > sub_100403764 @ 0x100403858
// > sub_100405BC8 @ 0x100405c14
// > sub_1004072F8 @ 0x1004073a4
// > sub_100407958 @ 0x1004079c8
// > EditorUI::updateObjectInfoLabel @ 0x100475970
// > EditorUI::dynamicGroupUpdate @ 0x10047a254
// > sub_10047A668 @ 0x10047a6a8
//
// 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 11:03:01 +0000
//
__int64 __fastcall sub_1002FA6C4(__int64 a1, unsigned int a2)
{
__int64 v2; // x8
if ( a2 <= 9 && (v2 = *(_QWORD *)(a1 + 1160)) != 0 )
return (unsigned int)*(__int16 *)(v2 + 2LL * a2);
else
return 0;
}