//
// sub_10047CAC8 from 0x10047cac8 to 0x10047cb4c (132 bytes)
//
// 1 xrefs:
// > sub_100058468 @ 0x1000584a4
//
// 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:05:44 +0000
//
__int64 __fastcall sub_10047CAC8(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v6; // x8
unsigned int *v7; // x9
__int64 v8; // x8
__int64 *v9; // x21
unsigned __int64 v10; // x22
v4 = *(_QWORD *)(a1 + 1496);
if ( v4 )
{
GameObject::updateObjectEditorColor(v4);
}
else if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) )
{
v6 = *(_QWORD *)(a1 + 896);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((__int64 **)v7 + 2);
v10 = (unsigned __int64)&v9[v8 - 1];
do
{
if ( !*v9 )
break;
GameObject::updateObjectEditorColor(*v9++);
}
while ( (unsigned __int64)v9 <= v10 );
}
}
}
return sub_10047CB4C(a1, a2);
}