//
// UILayer::doPause from 0x100049ff0 to 0x10004a03c (76 bytes)
//
// 1 xrefs:
// > UILayer::onPause @ 0x100049588
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall UILayer::doPause(UILayer *a1)
{
GameManager *v1; // x0
GameManager *v2; // x0
*(_QWORD *)&a1->m_p1TouchId = -1;
UILayer::resetUINodeState(a1);
if ( GameManager::sharedState()->m_playLayer )
{
v1 = GameManager::sharedState();
PlayLayer::pauseGame(v1->m_playLayer, 0);
v2 = GameManager::sharedState();
++v2->m_playLayer->m_gameState.m_pauseCounter;
}
}