//
// GJPathsLayer::onPath from 0x1003b85a4 to 0x1003b8630 (140 bytes)
//
// 1 xrefs:
// > GJPathsLayer::init @ 0x1003b832c
//
// 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 v3; // w19
GJPathPage *v4; // x0
GameStatsManager *v5; // x0
GameStatsManager *v6; // x0
GJPathRewardPopup *v7; // x0
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = GJPathPage::create(v3, a1);
v4->m_noElasticity = 1;
((void (__fastcall *)(GJPathPage *))v4->show)(v4);
v5 = GameStatsManager::sharedState();
if ( GameStatsManager::getStatFromKey(v5, (StatKey)(v3 + 29)) >= 1000 )
{
v6 = GameStatsManager::sharedState();
if ( !GameStatsManager::isPathChestUnlocked(v6, v3) )
{
v7 = GJPathRewardPopup::create(v3);
((void (__fastcall *)(GJPathRewardPopup *))v7->show)(v7);
}
}
}