//
// sub_6EA548 from 0x6ea548 to 0x6ea658 (272 bytes)
//
// 12 xrefs:
// > sub_6E8098 @ 0x6e8168
// > sub_6E8098 @ 0x6e816c
// > sub_6E8098 @ 0x6e818c
// > sub_6E8098 @ 0x6e8190
// > sub_6E8098 @ 0x6e8204
// > sub_6E8098 @ 0x6e8208
// > sub_6E8098 @ 0x6e8228
// > sub_6E8098 @ 0x6e822c
// > ??> @ 0x6e8298
// > ??> @ 0x6e829c
// > ??> @ 0x6e82ac
// > ??> @ 0x6e82b0
//
// 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
//
int __fastcall sub_6EA548(int a1, int a2, int a3, unsigned __int16 a4)
{
int v9; // [sp+14h] [bp-8h]
v9 = *(_DWORD *)(a1 + 576);
if ( !v9 )
_assert2();
if ( !*(_DWORD *)(v9 + 24) )
_assert2();
if ( !*(_DWORD *)(v9 + 12) )
_assert2();
(*(void (__fastcall **)(int, int, int))(v9 + 24))(a1, a2, a3);
return (*(int (__fastcall **)(int, int, int, _DWORD))(v9 + 12))(a1, a2, a3, a4);
}