//
// GJPathsLayer::onPath from 0xa71770 to 0xa71804 (148 bytes)
//
// 3 xrefs:
// > ??> @ 0x590e8
// > GJPathsLayer::init @ 0xa6f320
// > ??> @ 0x122adb0
//
// 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 GJPathsLayer::onPath(GJPathsLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w19
GJPathPage *v4; // x0
GJPathPage_vtbl *v5; // x2
GameStatsManager *v6; // x0
GameStatsManager *v7; // x0
GJPathRewardPopup *v8; // x0
v3 = a2->getTag(a2);
v4 = GJPathPage::create(v3, a1);
v5 = v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4->m_noElasticity = 1;
((void (*)(void))v5->show)();
v6 = GameStatsManager::sharedState();
if ( GameStatsManager::getStatFromKey(v6, (StatKey)(v3 + 29)) > 999 )
{
v7 = GameStatsManager::sharedState();
if ( !GameStatsManager::isPathChestUnlocked(v7, v3) )
{
v8 = GJPathRewardPopup::create(v3);
v8->show(v8);
}
}
}