//
// png_set_rows from 0x6609f8 to 0x660a2e (54 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall png_set_rows(int result, int a2, int a3)
{
bool v3; // zf
int v4; // r3
int v6; // r2
v3 = a2 == 0;
if ( a2 )
v3 = result == 0;
v4 = v3;
if ( !v3 )
{
v6 = *(_DWORD *)(a2 + 264);
if ( v6 )
{
if ( v6 == a3 )
{
LABEL_11:
*(_DWORD *)(a2 + 8) |= 0x8000u;
return result;
}
result = png_free_data(result, a2, 64, v4);
}
*(_DWORD *)(a2 + 264) = a3;
if ( !a3 )
return result;
goto LABEL_11;
}
return result;
}