{"type": "func", "start": 5371927536, "end": 5371927648, "name": "LevelSearchLayer::onBack", "pseudocode": "// \n// LevelSearchLayer::onBack from 0x140311bf0 to 0x140311c60 (112 bytes)\n// \n// 3 xrefs:\n// > LevelSearchLayer::keyBackClicked @ 0x140312879\n// > LevelSearchLayer::init @ 0x14030db81\n// > <???> @ 0x1406d482c\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// Hidden C++ exception states: #wind=1\nvoid LevelSearchLayer::onBack(LevelSearchLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  a1->m_searchInput->onClickTrackNode(a1->m_searchInput, 0);\n  if ( !qword_1406C2ED8 )\n  {\n    v4 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  if ( GameManager::safePopScene(v3) )\n    a1->setKeypadEnabled(a1, 0);\n}", "assembly": "; \n; LevelSearchLayer::onBack from 0x140311bf0 to 0x140311c60 (112 bytes)\n; \n; 3 xrefs:\n; > LevelSearchLayer::keyBackClicked @ 0x140312879\n; > LevelSearchLayer::init @ 0x14030db81\n; > <???> @ 0x1406d482c\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, 0x140311bf0\nsub     rsp, 20h                                                       ; +0x2, 0x140311bf2\nmov     rbx, rcx                                                       ; +0x6, 0x140311bf6\nmov     rcx, [rcx+1B8h]                                                ; +0x9, 0x140311bf9\nmov     rax, [rcx]                                                     ; +0x10, 0x140311c00\nxor     edx, edx                                                       ; +0x13, 0x140311c03\ncall    qword ptr [rax+3F8h]                                           ; +0x15, 0x140311c05\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x1b, 0x140311c0b\njnz     short loc_140311C3D                                            ; +0x23, 0x140311c13\nmov     ecx, 668h; Size                                                ; +0x25, 0x140311c15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140311c1a\nmov     [rsp+28h+arg_0], rax                                           ; +0x2f, 0x140311c1f\nmov     rcx, rax                                                       ; +0x34, 0x140311c24\ncall    sub_14017AB00                                                  ; +0x37, 0x140311c27\nnop                                                                    ; +0x3c, 0x140311c2c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3d, 0x140311c2d\nmov     rdx, [rax]                                                     ; +0x44, 0x140311c34\nmov     rcx, rax                                                       ; +0x47, 0x140311c37\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x140311c3a\ncall    GameManager__safePopScene                                      ; +0x4d, 0x140311c3d\ntest    al, al                                                         ; +0x52, 0x140311c42\njz      short loc_140311C5A                                            ; +0x54, 0x140311c44\nmov     rax, [rbx]                                                     ; +0x56, 0x140311c46\nxor     edx, edx                                                       ; +0x59, 0x140311c49\nmov     rcx, rbx                                                       ; +0x5b, 0x140311c4b\nadd     rsp, 20h                                                       ; +0x5e, 0x140311c4e\npop     rbx                                                            ; +0x62, 0x140311c52\njmp     qword ptr [rax+3D0h]                                           ; +0x63, 0x140311c53\nadd     rsp, 20h                                                       ; +0x6a, 0x140311c5a\npop     rbx                                                            ; +0x6e, 0x140311c5e\nretn                                                                   ; +0x6f, 0x140311c5f", "xrefs": ["LevelSearchLayer::keyBackClicked @ 0x140312879", "LevelSearchLayer::init @ 0x14030db81", "<???> @ 0x1406d482c"], "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"}