{"type": "func", "start": 5371856944, "end": 5371857032, "name": "LevelInfoLayer::keyDown", "pseudocode": "// \n// LevelInfoLayer::keyDown from 0x140300830 to 0x140300888 (88 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140586ce8\n// > <???> @ 0x1406d434c\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 LevelInfoLayer::keyDown(LevelInfoLayer *a1, cocos2d::enumKeyCodes a2, double a3)\n{\n  if ( !LOBYTE(a1->m_sAdditionalTransform.ty) )\n  {\n    if ( a2 == KEY_Space || a2 == CONTROLLER_Start )\n    {\n      if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sTransform.b + 328LL))(*(_QWORD *)&a1->m_sTransform.b) )\n        LevelInfoLayer::onPlay((LevelInfoLayer *)((char *)a1 - 344), nullptr);\n    }\n    else\n    {\n      cocos2d::CCLayer::keyDown(a1, a2, a3);\n    }\n  }\n}", "assembly": "; \n; LevelInfoLayer::keyDown from 0x140300830 to 0x140300888 (88 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140586ce8\n; > <???> @ 0x1406d434c\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    rbx                                                            ; +0x0, 0x140300830\nsub     rsp, 20h                                                       ; +0x2, 0x140300832\ncmp     byte ptr [rcx+88h], 0                                          ; +0x6, 0x140300836\nmov     rbx, rcx                                                       ; +0xd, 0x14030083d\njnz     short loc_140300882                                            ; +0x10, 0x140300840\ncmp     edx, 20h ; ' '                                                 ; +0x12, 0x140300842\njz      short loc_14030085B                                            ; +0x15, 0x140300845\ncmp     edx, 3F1h                                                      ; +0x17, 0x140300847\njz      short loc_14030085B                                            ; +0x1d, 0x14030084d\nadd     rsp, 20h                                                       ; +0x1f, 0x14030084f\npop     rbx                                                            ; +0x23, 0x140300853\njmp     cs:__imp_?keyDown@CCLayer@cocos2d@@UEAAXW4enumKeyCodes@2@N@Z; cocos2d::CCLayer::keyDown(cocos2d::enumKeyCodes,double) ; +0x24, 0x140300854\nmov     rcx, [rcx+90h]                                                 ; +0x2b, 0x14030085b\nmov     rax, [rcx]                                                     ; +0x32, 0x140300862\ncall    qword ptr [rax+148h]                                           ; +0x35, 0x140300865\ntest    al, al                                                         ; +0x3b, 0x14030086b\njz      short loc_140300882                                            ; +0x3d, 0x14030086d\nlea     rcx, [rbx-158h]                                                ; +0x3f, 0x14030086f\nxor     edx, edx                                                       ; +0x46, 0x140300876\nadd     rsp, 20h                                                       ; +0x48, 0x140300878\npop     rbx                                                            ; +0x4c, 0x14030087c\njmp     LevelInfoLayer__onPlay                                         ; +0x4d, 0x14030087d\nadd     rsp, 20h                                                       ; +0x52, 0x140300882\npop     rbx                                                            ; +0x56, 0x140300886\nretn                                                                   ; +0x57, 0x140300887", "xrefs": ["<???> @ 0x140586ce8", "<???> @ 0x1406d434c"], "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"}