//
// AchievementManager::limitForAchievement from 0x3bee18 to 0x3bee88 (112 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::init @ 0x50dbc2
//
// 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:29 +0000
//
int __fastcall AchievementManager::limitForAchievement(AchievementManager *a1, int a2, int a3, int a4)
{
const char *v4; // r1
int AchievementsWithID; // r6
cocos2d::CCString *v7; // r6
AchievementManager *v8; // [sp+0h] [bp-10h] BYREF
int v9; // [sp+4h] [bp-Ch]
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v8 = a1;
v9 = a2;
v10 = a3;
v11 = a4;
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(const char **)(a2 + 8);
else
v4 = (const char *)(a2 + 1);
AchievementsWithID = AchievementManager::getAchievementsWithID(a1, v4);
if ( AchievementsWithID
&& (v8 = nullptr,
v9 = 0,
v10 = 0,
std::string::__init((int *)&v8, "limits", 6u),
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(AchievementsWithID, &v8),
std::string::~string((int)&v8),
v7) )
{
return cocos2d::CCString::intValue(v7);
}
else
{
return 0;
}
}