//
// sub_1005A81EC from 0x1005a81ec to 0x1005a823c (80 bytes)
//
// 2 xrefs:
// > sub_1005E7A24 @ 0x1005e7be0
// > sub_1005E7C4C @ 0x1005e7d30
//
// 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
//
size_t __fastcall sub_1005A81EC(unsigned __int8 *a1, void *__dst, size_t a3)
{
size_t v3; // x19
v3 = ((*a1 >> 2) & 0xEu) + 2;
if ( v3 > a3 )
return 0;
memcpy(__dst, a1 + 16, v3);
return v3;
}