//
// png_read_filter_row from 0xbe29a0 to 0xbe2a60 (192 bytes)
//
// 3 xrefs:
// > png_push_process_row @ 0xbcfa7c
// > png_read_row @ 0xbd39a4
// > ??> @ 0x4a190
//
// 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
//
__int64 __fastcall png_read_filter_row(__int64 result, __int64 a2, __int64 a3, __int64 a4, int a5)
{
unsigned int v5; // w4
__int64 v6; // x19
int v10; // w1
void *v11; // x0
unsigned int v12; // [xsp+38h] [xbp+38h]
v5 = a5 - 1;
if ( v5 <= 3 )
{
v6 = result;
if ( !*(_QWORD *)(result + 1264) )
{
v10 = *(unsigned __int8 *)(result + 690);
*(_QWORD *)(result + 1264) = sub_BDC998;
*(_QWORD *)(result + 1272) = sub_BDCE20;
*(_QWORD *)(result + 1280) = sub_BDD28C;
if ( (v10 + 7) >> 3 == 1 )
v11 = sub_BDDD34;
else
v11 = sub_BDDDC8;
*(_QWORD *)(v6 + 1288) = v11;
v12 = v5;
png_init_filter_functions_neon(v6);
v5 = v12;
}
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(v6 + 8LL * (int)v5 + 1264))(a2, a3, a4);
}
return result;
}