//
// png_set_rows from 0x870a78 to 0x870aae (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:57 +0000
//
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;
}