//
// png_read_filter_row from 0x65f11c to 0x65f17c (96 bytes)
//
// 2 xrefs:
// > png_push_process_row @ 0x652c7a
// > png_read_row @ 0x655b00
//
// 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_read_filter_row(int result, int a2, int a3, int a4, int a5)
{
int v5; // r5
if ( (unsigned int)(a5 - 1) <= 3 )
{
if ( !*(_DWORD *)(result + 908) )
{
v5 = (*(unsigned __int8 *)(result + 538) + 7) >> 3;
*(_DWORD *)(result + 908) = sub_65BED0;
*(_DWORD *)(result + 912) = sub_65BFC8;
*(_DWORD *)(result + 916) = sub_65C08C;
if ( v5 == 1 )
*(_DWORD *)(result + 920) = sub_65C0D8;
else
*(_DWORD *)(result + 920) = sub_65C148;
}
return (*(int (__fastcall **)(int, int, int))(result + 4 * a5 + 904))(a2, a3, a4);
}
return result;
}