//
// png_set_user_transform_info from 0x661168 to 0x661198 (48 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
//
int __fastcall png_set_user_transform_info(int result, int a2, char a3, char a4)
{
if ( result )
{
if ( (*(_DWORD *)(result + 308) & 0x8000) != 0 && (*(_DWORD *)(result + 312) & 0x40) != 0 )
{
return png_app_error(result, "info change after png_start_read_image or png_read_update_info");
}
else
{
*(_DWORD *)(result + 300) = a2;
*(_BYTE *)(result + 304) = a3;
*(_BYTE *)(result + 305) = a4;
}
}
return result;
}