//
// sub_1004F4E24 from 0x1004f4e24 to 0x1004f4e8c (104 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
//
void *__fastcall sub_1004F4E24(unsigned int *a1, unsigned __int64 a2, unsigned __int64 a3)
{
unsigned __int64 v3; // x19
_BOOL4 v4; // w8
void *v5; // x0
void *v6; // x20
if ( a2 )
{
v3 = a2 * a3;
v4 = !is_mul_ok(a2, a3);
if ( (a3 | a2) >= 0x10000 && v4 )
v3 = -1;
}
else
{
v3 = 0;
}
v5 = (void *)sub_1004F32B4(a1, v3);
v6 = v5;
if ( v5 )
bzero(v5, v3);
return v6;
}