//
// png_set_rows from 0xbe504c to 0xbe50a4 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x4d190
//
// 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_rows(__int64 result, __int64 a2, __int64 a3)
{
__int64 v5; // x2
if ( result && a2 )
{
v5 = *(_QWORD *)(a2 + 336);
if ( v5 )
{
if ( v5 == a3 )
{
LABEL_7:
result = *(_DWORD *)(a2 + 8) | 0x8000u;
*(_DWORD *)(a2 + 8) = result;
return result;
}
result = png_free_data(result, a2, 64, 0);
}
*(_QWORD *)(a2 + 336) = a3;
if ( !a3 )
return result;
goto LABEL_7;
}
return result;
}