//
// sub_100580838 from 0x100580838 to 0x1005808b8 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aafc0
//
// This function is hookable on this platform (idp: arm, 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:08:29 +0000
//
__int64 __fastcall sub_100580838(__int64 a1)
{
__int64 *v2; // x20
__int64 *v3; // x21
_QWORD *v4; // x20
_QWORD *v5; // x19
__int64 v6; // x0
v2 = (__int64 *)(a1 + 400);
v3 = *(__int64 **)(a1 + 400);
if ( v3 != (__int64 *)(a1 + 400) )
{
do
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3[2] + 8LL))(v3[2]);
v3 = (__int64 *)*v3;
}
while ( v3 != v2 );
}
v4 = (_QWORD *)(a1 + 424);
v5 = *(_QWORD **)(a1 + 424);
while ( v5 != v4 )
{
v6 = v5[2];
v5 = (_QWORD *)*v5;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 8LL))(v6);
}
return 0;
}