//
// ChallengeNode::onClaimReward from 0x100033aa0 to 0x100033b58 (184 bytes)
//
// 1 xrefs:
// > ChallengeNode::init @ 0x1000336b0
//
// 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 ChallengeNode::onClaimReward(ChallengeNode *a1, cocos2d::CCObject *a2)
{
ChallengesPage *m_challengesPage; // x21
GJChallengeItem *m_challengeItem; // x22
float32x2_t *v6; // x0
ChallengeNode *v7; // x1
FMODAudioEngine *v8; // x20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v10; // [xsp+17h] [xbp-29h]
float32x2_t v11; // [xsp+18h] [xbp-28h] BYREF
cocos2d::CCPoint v12; // 0:s0.4,4:s1.4
m_challengesPage = a1->m_challengesPage;
m_challengeItem = a1->m_challengeItem;
v6 = (float32x2_t *)((__int64 (__fastcall *)(ChallengeNode *))a1->getPosition)(a1);
v12.x = sub_1000229DC(v6, (float32x2_t *)&a1->m_unkPoint, &v11).f32[0];
ChallengesPage::claimItem(m_challengesPage, v7, m_challengeItem, v12);
v8 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "gold02.ogg");
FMODAudioEngine::playEffect_1(v8, __p);
if ( v10 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[4].~CCObject)(a2, 0);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[13].copyWithZone)(a2, 0);
}