{"type": "func", "start": 4298083200, "end": 4298083260, "name": "EndLevelLayer::keyDown", "pseudocode": "// \n// EndLevelLayer::keyDown from 0x1002f8b80 to 0x1002f8bbc (60 bytes)\n// \n// 2 xrefs:\n// > sub_1002F8BBC @ 0x1002f8bc0\n// > <???> @ 0x1007e9430\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall EndLevelLayer::keyDown(EndLevelLayer *a1, cocos2d::enumKeyCodes a2, double a3)\n{\n  if ( a2 <= (KEY_OEM3|KEY_Down|0x300) )\n  {\n    if ( a2 != KEY_Escape )\n    {\n      if ( a2 == KEY_Space )\n        goto LABEL_5;\nLABEL_8:\n      cocos2d::CCLayer::keyDown(a1, a2, a3);\n      return;\n    }\n  }\n  else\n  {\n    if ( a2 == CONTROLLER_Start )\n    {\nLABEL_5:\n      EndLevelLayer::onReplay(a1, *(cocos2d::CCObject **)&a2);\n      return;\n    }\n    if ( a2 != CONTROLLER_B )\n    {\n      if ( a2 == CONTROLLER_A )\n        goto LABEL_5;\n      goto LABEL_8;\n    }\n  }\n  EndLevelLayer::onMenu(a1, *(cocos2d::CCObject **)&a2);\n}", "assembly": "; \n; EndLevelLayer::keyDown from 0x1002f8b80 to 0x1002f8bbc (60 bytes)\n; \n; 2 xrefs:\n; > sub_1002F8BBC @ 0x1002f8bc0\n; > <???> @ 0x1007e9430\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\nCMP             W1, #0x3E8                                             ; +0x0, 0x1002f8b80\nB.LE            loc_1002F8BA4                                          ; +0x4, 0x1002f8b84\nCMP             W1, #0x3F1                                             ; +0x8, 0x1002f8b88\nB.EQ            loc_1002F8BA0                                          ; +0xc, 0x1002f8b8c\nCMP             W1, #0x3EB                                             ; +0x10, 0x1002f8b90\nB.EQ            loc_1002F8BB8                                          ; +0x14, 0x1002f8b94\nCMP             W1, #0x3E9                                             ; +0x18, 0x1002f8b98\nB.NE            loc_1002F8BB4                                          ; +0x1c, 0x1002f8b9c\nB               EndLevelLayer__onReplay                                ; +0x20, 0x1002f8ba0\nCMP             W1, #0x1B                                              ; +0x24, 0x1002f8ba4\nB.EQ            loc_1002F8BB8                                          ; +0x28, 0x1002f8ba8\nCMP             W1, #0x20 ; ' '                                        ; +0x2c, 0x1002f8bac\nB.EQ            loc_1002F8BA0                                          ; +0x30, 0x1002f8bb0\nB               cocos2d__CCLayer__keyDown                              ; +0x34, 0x1002f8bb4\nB               EndLevelLayer__onMenu                                  ; +0x38, 0x1002f8bb8", "xrefs": ["sub_1002F8BBC @ 0x1002f8bc0", "<???> @ 0x1007e9430"], "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"}