//
// png_read_filter_row from 0x86f19c to 0x86f1fc (96 bytes)
//
// 2 xrefs:
// > png_push_process_row @ 0x862cfa
// > png_read_row @ 0x865b80
//
// 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:56 +0000
//
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_86BF50;
*(_DWORD *)(result + 912) = sub_86C048;
*(_DWORD *)(result + 916) = sub_86C10C;
if ( v5 == 1 )
*(_DWORD *)(result + 920) = sub_86C158;
else
*(_DWORD *)(result + 920) = sub_86C1C8;
}
return (*(int (__fastcall **)(int, int, int))(result + 4 * a5 + 904))(a2, a3, a4);
}
return result;
}