//
// sub_1004E595C from 0x1004e595c to 0x1004e59b4 (88 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
//
__int64 __fastcall sub_1004E595C(unsigned int a1, void **a2, _QWORD *a3)
{
size_t v5; // x0
__int64 result; // x0
void *v7; // x21
if ( a1 )
v5 = 4LL * a1;
else
v5 = 1;
result = (__int64)malloc(v5);
if ( result )
{
v7 = (void *)result;
if ( *a2 )
free(*a2);
*a2 = v7;
*a3 = v7;
return 1;
}
return result;
}