//
// png_malloc_array from 0xe447c8 to 0xe4481c (84 bytes)
//
// 2 xrefs:
// > png_set_sPLT @ 0xe5abd8
// > ??> @ 0x63f88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:10:04 +0000
//
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);
}