//
// GameStatsManager::collectVideoReward from 0x41ca80 to 0x41cb04 (132 bytes)
//
// 1 xrefs:
// > GameManager::rewardedVideoHidden @ 0x3203a0
//
// 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 GameStatsManager::collectVideoReward(GameStatsManager *a1, int a2)
{
float v2; // r2
int v3; // s0
int v4; // s1
const char *v7; // r1
cocos2d::CCString *v8; // r0
char *CString; // r0
cocos2d::CCDictionary *m_worldAdvertChests; // r8
cocos2d::CCObject *v11; // r0
_DWORD v14[2]; // [sp+8h] [bp-8h] BYREF
sub_40C1E8((int)a1, *(float *)&a2, v2, _stack_chk_guard);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%f",
v7,
v3,
v4,
a1,
a2,
v14[0],
v14[1]);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)v14, CString);
m_worldAdvertChests = a1->m_worldAdvertChests;
v11 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
cocos2d::CCDictionary::setObject((int)m_worldAdvertChests, v11);
a1->m_skipIncrementChallenge = 1;
GameStatsManager::incrementStat(a1, "14", a2);
a1->m_skipIncrementChallenge = 0;
sub_774008(v14);
}