//
// png_malloc_default from 0xbce7d4 to 0xbce818 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0xb2c20
//
// 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 png_malloc_default(__int64 a1, size_t a2)
{
void *result; // x0
if ( !a1 )
return nullptr;
result = png_malloc_base(0, a2);
if ( !result )
png_error(a1, "Out of Memory");
return result;
}