//
// sub_1004E58D8 from 0x1004e58d8 to 0x1004e5904 (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
//
void *__fastcall sub_1004E58D8(size_t a1, _QWORD *a2)
{
void *result; // x0
if ( !a1 )
a1 = 1;
result = malloc(a1);
*a2 = result;
return result;
}