//
// EmotePickerPopup::keyDown from 0x1004dbcf8 to 0x1004dbd78 (128 bytes)
//
// 2 xrefs:
// > sub_1004DBD78 @ 0x1004dbd7c
// > ??> @ 0x10098c2c0
//
// 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:06:34 +0000
//
__int64 __fastcall EmotePickerPopup::keyDown(_QWORD *a1, __int64 a2, __n128 a3)
{
double v5; // d8
__int64 v7; // x0
if ( (_DWORD)a2 == 27 )
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1368LL))(a1, 0);
v5 = a3.n128_f64[0];
v7 = a1[148];
if ( v7 )
(*(void (__fastcall **)(__int64, _QWORD *, __int64, __n128))(*(_QWORD *)v7 + 16LL))(v7, a1, a2, a3);
return EditorWindowPopup::keyDown((__int64)a1, a2, v5);
}