//
// DailyLevelNode::onClaimReward from 0x1400d2e20 to 0x1400d2f40 (288 bytes)
//
// 2 xrefs:
// > DailyLevelNode::init @ 0x1400d2637
// > ??> @ 0x1406c85f8
//
// 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
//
// Hidden C++ exception states: #wind=2
void DailyLevelNode::onClaimReward(DailyLevelNode *a1, cocos2d::CCObject *a2)
{
const cocos2d::CCPoint *v4; // rax
int v5; // ecx
_QWORD v6[5]; // [rsp+20h] [rbp-28h] BYREF
char v7; // [rsp+50h] [rbp+8h] BYREF
_QWORD *v8; // [rsp+60h] [rbp+18h]
FMODAudioEngine *v9; // [rsp+68h] [rbp+20h]
if ( !a1->m_unkBool )
{
a1->m_unkBool = 1;
v4 = a1->getPosition_0(a1);
cocos2d::CCPoint::operator+(v4, &v7);
DailyLevelPage::claimLevelReward(a1->m_page, a1, a1->m_level, (cocos2d::CCPoint)&v7);
if ( a1->m_page->m_type != 1 )
{
v8 = v6;
v6[1] = 26471;
v6[2] = 10;
v6[3] = 15;
v6[0] = 0x6F2E3230646C6F67LL;
v5 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v9 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v5 = qword_1406C2E88;
}
FMODAudioEngine::playEffect_1(v5, (__int64)v6);
}
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[4].update)(a2, 0);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->__vftable[12].getTag)(a2, 0);
}
}