//
// png_set_user_transform_info from 0xbe6214 to 0xbe6248 (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x2c178
//
// 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_set_user_transform_info(__int64 result, __int64 a2, char a3, char a4)
{
if ( result )
{
if ( (*(_DWORD *)(result + 356) & 0x8000) != 0 && (*(_DWORD *)(result + 360) & 0x40) != 0 )
{
return png_app_error(result, "info change after png_start_read_image or png_read_update_info");
}
else
{
*(_QWORD *)(result + 344) = a2;
*(_BYTE *)(result + 352) = a3;
*(_BYTE *)(result + 353) = a4;
}
}
return result;
}