//
// DialogLayer::keyDown from 0x1003b1b70 to 0x1003b1ba8 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b370c8
//
// This function is hookable on this platform (idp: pc, 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:29:26 +0000
//
int __fastcall DialogLayer::keyDown(double *a1, unsigned int a2)
{
unsigned int v2; // esi
int result; // eax
__int64 v4; // rcx
if ( a2 <= 0x26 )
{
result = a2;
v4 = 0x4108000000LL;
if ( _bittest64(&v4, a2) )
return DialogLayer::handleDialogTap(a1);
}
v2 = a2 - 1001;
if ( v2 <= 0xE )
{
result = 20481;
if ( _bittest(&result, v2) )
return DialogLayer::handleDialogTap(a1);
}
return result;
}