//
// DailyLevelNode::onClaimReward from 0x1001bb9b4 to 0x1001bba90 (220 bytes)
//
// 1 xrefs:
// > DailyLevelNode::init @ 0x1001bb1c0
//
// 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 DailyLevelNode::onClaimReward(DailyLevelNode *a1, cocos2d::CCObject *a2)
{
DailyLevelPage *m_page; // x21
GJGameLevel *m_level; // x22
float32x2_t *v6; // x0
FMODAudioEngine *v7; // x20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v9; // [xsp+17h] [xbp-29h]
float32x2_t v10; // [xsp+18h] [xbp-28h] BYREF
cocos2d::CCPoint v11; // 0:s0.4,4:s1.4
if ( !a1->m_unkBool )
{
a1->m_unkBool = 1;
m_level = a1->m_level;
m_page = a1->m_page;
v6 = (float32x2_t *)((__int64 (__fastcall *)(DailyLevelNode *))a1->getPosition)(a1);
v11.x = sub_1000229DC(v6, (float32x2_t *)&a1->m_unkPoint, &v10).f32[0];
DailyLevelPage::claimLevelReward(m_page, a1, m_level, v11);
if ( a1->m_page->m_type != 1 )
{
v7 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "gold02.ogg");
FMODAudioEngine::playEffect_1((__int64)v7, (__int64)__p);
if ( v9 < 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);
}
}