//
// GJPathRewardPopup::onClaim from 0x6d1698 to 0x6d1736 (158 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:03 +0000
//
int __fastcall GJPathRewardPopup::onClaim(GJPathRewardPopup *this, cocos2d::CCObject *a2)
{
GameStatsManager *v3; // r0
unsigned __int8 v4; // r2
RewardUnlockLayer **v5; // r5
cocos2d::CCAction *v7; // r0
float v8; // r1
cocos2d::CCSequence *v9; // r7
cocos2d::CCFiniteTimeAction *v10; // r0
int v11; // r3
cocos2d::CCAction *v12; // r0
RewardsPage *v13; // r2
FLAlertLayer *v14; // r6
int v15; // r7
void (__fastcall *v16)(int, FLAlertLayer *, int); // r8
int v17; // r0
v3 = (GameStatsManager *)GameStatsManager::sharedState(this);
v5 = (RewardUnlockLayer **)GameStatsManager::unlockPathChest(v3, *((_DWORD *)this + 130));
if ( !v5 )
return GJPathRewardPopup::closePopup(this);
v7 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E4CCCCD, 0.0, v4);
cocos2d::CCNode::runAction(this, v7);
v9 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3E4CCCCD, v8);
v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GJPathRewardPopup::closePopup, 0);
v12 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v9, v10, 0, v11, GJPathRewardPopup::closePopup, 0);
cocos2d::CCNode::runAction(this, v12);
v14 = RewardUnlockLayer::create(v5[15], nullptr, v13);
v15 = (*(int (__fastcall **)(GJPathRewardPopup *))(*(_DWORD *)this + 256))(this);
v16 = *(void (__fastcall **)(int, FLAlertLayer *, int))(*(_DWORD *)v15 + 232);
v17 = (*(int (__fastcall **)(GJPathRewardPopup *))(*(_DWORD *)this + 52))(this);
v16(v15, v14, v17 + 1);
return RewardUnlockLayer::showCollectReward(v14, (GJRewardItem *)v5);
}