//
// png_info_init_3 from 0xbc5a78 to 0xbc5ae8 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xc22e0
//
// 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_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;
}