//
// png_set_rows from 0xe5b20c to 0xe5b264 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x6c250
//
// 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:20 +0000
//
__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;
}