{"type": "func", "start": 4335308, "end": 4335406, "name": "AchievementsLayer::keyDown", "pseudocode": "// \n// AchievementsLayer::keyDown from 0x4226cc to 0x42272e (98 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x422732\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:02 +0000\n// \n\nint __fastcall AchievementsLayer::keyDown(AchievementsLayer *a1, int a2)\n{\n  int result; // r0\n\n  if ( a2 != 39 )\n  {\n    if ( a2 <= 39 )\n    {\n      if ( a2 != 37 )\n        return cocos2d::CCLayer::keyDown(a1);\n      goto LABEL_8;\n    }\n    if ( a2 == 1025 )\n    {\nLABEL_8:\n      result = (*(int (__fastcall **)(_DWORD *))(**((_DWORD **)a1 + 122) + 176))(*((_DWORD **)a1 + 122));\n      if ( result )\n        return AchievementsLayer::onPrevPage(a1, nullptr);\n      return result;\n    }\n    if ( a2 != 1027 )\n      return cocos2d::CCLayer::keyDown(a1);\n  }\n  result = (*(int (__fastcall **)(_DWORD *))(**((_DWORD **)a1 + 121) + 176))(*((_DWORD **)a1 + 121));\n  if ( result )\n    return AchievementsLayer::onNextPage(a1, nullptr);\n  return result;\n}", "assembly": "; \n; AchievementsLayer::keyDown from 0x4226cc to 0x42272e (98 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x422732\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:02 +0000\n; \nCMP             R1, #0x27 ; '''                                        ; +0x0, 0x4226cc\nPUSH            {R4,LR}                                                ; +0x2, 0x4226ce\nMOV             R4, R0                                                 ; +0x4, 0x4226d0\nBEQ             loc_422708                                             ; +0x6, 0x4226d2\nBGT             loc_4226DC                                             ; +0x8, 0x4226d4\nCMP             R1, #0x25 ; '%'                                        ; +0xa, 0x4226d6\nBEQ             loc_4226EE                                             ; +0xc, 0x4226d8\nB               loc_422722                                             ; +0xe, 0x4226da\nMOVW            R0, #0x401                                             ; +0x10, 0x4226dc\nCMP             R1, R0                                                 ; +0x14, 0x4226e0\nBEQ             loc_4226EE                                             ; +0x16, 0x4226e2\nMOVW            R0, #0x403                                             ; +0x18, 0x4226e4\nCMP             R1, R0                                                 ; +0x1c, 0x4226e8\nBEQ             loc_422708                                             ; +0x1e, 0x4226ea\nB               loc_422722                                             ; +0x20, 0x4226ec\nLDR.W           R0, [R4,#0x1E8]                                        ; +0x22, 0x4226ee\nLDR             R3, [R0]                                               ; +0x26, 0x4226f2\nLDR.W           R3, [R3,#0xB0]                                         ; +0x28, 0x4226f4\nBLX             R3                                                     ; +0x2c, 0x4226f8\nCBZ             R0, locret_42272C                                      ; +0x2e, 0x4226fa\nMOV             R0, R4; this                                           ; +0x30, 0x4226fc\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x32, 0x4226fe\nPOP.W           {R4,LR}                                                ; +0x34, 0x422700\nB.W             _ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE; AchievementsLayer::onPrevPage(cocos2d::CCObject *) ; +0x38, 0x422704\nLDR.W           R0, [R4,#0x1E4]                                        ; +0x3c, 0x422708\nLDR             R3, [R0]                                               ; +0x40, 0x42270c\nLDR.W           R3, [R3,#0xB0]                                         ; +0x42, 0x42270e\nBLX             R3                                                     ; +0x46, 0x422712\nCBZ             R0, locret_42272C                                      ; +0x48, 0x422714\nMOV             R0, R4; this                                           ; +0x4a, 0x422716\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x4c, 0x422718\nPOP.W           {R4,LR}                                                ; +0x4e, 0x42271a\nB.W             _ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE; AchievementsLayer::onNextPage(cocos2d::CCObject *) ; +0x52, 0x42271e\nMOV             R0, R4                                                 ; +0x56, 0x422722\nPOP.W           {R4,LR}                                                ; +0x58, 0x422724\nB.W             _ZN7cocos2d7CCLayer7keyDownENS_12enumKeyCodesEd; cocos2d::CCLayer::keyDown(cocos2d::enumKeyCodes,double) ; +0x5c, 0x422728\nPOP             {R4,PC}                                                ; +0x60, 0x42272c", "xrefs": ["`non-virtual thunk to'AchievementsLayer::keyDown @ 0x422732"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}