//
// GJShopLayer::onVideoAd from 0x611100 to 0x61112c (44 bytes)
//
// 0 xrefs:
//
// 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:54:51 +0000
//
unsigned __int8 *__fastcall GJShopLayer::onVideoAd(unsigned __int8 *this, cocos2d::CCObject *a2, int a3)
{
unsigned __int8 *v3; // r4
AdToolbox *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
v3 = this;
if ( !*(this + 364) )
{
this = (unsigned __int8 *)AdToolbox::hasCachedRewardedVideo((AdToolbox *)this, (int)a2, a3, *(this + 364));
if ( this )
{
v3[364] = 1;
v4 = (AdToolbox *)GameManager::sharedState((GameManager *)this);
*((_DWORD *)v4 + 248) = v3 + 324;
return (unsigned __int8 *)AdToolbox::showRewardedVideo(v4, v5, v6, v7);
}
}
return this;
}