//
// sub_100437B78 from 0x100437b78 to 0x100437c3c (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x10084ccb0
//
// 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_100437B78(__int64 a1)
{
__int64 v1; // x19
__int64 v2; // x20
int v3; // w9
int v4; // w21
int v5; // w8
__int64 v6; // x22
__int64 v7; // x0
v1 = *(_QWORD *)(a1 + 8);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v1 + 24LL))(v1) )
v2 = v1;
else
v2 = 0;
if ( *(_QWORD *)(v1 + 56) )
{
v3 = *(_DWORD *)(v1 + 24);
if ( v3 >= 1 )
{
v4 = 0;
v5 = *(_DWORD *)(v1 + 28);
do
{
if ( v5 >= 1 )
{
v6 = 0;
do
{
v7 = *(_QWORD *)(*(_QWORD *)(v1 + 56) + 8 * (v6 + v4 * v5));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 40LL))(v7);
v5 = *(_DWORD *)(v1 + 28);
++v6;
}
while ( (int)v6 < v5 );
v3 = *(_DWORD *)(v1 + 24);
}
++v4;
}
while ( v4 < v3 );
}
*(_DWORD *)(v1 + 48) = 0;
}
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 32LL))(v2);
return 0;
}