//
// sub_1000B6C78 from 0x1000b6c78 to 0x1000b6d28 (176 bytes)
//
// 1 xrefs:
// > AchievementManager::getAllAchievementsSorted @ 0x1000e7e24
//
// 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_1000B6C78(__int64 *a1, __int64 *a2)
{
__int64 v2; // x20
__int64 v3; // x19
cocos2d::CCString *v4; // x0
float v5; // s8
cocos2d::CCString *v6; // x0
float v7; // s9
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v10; // [xsp+1Fh] [xbp-21h]
v2 = *a1;
v3 = *a2;
sub_100009900(__p, "order");
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v2, __p);
v5 = cocos2d::CCString::floatValue(v4);
if ( v10 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "order");
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(v3, __p);
v7 = cocos2d::CCString::floatValue(v6);
if ( v10 < 0 )
operator delete(__p[0]);
return (unsigned int)(int)(float)((float)(v5 * 1000.0) - (float)(v7 * 1000.0));
}