//
// png_set_write_user_transform_fn from 0xbe8e6c to 0xbe8e84 (24 bytes)
//
// 1 xrefs:
// > ??> @ 0x51c78
//
// 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_write_user_transform_fn(__int64 result, __int64 a2)
{
int v2; // w2
if ( result )
{
v2 = *(_DWORD *)(result + 364);
*(_QWORD *)(result + 336) = a2;
*(_DWORD *)(result + 364) = v2 | 0x100000;
}
return result;
}