{"type": "func", "start": 5372800256, "end": 5372800404, "name": "LevelBrowserLayer::keyDown", "pseudocode": "// \n// LevelBrowserLayer::keyDown from 0x1403e6d00 to 0x1403e6d94 (148 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x140789a90\n// > <???> @ 0x14078e1b8\n// > <???> @ 0x140924fb0\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:31:43 +0000\n// \n\nvoid __fastcall LevelBrowserLayer::keyDown(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r8\n  __int64 v3; // rbx\n  __int64 v4; // rcx\n  __int64 v5; // rbx\n  __int64 v6; // rcx\n\n  v2 = (unsigned int)(a2 - 37);\n  if ( (_DWORD)a2 != 37 )\n  {\n    v2 = (unsigned int)(a2 - 39);\n    if ( (_DWORD)a2 == 39 )\n    {\nLABEL_6:\n      v3 = a1 - 344;\n      v4 = *(_QWORD *)(a1 + 272);\n      if ( v4 )\n      {\n        if ( (*(unsigned __int8 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 344LL))(v4, a2, v2) )\n          LevelBrowserLayer::onNextPage(v3);\n      }\n      return;\n    }\n    v2 = (unsigned int)(a2 - 1025);\n    if ( (_DWORD)a2 != 1025 )\n    {\n      if ( (_DWORD)a2 != 1027 )\n      {\n        cocos2d::CCLayer::keyDown();\n        return;\n      }\n      goto LABEL_6;\n    }\n  }\n  v5 = a1 - 344;\n  v6 = *(_QWORD *)(a1 + 280);\n  if ( v6 && (*(unsigned __int8 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, a2, v2) )\n    LevelBrowserLayer::onPrevPage(v5);\n}", "assembly": "; \n; LevelBrowserLayer::keyDown from 0x1403e6d00 to 0x1403e6d94 (148 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x140789a90\n; > <???> @ 0x14078e1b8\n; > <???> @ 0x140924fb0\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:31:43 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403e6d00\nsub     rsp, 20h                                                       ; +0x2, 0x1403e6d02\nmov     r8d, edx                                                       ; +0x6, 0x1403e6d06\nsub     r8d, 25h ; '%'                                                 ; +0x9, 0x1403e6d09\njz      short loc_1403E6D5F                                            ; +0xd, 0x1403e6d0d\nsub     r8d, 2                                                         ; +0xf, 0x1403e6d0f\njz      short loc_1403E6D30                                            ; +0x13, 0x1403e6d13\nsub     r8d, 3DAh                                                      ; +0x15, 0x1403e6d15\njz      short loc_1403E6D5F                                            ; +0x1c, 0x1403e6d1c\ncmp     r8d, 2                                                         ; +0x1e, 0x1403e6d1e\njz      short loc_1403E6D30                                            ; +0x22, 0x1403e6d22\nadd     rsp, 20h                                                       ; +0x24, 0x1403e6d24\npop     rbx                                                            ; +0x28, 0x1403e6d28\njmp     cs:__imp_?keyDown@CCLayer@cocos2d@@UEAAXW4enumKeyCodes@2@N@Z; cocos2d::CCLayer::keyDown(cocos2d::enumKeyCodes,double) ; +0x29, 0x1403e6d29\nlea     rbx, [rcx-158h]                                                ; +0x30, 0x1403e6d30\nmov     rcx, [rcx+110h]                                                ; +0x37, 0x1403e6d37\ntest    rcx, rcx                                                       ; +0x3e, 0x1403e6d3e\njz      short loc_1403E6D8E                                            ; +0x41, 0x1403e6d41\nmov     rax, [rcx]                                                     ; +0x43, 0x1403e6d43\ncall    qword ptr [rax+158h]                                           ; +0x46, 0x1403e6d46\ntest    al, al                                                         ; +0x4c, 0x1403e6d4c\njz      short loc_1403E6D8E                                            ; +0x4e, 0x1403e6d4e\nxor     edx, edx                                                       ; +0x50, 0x1403e6d50\nmov     rcx, rbx                                                       ; +0x52, 0x1403e6d52\nadd     rsp, 20h                                                       ; +0x55, 0x1403e6d55\npop     rbx                                                            ; +0x59, 0x1403e6d59\njmp     LevelBrowserLayer__onNextPage                                  ; +0x5a, 0x1403e6d5a\nlea     rbx, [rcx-158h]                                                ; +0x5f, 0x1403e6d5f\nmov     rcx, [rcx+118h]                                                ; +0x66, 0x1403e6d66\ntest    rcx, rcx                                                       ; +0x6d, 0x1403e6d6d\njz      short loc_1403E6D8E                                            ; +0x70, 0x1403e6d70\nmov     rax, [rcx]                                                     ; +0x72, 0x1403e6d72\ncall    qword ptr [rax+158h]                                           ; +0x75, 0x1403e6d75\ntest    al, al                                                         ; +0x7b, 0x1403e6d7b\njz      short loc_1403E6D8E                                            ; +0x7d, 0x1403e6d7d\nxor     edx, edx                                                       ; +0x7f, 0x1403e6d7f\nmov     rcx, rbx                                                       ; +0x81, 0x1403e6d81\nadd     rsp, 20h                                                       ; +0x84, 0x1403e6d84\npop     rbx                                                            ; +0x88, 0x1403e6d88\njmp     LevelBrowserLayer__onPrevPage                                  ; +0x89, 0x1403e6d89\nadd     rsp, 20h                                                       ; +0x8e, 0x1403e6d8e\npop     rbx                                                            ; +0x92, 0x1403e6d92\nretn                                                                   ; +0x93, 0x1403e6d93", "xrefs": ["<???> @ 0x140789a90", "<???> @ 0x14078e1b8", "<???> @ 0x140924fb0"], "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"}