//
// sub_100581530 from 0x100581530 to 0x100581578 (72 bytes)
//
// 2 xrefs:
// > sub_10056ECEC @ 0x10056ed28
// > sub_10056ECEC @ 0x10056eda4
//
// 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_100581530(__int64 a1)
{
__int64 v1; // x0
__int64 v2; // x8
__int64 *v4[3]; // [xsp+8h] [xbp-18h] BYREF
sub_10056C468(a1, (__int64)v4);
while ( 1 )
{
v1 = sub_10056C478(v4);
if ( !v1 )
break;
v2 = **(_QWORD **)(*(_QWORD *)v1 + 16LL);
if ( v2 )
return *(_QWORD *)v2;
}
return 0;
}