//
// sub_1005A7658 from 0x1005a7658 to 0x1005a7680 (40 bytes)
//
// 1 xrefs:
// > sub_1005E7984 @ 0x1005e79dc
//
// 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
//
_QWORD *__fastcall sub_1005A7658(_QWORD *result, char a2, char a3, __int64 a4, __int64 a5)
{
*result = 0;
result[1] = 0;
*(_BYTE *)result = (4 * a2 + 56) & 0x38 | (a3 + 7) & 7;
result[4] = 0;
result[5] = a5;
result[6] = a4;
return result;
}