{"type": "func", "start": 4299962704, "end": 4299962768, "name": "EndLevelLayer::keyDown", "pseudocode": "// \n// EndLevelLayer::keyDown from 0x1004c3950 to 0x1004c3990 (64 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10094f2b0\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 0x1004c3950 to 0x1004c3990 (64 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10094f2b0\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    rbp                                                            ; +0x0, 0x1004c3950\nmov     rbp, rsp                                                       ; +0x1, 0x1004c3951\ncmp     esi, 3E8h                                                      ; +0x4, 0x1004c3954\njle     short loc_1004C397A                                            ; +0xa, 0x1004c395a\ncmp     esi, 3F1h                                                      ; +0xc, 0x1004c395c\njz      short loc_1004C3974                                            ; +0x12, 0x1004c3962\ncmp     esi, 3EBh                                                      ; +0x14, 0x1004c3964\njz      short loc_1004C398A                                            ; +0x1a, 0x1004c396a\ncmp     esi, 3E9h                                                      ; +0x1c, 0x1004c396c\njnz     short loc_1004C3984                                            ; +0x22, 0x1004c3972\npop     rbp                                                            ; +0x24, 0x1004c3974\njmp     EndLevelLayer__onReplay                                        ; +0x25, 0x1004c3975\ncmp     esi, 1Bh                                                       ; +0x2a, 0x1004c397a\njz      short loc_1004C398A                                            ; +0x2d, 0x1004c397d\ncmp     esi, 20h ; ' '                                                 ; +0x2f, 0x1004c397f\njz      short loc_1004C3974                                            ; +0x32, 0x1004c3982\npop     rbp                                                            ; +0x34, 0x1004c3984\njmp     cocos2d__CCLayer__keyDown                                      ; +0x35, 0x1004c3985\npop     rbp                                                            ; +0x3a, 0x1004c398a\njmp     EndLevelLayer__onMenu                                          ; +0x3b, 0x1004c398b", "xrefs": ["<???> @ 0x10094f2b0"], "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"}