//
// UILayer::doPause from 0x6ef370 to 0x6ef3c0 (80 bytes)
//
// 2 xrefs:
// > UILayer::onPause @ 0x6ef408
// > ??> @ 0xb83a8
//
// 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::doPause(UILayer *this)
{
GameManager *v1; // x0
GameManager *result; // x0
__int64 v3; // x0
GameManager *v4; // x0
__int64 v5; // x1
*((_DWORD *)this + 146) = -1;
*((_DWORD *)this + 147) = -1;
v1 = (GameManager *)UILayer::resetUINodeState(this);
result = *(GameManager **)(GameManager::sharedState(v1) + 544);
if ( result )
{
v3 = GameManager::sharedState(result);
v4 = (GameManager *)PlayLayer::pauseGame(*(PlayLayer **)(v3 + 544), 0);
v5 = *(_QWORD *)(GameManager::sharedState(v4) + 544);
result = (GameManager *)(unsigned int)(*(_DWORD *)(v5 + 1924) + 1);
*(_DWORD *)(v5 + 1924) = (_DWORD)result;
}
return result;
}