//
// sub_10025A130 from 0x10025a130 to 0x10025a23c (268 bytes)
//
// 2 xrefs:
// > RewardsPage::init @ 0x100259d40
// > RewardsPage::init @ 0x100259e5c
//
// 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:35 +0000
//
double __fastcall sub_10025A130(__int64 a1, __int64 a2)
{
__int64 v4; // x0
double result; // d0
__int64 v6; // x8
__int64 v7; // x0
__int64 v8; // x20
int v9; // w0
__int64 v10; // x19
char *v11; // x0
__int16 v12; // [xsp+Ch] [xbp-14h] BYREF
char v13; // [xsp+Eh] [xbp-12h]
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v4 == 2 )
{
if ( (*(_BYTE *)(a1 + 713) & 1) == 0 )
{
v6 = 688;
LABEL_9:
v10 = *(_QWORD *)(a1 + v6);
if ( v10 )
{
cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + v6));
v13 = 0;
v12 = 19455;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v10 + 1072LL))(v10, &v12);
v11 = cocos2d::CCTintTo::create(255, 255, 255, 1.0);
*(_QWORD *)&result = cocos2d::CCNode::runAction(v10, v11).n128_u64[0];
}
return result;
}
}
else if ( (_DWORD)v4 == 1 && (*(_BYTE *)(a1 + 712) & 1) == 0 )
{
v6 = 680;
goto LABEL_9;
}
if ( !*(_QWORD *)(a1 + 720) )
{
v7 = RewardUnlockLayer::create(v4, a1);
*(_QWORD *)(a1 + 720) = v7;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v7);
v8 = GameLevelManager::sharedState();
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
GameLevelManager::getGJRewards(v8, v9);
}
return result;
}