//
// PauseLayer::keyDown from 0x1001c126c to 0x1001c1364 (248 bytes)
//
// 2 xrefs:
// > sub_1001C1364 @ 0x1001c1368
// > ??> @ 0x1008e8220
//
// 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 11:00:15 +0000
//
void __fastcall PauseLayer::keyDown(_BYTE *a1, int a2)
{
if ( a1[586] == 1 )
{
if ( a2 <= 1002 )
{
if ( a2 != 27 )
{
if ( a2 != 32 )
return;
goto LABEL_14;
}
}
else if ( a2 != 1003 )
{
if ( a2 != 1009 && a2 != 1007 )
return;
LABEL_14:
sub_1001BFED8((__int64)a1);
return;
}
LABEL_18:
sub_1001BF94C((__int64)a1);
return;
}
if ( a2 <= 1002 )
{
if ( a2 == 27 )
goto LABEL_18;
if ( a2 != 32 )
return;
LABEL_17:
PauseLayer::onResume(a1);
return;
}
if ( a2 == 1003 )
goto LABEL_18;
if ( a2 != 1007 )
{
if ( a2 != 1009 )
return;
goto LABEL_17;
}
if ( (*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(a1) + 544) + 12544LL) & 1) != 0 )
PauseLayer::onNormalMode((__int64)a1);
else
PauseLayer::onPracticeMode((__int64)a1);
}