{"type": "func", "start": 5369599216, "end": 5369599353, "name": "EditLevelLayer::onSetFolder", "pseudocode": "// \n// EditLevelLayer::onSetFolder from 0x1400d94f0 to 0x1400d9579 (137 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x1400d63a8\n// > <???> @ 0x1406c8868\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 EditLevelLayer::onSetFolder(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GJGameLevel *m_level; // rcx\n  __int64 *v4; // rax\n  SetIDPopupDelegate *v5; // rcx\n  __int64 v6; // rdx\n  _QWORD v7[5]; // [rsp+20h] [rbp-28h] BYREF\n\n  m_level = a1->m_level;\n  if ( m_level )\n  {\n    v7[2] = 10;\n    v7[1] = 29285;\n    LOBYTE(a2) = 1;\n    v7[3] = 15;\n    v7[0] = 0x646C6F4620746553LL;\n    v4 = (__int64 *)SetFolderPopup::create((unsigned int)m_level->m_levelFolder, a2, v7);\n    v5 = &a1->SetIDPopupDelegate;\n    if ( !a1 )\n      v5 = nullptr;\n    v6 = *v4;\n    v4[84] = (__int64)v5;\n    (*(void (__fastcall **)(__int64 *))(v6 + 1040))(v4);\n  }\n}", "assembly": "; \n; EditLevelLayer::onSetFolder from 0x1400d94f0 to 0x1400d9579 (137 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x1400d63a8\n; > <???> @ 0x1406c8868\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, 0x1400d94f0\nsub     rsp, 40h                                                       ; +0x2, 0x1400d94f2\nmov     rbx, rcx                                                       ; +0x6, 0x1400d94f6\nmov     rcx, [rcx+1C8h]                                                ; +0x9, 0x1400d94f9\ntest    rcx, rcx                                                       ; +0x10, 0x1400d9500\njz      short loc_1400D9573                                            ; +0x13, 0x1400d9503\nmovzx   eax, cs:word_1405515B0                                         ; +0x15, 0x1400d9505\nlea     r8, [rsp+48h+var_28]                                           ; +0x1c, 0x1400d950c\nxorps   xmm0, xmm0                                                     ; +0x21, 0x1400d9511\nmov     [rsp+48h+var_18], 0Ah                                          ; +0x24, 0x1400d9514\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x2d, 0x1400d951d\nmov     dl, 1                                                          ; +0x32, 0x1400d9522\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x34, 0x1400d9524\nmovsd   xmm0, cs:qword_1405515A8                                       ; +0x3d, 0x1400d952d\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x45, 0x1400d9535\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0x4b, 0x1400d953b\nmov     byte ptr [rsp+48h+var_28+0Ah], 0                               ; +0x50, 0x1400d9540\nmov     ecx, [rcx+368h]                                                ; +0x55, 0x1400d9545\ncall    SetFolderPopup__create                                         ; +0x5b, 0x1400d954b\nxor     edx, edx                                                       ; +0x60, 0x1400d9550\nlea     rcx, [rbx+1B8h]                                                ; +0x62, 0x1400d9552\ntest    rbx, rbx                                                       ; +0x69, 0x1400d9559\ncmovz   rcx, rdx                                                       ; +0x6c, 0x1400d955c\nmov     rdx, [rax]                                                     ; +0x70, 0x1400d9560\nmov     [rax+2A0h], rcx                                                ; +0x73, 0x1400d9563\nmov     rcx, rax                                                       ; +0x7a, 0x1400d956a\ncall    qword ptr [rdx+410h]                                           ; +0x7d, 0x1400d956d\nadd     rsp, 40h                                                       ; +0x83, 0x1400d9573\npop     rbx                                                            ; +0x87, 0x1400d9577\nretn                                                                   ; +0x88, 0x1400d9578", "xrefs": ["EditLevelLayer::init @ 0x1400d63a8", "<???> @ 0x1406c8868"], "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"}