//
// sub_8C020 from 0x8c020 to 0x8c088 (104 bytes)
//
// 1 xrefs:
// > sub_8B6A4 @ 0x8b6a4
//
// This function is hookable on this platform (idp: arm, 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 12:14:12 +0000
//
__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;
}