//
// DailyLevelPage::claimLevelReward from 0x100250764 to 0x1002508b8 (340 bytes)
//
// 1 xrefs:
// > DailyLevelNode::onClaimReward @ 0x1002516a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:01:31 +0000
//
void __fastcall DailyLevelPage::claimLevelReward(int *a1, __int64 a2, _DWORD *a3, double *a4)
{
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x23
__int64 v11; // x22
__n128 v12; // q0
__int64 v13; // x0
__int64 BonusDiamonds; // x23
__int64 v15; // x0
unsigned int *v16; // x0
__int64 v17; // [xsp+18h] [xbp-38h] BYREF
v8 = GameStatsManager::sharedState(a1);
v9 = GameStatsManager::completedDailyLevel(v8, a3);
if ( v9 )
{
v10 = v9;
v11 = RewardUnlockLayer::create(*(unsigned int *)(v9 + 64), 0);
(*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 100);
RewardUnlockLayer::showCollectReward(v11, v10);
}
else
{
v13 = GameStatsManager::sharedState(0);
BonusDiamonds = GameStatsManager::getBonusDiamonds(v13, (unsigned int)(a3[237] - a3[238]));
sub_1000262F4(&v17, a4);
v15 = CurrencyRewardLayer::create(0, 0, 0, BonusDiamonds, 0, 0, 0, 0, 0.0, 1.0, &v17, 0);
v12 = ((__n128 (__fastcall *)(int *, __int64, __int64))*(_QWORD *)(*(_QWORD *)a1 + 464LL))(a1, v15, 14);
}
v12.n128_u32[0] = 0;
sub_10024FF9C((__int64)a1, a2, v12.n128_f64[0]);
v16 = (unsigned int *)GameLevelManager::sharedState();
if ( (int)sub_1000CD764(v16, a1[183]) <= a3[230] - a3[231] )
DailyLevelPage::createDailyNode((__int64)a1, 0, 0, 0, 0.5);
else
DailyLevelPage::downloadAndCreateNode((__int64)a1);
}