//
// GJPathPage::onIconInfo from 0x6d22f4 to 0x6d239c (168 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:57:03 +0000
//
int __fastcall GJPathPage::onIconInfo(GJPathPage *this, cocos2d::CCObject *a2)
{
const char *v2; // r5
int v3; // r0
cocos2d::CCString *v4; // r0
const char *CString; // r7
size_t v6; // r0
GameManager *v7; // r0
AchievementManager *v8; // r7
int v10; // r0
int v11; // [sp+4h] [bp-28h] BYREF
int v12; // [sp+8h] [bp-24h] BYREF
int v13[3]; // [sp+Ch] [bp-20h] BYREF
int v14[3]; // [sp+18h] [bp-14h] BYREF
v2 = *((const char **)this + 133);
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"geometry.ach.path%02d.%02d",
v2,
v3);
memset(v13, 0, sizeof(v13));
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
v7 = (GameManager *)std::string::__init(v13, CString, v6);
v11 = 0;
v12 = 0;
v8 = (AchievementManager *)GameManager::sharedState(v7);
std::string::basic_string(v14, (int)v13);
GameManager::getUnlockForAchievement(v8, (int)v14, &v11, &v12);
std::string::~string((int)v14);
if ( v12 > 0 )
{
v10 = ItemInfoPopup::create(v11, v12);
(*(void (__fastcall **)(int))(*(_DWORD *)v10 + 656))(v10);
}
return std::string::~string((int)v13);
}