{"type": "func", "start": 4298492720, "end": 4298492870, "name": "AchievementsLayer::keyDown", "pseudocode": "// \n// AchievementsLayer::keyDown from 0x10035cb30 to 0x10035cbc6 (150 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b256d0\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 12:28:54 +0000\n// \n\n__int64 __fastcall AchievementsLayer::keyDown(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  if ( a2 > 1024 )\n  {\n    if ( a2 == 1027 )\n    {\nLABEL_9:\n      result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 608) + 352LL))(*(_QWORD *)(a1 + 608));\n      if ( (_BYTE)result )\n        return AchievementsLayer::loadPage(a1, *(_DWORD *)(a1 + 604) + 1);\n      return result;\n    }\n    if ( a2 != 1025 )\n      return cocos2d::CCLayer::keyDown(a1);\n  }\n  else if ( a2 != 37 )\n  {\n    if ( a2 != 39 )\n      return cocos2d::CCLayer::keyDown(a1);\n    goto LABEL_9;\n  }\n  result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 616) + 352LL))(*(_QWORD *)(a1 + 616));\n  if ( (_BYTE)result )\n    return AchievementsLayer::loadPage(a1, *(_DWORD *)(a1 + 604) - 1);\n  return result;\n}", "assembly": "; \n; AchievementsLayer::keyDown from 0x10035cb30 to 0x10035cbc6 (150 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b256d0\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 12:28:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x10035cb30\nmov     rbp, rsp                                                       ; +0x1, 0x10035cb31\npush    rbx                                                            ; +0x4, 0x10035cb34\npush    rax                                                            ; +0x5, 0x10035cb35\ncmp     esi, 400h                                                      ; +0x6, 0x10035cb36\njg      short loc_10035CB4A                                            ; +0xc, 0x10035cb3c\ncmp     esi, 25h ; '%'                                                 ; +0xe, 0x10035cb3e\njz      short loc_10035CB5A                                            ; +0x11, 0x10035cb41\ncmp     esi, 27h ; '''                                                 ; +0x13, 0x10035cb43\njz      short loc_10035CB87                                            ; +0x16, 0x10035cb46\njmp     short loc_10035CBBB                                            ; +0x18, 0x10035cb48\ncmp     esi, 403h                                                      ; +0x1a, 0x10035cb4a\njz      short loc_10035CB87                                            ; +0x20, 0x10035cb50\ncmp     esi, 401h                                                      ; +0x22, 0x10035cb52\njnz     short loc_10035CBBB                                            ; +0x28, 0x10035cb58\nmov     rbx, rdi                                                       ; +0x2a, 0x10035cb5a\nmov     rdi, [rdi+268h]                                                ; +0x2d, 0x10035cb5d\nmov     rax, [rdi]                                                     ; +0x34, 0x10035cb64\ncall    qword ptr [rax+160h]                                           ; +0x37, 0x10035cb67\ntest    al, al                                                         ; +0x3d, 0x10035cb6d\njz      short loc_10035CBB4                                            ; +0x3f, 0x10035cb6f\nmov     rdi, rbx                                                       ; +0x41, 0x10035cb71\nmov     esi, [rbx+25Ch]                                                ; +0x44, 0x10035cb74\ndec     esi                                                            ; +0x4a, 0x10035cb7a\nadd     rsp, 8                                                         ; +0x4c, 0x10035cb7c\npop     rbx                                                            ; +0x50, 0x10035cb80\npop     rbp                                                            ; +0x51, 0x10035cb81\njmp     AchievementsLayer__loadPage                                    ; +0x52, 0x10035cb82\nmov     rbx, rdi                                                       ; +0x57, 0x10035cb87\nmov     rdi, [rdi+260h]                                                ; +0x5a, 0x10035cb8a\nmov     rax, [rdi]                                                     ; +0x61, 0x10035cb91\ncall    qword ptr [rax+160h]                                           ; +0x64, 0x10035cb94\ntest    al, al                                                         ; +0x6a, 0x10035cb9a\njz      short loc_10035CBB4                                            ; +0x6c, 0x10035cb9c\nmov     rdi, rbx                                                       ; +0x6e, 0x10035cb9e\nmov     esi, [rbx+25Ch]                                                ; +0x71, 0x10035cba1\ninc     esi                                                            ; +0x77, 0x10035cba7\nadd     rsp, 8                                                         ; +0x79, 0x10035cba9\npop     rbx                                                            ; +0x7d, 0x10035cbad\npop     rbp                                                            ; +0x7e, 0x10035cbae\njmp     AchievementsLayer__loadPage                                    ; +0x7f, 0x10035cbaf\nadd     rsp, 8                                                         ; +0x84, 0x10035cbb4\npop     rbx                                                            ; +0x88, 0x10035cbb8\npop     rbp                                                            ; +0x89, 0x10035cbb9\nretn                                                                   ; +0x8a, 0x10035cbba\nadd     rsp, 8                                                         ; +0x8b, 0x10035cbbb\npop     rbx                                                            ; +0x8f, 0x10035cbbf\npop     rbp                                                            ; +0x90, 0x10035cbc0\njmp     cocos2d__CCLayer__keyDown                                      ; +0x91, 0x10035cbc1", "xrefs": ["<???> @ 0x100b256d0"], "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"}