//
// sub_8C020 from 0x8c020 to 0x8c088 (104 bytes)
//
// 1 xrefs:
// > sub_8B6A4 @ 0x8b6a4
//
// 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_8C020(__int64 a1, int a2, __int64 a3, unsigned int a4, __int64 a5, __int64 a6)
{
__int64 result; // x0
int *v9; // [xsp+8h] [xbp-18h] BYREF
*(_QWORD *)(a1 + 432) = a5;
v9 = nullptr;
result = (*(__int64 (__fastcall **)(__int64, _QWORD, int **, _QWORD))(a6 + 240))(a6, a4, &v9, 0);
if ( !(_DWORD)result )
return sub_8BADC(a1, a2, *(_DWORD *)(*(_QWORD *)(a1 + 8) + 16LL), *v9, (__int64)(v9 + 2));
return result;
}