{"type": "func", "start": 5371883648, "end": 5371883802, "name": "LevelListLayer::setIDPopupClosed", "pseudocode": "// \n// LevelListLayer::setIDPopupClosed from 0x140307080 to 0x14030711a (154 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140588c68\n// > <???> @ 0x1406d44c0\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 LevelListLayer::setIDPopupClosed(LevelListLayer *a1, SetIDPopup *a2, int a3)\n{\n  __int64 v6; // rcx\n  CustomListView *v7; // rcx\n\n  if ( a2->getTag(a2) == 1003 )\n  {\n    GJLevelList::reorderLevel(\n      *(GJLevelList **)&a1->m_bUseChildIndex,\n      (int)a2[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable,\n      a3 - 1);\n    LevelBrowserLayer::setupLevelBrowser((LevelListLayer *)((char *)a1 - 560), nullptr);\n    v6 = *(_QWORD *)&a1->m_uOrderOfArrival;\n    if ( v6 )\n    {\n      v7 = *(CustomListView **)(v6 + 544);\n      v7->m_cellMode = (int)a1->m_pScriptKeypadHandlerEntry;\n      CustomListView::reloadAll(v7);\n    }\n  }\n  else\n  {\n    LevelBrowserLayer::setIDPopupClosed(a1, a2, a3);\n  }\n}", "assembly": "; \n; LevelListLayer::setIDPopupClosed from 0x140307080 to 0x14030711a (154 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140588c68\n; > <???> @ 0x1406d44c0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140307080\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140307085\npush    rdi                                                            ; +0xa, 0x14030708a\nsub     rsp, 20h                                                       ; +0xb, 0x14030708b\nmov     rax, [rdx]                                                     ; +0xf, 0x14030708f\nmov     rbx, rcx                                                       ; +0x12, 0x140307092\nmov     rcx, rdx                                                       ; +0x15, 0x140307095\nmov     esi, r8d                                                       ; +0x18, 0x140307098\nmov     rdi, rdx                                                       ; +0x1b, 0x14030709b\ncall    qword ptr [rax+38h]                                            ; +0x1e, 0x14030709e\ncmp     eax, 3EBh                                                      ; +0x21, 0x1403070a1\njnz     short loc_1403070FC                                            ; +0x26, 0x1403070a6\nmov     edx, [rdi+2A8h]                                                ; +0x28, 0x1403070a8\nlea     r8d, [rsi-1]                                                   ; +0x2e, 0x1403070ae\nmov     rcx, [rbx+138h]                                                ; +0x32, 0x1403070b2\ncall    GJLevelList__reorderLevel                                      ; +0x39, 0x1403070b9\nlea     rcx, [rbx-230h]                                                ; +0x3e, 0x1403070be\nxor     edx, edx                                                       ; +0x45, 0x1403070c5\ncall    LevelBrowserLayer__setupLevelBrowser                           ; +0x47, 0x1403070c7\nmov     rcx, [rbx+30h]                                                 ; +0x4c, 0x1403070cc\ntest    rcx, rcx                                                       ; +0x50, 0x1403070d0\njz      short loc_14030710A                                            ; +0x53, 0x1403070d3\nmov     rcx, [rcx+220h]                                                ; +0x55, 0x1403070d5\nmov     eax, [rbx+178h]                                                ; +0x5c, 0x1403070dc\nmov     [rcx+1D0h], eax                                                ; +0x62, 0x1403070e2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x1403070e8\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6d, 0x1403070ed\nadd     rsp, 20h                                                       ; +0x72, 0x1403070f2\npop     rdi                                                            ; +0x76, 0x1403070f6\njmp     CustomListView__reloadAll                                      ; +0x77, 0x1403070f7\nmov     r8d, esi                                                       ; +0x7c, 0x1403070fc\nmov     rdx, rdi                                                       ; +0x7f, 0x1403070ff\nmov     rcx, rbx                                                       ; +0x82, 0x140307102\ncall    LevelBrowserLayer__setIDPopupClosed                            ; +0x85, 0x140307105\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8a, 0x14030710a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8f, 0x14030710f\nadd     rsp, 20h                                                       ; +0x94, 0x140307114\npop     rdi                                                            ; +0x98, 0x140307118\nretn                                                                   ; +0x99, 0x140307119", "xrefs": ["<???> @ 0x140588c68", "<???> @ 0x1406d44c0"], "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"}