//
// sub_1800A1980 from 0x1800a1980 to 0x1800a19a8 (40 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000464c
//
// This function is hookable on this platform (idp: pc, 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:22:13 +0000
//
void __fastcall sub_1800A1980(int *a1)
{
__int64 v1; // r10
int v2; // r9d
__int64 i; // rax
__int64 v4; // r8
v1 = *a1;
v2 = 0;
if ( v1 > 0 )
{
for ( i = 0; i < v1; ++i )
{
v4 = *(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * i);
*(_DWORD *)(v4 + 36) = v2++;
}
}
}