//
// png_set_user_transform_info from 0xe5c3d4 to 0xe5c408 (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x42bb0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:21 +0000
//
__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;
}