//
// DeathStatsPopup::pollFetch from 0xca8968 to 0xca8a04 (156 bytes)
//
// 7 xrefs:
// > ??> @ 0xa5d78
// > DeathStatsPopup::onClose @ 0xca747c
// > DeathStatsPopup::onFetch @ 0xca76e0
// > DeathStatsPopup::onFetch @ 0xca76f4
// > DeathStatsPopup::pollFetch @ 0xca89c0
// > DeathStatsPopup::pollFetch @ 0xca89ec
// > ??> @ 0x1544a48
//
// 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 13:06:03 +0000
//
__int64 __fastcall DeathStatsPopup::pollFetch(DeathStatsPopup *this, float a2)
{
GameLevelManager *v3; // x0
__int64 result; // x0
*((float *)this + 264) = *((float *)this + 264) + a2;
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
result = GameLevelManager::isDeathDataFetched(v3, *((_DWORD *)this + 262));
if ( (_BYTE)result )
{
cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);
return DeathStatsPopup::showResult(this);
}
else if ( *((float *)this + 264) > 6.0 )
{
cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);
return DeathStatsPopup::setStatus(this, "Fetch failed.");
}
return result;
}