//
// png_set_user_transform_info from 0x8711e8 to 0x871218 (48 bytes)
//
// 0 xrefs:
//
// 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:58 +0000
//
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;
}