// // sub_6DB328 from 0x6db328 to 0x6db5ac (644 bytes) // // 3 xrefs: // > sub_6DC010 @ 0x6dc128 // > sub_6DC010 @ 0x6dc12c // > @ 0x6dc284 // // 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 sub_6DB328(int result, __int16 *a2, int a3) { int v4; // r4 int v5; // r3 double v6; // d6 int v7; // r4 int v8; // r3 double v9; // d6 int v12; // [sp+Ch] [bp-20h] int *v13; // [sp+10h] [bp-1Ch] v12 = result; v13 = *(int **)(result + 12); if ( *(_DWORD *)(result + 4) ) { while ( a3-- > 0 ) { v4 = *a2 << 16; if ( *(_DWORD *)(v12 + 4) ) { v6 = (double)a2[1]; result = sub_6D7100(); v5 = (unsigned __int16)((unsigned __int16)(int)(v6 * 0.012512207 + (double)result * 4.65661288e-10 - 0.5) << 8); } else { v5 = (unsigned __int16)((unsigned __int16)(int)((double)a2[1] * 0.012512207) << 8); } v7 = v4 | v5; if ( *(_DWORD *)(v12 + 4) ) { v9 = (double)a2[2]; result = sub_6D7100(); v8 = (unsigned __int8)(int)(v9 * 0.012512207 + (double)result * 4.65661288e-10 - 0.5); } else { v8 = (unsigned __int8)(int)((double)a2[2] * 0.012512207); } *v13++ = v7 | v8; a2 += 3; } } else { while ( a3-- > 0 ) { *v13++ = (*a2 << 16) | ((unsigned int)(410 * a2[1]) >> 7) & 0xFF00 | (unsigned __int8)((unsigned int)(410 * a2[2]) >> 15); a2 += 3; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source