//
// sub_1005296C4 from 0x1005296c4 to 0x100529770 (172 bytes)
//
// 4 xrefs:
// > sub_100526DBC @ 0x100526e70
// > sub_100526EB0 @ 0x100526f68
// > sub_100529668 @ 0x100529698
// > sub_100529874 @ 0x10052988c
//
// 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_1005296C4(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x8
_QWORD *v3; // x9
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
v1 = result;
v2 = *(_QWORD *)(result + 128);
v3 = *(_QWORD **)(v2 + 448);
if ( v3 )
{
if ( *v3 )
{
sub_1005E3528(*v3);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v4 = v3[1];
if ( v4 )
{
sub_1005E3528(v4);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v5 = v3[2];
if ( v5 )
{
sub_1005E3528(v5);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v6 = v3[3];
if ( v6 )
{
sub_1005E3528(v6);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v7 = v3[4];
if ( v7 )
{
sub_1005E3528(v7);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v8 = v3[5];
if ( v8 )
{
sub_1005E3528(v8);
v2 = *(_QWORD *)(v1 + 128);
}
result = sub_100588C44(*(void **)(v2 + 448));
*(_QWORD *)(*(_QWORD *)(v1 + 128) + 448LL) = 0;
}
return result;
}