{"type": "func", "start": 4848464, "end": 4848578, "name": "EditLevelLayer::onSetFolder", "pseudocode": "// \n// EditLevelLayer::onSetFolder from 0x49fb50 to 0x49fbc2 (114 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:49 +0000\n// \n\nint __fastcall EditLevelLayer::onSetFolder(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r5\n  int v3; // r2\n  int v4; // r7\n  int *v5; // r7\n  int v6; // r3\n  int v7[3]; // [sp+0h] [bp-14h] BYREF\n\n  v2 = this;\n  v3 = *(_DWORD *)(this + 348);\n  if ( v3 )\n  {\n    v4 = *(_DWORD *)(v3 + 740);\n    memset(v7, 0, sizeof(v7));\n    std::string::__init(v7, \"Set Folder\", 0xAu);\n    v5 = (int *)SetFolderPopup::create(v4, 1, v7);\n    std::string::~string((int)v7);\n    v6 = *v5;\n    v5[136] = v2 + 332;\n    return (*(int (__fastcall **)(int *))(v6 + 656))(v5);\n  }\n  return this;\n}", "assembly": "; \n; EditLevelLayer::onSetFolder from 0x49fb50 to 0x49fbc2 (114 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:49 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x49FB58)                ; +0x0, 0x49fb50\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x49fb52\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x49fb54\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x49fb56\nSUB             SP, SP, #0x14                                          ; +0x8, 0x49fb58\nMOV             R5, R0                                                 ; +0xa, 0x49fb5a\nLDR             R2, [R3]                                               ; +0xc, 0x49fb5c\nMOV             R6, R3                                                 ; +0xe, 0x49fb5e\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x10, 0x49fb60\nLDR.W           R2, [R0,#0x15C]                                        ; +0x12, 0x49fb62\nCBZ             R2, loc_49FBB2                                         ; +0x16, 0x49fb66\nLDR.W           R7, [R2,#0x2E4]                                        ; +0x18, 0x49fb68\nMOV             R0, SP                                                 ; +0x1c, 0x49fb6c\nLDR             R1, =(aSetFolder - 0x49FB7A); \"Set Folder\"             ; +0x1e, 0x49fb6e\nMOVS            R2, #0xA                                               ; +0x20, 0x49fb70\nMOVS            R3, #0                                                 ; +0x22, 0x49fb72\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x24, 0x49fb74\nADD             R1, PC; \"Set Folder\"                                   ; +0x26, 0x49fb76\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x28, 0x49fb78\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x2a, 0x49fb7a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2c, 0x49fb7c\nMOV             R0, R7                                                 ; +0x30, 0x49fb80\nMOVS            R1, #1                                                 ; +0x32, 0x49fb82\nMOV             R2, SP                                                 ; +0x34, 0x49fb84\nMOV             R4, SP                                                 ; +0x36, 0x49fb86\nBL              _ZN14SetFolderPopup6createEibNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; SetFolderPopup::create(int,bool,std::string) ; +0x38, 0x49fb88\nMOV             R7, R0                                                 ; +0x3c, 0x49fb8c\nMOV             R0, SP                                                 ; +0x3e, 0x49fb8e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x40, 0x49fb90\nLDR             R3, [R7]                                               ; +0x44, 0x49fb94\nADD.W           R5, R5, #0x14C                                         ; +0x46, 0x49fb96\nMOV             R0, R7                                                 ; +0x4a, 0x49fb9a\nSTR.W           R5, [R7,#0x220]                                        ; +0x4c, 0x49fb9c\nLDR.W           R3, [R3,#0x290]                                        ; +0x50, 0x49fba0\nBLX             R3                                                     ; +0x54, 0x49fba4\nB               loc_49FBB2                                             ; +0x56, 0x49fba6\nMOV             R0, R4                                                 ; +0x58, 0x49fba8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5a, 0x49fbaa\nBL              __cxa_end_cleanup                                      ; +0x5e, 0x49fbae\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x62, 0x49fbb2\nLDR             R3, [R6]                                               ; +0x64, 0x49fbb4\nCMP             R2, R3                                                 ; +0x66, 0x49fbb6\nBEQ             loc_49FBBE                                             ; +0x68, 0x49fbb8\nBLX             __stack_chk_fail                                       ; +0x6a, 0x49fbba\nADD             SP, SP, #0x14                                          ; +0x6e, 0x49fbbe\nPOP             {R4-R7,PC}                                             ; +0x70, 0x49fbc0", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}