//
// png_malloc_array from 0x652050 to 0x65208e (62 bytes)
//
// 1 xrefs:
// > png_set_sPLT @ 0x6605d4
//
// 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(int a1, unsigned int a2, int a3)
{
bool v3; // cc
int v4; // r7
v3 = a3 <= 0;
if ( a3 )
v3 = (int)a2 <= 0;
v4 = v3;
if ( v3 )
png_error(a1, "internal error: array alloc");
if ( a2 > 0xFFFFFFFF / a3 )
return (void *)v4;
else
return png_malloc_base(a1, a3 * a2);
}