//
// sub_10056C28C from 0x10056c28c to 0x10056c308 (124 bytes)
//
// 2 xrefs:
// > sub_100549DE8 @ 0x100549e1c
// > sub_100549DE8 @ 0x100549e48
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10056C28C(__int64 result)
{
__int64 v1; // x19
int v2; // w8
__int64 i; // x21
_QWORD *v4; // x20
_QWORD *v5; // x1
_QWORD *v6; // x22
v1 = result;
if ( result )
{
v2 = *(_DWORD *)(result + 32);
if ( v2 >= 1 )
{
for ( i = 0; i < v2; ++i )
{
v4 = *(_QWORD **)(*(_QWORD *)v1 + 8 * i);
v5 = (_QWORD *)*v4;
if ( *v4 )
{
do
{
v6 = (_QWORD *)v5[2];
result = sub_10056BBA0((__int64)v4, v5, v1);
--*(_QWORD *)(v1 + 40);
v5 = v6;
}
while ( v6 );
v2 = *(_DWORD *)(v1 + 32);
}
}
}
}
return result;
}