// // sub_1004D8F70 from 0x1004d8f70 to 0x1004d8fb8 (72 bytes) // // 0 xrefs: // // 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_1004D8F70(unsigned int a1, unsigned int a2) { unsigned int v2; // w8 unsigned int v3; // w9 char v4; // w10 unsigned int v5; // w9 unsigned int v6; // w10 v2 = 0; if ( (a1 & 1) == 0 ) { v3 = a1; do { v4 = v3; ++v2; v3 >>= 1; } while ( (v4 & 2) == 0 ); } if ( v2 >= 0xF ) v2 = 15; do { v5 = v2 - 1; if ( !v2 ) break; v6 = a1 >> v2--; } while ( v6 <= a2 ); return v5 + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source