{"type": "func", "start": 6442779888, "end": 6442779944, "name": "cocos2d::CCLayer::keyDown", "pseudocode": "// \n// cocos2d::CCLayer::keyDown from 0x1800504f0 to 0x180050528 (56 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800ed378\n// > <???> @ 0x1800ed838\n// > <???> @ 0x1800edd88\n// > <???> @ 0x1800ee360\n// > <???> @ 0x1800ee8b0\n// > <???> @ 0x1800f7190\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1fbc\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::keyDown(cocos2d::CCLayer *this, enum cocos2d::enumKeyCodes a2, double a3)\n{\n  struct cocos2d::CCDirector *v3; // rax\n  cocos2d::CCKeypadDispatcher *v4; // rax\n\n  if ( a2 == KEY_Escape || a2 == CONTROLLER_B )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCKeypadDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v3->getKeypadDispatcher)(v3);\n    cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v4, kTypeBackClicked);\n  }\n}", "assembly": "; \n; cocos2d::CCLayer::keyDown from 0x1800504f0 to 0x180050528 (56 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800ed378\n; > <???> @ 0x1800ed838\n; > <???> @ 0x1800edd88\n; > <???> @ 0x1800ee360\n; > <???> @ 0x1800ee8b0\n; > <???> @ 0x1800f7190\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1fbc\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800504f0\ncmp     edx, 1Bh                                                       ; +0x4, 0x1800504f4\njz      short loc_180050501                                            ; +0x7, 0x1800504f7\ncmp     edx, 3EBh                                                      ; +0x9, 0x1800504f9\njnz     short loc_180050523                                            ; +0xf, 0x1800504ff\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x11, 0x180050501\nmov     rcx, rax                                                       ; +0x16, 0x180050506\nmov     rdx, [rax]                                                     ; +0x19, 0x180050509\ncall    qword ptr [rdx+0A0h]                                           ; +0x1c, 0x18005050c\nmov     rcx, rax                                                       ; +0x22, 0x180050512\nmov     edx, 1                                                         ; +0x25, 0x180050515\nadd     rsp, 28h                                                       ; +0x2a, 0x18005051a\njmp     ?dispatchKeypadMSG@CCKeypadDispatcher@cocos2d@@QEAA_NW4ccKeypadMSGType@2@@Z; cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(cocos2d::ccKeypadMSGType) ; +0x2e, 0x18005051e\nadd     rsp, 28h                                                       ; +0x33, 0x180050523\nretn                                                                   ; +0x37, 0x180050527", "xrefs": ["<???> @ 0x1800ed378", "<???> @ 0x1800ed838", "<???> @ 0x1800edd88", "<???> @ 0x1800ee360", "<???> @ 0x1800ee8b0", "<???> @ 0x1800f7190", "<???> @ 0x1801438a8", "<???> @ 0x1801b1fbc"], "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"}