//
// -[EAGLView keyUpExec:] from 0x100666f30 to 0x100667013 (227 bytes)
//
// 1 xrefs:
// > ??> @ 0x10099b2e8
//
// 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 __cdecl -[EAGLView keyUpExec:](EAGLView *self, SEL a2, id a3)
{
double v3; // xmm0_8
unsigned __int16 v5; // ax
unsigned int v6; // eax
cocos2d::enumKeyCodes v7; // r14d
cocos2d::CCDirector *v8; // rax
cocos2d::CCKeyboardDispatcher *v9; // rax
unsigned int v10; // eax
_BOOL4 v11; // r14d
_BOOL4 v12; // r15d
_BOOL4 v13; // r12d
_BOOL4 v14; // ebx
cocos2d::CCDirector *v15; // rax
cocos2d::CCKeyboardDispatcher *v16; // rax
objc_msgSend(a3, "timestamp");
v5 = (unsigned __int16)objc_msgSend(a3, "keyCode");
v6 = -[EAGLView convertKeyCode:](self, "convertKeyCode:", v5);
if ( v6 != -1 )
{
v7 = v6;
v8 = cocos2d::CCDirector::sharedDirector();
v9 = (cocos2d::CCKeyboardDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v8->getKeyboardDispatcher)(v8);
cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG(v9, v7, 0, 0, v3);
}
v10 = (unsigned int)objc_msgSend(a3, "modifierFlags");
v11 = (v10 >> 17) & 1;
v12 = (v10 >> 18) & 1;
v13 = (v10 >> 19) & 1;
v14 = (v10 >> 20) & 1;
v15 = cocos2d::CCDirector::sharedDirector();
v16 = (cocos2d::CCKeyboardDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v15->getKeyboardDispatcher)(v15);
cocos2d::CCKeyboardDispatcher::updateModifierKeys(v16, v11, v12, v13, v14);
}