//
// GameManager::canShowRewardedVideo from 0x3220f4 to 0x322138 (68 bytes)
//
// 3 xrefs:
// > GJGarageLayer::onRewardedVideo @ 0x4025c4
// > RetryLevelLayer::onRewardedVideo @ 0x436108
// > FollowRewardPage::onRewardedVideo @ 0x4ffa28
//
// 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
//
bool GameManager::canShowRewardedVideo(GameManager *a1)
{
_BOOL4 hasCachedRewardedVideo; // r5
GameManager *v3; // [sp+0h] [bp-8h] BYREF
v3 = a1;
hasCachedRewardedVideo = AdToolbox::hasCachedRewardedVideo();
if ( hasCachedRewardedVideo )
{
GameStatsManager::sharedState();
GameStatsManager::getNextVideoAdReward((GameStatsManager *)&v3);
LOBYTE(hasCachedRewardedVideo) = LODWORD(v3[-1].m_practicePos.y) != 0;
sub_774008(&v3);
}
return hasCachedRewardedVideo;
}