//
// cocos2d::CCLayer::registerScriptKeypadHandler from 0x1004a9ec0 to 0x1004a9f04 (68 bytes)
//
// 0 xrefs:
//
// 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:30:56 +0000
//
void __fastcall cocos2d::CCLayer::registerScriptKeypadHandler(__int64 a1, int a2)
{
_DWORD *v3; // rdi
_DWORD *v4; // rax
v3 = *(_DWORD **)(a1 + 376);
if ( v3 )
{
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 376) = 0;
}
v4 = cocos2d::CCScriptHandlerEntry::create(a2);
*(_QWORD *)(a1 + 376) = v4;
cocos2d::CCObject::retain((__int64)v4);
}