// // sub_1000683A0 from 0x1000683a0 to 0x100068400 (96 bytes) // // 0 xrefs: // // 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 12:19:44 +0000 // __int64 __fastcall sub_1000683A0(__int64 a1, int a2) { __int64 result; // rax __int64 v3; // rdx __int64 v4; // rcx result = *(_QWORD *)(a1 + 512); v3 = *(_QWORD *)(a1 + 520) - result; if ( !v3 ) return 0; v4 = (0xAAAAAAAAAAAAAAABLL * (v3 >> 3) == 0) - 0x5555555555555555LL * (v3 >> 3); while ( (int)*(_QWORD *)result >= a2 || (int)(*(_DWORD *)(result + 8) + *(_QWORD *)result) <= a2 ) { result += 24; if ( !--v4 ) return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source