//
// GJPathsLayer::onPath from 0x6d40dc to 0x6d4130 (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:05 +0000
//
GameStatsManager *__fastcall GJPathsLayer::onPath(GJPathsLayer *this, cocos2d::CCObject *a2)
{
GJPathPage *v3; // r4
GJPathsLayer *v4; // r2
FLAlertLayer *v5; // r0
int v6; // r3
GameStatsManager *v7; // r0
GameStatsManager *v8; // r0
char *v9; // r2
int v10; // r3
GameStatsManager *result; // r0
GameStatsManager *v12; // r0
int v13; // r1
FLAlertLayer *v14; // r0
v3 = (GJPathPage *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v5 = GJPathPage::create(v3, this, v4);
v6 = *(_DWORD *)v5;
*((_BYTE *)v5 + 468) = 1;
v7 = (GameStatsManager *)(*(int (**)(void))(v6 + 656))();
v8 = (GameStatsManager *)GameStatsManager::sharedState(v7);
result = (GameStatsManager *)GameStatsManager::getStatFromKey(v8, (int)v3 + 29, v9, v10);
if ( (int)result >= 1000 )
{
v12 = (GameStatsManager *)GameStatsManager::sharedState(result);
result = (GameStatsManager *)GameStatsManager::isPathChestUnlocked(v12, (int)v3);
if ( !result )
{
v14 = GJPathRewardPopup::create(v3, v13);
return (GameStatsManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v14 + 656))(v14);
}
}
return result;
}