//
// png_malloc_array from 0xbce608 to 0xbce65c (84 bytes)
//
// 2 xrefs:
// > png_set_sPLT @ 0xbe4a18
// > ??> @ 0x466c8
//
// 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_array(__int64 a1, int a2, unsigned __int64 a3)
{
if ( a2 <= 0 || !a3 )
png_error(a1, "internal error: array alloc");
if ( a2 > 0xFFFFFFFFFFFFFFFFLL / a3 )
return nullptr;
else
return png_malloc_base(a1, a2 * a3);
}