// // CompareFunction from 0x140009e60 to 0x140009ff7 (407 bytes) // // 2 xrefs: // > AchievementManager::getAllAchievementsSorted @ 0x14003c4dc // > @ 0x14090efa8 // // 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 11:25:26 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall CompareFunction(_QWORD *a1, __int64 *a2) { __int64 v2; // rbx __m128i si128; // xmm7 cocos2d::CCString *v4; // rax float v5; // xmm6_4 void *v6; // rcx cocos2d::CCString *v7; // rax float v8; // xmm7_4 void *v9; // rcx void *Block[2]; // [rsp+30h] [rbp-58h] BYREF __m128i v12; // [rsp+40h] [rbp-48h] v2 = *a2; *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_140836560); v12 = si128; strcpy((char *)Block, "order"); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*a1, Block); v5 = cocos2d::CCString::floatValue(v4) * 1000.0; if ( v12.m128i_i64[1] > 0xFuLL ) { v6 = Block[0]; if ( (unsigned __int64)(v12.m128i_i64[1] + 1) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v6); si128 = _mm_load_si128((const __m128i *)&xmmword_140836560); } *(_OWORD *)Block = 0; v12 = si128; strcpy((char *)Block, "order"); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v2, Block); v8 = cocos2d::CCString::floatValue(v7) * 1000.0; if ( v12.m128i_i64[1] > 0xFuLL ) { v9 = Block[0]; if ( (unsigned __int64)(v12.m128i_i64[1] + 1) >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } return (unsigned int)(int)(float)(v5 - v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source