//
// sub_100224590 from 0x100224590 to 0x10022462f (159 bytes)
//
// 1 xrefs:
// > sub_100224060 @ 0x100224151
//
// This function is hookable on this platform (idp: pc, 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 12:27:04 +0000
//
__int64 __fastcall sub_100224590(__int64 a1, unsigned int *a2)
{
__int64 v3; // rax
__int64 v4; // r15
_QWORD *v5; // rdi
unsigned int v6; // eax
__int64 result; // rax
v3 = *(_QWORD *)(a1 + 760);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 56);
while ( v4 )
{
v5 = *(_QWORD **)(v4 + 264);
v4 = *(_QWORD *)(v4 + 288);
v5[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v5 + 1160LL))(v5, 0);
}
}
v6 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 64LL))(a2);
result = sub_1008DCCA0(a1, *(unsigned int *)(a1 + 1008), v6, a2[124]);
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1312LL))(result);
return result;
}