//
// PauseLayer::keyDown from 0x48fc94 to 0x48fd24 (144 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'PauseLayer::keyDown @ 0x48fd28
//
// 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:49:36 +0000
//
void __fastcall PauseLayer::keyDown(PauseLayer *this, int a2)
{
int v3; // r2
if ( *((_BYTE *)this + 462) && (a2 == 1007 || a2 == 1009 || a2 == 32) )
{
PauseLayer::onToggleUI(this, nullptr);
return;
}
if ( a2 == 1003 )
goto LABEL_14;
if ( a2 < 1004 )
{
if ( a2 != 27 )
{
if ( a2 != 32 )
return;
LABEL_13:
PauseLayer::onResume((cocos2d::CCArray **)this, nullptr);
return;
}
LABEL_14:
PauseLayer::tryQuit(this, nullptr);
return;
}
if ( a2 != 1007 )
{
if ( a2 != 1009 )
return;
goto LABEL_13;
}
v3 = *(_DWORD *)(GameManager::sharedState(this) + 404);
if ( *(_BYTE *)(v3 + 10784) )
PauseLayer::onNormalMode(this, nullptr);
else
PauseLayer::onPracticeMode(this, (cocos2d::CCObject *)*(unsigned __int8 *)(v3 + 10784));
}