{"type": "func", "start": 5371645440, "end": 5371645560, "name": "LevelBrowserLayer::onPrevPage", "pseudocode": "// \n// LevelBrowserLayer::onPrevPage from 0x1402cce00 to 0x1402cce78 (120 bytes)\n// \n// 3 xrefs:\n// > LevelBrowserLayer::keyDown @ 0x1402ccfb6\n// > LevelBrowserLayer::init @ 0x1402c919a\n// > <???> @ 0x1406d2d44\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 LevelBrowserLayer::onPrevPage(LevelBrowserLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  GJSearchObject *m_searchObject; // rcx\n  int v5; // edx\n  GJSearchObject *PageObject; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  *(_DWORD *)(v3 + 948) = 0;\n  m_searchObject = a1->m_searchObject;\n  v5 = m_searchObject->m_page - 1;\n  if ( v5 <= 0 )\n    v5 = 0;\n  PageObject = GJSearchObject::getPageObject(m_searchObject, v5);\n  LevelBrowserLayer::loadPage(a1, PageObject);\n}", "assembly": "; \n; LevelBrowserLayer::onPrevPage from 0x1402cce00 to 0x1402cce78 (120 bytes)\n; \n; 3 xrefs:\n; > LevelBrowserLayer::keyDown @ 0x1402ccfb6\n; > LevelBrowserLayer::init @ 0x1402c919a\n; > <???> @ 0x1406d2d44\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, 0x1402cce00\nsub     rsp, 20h                                                       ; +0x2, 0x1402cce02\nmov     rbx, rcx                                                       ; +0x6, 0x1402cce06\nmov     rax, cs:qword_1406C2ED8                                        ; +0x9, 0x1402cce09\ntest    rax, rax                                                       ; +0x10, 0x1402cce10\njnz     short loc_1402CCE44                                            ; +0x13, 0x1402cce13\nmov     ecx, 668h; Size                                                ; +0x15, 0x1402cce15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1402cce1a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1402cce1f\nmov     rcx, rax                                                       ; +0x24, 0x1402cce24\ncall    sub_14017AB00                                                  ; +0x27, 0x1402cce27\nnop                                                                    ; +0x2c, 0x1402cce2c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1402cce2d\nmov     rdx, [rax]                                                     ; +0x34, 0x1402cce34\nmov     rcx, rax                                                       ; +0x37, 0x1402cce37\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1402cce3a\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3d, 0x1402cce3d\nxor     r8d, r8d                                                       ; +0x44, 0x1402cce44\nmov     [rax+3B4h], r8d                                                ; +0x47, 0x1402cce47\nmov     rcx, [rbx+298h]                                                ; +0x4e, 0x1402cce4e\nmov     edx, [rcx+1A8h]                                                ; +0x55, 0x1402cce55\ndec     edx                                                            ; +0x5b, 0x1402cce5b\ntest    edx, edx                                                       ; +0x5d, 0x1402cce5d\ncmovle  edx, r8d                                                       ; +0x5f, 0x1402cce5f\ncall    GJSearchObject__getPageObject                                  ; +0x63, 0x1402cce63\nmov     rdx, rax                                                       ; +0x68, 0x1402cce68\nmov     rcx, rbx                                                       ; +0x6b, 0x1402cce6b\nadd     rsp, 20h                                                       ; +0x6e, 0x1402cce6e\npop     rbx                                                            ; +0x72, 0x1402cce72\njmp     LevelBrowserLayer__loadPage                                    ; +0x73, 0x1402cce73", "xrefs": ["LevelBrowserLayer::keyDown @ 0x1402ccfb6", "LevelBrowserLayer::init @ 0x1402c919a", "<???> @ 0x1406d2d44"], "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"}