//
// sub_100526DBC from 0x100526dbc to 0x100526eb0 (244 bytes)
//
// 5 xrefs:
// > sub_10052FDC8 @ 0x10052fdf0
// > sub_100539664 @ 0x100539674
// > ??> @ 0x10082a670
// > ??> @ 0x10082a758
// > ??> @ 0x10082a840
//
// 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_100526DBC(__int64 result)
{
__int64 v1; // x19
_QWORD *v2; // x8
void *v3; // x0
__int64 v4; // x0
__int64 v5; // x0
void *v6; // x0
void *v7; // x0
v1 = result;
if ( result && *(_QWORD *)(result + 128) )
{
sub_100529488(result);
v2 = *(_QWORD **)(v1 + 128);
if ( v2[30] )
{
sub_10052D15C(v1);
v2 = *(_QWORD **)(v1 + 128);
}
if ( v2[33] )
{
sub_10052D024(v1);
v2 = *(_QWORD **)(v1 + 128);
}
v3 = (void *)v2[40];
if ( v3 )
{
sub_100588C44(v3);
v2 = *(_QWORD **)(v1 + 128);
}
v4 = v2[118];
if ( v4 )
{
sub_1005D2CEC(v4);
v2 = *(_QWORD **)(v1 + 128);
}
v5 = v2[119];
if ( v5 )
{
sub_1005BF684(v5);
v2 = *(_QWORD **)(v1 + 128);
}
v6 = (void *)v2[124];
if ( v6 )
{
sub_1005DE9D0(v6);
v2 = *(_QWORD **)(v1 + 128);
}
if ( v2[55] )
{
sub_1005DA554();
v2 = *(_QWORD **)(v1 + 128);
}
if ( v2[56] )
{
sub_1005296C4(v1);
v2 = *(_QWORD **)(v1 + 128);
}
v7 = (void *)v2[150];
if ( v7 )
sub_100588C44(v7);
sub_100547DCC(v1);
sub_10058A3A8(*(_QWORD *)(v1 + 128), 0x4C0u);
result = sub_100588C44(*(void **)(v1 + 128));
*(_QWORD *)(v1 + 128) = 0;
}
return result;
}