//
// UILayer::doPause from 0x1000526f8 to 0x100052744 (76 bytes)
//
// 1 xrefs:
// > UILayer::onPause @ 0x100050b7c
//
// 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 10:57:44 +0000
//
__int64 __fastcall UILayer::doPause(__int64 a1)
{
__int64 v1; // x0
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x0
*(_QWORD *)(a1 + 584) = -1;
v1 = UILayer::resetUINodeState(a1);
result = GameManager::sharedState(v1);
if ( *(_QWORD *)(result + 544) )
{
v3 = GameManager::sharedState(result);
v4 = PlayLayer::pauseGame(*(_QWORD *)(v3 + 544), 0);
result = GameManager::sharedState(v4);
++*(_DWORD *)(*(_QWORD *)(result + 544) + 1924LL);
}
return result;
}