{"type": "func", "start": 6442780752, "end": 6442780827, "name": "cocos2d::CCLayer::registerScriptKeypadHandler", "pseudocode": "// \n// cocos2d::CCLayer::registerScriptKeypadHandler from 0x180050850 to 0x18005089b (75 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b201c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCLayer::registerScriptKeypadHandler(cocos2d::CCLayer *this, unsigned int a2)\n{\n  cocos2d::CCScriptHandlerEntry *m_pScriptKeypadHandlerEntry; // rcx\n  cocos2d::CCScriptHandlerEntry *v5; // rax\n\n  m_pScriptKeypadHandlerEntry = this->m_pScriptKeypadHandlerEntry;\n  if ( m_pScriptKeypadHandlerEntry )\n  {\n    cocos2d::CCObject::release(m_pScriptKeypadHandlerEntry);\n    this->m_pScriptKeypadHandlerEntry = nullptr;\n  }\n  v5 = (cocos2d::CCScriptHandlerEntry *)sub_1800B6810(a2);\n  this->m_pScriptKeypadHandlerEntry = v5;\n  cocos2d::CCObject::retain(v5);\n}", "assembly": "; \n; cocos2d::CCLayer::registerScriptKeypadHandler from 0x180050850 to 0x18005089b (75 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b201c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180050850\npush    rdi                                                            ; +0x5, 0x180050855\nsub     rsp, 20h                                                       ; +0x6, 0x180050856\nmov     rbx, rcx                                                       ; +0xa, 0x18005085a\nmov     edi, edx                                                       ; +0xd, 0x18005085d\nmov     rcx, [rcx+178h]; this                                          ; +0xf, 0x18005085f\ntest    rcx, rcx                                                       ; +0x16, 0x180050866\njz      short loc_18005087B                                            ; +0x19, 0x180050869\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1b, 0x18005086b\nmov     qword ptr [rbx+178h], 0                                        ; +0x20, 0x180050870\nmov     ecx, edi                                                       ; +0x2b, 0x18005087b\ncall    sub_1800B6810                                                  ; +0x2d, 0x18005087d\nmov     rcx, rax; this                                                 ; +0x32, 0x180050882\nmov     [rbx+178h], rax                                                ; +0x35, 0x180050885\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3c, 0x18005088c\nadd     rsp, 20h                                                       ; +0x41, 0x180050891\npop     rdi                                                            ; +0x45, 0x180050895\njmp     ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x46, 0x180050896", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b201c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}