//
// DailyLevelNode::onClaimReward from 0x4d57d0 to 0x4d587e (174 bytes)
//
// 0 xrefs:
//
// 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 DailyLevelNode::onClaimReward(DailyLevelNode *a1, cocos2d::CCObject *a2)
{
DailyLevelPage *m_page; // r9
GJGameLevel *m_level; // r8
const cocos2d::CCPoint *v6; // r0
FMODAudioEngine *v7; // r4
int v8; // r2
int v9; // r3
float v10; // [sp+0h] [bp-14h]
_BYTE v11[8]; // [sp+4h] [bp-10h] BYREF
cocos2d::CCPoint v12; // 0:kr00_8.8
if ( !a1->m_unkBool )
{
a1->m_unkBool = 1;
m_page = a1->m_page;
m_level = a1->m_level;
v6 = a1->getPosition(a1);
cocos2d::CCPoint::operator+(v11, v6, &a1->m_unkPoint);
LODWORD(v12.x) = v11;
v12.y = v10;
DailyLevelPage::claimLevelReward(m_page, a1, m_level, v12);
if ( a1->m_page->m_type != 1 )
{
v7 = FMODAudioEngine::sharedEngine();
sub_776584((int)v11, "gold02.ogg");
FMODAudioEngine::playEffect(v7, (int)v11, v8, v9);
sub_774008(v11);
}
((void (__fastcall *)(cocos2d::CCObject *, _DWORD))a2->__vftable[4].~CCObject)(a2, 0);
a2->__vftable[13].copyWithZone(a2, nullptr);
}
}