//
// png_set_shift from 0xbe5240 to 0xbe5268 (40 bytes)
//
// 3 xrefs:
// > png_read_png @ 0xbd5f60
// > png_write_png @ 0xbe8ecc
// > ??> @ 0x4afe8
//
// 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_shift(__int64 result, __int64 a2)
{
__int64 v2; // x3
if ( result )
{
v2 = result + 805;
*(_DWORD *)(result + 364) |= 8u;
*(_DWORD *)(result + 805) = *(_DWORD *)a2;
result = *(unsigned __int8 *)(a2 + 4);
*(_BYTE *)(v2 + 4) = result;
}
return result;
}