{"type": "func", "start": 4295930676, "end": 4295930800, "name": "EditLevelLayer::onSetFolder", "pseudocode": "// \n// EditLevelLayer::onSetFolder from 0x1000eb334 to 0x1000eb3b0 (124 bytes)\n// \n// 1 xrefs:\n// > EditLevelLayer::init @ 0x1000e9c48\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 __fastcall EditLevelLayer::onSetFolder(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GJGameLevel *m_level; // x8\n  __int64 m_levelFolder; // x20\n  _QWORD *v5; // x20\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  m_level = a1->m_level;\n  if ( m_level )\n  {\n    m_levelFolder = (unsigned int)m_level->m_levelFolder;\n    sub_100009900(__p, \"Set Folder\");\n    v5 = (_QWORD *)SetFolderPopup::create(m_levelFolder, 1, __p);\n    if ( v7 < 0 )\n      operator delete(__p[0]);\n    v5[84] = &a1->SetIDPopupDelegate;\n    (*(void (__fastcall **)(_QWORD *))(*v5 + 1288LL))(v5);\n  }\n}", "assembly": "; \n; EditLevelLayer::onSetFolder from 0x1000eb334 to 0x1000eb3b0 (124 bytes)\n; \n; 1 xrefs:\n; > EditLevelLayer::init @ 0x1000e9c48\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1000eb334\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000eb338\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000eb33c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000eb340\nLDR             X8, [X0,#0x1C8]                                        ; +0x10, 0x1000eb344\nCBZ             X8, loc_1000EB3A0                                      ; +0x14, 0x1000eb348\nMOV             X19, X0                                                ; +0x18, 0x1000eb34c\nLDR             W20, [X8,#0x320]                                       ; +0x1c, 0x1000eb350\nADRL            X1, aSetFolder; \"Set Folder\"                           ; +0x20, 0x1000eb354\nADD             X0, SP, #0x30+__p; int                                 ; +0x28, 0x1000eb35c\nBL              sub_100009900                                          ; +0x2c, 0x1000eb360\nADD             X2, SP, #0x30+__p                                      ; +0x30, 0x1000eb364\nMOV             X0, X20                                                ; +0x34, 0x1000eb368\nMOV             W1, #1                                                 ; +0x38, 0x1000eb36c\nBL              SetFolderPopup__create                                 ; +0x3c, 0x1000eb370\nMOV             X20, X0                                                ; +0x40, 0x1000eb374\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x44, 0x1000eb378\nTBZ             W8, #0x1F, loc_1000EB388                               ; +0x48, 0x1000eb37c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x4c, 0x1000eb380\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x1000eb384\nADD             X8, X19, #0x1B8                                        ; +0x54, 0x1000eb388\nSTR             X8, [X20,#0x2A0]                                       ; +0x58, 0x1000eb38c\nLDR             X8, [X20]                                              ; +0x5c, 0x1000eb390\nLDR             X8, [X8,#0x508]                                        ; +0x60, 0x1000eb394\nMOV             X0, X20                                                ; +0x64, 0x1000eb398\nBLR             X8                                                     ; +0x68, 0x1000eb39c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x6c, 0x1000eb3a0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x70, 0x1000eb3a4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x74, 0x1000eb3a8\nRET                                                                    ; +0x78, 0x1000eb3ac", "xrefs": ["EditLevelLayer::init @ 0x1000e9c48"], "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"}