//
// sub_10080A590 from 0x10080a590 to 0x10080a637 (167 bytes)
//
// 1 xrefs:
// > AchievementManager::getAllAchievementsSorted @ 0x100863862
//
// 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:36:41 +0000
//
__int64 __fastcall sub_10080A590(__int64 *a1, __int64 *a2, double a3)
{
__int64 v3; // rdi
__int64 v4; // rbx
void *v5; // rax
void *v6; // rax
float v7; // xmm0_4
float v9; // [rsp+8h] [rbp-28h]
char v10[16]; // [rsp+10h] [rbp-20h] BYREF
void *__p; // [rsp+20h] [rbp-10h]
v3 = *a1;
v4 = *a2;
strcpy(v10, "\norder");
v5 = cocos2d::CCDictionary::valueForKey(v3, (__int64)v10);
*(float *)&a3 = cocos2d::CCString::floatValue(v5, a3);
v9 = *(float *)&a3;
if ( (v10[0] & 1) != 0 )
operator delete(__p);
strcpy(v10, "\norder");
v6 = cocos2d::CCDictionary::valueForKey(v4, (__int64)v10);
v7 = cocos2d::CCString::floatValue(v6, a3);
if ( (v10[0] & 1) != 0 )
operator delete(__p);
return (unsigned int)(int)(float)((float)(v9 * 1000.0) - (float)(v7 * 1000.0));
}