// // sub_10042A76C from 0x10042a76c to 0x10042a7bc (80 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_10042A76C(__int64 a1) { __int64 v1; // x8 bool v2; // cf bool v4; // cc if ( !a1 ) return 0; if ( a1 <= 0 ) { while ( 1 ) { v4 = a1 < -1; if ( a1 == -1 ) return 2; a1 = ~a1; if ( v4 ) goto LABEL_3; } } else { LABEL_3: LODWORD(v1) = 1; do { v1 = (unsigned int)(v1 + 1); v2 = (unsigned __int64)a1 >= 2; a1 = (unsigned __int64)a1 >> 1; } while ( v2 ); return v1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source