{"type": "func", "start": 5072632, "end": 5072676, "name": "DialogLayer::keyDown", "pseudocode": "// \n// DialogLayer::keyDown from 0x4d66f8 to 0x4d6724 (44 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'DialogLayer::keyDown @ 0x4d6728\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 DialogLayer::keyDown(DialogLayer *a1, cocos2d::enumKeyCodes a2, double a3)\n{\n  bool v3; // zf\n\n  if ( a2 == KEY_Up )\n    goto LABEL_10;\n  if ( a2 > KEY_Up )\n  {\n    if ( a2 == CONTROLLER_RB || a2 == CONTROLLER_LB )\n      goto LABEL_10;\n    v3 = a2 == CONTROLLER_A;\n  }\n  else\n  {\n    if ( a2 == KEY_Escape )\n    {\nLABEL_10:\n      DialogLayer::handleDialogTap(a1);\n      return;\n    }\n    v3 = a2 == KEY_Space;\n  }\n  if ( v3 )\n    goto LABEL_10;\n}", "assembly": "; \n; DialogLayer::keyDown from 0x4d66f8 to 0x4d6724 (44 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'DialogLayer::keyDown @ 0x4d6728\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             R1, #0x26 ; '&'                                        ; +0x0, 0x4d66f8\nBEQ             loc_4D671E                                             ; +0x2, 0x4d66fa\nBGT             loc_4D6706                                             ; +0x4, 0x4d66fc\nCMP             R1, #0x1B                                              ; +0x6, 0x4d66fe\nBEQ             loc_4D671E                                             ; +0x8, 0x4d6700\nCMP             R1, #0x20 ; ' '                                        ; +0xa, 0x4d6702\nB               loc_4D671C                                             ; +0xc, 0x4d6704\nMOVW            R3, #0x3F5                                             ; +0xe, 0x4d6706\nCMP             R1, R3                                                 ; +0x12, 0x4d670a\nBEQ             loc_4D671E                                             ; +0x14, 0x4d670c\nMOVW            R3, #0x3F7                                             ; +0x16, 0x4d670e\nCMP             R1, R3                                                 ; +0x1a, 0x4d6712\nBEQ             loc_4D671E                                             ; +0x1c, 0x4d6714\nMOVW            R3, #0x3E9                                             ; +0x1e, 0x4d6716\nCMP             R1, R3                                                 ; +0x22, 0x4d671a\nBNE             locret_4D6722                                          ; +0x24, 0x4d671c\nB.W             _ZN11DialogLayer15handleDialogTapEv; DialogLayer::handleDialogTap(void) ; +0x26, 0x4d671e\nBX              LR                                                     ; +0x2a, 0x4d6722", "xrefs": ["`non-virtual thunk to'DialogLayer::keyDown @ 0x4d6728"], "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"}