//
// sub_1800F5C40 from 0x1800f5c40 to 0x1800f5cd3 (147 bytes)
//
// 4 xrefs:
// > ??> @ 0x18018ec68
// > ??> @ 0x18018ecc0
// > ??> @ 0x1801b0100
// > ??> @ 0x1802008fc
//
// 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 10:54:23 +0000
//
__int64 __fastcall sub_1800F5C40(__int64 a1)
{
__int64 v1; // rdi
__int64 v2; // rbx
int i; // ebp
int j; // esi
__int64 v5; // rcx
v1 = *(_QWORD *)(a1 + 8);
v2 = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 24LL))(v1) )
v2 = v1;
if ( *(_QWORD *)(v1 + 56) )
{
for ( i = 0; i < *(_DWORD *)(v1 + 24); ++i )
{
for ( j = 0; j < *(_DWORD *)(v1 + 28); ++j )
{
v5 = *(_QWORD *)(*(_QWORD *)(v1 + 56) + 8LL * (j + *(_DWORD *)(v1 + 28) * i));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 40LL))(v5);
}
}
*(_DWORD *)(v1 + 48) = 0;
}
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 32LL))(v2);
return 0;
}