//
// GJPathPage::onIconInfo from 0x1003ba14c to 0x1003ba22c (224 bytes)
//
// 1 xrefs:
// > GJPathPage::init @ 0x1003b95ec
//
// 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
//
void __fastcall GJPathPage::onIconInfo(GJPathPage *a1, cocos2d::CCObject *a2)
{
int m_pathNumber; // w19
int v3; // w0
cocos2d::CCString *v4; // x0
char *CString; // x0
GameManager *v6; // x19
ItemInfoPopup *v7; // x0
void *__p[2]; // [xsp+10h] [xbp-50h] BYREF
__int64 v9; // [xsp+20h] [xbp-40h]
UnlockType v10; // [xsp+30h] [xbp-30h] BYREF
int v11; // [xsp+34h] [xbp-2Ch] BYREF
__int128 v12; // [xsp+38h] [xbp-28h] BYREF
__int64 v13; // [xsp+48h] [xbp-18h]
m_pathNumber = a1->m_pathNumber;
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = (cocos2d::CCString *)sub_100268F4C("geometry.ach.path%02d.%02d", m_pathNumber, v3);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(&v12, CString);
v11 = 0;
v10 = 0;
v6 = GameManager::sharedState();
if ( SHIBYTE(v13) < 0 )
{
sub_1000097D0(__p, (void *)v12, *((unsigned __int64 *)&v12 + 1));
}
else
{
*(_OWORD *)__p = v12;
v9 = v13;
}
GameManager::getUnlockForAchievement((__int64)v6, (const char *)__p, &v11, (int *)&v10);
if ( SHIBYTE(v9) < 0 )
operator delete(__p[0]);
if ( v10 >= 1 )
{
v7 = ItemInfoPopup::create(v11, v10);
((void (__fastcall *)(ItemInfoPopup *))v7->show)(v7);
}
if ( SHIBYTE(v13) < 0 )
operator delete((void *)v12);
}