{"type": "func", "start": 7548928, "end": 7549104, "name": "AchievementsLayer::keyDown", "pseudocode": "// \n// AchievementsLayer::keyDown from 0x733000 to 0x7330b0 (176 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x7330b4\n// > <???> @ 0xa5730\n// > <???> @ 0x142a208\n// \n// This function is hookable on this platform (idp: arm, 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:52:37 +0000\n// \n\n__int64 __fastcall AchievementsLayer::keyDown(AchievementsLayer *a1, int a2)\n{\n  __int64 result; // x0\n\n  if ( a2 == 39 )\n    goto LABEL_5;\n  if ( a2 <= 39 )\n  {\n    if ( a2 != 37 )\n      return cocos2d::CCLayer::keyDown(a1);\n  }\n  else if ( a2 != 1025 )\n  {\n    if ( a2 == 1027 )\n    {\nLABEL_5:\n      result = (*(unsigned __int8 (__fastcall **)(_QWORD *))(**((_QWORD **)a1 + 76) + 352LL))(*((_QWORD **)a1 + 76));\n      if ( (_BYTE)result )\n        return AchievementsLayer::onNextPage(a1, nullptr);\n      return result;\n    }\n    return cocos2d::CCLayer::keyDown(a1);\n  }\n  result = (*(unsigned __int8 (__fastcall **)(_QWORD *))(**((_QWORD **)a1 + 77) + 352LL))(*((_QWORD **)a1 + 77));\n  if ( (_BYTE)result )\n    return AchievementsLayer::onPrevPage(a1, nullptr);\n  return result;\n}", "assembly": "; \n; AchievementsLayer::keyDown from 0x733000 to 0x7330b0 (176 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x7330b4\n; > <???> @ 0xa5730\n; > <???> @ 0x142a208\n; \n; This function is hookable on this platform (idp: arm, 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:52:37 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x733000\nCMP             W1, #0x27 ; '''                                        ; +0x4, 0x733004\nMOV             X29, SP                                                ; +0x8, 0x733008\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x73300c\nMOV             X19, X0                                                ; +0x10, 0x733010\nB.EQ            loc_73302C                                             ; +0x14, 0x733014\nB.LE            loc_73305C                                             ; +0x18, 0x733018\nCMP             W1, #0x401                                             ; +0x1c, 0x73301c\nB.EQ            loc_733074                                             ; +0x20, 0x733020\nCMP             W1, #0x403                                             ; +0x24, 0x733024\nB.NE            loc_733064                                             ; +0x28, 0x733028\nLDR             X1, [X19,#0x260]                                       ; +0x2c, 0x73302c\nMOV             X0, X1                                                 ; +0x30, 0x733030\nLDR             X1, [X1]                                               ; +0x34, 0x733034\nLDR             X1, [X1,#0x160]                                        ; +0x38, 0x733038\nBLR             X1                                                     ; +0x3c, 0x73303c\nUXTB            W0, W0                                                 ; +0x40, 0x733040\nCBZ             W0, loc_733090                                         ; +0x44, 0x733044\nMOV             X0, X19; this                                          ; +0x48, 0x733048\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x4c, 0x73304c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x50, 0x733050\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x54, 0x733054\nB               _ZN17AchievementsLayer10onNextPageEPN7cocos2d8CCObjectE; AchievementsLayer::onNextPage(cocos2d::CCObject *) ; +0x58, 0x733058\nCMP             W1, #0x25 ; '%'                                        ; +0x5c, 0x73305c\nB.EQ            loc_733074                                             ; +0x60, 0x733060\nMOV             X0, X19                                                ; +0x64, 0x733064\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x68, 0x733068\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x6c, 0x73306c\nB               _ZN7cocos2d7CCLayer7keyDownENS_12enumKeyCodesEd; cocos2d::CCLayer::keyDown(cocos2d::enumKeyCodes,double) ; +0x70, 0x733070\nLDR             X1, [X19,#0x268]                                       ; +0x74, 0x733074\nMOV             X0, X1                                                 ; +0x78, 0x733078\nLDR             X1, [X1]                                               ; +0x7c, 0x73307c\nLDR             X1, [X1,#0x160]                                        ; +0x80, 0x733080\nBLR             X1                                                     ; +0x84, 0x733084\nUXTB            W0, W0                                                 ; +0x88, 0x733088\nCBNZ            W0, loc_73309C                                         ; +0x8c, 0x73308c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x90, 0x733090\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x94, 0x733094\nRET                                                                    ; +0x98, 0x733098\nMOV             X0, X19; this                                          ; +0x9c, 0x73309c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xa0, 0x7330a0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa4, 0x7330a4\nMOV             X1, #0; cocos2d::CCObject *                            ; +0xa8, 0x7330a8\nB               _ZN17AchievementsLayer10onPrevPageEPN7cocos2d8CCObjectE; AchievementsLayer::onPrevPage(cocos2d::CCObject *) ; +0xac, 0x7330ac", "xrefs": ["`non-virtual thunk to'AchievementsLayer::keyDown @ 0x7330b4", "<???> @ 0xa5730", "<???> @ 0x142a208"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}