//
// GJPathsLayer::onPath from 0x1002fea30 to 0x1002feaac (124 bytes)
//
// 1 xrefs:
// > GJPathsLayer::init @ 0x1002fe751
//
// 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 GJPathsLayer::onPath(GJPathsLayer *a1, cocos2d::CCObject *a2)
{
int v2; // ebx
GJPathPage *v3; // rax
GameStatsManager *v4; // rax
GameStatsManager *v5; // rax
GJPathRewardPopup *v6; // rax
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v3 = GJPathPage::create(v2, a1);
v3->m_noElasticity = 1;
((void (__fastcall *)(GJPathPage *))v3->show)(v3);
v4 = GameStatsManager::sharedState();
if ( GameStatsManager::getStatFromKey(v4, (StatKey)(v2 + 29)) >= 1000 )
{
v5 = GameStatsManager::sharedState();
if ( !GameStatsManager::isPathChestUnlocked(v5, v2) )
{
v6 = GJPathRewardPopup::create(v2);
((void (__fastcall *)(GJPathRewardPopup *))v6->show)(v6);
}
}
}