//
// sub_74E040 from 0x74e040 to 0x74e068 (40 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
//
_BYTE *__fastcall sub_74E040(int a1, unsigned __int8 *a2, int a3, char a4, int a5, _BYTE *a6, char *a7, _DWORD *a8)
{
_BYTE *result; // r0
result = (_BYTE *)(sub_74DF1C(a6, a4, a2, a3, a7, &a7[*a8]) - a6);
*a8 = result;
return result;
}