//
// achievementCompare from 0x3960f0 to 0x396190 (160 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:20 +0000
//
int __fastcall achievementCompare(int *a1, int *a2)
{
int v2; // r7
int v3; // r6
cocos2d::CCString *v4; // r0
float v5; // s15
cocos2d::CCString *v6; // r0
float v7; // s18
int v9; // [sp+0h] [bp-14h] BYREF
int v10; // [sp+4h] [bp-10h]
int v11; // [sp+8h] [bp-Ch]
v2 = *a1;
v3 = *a2;
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "order", 5u);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v2, &v9);
v5 = COERCE_FLOAT(cocos2d::CCString::floatValue(v4));
std::string::~string((int)&v9);
v9 = 0;
v10 = 0;
v11 = 0;
std::string::__init(&v9, "order", 5u);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v3, &v9);
v7 = COERCE_FLOAT(cocos2d::CCString::floatValue(v6));
std::string::~string((int)&v9);
return (int)(float)((float)(v5 * 1000.0) - (float)(v7 * 1000.0));
}