//
// png_info_init_3 from 0xe3bc38 to 0xe3bca8 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xfce50
//
// 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:00 +0000
//
void *__fastcall png_info_init_3(void **a1, unsigned __int64 a2)
{
void *result; // x0
void **v4; // x19
result = *a1;
if ( result )
{
if ( a2 <= 0x157 )
{
*a1 = nullptr;
v4 = a1;
free(result);
result = (void *)png_malloc_base(0, 0x158u);
*v4 = result;
}
return memset(result, 0, 0x158u);
}
return result;
}