//
// png_info_init_3 from 0x64d470 to 0x64d4b2 (66 bytes)
//
// 0 xrefs:
//
// 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 int a2)
{
void *result; // r0
void **v4; // r4
result = *a1;
if ( result )
{
if ( a2 < 0x10C )
{
*a1 = nullptr;
v4 = a1;
free(result);
result = (void *)png_malloc_base(0, 0x10Cu);
*v4 = result;
}
return j_memset(result, 0, 0x10Cu);
}
return result;
}