//
// GJPathsLayer::onPath from 0x58e734 to 0x58e788 (84 bytes)
//
// 0 xrefs:
//
// 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; // r4
GJPathPage *v4; // r0
GJPathPage_vtbl *v5; // r3
GameStatsManager *v6; // r0
GameStatsManager *v7; // r0
GJPathRewardPopup *v8; // r0
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)) >= 1000 )
{
v7 = GameStatsManager::sharedState();
if ( !GameStatsManager::isPathChestUnlocked(v7, v3) )
{
v8 = GJPathRewardPopup::create(v3);
v8->show(v8);
}
}
}