// // sub_1800D6700 from 0x1800d6700 to 0x1800d685a (346 bytes) // // 4 xrefs: // > sub_1800D1DB0 @ 0x1800d20f1 // > @ 0x18018c304 // > @ 0x18018c314 // > @ 0x1801fefd0 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 10:54:11 +0000 // void __fastcall sub_1800D6700(__int64 a1, __int64 a2) { int v2; // eax float v3; // xmm3_4 float v4; // xmm5_4 float v5; // xmm4_4 float v6; // xmm1_4 float v7; // xmm0_4 float v8; // xmm7_4 float v9; // xmm9_4 float v10; // xmm2_4 float v11; // xmm9_4 float v12; // xmm2_4 v2 = *(_DWORD *)(a2 + 24); if ( (v2 & 0x40) == 0 ) { v3 = *(float *)(a2 + 4); v4 = *(float *)(a2 + 12); v5 = *(float *)a2; v6 = *(float *)(a2 + 20); v7 = v3 - *(float *)a2; *(_DWORD *)(a2 + 24) = v2 | 0x44; v8 = *(float *)(a2 + 8); v9 = *(float *)(a2 + 16); v10 = fmaxf(fmaxf(v4 - v8, v7), v6 - v9); v11 = (float)(v9 + *(float *)(a2 + 20)) * 0.5; v12 = (float)(v10 * *(float *)(a1 + 20)) * 1073741800.0; *(_DWORD *)(a2 + 28) = (int)v12 & ~(((((((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 4) | ((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 8) | ((((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 4) | ((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1) | ((((((((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 4) | ((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 8) | ((((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 4) | ((((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 2) | ((unsigned int)(int)v12 >> 2) | ((unsigned int)(int)v12 >> 1)) >> 16)); *(_DWORD *)(a2 + 32) = (int)(float)((float)((float)((float)((float)((float)(v5 + v3) * 0.5) - *(float *)(a1 + 8)) * *(float *)(a1 + 20)) + 1.0) * 1073741800.0); *(_DWORD *)(a2 + 36) = (int)(float)((float)((float)((float)((float)((float)(v8 + v4) * 0.5) - *(float *)(a1 + 12)) * *(float *)(a1 + 20)) + 1.0) * 1073741800.0); *(_DWORD *)(a2 + 40) = (int)(float)((float)((float)((float)(v11 - *(float *)(a1 + 16)) * *(float *)(a1 + 20)) + 1.0) * 1073741800.0); if ( *(_QWORD *)a1 ) sub_1800D61E0((__int64 *)a1, *(_QWORD *)a1, a2); else *(_QWORD *)a1 = a2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source