{"type": "func", "start": 5460922, "end": 5460986, "name": "EndLevelLayer::keyDown", "pseudocode": "// \n// EndLevelLayer::keyDown from 0x5353ba to 0x5353fa (64 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EndLevelLayer::keyDown @ 0x5353fe\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:52:06 +0000\n// \n\nPlayLayer **__fastcall EndLevelLayer::keyDown(PlayLayer **a1, int a2)\n{\n  bool v2; // zf\n\n  if ( a2 == 1001 )\n    return EndLevelLayer::onReplay(a1, nullptr);\n  if ( a2 > 1001 )\n  {\n    if ( a2 != 1003 )\n    {\n      v2 = a2 == 1009;\nLABEL_7:\n      if ( !v2 )\n        return (PlayLayer **)cocos2d::CCLayer::keyDown(a1);\n      return EndLevelLayer::onReplay(a1, nullptr);\n    }\n  }\n  else if ( a2 != 27 )\n  {\n    v2 = a2 == 32;\n    goto LABEL_7;\n  }\n  return (PlayLayer **)EndLevelLayer::onMenu((int)a1, nullptr);\n}", "assembly": "; \n; EndLevelLayer::keyDown from 0x5353ba to 0x5353fa (64 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EndLevelLayer::keyDown @ 0x5353fe\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:52:06 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x5353ba\nMOVW            R4, #0x3E9                                             ; +0x2, 0x5353bc\nCMP             R1, R4                                                 ; +0x6, 0x5353c0\nBEQ             loc_5353DE                                             ; +0x8, 0x5353c2\nBGT             loc_5353CE                                             ; +0xa, 0x5353c4\nCMP             R1, #0x1B                                              ; +0xc, 0x5353c6\nBEQ             loc_5353E8                                             ; +0xe, 0x5353c8\nCMP             R1, #0x20 ; ' '                                        ; +0x10, 0x5353ca\nB               loc_5353DC                                             ; +0x12, 0x5353cc\nMOVW            R4, #0x3EB                                             ; +0x14, 0x5353ce\nCMP             R1, R4                                                 ; +0x18, 0x5353d2\nBEQ             loc_5353E8                                             ; +0x1a, 0x5353d4\nMOVW            R4, #0x3F1                                             ; +0x1c, 0x5353d6\nCMP             R1, R4                                                 ; +0x20, 0x5353da\nBNE             loc_5353F2                                             ; +0x22, 0x5353dc\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x24, 0x5353de\nPOP.W           {R4,LR}                                                ; +0x26, 0x5353e0\nB.W             _ZN13EndLevelLayer8onReplayEPN7cocos2d8CCObjectE; EndLevelLayer::onReplay(cocos2d::CCObject *) ; +0x2a, 0x5353e4\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2e, 0x5353e8\nPOP.W           {R4,LR}                                                ; +0x30, 0x5353ea\nB.W             _ZN13EndLevelLayer6onMenuEPN7cocos2d8CCObjectE; EndLevelLayer::onMenu(cocos2d::CCObject *) ; +0x34, 0x5353ee\nPOP.W           {R4,LR}                                                ; +0x38, 0x5353f2\nB.W             _ZN7cocos2d7CCLayer7keyDownENS_12enumKeyCodesEd; cocos2d::CCLayer::keyDown(cocos2d::enumKeyCodes,double) ; +0x3c, 0x5353f6", "xrefs": ["`non-virtual thunk to'EndLevelLayer::keyDown @ 0x5353fe"], "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"}