{"type": "func", "start": 6442788464, "end": 6442788539, "name": "cocos2d::CCLayer::registerScriptKeypadHandler", "pseudocode": "// \n// cocos2d::CCLayer::registerScriptKeypadHandler from 0x180052670 to 0x1800526bb (75 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc2b0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:45 +0000\n// \n\nvoid __fastcall cocos2d::CCLayer::registerScriptKeypadHandler(cocos2d::CCLayer *this, unsigned int a2)\n{\n  cocos2d::CCObject *v4; // rcx\n  cocos2d::CCObject *v5; // rax\n\n  v4 = *((cocos2d::CCObject **)this + 47);\n  if ( v4 )\n  {\n    cocos2d::CCObject::release(v4);\n    *((_QWORD *)this + 47) = 0;\n  }\n  v5 = (cocos2d::CCObject *)cocos2d::CCScriptHandlerEntry::create(a2);\n  *((_QWORD *)this + 47) = v5;\n  cocos2d::CCObject::retain(v5);\n}", "assembly": "; \n; cocos2d::CCLayer::registerScriptKeypadHandler from 0x180052670 to 0x1800526bb (75 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc2b0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180052670\npush    rdi                                                            ; +0x5, 0x180052675\nsub     rsp, 20h                                                       ; +0x6, 0x180052676\nmov     rbx, rcx                                                       ; +0xa, 0x18005267a\nmov     edi, edx                                                       ; +0xd, 0x18005267d\nmov     rcx, [rcx+178h]; this                                          ; +0xf, 0x18005267f\ntest    rcx, rcx                                                       ; +0x16, 0x180052686\njz      short loc_18005269B                                            ; +0x19, 0x180052689\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1b, 0x18005268b\nmov     qword ptr [rbx+178h], 0                                        ; +0x20, 0x180052690\nmov     ecx, edi                                                       ; +0x2b, 0x18005269b\ncall    cocos2d__CCScriptHandlerEntry__create                          ; +0x2d, 0x18005269d\nmov     rcx, rax; this                                                 ; +0x32, 0x1800526a2\nmov     [rbx+178h], rax                                                ; +0x35, 0x1800526a5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3c, 0x1800526ac\nadd     rsp, 20h                                                       ; +0x41, 0x1800526b1\npop     rdi                                                            ; +0x45, 0x1800526b5\njmp     ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x46, 0x1800526b6", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc2b0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}