// // sub_C7DDB4 from 0xc7ddb4 to 0xc7deb8 (260 bytes) // // 1 xrefs: // > sub_C7FCE4 @ 0xc7fe5c // // 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 // bool __fastcall sub_C7DDB4(__int64 a1, __int64 a2, __int64 a3) { __int64 v3; // x4 int v4; // w11 int v5; // w10 __int64 v6; // x6 int v7; // w3 __int64 v8; // x5 unsigned int v9; // w7 __int16 v10; // w9 unsigned int v11; // w3 __int16 v13; // w8 __int16 v14; // w5 v3 = 0; v4 = -1; do { while ( 1 ) { while ( 1 ) { v5 = v3; v6 = byte_F54D30[v3]; v7 = *(__int16 *)(a1 + 2 * v6); v8 = a3 + 4 * v6; v9 = (unsigned int)v7 >> 31; if ( v7 < 0 ) v7 = -v7; if ( (unsigned int)v7 > *(_DWORD *)(v8 + 128) ) break; *(_WORD *)(a2 + 2 * v3++) = 0; *(_WORD *)(a1 + 2LL * (unsigned int)v6) = 0; if ( v3 == 16 ) return v4 >= 0; } v10 = *(_WORD *)(a3 + 2LL * byte_F54D30[v3]); v11 = (*(_DWORD *)(v8 + 64) + v7 * (unsigned int)*(unsigned __int16 *)(a3 + 2 * v6 + 32)) >> 17; if ( v11 <= 0x7FF ) break; if ( v9 ) { v14 = -2047; v13 = -2047; v11 = -2047; goto LABEL_11; } v4 = v3; *(_WORD *)(a1 + 2LL * (unsigned int)v6) = 2047 * v10; *(_WORD *)(a2 + 2 * v3++) = 2047; if ( v3 == 16 ) return v4 >= 0; } if ( v9 ) { v11 = -v11; v14 = v11; v13 = v11; } else { v13 = v11; v14 = v11; } LABEL_11: *(_WORD *)(a1 + 2LL * (unsigned int)v6) = v13 * v10; *(_WORD *)(a2 + 2 * v3++) = v14; if ( v11 ) v4 = v5; } while ( v3 != 16 ); return v4 >= 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source