//
// UILayer::onPause from 0x3fcdfe to 0x3fce28 (42 bytes)
//
// 2 xrefs:
// > UILayer::keyBackClicked @ 0x3fce42
// > UILayer::handleAction @ 0x3fe08a
//
// 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:21 +0000
//
GameManager *__fastcall UILayer::onPause(UILayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *result; // r0
v3 = (GameManager *)GameManager::sharedState(this);
if ( !*((_DWORD *)v3 + 101) )
return UILayer::doPause(this);
result = (GameManager *)GameManager::sharedState(v3);
if ( *(int *)(*((_DWORD *)result + 101) + 1400) <= 2 )
return UILayer::doPause(this);
return result;
}