//
// AchievementManager::limitForAchievement from 0x10010e418 to 0x10010e498 (128 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::init @ 0x1003a51cc
//
// This function is hookable on this platform (idp: arm, 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 10:59:07 +0000
//
__int64 __fastcall AchievementManager::limitForAchievement(__int64 a1, char *a2)
{
__int64 result; // x0
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
if ( a2[23] < 0 )
a2 = *(char **)a2;
result = sub_10010E3AC(a1, a2);
if ( result )
{
v3 = result;
sub_100009900(__p, "limits");
v4 = cocos2d::CCDictionary::objectForKey(v3, __p);
v5 = v4;
if ( v7 < 0 )
{
operator delete(__p[0]);
if ( v5 )
return cocos2d::CCString::intValue(v5);
}
else if ( v4 )
{
return cocos2d::CCString::intValue(v5);
}
return 0;
}
return result;
}