{"type": "func", "start": 4298585696, "end": 4298585846, "name": "AchievementsLayer::keyDown", "pseudocode": "// \n// AchievementsLayer::keyDown from 0x100373660 to 0x1003736f6 (150 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10091d448\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 AchievementsLayer::keyDown(AchievementsLayer *a1, cocos2d::enumKeyCodes a2, double a3)\n{\n  if ( a2 > 1024 )\n  {\n    if ( a2 == CONTROLLER_Right )\n    {\nLABEL_9:\n      if ( ((unsigned __int8 (__fastcall *)(CCMenuItemSpriteExtra *, double))a1->m_nextPageButton->isVisible)(\n             a1->m_nextPageButton,\n             a3) )\n      {\n        AchievementsLayer::loadPage(a1, a1->m_currentPage + 1);\n      }\n      return;\n    }\n    if ( a2 != CONTROLLER_Left )\n    {\nLABEL_12:\n      cocos2d::CCLayer::keyDown(a1, a2, a3);\n      return;\n    }\n  }\n  else if ( a2 != KEY_Left )\n  {\n    if ( a2 != KEY_Right )\n      goto LABEL_12;\n    goto LABEL_9;\n  }\n  if ( ((unsigned __int8 (__fastcall *)(CCMenuItemSpriteExtra *, double))a1->m_prevPageButton->isVisible)(\n         a1->m_prevPageButton,\n         a3) )\n  {\n    AchievementsLayer::loadPage(a1, a1->m_currentPage - 1);\n  }\n}", "assembly": "; \n; AchievementsLayer::keyDown from 0x100373660 to 0x1003736f6 (150 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10091d448\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\npush    rbp                                                            ; +0x0, 0x100373660\nmov     rbp, rsp                                                       ; +0x1, 0x100373661\npush    rbx                                                            ; +0x4, 0x100373664\npush    rax                                                            ; +0x5, 0x100373665\ncmp     esi, 400h                                                      ; +0x6, 0x100373666\njg      short loc_10037367A                                            ; +0xc, 0x10037366c\ncmp     esi, 25h ; '%'                                                 ; +0xe, 0x10037366e\njz      short loc_10037368A                                            ; +0x11, 0x100373671\ncmp     esi, 27h ; '''                                                 ; +0x13, 0x100373673\njz      short loc_1003736B7                                            ; +0x16, 0x100373676\njmp     short loc_1003736EB                                            ; +0x18, 0x100373678\ncmp     esi, 403h                                                      ; +0x1a, 0x10037367a\njz      short loc_1003736B7                                            ; +0x20, 0x100373680\ncmp     esi, 401h                                                      ; +0x22, 0x100373682\njnz     short loc_1003736EB                                            ; +0x28, 0x100373688\nmov     rbx, rdi                                                       ; +0x2a, 0x10037368a\nmov     rdi, [rdi+268h]                                                ; +0x2d, 0x10037368d\nmov     rax, [rdi]                                                     ; +0x34, 0x100373694\ncall    qword ptr [rax+150h]                                           ; +0x37, 0x100373697\ntest    al, al                                                         ; +0x3d, 0x10037369d\njz      short loc_1003736E4                                            ; +0x3f, 0x10037369f\nmov     rdi, rbx                                                       ; +0x41, 0x1003736a1\nmov     esi, [rbx+25Ch]                                                ; +0x44, 0x1003736a4\ndec     esi                                                            ; +0x4a, 0x1003736aa\nadd     rsp, 8                                                         ; +0x4c, 0x1003736ac\npop     rbx                                                            ; +0x50, 0x1003736b0\npop     rbp                                                            ; +0x51, 0x1003736b1\njmp     AchievementsLayer__loadPage                                    ; +0x52, 0x1003736b2\nmov     rbx, rdi                                                       ; +0x57, 0x1003736b7\nmov     rdi, [rdi+260h]                                                ; +0x5a, 0x1003736ba\nmov     rax, [rdi]                                                     ; +0x61, 0x1003736c1\ncall    qword ptr [rax+150h]                                           ; +0x64, 0x1003736c4\ntest    al, al                                                         ; +0x6a, 0x1003736ca\njz      short loc_1003736E4                                            ; +0x6c, 0x1003736cc\nmov     rdi, rbx                                                       ; +0x6e, 0x1003736ce\nmov     esi, [rbx+25Ch]                                                ; +0x71, 0x1003736d1\ninc     esi                                                            ; +0x77, 0x1003736d7\nadd     rsp, 8                                                         ; +0x79, 0x1003736d9\npop     rbx                                                            ; +0x7d, 0x1003736dd\npop     rbp                                                            ; +0x7e, 0x1003736de\njmp     AchievementsLayer__loadPage                                    ; +0x7f, 0x1003736df\nadd     rsp, 8                                                         ; +0x84, 0x1003736e4\npop     rbx                                                            ; +0x88, 0x1003736e8\npop     rbp                                                            ; +0x89, 0x1003736e9\nretn                                                                   ; +0x8a, 0x1003736ea\nadd     rsp, 8                                                         ; +0x8b, 0x1003736eb\npop     rbx                                                            ; +0x8f, 0x1003736ef\npop     rbp                                                            ; +0x90, 0x1003736f0\njmp     cocos2d__CCLayer__keyDown                                      ; +0x91, 0x1003736f1", "xrefs": ["<???> @ 0x10091d448"], "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"}