//
// sub_1002F689C from 0x1002f689c to 0x1002f68bc (32 bytes)
//
// 6 xrefs:
// > PlayLayer::addObject @ 0x100141bc0
// > GameObject::setupCustomSprites @ 0x10034ec3c
// > GameObject::setupCustomSprites @ 0x10034f804
// > sub_100405A90 @ 0x100405b48
// > EffectGameObject::customSetup @ 0x10041c228
// > EffectGameObject::customSetup @ 0x10041c270
//
// 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:00 +0000
//
__int64 __fastcall sub_1002F689C(__int64 result, int a2)
{
_DWORD *v2; // x8
int v3; // w9
v2 = *(_DWORD **)(result + 1096);
if ( v2 )
{
v3 = a2 & ~(a2 >> 31);
if ( v3 >= 1101 )
v3 = 1101;
*v2 = 0;
v2[1] = v3;
}
return result;
}