//
// UILayer::onPause from 0x6ef3c0 to 0x6ef40c (76 bytes)
//
// 5 xrefs:
// > UILayer::keyBackClicked @ 0x6ef454
// > UILayer::handleAction @ 0x6f15d0
// > ??> @ 0x9e968
// > UILayer::init @ 0x6f05e8
// > ??> @ 0x1544640
//
// 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 12:51:47 +0000
//
GameManager *__fastcall UILayer::onPause(UILayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *result; // x0
v3 = *(GameManager **)(GameManager::sharedState(this) + 544);
if ( !v3 )
return UILayer::doPause(this);
result = (GameManager *)*(unsigned int *)(*(_QWORD *)(GameManager::sharedState(v3) + 544) + 1924LL);
if ( (int)result <= 2 )
return UILayer::doPause(this);
return result;
}