//
// png_zalloc from 0x85d050 to 0x85d086 (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:41 +0000
//
int __fastcall png_zalloc(int a1, unsigned int a2, unsigned int a3)
{
if ( !a1 )
return 0;
if ( 0xFFFFFFFF / a3 > a2 )
return png_malloc_warn(a1, a2 * a3);
png_warning(a1, "Potential overflow in png_zalloc()");
return 0;
}