//
// png_read_update_info from 0x865a98 to 0x865ac6 (46 bytes)
//
// 4 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x7eb9f4
// > sub_865DE8 @ 0x865fa0
// > sub_866A70 @ 0x866aae
// > png_read_png @ 0x867712
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:46 +0000
//
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;
}