//
// DailyLevelNode::onClaimReward from 0x608c7c to 0x608d30 (180 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:46 +0000
//
int __fastcall DailyLevelNode::onClaimReward(int this, cocos2d::CCObject *a2)
{
int v2; // r5
DailyLevelNode *v3; // r4
int *v5; // r10
GJGameLevel *v6; // r9
int v7; // r0
int *v8; // r0
int v9; // r0
FMODAudioEngine *v10; // r8
_BYTE v11[8]; // [sp+0h] [bp-18h] BYREF
int v12[3]; // [sp+8h] [bp-10h] BYREF
v2 = *(unsigned __int8 *)(this + 292);
v3 = (DailyLevelNode *)this;
if ( !*(_BYTE *)(this + 292) )
{
*(_BYTE *)(this + 292) = 1;
v5 = *(int **)(this + 272);
v6 = *(GJGameLevel **)(this + 268);
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::operator+(v11, v7, (char *)v3 + 280);
v8 = DailyLevelPage::claimLevelReward(v5, v3, v6, (const cocos2d::CCPoint *)v11);
if ( *(_DWORD *)(*((_DWORD *)v3 + 68) + 556) != 1 )
{
v9 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)v8);
v12[0] = v2;
v12[1] = v2;
v12[2] = v2;
v10 = (FMODAudioEngine *)v9;
std::string::__init(v12, "gold02.ogg", 0xAu);
FMODAudioEngine::playEffect(v10, (int)v12);
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);
}
return this;
}