//
// sub_1002F9EF8 from 0x1002f9ef8 to 0x1002f9f5c (100 bytes)
//
// 4 xrefs:
// > PlayLayer::manualUpdateObjectColors @ 0x100146fb8
// > EditorUI::spriteFromObjectString @ 0x100184e48
// > GameObject::addMainSpriteToParent @ 0x1002f9f78
// > LevelEditorLayer::manualUpdateObjectColors @ 0x1004007e8
//
// 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_1002F9EF8(__int64 a1)
{
__int64 result; // x0
unsigned int *v3; // x1
unsigned int v4; // w8
result = sub_1002F385C(a1, *(unsigned int **)(a1 + 1096), 1);
*(_BYTE *)(a1 + 884) = result;
if ( *(_QWORD *)(a1 + 888) )
{
v3 = *(unsigned int **)(a1 + 1104);
v4 = v3[1];
if ( *v3 )
v4 = *v3;
if ( v4 != 1012 )
result = sub_1002F385C(a1, v3, 0);
}
else
{
result = 0;
}
*(_BYTE *)(a1 + 885) = result;
return result;
}