//
// FollowRewardPage::updateRate from 0x62fdc0 to 0x62fffc (572 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FollowRewardPage::updateRate @ 0x630040
//
// 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:55:16 +0000
//
GameStatsManager *__fastcall FollowRewardPage::updateRate(cocos2d::CCArray **this)
{
unsigned int i; // r4
GameStatsManager *result; // r0
int v4; // r0
int v5; // r5
int isSpecialChestUnlocked; // r5
GameManager *v7; // r0
GameManager *v8; // r0
char *v9; // r1
int v10; // r0
int v11; // r5
GameManager *v12; // r0
int v13; // r0
int v14; // r5
GameManager *v15; // r0
int v16; // r0
int v17; // r5
GameManager *v18; // r0
int v19; // r0
int v20; // r5
GameManager *v21; // r0
int v22; // r0
int v23; // r5
GameManager *v24; // r0
int v25; // r0
int v26; // r5
GameManager *v27; // r0
int *v28; // r0
int v29; // r3
int *v30; // r6
void (__fastcall *v31)(int, int); // r5
int v32; // r0
int v33; // [sp+Ch] [bp-18h]
int v34; // [sp+10h] [bp-14h] BYREF
int v35; // [sp+14h] [bp-10h]
int v36; // [sp+18h] [bp-Ch]
for ( i = 0; ; ++i )
{
result = (GameStatsManager *)cocos2d::CCArray::count(*(this + 133));
if ( i >= (unsigned int)result )
break;
if ( i )
{
switch ( i )
{
case 1u:
v10 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v11 = v10;
std::string::__init(&v34, "0008", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v11, (int)&v34);
v12 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v12);
v9 = "24";
break;
case 2u:
v13 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v14 = v13;
std::string::__init(&v34, "0009", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v14, (int)&v34);
v15 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v15);
v9 = "23";
break;
case 3u:
v16 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v17 = v16;
std::string::__init(&v34, "0010", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v17, (int)&v34);
v18 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v18);
v9 = "26";
break;
case 4u:
v19 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v20 = v19;
std::string::__init(&v34, "0011", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v20, (int)&v34);
v21 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v21);
v9 = "27";
break;
case 5u:
v22 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v23 = v22;
std::string::__init(&v34, "0024", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v23, (int)&v34);
v24 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v24);
v9 = "32";
break;
case 6u:
v25 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v26 = v25;
std::string::__init(&v34, "0025", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v26, (int)&v34);
v27 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v27);
v9 = "39";
break;
default:
continue;
}
}
else
{
v4 = GameStatsManager::sharedState(result);
v34 = 0;
v35 = 0;
v36 = 0;
v5 = v4;
std::string::__init(&v34, "0007", 4u);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v5, (int)&v34);
v7 = (GameManager *)std::string::~string((int)&v34);
v8 = (GameManager *)GameManager::sharedState(v7);
v9 = "22";
}
if ( GameManager::getUGV(v8, v9) )
{
if ( !isSpecialChestUnlocked )
{
v28 = (int *)cocos2d::CCArray::objectAtIndex(*(this + 133), i);
v29 = *v28;
v30 = v28;
*((_BYTE *)v28 + 516) = 0;
(*(void (__fastcall **)(int *, __int16 *))(v29 + 480))(v28, &word_BEEE54);
v33 = (int)*(this + 115);
v31 = *(void (__fastcall **)(int, int))(*(_DWORD *)v33 + 280);
v32 = (*(int (__fastcall **)(int *))(*v30 + 32))(v30);
v31(v33, v32 + 10);
}
}
}
return result;
}