//
// png_read_update_info from 0xbd3830 to 0xbd3888 (88 bytes)
//
// 5 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0xb0c034
// > png_read_row @ 0xbd3ed8
// > sub_BD4E74 @ 0xbd4ee0
// > png_read_png @ 0xbd5f8c
// > ??> @ 0xa31b8
//
// 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
//
__int64 __fastcall png_read_update_info(__int64 result, __int64 a2)
{
__int64 v2; // x19
if ( result )
{
if ( (*(_DWORD *)(result + 360) & 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;
}