{"type": "func", "start": 4355734, "end": 4355798, "name": "EndLevelLayer::keyDown", "pseudocode": "// \n// EndLevelLayer::keyDown from 0x427696 to 0x4276d6 (64 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EndLevelLayer::keyDown @ 0x4276da\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 EndLevelLayer::keyDown(EndLevelLayer *a1, cocos2d::enumKeyCodes a2, double a3)\n{\n  bool v3; // zf\n\n  if ( a2 == CONTROLLER_A )\n  {\nLABEL_9:\n    EndLevelLayer::onReplay(a1, nullptr);\n    return;\n  }\n  if ( a2 > CONTROLLER_A )\n  {\n    if ( a2 != CONTROLLER_B )\n    {\n      v3 = a2 == CONTROLLER_Start;\nLABEL_7:\n      if ( !v3 )\n      {\n        cocos2d::CCLayer::keyDown(a1, a2, a3);\n        return;\n      }\n      goto LABEL_9;\n    }\n  }\n  else if ( a2 != KEY_Escape )\n  {\n    v3 = a2 == KEY_Space;\n    goto LABEL_7;\n  }\n  EndLevelLayer::onMenu(a1, nullptr);\n}", "assembly": "; \n; EndLevelLayer::keyDown from 0x427696 to 0x4276d6 (64 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EndLevelLayer::keyDown @ 0x4276da\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            {R4,LR}                                                ; +0x0, 0x427696\nMOVW            R4, #0x3E9                                             ; +0x2, 0x427698\nCMP             R1, R4                                                 ; +0x6, 0x42769c\nBEQ             loc_4276BA                                             ; +0x8, 0x42769e\nBGT             loc_4276AA                                             ; +0xa, 0x4276a0\nCMP             R1, #0x1B                                              ; +0xc, 0x4276a2\nBEQ             loc_4276C4                                             ; +0xe, 0x4276a4\nCMP             R1, #0x20 ; ' '                                        ; +0x10, 0x4276a6\nB               loc_4276B8                                             ; +0x12, 0x4276a8\nMOVW            R4, #0x3EB                                             ; +0x14, 0x4276aa\nCMP             R1, R4                                                 ; +0x18, 0x4276ae\nBEQ             loc_4276C4                                             ; +0x1a, 0x4276b0\nMOVW            R4, #0x3F1                                             ; +0x1c, 0x4276b2\nCMP             R1, R4                                                 ; +0x20, 0x4276b6\nBNE             loc_4276CE                                             ; +0x22, 0x4276b8\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x24, 0x4276ba\nPOP.W           {R4,LR}                                                ; +0x26, 0x4276bc\nB.W             _ZN13EndLevelLayer8onReplayEPN7cocos2d8CCObjectE; EndLevelLayer::onReplay(cocos2d::CCObject *) ; +0x2a, 0x4276c0\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2e, 0x4276c4\nPOP.W           {R4,LR}                                                ; +0x30, 0x4276c6\nB.W             _ZN13EndLevelLayer6onMenuEPN7cocos2d8CCObjectE; EndLevelLayer::onMenu(cocos2d::CCObject *) ; +0x34, 0x4276ca\nPOP.W           {R4,LR}                                                ; +0x38, 0x4276ce\nB.W             _ZN7cocos2d7CCLayer7keyDownENS_12enumKeyCodesEd; cocos2d::CCLayer::keyDown(cocos2d::enumKeyCodes,double) ; +0x3c, 0x4276d2", "xrefs": ["`non-virtual thunk to'EndLevelLayer::keyDown @ 0x4276da"], "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"}