//
// png_read_update_info from 0x655a18 to 0x655a46 (46 bytes)
//
// 4 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x5e1bd4
// > sub_655D68 @ 0x655f20
// > sub_6569F0 @ 0x656a2e
// > png_read_png @ 0x657692
//
// 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
//
int __fastcall png_read_update_info(int result, int a2)
{
int v2; // r4
if ( result )
{
if ( (*(_DWORD *)(result + 312) & 0x40) != 0 )
{
return png_app_error(result, "png_read_update_info/png_start_read_image: duplicate call");
}
else
{
v2 = result;
png_read_start_row();
return png_read_transform_info(v2, a2);
}
}
return result;
}