//
// Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyDown from 0xd819f8 to 0xd81a58 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0xb12c8
//
// 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 13:08:10 +0000
//
__int64 __fastcall Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyDown(cocos2d::CCDirector *a1, __int64 a2, int a3)
{
__int64 v3; // x0
__int64 v4; // x0
int v5; // w1
v3 = cocos2d::CCDirector::sharedDirector(a1);
if ( a3 == 4 )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 176LL))(v3);
v5 = 1;
return cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v4, v5);
}
if ( a3 == 82 )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 176LL))(v3);
v5 = 2;
return cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v4, v5);
}
return 0;
}