//
// sub_6E9460 from 0x6e9460 to 0x6e9584 (292 bytes)
//
// 12 xrefs:
// > sub_6E7DA0 @ 0x6e7e78
// > sub_6E7DA0 @ 0x6e7e7c
// > sub_6E7DA0 @ 0x6e7e9c
// > sub_6E7DA0 @ 0x6e7ea0
// > sub_6E7DA0 @ 0x6e7f9c
// > sub_6E7DA0 @ 0x6e7fa0
// > sub_6E7DA0 @ 0x6e7fc0
// > sub_6E7DA0 @ 0x6e7fc4
// > ??> @ 0x6e8060
// > ??> @ 0x6e8064
// > ??> @ 0x6e8088
// > ??> @ 0x6e808c
//
// 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_6E9460(int a1, int a2, int a3, unsigned __int16 a4)
{
int v10; // [sp+14h] [bp-8h]
v10 = *(_DWORD *)(a1 + 576);
if ( !v10 )
_assert2();
if ( !*(_DWORD *)(v10 + 28) )
_assert2();
if ( !*(_DWORD *)(v10 + 40) )
_assert2();
if ( !(*(int (__fastcall **)(int, int, int, _DWORD))(v10 + 28))(a1, a2, a3, a4) )
return 0;
(*(void (__fastcall **)(int, int, int))(v10 + 40))(a1, a2, a3);
return 1;
}