//
// sub_765BD8 from 0x765bd8 to 0x765c04 (44 bytes)
//
// 0 xrefs:
//
// 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_765BD8(int a1, unsigned __int8 *a2, int a3, int a4, int a5, char *a6, char *a7, int *a8)
{
int result; // r0
result = (char *)sub_765A94(a6, a4, a2, a3, a7, &a7[4 * *a8]) - a6;
*a8 = result >> 2;
return result;
}