//
// ChallengeNode::onClaimReward from 0x600bb0 to 0x600c52 (162 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:54:40 +0000
//
int __fastcall ChallengeNode::onClaimReward(ChallengeNode *this, cocos2d::CCObject *a2)
{
GameStatsManager *v4; // r9
GJChallengeItem *v5; // r8
int v6; // r0
FMODAudioEngine *v7; // r0
int v8; // r0
FMODAudioEngine *v9; // r7
_BYTE v11[8]; // [sp+8h] [bp+0h] BYREF
int v12[3]; // [sp+10h] [bp+8h] BYREF
v4 = *((GameStatsManager **)this + 66);
v5 = *((GJChallengeItem **)this + 67);
v6 = (*(int (__fastcall **)(ChallengeNode *))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::operator+(v11, v6, (char *)this + 272);
v7 = ChallengesPage::claimItem(v4, (int)this, v5, (const cocos2d::CCPoint *)v11);
v8 = FMODAudioEngine::sharedEngine(v7);
memset(v12, 0, sizeof(v12));
v9 = (FMODAudioEngine *)v8;
std::string::__init(v12, "gold02.ogg", 0xAu);
FMODAudioEngine::playUIEffect(v9, (int)v12, 1065353216, 0, 1065353216);
std::string::~string((int)v12);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)a2 + 172))(a2, 0);
return (*(int (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)a2 + 528))(a2, 0);
}