{"type": "func", "start": 6442787600, "end": 6442787659, "name": "cocos2d::CCLayer::keyDown", "pseudocode": "// \n// cocos2d::CCLayer::keyDown from 0x180052310 to 0x18005234b (59 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800f34d8\n// > <???> @ 0x1800f39b8\n// > <???> @ 0x1800f3f28\n// > <???> @ 0x1800f4520\n// > <???> @ 0x1800f4a90\n// > <???> @ 0x1800fd5d8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc250\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::keyDown(__int64 a1, int a2)\n{\n  struct cocos2d::CCDirector *v2; // rax\n  __int64 v3; // rax\n\n  if ( a2 == 27 || a2 == 1003 )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = (*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 160LL))(v2);\n    cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v3, 1);\n  }\n}", "assembly": "; \n; cocos2d::CCLayer::keyDown from 0x180052310 to 0x18005234b (59 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800f34d8\n; > <???> @ 0x1800f39b8\n; > <???> @ 0x1800f3f28\n; > <???> @ 0x1800f4520\n; > <???> @ 0x1800f4a90\n; > <???> @ 0x1800fd5d8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc250\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; \nsub     rsp, 28h                                                       ; +0x0, 0x180052310\ncmp     edx, 1Bh                                                       ; +0x4, 0x180052314\njz      short loc_180052321                                            ; +0x7, 0x180052317\ncmp     edx, 3EBh                                                      ; +0x9, 0x180052319\njnz     short loc_180052346                                            ; +0xf, 0x18005231f\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x11, 0x180052321\nmov     rcx, [rax]                                                     ; +0x16, 0x180052326\nmov     rdx, [rcx+0A0h]                                                ; +0x19, 0x180052329\nmov     rcx, rax                                                       ; +0x20, 0x180052330\ncall    rdx                                                            ; +0x23, 0x180052333\nmov     rcx, rax                                                       ; +0x25, 0x180052335\nmov     edx, 1                                                         ; +0x28, 0x180052338\nadd     rsp, 28h                                                       ; +0x2d, 0x18005233d\njmp     ?dispatchKeypadMSG@CCKeypadDispatcher@cocos2d@@QEAA_NW4ccKeypadMSGType@2@@Z; cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(cocos2d::ccKeypadMSGType) ; +0x31, 0x180052341\nadd     rsp, 28h                                                       ; +0x36, 0x180052346\nretn                                                                   ; +0x3a, 0x18005234a", "xrefs": ["<???> @ 0x1800f34d8", "<???> @ 0x1800f39b8", "<???> @ 0x1800f3f28", "<???> @ 0x1800f4520", "<???> @ 0x1800f4a90", "<???> @ 0x1800fd5d8", "<???> @ 0x18014cf68", "<???> @ 0x1801bc250"], "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"}