//
// GameManager::tryCacheAd from 0x4140d0 to 0x414100 (48 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:47:39 +0000
//
int __fastcall GameManager::tryCacheAd(GameManager *this, float a2, float a3, int a4)
{
double v4; // d0
int result; // r0
float v7; // r1
float v8; // r2
int v9; // r3
double v10; // d0
AdToolbox *v11; // r0
int v12; // r1
int v13; // r2
int v14; // r3
result = sub_412E98((int)this, a2, a3, a4);
v10 = v4 - *((double *)this + 44);
if ( v10 >= 60.0 )
{
v11 = (AdToolbox *)sub_412E98(result, v7, v8, v9);
*((double *)this + 44) = v10;
return AdToolbox::cacheInterstitial(v11, v12, v13, v14);
}
return result;
}