//
// sub_1003FF9F4 from 0x1003ff9f4 to 0x1003ffa44 (80 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x100400718
//
// 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:04:38 +0000
//
__int64 __fastcall sub_1003FF9F4(__int64 result)
{
__int64 v1; // x8
unsigned int *v2; // x9
__int64 v3; // x8
__int64 *v4; // x19
unsigned __int64 v5; // x20
v1 = *(_QWORD *)(result + 3984);
if ( v1 )
{
v2 = *(unsigned int **)(v1 + 56);
v3 = *v2;
if ( (_DWORD)v3 )
{
v4 = *((__int64 **)v2 + 2);
v5 = (unsigned __int64)&v4[v3 - 1];
do
{
result = *v4;
if ( !*v4 )
break;
result = cocos2d::CCSpriteBatchNode::manualSortAllChildren(result);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
return result;
}