// // sub_140251040 from 0x140251040 to 0x1402510ef (175 bytes) // // 3 xrefs: // > sub_14024E530 @ 0x14024e6ba // > sub_14024EAF0 @ 0x14024ec82 // > @ 0x1406cf1a4 // // 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 // _QWORD *__fastcall sub_140251040(float *a1) { __int64 v1; // rdx bool v3; // sf unsigned __int64 v4; // rdx unsigned __int64 v5; // rbx float v6; // xmm0_4 float v7; // xmm0_4 unsigned __int64 v8; // rcx unsigned __int64 v9; // rax unsigned __int64 v10; // rcx v1 = *((_QWORD *)a1 + 2); v3 = v1 + 1 < 0; v4 = v1 + 1; v5 = *((_QWORD *)a1 + 7); if ( v3 ) v6 = (float)(int)(v4 & 1 | (v4 >> 1)) + (float)(int)(v4 & 1 | (v4 >> 1)); else v6 = (float)(int)v4; v7 = ceilf(v6 / *a1); v8 = 0; if ( v7 >= 9.223372e18 ) { v7 = v7 - 9.223372e18; if ( v7 < 9.223372e18 ) v8 = 0x8000000000000000uLL; } v9 = v8 + (unsigned int)(int)v7; v10 = 8; if ( v9 > 8 ) v10 = v9; if ( v5 < v10 ) { if ( v5 >= 0x200 || (v5 *= 8LL, v5 < v10) ) v5 = v10; } return sub_14005EF40(a1, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source