{"type": "func", "start": 4295157548, "end": 4295157652, "name": "LevelInfoLayer::keyDown", "pseudocode": "// \n// LevelInfoLayer::keyDown from 0x10002e72c to 0x10002e794 (104 bytes)\n// \n// 2 xrefs:\n// > sub_10002E794 @ 0x10002e798\n// > <???> @ 0x1008b0940\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:29 +0000\n// \n\nvoid __fastcall LevelInfoLayer::keyDown(__int64 a1, int a2)\n{\n  if ( (*(_BYTE *)(a1 + 488) & 1) == 0 )\n  {\n    if ( a2 == 1009 || a2 == 32 )\n    {\n      if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 496) + 352LL))(*(_QWORD *)(a1 + 496)) )\n        LevelInfoLayer::onPlay(a1);\n    }\n    else\n    {\n      cocos2d::CCLayer::keyDown(a1);\n    }\n  }\n}", "assembly": "; \n; LevelInfoLayer::keyDown from 0x10002e72c to 0x10002e794 (104 bytes)\n; \n; 2 xrefs:\n; > sub_10002E794 @ 0x10002e798\n; > <???> @ 0x1008b0940\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:29 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10002e72c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10002e730\nADD             X29, SP, #0x10                                         ; +0x8, 0x10002e734\nLDRB            W8, [X0,#0x1E8]                                        ; +0xc, 0x10002e738\nTBNZ            W8, #0, loc_10002E778                                  ; +0x10, 0x10002e73c\nMOV             X19, X0                                                ; +0x14, 0x10002e740\nCMP             W1, #0x3F1                                             ; +0x18, 0x10002e744\nB.EQ            loc_10002E754                                          ; +0x1c, 0x10002e748\nCMP             W1, #0x20 ; ' '                                        ; +0x20, 0x10002e74c\nB.NE            loc_10002E784                                          ; +0x24, 0x10002e750\nLDR             X0, [X19,#0x1F0]                                       ; +0x28, 0x10002e754\nLDR             X8, [X0]                                               ; +0x2c, 0x10002e758\nLDR             X8, [X8,#0x160]                                        ; +0x30, 0x10002e75c\nBLR             X8                                                     ; +0x34, 0x10002e760\nCBZ             W0, loc_10002E778                                      ; +0x38, 0x10002e764\nMOV             X0, X19                                                ; +0x3c, 0x10002e768\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x10002e76c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x10002e770\nB               LevelInfoLayer__onPlay                                 ; +0x48, 0x10002e774\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10002e778\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x10002e77c\nRET                                                                    ; +0x54, 0x10002e780\nMOV             X0, X19                                                ; +0x58, 0x10002e784\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x10002e788\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x10002e78c\nB               cocos2d__CCLayer__keyDown                              ; +0x64, 0x10002e790", "xrefs": ["sub_10002E794 @ 0x10002e798", "<???> @ 0x1008b0940"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}