// // sub_140062820 from 0x140062820 to 0x1400628cf (175 bytes) // // 4 xrefs: // > sub_1400608D0 @ 0x140060a6d // > sub_1403A3FF0 @ 0x1403a418b // > sub_1403A43C0 @ 0x1403a454e // > @ 0x1406c5b14 // // 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_140062820(__int64 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 + 16); v3 = v1 + 1 < 0; v4 = v1 + 1; v5 = *(_QWORD *)(a1 + 56); if ( v3 ) v6 = (float)(int)(v4 & 1 | (v4 >> 1)) + (float)(int)(v4 & 1 | (v4 >> 1)); else v6 = (float)(int)v4; v7 = ceilf(v6 / *(float *)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_140062CC0(a1, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source