{"type": "func", "start": 8312468, "end": 8312688, "name": "EditLevelLayer::onSetFolder", "pseudocode": "// \n// EditLevelLayer::onSetFolder from 0x7ed694 to 0x7ed770 (220 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x50e30\n// > EditLevelLayer::init @ 0x7f0eb0\n// > <???> @ 0x1541b90\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:33 +0000\n// \n\n__int64 __fastcall EditLevelLayer::onSetFolder(EditLevelLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x0\n  __int64 *v4; // x21\n  __int64 v5; // x1\n\n  v3 = *((_QWORD *)this + 59);\n  if ( v3 )\n  {\n    v4 = (__int64 *)SetFolderPopup::create(*(unsigned int *)(v3 + 916));\n    v5 = *v4;\n    v4[87] = (__int64)this + 440;\n    (*(void (__fastcall **)(__int64 *))(v5 + 1312))(v4);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditLevelLayer::onSetFolder from 0x7ed694 to 0x7ed770 (220 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x50e30\n; > EditLevelLayer::init @ 0x7f0eb0\n; > <???> @ 0x1541b90\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:33 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x7ed694\nMOV             X29, SP                                                ; +0x4, 0x7ed698\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x7ed69c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7ed6a0\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x7ed6a4\nMOV             X20, X0                                                ; +0x14, 0x7ed6a8\nLDR             X0, [X0,#0x1D8]                                        ; +0x18, 0x7ed6ac\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7ed6b0\nLDR             X1, [X1]                                               ; +0x20, 0x7ed6b4\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0x7ed6b8\nCBZ             X0, loc_7ED720                                         ; +0x28, 0x7ed6bc\nADRP            X3, #aSetFolder@PAGE; \"Set Folder\"                     ; +0x2c, 0x7ed6c0\nADD             X4, X29, #0x50+var_20                                  ; +0x30, 0x7ed6c4\nADD             X3, X3, #aSetFolder@PAGEOFF; \"Set Folder\"              ; +0x34, 0x7ed6c8\nLDR             W0, [X0,#0x394]                                        ; +0x38, 0x7ed6cc\nMOV             W6, #0x14                                              ; +0x3c, 0x7ed6d0\nMOV             W1, #1                                                 ; +0x40, 0x7ed6d4\nMOV             X2, X4                                                 ; +0x44, 0x7ed6d8\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x48, 0x7ed6dc\nLDR             X5, [X3]; \"Set Folder\"                                 ; +0x4c, 0x7ed6e0\nLDRH            W3, [X3,#(aSetFolder+8 - 0x11444A8)]; \"er\"             ; +0x50, 0x7ed6e4\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x54, 0x7ed6e8\nSTRB            W6, [X29,#0x50+var_20]                                 ; +0x58, 0x7ed6ec\nSTUR            X5, [X29,#0x31]                                        ; +0x5c, 0x7ed6f0\nSTURH           W3, [X29,#0x50+var_18+1]                               ; +0x60, 0x7ed6f4\nBL              _ZN14SetFolderPopup6createEibNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; SetFolderPopup::create(int,bool,std::string) ; +0x64, 0x7ed6f8\nMOV             X21, X0                                                ; +0x68, 0x7ed6fc\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x6c, 0x7ed700\nTBNZ            W0, #0, loc_7ED744                                     ; +0x70, 0x7ed704\nLDR             X1, [X21]                                              ; +0x74, 0x7ed708\nADD             X20, X20, #0x1B8                                       ; +0x78, 0x7ed70c\nSTR             X20, [X21,#0x2B8]                                      ; +0x7c, 0x7ed710\nMOV             X0, X21                                                ; +0x80, 0x7ed714\nLDR             X1, [X1,#0x520]                                        ; +0x84, 0x7ed718\nBLR             X1                                                     ; +0x88, 0x7ed71c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x8c, 0x7ed720\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x90, 0x7ed724\nLDR             X0, [X19]                                              ; +0x94, 0x7ed728\nCMP             X1, X0                                                 ; +0x98, 0x7ed72c\nB.NE            loc_7ED750                                             ; +0x9c, 0x7ed730\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa0, 0x7ed734\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xa4, 0x7ed738\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa8, 0x7ed73c\nRET                                                                    ; +0xac, 0x7ed740\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xb0, 0x7ed744\nBL              _ZdlPv; operator delete(void *)                        ; +0xb4, 0x7ed748\nB               loc_7ED708                                             ; +0xb8, 0x7ed74c\nBL              .__stack_chk_fail                                      ; +0xbc, 0x7ed750\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0xc0, 0x7ed754\nMOV             X19, X0                                                ; +0xc4, 0x7ed758\nTBZ             W1, #0, loc_7ED768                                     ; +0xc8, 0x7ed75c\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xcc, 0x7ed760\nBL              _ZdlPv; operator delete(void *)                        ; +0xd0, 0x7ed764\nMOV             X0, X19                                                ; +0xd4, 0x7ed768\nBL              _Unwind_Resume                                         ; +0xd8, 0x7ed76c", "xrefs": ["<???> @ 0x50e30", "EditLevelLayer::init @ 0x7f0eb0", "<???> @ 0x1541b90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}