// // sub_BDDD34 from 0xbddd34 to 0xbdddc8 (148 bytes) // // 1 xrefs: // > png_read_filter_row @ 0xbe2a54 // // 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 sub_BDDD34(__int64 a1, _BYTE *a2, unsigned __int8 *a3) { int v3; // w5 unsigned __int8 *v4; // x7 unsigned __int64 v5; // x9 unsigned __int8 *v6; // x4 __int64 result; // x0 int v8; // w6 int v9; // t1 signed int v10; // w3 signed int v11; // w2 signed int v12; // w1 v3 = *a3; v4 = a3 + 1; v5 = (unsigned __int64)&a2[*(_QWORD *)(a1 + 8)]; v6 = a2 + 1; result = (unsigned int)(unsigned __int8)*a2 + v3; *a2 += v3; if ( v5 > (unsigned __int64)(a2 + 1) ) { do { v9 = *v4++; v8 = v9; LODWORD(result) = (unsigned __int8)result; v10 = abs32((unsigned __int8)result - v3); v11 = abs32(v9 - v3); v12 = abs32(v9 - v3 + (unsigned __int8)result - v3); if ( v11 > v10 ) LODWORD(result) = v8; if ( v10 > v11 ) v10 = v11; if ( v10 > v12 ) LODWORD(result) = v3; v3 = v8; result = *v6 + (unsigned int)result; *v6++ = result; } while ( v6 != (unsigned __int8 *)v5 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source